Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Site: the hero runs the current app, and the last line of its summary no longer fades

Eric Brownrout8391276e1dc2
diff --git a/site/public/marketing/app/manifest.json b/site/public/marketing/app/manifest.json
index e0b311ad..ff70a295 100644
--- a/site/public/marketing/app/manifest.json
+++ b/site/public/marketing/app/manifest.json
@@ -1,7 +1,7 @@
{
- "appCommit": "0d26a16cf00781d2b0d0c557cd1bdd3fc730cc0d",
+ "appCommit": "72c9c0b2b8fd3d47c74af6821c5ddac8f920cb58",
"sourceOverrides": {},
- "generatedAt": "2026-11-16T17:01:24.988Z",
+ "generatedAt": "2026-11-17T17:00:34.023Z",
"source": "app/src/renderer",
"fixture": "site/renderer/bridge.mjs",
"nativeCode": false,
@@ -45,6 +45,7 @@
"app/src/renderer/src/components/Player.tsx",
"app/src/renderer/src/components/RecordingHint.tsx",
"app/src/renderer/src/components/RecordingTime.tsx",
+ "app/src/renderer/src/components/RegenerateForm.tsx",
"app/src/renderer/src/components/ScrollFade.tsx",
"app/src/renderer/src/components/ShareMenu.tsx",
"app/src/renderer/src/components/SourceCitation.tsx",
@@ -53,8 +54,9 @@
"app/src/renderer/src/components/Swap.tsx",
"app/src/renderer/src/components/ThinkingDots.tsx",
"app/src/renderer/src/components/Transcript.tsx",
+ "app/src/renderer/src/components/TranscriptFind.tsx",
"app/src/renderer/src/components/TrashToast.tsx",
- "app/src/renderer/src/components/ViewPill.tsx",
+ "app/src/renderer/src/components/UpdateReady.tsx",
"app/src/renderer/src/components/Workspace.tsx",
"app/src/renderer/src/dates.ts",
"app/src/renderer/src/folderSelection.ts",
@@ -62,19 +64,24 @@
"app/src/renderer/src/followLatest.ts",
"app/src/renderer/src/i18n.tsx",
"app/src/renderer/src/keys.ts",
+ "app/src/renderer/src/meetingRowMotion.ts",
"app/src/renderer/src/meetingSelection.ts",
"app/src/renderer/src/mentionPlacement.ts",
"app/src/renderer/src/motion.ts",
"app/src/renderer/src/noteAutosave.ts",
"app/src/renderer/src/noteMerge.ts",
"app/src/renderer/src/notesSetup.ts",
+ "app/src/renderer/src/playerVisibility.ts",
"app/src/renderer/src/screens/Note.tsx",
"app/src/renderer/src/streamingInk.ts",
"app/src/renderer/src/styles.css",
"app/src/renderer/src/summaryPresentation.ts",
+ "app/src/renderer/src/transcriptFindRanges.ts",
"app/src/renderer/src/trashMeetings.ts",
"app/src/renderer/src/useFollowLatest.ts",
+ "app/src/renderer/src/useJoinWindow.ts",
"app/src/renderer/src/useLoadingState.ts",
+ "app/src/renderer/src/useNoteCalendar.ts",
"app/src/renderer/src/useNotePopover.ts",
"app/src/renderer/src/useScrollMemory.ts",
"app/src/renderer/src/useSmoothText.ts",
@@ -85,11 +92,11 @@
"app/src/shared/calendarPicker.ts",
"app/src/shared/citationCard.ts",
"app/src/shared/citations.ts",
+ "app/src/shared/comingUp.ts",
"app/src/shared/dates.ts",
"app/src/shared/exportNotes.ts",
"app/src/shared/folderAppearance.ts",
"app/src/shared/follow.ts",
- "app/src/shared/highlight.ts",
"app/src/shared/i18n.ts",
"app/src/shared/inkArrival.ts",
"app/src/shared/liveWords.ts",
@@ -98,6 +105,7 @@
"app/src/shared/markdown.ts",
"app/src/shared/people.ts",
"app/src/shared/platform.ts",
+ "app/src/shared/rewriteNote.ts",
"app/src/shared/searchPeople.ts",
"app/src/shared/searchQuery.ts",
"app/src/shared/smoothText.ts",
@@ -105,6 +113,7 @@
"app/src/shared/speakerColors.ts",
"app/src/shared/spoken.ts",
"app/src/shared/transcript.ts",
+ "app/src/shared/transcriptFind.ts",
"app/src/shared/wave.ts"
],
"files": {
@@ -119,15 +128,15 @@
"sha256": "45e4eb19dcb4fc8ce3825d6cfeeb1d8f8d7a16e09ee4583a005518c880f028e4"
},
"renderer.css": {
- "bytes": 259636,
- "gzipBytes": 85081,
- "sha256": "8fcf68ee28496ea66fbc7a4f0229cd64fe5f87213299d40902bd2870cdee28c3"
+ "bytes": 269515,
+ "gzipBytes": 86731,
+ "sha256": "726dadfdc50c18719d94b26d306006ed7282ea6b7316fc759d8a81b2f33a8933"
},
"renderer.js": {
- "bytes": 1474360,
- "gzipBytes": 453619,
- "sha256": "0b209ac67984776ecac7ff5c310faf77df0f3c7e7342b0df344168f898f00920"
+ "bytes": 1506411,
+ "gzipBytes": 463504,
+ "sha256": "600bb37261749c88c2aa89560633299a27f550f244a664b2c85d7522394098ef"
}
},
- "totalGzipBytes": 539064
+ "totalGzipBytes": 550599
}
diff --git a/site/public/marketing/app/renderer.css b/site/public/marketing/app/renderer.css
index c51c48e5..6cbd07e1 100644
--- a/site/public/marketing/app/renderer.css
+++ b/site/public/marketing/app/renderer.css
@@ -1,3 +1,3 @@
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--font-weight-medium:500;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--font-brand:"Bricolage Grotesque", -apple-system, system-ui, sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}@media (prefers-reduced-motion:no-preference){:where(.main-window :is(.overflow-auto,.overflow-y-auto,.workspace-sidebar-body,.native-library,.agenda-scroll,.agenda-inspector-scroll,.note-notes-pane,.note-layout,.chat-thread,.chat-history,.settings-scroll,.shortcuts-list,.citation-excerpt,.note-date-events,.finish-setup,.ob-side)){transition:scrollbar-color var(--dur-micro) ease}}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.inset-x-0{inset-inline:0}.start-0{inset-inline-start:calc(var(--spacing) * 0)}.start-1\/2{inset-inline-start:50%}.end-0{inset-inline-end:calc(var(--spacing) * 0)}.top-0{top:0}.top-\[10px\]{top:10px}.top-full{top:100%}.right-4{right:calc(var(--spacing) * 4)}.bottom-1{bottom:var(--spacing)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[100\]{z-index:100}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.ms-0\.5{margin-inline-start:calc(var(--spacing) * .5)}.ms-2{margin-inline-start:calc(var(--spacing) * 2)}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-px{margin-top:1px}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[min\(44vh\,480px\)\]{height:min(44vh,480px)}.h-full{height:100%}.h-px{height:1px}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[74vh\]{max-height:74vh}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-\[40vh\]{min-height:40vh}.min-h-\[52px\]{min-height:52px}.w-9{width:calc(var(--spacing) * 9)}.w-10{width:calc(var(--spacing) * 10)}.w-52{width:calc(var(--spacing) * 52)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[min\(340px\,calc\(100vw-48px\)\)\]{width:min(340px,100vw - 48px)}.w-\[min\(720px\,calc\(100\%-48px\)\)\]{width:min(720px,100% - 48px)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\[220px\]{max-width:220px}.max-w-\[640px\]{max-width:640px}.max-w-\[calc\(100\%-32px\)\]{max-width:calc(100% - 32px)}.max-w-\[min\(280px\,calc\(100vw-48px\)\)\]{max-width:min(280px,100vw - 48px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-\[5px\]{gap:5px}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-line{border-color:var(--line)}.bg-\[var\(--line\)\]{background-color:var(--line)}.bg-accent{background-color:var(--accent)}.bg-bg{background-color:var(--bg)}.bg-card{background-color:var(--card)}.bg-float{background-color:var(--float)}.bg-transparent{background-color:#0000}.\!p-1\.5{padding:calc(var(--spacing) * 1.5)!important}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.\!px-0{padding-inline:0!important}.\!px-2{padding-inline:calc(var(--spacing) * 2)!important}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.\!py-1{padding-block:var(--spacing)!important}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-end{text-align:end}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-\[1\.55\]{--tw-leading:1.55;line-height:1.55}.leading-\[17px\]{--tw-leading:17px;line-height:17px}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.break-words{overflow-wrap:break-word}.text-\[\#fff\]{color:#fff}.text-\[var\(--pill-accent\)\]{color:var(--pill-accent)}.text-accent{color:var(--accent)}.text-accent-ink{color:var(--accent-ink)}.text-danger{color:var(--danger)}.text-ink{color:var(--ink)}.text-muted{color:var(--muted)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.shadow-\[var\(--shadow\)\]{--tw-shadow:var(--shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--shadow-soft\)\]{--tw-shadow:var(--shadow-soft);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-line{--tw-ring-color:var(--line)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);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,)}.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,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.\[overflow-anchor\:none\]{overflow-anchor:none}.placeholder\:text-muted::placeholder{color:var(--muted)}@media (hover:hover){.hover\:bg-\[var\(--line\)\]:hover{background-color:var(--line)}.hover\:bg-card:hover{background-color:var(--card)}.hover\:text-ink:hover{color:var(--ink)}}.focus\:ring-accent:focus{--tw-ring-color:var(--accent)}.focus-visible\:bg-\[var\(--line\)\]:focus-visible{background-color:var(--line)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}}.aria-expanded\:text-ink[aria-expanded=true]{color:var(--ink)}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}.rtl\:translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-scale-x-100:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}}@font-face{font-family:Bricolage Grotesque;src:url(data:font/ttf;base64,AAEAAAAQAQAABAAAR0RFRjocOWEAAAJQAAAA5EdQT1NqC7sMAAC11AAAi6pHU1VCvzzi/gAAETgAAAgcT1MvMmZffxoAAAHwAAAAYFNUQVRkw1NUAAABmAAAAFZjbWFwwBgxaAAACwwAAAYsZ2FzcAAAABAAAAEUAAAACGdseWYwEH14AAAx/AAAg9ZoZWFkH43wwgAAAWAAAAA2aGhlYQgxBTEAAAE8AAAAJGhtdHi4ZlhOAAAZVAAACPhsb2NhN9gXaAAABowAAAR+bWF4cAJQANYAAAEcAAAAIG5hbWVNBX+sAAADNAAAA1Zwb3N07eDS7wAAIkwAAA+ucHJlcGgGjIUAAAEMAAAAB7gB/4WwBI0AAAEAAf//AA8AAQAAAj4AZwAHAG0ABgABAAAAAAAAAAAAAAAAAAQAAQABAAADov7yAAAFZv9B/poFSwABAAAAAAAAAAAAAAAAAAACPgABAAAAAQBC7KnWY18PPPUAAwPoAAAAANsNS6MAAAAA4N1g7/9B/pAFSwR7AAAABgACAAAAAAAAAAEAAQAIAAMAAAAUAAMAAAAsAAJvcHN6AQAAAHdkdGgBAgABd2dodAEBAAIAHgASAAYAAQACAAABBwJYAAAAAQABAAIBEwBkAAAAAQAAAAABCwAOAAAAAAAEAjsCWAAFAAACigJYAAAASwKKAlgAAAFeADIBOgAAAgsGBQQEAgACBAAAAAMAAAAAAAAAAAAAAABBVExSAMAAICfpA6L+8gAABIgBkAAAAAEAAAAAAgsClAAAACAADQABAAIADgAAAAAAAACcAAIAFwABAG0AAQBvAMMAAQDFAREAAQETAUYAAQFiAWIAAQFkAWQAAQFnAWcAAQFsAWwAAQFuAW4AAQFxAXEAAQF2AXcAAQGAAYAAAQGCAYIAAQGFAYUAAQGKAYoAAQGMAYwAAQGPAY8AAQHJAckAAQHaAeIAAQHpAewAAQHwAfIAAQISAhYAAwIYAiwAAwABAAMAAAA+AAAAFgAAABAAAQABAiAAAQASAhICEwIVAhYCGAIZAhoCGwIcAh0CHgIfAiUCJwIoAikCKwIsAAEAAwIhAiICIwAAABAAxgADAAEECQAAAMQBzAADAAEECQABADgBlAADAAEECQACAA4BhgADAAEECQADAEwBOgADAAEECQAEADgBlAADAAEECQAFAFYA5AADAAEECQAGADYArgADAAEECQAOADYAeAADAAEECQAQACYAUgADAAEECQARABAAQgADAAEECQEAABgAKgADAAEECQEBAAwAHgADAAEECQECAAoAFAADAAEECQEHABAAQgADAAEECQELAAgADAADAAEECQETAAwAAABOAG8AcgBtAGEAbAAxADQAcAB0AFcAaQBkAHQAaABXAGUAaQBnAGgAdABPAHAAdABpAGMAYQBsACAAcwBpAHoAZQBTAGUAbQBpAEIAbwBsAGQAQgByAGkAYwBvAGwAYQBnAGUAIABHAHIAbwB0AGUAcwBxAHUAZQBoAHQAdABwAHMAOgAvAC8AcwBjAHIAaQBwAHQAcwAuAHMAaQBsAC4AbwByAGcALwBPAEYATABCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAMAAxADsAZwBmAHQAbwBvAGwAcwBbADAALgA5AC4AMwAzAC4AZABlAHYAOAArAGcAMAAyADkAZQAxADkAZgBdADEALgAwADAAMQA7AEEAVABMAFIAOwBCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABSAGUAZwB1AGwAYQByAEIAcgBpAGMAbwBsAGEAZwBlACAARwByAG8AdABlAHMAcQB1AGUAIABTAGUAbQBpAEIAbwBsAGQAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMgAyACAAVABoAGUAIABCAHIAaQBjAG8AbABhAGcAZQAgAEcAcgBvAHQAZQBzAHEAdQBlACAAUAByAG8AagBlAGMAdAAgAEEAdQB0AGgAbwByAHMAIAAoAGgAdAB0AHAAcwA6AC8ALwBnAGkAdABoAHUAYgAuAGMAbwBtAC8AYQB0AGUAbABpAGUAcgB0AHIAaQBhAHkALwBiAHIAaQBjAG8AbABhAGcAZQApAAAAAABEAF0AaQB1AIUAlQDMANwA7AEQARwBLAE8AWUBdQGFAZEBnQG9AckB1QHhAe0B+QIpAmACmgKmAuoC9gMCAy0DYgNqA50DvQPJA/MD/wQPBB8ETgReBG4EegSGBJIEuQTFBNEE3QTpBQMFQgVOBVoFZgWABaIFrgW6BcYF0gXeBeoF9gYJBhUGIQYsBjgGVwaEBpAGogauBroGxgbgBv4HFwcjB0YHUgdeB5EHxwfTB98H7wf/CEQIVAhkCHAIfAi5CMUJDAkYCSQJcgl+CYoJlgmiCeAJ7ApJCm8KnArwCyULMQtwC3wLygvWDC4MOgxGDJEMpAzCDM4M8wz/DQsNFw0jDS8NWw1nDXMNgw2TDdEN4Q3xDf0OCQ5LDlcOYw52DpUOoQ6tDrkO3w78DxEPHQ8pDzUPQQ9dD2kPdQ+ND5kPuw/HEB0QKRA1EEUQVRDIENgQ6BFIEVMRYhFxEdcR5hH1EgASDBJpEnUSgRKNEpkSpBMnE2wTpBOwE/IT/hQKFE8UWxSnFPgVNRVBFYgVkxWiFbEV/hYNFhwWJxYzFj8WgxaPFpsW9xcCFzEXpBewF7wXyBfzGCYYMRg9GEgYUxheGGkYeBiLGJYYoRivGLoYzRjYGPMZIBksGTgZRBlQGVsZcBmyGdcZ4xoSGh4aKhpjGpManxqqGrkayBsIGxcbJhsxGz0bdBuAG8IbzhvaHCMcLxw7HEccUxyLHJYc/x1EHY4d1B34HgQeMh49HoYekh7lHvEe/R9QH3gfhB+PH7UfwR/NH9gf4x/vIBwgKCA0IEQgVCCUIKQgsyC/IMsg1yDjIO4hASEgISwhOCFEIWohhSHCIc4h2SHkIfAiNCJAIksiYyJvIpEinSLzIyIjOyNxI4MjtyPuJA0kSCSaJLUlHiVzJaolxCX5JjEmUCaLJtom9SdeJ7Mn4yf2KCUoUyhwKKUo7ikIKWoptSm+Kccp0CnZKeIp6yn0Kf0qBioPKh0qLio/KlAqYSpyKoMqlCqlKrYqvyrIKtEq2irjKuwq9Sr+KwcrECsZKyIrKys0Kz0rRitPK1grYStqK2oraitqK2oraitqK2oraitqK2oraitqK2oraitqK3srjCugK7QrwCvMK9wr+CwULFEsjyyYLK4s0yzfLQItEC0dLSYtLy07LUctUy1fLYAtoC3kLiguQC5XLl8uay6OLpsusC65LsUu9i8SLy0vOS9GL40wFTCHMLExKDGMMeUyCjI3MkQyUDJdMnEyjzLNMwIzSDORM+M0KjRwNMY1ITVzNbs2BzZkNoY2yjdZN4o3uDfqOCg4WjhmOKo5MDlKOW05pTnNOeA57ToFOjE6RDpeOnE6hTqfOro61DrfOwg7GjstO5Q72DwDPEQ8XTx3PJI8rTzcPSQ9jT4iPks+cj6aPsA+5j78Pwk/Fj8pPzw/TD9cP3k/nz/JP9Y/+0AQQChAMUBDQGpAjUCZQLxAyEDUQOBA9kECQQ5BM0FDQWpBdkF+QYZBk0GbQaNBq0G7QcNBy0HTQdtB40HrAAAAAAACAAAAAwAAABQAAwABAAAAFAAEBhgAAACiAIAABgAiAC8AOQB+AKMArAEHARMBGwEjASsBMwE3AT4BSAFNAVsBYQFlAX4BoQGwAc4CGwI3AscC3QMEAwwDEgMbAyMDKAPADj8ehR6eHvkgAyALIBQgFiAaIB4gIiAmIDAgMyA6IEQgcCB5IIkgoSCkIKYgqSCuILIgtSC6IL8hEyEWISIhJiEuIVQhXiGTIgIiBiIPIhIiGiIeIisiSCJgImUn6f//AAAAIAAwADoAoAClAK4BCgEWAR4BJgEuATYBOQFBAUoBUAFeAWQBaAGgAa8BzQIYAjcCxgLYAwADBgMSAxsDIwMmA8AOPx6AHp4eoCAAIAQgEyAWIBggHCAgICYgLyAyIDkgRCBwIHQggCChIKQgpiCoIKsgsSC0ILggvCETIRYhIiEmIS4hUyFbIZAiAiIFIg8iESIaIh4iKyJIImAiZCfo//8AAAEaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/rT/cAAAAAAAAP8N/wX+/v78/YnzigAA4dsAAAAA4ZLhoeGXAAAAAAAA4X8AAOGg4YzhLuEW4Rbg/OE94ULhQwAAAAAAAAAAAAAAAODE4MTgruDf4KvgIeAdAADgCQAA3/gAAN/v3+Tf2d+235gAANm3AAEAogAAAL4BRgFMAVoCDAIeAigCMgI8AkYCSAJSAmACZgJ8AoIChAKwArICtAK2AAAAAAK4AsICygAAAAAAAAAAAAAAAALKAAAC0gOEAAAAAAAAA4QDiAOMAAADjgAAAAAAAAAAAAAAAAAAAAAAAAN+A4ADhgOIA4oDjgAAAAAAAAAAAAAAAAAAA4YAAAOKAAADigAAAAAAAAAAAAADggAAAAABkAGmAccBrgHfAgwBywHIAbcBuAGsAfMBogGzAaEBrwGjAaQB+gH3AfkBqAHKAAEAGQAaAB8AIwA0ADUAOQA7AEcASABKAE8AUABWAG0AbwBwAHQAegB9AJAAkQCWAJcAnwG7AbABvAIBAbYCMwCjALsAvADBAMUA1gDXANsA3QDqAOwA7gDzAPQA+gERARMBFAEYAR4BIQE0ATUBOgE7AUMBuQHUAboB/wGRAacB3QHuAfIB1QHNAjEBzgFHAcMCAAHPAjsB0QH9AYgBiQI0AgoBzAGqAjwBhwFIAcQBdgFzAXcBqQASAAIACgAXABAAFgAYAB0ALwAkACYALABCAD0APgA/ACIAVABgAFcAWABrAF4B9QBqAIMAfgCAAIEAmABuAR0AtACkAKwAuQCyALgAugC/ANEAxgDIAM4A5ADfAOAA4QDEAPgBBAD7APwBDwECAfYBDgEnASIBJAElATwBEgE+ABQAtgADAKUAFQC3ABsAvQAeAMAAHAC+ACAAwgAhAMMAMQDTAC0AzwAyANQAJQDHADYA2AA4ANoANwDZADoA3ABGAOgARADmAEUA5wBAAN4APADpAEkA7QBLAO8ATQDxAEwA8ABOAPIAUQD1AFMA9wBSAPYAVQD5AGkBDQBoAQwAbAEQAHEBFQBzARcAcgEWAHUBGQB3ARsAdgEaAHsBHwCPATMAjAEwAH8BIwCOATIAiwEvAI0BMQCTATcAmQE9AJoAoAFEAKIBRgChAUUAYgEGAIUBKQAJAKsAeAEcAHwBIAI4AjICOQI9AjoCNQIUAhUCGAIcAh0CGgITAhICHgIbAhYCGQCVATkAkgE2AJQBOAARALMAEwC1AAsArQANAK8ADgCwAA8AsQAMAK4ABACmAAYAqAAHAKkACACqAAUApwAuANAAMADSADMA1QAnAMkAKQDLACoAzAArAM0AKADKAEMA5QBBAOMAXwEDAGEBBQBZAP0AWwD/AFwBAABdAQEAWgD+AGMBBwBlAQkAZgEKAGcBCwBkAQgAggEmAIQBKACGASoAiAEsAIkBLQCKAS4AhwErAJwBQACbAT8AnQFBAJ4BQgGUAZUBkgGTAcEBwgG9Ab8BwAG+AdYB2AGrAZ4CDQHsAfEB4AHhAeQB8AHqAeIB4wHcAe8B7QHnAegB6wHlAdsCEQIOAg8CEAIDAgYCCAH0AfwB+wABAAAACgCeASoAAkRGTFQAfmxhdG4ADgB0AAhBWkUgAFxDQVQgAEhDUlQgAFxLQVogAFxNT0wgADRST00gADRUQVQgAFxUUksgAFwAAP//AAcAAAABAAIABQAGAAcACAAA//8ABwAAAAEAAgAEAAYABwAIAAD//wAHAAAAAQACAAMABgAHAAgABAAAAAD//wAGAAAAAQACAAYABwAIAAljY21wAIRkbm9tAH5mcmFjAFxsb2NsAFZsb2NsAFBsb2NsAEpudW1yAERwbnVtAD50bnVtADgAAAABAA8AAAABAA4AAAABAAwAAAABAAgAAAABAAkAAAABAAcAAAAPABAAEgAUABYAGAAaABwAHgAgACIAJAAmACgAKgAsAAAAAQANAAAAAgAAAAEALgaUBcQFrgWSBXYFkgV2BWIFTAUQBQIE9ATcBM4EtgSoApIChAJkBNwCPgTcAiAE3AIABNwB3gTcAboE3AGUBNwBbATcAUIE3AEWBNwA6ATcALgE3ACOBM4AbABeAAEAAAABAAgAAQAiAAsABgAAAAEACAADAAEEdgABABQAAQHmAAEAAAAtAAEAAQGQAAYAAAABAAgAAwABABIAAQRUAAAAAQAAACsAAgACAV4BZwAAAXIBcgAKAAYAAAABAAgAAwAAAAEEKgAMAZoBmgGaAZoBmgGaAZoBmgGaAZoBmgG+AAEAAAApAAYAAAABAAgAAwAAAAED+gALAWoBagFqAWoBagFqAWoBagFqAWoBjgABAAAAJwAGAAAAAQAIAAMAAAABA8wACgE8ATwBPAE8ATwBPAE8ATwBPAFgAAEAAAAlAAYAAAABAAgAAwAAAAEDoAAJARABEAEQARABEAEQARABEAE0AAEAAAAjAAYAAAABAAgAAwAAAAEDdgAIAOYA5gDmAOYA5gDmAOYBCgABAAAAIQAGAAAAAQAIAAMAAAABA04ABwC+AL4AvgC+AL4AvgDiAAEAAAAfAAYAAAABAAgAAwAAAAEDKAAGAJgAmACYAJgAmAC8AAEAAAAdAAYAAAABAAgAAwAAAAEDBAAFAHQAdAB0AHQAmAABAAAAGwAGAAAAAQAIAAMAAAABAuIABABSAFIAUgB2AAEAAAAZAAYAAAABAAgAAwAAAAECwgADADIAMgBWAAEAAAAXAAYAAAABAAgAAwAAAAECpAACABQAOAABAAAAFQACAAEBaAFxAAAABgAAAAEACAADAAAAAQJ+AAEAEgABAAAAEwABAAEBcgABAAAAAQAIAAECFv/DAAYAAAABAAgAAgIIAfgB8AH4AAIAAAAQABUBwgGkAYgBbAFSATgBIAEIAPIA3ADIALQAogCQAIAAcABiAFQASAA8ACwAAQABAAEAAQABAAEAAAARAAAAAQACAAEAAgAAAAIAAQACAAEAAAAAAAAAAQADAAEAAQACAAAAAwABAAEAAgABAAAAAAAAAAEABAABAAEAAQACAAAABAABAAEAAQACAAEAAAAAAAAAAQAFAAEAAQABAAEAAgAAAAUAAQABAAEAAQACAAEAAAAAAAAAAQAGAAEAAQABAAEAAQACAAAABgABAAEAAQABAAEAAgABAAAAAAAAAAEABwABAAEAAQABAAEAAQACAAAABwABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAIAAEAAQABAAEAAQABAAEAAgAAAAgAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAJAAEAAQABAAEAAQABAAEAAQACAAAACQABAAEAAQABAAEAAQABAAEAAgABAAAAAAAAAAEACgABAAEAAQABAAEAAQABAAEAAQACAAAACgABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQALAAEAAQABAAEAAQABAAEAAQABAAEAAgAAAAsAAQABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAEBrwABAAEAAgACAUoBUwABAa8BrwACAAEAAQGvAAEAAAABAAgAAQA6AAoAAQAAAAEACAABAAb/9gACAAEBVAFdAAAAAQAAAAEACAABABQAFAABAAAAAQAIAAEABgAeAAIAAQFKAVMAAAABAAAAAQAIAAEAJAAIAAEAAAABAAgAAQAWAAcABgAAAAEACAABAAgAAQAOAAEAAQGqAAIAFgAGAAEASgABAAEASgABAAAACwABAO4AAQABAO4AAQAAAAoAAQAAAAEACAABAAYAAQABAAIAdwEbAAEAAAABAAgAAQAGAAUAAQABAN0AAgAAAAEACAABAAgAAQAOAAEAAQDnAAIA3gIkAAIAAAABAAgAAQAIAAEADgABAAEA4wACAN4CIQABAAAAAQAIAAEABgABAAEAAgDdAOoABgAAAAEACAACALwAuACcAIAABAAAAFwAOAAUAAIAFgAGAAAAAQACAAIAAQABAAAABQAAAAEAAQABAAEAAAADAAIAFgAGAAAAAQACAAIAAQABAAAABgAAAAEAAQABAAEAAAAEAAIAFgAGAAAAAQACAAIAAQABAAAAAgAAAAEAAQABAAEAAAACAAIABAISAhYAAQIYAh8AAQIgAiEAAgIjAiQAAgACAAQA3QDdAAEA4wDjAAMA5wDnAAIA6gDqAAEAAgAAAAEABADdAOMA5wDqAAQAAAABAAgAAQBOAAIALAAKAAQAHAAWABAACgIoAAICHAInAAICHgImAAICFAIlAAICFQAEABwAFgAQAAoCLAACAhwCKwACAh4CKgACAhQCKQACAhUAAQACAhgCGgKQAE4CrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgOnABYCogBOAqMANQKjADUCowA1AqMANQKjADUCtwBOArcATgLrADEC6wAxAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CSQBOAskANQLJADUCyQA1AskANQLMAE4DKgA5ARwATgKJAE4BHABOARwABgEc//4BHAA+ARwAQgEcAAABHAA0ARwADwEcACUBHP/4AW0ADAKlAE4CpQBOAfwATgH8AE4B/ABOAfwATgJLAEQDnABOAvkATgL5AE4C+QBOAvkATgL5AE4C+QBOAs8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUC1gA2As8ANQPgADUCfgBOAoAATgLRADUCnQBOAp0ATgKdAE4CnQBOAocALwKHAC8ChwAvAocALwKHAC8CvQBKAjIAFQIyABUCMgAVAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQKZABYDzAAbA8wAGwPMABsDzAAbA8wAGwKiABgCbQAJAm0ACQJtAAkCbQAJAm0ACQJtAAkCbQAJAm0ACQI1ACICNQAiAjUAIgI1ACICQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgOVACoCdABHAjAAKgIwACoCMAAqAjAAKgIwACoCdAArAnQAKwJwACsCXQApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkBhQAYAlMAHAJTABwCUwAcAlMAHAJrAEcCbv/0AQwANwELAEcBCwBHAQv//gEL//YBCwA3AQwANwEM//gBCwAtAQsABwELABsBC//wAh0ANwER/+oBEf/qAkAARwJAAEcBCgBHAQoARwEKAEcBCgA1AWsAJgOhAEcCawBHAmsARwJrAEcCawBHAmsARwJrAEcCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCeAApAngAKQJ4ACkCeAApAngAKQJ4ACkCXwApAl8AKQJfACkCXwApA8IAKQJ0AEcCdABHAnQAKwGmAEcBpgBHAaYANgGmADoCGwAkAhsAJAIbACQCGwAkAhsAJAKhAEcBhQAQAYUAEAGFABACYwA/AmMAPwJjAD8CYwA/AmMAPwJjAD8CYwA/AmMAPwKIAD8CiAA/AogAPwKIAD8CiAA/AogAPwJjAD8CYwA/AmMAPwJjAD8CYwA/Ai8ADQNNABIDTQASA00AEgNNABIDTQASAicAEQJVADACVQAwAlUAMAJVADACVQAwAlUAMAJVADACVQAwAgAAIwIAACMCAAAjAgAAIwGmABUBogAUAosAFQKVADUBTQAfAlEALQJYABoCYQAZAlwAMwKMADUB9QAYAooAMwKGADMCaAAuAmgAKgJoACgCaAAhAmgAFAJoADgCaAAuAmgAKgJoADUCaAA4AcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYBKv+RA5YAIwOhACMESQAnA5AAIwQkABYDpQAjBDkAFgQ9AC8D0QAZAcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYA7gAAAO4AAAH0AAAD6AAAAfQAAAPoAAABLAAAAPoAAACnAAACaAAAANcAAAB4AAAAPwAAAAAAAACnAAABQAAQAUAAHQDXABcAtAADAOEAHADMAAQC4AAXARcANwEXADcBoQAVAZsAEADXABcBKwAXAZ8ACwHgAE4CawAVAWX/+gFd//IAsQAEAAH/QQFZAB8CEQAfAxEAHwI2AAABOQA7AS8ACQFfABkBUQAIAUAATgE2ABAAtAADAWoAAwF0ABUBdAAQAL4AFQC+ABABuQAZAbkAIADsABkA4gAVAVIAGQCoABkClwBOA8oAOALzABkCpwAjAjEALwOtACkCnwAbA9MACgFjABsAtgAZAV8AGQEJAE4BCQBOAasAFQHuABABogAVAz8AKQQ/AE4ClwBOApcANQIwACoClwA1AnwALwJwACsC5gAZAqQAHALNAC0C3AASAqoAMwLOABUCtAAlAqUAPANxACIDDwAgArEAJgS5AE4CSQAkAs4AFQIyABUCJwAVBCEAIgJhAAkCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKACQCCgAkAgoAOwIvAA0DzgAqAuwAOwHOAA4DCAAnAsAAFgLMAE4COQAtAqgAFQJxAD8CbgArA8IAGwVmABsB8QATAm4AEgH0ABUCbgAQAAAAFAAAABQAAAAUAAAAFAAAABQAAAAAAAAAFAAAABQAAAAQAAAAFAAAABEAAAAUAAAAFAAAABQAAAAUAAAAFAAAABQAAAAUAAAAFAAAABAAAAAQAAAAEAAAAA0AAAAUAAAAFAAAABQAAAALAAAAFAAAABQAAAASAAAAFAF3ABQAxwAUARsAFAEbABQBcgAUAWYAFAFmABQBEQAQAOAAFAFvABEBSAAUASIAFADPABQAAgAAAAAAAP+cADIAAAAAAAAAAAAAAAAAAAAAAAAAAAI+AAAAJADJAQIBAwEEAQUBBgEHAQgAxwEJAQoBCwEMAQ0AYgEOAK0BDwEQAREAYwCuAJAAJQAmAP0A/wBkARIAJwETARQA6QAoAGUBFQDIARYBFwEYARkBGgDKARsBHADLAR0BHgEfASAAKQAqAPgBIQEiACsBIwAsASQAzADNAM4A+gElAM8BJgEnASgBKQAtAC4BKgAvASsBLAEtAOIAMAAxAS4BLwEwAGYBMQAyANAA0QEyATMBNAE1ATYAZwE3ANMBOAE5AToBOwE8AT0BPgE/AUAAkQCvALAAMwDtADQANQFBAUIBQwA2AUQA5AD7AUUBRgA3AUcBSAA4ANQBSQDVAGgBSgDWAUsBTAFNAU4BTwFQAVEBUgFTAVQBVQFWADkAOgFXAVgBWQFaADsAPADrAVsAuwFcAV0BXgFfAD0BYADmAWEARABpAWIBYwFkAWUBZgFnAWgAawFpAWoBawFsAW0AbAFuAGoBbwFwAXEAbgBtAKAARQBGAP4BAABvAXIARwFzAQEA6gBIAHABdAByAXUBdgF3AXgBeQBzAXoBewBxAXwBfQF+AX8ASQBKAPkBgAGBAEsBggBMANcAdAB2AHcBgwGEAHUBhQGGAYcBiAGJAE0BigBOAYsATwGMAY0BjgDjAFAAUQGPAZABkQB4AZIAUgB5AHsBkwGUAZUBlgGXAHwBmAB6AZkBmgGbAZwBnQGeAZ8BoAGhAKEAfQCxAFMA7gBUAFUBogGjAaQAVgGlAOUA/AGmAIkAVwGnAagAWAB+AakAgACBAaoAfwGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgBZAFoBtwG4AbkBugBbAFwA7AG7ALoBvAG9Ab4BvwBdAcAA5wHBAJ0AngCbABMAFAAVABYAFwAYABkAGgAbABwBwgHDAcQBxQHGAccByAHJAcoBywHMAc0BzgHPAdAB0QHSAdMB1AHVAdYB1wHYAdkB2gHbAdwB3QHeAd8AvAD0AeAB4QD1APYB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMB9AH1AfYB9wH4AfkAAwH6AfsB/AH9Af4B/wIAAgECAgIDAgQCBQIGAgcCCAIJABEADwAdAB4AqwAEAKMAIgCiAMMAhwANAgoABgASAD8CCwIMABAAsgCzAEIACwAMAF4AYAA+AEAAxADFALQAtQC2ALcAqQCqAL4AvwAFAAoCDQAjAAkAiACGAIsAigCMAIMCDgIPAF8A6ACCAhAAwgIRAhICEwIUAIQCFQAHAhYCFwIYAhkCGgIbAhwCHQIeAh8CIAIhAiICIwCFAiQCJQImAJYADgDvAPAAuAAgAI8AIQAfAJUAlACTAKcAYQCkAEEAkgInAJwCKAIpAJoAmQClAioAmAAIAMYCKwIsAi0CLgIvAjACMQIyAjMCNAI1AjYCNwI4AjkCOgI7AjwCPQI+Aj8CQAJBAkICQwJEAkUCRgJHAkgCSQJKAksCTAJNAI4A3ABDAI0A3wDYAOEA2wDdANkA2gDeAOAGQWJyZXZlB3VuaTFFQUUHdW5pMUVCNgd1bmkxRUIwB3VuaTFFQjIHdW5pMUVCNAd1bmkwMUNEB3VuaTFFQTQHdW5pMUVBQwd1bmkxRUE2B3VuaTFFQTgHdW5pMUVBQQd1bmkxRUEwB3VuaTFFQTIHQW1hY3JvbgdBb2dvbmVrCkNkb3RhY2NlbnQGRGNhcm9uBkRjcm9hdAZFY2Fyb24HdW5pMUVCRQd1bmkxRUM2B3VuaTFFQzAHdW5pMUVDMgd1bmkxRUM0CkVkb3RhY2NlbnQHdW5pMUVCOAd1bmkxRUJBB0VtYWNyb24HRW9nb25lawd1bmkxRUJDB3VuaTAxMjIKR2RvdGFjY2VudARIYmFyAklKB3VuaTFFQ0EHdW5pMUVDOAdJbWFjcm9uB0lvZ29uZWsGSXRpbGRlB3VuaTAxMzYGTGFjdXRlBkxjYXJvbgd1bmkwMTNCBk5hY3V0ZQZOY2Fyb24HdW5pMDE0NQNFbmcHdW5pMUVEMAd1bmkxRUQ4B3VuaTFFRDIHdW5pMUVENAd1bmkxRUQ2B3VuaTFFQ0MHdW5pMUVDRQVPaG9ybgd1bmkxRURBB3VuaTFFRTIHdW5pMUVEQwd1bmkxRURFB3VuaTFFRTANT2h1bmdhcnVtbGF1dAdPbWFjcm9uBlJhY3V0ZQZSY2Fyb24HdW5pMDE1NgZTYWN1dGUHdW5pMDIxOAd1bmkxRTlFBlRjYXJvbgd1bmkwMjFBBlVicmV2ZQd1bmkxRUU0B3VuaTFFRTYFVWhvcm4HdW5pMUVFOAd1bmkxRUYwB3VuaTFFRUEHdW5pMUVFQwd1bmkxRUVFDVVodW5nYXJ1bWxhdXQHVW1hY3JvbgdVb2dvbmVrBVVyaW5nBlV0aWxkZQZXYWN1dGULV2NpcmN1bWZsZXgJV2RpZXJlc2lzBldncmF2ZQtZY2lyY3VtZmxleAd1bmkxRUY0BllncmF2ZQd1bmkxRUY2B3VuaTFFRjgGWmFjdXRlClpkb3RhY2NlbnQGYWJyZXZlB3VuaTFFQUYHdW5pMUVCNwd1bmkxRUIxB3VuaTFFQjMHdW5pMUVCNQd1bmkwMUNFB3VuaTFFQTUHdW5pMUVBRAd1bmkxRUE3B3VuaTFFQTkHdW5pMUVBQgd1bmkxRUExB3VuaTFFQTMHYW1hY3Jvbgdhb2dvbmVrCmNkb3RhY2NlbnQGZGNhcm9uBmVjYXJvbgd1bmkxRUJGB3VuaTFFQzcHdW5pMUVDMQd1bmkxRUMzB3VuaTFFQzUKZWRvdGFjY2VudAd1bmkxRUI5B3VuaTFFQkIHZW1hY3Jvbgdlb2dvbmVrB3VuaTFFQkQHdW5pMDEyMwpnZG90YWNjZW50BGhiYXIJaS5sb2NsVFJLB3VuaTFFQ0IHdW5pMUVDOQdpbWFjcm9uB2lvZ29uZWsGaXRpbGRlAmlqB3VuaTAyMzcHdW5pMDEzNwZsYWN1dGUGbGNhcm9uB3VuaTAxM0MGbmFjdXRlBm5jYXJvbgd1bmkwMTQ2A2VuZwd1bmkxRUQxB3VuaTFFRDkHdW5pMUVEMwd1bmkxRUQ1B3VuaTFFRDcHdW5pMUVDRAd1bmkxRUNGBW9ob3JuB3VuaTFFREIHdW5pMUVFMwd1bmkxRUREB3VuaTFFREYHdW5pMUVFMQ1vaHVuZ2FydW1sYXV0B29tYWNyb24GcmFjdXRlBnJjYXJvbgd1bmkwMTU3BnNhY3V0ZQd1bmkwMjE5BnRjYXJvbgd1bmkwMjFCBnVicmV2ZQd1bmkxRUU1B3VuaTFFRTcFdWhvcm4HdW5pMUVFOQd1bmkxRUYxB3VuaTFFRUIHdW5pMUVFRAd1bmkxRUVGDXVodW5nYXJ1bWxhdXQHdW1hY3Jvbgd1b2dvbmVrBXVyaW5nBnV0aWxkZQZ3YWN1dGULd2NpcmN1bWZsZXgJd2RpZXJlc2lzBndncmF2ZQt5Y2lyY3VtZmxleAd1bmkxRUY1BnlncmF2ZQd1bmkxRUY3B3VuaTFFRjkGemFjdXRlCnpkb3RhY2NlbnQHemVyby50ZgZvbmUudGYGdHdvLnRmCHRocmVlLnRmB2ZvdXIudGYHZml2ZS50ZgZzaXgudGYIc2V2ZW4udGYIZWlnaHQudGYHbmluZS50Zgl6ZXJvLmRub20Ib25lLmRub20IdHdvLmRub20KdGhyZWUuZG5vbQlmb3VyLmRub20JZml2ZS5kbm9tCHNpeC5kbm9tCnNldmVuLmRub20KZWlnaHQuZG5vbQluaW5lLmRub20JemVyby5udW1yCG9uZS5udW1yCHR3by5udW1yCnRocmVlLm51bXIJZm91ci5udW1yCWZpdmUubnVtcghzaXgubnVtcgpzZXZlbi5udW1yCmVpZ2h0Lm51bXIJbmluZS5udW1yB3VuaTIxNTMHdW5pMjE1NAlvbmVlaWdodGgMdGhyZWVlaWdodGhzC2ZpdmVlaWdodGhzDHNldmVuZWlnaHRocwd1bmkyMDgwB3VuaTIwODEHdW5pMjA4Mgd1bmkyMDgzB3VuaTIwODQHdW5pMjA4NQd1bmkyMDg2B3VuaTIwODcHdW5pMjA4OAd1bmkyMDg5B3VuaTIwNzAHdW5pMDBCOQd1bmkwMEIyB3VuaTAwQjMHdW5pMjA3NAd1bmkyMDc1B3VuaTIwNzYHdW5pMjA3Nwd1bmkyMDc4B3VuaTIwNzkHdW5pMDBBMAd1bmkyMDAyB3VuaTIwMDMHdW5pMjAwMAd1bmkyMDAxB3VuaTIwMDQHdW5pMjAwNQd1bmkyMDA2B3VuaTIwMDcHdW5pMjAwOAd1bmkyMDA5B3VuaTIwMEEHdW5pMjAwQgd1bmkyMDJGB3VuaTI3RTgHdW5pMjdFOQd1bmkyMDE2FnBlcmlvZGNlbnRlcmVkLmxvY2xDQVQbcGVyaW9kY2VudGVyZWQubG9jbENBVC5jYXNlB3VuaTBFM0YGbWludXRlBnNlY29uZAd1bmkyMTEzCWVzdGltYXRlZAd1bmkyMTE2B3VuaTIwQkYHdW5pMjBCNQ1jb2xvbm1vbmV0YXJ5BGRvbmcERXVybwd1bmkyMEIyB3VuaTIwQjQHdW5pMjBBRAd1bmkyMEJFBGxpcmEHdW5pMjBCQQd1bmkyMEJDB3VuaTIwQTYHdW5pMjBCMQd1bmkyMEJEB3VuaTIwQTgHdW5pMjBCOQd1bmkyMEI4B3VuaTIwQUUHdW5pMjBBOQhlbXB0eXNldAd1bmkyMTI2B3VuaTIyMDYHdW5pMDBCNQdhcnJvd3VwCmFycm93cmlnaHQJYXJyb3dkb3duCWFycm93bGVmdAd1bmkwMzA4B3VuaTAzMDcJZ3JhdmVjb21iCWFjdXRlY29tYgd1bmkwMzBCC3VuaTAzMEMuYWx0B3VuaTAzMDIHdW5pMDMwQwd1bmkwMzA2B3VuaTAzMEEJdGlsZGVjb21iB3VuaTAzMDQNaG9va2Fib3ZlY29tYgd1bmkwMzEyB3VuaTAzMUIM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AAAR7AAAEfIAABHmAAAR8gAAEfgAABHgAAAR2gAAEfIAABHUAAARzgAAEcgRwhG8EbYRsBHCEbwRthGqEcIRvBG2EaQRwhG8EbYRqhHCEZ4RthHIEcIRvBG2EZgRwhG8EbYRkhHCEbwRthGMEcIRvBG2EcgRwhGeEbYRyBHCEbwRthGGEcIRvBG2EcgRwhG8EbYRsBHCEbwRthHIEcIRnhG2EcgRwhG8EbYRhhHCEbwRthGAEcIRvBG2EXoRwhG8EbYRdBHCEbwRthFuEWgRYhFcEVYRwhG8EbYRUAAAEUoAABFEAAARPgAAETgAABM8AAASKAAAETIAABEsAAARMgAAESYAABEyAAASKAAAESAAABEaAAARFAAAEQ4AABEUAAARCAAAERQAABEaAAARAgAAERoAABD8AAAQ9gAAEPAAABDqAAAQ5AAAEN4AABDkAAAQ6gAAENgAABDSEMwQxhDAELoQzBDGEMAQtBDMEMYQwBCuEMwQxhDAEKgQzBDGEMAQ0hDMEKIQwBDSEMwQxhDAEJwQzBDGEMAQ0hCWEMYQwBC6EJYQxhDAENIQlhCiEMAQ0hCWEMYQwBCcEJYQxhDAEJAQlhDGEMAQihDMEMYQwBCEEMwQxhDAENIQzBDGEMAQfhDMEMYQwBCQEMwQxhDAEjoAABB4AAAQcgAAEGwAABBmAAAQbAAAEGAAABBsAAAQWgAAEGwAABByAAAQbAAAEFQAABBOAAAQSAAAEEIAABA8AAAQQgAAEDYAABBCAAAQMAAAEEIAABBIAAAQKgAAEEgAABBCAAAQJAAAEEIAABAeAAAQQgAAEBgAABASAAAQDAAAEBIAABAGAAAQEgAAEAAAABASAAAP+gAAD/QP7g/oAAAP9A/uD+IAAA/0D+4P3AAAD/QP7g/iAAAP1g/uD/oAAA/0D+4P0AAAD/QP7g/KAAAP9A/uD8QAAA/0D+4PvgAAD/QP7g+4AAAP9A/uD74AAA/WD+4P+gAAD/QP7g+yAAAP9A/uD6wAAA/0D+4PpgAAD/QP7g/6AAAP1g/uD/oAAA/0D+4PoAAAD/QP7g+aAAAP9A/uD/oAAA/0D+4PlAAAD/QP7g+OAAAP9A/uD4gAAA+CAAAPfAAAD3YAAA9wAAAPagAAD2QAAA9qAAAPXgAAD2oAAA9wAAAPWAAAD1IAAA9qAAAPTA9GD0AAAA9MD0YPQAAAD0wPRg9AAAAPOgAADzQPLg8oAAAPNA8uDyIAAA80Dy4PHAAADzQPLg8WAAAPNA8uDxwAAA9YDy4POgAADzQPLg8QAAAPNA8uDwoAAA80Dy4PBAAADzQPLg7+AAAPNA8uDzoAAA9YDy4POgAADzQPLg74AAAPNA8uDvIAAA80Dy4POgAADzQPLg7sAAAPNA8uDuYAAA7gAAAO2gAADtQAAA7OAAAO1AAADsgAAA7UAAAOwgAADtQAAA68AAAOtgAADrAAAA6qAAAOpAAAFOIAAA6eAAAOmAAADpIAAA6YAAAOjAAADpgAAA6GAAAOmAAADoAAAA6YAAAOpAAADnoAAA50AAAU4gAADm4AAA6YAAAOaAAADpgAAA6AAAAOmAAADmIAAA6YAAAOXAAADlYAAA5QAAAOVgAADkoAAA5EAAAOSgAADj4AAA44DjIOLAAADiYOMg4sAAAOOA4yDiwAAA44DjIOIAAADhoOFA4OAAAOCAAADgIAAA38AAAN9gAADfAAAA32AAAN6gAADfYAAA38AAAN5AAADd4AAA32AAAN2AAAEEIAAA3SDcwNxg3ADboNzA3GDcANtA3MDcYNwA2uDcwNxg3ADbQNzA2oDcAN0g3MDcYNwA2iDcwNxg3ADZwNzA3GDcANlg3MDcYNwA3SDcwNqA3ADdINzA3GDcANkA3MDcYNwA3SDcwNxg3ADboNzA3GDcAN0g3MDagNwA3SDcwNxg3ADZANzA3GDcANig3MDcYNwA2EDcwNxg3ADX4NzA3GDcANeA3MDcYNwA1yDcwNxg3ADWwAAA1mAAANYAAADVoAAA1UAAANTgAADUgAAA1CAAANPAAADUIAAA02AAANQgAADUgAAA0wAAANVAAADSoAAA0kAAANKgAADR4AAA0qAAANVAAADRgAAA1UAAANEgAADQwAAA0GAAANAAz6DPQAAA0ADPoM9AAADQAM+gzuAAAM6AziD0AM3AzWDOIPQAzcDNAM4g9ADNwMygziD0AM3AzEDOIPQAzcDOgM4gy+DNwM6AziD0AM3Ay4DOIPQAzcDOgMsg9ADNwM1gyyD0AM3AzoDLIMvgzcDOgMsg9ADNwMuAyyD0AM3AysDLIPQAzcDKYM4g9ADNwMoAziD0AM3AzoDOIPQAzcDJoM4g9ADNwMrAziD0AM3AyUAAAMjgAADIgAAAyC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ACIAAP/5ACUAAP+4AAYAAAAAAAAABf/+AAAADP/w/7QADv/z/97/4P/tAA//3//v/+n/7QAo//H//QAoAA7/6gAAAA3/4v/i//sAHv/R//QAAQAA/+T/5v/vAAAAEgA3ACoAKAAAAAAAAP/UAAAAHgAVAAAAAAApAAAALgAr//v/y//1AAD/swAAAAD//wADAAD/3AAAAAD/+AAAAAD/5AAAAAAADwAAAAAAAP/+AAAABgAA//gALv/PAAAAGwAAAAAAHAAA/7cABAAA//0AAAAB//8AAAAA////+gAA//////////4AAP////8AAAAA//v/+AAD//4AAAAA//cACf////n////+/+v////+AAAAAP/2ABD/+P/4//r/+//2/+z/7AAA//8AAP/6//sAAAAA//4AAAAE//0AAv/7AAUAAP/9AAAAAP/7AAQAAAASAAAAAAADAAAAAAADAAAAAP/+AAAAAAAA//8AAP/5AAD//wABAAH/9v//AAD//f//AAD/+gAPAAAABQAA//X/9AAA////+QAF//3/+v/8//P//AAA//P/9gAAAAD/8P/4AAD/+//+//8AAAAK//UAAAAG//z/3v/6AAIAAP/o/+7/+gAHAAQAAAAHAAf//f/9AAAADgAA//gAAAAAAAAABQAAAAb//gAKAA3//gAAAAQAAAAAAAAAAAAA//oAAAAAAAUAAAAA/+sAAAAAAAAAAAAAAAAAAwAAAAIAAP/8//wAEQAAAAIAAAAf//4AAAAAAAAAAAAIAAAAAAAEAAAAAAAA/8sAAAAD//P/9gAAAAD/9f/1//P/9v/3//8AAAAAAAAAAAAc//n/+f/3AAn//f/nAAAAGAAA//b/+///AAAAAAAQABgAFAAAAA0AAP/UAAAAAP/p/+MAAAAVAAf////3AA//1QAAAAT/w//vAAAAAwAAAAT/7gAIAAIACQATAAD/9wAHAAD////z//j/9gAAAAUACgAA//7/9//aAAAAAf/yABX//P/4/9EAAP/+AAMAAQAZAA4AAAAA//gACf/+AAD/+f/qAAAAAP/q/+v/+f/r//D//gAA//8AAP/6AAkABv/uAAEAD//5/8z//AAPAAD/2f/1//gAAAAAAAkAEwAPAAAAAgAAAA8AAP/+AAYAAP/PAAwAAv//AAAACwARAAD//gAG/+kAAP//AAD//f/r//7//gAGAAwAAP/ZAAUAAP///+H/6AAAAAAAAAAC/////P//ABMAAAAE//kAGv/9//AABwAA//MABv/9AAwAFAABAAgBNAE6AUwBTQFRAa8BvQG+AAIABwE0ATQABgE6AToABwFMAUwABQFNAU0ABAFRAVEAAgGvAa8AAwG9Ab0AAQABAAIAAAAIAAI6FAAEAAA+MDrYAE8AXgAAAAD/5wAO/+X/7v/9//H//v/+//L/8v/9//H/r//3//b/zf/+//7/2wAQ//P//wAK/77/zf/p/+X/5P/x/+f/+wAAAAD/v//G/8YAAP/DAAwAEv/d/64AAAAC/9r/xv/A//8AAAAIABYAAP/NAAn/9QAA/+gAAP/G//3/0v/3AAIACf////L////+AAD/0//l/90AAP/J/+T/vf/z//4AGQAA//b/+wAI/+H/wQARAAD/0wAI/9n/ywAJAAAAAAAAAAD/9AAA//8AAAAAAAAAAAAA//8AAP+///z//P/fAAD////5AAEAAgAAAAH/w//pAAAAAAAAAAT/8wAKAAAAAP/s/+z/7wAA//AAAAAD/+r/z///AAH/9P/w/+T//f/9AAUAAgAA//f//wAA//7//wAA/+4AAf/6//MACgASAAAABAAAAAAAAP/t//z/6AAA//D/7f/eAAD/9QAEAAD/7v/qAAn/0v/gAAAAAP/5AAD/9v/yAAAAAAAA//EACP/+//L//v/z//YAAP/z//b//v/0AA//8P/+AA8AAP////0AFv/zAAAABQAR/9v/8v/+//H/8v/o//kAAAAAAA4ACgADAAD//gAHABf/4wAKAA0AAv/kAA8AGgAkABwAAgAUAAD/+wAH//oAAwAAAAD/+v/5//L/9gACAAYAHv/zACIAAwAA/93/9v/bAAAAAAAEAAD/+QAVABUAAAAVAAQAEAAYAAMABQAAAAQABwAC//oAAgAAAAAAAP/6//4AAwACAAQAAAAAAAQABAACAAT/wv/9AAD/6AAAAAYAAAAAAAYAAP///8H/9AAAAAD//gAE//gAGAAAAAD/7//v//EAAP/3//YAAgAA/9T/7AAN//3/9P/q/+T/5wAK//4AAP/9//4AAP//AAAAAP/3AAQAA//4AAwAFQABAAQAAAAA//3/9wAAAAAAAP/6/+7/6AAD//EABQAA/+7/3AAM/9P/6f/+AAAABf//AAH/+P/yAAAAAAAB/+YAAAADAAD//wAAAAAAAAAAAAD////e//8AAP/0AAAAAAAA//UAAAAA////7P/zAAIAA//+AAX/+QAQAAAAAP/6//7//wAA//z/3//3//T/5//Y//7//P/9//z/6//sAAn/7AAAAAD/4/////0AAAAA//sABAAG//UACwAUAAQACgAJAAP//v/3AAD/8AAA//7////yAAT/7P/zAAD/+v/XABL/6f/p/+kAAAAG//4AAgAA//wAAAAA////8v/9AAAAAAAAAAAAAAAAAAAAAAAD/77/+wAA/+cAAAAE//3//AAAAAD/+/+6//X//wAA//4AEv/4ABcAAAAA/+f/6//uAAD/9QAA//7/9f/S/98AA//+//P/6P/e/+sAAP/2AAD//P/yAAD//P//AAD/9wAOAAD/9gAMABQAAAATAAAAAP/8//gAAP/xAAD/+v/u/+YAAP/q//oAAP/o/9UACP/N/+n/9AAAAAL//AAA//b/6wAAAAD////lAAEAAP/5//3/+wAA//z//f/8//4AA//4AAAABAAA//4AAf/+//3/9//8AAH/5v//AAD/9wAA//AABQAAAAAAAwAHAAEAAP/9/93/9v/uAAYAAP/9//IABgAZAAkAAgAA/+0AAAAA/+T/////AAEAAP/5//7////2AAQACgASAAIAEAAAAAD/7//7/+sAAP//AAL//f//AAL/8wAAAAL/9wAHAAD//f/iAAD//f/+//sAAP//AAAAAAAA//7//QAAAAAAAAAAAAAAAAAAAAAAAP/c//v////wAAAAAAAAAAAAAAAAAAD/5v/nAAAAAQAAAAD/8wAIAAAAAP/3//v//AAA//YAAAAAAAD/5//4AAD/8v/9//f/9v/1AAH//wAA//f/+//9//0AAAAA//AAAP/6//IACAARAAAAAAABAAAAAP/w//f/6AAA//T/9//xAAD/8QAAAAD/+//lAA3/5v/n//4AAP/5//7/9QAAAAEAAAAAAAAAAAAAAAD//gAAAAAAAAAAAAD//wAAAAD//gAAAAAAAAAAAAAAAAAAAAAAAAAA/+UAAAAA//T//v/wAAUAAAAAAAAAAwAAAAD/+//8AAD/6wABAAAAAP/wAAIAGAANAAgAAAAAAAD//v/5AAAAAAAAAAD/+AAA//v/9QAEAAwADwAAABEAAgAA/+3/+f/oAAD//QAA//oAAAAKAAAAAAAA//4ADAAA//wAAAAA//oAAP/5AAAAAAAAAAAAAQAA//YAAAAAAAAAAAAAAAAAAAAAAAD/wP/8//3/4QAAAAD/+AAAAAEAAAAA/8X/6wAB////9gAE//MADAAAAAD/6f/r/+4AAP/wAAAAAAAA/8//+wAA//X/7//k//r/+wADAAAAAP/3//0AAP/9//8AAP/tAAL/+v/1AAkAEf//AAUAAAAAAAD/7v/7/+oAAP/x/+z/3wAA//IAAwAA/+r/5gAI/9P/3AAAAAD/+f////f/8v//AAAAAP/d/68ABP/i/73/v//cAAD/vv/f/+D/3AAh/9//8AAWAAP/0f/0AAv/w//G/+sAHf+y/+D/+P/n/8H/0v/UAAAAAAAfAB4AFQAA//z/m//Q/9UAGQAI/7f/tQAXADEAIgAa/+n/tAAAAAP/k//qAAP//gAAAAT/u//q//n/5//tAAD/wgAvAAYAAP/EAAD/zgAAAAUABQAF/+gAEf+zAAAAFwAG//MAGwAS/64AAAAH//QAB//3//AAAAAAAAD/+//8AAIAAAAAAAAAAAABAAEAAAAA/97//f////AAAAABAAIAAAAAAAIAAP/o/+gAAAACAAAAAf/0AAoAAAAA//j/+//8AAD/9gAAAAAAAP/o//QAAP/y//3/+P/4//QAAwAAAAD/9//5//3//QAAAAD/8QAA//z/8wAKABIAAAABAAIAAAAA//H/9//pAAD/9P/4//IAAP/zAAEAAP/8/+kAE//m/+n//wAA//n////2AAEAAQAAAAEAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAA//7AAAAAAAAAAAAAAADAAAAAAAA////5wAAAAD/9gAA//MACAAAAAAAAwAA//8AAP/4//oAAP/pAAAAAAAA//EAAAAaAAsACQAA//4AAP/7//v//QACAAAAAP/2AAD/+//0AAgAEQACAAAADgAAAAD/8P/5/+gAAP/4//3/+AAAAAr//wAAAAD//QAN///////+AAD//f////gAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAD/+AAAAAAAAwAAAAUAAAAAAAAAAAAFAAD//wAA//8AAAAAAAD/+//3AAAAAAAAAAAAAP//AAn/7AAAAAL/4wAAAAAAAAAAAAAAAAAGAAAACwAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAP/1AAQAAP/zAAD//AAAABIAAP/3/+kAAAAGAAAAAgAAAAAAAAAgAAX/5gAfAAD/+P/+//8AAP/9AAAAAAAAAEAAAAAAAAAAAAAAAAAAKQAAAAAAAAA5AAAAAAAAAAAAAAAAAAAAAAAAAEgAAAA1AAAAFwAAAAAAAAA5ADMAAAAAAAAAAAAAAEoAAP/tAAAAHv/kAAAAIAAAAAAAGQAAAAMAAAAEAAAAAAACAAAAAAAAAAAAAAAAAAAAGQAAACAACwBM//MAAAAuAAAACAAAADv/6gAAACwAAAAYAAAAAAAAAAAAAAAAAAD/+QAA//v/9v/5//kAAAAAAAAAAAAAAAAAAP/4//YAAAAA//r/8gAAAAAAAAAA//8AAAABAAAAAAAAAAD//QAA//sAAP/7AAAAAAAAAAAAAAAAAAAAAAAAAAD////8/+8AAP/8/+MAAP/9AAAAAP/3AAD/9gAA//8AAAAAAAIAAP/4AAAAAAAAAAAAAP/7AAD/+//9//3/9AAAAAQAAP//AAD/+v/jAAD/+gAA//3//f/7AAAAEgAAAAAAAP/9/+7/8gAHAA7/8P/z/+//8gAA//sAAAAAABAAAAAAAAD/9f/xAAMAAAAAAAAAFwAA/+kAAAAAAAAAAAA2AAAANAAAABYAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAP/8AAAABj/5gAAABcAAAAAABIAAAACAAD//AAAAAD/6QAAAAAAAAAAAAAAAAAAAB8AAAAZAAQALP/zAAAALwAAABIAAAAc/+sAAAAKAAAAGQAYABYAAAAAAAD/9v////0AAgAA//4AAQAAAAAAAgAA/+3/+wAN//oAAAAAAAAACQAA//cAAv/8/+MAAQAD//EAAf/7AA4AAAAA//8ABgAEAAD/+//zAAD/+v/x/+4ADv/1AAAAAP/7//UAA//9AAD/8v/9AAAAAAAAAAD/8gAS//oAAAAHABAAAAABAA4AAP/+//H/8//4AAD/9wAC//cAAP/2AAEAAAAB/+wABv/9/+///QAA/+oACv/3AAH//gAAAAD//v/7AAAAAAAAAAD//wAAAAAAAAAAAAD/6f/7AAr/+gAAAAAAAAAKAAD/+AAA//j/6f//AAD/9QAA//cADAAAAAD//AAA//4AAP/3//T////0/+v/8QAK//b////6//f/9QAF//sAAP/v//4AAAAAAAAAAP/uABD/9v/+AAYADgAJAAAADgAA//7/8P/5//UAAP/1////9AAA//QAAwAAAAD/6gAF//v/7f/8AAD/7AAH//gAAAAAAAAAAP/y/8sABP/y/+P/5//vAAD/5v/x/+f/8AAW/+7//QAfAAD/7f//AA//5//l//wAHP/X//YAAP/w/+r/6v/2AAAAAAAiAB4AFAAAAAD/yP/a/94AIQAE/9v/3gAZADgAGQAZ//z/2AAAAAP/wwAAAAf//wAAAAL/6f/7//3/+v//AAD/6gAnAAL////h//EAAAAAAAMACAAI//kAF//eAAAAFQAKAAQAFAAL/8cAAAAE//oABAAA//8AAAAAAAD//v/7AAAABwAAAAAAAAAAAAAABwAA/9D//QAF/+4AAAAJAAAABgAAAAAAAv/M/+8AAAAAAAD/+v/+AAgAAAAA//b/+v/5AAD//AAAAAoAAP/g//QAFf/2//z/8v/r/+4AFwAFAAAAAgABAAL//wAEAAD/+AAEAAkAAQAQABoAAP/6AAAAAP/+//YAAf/4AAD//P/7/+kAAP/xAA0AAP/2/+QAHf/b/+H//gAAAAIAAf/8//v/+QAAAAAAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7AAAAAAAAAAAAAAAFAAAAAAAA////5wAAAAP/9gAA//MACQAAAAAABAAAAAAAAP/5AAAAAAAAAAAAAAAA//IABQAcAAoACAAA//4AAP/+//v//QAAAAAAAP/6AAD/+//3AAkAEQACAAAABgAAAAD/8P/5/+gAAP/9AAD/+wAAAAoAAAAAAAD/+gAN/////f/+AAD/+wAA//kAAAABAAAAAAAB//7//wACAAQABgABAAEABAAEAAQABv/M//wAAP/qAAEACf//AAEABv//AAP/x//pAAIAAP/8//7/+QARAAAAAP/z//b/9gAA//oAAAAGAAD/3f/0ABD/8P/2//D/7P/qABAAAgAA//sAAAAA//8AAAAA//QACAAD//wADwAZAAL//gAAAAH//v/z//3/9AAA//P/+P/kAAP/8QAKAAD/8//kABX/2v/ZAAAAAP/6AAD/9v/9//oAAAAAAAD/2wABAAf/+//9AAAAAP/8//z/+//9//QAAgAAAAAAAAAAAB7/+v////0ACP/6/+4AAAAVAAD//P/9AAYAAAAAAA4AFAASAAAACgAA/+YAAP///+r/7f/yABQAEf////YAE//nAAAAA//YAAAAAQAGAAAAAf/3AAsAAQAQABoAAv/8AAkAAP////X//gAAAAAAAwAIAAAAAP/3/+oAAAAA//QAHf/7//f/4QAAAAIAAwABABwACgAA//8AAf/l//0AAP/+//8AAAAA///////+////3P/+AAD/8wAAAAAAAP/yAAD////+/+n/8wABAAP//gAF//kADgAAAAD/+v/+//8AAP/8/9z/8P/0/+j/1v/9//z//f/7/+n/6QAI/+kAAAAA/9/////7AAAAAP/7AAQAB//yAAoAEwADAAkABwAA//3/+AAA//AAAP/+////8gAC/+z/8AAA//r/1QAM/+j/5//mAAAABv/+AAIAAP/6AAAAAP//AAkAAAAAAAD//wAAAAEAAAAAAAD////m//wAAf/3AAEAAwAAAAsAAAAAAAH/9P/tAAAAAP/8AAv/8wAPAAAAAP/5/////gAA//X//wAS//T/7AAAAAb/+v/+//z////+AAYAEQAA//oAAgAAAAAAAAAA//UAE//6//oACAAOAA0AEwAQAAEAAP/w//3/7gAA//n/+P/wAAP/+gALAAAAAP/wAAf/9v/qAAMAAP/8AAX/+gAAAAAAAAAAAAAAA//9AAD////9AAAAAP////8AAP/9/+3//QAB//gAAAAAAAAAEf//AAAAA//6/90AAAAE//b/7P/y//0AAAAA//4ABQACAAD/+wAAAAn/4f/yAAIAAP/iAAT//gABAAAADwALAAD/+QAA//0AAQAAAAD/9f//AAD/+wAIAA8ACP/tAAsAAAAA/+gAAP/tAAD/+gAA//gAAAABAA0AAAAD//sAG//9/+sABgAA//YADv/2AAAABQAAAAD/8QAN////9P/+//X/+QAD//b/+QAA//cADv/zAAQAEgAA/////wAa//YAAAAJABf/tP/1AAT/6v/S/+T/9AAAAAAAGgAcABIAAP/9AAgAIv/aABAADwAF/7sAFQApACsAHQAJABwAAP/9AAgAAAAL//4AAP/6//r/8//+AAQACQAA/9QAJwAGAAD/z//qAAAAAAACAAkAAP/9ABIAGQAAABwAAwAXABYAAgAJAAD/+QAUAAH//wADAAAAAAAA//P//QABAAEAAwAAAAAAAAAAAAEAA//C//wAAP/oAAAABv////4AAAAA//3/xP/1AAAAAAAAABH/+QAXAAAAAP/q/+3/7wAA//UAAP/+AAD/1f/jAAP//f/0/+n/4f/nAAP/+wAA//z/9AAA//8AAAAA//YADQAA//YADAAVAAIAEgAAAAD//f/3AAD/8QAA//n/8f/lAAL/7P/8AAD/6v/YAAr/0v/n//YAAAAC//wAAP/4/+8AAAAAAAAAA//+AAD//f/2AAAAAP/3//f//f/2/+4AAAAA//4AAAAAAAkABP/9AAIAC//4/+kAAAANAAD/8//z//4AAAAAAAAACAAKAAAAAAAAAA4AAP/4AAAAAP/tAAoAAgAYAA8AEAAuAAD//QAI//MAAAACAAD/+//0AAP/+QAGAA8AAv/0AAMAAAAX//D/+//yAAD//gAA//0AAgAPABMAAAACAAAAL//5/+8AGwAA//0AA//6AAoAEgAAAAAAAP/IAAAAA//4//wAAAAA//v/+//8//z/+f//AAQAAAAA//8AG//6//z//AAI//z/5QAAABYAAP/o//r//QAAAAAAFwAYABoAAAAUAAD/ywAA//7/6P/N/+oAGAAK//7//wAI/7oAAAAC/6D/7gAAAAsAAAAH/9sADQACAAwAFQAD/+gACQAA////8P/7//kAAAAJAAkAAP////r/uwAAAAT/9QAZ//z/+v/PAAAAAAAHAAAAGgAPAAAAAAAAAAP//gAA//7/+wAAAAD/+v/6//7/+//u//8AAAAAAAD//wAPAAb//AABAAz/+f/iAAAAD//6/+n/9P/9AAAAAAAFAAoADQAAAAYAAAAPAAD/+AAAAAP/6QANAAb/////ABYAFAAA//8ABgAAAAIABAAA//3/9wAG//0ACQATAAD/6QABAAAAAP/t//4AAAAAAAEAAf/+////+QAVAAAAAP/1ACr//P/wAAYAAP/+AAj//AAPABEAAAAA//AAGP/w//gABP/5///////6//oABP/5/6X/9v/9/9X//wAE/+EAJv/6AAEAEP+0/6b/8v/t/+b/wv/f//oAAAAA/6z/j/+RAAD/dgAVADb/4P+4AA8ADv+J/4z/yQABAAEAEAAwAAD/dgAVAAD////rAAD/cP/6/3T//QAOABUAAP/EAAD////+/6IAAP/bAAD/df/l/4P/+//+ACYAAP/6//sAHv/l/3gAFAAA/3gAHP9z/84ADwAAAAD/6v++AAH/7P++/7v/5v///7r/3P/c/9cAHf/o//sAHP///8P/+gAS/8X/v//2ACn/of/v//7/5f+r/87/0wAAAAAAIgAWABIAAP///6z/0P/VABgADf/H/6QAGwAqACAAE//m/8QAAP///6UAAAAA//sAAAAA/77/7f/7/+X/6QAq/6wAIgAA////sv/j/8sAAAAEAAMACP/tABH/wgAAABMABv/pACMAD/+4AAAAA//8AAL//f/6AAD/5f/z/83/5v/s/+QAAP/n/+f/9QAAAAAAAP+zAAD/4v/Y/+f/7wAA/73/9QAA/9X/of/t//P/7gAAAAD/5P/9AAAAAP/I/9b/1//fAAAAAP+xAAD/yv+lAAAAAP/jAAD/vv/L//H/vf/hAAAAAAAAAAAAAP/qAAD/+wAAAAD/9AAAAAD//QAAAAAAAAAAAAAAAP/nAAD/2wAA/+7/zv/CAAD/zgAA//r/rQAA/8//zQAA/9EAAAAA/84AAAAA/+gAB//9/+z/+v/q//wAAP/s//D//f/uAAb/8f/5AAMAAv/6//MAG//sAAAABAAM/7n/6//2/+P/5//f//MAAAAAAA4ACAADAAD/8QAAAA7/1wACABgAAP/KAAQAHAAjABgABAAQAAD/9AADAAAABf/5AAD/9f/8/9b/+f/+AAIAAP/oACUABAAB/8X/4f/aAAD/+gADAAD/9wAUABQAAAATAAAAAQAVAAAADAAA//4AEP/3/+8AAwAAAAAABP/z//8AAwAAAAAAAAAAAAAAAAAAAAD/6P/+AAD/+gAAAAMAAP/+AAIAAv///+3/7gAFAAAAAAAG//YADgAAAAD/9//9//4AAP/3AAD//gAA/+3/7QAAAAD//AAA/+z/8wAA//8AAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAgAAAAAAAcAAAAAAAAAAAAAAAAAAAAA//0AAAAA/+///QAB//wAAAAQ/+8AAP/8AAAAAP//AAD//v/8AAAAYQAXAAAAAAABAAAAAAABAG0AAAAOAAAADAAAAAAAAAAAAFAAAgACAAAAAAABABsAAAAAAAAACwAAAAAAAAAJAAAAAACGAHEAcgAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAACFAAP//gAAAE3/+wAAAFgAOwAAAFUAAAAZAAAAAAAAAAAAAAAAAAAATQAAAAAAAAAAAFIAAABXAAAAiAAAAAAAawAAAA8AAABzAAcAAABjAAAAUAABAAAAAAAAAAD/+P//AAAAAAAAAAAAAAAAAAAAAAAA/+z/+wAG//kAAAAAAAAABgAA//kAAP/4/+EAAAAAAAD////1AAb//f/+//v///////X/9gAA//8AAP/v//EAAAAA//8AAP/7//UACv/7AAMAAP/+AAAAAAAAAAAAAAAHAAAAAAAIAAAAAAAAAAAAAP//AAAAAAAAAAAAAP/8AAAAAP/zAAEAAAAAAAAACP/6AAD/+QAMAAAABQAAAAAAAAAA//4AB//x//8ABv/8ABIAAAAAABEAEf/8ABL/wP////v/6gAA//7//P/yABH////m/6wAAAAI//sAAAAAAAAAFAAAAAD/lv+b/5v/6P/0AAD/5AAA/9z/zAAAAAAAAAAAAAD/4//0/+T//wAAAAAAAAAA/////wAAAA0AAAAA//4AAAAAAAAAAAAA//4AAAAAAAD/9gAA/+QAAAAG/+X/4//0/+YAAP/2/80AAP/y//wAAP/oAAD/9v/ZAAAABAALAAIABAAMAAcADAAIAAkACgAKAAcADP/nAAgACv/7AAgADAARAAgADAAEAAn/5f/0AAwAFAAA//7//QAB//8AC//x//v/+wAEAAcAAAAOAAD/8f/6AAAAAP/3AAD/6//uABgAAwAIAAAACAAAAAAAFwAJAAAADwAAAAAAFQAAAAD//gAAAAAABAAAAAAAAAAMAAD//wAAAAj/+AAMABH/+wAAACL/6gAAAAMACwAAAAcAAAAKAAYAAAAFABD/+wAFAAwACAAXAAgACQAWABYACAAX/9QACQAE//cACAAOAAb//QAXAAv//f/T//0AEQAMAAAAFAADABH/8v/7/9X/5v/o//f//AAA//0AAP/o/+cAAAAA/+oAAP/k/+8ABP/2AAYAAP/1AAAAAAAPAAoAAAAlAAAAAAABAAAAAAAUAAAAAAAHAAAAAAAA//8AAP/4AAAADv/1//sAB//3AAAAC//eAAD/+wAGAAD/+wAA////+QAAAAD/9wAJ//f///////QAAAAA//T/9P////T/6//8AAD/+gAA//8ABAAI//YAAQAL//f/yf/5AAoAAP/j/+z/+wAAAAAAAQAIAAQAAP//AAAAEgAA//IABAAA/80AAAAA/////wANABEAAP/3AAn/8wAB//wAAP/2//r/+v/6AAEAB////+UAAQAA////3P/m/+oAAP/+AAD//P/8//8AFAAAAAD/+wAY//n/6AAOAAD/6gAI//gAAwAUAAAAAAAC/+cAAAADAAEAAAAAAAAAAAAAAAAAAP/g//8AAP/3AAAAAQAA//YAAAAAAAD/7//zAAEAAwAAAAf/+QARAAT////7//7////6//wAAP/4AAD/6f/cAAAAAP/+AAD/7//uAAn/7gAAAAD/5QAAAAAAAAABAAAABQAAAAAADAAAAAAACwAAAAD//wAAAAAAAAADAAD//wAAAAT/7f/0AAP/+wAAABP/7AAA/+n//wAA//4AAAAA//0AAAAA//r/vwAE//v/7P/n//cABP/k/+r/8f/rAB//+P//ACIAA//2AA4AC//q/+0AAAAi/8f/+wAOAAD/lv/y/9UAEQAeAB8AFgASABMACwAA/9MAAAAfABEAAAAAABQAAAAkAB7//v+m//wAAP9XAAAAAAAAAAAAAP/HAAAAAP/xAAAAAP+YAAAAAAABAAAAAAAAAAIAAAAQAAD/9wAf/5YACwAkAAAACgAeAAD/xAABAAAABAAAABAACgAAAAD/8f+7AAD/8v/h/97/7gAA/9z/4//o/+MAHP/v//sAGQAA/+sAAQAH/+D/4//8ABz/y//zAAIAAP+b/+X/0AAGAA8AHAANAA0ACAAAAAD/0QAAABYADwAAAAAADgAAACQAHf/2/6b/8wAA/0YAAAAA//4AAAAA/7sAAAAA/+wAAAAA/50AAAAA//8AAAAAAAD//QAAAAcAAP/yACP/lv//ABoAAP/+ABcAAP/AAAAAAP/9AAAABAABAAAAAP/v/7kABP/1/9r/1//yAAD/1f/h/+L/3wAk//P//QAeAAD/5wAFAAz/2v/d//4AIf/B//EABgAA/5n/5f/OAAAAGQAfABMADwAAAAcAAP/QAAAAHAAVAAAAAAATAAAAJgAg//T/pv/4AAD/RgAAAAD//v/+AAD/vgAAAAD/5gAAAAD/sQAAAAAAAAAAAAAAAP/+AAAAEAAA//MAI/+WAAQAIwAA//gAGwAA/78ABgAA//8AAAAI//8AAAAAAAD/9//+AAAAAP//AAAAAP//AAAAAAAA/+f/+wAE//kAAAAA//8AA/////j////4/+0AAAAAAAAAAf/0AAz//P/+//oAAP/8//T/9gAA//8AAP/q/+oAAAAA//4AAP/2//QAAP/5AAEAAP/4AAAAAAAAAAAAAAAMAAAAAAAFAAAAAAAEAAAAAP/9AAAAAAAA//4AAP/9AAAAAP/x//3//wAAAAD//f/5AAD/9gAHAAAAAAAAAAAAAAAAAAD//wAL//0AAAAA//sAAAAA//z//AAA//v/8P//AAEAAAAAAAAACAAT//wAAAAT//n/1f//AA8AAP/f//P/+gAAAAAAAQAJAA0AAP/+AAAAGAAA//gAAgAG/90ACQAC/////wAUAB4AAP/9AA3//QACAAEAAP/5//0AAAAAAAcADgAA/98AAwAAAAD/5f/6//QAAP//AAH//P////0AGwAAAAD/+AAq//z/7QAOAAD/9wAL//oACQATAAAAAAAB//j//wAAAAIAAAAAAAAAAAAAAAIAAP/o//kABf/2AAAAAAAAAAYAAP/4AAD/9v/hAAEAAP/v////9QAGAAAAAP/5/////wAA//T/8/////H/7P/uAAb/8f////n/9f/zAAf/+QAA//H//QAA//0AAAAA/+wACP/1//0ABwAOAAYAAAAHAAD////t//P/8QAA//P/+f/xAAD/8QAAAAAAAP/oAAT/9//r//kAAP/sAAP/8wAA//0AAAAA//b/0QAC//f/4f/z//AAAP/z//T/5v/zABj/8v/8ABgAAv/v//8ADP/y/+v/8gAi/+f/9wAA//X/+//x//0AAAAAAB0AFAAOAAAAAP/D/9f/6gASAAn/5v/yABkAJgAbABL/+f/HAAAABP+CAAAAAf/9AAAABP/3//v/+f/5//4AAP/8AB8AAwAA/+n/9v/eAAAABgAHAAT/8wAP/8kAAAAOAAP//gAcAAv/zgAAAAz/+gAI//7//AAAAAP/9QAY//P/+QAE//kAAAAA//r/+gAE//n/t//3//3/2QAAAAQAAAAmAAAAAAAW/8YAAAAAAAAAAP/fAAD/+gAAAAD/0P/Z/9gAAP/QABUANv/g/8QADwAAAAAAAAAAAAAAAQAQADAAAP/QABUAAAABAAAAAP/I//r/2wAAAA4AAAAA/+IAAAAAAAAAAP/mAAAAAP/JAAD/v//7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AAIAawBsAAIAbQBuAAEAbwBvAAIAcABzAAEAdAB4ABAAegB8ABkAfQCPAAQAkACQACsAkQCVABEAlgCWACwAlwCeAA4AnwCiABUAowCpAAYAqgCyAAwAswC4AAYAuQC5AAwAugC6AAYAuwC7AAkAvAC9AAoAvgC+AAsAvwDAAAoAwQDDABYAxADEADgAxQDGAAoAxwDOAAsAzwDSAAoA0wDTAAsA1ADUAAoA1QDVAAsA1gDWADoA1wDaABcA2wDbAAkA3ADcAEIA3QDdABIA3gDeAAgA3wDfAAkA4ADgAEQA4gDjABIA5ADkAEUA5wDnABIA6QDpABIA6gDqAEYA7ADxAAkA8gDyAEgA8wD5AAgA+gD7AAcA/AECAA0BAwEKAAcBCwELAA0BDAEOAAcBDwEPAA0BEAEQAAcBEQERAAgBEgESAAkBEwETABYBFAEVAAgBFgEWAAkBFwEXAAgBGAEcABMBHQEdAAgBHgEgABwBIQEzAAUBNAE0AFwBNQE5ABQBOgE6AF0BOwFCAA8BQwFGABgBSQFJAFEBSgFKABsBSwFLAEwBTAFMAFoBTQFNAFgBTgFOAD0BTwFPADsBUAFQABsBUQFRAFUBUgFSADUBUwFTAEoBaAFoACYBbgFuACYBhgGGACcBhwGHAE0BiAGIAFsBiQGJAFkBigGKAD4BiwGLADwBjAGMACcBjQGNAFYBjgGOADYBjwGPAEsBoAGgAFMBoQGhAFABogGiADQBowGjADMBpAGkAFQBpQGlADcBpgGmADkBqAGoAFIBrAGsAC8BrwGvAFcBsAGwADABswGzAEMBtAG1AB4BtwG3AE4BuAG4AE8BugG6ADEBvAG8ADIBvwG/ACQBwAHAACUBwQHBACQBwgHCACUBwwHDACABxAHEAEABxQHFACABxgHGAEEBxwHIACMBywHLAC0B0gHTACEB8wH0ABoB9QH1AEkB9gH2ABoB9wH4AB8B+QH5AD8B+gH6AEcB/wH/AC4CDAINACIAAgB0ABgAGAACABkAGQAxABoAHgARAB8AIgAYACMAMwACADQANAAyADUAOAAZADkAOQAIADsAOwAIADwAPAAGAD0APQAIAEAAQAAIAEIARQAIAEcARwAGAEgASQAjAEoASwAgAE0ATQAgAE4ATgAzAE8AVAAIAFYAYQAEAGIAZwANAGgAawAEAGwAbAACAG0AbQA0AG8AbwAEAHAAcwAaAHQAeAASAHoAfAAhAH0AhAAGAIUAigAOAIsAjwAGAJAAkAA1AJEAlQATAJYAlgA2AJcAngAKAJ8AogAbAKMAuQABALoAugADALsAuwAcALwAwAAUAMEAwQAVAMIAwgAlAMMAwwA/AMQAxAAcAMUA1QADANYA1gBCANcA2gAdANsA3AAJAN0A3QAMAN4A3gAHAN8A3wAMAOIA4wAMAOQA5AAVAOcA5wAMAOkA6gAMAOwA7QAqAO4A7wAVAPAA8AAlAPEA8QAVAPIA8gBJAPMA+QAJAPoBBQAFAQYBCwAPAQwBDwAFARABEAADAREBEgAcARMBEwAHARQBFwAeARgBHAAWAR4BHgAwASABIAAwASEBKAAHASkBLgAQAS8BMwAHATUBOQAXATsBQgALAUMBRgAfAUoBSgArAU4BTgBEAU8BTwBDAVABUAAvAVIBUgAmAVMBUwArAZ8BnwBHAaEBoQBMAaIBogA+AaMBowA9AaUBpQBAAagBqABNAakBqQBOAawBrAA5AbMBswBGAbQBtQAnAbcBtwBLAbgBuAAkAbkBuQA7AboBugAkAbsBuwA8Ab8BvwAtAcABwAAuAcEBwQAtAcIBwgAuAcMBwwAoAcQBxAApAcUBxQAoAcYBxgApAccByAAsAcoBygA6AcsBywA3AfMB9AAiAfUB9QBKAfYB9gAiAfcB9wBBAfkB+QBFAfoB+gBIAf8B/wA4AAEAAgAAAAgAAQHuAAQAAADyLNIsyCyyLKgsqCyiLKIsoiyQLIosiix0LGosZCxKLCAsFiwAK8IrvCu2K7ArpitEKyoqtCoOKgAp7imwKZ4piClyKWApUikUKNoo1CiKJ+An2ifIJ7YnsCd2J1AnEiaEJjomFCXuJeQleiRwJGYkXCRGJDwjtiN0Iz4i1CLGIsAiuiKUIooiVCJOIkQiOiIUIgIh6CHSIcwhxiGEIX4hdCFCIRwiTiEOIPAiTiDOILQgliCQIGYgDB9uHyAfGh8EHvIe6B6iHoweNh4wHeodzB2iHZgdih2AHUYdKB0GHQAc+hz0HOoc2ByuHFQcThxIHDocNBwqG6gbkhrwGuoa4BraHPQawBqmGpgadhpwGmoaXBpCGdgZohk0GQoY1Bh2GGAYNhf0F8YXjBdaFwQW1hakFnIWQBYOFdgVphV4FXIVbBVmFWAVYBVaFVoVUBVKFUQU/hTMFI4URBPiE4wTOhLoEs4SfBJSEjQSFhHoEcYRoBGGEWQRDhD0ENYQyBC2EGwQQhAED9IPfA8+DzQPJg7QDlINzA1+DVwNPgxYDC4MEAv+C5gLcgs0CroKgAomCawJjglsCWYJSAjaCFAILgf8B94HwAeuB1gHGga4BiIF/AWWBWAFSgVABP4E4ARiA+ADugACAEwAAQACAAAACgAQAAIAEgASAAkAFAAVAAoAFwAaAAwAHAAcABAAHwAfABEAIwAlABIALAAsABUAMgAyABYANAA1ABcAOQA7ABkAPQA/ABwAQQBBAB8ARABKACAATABNACcATwBQACkAVQBWACsAagBqAC0AbQBwAC4AdAB0ADIAdgB2ADMAeQB9ADQAgQCBADkAkACRADoAlgCZADwAmwCbAEAAnwCfAEEAoQChAEIAowCjAEMArACsAEQAsgCyAEUAtAC0AEYAtwC3AEcAugC8AEgAvgC/AEsAwQDFAE0AyADIAFIAzgDOAFMA1ADXAFQA2wDdAFgA3wDqAFsA7ADsAGcA7gDuAGgA8ADxAGkA8wD0AGsA+QD6AG0A/AD8AG8BAgECAHABDAEMAHEBEAERAHIBEwEWAHQBGAEYAHgBGgEbAHkBHQEhAHsBJQElAIABLwEvAIEBMQExAIIBNAE1AIMBOgE7AIUBPQE9AIcBRwFTAIgBXgFyAJUBfAGPAKoBnwGiAL4BpAGpAMIBrgGwAMgBswG1AMsBtwG7AM4BvQHIANMBygHLAN8B0gHTAOEB4gHiAOMB8wH1AOQB9wH/AOcCDAINAPAACQGhABYBogAJAaj/9AGs/8YBuP/zAb//lAHA/5cBwf+iAcL/ogAgAYb/0gGH/9YBiP/xAYn/5wGK/9ABi//cAYz/0wGN/9sBjv/iAY//3gGhABYBogAJAaMADQGkAAABpv//Aaj/9QGs/8YBswAJAbQACQG1AAkBuP/zAbz/9wG//6MBwP+fAcH/qwHC/6gBwwASAcQADgHFABIBxgAYAcf/qgHI/64AHwDW//4A1//5AOr/8AE0//QBNf/4ATv/8wFK//wBS//qAUz/4QFN/9QBTv//AU//9QFQ//wBUf+2AVL/6QFT//QBof+7AaL/twGm/+oBqP/cAaz/7gGv/9YBt//3Abj/2QG8/9QBv//RAcD/2AHB/+UBwv/lAcf/3gHI/98ABwAB/+8BS//4AUz//QFNAAABUf/nAbj/7QG/AAIAEABH//4Alv/hAUr/9QFL//UBTP/5AU3//QFP//UBUP/2AVH/4gFp/+kBav/uAW//3gFx//ABt//0Abj/5AG8/+IAAgFR//4BuP//AAUAev/hAUv/+QFM//8BUf/jAbj/6QANANf/7ADq//AA+v/2ATv/8gFNAAIBUf/8AWn/8QFr//EBb//sAbf/8wG4//QBvP/6Afr/2wAZANf/8QDq/+wA+v/4ATT/8wE1//UBO//xAUv/6AFM/+cBTf/ZAU//7wFR/7sBUv/rAVP/8QFo/+8Baf/dAW7/8AFv/98Bcf/wAbf/9AG4/9cBvP/RAcf/5AHI/+QB+f/bAfr/9AAJAAH/5QBQ//IAl//eALv/9AFK//wBS//0AUz/8wFR/+EBuP/iACUA1v/7ANf/8wDq//AA+v/4ATT/+wE1//0BO//zAUn//AFK//kBS//zAUz/8QFN//sBTgAAAU//8wFQ//kBUf/bAVL/9QFT//YBaP/0AWn/6QFu//QBb//cAXH/8gGh/+wBov/mAbf/9gG4/+EBvP/ZAb//7wHA//EBwf/vAcL/8QHH//MByP/zAfP/5AH0/+YB9//4ABgA1//mAUr/8AFL/+8BTP/zAU3/8gFO//sBT//tAVD/8AFR/9EBUv/yAVP/8wFo/+8Baf/aAWr/6QFt/+gBbv/wAW//ywFx/+UBt//qAbj/1wG///gBwP/3Acf/9QHI//UADwDq/+UBNP/nATX/7gE7/+oBSf/lAUz/0QFp/9UBa//0AWz/8QFt/+gBb//aAXD/7QFx/+oBv//AAcD/wQAVALL/5QDW//YA1//wAOr/5QD6//UBNP/oATX/7gE7/+kBSf/lAU3/ywFp/9UBbP/xAW3/6AFv/9oBcP/tAXH/6gGm/+ABv//OAcD/0wHG//gByP/OAAQBS//5AVH/9AGN/+cBuP/4AAcBof+WAaL/pwGv/8QBs//SAbgAHgHD/9oBxf/aAAcBSv/1AU7/ygGh/6cBov+rAbP/0gG4AB4B0gASAAwA1gAAATT/7gE1//YBS//nAVH/1wG4//IBv//IAcD/yQHB/8gBwv/JAcf/xwHI/8cACAE0//kBNf/+AUv/9AFR/9kBuP/qAbz/5gHH//AByP/wACIACv/EABj/swAh//IAOQAAAD4AGwBO/9cAav/4ALT/7ADE/+4A0f/lANwAKQDf//wA4AArAOEAKgDkABgA5gAdAOgALgDy/+8BBP/nARD/6QGh/60Bov+vAaX/rAGp/8IBsABBAbP/rQG0/6wBtf+sAcb/9AHL/8kB8//OAfX/9QH6/+QB///KABsAAf+9ABj/pgAh//IANf/6AD4AGwBO/9cAav/4AMT/7gDcACkA4AArAOYAHQDoAC4A8v/vAU7/xQGn//wBqf/BAa7//wGwAEEBuf/mAcb/9AHK//ABy//JAfX/9QH6/+QB/P/5Af7/9gH//8cABwAY//MBaf/yAW//8wFx//sBh//0Ab3/5QHGAAoAAQGN/+cACAAY//MBaf/yAW//8wFx//sBh//0AaYAAAG9/+UBvv/0AAcAIf//AE7/8gFp//UBb//sAY3/5wGnAAgB///3AB4ACv/DABj/rQAh/+gAPgAdAFb/8ABq/+wAtP/aANH/1gDbAAAA3AAtAN//+wDgAC8A4QAtAOQAGgDoADIBBP/YAQz/2AEa//ABJf/3AUL/9gGK//sBof+hAaX/oQGp/7oBtP+vAbX/rwG+/6EBxv/rAcr/4QH//78AFgAY/7AAIf/rAGr/7gDbAAAA3AAkAOAALADmACABTv/FAaH/ogGl/6EBp//0Aan/uwGu//oBs/+zAbT/sgG1/7IBvv+hAcb/8AHK/+kBy//EAfX/6gH//8cADgAB/7QAGP+cACH/6ABq/+wA4AAvARr/8AGK//sBqf+3Aa7/+gGz/5sBvf+mAcb/6wHK/+EB//+uAB4AAf+1AAr/wQAL/8EADv/BABj/ngAa//AAIf/rADX/8QA+AB8ATv/VAGr/7gDE/+sA3AAkAOAALADmACAA6AArARr/8wGn//QBqf+5Aa7/+gGwAD0Bvv9LAcb/8AHK/+kBy//EAfP/vwH0/7QB9f/qAfr/2AH//7EADwAYABQAIf/pAEUACQBO/+sAav/+AG///gDnAAwA8v/0AREAAwG9ABABvgAYAcD/SwHB/6EB9f/5Af4AAwAJAEUAEABO/9oAagAAAG///wDnABIBEQACAb0AGAG+AB0B/v/3ABkAIf/hADkAAAA+ABwATv/TAGr//QBvAAAAxP/uANsAAADcADQA4AArAOEAMwDoADcBEf//ARr/7AGK/+MBrv/5Abn/6gG+ACABxv/wAcr/4QHL//QB+f/0Afr/zgH9/9wB///OAAQBoP/ZAaH/+QGi//kBuQAPAAcAbwAAARH//wGf/+UBsAAuAbn/5AG+ACEByv/dAAoBfP/pAX7/7AGA/+EBgf/rAYL/6gGE/+kBhf/wAY3/6wG6//YB9f/qADkAGP/3ACH/3gAi/94ANf/kADkAAAA6/+4APgAlAD8AEwBEABYARQASAEYAIwBO/84AVv/jAGr/9ABvAAIAef/sAMT/7QDXAAUA2wAAANwALgDf//QA4AAvAOEANwDkACMA5gApAOcAFwDoADUA8v/nAQL/6AER//4BEgAGARf/+wEa//ABO//+AUX/+wFs/+4Bh//8AYj/9wGK/+oBn//rAakABgGu//QBsAA1Abn/5QG9ACEBvgAZAcb/+AHK/+IBy//uAfX/0QH5/+4B+v/SAfv//AH8/+QB/f/eAf7/4gH//9AABwFp/+gBbP/xAan/4QG+/+sBwf+yAcL/sgHI/6wACAFp/+gBbP/xAan/4QG0AAABvv/rAcH/sgHC/7IByP+sABMAGP/nACH//wA1AAwAOQAAADr/4QBqAAUAbwAJANwAAADkAAABaf/pAWz/8gGg/9EBqf/hAbkAFAG9/98Bvv/rAcH/swHC/7MByP+tACEAGv/tADX/7gBW/+0Aev+/AH3/6QCQ/7UAkf/PAJf/swC8//cAwf/4AMX/9wDW//EA1wAoAOoASgD6//YBEQAUAR7/7AE0/9YBNf/kAUr/7gFL/+cBUP/vAVH/4wFT//QBrP/NAbgAKAG8ACkBv//KAcD/ygHB/8sBwv/KAcf/xAHI/8YAHwAY/64AIf/uACL/7gA+AC4ATv/bAGr/7QDE//UA3AA0AN///QDgADkA4QA7AOQAIgDmAC4A6AA7AUr/8wF8/6UBff+1AX7/rwF//7kBgP+gAYH/rwGC/6UBg//FAYT/qgGF/7ABpgASAa7/+wGwAE8Bvf/DAb7/yAH6/9sAFQAB/+wAFv/sAEf/8AB6AAMAn//8AKP//wC8AAAAvwAAANEAAAEeABcBNAAUAUsABQFNAAABTgAAAVAABwFR//8BUwAJAaH/8gGi/+kBr//rAbgABAADAG8ACwERAAABqQAaAAIAOQAAAan/ygAPAAH//QAa//0AI//+ADX//gBW//4Aev/tAJD/7ACR//MAl//lALz/+wDF//oA6gAbAPr//gFR/+sBpwAFABUAGv/4ADX/+AC8//UAwf/4AMX/9gD6//YBGP/9AaEABwGmAAQBqAACAbP/8QG4AAUBvAAJAb8AAgHAAAEBwQACAcIAAQHD//8BxAACAcX//wHHAAIADAAh/9kBh/+BAYj/bwGJ/3MBiv8+AYv/cAGN/3EBjv9xAY//cwHB/6EBwv+hAcj/rAAPAUv//AFMAA8BTf//AU7/+QFR/+wBjf/vAbP/8gG1//EBuAAHAb8ABwHAAAgBwgAIAcMAAQHHAAEByAABAAoBSv/xAYf/qgGI/6sBif+rAYr/pgGL/6kBjf+rAY7/qgGP/6oByP+vABIAb//8AREAAwFH/7ABSP+qAUr/9AGH/60BiP+5AYn/rAGK/5kBi/+qAY3/sgGO/6wBj/+sAaYACAHB/6IBwv+iAcYAEgHI/60ABAGg/9sBof/9AaL/+wG4//MAAwBv//0BEf/7AZ//2wAHAAH/wwFy/90Bof+qAaL/pgGv/8UBuP/5AfP/6QAGAAH/zQFy/+sBof+sAaL/qAGv/88BuP//ABUAAf+oABr/5AA1/+UAVv/lALz/xgFD//EBcv/AAYr/6wGh/6QBov+mAaP/7AGk//MBr/+tAbP/0AHD/9YBxP/pAcX/1gHG/+4BxwAgAcgAIAHz/70ACAAB/8kA8//1AXL/5gGh/6wBov+oAa//zAG4//gB8//wAAYAAf/KAXL/5gGh/6sBov+oAa//zQHz//EACQAB/8oAlv/lAJ//4gFy/+kBof+sAaL/pwGv/8wBuP/wAfP/7wAIAAH/yQFy/+gBof+sAaL/qAGkABEBr//LAbgAAQHz//AACwAB/9UAo//vAXL/9QGh/7kBov+rAaP//AGk//8Br//XAbj/+wG6AAkByAAJAAcAAf/RAXL/9QGh/7kBov+rAa//0gG4AAYB8//vAAcAAf/DAXL/3AGh/6oBov+mAa//xAG4//kB8//oAAoAGv/ZADX/2gBW/9gAev+gAH3/1wCQ/54Akf+7AaIAKwGz/9UBt//pABQAGf/qABr/3gA0/+oANf/gADn/6gA7/+oASP/qAEr/6gBP/+oAUP/qAFb/3gBt/+oAcP/qAHr/mAB9/9wAkP+iAJH/vAGiACgBs//iAbf/6gAGAHr/qACQ/70Akf/WAYD/6wG4//QBvP/uABQAGf/oABr/3QA0/+gANf/eADn/6AA7/+gASP/oAEr/6ABP/+gAUP/oAFb/3QBt/+gAcP/oAHr/lgB9/9sAkP+hAJH/tgGiACcBs//fAbf/6QAUABn/7AAa/+sANP/sADX/7AA5/+wAO//sAEj/7ABK/+wAT//sAFD/7ABW/+sAbf/sAHD/7AB6/5gAff/mAJD/rQCR/8QBogAqAbP/9AG3//AAFQAZ/98AGv/PADT/3wA1/88AOf/fADv/3wBI/98ASv/fAE//3wBQ/98AVv/OAG3/3wBw/98AdP/fAHr/iQB9/8kAkP+UAJH/rQCW/+4Bs//bAbf/2QAYABn/5gAa/+UANP/mADX/5gA5/+YAO//mAEj/5gBK/+YAT//mAFD/5gBW/+UAbf/mAHD/5gB6/5MAff/gAJD/qACR/7wAl/+GAMX/8AD6/+4BFP/nAaIAIgGz/+8Bt//pABIAGv/fACP/7AA1/+AAVv/fAHr/nAB9/90AkP+jAJH/vQCX/4cAxf/xAR7/2gEh/+oBNf/NAaIAHQGz/+IBt//rAbgAAwHz/6wADwAa/+wANf/sAFb/6wB6/5gAff/mAJD/qwCR/8YAxf/2APT/8QD6//UBHv/eAaIAJgGz//UBt//wAfP/vgAMABr/2QA1/9sAVv/ZAHr/oAB9/9gAkP+eAJH/uwGhABUBogArAbP/1AG3/+oB8/+lABEBXv/TAWD/3QFh/+8BYv+/AWT/1AFm/9sBZ//gAXz/nwF9/64Bfv+mAX//twGA/4YBgf+rAYL/oAGD/8IBhP+mAYX/pwABAXL/0QABAXL/4wACAWz/6wFy/7QAAQFy/90AAQFy/94AAQFy/+0AAQFy/+wAAQFy/9AACwGo/+4BuP/vAb//owHA/6UBwv+vAcf/pwHI/6wB0v/DAdP/wwHz/+gB9P/qAAwBqP/yAbj/9QG//6wBwP+uAcL/tgHH/6sByP+sAdL/1AHT/9QB8//rAfT/6wH1/+kADQFi/+sBof/vAaL/6wGo/+UBuP/mAb//yQHA/9IBwv/SAcf/xAHI/8UB0v/5AdP/+QH1/+0ADAGo//ABuP/wAb//qwHA/64Bwv+2Acf/qgHI/6wB0v/TAdP/0wHz/+kB9P/qAfX/5QAMAaj/8QG4//EBv//DAcD/zAHC/80Bx/++Acj/vwHS/+wB0//sAfP/6wH0/+0B9f/qAAwBqP/tAbj/8QG//7EBwP+2AcL/vAHH/7cByP+4AdL/1QHT/9UB8//VAfT/1QH1/9oADAGo//ABuP/yAb//wgHA/8wBwv/MAcf/vQHI/74B0v/mAdP/5QHz/+YB9P/oAfX/4gALAaj/7AG//6wBwP+uAcL/tgHH/6wByP+tAdL/1AHT/9QB8//rAfT/7QH1/+gAFQFeAAABXwABAWAAAAFhAAABYgAAAWMAAAFkAAABZQAAAWYAAAFnAAABqP/qAb//xAHA/8wBwv/NAcf/vgHI/74B0v/rAdP/6wHz/+wB9P/vAfX/6wAMAV4AAAGo/+4BuP/uAb//pAHA/6YBwv+wAcf/pwHI/6wB0v/FAdP/xAHz/+gB9P/rAA4Aev/uAUoAAwFL//8BTP/+AVAABAFp/+0Bb//nAY3/6gGh//YBov/vAbMADAG0AAgBuP/tAfX/8AALAUf/+gFI//0BUAAAAW//4wGJ/+4Bjf/tAY7/8wH1//IB+v/sAf3/9wH//+8AEADgACoBRwAQAUgAEQFQ//YBiv/3Aa7/9gGwADEBuf/lAcb/+QHK/+MBy//GAfX/4QH5//wB+v/RAf3/6wH//8AACgFH//oBSP/+AWn/7QFr/+sBb//kAXD/7QGN/+wB9f/xAfr/8AH9//MABQFH//4BSP/8AfX/8AH9//IB///8ABcBR//2AUj/8QFQAAgBaf/mAWr/7wFr/+gBbP/kAW3/4QFv/+UBcP/nAXH/5AGH/+sBiP/1AYn/7gGK/+oBi//rAY3/7AGO//ABj//sAbAAAgH1//wB+v/0Af///QANAUf/+AFI//YBUP//AWz/5wFt/+YBcP/qAYr/6AGL/+wBjv/wAfX/8gH6//IB/f/2Af//+QAKAUcAAgFIAAYBUP/7AW//7AG5//MByv/0AfX/6wH6/+cB/f/yAf//4QAbADkAAADgAA0A9AAAAUoAAAFLAAABTAAAAU0AAAFOAAABTwAAAVEAAAFSAAABUwAAAaEAAAGiAAABpAAMAbgACgG6AA0BvAAIAfP/5QH0/+UB9f/oAfb/5QH3//AB+v/tAf3/7wH///ACDAAAAA0BRwAGAUgAAwFN//8BTgAEAU8AAQFR/+0BUwADAW//5wGN/+oB9f/wAf3/9QH///wCDP//ABoBSQAeAU3/+AFO//ABif//AY3/9gGh//IBov/vAaMAEgGkABsBr//rAbP/9QG0//QBtf/0Abj/+QG6//0BvP/8AcAAFwHCABcBwwAHAcQAEQHIAAsB8//lAfT/5QH1//wB9//8Afr/8QAGAaH/qgGi/6YBpAAiAa//zgGz//kBuAAEAAMBof+6AaL/qQG4AAcAAQHI//oAAQF8//EACAC8/+oA2wAAAPQAAAFN//8BTwAAAVIAAAHK//IB/P/9AAMA2wAAAPQAAAFN//cABgC6//QA9AAAAU3/8QF9/8cBfv+8Acr/+QAGAOoAEAGhAAMBogAKAaQAFQG4AAABvP/+AAEAev/sAAIA9AAAAR3//wABAaIAIwAoAKMAAACkAAAAuwAMALz/+wC+//sAwf/8AMX//ADWAAEA2wAMAN0ABwDiAAgA6gAGAOwADADuAAwA+v/7ARQAAAEYAAABGgAAAR4AEQFDABMBiAAGAYsABwGNABkBoQAbAaIAHgGjABQBpAAqAaYAFgGoACMBs//fAbT/3wG4ADEBvAAxAb8AKAHAACkBwQAoAcP/+gHF//oBxwAyAcgAMgAFALz/+wDuAAAA9AAAAcr/+wH+//sAIACjAAAAu///AMX//wDW//QA1//0AN3//ADq//kA7v//APP//AD0//wBFP/8ARj//wEeAAABIf/+ATT/+QE1//0BQwAAAYf/6AGJ/+UBi//jAY3/4wGO/+kBj//rAaH//wGi//0BpAAAAbj/7wG8/+0Bv//6AcH/+gHH//MByP/zAAIBogAEAaQAHAABAbz/8wADAU0ACQGA/+ABrgARAAEBuAAGAAEBuP/+ABYAsv/4ALr//AC8//sAvv/7AL//+wD0AAABE//8ARQAAAFN/+8BfP+XAX3/mgF+/5QBf/+SAYD/kwGB/4wBgv+XAYP/ogGE/48Bhf+XAa4AAAG8//wByv/8AAoA6gAQATv//QGg//sBoQAEAaIAFwGkAB8BrwAPAbgABQG6AAUBvAACAAQAxQABANsAAADdAAAA7gAAAAIBIQAEAcj/7AABAbj/8wABAHr/1QABAHr/1gAIAPQAAAD6AAABrgANAbz/5QHA/+sBwv/rAcf/5gHI/+YABwDXAAUA6gAIAaEADAGiABQBrwASAbgAAQG8AAEADgC8AAAA1wAAAOoAAADsAAAA9AAAAPoAAAEUAAABGAAAASEAAAFI//cBogAAAa4ADAHKAAAB+//9AAIBGAAAAcD/7gADAOoADAGhAAIBogAOAAIA9gAeARoAHgAKADkAAAC8AAAA4QALAOYAAADoAA0A9AAAASEAAAGA/+wBof//AbMAAAAHALz/9AD0AAABDv/3Aa4ADAHK//IB+//9Afz/+AARAL4AAADFAAAA1wADAOEADADmAAUA6AAVAOoABgD6AAAA+wAAAQ4AAAEeAAIBO//9AaEABAGiAA4BpAAaAa8ADQG4AA8AAQDqAAYAFQBQABAAuwANANsADQDdABgA4QA2AOgASQDqABcA7AANAO4ADQGHABUBiAAMAYkAFQGNACYBpgAYAagAKAG4AEIBvAA+AcAAJgHCACYBxwAwAcgAMAAFAOoAEAGhAAMBogALAaQAFgG4AA4AEQC7AAEA5gAoAOoABADsAAEA7gABAPEAAQEYAAABGgABAR4AAgFDAAABpAANAbgAMgG8ACsBvwAbAcAAEwHHAB0ByAAdAAIBpAANAbgAHwAEAOQAAAEeAAEBuP/8Acf//QAFAOoAGQGhAAIBogAPAaQAGQG4AA0AAQDhAA0AEwA/ACMAuwAJANYAAQDbAAkA3QAJAOEAKgDqABEA7AAJAO4ACQEYAAABHgACAY0AHwGmABMBqAAdAbgAPAG8ADgBwAAeAccAJwHIACcAJwA+ADMASAARAJAAKACWACMAlwAwALsABgDWAAUA2wAGAN0ADgDgAEQA4gAOAOoACgDsAAYA7gAGAPMAAQD0AAEBEQABARQAAQEYAAABHAAAAR4ACwEgAAsBNAAHATUACQE6AAYBRwAiAYgAEgGPABsBpAAOAaYAGgGoACsBuAA6AbwAMwG/ACkBwAAlAcEAKQHCACUBxwAsAcgALAAWALsAAAC8AAAA2wAAAOQAGQDqAAEA7AAAAO4AAAD6AAABEgAAARYABgEaAAEBHgABAUUAAAGmAAMBuAAtAbwAHwG/AAcBwAALAcEABwHCAAsBxwAZAcgAGQAKAMUAAADWAAAA4QAMAOgAFgDqAAAA9AAAARoAAAEeAAABOgAAAYD/7AABADr/3gAHARgAAAEhAAABNP/yAX3/+gF+//QBf//0AYD/8AAGAOcABwD0AAABDv/8AREAAwFN//cBygAAAAgAugAAANsAAADhABkA5gATAOgAGgFHACIBSAAgAVL//wAHANcAAwERAAMBoQAHAaIADQGkABgBuAABAbwAAgADAHr/4AG4//MBv//yAAkA4QAAAR0AAAGA/9kBuP/sAbz/5wHA//ABwv/wAcf/7AHI/+wADADFAAMA1wACARgACQEhAAcBNP/8AaH/+QGi//YBowAGAbj/8AG///gBwf/4Acf/8gACAOUABgDoADgAAQDuAG8AEADBAAAA2wAAAOEACwDmAAAA6AANAPoAAAGi//8BowAAAaYAAAGoAAABswAAAbQAAAG1AAABtwAAAcEAAAHCAAAAAQGiAAgAAQG4//YABQC8AAAA2wAAAPQAAAFNAA4BvP/qAAYA+gAAARQAAAF8/+sBgP/PAYL/7AGE/+8ABADzAAEA9AABAREAAQEUAAEACQDXAAMA6gASARj//wGhAAwBogAZAaQAFwGvABMBuAAFAbwABgACAcf/6AHI/+gAAgB6/+ABHQAAAAEAev/gAA0AOv/gALsAAAC/AAAA2wAAAPQAAAD6AAABEQAAARMAAwEdAAABrgALAbj/8wHH/+cByP/nAAIARAAIAOYAFgAJABr/8gBv//4A5gAUASX/9wFSAAMBUwACAcr/+AH7//8B/f/2AAEBov++AAEA5gAiAAMAGv/cAGr/2wEl/+gAGgAK/7oAGv/cABv/3AA1/9wAPgAPAGr/2wB5/+EArP/fALT/xAC2/9MAzv/hANH/wQDf//YA5gAhAPz/2gEE/8MBDf/RASX/6AFP//4BUv/sAVP/9QF8/4wBfv+LAa7/7AHK/88B/P/jAA0AGv/ZADkAAAA6//EAb//6AOEAHwDmABMA6AAkAU0ABQFP//sBUv/zAVP/7AHK/+YB/P/pABAAGv/xADX/8wA5AAAAPgAPALL/5wDhACMA5gAXAOgAKQEl//gBTQAEAU8AAAFS//kBU//8AX//xwGu//wByv/oACEACv+4AAv/uAAM/7gADf+4AA//uAAQ/7IAF/+zABr/5QA1/+cAPgANAGr/5ACl/9UAsv/eALb/1wC6/9QAx//eAM7/5ADR/9IA0//cAN//9wDhACcA5gAZAOgALQEC/+EBGv/rAU///gFS//ABU//6AX3/rgF+/6YBrv/1Acr/2wH+/+UAAgB5//wAuwAAAAUAOQAAADr/8gB5//wAo//4AX7/4AACAAr/wgCl/9IAAgDd//8BJf/yAEIACv/CAAv/wgAM/8IADf/CABf/vwAa/+kAHf/pADX/6gA5AAAAOv/5AGr/5wB5/+8ApP/AAKX/0gCm/9IAp//SAKj/0gCr/9QAsv/bALT/wgC1/8EAtv/VALj/wwDG/7oAx//QAM7/3ADP/7oA0f++ANP/0ADe/+cA3//2AOEAJQDl//kA5gAZAOgALgEC/9YBBP+7AQn/uwEM/8oBDf/OAQ//1gEV/+oBFv/4ARr/4wEk//EBJf/yASf/7QEs/+0BLf/sAS//7gEw//ABM//wAT3/7QFA/+oBQf/qAUX/+gFNAAcBT//+AVL/+AFT//sBfP+gAX7/oAGu//EByv/ZAf3/2gH+/80AGgAB//sAI//7ADX/+QB0AAUAev/oAH3/+ACQ/+AAkf/pAJf/3ACfAAUAo///AYb/4gGH/+EBif/pAYr/4QGL/+ABjP/iAY3/4AGO/+YBj//kAaEAAAG4/+oBv//xAcH/8QHH/+kByP/pAAIARAACAOYAAgAJADkAAAA6//YAb///AOEABQDmAAIA6AALAU0AEQFSAAcBgP/WAAkAOv/3AEIAAABEAAAAagAAAG8AAADmAAMBTf/9AU8AAQFSAAAAEgAB//YAR//+AG8AEwCW//kAn//9ANcADwDdAAMA6gAlATsACwFN//4BoP//AaH/+gGiABQBpAAeAa8ABQG4AAgBugAJAbwABwAjAAH/5gAC/+YAFP/mABj/2QBH/+IAVgAKAFcACgBeAAoAev/fAH0AAQB+AAEAkP/rAJH/+ACX/9wAmP/cAKP//wCk//8AxQAEAMYABADTAAQA6v/+APoAAwD7AAMBAgADART//wEhAAIBIgACATQAAQE7//8BPP//AaH/5AGi/98BqP/7Abj/7QG8/+YADwBqAAIAo//5AU3/9AFS//8BUwAGAXz/pQF9/7IBfv+uAX//vgGA/5EBgf+zAYL/pgGD/8IBhP+sAYX/rgAJAHr//QB7//0AkP//AJb//ACXAAABFAAAARgAAAG4//8BvP/8AA4AOQAAADr/8QDoAAcBIQABAU3//wF8/9gBff/sAX7/4AF//+wBgP+6AYH/4gGC/9kBhP/dAYX/4gABAaQAGAAEADr/7wDmAAcA6AATAYD/6wAEADr/7wDhAA0A5gAHAOgAEwABAcf/jwAqAAEAGAAZAAQAGv/zABz/8wA1//UAOQAEAEcANgBIAAQATwAEAFAABABSAAQAVv/0AFj/9ABwAAQAdP/9AHb//QB6AAAAff/3AH7/9wCQ//0AoQApAKMABAEh//gBIv/4ATT/4QE1/+wBhv/lAYf/8QGI/+sBif/zAYr/yAGL/+gBjP/mAY3//AGO/+gBj//sAaEAJgGiADABpAAeAagAFAGz/8QBuAAUABIANf/xADkAAAA6/+YAav/+AG//+QDmAAABDv/6AUf/ewFI/3oBT//+AVL//QFT//wBwf+mAcL/pwHH/48Byv/5AfT/ZgH+//UAAQDmABkADgA5AAAAPgANAGoAAABv//kA5gAZAOgAJgEO/+wBJf/uAUD/9AFNAAcBT//6AVL/+wFT//UByv/sAA8AAf/pAAL/6QAQ/+kAEv/pABX/6QAY/+MAOQAAADr/8ABH//kAfQABAOEADwDmAAgBof/4AaL/8gGzAAEAAwA/AFUARgBaAbgAJQAEAEUABADqABwBoQABAaIADwAFAEQAOAB2AAEAoQAKAOYAHwG4AB4ABQDXAAMA6gAmAaEAAgGiABMBpAAYAAQAPwBNAEIALQDhACMBuAAaAA8APgBNAEIALAB6AAgAkAAMAJEADwCXAA8AnwAIALsABwDdAAoA4AAxAO4ABwG4AC4BvAAjAccAGwHIABsABAA+ACwAQgBIAHYAAQChAAoAAwA6/+8BGgAAAYD/6wApAAH/6AAZ//AAH//wACP/8AA0//AAOP/1ADn/8AA6//YAO//wAEf/8ABI//AASv/wAE//8ABQ//AAVv/1AG//9QBw//AAdP/6AHr/+QB9//MAlv/1AKL/+QCj/+cAu//1AMH/6gDD/+oAxf/mANr/6QDd//EA4v/xAOr/8gDu//UA8//wAPT/8AD6/+cBFP/wARj/7QEh//QBof/wAaL/7gG4//YAHQABAAAAIwAAADkAAABHAAAAVgAAAHQAAAB6AAAAfQAAAJEAAACWAAAAlwAAANsAAADmAAcA6AATAPQAAAEYAAABOgAAAX3/9AF+/+4Bf//sAYD/6wGB/+kBgv/xAaIAAAGjAAABpgAAAa8AAAHIAAABywAAAAYAOQAAADr/9ADmAAYA6AAOAU0ACAGuABIAGAA5AAAAav/zAN//+ADhACEA5gAQAO4AAAEh//UBRf/3AU0ACQFPAAABUv/4AVP//QF8/6EBff+vAX7/rQF//8IBgP+VAYH/uwGC/6IBg//PAYT/rAGF/68Brv/9Acr/7gACAaIAMQGkACUAAQA/AAQAAQChABcAAQBv//oADwAa//EAOQAAADr/+ABqAAAAb//6AHn//QDhAB0BTQAOAU8AAAFS//4BU//9AX//9AGD//sBrv//Acr/8gAFADr/8QFN//0BUgAAAX7/3gF//+sAAgDf//8A5gAAAAoAbwAGAN///wDmAAABTQAQAU8ACQFSAAwBfP/yAYD/1AGC//IBrgAQAAYAOQAAADr/8QDmAAIBTQAMAVIAAwGA/9QAAQE0//sAAgBW/+cBR//XAAUARwAYAaEAHgGiADEBpAArAbgAEAABAG//8QAEABAADgBv//EAeQABAJD/sgABAJf/vAACAHr/wgCX/7wABQBv//MAev/CAHz/wgCQ/7kAl/+8AAIAb//xAKEAEAAPADX/6AA5AAAAOv/fAFb/5wBv//EAeQABAOH//wFH/9cBSP/LAU0AAAFP//YBUv/4AVP/8wHK//AB/v/zAAA=)format("truetype");font-style:normal;font-weight:600;font-display:swap}:root{--dur-micro:.12s;--dur-base:.18s;--dur-surface:.24s;--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);--ease-soft:cubic-bezier(.23,1.15,.32,1);--bg:#fff;--card:#f6f6f8;--ink:#23242a;--muted:#6e6f7b;--line:#e6e6ec;--accent:#7142e8;--accent-ink:#fff;--accent-soft:#ede6fc;--status-live:#416d48;--danger:#c13e51;--danger-ink:#fff;--float:#fff;--chrome:#f8f8fa;--shadow:0 16px 48px #1c182821, 0 2px 8px #1c182812;--shadow-soft:0 1px 3px #1c182812;--written:#50515c;--heading:#292a32;--scrim:#14121c2e;--pill:#232229;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root:not(.widget){--bg:#fff;--chrome:#f3f3f3;--card:#f6f6f6;--row-hover:var(--ink)}@supports (color:color-mix(in lab, red, red)){:root:not(.widget){--row-hover:color-mix(in srgb, var(--ink) 5%, transparent)}}:root:not(.widget){--float:#fff;--ink:#29292c;--muted:#606066;--heading:#29292c;--written:#54545a;--line:#e6e6e8;--accent:#6f00ff;--accent-ink:#fff;--accent-soft:#f1e6ff;--playback-bg:#e5d4ff;--playback-ink:#35105f;--primary:#6f00ff;--primary-hover:#6200e0;--control:#ececee;--control-hover:#e4e4e7;--control-pressed:#dcdce1;--control-border:transparent;--selected:#e4e2e8;--focus:#6f00ff;--danger:#b63c4d;--danger-ink:#fff;--danger-soft:#f4e5e8;--danger-control-ink:#a13041;--scrim:#16161938;--shadow:0 16px 44px #17171a1a, 0 2px 6px #17171a0d;--shadow-soft:0 1px 2px #17171a08}html,body,#root{height:100%;overflow:hidden}html.main-window,html.main-window body,html.main-window #root{background:0 0}body{background:var(--bg);color:var(--ink);font-family:var(--font-sans);letter-spacing:-.012em;-webkit-font-smoothing:antialiased;font-size:13px}.main-window *{scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:auto}.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:var(--muted) transparent}@supports (color:color-mix(in lab, red, red)){.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:color-mix(in srgb,var(--muted) 25%,transparent) transparent}}@media (prefers-contrast:more),(forced-colors:active){.main-window :is(*,:hover,:focus-visible,[data-scrolling]){scrollbar-width:auto;scrollbar-color:auto}.main-window ::-webkit-scrollbar{width:6px;height:6px}.main-window ::-webkit-scrollbar-thumb{background:var(--ink);border-radius:3px}.main-window ::-webkit-scrollbar-track{background:0 0}}.drag{-webkit-app-region:drag}.no-drag{-webkit-app-region:no-drag}html.widget,html.widget body,html.widget #root{background:0 0}html.widget{--pill:#232326;--pill-ink:#f7f7fa;--accent:#b780ff;--pill-accent:var(--accent);--widget-line:#48484d}.widget-pill{background:var(--pill);border:1px solid var(--widget-line);box-shadow:none;touch-action:none}.widget-pill:focus-visible{outline:2px solid var(--pill-accent);outline-offset:-3px}.widget-btn{color:#fff;transition:transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) ease;background:#6f00ff}.widget-btn-secondary{color:var(--pill-ink);background:#39393e}.widget-btn:disabled{opacity:.55}.widget-retry{color:#ffb0bd}.widget-btn:focus-visible{outline:2px solid var(--pill-ink);outline-offset:2px}.widget-btn:active{transform:scale(.97)}@media (hover:hover) and (pointer:fine){.widget-btn:not(:disabled):hover{background:#8120ff}.widget-btn-secondary:not(:disabled):hover{background:#48484f}}.widget-morph{visibility:hidden;isolation:isolate;-webkit-user-select:none;user-select:none;color:var(--pill-ink);cursor:default;position:absolute;overflow:hidden}.widget-morph[data-open=true]{cursor:grab}.widget-details{z-index:2;position:absolute;top:0;left:0}.widget-details>*{margin:0;position:absolute;top:0;left:0}.widget-time{white-space:nowrap;font-variant-numeric:tabular-nums;opacity:.8;font-size:10px;font-weight:500;line-height:15px}.widget-preview{color:var(--pill-ink);transform-origin:50% 0;cursor:default;flex-direction:column;padding:0 4px 12px 12px;font-size:14px;line-height:21px;display:flex;position:absolute;top:52px;left:0}.widget-preview[aria-hidden=true]{visibility:hidden;transition:visibility 0s linear var(--dur-base)}.widget-preview[aria-hidden=true] *{animation-play-state:paused!important}[data-testid=widget-wave]{will-change:transform}.widget-preview[aria-hidden=true]{pointer-events:none}.widget-preview-conversation{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto;flex:auto;min-height:0;padding:8px 4px 4px 0;overflow-x:hidden;overflow-y:scroll!important}.widget-preview-conversation::-webkit-scrollbar{width:4px}.widget-preview-conversation::-webkit-scrollbar-thumb{background:#ffffff50;border-radius:3px}.widget-preview-turn{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:16px;display:flex}.widget-preview-turn[data-me=true]{align-items:flex-end}.widget-preview-speaker{color:#b8b8c0;text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding-inline:8px;font-size:12px;font-weight:500;overflow:hidden}.widget-preview-bubble{overflow-wrap:anywhere;background:#ffffff0d;border-radius:12px;max-width:100%;padding:8px 12px}.widget-preview-turn[data-me=true] .widget-preview-bubble{background:#ffffff17}.widget-preview .live-words{color:#c3c3ca}.widget-preview .live-dots i{background:#c3c3ca}.widget-preview-empty{color:#b8b8c0;padding:12px 6px;font-size:13px}.widget-preview-latest{border:1px solid var(--widget-line);background:var(--pill);bottom:12px;border-radius:8px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;display:flex;position:absolute;inset-inline-start:50%;translate:-50%;box-shadow:0 3px 10px #0003}[dir=rtl] .widget-preview-latest{translate:50%}.widget-preview-warning{background:#ffffff06;border-radius:10px;flex:none;margin:0 8px 12px 0;padding:10px 12px;font-size:12px;line-height:18px}.widget-settings{cursor:pointer;background:#ffffff08;border:1px solid #ffffff20;border-radius:6px;min-height:28px;margin-top:10px;padding:4px 9px;font-size:11px;font-weight:500;display:block}.widget-settings:hover{background:#ffffff14}.widget-preview button:focus-visible{outline:2px solid var(--pill-accent);outline-offset:1px}.widget-preview .page-loading{--control:#ffffff14}@media (prefers-reduced-motion:reduce){.widget-btn{transition:none}}.note-summary-actions{align-self:center;margin-inline-start:auto}.note-view-menu{width:28px;height:28px;color:var(--muted);border-radius:4px;place-items:center;display:grid}.note-view-menu:hover,.note-view-menu[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip,.note-record-action{height:32px}.note-chip,.share-btn,.person-remove{transition:background-color var(--dur-micro) ease, color var(--dur-micro) ease, opacity var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) ease}.note-chip:hover,.note-chip[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip:focus-visible,.share-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.share-btn:hover{background:var(--control-hover)}.person-remove{opacity:0}.person-row:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.person-row:hover{background:color-mix(in srgb, var(--line) 45%, transparent)}}.person-row:hover .person-remove{opacity:1}.person-row:has(:focus-visible) .person-remove{opacity:1}.menu-entry{transform-origin:var(--transform-origin,top right)}.menu-entry[role=menu]{color:var(--ink);border-color:var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:9px;padding:5px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]){border-radius:5px;min-height:32px;padding:6px 9px;font-size:12px;line-height:20px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):hover:not(:disabled){background:var(--control-hover)}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):focus-visible{background:var(--selected);outline:none}.menu-entry[role=menu] :is([data-testid=note-delete],.folder-picker-new){border-top:1px solid var(--line);border-radius:0 0 5px 5px;margin-top:4px;padding-top:10px}.people-add-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.people-add-field input:focus-visible{outline:none}.menu-entry[data-anchor=start]{transform-origin:0 0}[dir=rtl] .menu-entry[data-anchor=start]{transform-origin:100% 0}[dir=rtl] .menu-entry[data-anchor=end]{transform-origin:0 0}.menu-entry[data-anchor=bottom-start]{transform-origin:0 100%}[dir=rtl] .menu-entry[data-anchor=bottom-start]{transform-origin:100% 100%}.menu-entry[data-pointer=true]{transition:opacity var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}.menu-entry[data-pointer=true][data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.menu-entry[data-pointer=true]{opacity:0;transform:scale(.97)}}.menu-entry[data-pointer=true][data-ending-style]{opacity:0;transition:opacity var(--dur-micro) var(--ease-out);pointer-events:none;transform:none}@media (prefers-reduced-motion:reduce){.note-chip,.share-btn,.person-remove,.menu-entry[data-pointer=true]{transition:opacity var(--dur-micro) var(--ease-out)}.menu-entry[data-pointer=true][data-starting-style]{transform:none}@starting-style{.menu-entry[data-pointer=true]{transform:none}}}.ghost-btn{color:var(--muted);transition:color var(--dur-micro) ease, background-color var(--dur-micro) ease;border-radius:6px;align-items:center;gap:5px;padding:4px 8px;display:inline-flex}.ghost-btn:hover,.ghost-btn[aria-pressed=true]{color:var(--ink);background:var(--control-hover)}@keyframes rec-pulse{50%{opacity:.35}}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.note-prose,.note-empty{font-size:15px;line-height:1.7}.note-prose{color:var(--ink);caret-color:var(--accent)}.note-empty{color:var(--muted)}.note-prose>*+*{margin-top:.4em}.note-prose h1,.note-prose h2,.note-prose h3{font-weight:600;line-height:1.4;position:relative}.note-prose h1{margin-top:1.5em;font-size:19px}.note-prose h2{letter-spacing:-.015em;margin-top:1.7em;font-size:15px}.note-prose h3{margin-top:1.3em;font-size:15.5px}.note-prose>:first-child{margin-top:0}.note-prose h1+ul,.note-prose h2+ul,.note-prose h3+ul,.note-prose h1+ol,.note-prose h2+ol,.note-prose h3+ol{margin-top:.35em}.note-prose ul,.note-prose ol{padding-inline-start:1.15em}.note-prose ul{list-style:outside}.note-prose ul ul{list-style:none}.note-prose ul ul>li{position:relative}.note-prose ul ul>li:before{content:"–";color:var(--muted);position:absolute;inset-inline-start:-1.1em}.note-prose ol{list-style:decimal}.note-prose li{margin-top:.25em;padding-inline-start:.15em}.note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.note-prose li::marker{color:color-mix(in srgb, var(--ink) 70%, transparent)}}.note-prose strong{font-weight:600}.note-prose a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.note-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--muted);float:inline-start;pointer-events:none;height:0}.note-prose.enhanced{color:var(--written)}.note-prose.enhanced h1,.note-prose.enhanced h2,.note-prose.enhanced h3{color:var(--heading)}.note-prose.enhanced strong,.note-prose .mine{color:var(--ink)}.chat-answer h1:before,.chat-answer h2:before,.chat-answer h3:before{content:none}@keyframes fade-in{0%{opacity:.4}to{opacity:1}}.chat-in{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.fw{animation:fade-in var(--dur-micro) var(--ease-out) both}.chat-answer{font-size:14.5px;line-height:1.6}:where(.stream-caret,.streaming .note-prose):empty:after,:where(.stream-caret,.streaming .note-prose)>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after{content:"●";vertical-align:.1em;color:var(--muted);margin-inline-start:.3em;font-size:.7em;animation:2s cubic-bezier(.4,0,.6,1) infinite caret-pulse}@keyframes caret-pulse{50%{opacity:.35}}.swap{flex:none;place-items:center;display:inline-grid}.swap>*{transition:opacity var(--dur-base) var(--ease-out),filter var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-soft);grid-area:1/1;display:inline-flex}.swap>[data-on=false]{opacity:0;filter:blur(2px);pointer-events:none;transform:scale(.4)}.swap-text{display:inline-grid}.swap-text>*,.swap-text:after{grid-area:1/1}.swap-text[data-widest]:after{content:attr(data-widest);visibility:hidden;height:0;overflow:hidden}.swap-in{animation:swap-in var(--dur-base) var(--ease-out) both}@keyframes swap-in{0%{opacity:0;filter:blur(2px)}}.follow-arrow{transition:transform var(--dur-base) var(--ease-soft)}.follow-arrow[data-up=true]{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.swap>*{transition:opacity var(--dur-micro) var(--ease-out);filter:none!important;transform:none!important}.swap-in{animation:motion-fade var(--dur-micro) var(--ease-out)}.follow-arrow{transition:none}}.accordion{transition:grid-template-rows var(--dur-base) var(--ease-out);grid-template-rows:0fr;display:grid}.accordion[data-open=true]{transition-duration:var(--dur-surface);grid-template-rows:1fr}.accordion>*{opacity:0;filter:blur(2px);visibility:hidden;min-height:0;transition:opacity var(--dur-micro) var(--ease-out),filter var(--dur-micro) var(--ease-out),visibility var(--dur-base);overflow:hidden}.accordion[data-open=true]>*{opacity:1;filter:blur();visibility:visible;transition:opacity var(--dur-base) var(--ease-out) 40ms,filter var(--dur-base) var(--ease-out) 40ms,visibility 0s}@media (prefers-reduced-motion:reduce){.accordion{transition:none}.accordion>*,.accordion[data-open=true]>*{filter:none;transition:opacity var(--dur-micro) var(--ease-out),visibility var(--dur-micro)}.accordion[data-open=true]>*{transition-delay:0s}}.streaming .note-prose>:last-child>br.ProseMirror-trailingBreak:only-child{display:none}.summary-surface{position:relative}.summary-surface[data-streaming=true]{isolation:isolate}.summary-surface[data-streaming=true] .note-prose{z-index:1;position:relative}.summary-ink-layer{pointer-events:none;width:100%;height:100%;fill:var(--accent);position:absolute;inset:0;overflow:hidden}.summary-surface:not([data-streaming=true])>.summary-ink-layer{display:none}.summary-ink{color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.summary-ink{color:color-mix(in srgb, var(--accent) var(--ink-fresh,0%), var(--ink-target))}}.enhanced{--ink-target:var(--written)}.enhanced :is(h1,h2,h3){--ink-target:var(--heading)}.enhanced :is(strong,.mine){--ink-target:var(--ink)}.enhanced a{--ink-target:var(--accent)}.summary-outline{pointer-events:none;padding-top:5px;font-size:15px}.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,var(--line) 50%,var(--line) 100%);border-radius:3px;height:8px}@supports (color:color-mix(in lab, red, red)){.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,color-mix(in srgb,var(--line) 40%,var(--card)) 50%,var(--line) 100%)}}.summary-outline-bar{background-size:200% 100%;animation:1.6s ease-in-out infinite shimmer}.summary-outline-heading{width:30%;height:11px;margin-bottom:16px}.summary-outline-block+.summary-outline-block{margin-top:29px}.summary-outline-bullet{align-items:center;gap:calc(1.3em - 4px);margin-bottom:14px;display:flex}.summary-outline-bullet:before{content:"";background:var(--line);border-radius:50%;flex:none;width:4px;height:4px}.summary-outline-bullet .summary-outline-bar{width:80%}.summary-outline-bullet:nth-child(3) .summary-outline-bar{width:58%}.summary-outline-block+.summary-outline-block .summary-outline-bullet:nth-child(2) .summary-outline-bar{width:70%}.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, var(--line) 50%, var(--line) 100%);inset-inline-start:0;border-radius:4px;width:142px;max-width:100%;height:12px;position:absolute;top:5px}@supports (color:color-mix(in lab, red, red)){.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, var(--card)) 50%, var(--line) 100%)}}.summary-heading-bar{pointer-events:none;transform-origin:0;background-size:200% 100%}.summary-surface[data-waiting=true]>.summary-heading-bar{animation:1.6s ease-in-out infinite shimmer}.summary-surface[data-waiting=true] .note-prose:after,.summary-surface[data-waiting=true] .note-prose :after{content:none}@media (prefers-reduced-motion:reduce){.summary-heading-bar{animation:none!important}.summary-outline-bar,.summary-outline-block{opacity:.75;animation:none}.summary-ink{color:inherit}.summary-ink-layer{display:none}}.chat-answer>*+*{margin-top:.45em}@media (prefers-reduced-motion:reduce){.chat-in,.fw{animation:motion-fade var(--dur-micro) var(--ease-out)}.stream-caret:after,.stream-caret :after,.streaming .note-prose:after,.streaming .note-prose :after{animation:none}}.line-in{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.bubble{text-align:start;overflow-wrap:anywhere;max-width:min(85%,560px);color:var(--ink);border-radius:9px;padding:5px 10px;font-size:13.5px;line-height:1.5}.bubble-me,.bubble-them{background:var(--control)}.bubble .line{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:4px}.bubble [data-playing]:before{content:none}.turn-time{opacity:0;transition:opacity var(--dur-micro) var(--ease-out)}.transcript-turn:hover .turn-time{opacity:1}.transcript-turn:has([data-playing]) .turn-time{opacity:1}.live-words{color:var(--muted)}.live-word{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.live-dots{vertical-align:-.1em;align-items:center;gap:3px;height:1em;margin-inline-start:7px;display:inline-flex}.live-dots i{background:var(--muted);border-radius:999px;width:4px;height:4px;animation:1.2s ease-in-out infinite live-dot}.live-dots i:nth-child(2){animation-delay:.2s}.live-dots i:nth-child(3){animation-delay:.4s}@keyframes live-dot{0%,80%,to{opacity:.3}40%{opacity:1}}.line-settle{animation:line-settle var(--dur-surface) var(--ease-out)}@keyframes line-settle{0%{color:var(--muted)}to{color:var(--ink)}}@media (prefers-reduced-motion:reduce){.live-word{animation:motion-fade var(--dur-micro) var(--ease-out)}.line-settle{animation:none}.live-dots i{opacity:.6;animation:none}}.line-playable{transition:background-color var(--dur-micro) ease}.line-playable:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.line-playable:hover{background:color-mix(in srgb, var(--line) 55%, transparent)}}.line-playable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}[data-playing]{background:var(--playback-bg);color:var(--playback-ink);box-shadow:0 0 0 1px var(--accent);position:relative}@supports (color:color-mix(in lab, red, red)){[data-playing]{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent)}}[data-playing]:before{content:"";background:var(--accent);inset-inline-start:2px;border-radius:2px;width:2px;position:absolute;top:7px;bottom:7px}.line-playable[data-playing]:hover{background:var(--playback-bg)}[data-playing] .line-time{opacity:1;color:var(--accent)}.transcript-turn:has([data-playing]) .line-who:not([data-color]){color:var(--accent)}.name-in{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.player-btn{transition:transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out)}.player-btn:hover{opacity:.88}.player-btn:active{transform:scale(.97)}.scrubber{appearance:none;cursor:pointer;background:0 0;height:16px}.scrubber::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));border-radius:999px;height:3px}[dir=rtl] .scrubber::-webkit-slider-runnable-track{background:linear-gradient(to left, var(--accent) var(--fill), var(--line) var(--fill))}.scrubber::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);width:11px;height:11px;box-shadow:0 0 0 3px var(--float);border-radius:999px;margin-top:-4px}.scrubber:focus-visible{outline:none}.scrubber:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--float), 0 0 0 5px var(--accent)}@media (prefers-reduced-motion:reduce){.line-in,.name-in{animation:motion-fade var(--dur-micro) var(--ease-out)}}.bar-btn{transition:transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out), background-color var(--dur-micro) ease, color var(--dur-micro) ease}.bar-btn:hover{color:var(--ink);background:var(--card)}.note-title-btn{transition:background-color var(--dur-micro) ease}.note-title-btn:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.note-title-btn:hover{background:color-mix(in srgb, var(--line) 60%, transparent)}}.note-title-btn:focus-visible,.bar-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.past-day{content-visibility:auto;contain-intrinsic-size:auto 320px}.search-backdrop{background:var(--scrim)}.search-panel{z-index:101;width:min(640px,100vw - 32px);height:min(560px,74vh);box-shadow:var(--shadow);border-radius:12px;outline:none;position:fixed;top:12vh;left:50%;translate:-50%}.search-header{border-bottom:1px solid var(--line);flex:none}.search-input-row{align-items:center;padding-inline:20px;display:flex}.search-field{min-width:0;font-size:var(--text-base);flex:1;line-height:24px;position:relative}.search-field input{width:100%;min-width:0;height:60px;color:var(--ink);caret-color:var(--accent);font:inherit;letter-spacing:inherit;background:0 0;border:0;outline:none;padding:18px 0;display:block;position:relative}.search-field input::placeholder{color:var(--muted);font-weight:400}.search-input-highlight{white-space:pre;pointer-events:none;color:#0000;padding-block:18px;position:absolute;inset:0;overflow:hidden}.search-input-highlight>span{min-width:100%;display:inline-block}.search-input-highlight mark{background:var(--accent-soft);color:#0000;border-radius:3px;padding:0}.search-filters{flex-wrap:wrap;gap:8px;padding:0 20px 12px;display:flex}.search-filter{background:var(--control);min-width:0;max-width:100%;min-height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:7px;padding:3px 4px 3px 8px;font-size:12px;display:flex}.search-filter>svg,.search-filter>button{flex:none}.search-filter>button{border-radius:4px;place-items:center;width:22px;height:22px;display:grid}.search-filter>button:hover{color:var(--ink);background:var(--control-hover)}.search-filter>button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.command-section{font-size:var(--text-xs);color:var(--muted);padding:12px 12px 4px;font-weight:500;line-height:16px}.command-row{min-height:40px;font-size:var(--text-sm);cursor:default;border-radius:7px;align-items:center;gap:10px;padding:8px 12px;font-weight:500;line-height:20px;display:flex}.search-row>svg,.search-row>.folder-glyph{width:16px;height:16px;color:var(--muted);flex:none}.search-filter>.folder-glyph{color:var(--muted)}.command-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.search-meeting{cursor:default;border-radius:7px;align-items:center;gap:10px;min-height:48px;padding:8px 12px;display:flex}.search-metadata{max-width:35%;color:var(--muted);font-size:var(--text-xs);text-align:end;font-variant-numeric:tabular-nums;flex:none;line-height:18px}.search-metadata>span{display:block}.search-return{visibility:hidden;flex:none}.search-row[aria-selected=true] .search-return{visibility:visible}.search-key{min-width:20px;height:20px;font:var(--text-xs) var(--font-sans);white-space:nowrap;color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:4px;flex:none;place-items:center;padding:0 4px;display:inline-grid}.search-footer{border-top:1px solid var(--line);min-height:44px;color:var(--muted);font-size:var(--text-xs);background:var(--card);flex:none;align-items:center;gap:14px;padding:10px 20px;display:flex}.search-footer>span{white-space:nowrap;align-items:center;gap:5px;display:flex}@media (width<=480px){.search-input-row,.search-filters{padding-inline:16px}.search-footer{flex-wrap:wrap;gap:8px 12px;padding-inline:16px}}.search-panel [data-testid=search-input]:focus-visible{outline:none}.app-modal{z-index:101;border:1px solid var(--line);background:var(--float);width:min(340px,100vw - 40px);max-height:calc(100vh - 40px);color:var(--ink);box-shadow:var(--shadow);text-align:start;border-radius:16px;outline:none;padding:0;position:fixed;top:50%;left:50%;overflow:auto;translate:-50% -50%}.app-modal-backdrop{z-index:100;background:var(--scrim);position:fixed;inset:0;pointer-events:auto!important}.dialog-motion{transform-origin:50%;transition:opacity var(--dur-surface) var(--ease-out),transform var(--dur-surface) var(--ease-soft);flex-direction:column;display:flex}.dialog-motion[data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.dialog-motion{opacity:0;transform:scale(.97)}}.dialog-motion[data-ending-style]{opacity:0;transition-duration:var(--dur-base);transition-timing-function:var(--ease-out);transform:scale(.98)}@media (prefers-reduced-motion:reduce){.dialog-motion,.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out)}.dialog-motion[data-starting-style],.dialog-motion[data-ending-style]{transform:none}@starting-style{.dialog-motion{transform:none}}}.app-modal[data-testid=delete-confirm]{border-radius:17px;width:min(294px,100vw - 40px)}.app-modal[data-testid=delete-confirm] .modal-copy{padding:21px 19px 20px}.app-modal[data-testid=delete-confirm] .modal-copy p{font-size:11px;line-height:17px}.app-modal[data-testid=delete-confirm] .modal-actions{padding:0 19px 17px}.app-modal[data-testid=delete-confirm] .modal-button{border-radius:8px;min-height:32px}.modal-copy{padding:22px 20px 18px}.modal-copy h2{letter-spacing:-.15px;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:20px}.modal-copy p{color:var(--muted);margin-top:8px;font-size:12px;line-height:18px}.inline-error{border:1px solid var(--line);background:var(--float);color:var(--written);text-align:start;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:20px;display:flex}.inline-error>svg{color:var(--danger);flex:none;align-self:flex-start;margin-block-start:2px}.inline-error>span{overflow-wrap:anywhere;flex:1;min-width:0}.inline-error-action{color:var(--accent);text-underline-offset:3px;border-radius:4px;flex:none;padding:2px 3px;font-size:12px;font-weight:500;text-decoration:underline}.inline-error-action:hover{color:var(--ink);background:var(--control)}.inline-error-action:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.inline-error-in-dialog{background:0 0;border:0;border-radius:0;margin:0 19px 16px;padding:0;font-size:12px;line-height:18px}.modal-actions{flex-direction:column;gap:7px;padding:0 20px 20px;display:flex}.modal-button{background:var(--control);width:100%;min-height:33px;transition:background-color var(--dur-micro) ease;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;padding:6px 12px;font-size:12px;font-weight:500;display:inline-flex}.modal-button:hover:not(:disabled){background:var(--control-hover)}.modal-button.danger{color:var(--danger-control-ink);background:var(--danger-soft)}.modal-button.danger:hover:not(:disabled){background:var(--danger-soft)}@supports (color:color-mix(in lab, red, red)){.modal-button.danger:hover:not(:disabled){background:color-mix(in srgb,var(--danger-soft) 87%,var(--danger))}}.modal-button.primary{background:var(--primary);color:#fff}.modal-button.primary:hover:not(:disabled){background:var(--primary-hover)}.modal-button:disabled{opacity:.55}.search-row[aria-selected=true]{background:var(--selected)}.search-mark{background:var(--accent-soft);color:var(--ink);border-radius:3px;padding:0 1px}@media (prefers-reduced-motion:reduce){.bar-btn{transition:none}}.window-bar{background:var(--chrome);border-bottom:1px solid var(--line)}button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus-visible{border-radius:5px}input::selection{background:var(--accent-soft)}textarea::selection{background:var(--accent-soft)}.note-prose ::selection{background:var(--accent-soft)}.editor-menu{z-index:40}.editor-toolbar{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:2px;padding:4px;display:flex}.editor-toolbar button{width:30px;height:30px;color:var(--written);border-radius:6px;place-items:center;display:grid}.editor-toolbar button:hover{background:var(--control-hover);color:var(--ink)}.editor-toolbar button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.editor-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.home-content{max-width:880px}.home-content>header{padding-bottom:2px}.calendar-schedule{background:var(--bg)}.calendar-schedule [data-testid=event]+[data-testid=event]{border-top:1px solid var(--line)}.calendar-schedule [data-testid=event]{min-height:76px}.past-day>ul{border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-row+.card-row{border-top:1px solid var(--line)}.document-main{background:var(--bg)}.document-body{padding-top:86px}.document-meta{padding-bottom:18px}.note-layout{min-height:0}.note-page-width{width:100%;max-width:860px;margin-inline:auto;padding-inline:clamp(20px,10cqw - 42px,48px)}.note-header{flex:none;padding-top:84px}.note-metadata{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.note-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.note-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.note-recording-status{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;padding-inline:10px;display:flex}.note-elapsed{font-variant-numeric:tabular-nums;min-width:36px;color:var(--muted);text-align:end;margin-inline:4px 8px;font-size:11px}.note-primary-tabs{border-bottom:1px solid var(--line);gap:24px;margin-top:22px;display:flex;position:relative}.note-primary-tabs [role=tab]{height:36px;color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:7px;padding-inline:1px;font-size:13px;font-weight:500;display:flex}.note-primary-tabs [role=tab][aria-selected=true],.note-primary-tabs [role=tab]:hover{color:var(--ink)}.note-primary-tabs[data-summary-arriving=true] #note-summary-tab{animation:summary-tab-arrive var(--dur-micro) var(--ease-out) both}@keyframes summary-tab-arrive{0%{opacity:0}}.note-reading-area{flex:1;min-height:0;display:flex;position:relative}.note-panels{contain:layout;flex:1;min-width:0;min-height:0;display:flex}:is(.note-panels,.ask-page)::view-transition-group(root){animation:none}:is(.note-panels,.ask-page)::view-transition-old(root){animation:none;display:none}:is(.note-panels,.ask-page)::view-transition-new(root){animation:note-panel-in var(--dur-micro) var(--ease-out) both;mix-blend-mode:normal}@keyframes note-panel-in{0%{opacity:0}}.note-tab-indicator{height:2px;width:var(--tab-width,0px);background:var(--primary);transform:translateX(var(--tab-x,0px));pointer-events:none;inset-inline-start:0;border-radius:1px;position:absolute;bottom:-1px}@media (prefers-reduced-motion:no-preference){.note-layout[data-tab-pointer=true] .note-tab-indicator{transition:transform var(--dur-base) var(--ease-out),width var(--dur-base) var(--ease-out)}}.note-content{flex:1;min-width:0;min-height:0}.main-window .note-notes-pane{scrollbar-gutter:stable both-edges;overflow-y:auto}.note-notes-pane[hidden]{display:none}.note-notes-body{padding-top:22px;padding-bottom:40px}.note-transcript-pane{contain:layout style;--transcript-inset:calc(max(0px,(100% - 860px)/2) + clamp(20px,calc(10cqw - 42px),48px));display:flex}.transcript-turn{contain:layout style}.note-footer{background:var(--bg);--note-footer-line:var(--line);flex:none}@supports (color:color-mix(in lab, red, red)){.note-footer{--note-footer-line:color-mix(in srgb,var(--line) 60%,var(--bg))}}.note-footer-bar{min-height:var(--workspace-footer-height);border-top:1px solid var(--note-footer-line);justify-content:space-between;align-items:center;gap:12px;padding:8px 24px;display:flex}.note-footer-bar:not(:first-child){margin-top:8px}@media (prefers-contrast:more){.note-footer{--note-footer-line:var(--line)}}.note-status{min-width:0}.note-footer-bar>.chat-trigger{flex-shrink:0}.chat-trigger kbd{color:var(--muted);margin-inline-start:8px;font-family:inherit;font-size:11px;font-weight:400}.note-footer>[data-testid=note-stop-unsaved]{max-width:min(760px,100% - 48px);margin-inline:auto}.note-record-hint{max-width:760px;color:var(--written);justify-content:center;align-items:flex-start;gap:7px;margin:8px auto 0;padding-inline:24px;font-size:12px;line-height:18px;display:flex}.note-record-hint>svg{margin-top:2px}.note-recording-group{flex-wrap:wrap;align-items:center;gap:8px;min-height:30px;display:flex}.note-recording-group[data-recording=true]{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);border-radius:6px;flex-wrap:nowrap;gap:0}.note-recording-group[data-recording=true] .note-elapsed{margin:0}.note-recording-group[data-recording=true] .note-record-action{border:0;border-inline-start:1px solid var(--line);min-width:0;height:28px;box-shadow:none;color:var(--muted);background:0 0;border-radius:0;flex:none;padding-inline:12px}.note-recording-group[data-recording=true] .note-pause-action{width:30px;padding:0}.note-recording-group[data-recording=true] .note-record-action:last-child{border-start-end-radius:6px;border-end-end-radius:6px}.note-recording-group[data-recording=true] .note-record-action:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.note-recording-group[data-recording=true] .note-record-action:active:not(:disabled){background:var(--control-pressed)}.note-recording-group[data-recording=true] .note-finish-action{background:var(--primary);color:#fff;min-width:68px;height:30px;margin-block:-1px;margin-inline-end:-1px}.note-recording-group[data-recording=true] .note-finish-action:hover:not(:disabled),.note-recording-group[data-recording=true] .note-finish-action:active:not(:disabled){background:var(--primary-hover);color:#fff}.note-recording-group[data-recording=true] .note-finish-action:focus-visible{outline-offset:-3px;outline-color:#fff}.note-finishing{border:1px solid var(--line);height:30px;color:var(--muted);border-radius:6px;align-items:center;padding-inline:10px;font-size:12px;display:flex}.note-header-actions .share-btn{height:30px;box-shadow:none;background:0 0}.workspace .note-record-action:focus-visible{outline-offset:-2px}.chat-trigger{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding-inline:10px;font-size:12px;font-weight:500;display:flex}.chat-trigger:hover,.chat-trigger[aria-expanded=true]{background:var(--control)}.chat-trigger:active{background:var(--control-pressed)}.chat-panel{z-index:70;inset-block:auto var(--chat-bottom,72px);width:420px;max-width:calc(100% - 32px);height:min(440px,var(--chat-height,440px),calc(100dvh - var(--chat-bottom,72px) - 68px));border:1px solid var(--line);background:var(--float);min-height:0;max-height:none;color:var(--ink);border-radius:12px;margin:0;padding:0;position:fixed;inset-inline:auto 24px;overflow:visible;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel[open]{flex-direction:column;display:flex}.chat-panel{box-shadow:none;background:0 0;border-color:#0000}.chat-morph-surface{pointer-events:none;border:1px solid var(--line);border-radius:inherit;background:var(--float);width:calc(100% + 2px);height:calc(100% + 2px);position:absolute;inset:-1px auto auto -1px;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel-contents{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.chat-trigger[aria-expanded=true]{opacity:0}.note-resume-action{min-width:160px}.note-recording-group .note-record-action[data-processing=true]{cursor:wait}[data-icon]{flex:none}[data-icon=Loader]{animation:1s linear infinite icon-spin}[data-icon] path{transform-box:fill-box;transform-origin:50%}@keyframes icon-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){[data-icon=Loader]{animation:none}}.chat-icon{width:28px;height:28px;color:var(--muted);border-radius:5px;flex-shrink:0;place-items:center;display:grid}.chat-icon:hover,.chat-icon[aria-expanded=true]{background:var(--control);color:var(--ink)}.chat-latest{z-index:1;border:1px solid var(--line);background:var(--float);width:30px;height:30px;color:var(--muted);box-shadow:var(--shadow-soft);bottom:8px;border-radius:50%;place-items:center;display:grid;position:absolute;inset-inline-start:calc(50% - 15px)}.chat-answer-actions{align-items:center;gap:8px;margin-top:6px;display:flex}.ask-turn .chat-answer-actions{opacity:0;transition:opacity var(--dur-base) ease,transform 0s linear var(--dur-base);transform:translateY(2px)}.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{opacity:1;transition:opacity var(--dur-surface) var(--ease-out) 60ms,transform var(--dur-surface) var(--ease-out) 60ms;transform:none}@starting-style{.ask-turn[data-show-copy] .chat-answer-actions{opacity:0;transform:translateY(2px)}}.ask-turn[data-show-copy] .chat-answer-actions{transition-delay:.15s}@media (prefers-reduced-motion:reduce){.ask-turn .chat-answer-actions,.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}@media (hover:none){.ask-turn .chat-answer-actions{opacity:1}}.chat-answer-scope{min-width:0;color:var(--muted);white-space:pre;align-items:center;margin-inline-start:-5px;font-size:11px;line-height:16px;display:flex}.chat-answer-scope:before{content:"·";flex:none;margin-inline-end:8px}.chat-copy-action{min-height:28px;color:var(--muted);border-radius:5px;flex:none;align-items:center;gap:5px;margin-inline-start:-5px;padding:4px 5px;font-size:11px;display:inline-flex}.chat-copy-action:hover{background:var(--control);color:var(--ink)}.chat-progress{color:var(--muted);align-items:center;gap:9px;padding-block:5px;font-size:13px;line-height:20px;display:flex}.thinking-dots{width:18px;height:20px;color:var(--accent);flex:none}.chat-step{animation:.24s ease-out step-in}@keyframes step-in{0%{opacity:0}to{opacity:1}}.chat-step{background:linear-gradient(100deg,var(--muted) 35%,var(--ink) 50%,var(--muted) 65%) 0 0 / 250% 100%;color:#0000;-webkit-background-clip:text;background-clip:text;animation:.24s ease-out step-in,2.2s linear infinite step-shimmer}@keyframes step-shimmer{0%{background-position:100% 0}to{background-position:-150% 0}}@media (prefers-reduced-motion:reduce){.chat-step{color:inherit;background:0 0;animation:none}}.thinking-dots-static{justify-content:space-between;align-items:center;display:flex}.thinking-dots-static i{opacity:.65;background:currentColor;border-radius:50%;width:4px;height:4px}.thinking-dots-static i:nth-child(2){opacity:.81}.thinking-dots-static i:nth-child(3){opacity:.97}.chat-panel .chat-history{overscroll-behavior:contain;flex:1;min-width:0;min-height:0;padding:0 16px 20px;overflow-y:auto}.chat-panel .chat-composer{flex-shrink:0}.chat-error{color:var(--danger);margin:0 0 10px;font-size:12px;line-height:18px}@media (width<=999px){.chat-panel{inset-inline-end:16px}.chat-panel::backdrop{background:#00000029}}@media (width<=999px) and (height<=420px){.chat-panel{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);inset-block:16px}}.note-record-action{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding-inline:12px;font-size:12px;font-weight:500;display:flex}.note-record-action:hover:not(:disabled){background:var(--control-hover)}.note-record-action:active:not(:disabled){background:var(--control-pressed);box-shadow:none}.note-record-action:disabled{opacity:.45}.note-record-action.primary{background:var(--primary);border-color:var(--primary);color:#fff}.note-record-action.primary:hover:not(:disabled){background:var(--primary-hover)}@media (prefers-reduced-motion:reduce){.note-record-action{transition:none}}[data-testid=transcript-panel]{border-radius:12px}.note-primary-tools{align-self:flex-start;align-items:center;min-width:0;height:34px;margin-inline-start:auto;display:flex}.note-primary-tools .transcript-toolbar{border:0;flex-wrap:nowrap;padding:0}.note-primary-tools .transcript-actions{order:-1;margin-inline-start:0}.transcript-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 12px;display:flex}.transcript-search-field{width:68px;min-width:32px;max-width:100%;height:32px;transition:background-color var(--dur-micro) ease,border-color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:6px;flex:0 auto;align-items:center;gap:8px;padding-inline:0;display:flex}@media (prefers-reduced-motion:reduce){.transcript-search-field{transition:none}}.transcript-search-field,.transcript-search-field [data-testid=transcript-search]{cursor:pointer}.transcript-search-field:focus-within [data-testid=transcript-search]{cursor:text}.transcript-search-field:has(input:not(:placeholder-shown)) [data-testid=transcript-search]{cursor:text}.transcript-search-field:focus-within{border-color:var(--line);background:var(--control);width:224px;padding-inline:10px}.transcript-search-field:has(input:not(:placeholder-shown)){border-color:var(--line);background:var(--control);width:224px;padding-inline:10px}.transcript-search-field:focus-within{border-color:var(--accent)}[data-testid=transcript-search]{width:100%;min-width:0;height:100%;color:var(--ink);text-align:start;background:0 0;border:0;padding:0;font-size:13px;font-weight:500;line-height:20px}[data-testid=transcript-search]::placeholder{color:var(--muted)}[data-testid=transcript-search]:focus-visible{box-shadow:none;outline:none}.transcript-actions{align-items:center;gap:4px;margin-inline-start:auto;display:flex}@media (width<=600px){.window-wordmark{display:none}.note-header{padding-top:76px}.note-header .note-title-type{font-size:23px}.note-meta-row{gap:8px;margin-top:10px}.note-header-actions{gap:8px}.note-primary-tabs{flex-wrap:wrap;gap:16px;margin-top:12px}.note-primary-tools{max-width:100%}.note-primary-tools .transcript-search-field{width:32px;min-width:32px}.note-primary-tools .transcript-search-field:focus-within{width:160px}.note-primary-tools .transcript-search-field:has(input:not(:placeholder-shown)){width:160px}}@media (height<=420px){.note-layout{overflow-y:auto}.note-reading-area{flex:none;height:180px;min-height:180px}[data-testid=transcript-panel]{height:36vh}}[data-testid=transcript-panel].transcript-inline{width:100%;height:auto;min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;flex:1;display:flex;position:relative}.transcript-inline>.transcript-toolbar{border:0;padding-block:4px 8px;padding-inline:0}.transcript-inline [data-testid=transcript]{padding-inline:var(--transcript-inset);padding-top:22px;padding-bottom:max(16px,var(--playback-inset));scroll-padding-bottom:var(--playback-inset)}.transcript-inline .transcript-player-dock{inset-inline:var(--transcript-inset);z-index:1;position:absolute;bottom:4px}.transcript-inline [data-testid=player]{background:var(--float);margin:0}@supports (color:color-mix(in lab, red, red)){.transcript-inline [data-testid=player]{background:color-mix(in srgb,var(--float) 88%,transparent)}}.transcript-inline [data-testid=player]{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 2px 12px #0000000d}.transcript-inline [data-testid=transcript-follow]{bottom:calc(var(--playback-inset) + 8px)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.transcript-inline [data-testid=player]{background:var(--float);-webkit-backdrop-filter:none;backdrop-filter:none}}html:not(.widget) .bg-accent{background-color:var(--primary)}html:not(.widget) button:focus-visible,html:not(.widget) input:focus-visible{outline-color:var(--focus)}.share-control{background:var(--control);height:28px;color:var(--ink);border-radius:6px;align-items:center;font-size:12px;font-weight:500;display:flex}.share-control .share-btn{border-radius:5px;height:28px}.share-control .share-btn+.share-btn{border-color:var(--line)}@media (prefers-reduced-motion:reduce){.modal-button,.chat-page .chat-box,.chat-page .chat-send{transition:none}}.search-footer>button{border-radius:4px;align-items:center;gap:6px;margin-inline-start:auto;display:flex}.search-footer>button:hover{color:var(--ink)}.app-modal[data-testid=shortcuts-dialog]{flex-direction:column;width:min(460px,100vw - 40px);height:min(580px,80vh);display:flex;overflow:hidden}.app-modal[data-testid=shortcuts-dialog] .modal-copy{flex:none;padding:22px 24px 18px}.shortcuts-close{inset-inline-end:16px;position:absolute;top:18px}.shortcuts-search{border:1px solid var(--line);color:var(--muted);border-radius:7px;align-items:center;gap:10px;margin:0 24px 12px;padding:9px 11px;display:flex}.shortcuts-search:focus-within{border-color:var(--accent)}.shortcuts-search input{width:100%;min-width:0;color:var(--ink);background:0 0;outline:none;font-size:13px}.shortcuts-list{flex:1;min-height:0;padding:0 24px 22px;overflow-y:auto}.shortcuts-list section+section{margin-top:20px}.shortcuts-list h3{color:var(--muted);padding:10px 0 7px;font-size:11px;font-weight:500}.shortcuts-list dl>div{justify-content:space-between;align-items:center;gap:18px;min-height:34px;font-size:13px;display:flex}.shortcuts-list kbd{font:12px var(--font-sans);white-space:nowrap;color:var(--muted)}.shortcuts-empty{color:var(--muted);text-align:center;padding-top:24px;font-size:13px}.note-transcript-pane[hidden]{display:none!important}.page-loading{pointer-events:none}.loading-prose{gap:12px;padding-block:6px;display:grid}.note-title-type{letter-spacing:-.03em;font-size:28px;font-weight:600;line-height:1.25}.loading-note-chip{background:var(--control);border-radius:7px;max-width:30%;height:32px}.loading-transcript-turns{gap:12px;display:grid}.loading-folder-icon{background:var(--control);border-radius:4px;flex:none;width:16px;height:16px}.loading-checkbox{background:var(--control);border-radius:3px;width:14px;height:14px}.loading-note-frame,.loading-note-frame>.loading-result{height:100%}.people-card{max-height:var(--people-available-height,calc(100dvh - 200px));overscroll-behavior:contain;flex-direction:column;display:flex;overflow-y:auto}.people-card>*{flex-shrink:0}.people-card .people-list{overscroll-behavior:contain;flex-shrink:1;min-height:40px}:is(.line-who,.widget-preview-speaker)[data-folder-color]{color:var(--folder-ink)}.note-date-card{--note-date-ms:var(--dur-base);--note-date-ease:var(--ease-out)}.note-date-swap{position:relative;overflow:hidden}.note-date-retiring{pointer-events:none;position:absolute;inset:0 0 auto}.note-date-retiring,.note-date-retiring *{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){.note-date-card{--note-date-ms:0s}}.note-date-card .agenda-inspector-heading h3{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.note-date-linked{flex-direction:column;display:flex}.note-date-picker-space{padding-top:8px}.note-date-motion,.note-date-motion[data-open=true]{transition:grid-template-rows var(--note-date-ms) var(--note-date-ease),margin-top var(--note-date-ms) var(--note-date-ease)}.note-date-motion>*{filter:none;transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s var(--note-date-ms)}.note-date-motion[data-open=true]>*{filter:none;transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s}.note-date-details-motion[data-open=false]{margin-top:-16px}.note-date-linked .note-date-picker{border:1px solid var(--line);background:var(--card);border-radius:6px;padding:4px}.note-date-details{flex-direction:column;gap:16px;display:flex}.note-date-empty-row{white-space:nowrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.note-date-empty-row>p{text-overflow:ellipsis;min-width:0;overflow:hidden}.note-date-event-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.note-date-event-toggle{text-align:start;border-radius:4px;align-items:center;gap:8px;width:100%;display:flex}.note-date-event-toggle>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.note-date-event-toggle>svg{color:var(--muted);transition:transform var(--note-date-ms) var(--note-date-ease);flex:none}@media (prefers-reduced-motion:reduce){.note-date-motion,.note-date-motion[data-open=true],.note-date-motion>*,.note-date-motion[data-open=true]>*,.note-date-event-toggle>svg{transition:none}}.note-date-link{text-align:start;width:100%;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:8px;font-size:12px;display:flex}.note-date-link:hover,.note-date-event:hover{background:var(--card);color:var(--ink)}.note-date-card .note-date-picker button:focus-visible{outline-offset:-2px}.note-date-link small{margin-top:3px;font-size:11px;display:block}.note-date-events{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.note-date-events>p{color:var(--muted);padding:12px 8px;font-size:12px}.note-date-event{text-align:start;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px;display:flex}.note-date-event>span{flex:1;min-width:0}.note-date-event strong,.note-date-event small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-event strong{font-size:13px;font-weight:500}.note-date-event small{color:var(--muted);margin-top:3px;font-size:11px}.loading-content{min-width:0;position:relative}.loading-placeholder{pointer-events:none}.loading-content[data-loading-phase=waiting]>.loading-placeholder,.loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>.loading-result{visibility:hidden}.loading-content:has(>.loading-result)>.loading-placeholder{position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-placeholder{animation:loading-out var(--dur-micro) var(--ease-out) both;position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-result{animation:loading-in var(--dur-micro) var(--ease-out) both}.loading-mask{pointer-events:none;-webkit-user-select:none;user-select:none}.loading-bar{background:var(--control);vertical-align:middle;border-radius:4px;max-width:100%;height:.65em;min-height:7px;display:inline-block!important}.loading-mask .meeting-meta .loading-bar{align-self:flex-end}.loading-mask .meeting-folder-pill{background:var(--control);border-color:#0000}.loading-mask .meeting-folder-dot{visibility:hidden}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label){position:relative;color:#0000!important}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label):after{content:"";background:var(--control);inset-inline-start:0;border-radius:4px;width:min(75%,260px);height:10px;position:absolute;top:5px}.loading-mask .settings-description:after{width:min(85%,300px);height:8px;top:6px}.loading-mask :is(.settings-toggle,.settings-select,.settings-name-field,.settings-action,.settings-spoken,.settings-jargon-field){color:#0000!important;background:var(--control)!important;box-shadow:none!important;border-color:#0000!important}.loading-mask :is(.settings-toggle,.settings-action,.settings-spoken,.settings-jargon-field)>*,.loading-mask .settings-select-wrap>svg,.loading-mask .settings-permission-icon>*,.loading-mask .settings-permission-status{visibility:hidden}.loading-mask .settings-select{pointer-events:none}@keyframes loading-in{0%{opacity:0}to{opacity:1}}@keyframes loading-out{0%{opacity:1}to{opacity:0}}.main-window :is(.settings-scroll,.native-library){scrollbar-gutter:stable}.transcript-loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>li:not(.loading-placeholder){visibility:hidden}.transcript-loading-content[data-loading-phase=revealing]>li:not(.loading-placeholder){animation:loading-in var(--dur-micro) var(--ease-out) both}.transcript-loading-content[data-loaded=true]>.loading-placeholder{position:absolute;inset:8px 16px auto}.loading-mask .ask-field{position:relative}.loading-mask .ask-field:after{content:"";background:var(--control);border-radius:4px;width:160px;height:12px;position:absolute;inset:16px auto auto 12px}.loading-mask .ask-field textarea,.loading-mask .ask-field textarea::placeholder{color:#0000}.loading-mask .ask-toolbar{visibility:hidden}.notes-download-status{flex:0 auto;min-width:50px;max-width:45%;display:flex}.notes-download-trigger{min-width:0;height:30px;color:var(--muted);font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:400;display:flex}.notes-download-trigger:is(:hover,[aria-expanded=true]){color:var(--ink);background:var(--row-hover);border-color:var(--line)}.notes-download-trigger>svg{opacity:.65;transition:transform var(--dur-base) var(--ease-out)}.notes-download-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.notes-download-dot{background:var(--accent);border-radius:50%;flex:none;width:5px;height:5px}.notes-download-dot[data-failed=true]{background:var(--danger)}.notes-download-dot[data-failed=true][data-upgrade=true]{background:var(--muted)}.notes-download-positioner{z-index:60}.notes-download-menu{border:1px solid var(--line);background:var(--float);width:408px;max-width:calc(100vw - 24px);color:var(--ink);box-shadow:var(--shadow);border-radius:10px;outline:none;padding:14px 16px;font-size:12px;line-height:18px}.notes-download-menu p{text-wrap:pretty;overflow-wrap:anywhere}.notes-download-readout{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.notes-download-readout strong{font-weight:550}.notes-download-readout>span{color:var(--muted);font-size:11px}.notes-download-progress{background:var(--line);border-radius:4px;height:3px;margin:9px 0 7px;overflow:hidden}.notes-download-progress>span{border-radius:inherit;background:var(--muted);height:100%;display:block}.notes-download-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;display:flex}.notes-download-support{font-size:11px}.notes-download-menu[data-failed=true] .notes-download-support{flex-basis:100%}.notes-download-retry,.notes-download-skip{transition:transform var(--dur-micro) var(--ease-out)}.notes-download-actions{align-items:center;gap:12px;display:flex}.notes-download-actions button{border:1px solid var(--line);background:var(--control);color:var(--ink);white-space:nowrap;border-radius:5px;flex:none;padding:4px 10px;font-size:12px;line-height:18px}.notes-download-actions button:hover{background:var(--control-hover)}.notes-download-actions button:active:not(:disabled){transform:scale(.97)}.notes-download-actions button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.notes-download-actions button:disabled{opacity:.5}.notes-download-actions .notes-download-skip{color:var(--muted);background:0 0;border:0;padding:4px 0;font-size:11px}.notes-download-actions .notes-download-skip:hover{color:var(--ink);background:0 0}.notes-download-actions .notes-download-skip:active{transform:none}.notes-download-menu:not([data-failed=true]) .notes-download-footer{flex-wrap:nowrap}.notes-download-menu:not([data-failed=true]) .notes-download-support{flex:auto;min-width:0}.notes-download-menu [role=alert]{margin-top:10px}@keyframes motion-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.widget-btn:active,.player-btn:active,.notes-download-actions button:active:not(:disabled){transform:none}.player-btn{transition:opacity var(--dur-micro) var(--ease-out)}.scrubber::-webkit-slider-thumb{transition:none;transform:none}.scrubber:hover::-webkit-slider-thumb{transition:none;transform:none}.scrubber:active::-webkit-slider-thumb{transition:none;transform:none}.notes-download-trigger>svg{transition:none}.widget-preview[aria-hidden=true]{transition-delay:var(--dur-micro)}}.search-panel.dialog-motion,.search-panel.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out),transform var(--dur-micro) var(--ease-out)}.search-panel.dialog-motion[data-starting-style],.search-panel.dialog-motion[data-ending-style]{transform:scale(.99)}@starting-style{.search-panel.dialog-motion{transform:scale(.99)}}@media (prefers-reduced-motion:reduce){.search-panel.dialog-motion,.search-panel.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out)}.search-panel.dialog-motion[data-starting-style],.search-panel.dialog-motion[data-ending-style]{transform:none}@starting-style{.search-panel.dialog-motion{transform:none}}}.summary-rewrite{position:relative}.summary-rewrite[data-rewriting=true]>.summary-result{opacity:.45;-webkit-user-select:none;user-select:none;pointer-events:none}.summary-previous{pointer-events:none;animation:summary-rewrite-out var(--dur-micro) var(--ease-out) reverse both}.summary-rewrite[data-handoff=true]>.summary-result{visibility:hidden;animation:summary-handoff-in 0s var(--dur-micro) forwards;position:absolute;inset:0}@keyframes summary-rewrite-out{0%{opacity:0}to{opacity:.45}}@keyframes summary-handoff-in{to{visibility:visible}}@media (prefers-reduced-motion:reduce){.summary-previous{display:none}.summary-rewrite[data-handoff=true]>.summary-result{visibility:visible;animation:none;position:static}}.summary-status-text{background:linear-gradient(100deg,var(--muted) 35%,var(--ink) 50%,var(--muted) 65%) 0 0 / 250% 100%;color:#0000;-webkit-background-clip:text;background-clip:text;animation:2.2s linear infinite step-shimmer}@media (prefers-reduced-motion:reduce){.summary-status-text{color:inherit;background:0 0;animation:none}}:root[data-marketing-theme=dark]{--bg:#18191d;--card:#202126;--ink:#eeeff4;--muted:#9a9ba9;--line:#32333d;--accent:#af8bff;--accent-ink:#241637;--accent-soft:#35284f;--status-live:#aed4b5;--danger:#f28798;--danger-ink:#32121b;--float:#24252c;--chrome:#1d1e23;--shadow:0 18px 48px #0006, 0 2px 8px #0003;--shadow-soft:0 1px 3px #0003;--written:#b8b9c4;--heading:#e4e5ec;--scrim:#00000073;--pill:#25232e;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root[data-marketing-theme=dark]:not(.widget){--bg:#1b1b1d;--chrome:#242425;--card:#202021;--float:#29292b;--ink:#e7e6eb;--muted:#a7a4ad;--heading:#e7e6eb;--written:#c6c3cc;--line:#343436;--accent:#b780ff;--accent-ink:#fff;--accent-soft:#2c164a;--playback-bg:#7040af;--playback-ink:#fff;--primary:#6f00ff;--primary-hover:#7d1aff;--control:#333335;--control-hover:#3b3b3e;--control-pressed:#434347;--selected:#3b393f;--focus:#c599ff;--danger:#f098a5;--danger-ink:#32121b;--danger-soft:#59343c;--danger-control-ink:#ffd6dc;--scrim:#0006;--shadow:0 18px 48px #00000040, 0 2px 8px #00000026;--shadow-soft:0 1px 2px #00000014}:root[data-marketing-theme=dark] input::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] textarea::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .note-prose ::selection{color:#fff;background:#8055b8}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}.workspace{isolation:isolate;--sidebar-inset:10px;--nav-inset:11px;--workspace-footer-height:52px;--chrome-glass:color-mix(in srgb,var(--chrome) 85%,transparent);--sidebar-field:#fafafb;--sidebar-field-edge:#e8e8eb;--sidebar-selected:#e7e1ef;--reading-surface:linear-gradient(to bottom,transparent 52px,var(--bg) 52px);background:var(--chrome-glass);height:100%;display:flex;position:relative;overflow:hidden}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.workspace{--chrome-glass:var(--chrome)}}:root:not([data-chrome=overlay]) .workspace{background:linear-gradient(var(--chrome) 0 52px,transparent 52px),var(--chrome-glass)}.workspace-window-bar{z-index:55;border-bottom:1px solid var(--line);background:0 0;width:208px;min-width:124px;height:52px;position:absolute;top:0;left:0}.workspace-drag-region{pointer-events:none;width:100vw;height:100%;position:absolute;top:0;left:0}.sidebar-collapsed .workspace-window-bar{border-bottom:1px solid var(--line);width:124px}.workspace-sidebar-toggle{-webkit-app-region:no-drag;position:absolute;top:13px;left:88px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-window-bar{width:124px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{left:132px;right:auto}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar{padding-left:124px;padding-right:24px;left:0;right:0}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-note=true]{padding-left:185px}.workspace [hidden]{display:none!important}.workspace-sidebar{z-index:2;background:0 0;border-inline-end:1px solid #0000;flex-direction:column;display:flex;position:absolute;inset-block:0;inset-inline-start:0}.workspace-sidebar:after{content:"";background:var(--line);pointer-events:none;width:1px;position:absolute;inset-block:52px 0;inset-inline-end:-1px}.workspace-sidebar,.workspace-sidebar-gap{width:208px}.sidebar-collapsed :is(.workspace-sidebar,.workspace-sidebar-gap){width:56px}.workspace-sidebar-gap{flex:none}.workspace-sidebar-inner{flex-direction:column;height:100%;min-height:0;display:flex}.workspace-sidebar .workspace-search>svg{flex:none}.workspace-sidebar .workspace-nav>span:not(.folder-glyph),.workspace-sidebar .workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label{transition:opacity 90ms}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-nav>small,.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd,.sidebar-collapsed .workspace-folder-label{opacity:0;pointer-events:none}.sidebar-collapsed .workspace-nav{gap:0;padding-inline:10px}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd{flex:none;width:0}.sidebar-collapsed .workspace-search{gap:0;padding-inline:9px}.sidebar-collapsed .workspace-folder-more{display:none}.sidebar-collapsed .workspace-brand{padding-inline:17px}.workspace-wordmark{direction:ltr;flex:none;width:90px;display:flex;overflow:hidden}.sidebar-collapsed .workspace-wordmark{width:22px}.workspace[data-sidebar-motion=true] .workspace-wordmark{transition:width .2s cubic-bezier(.22,1,.36,1)}.workspace[data-sidebar-motion=true] .workspace-brand{transition:padding-inline .2s cubic-bezier(.22,1,.36,1)}.workspace-folder-label{white-space:nowrap;height:16px;overflow:hidden}.workspace[data-sidebar-motion=true] .workspace-folder-label{transition:height .2s cubic-bezier(.22,1,.36,1),margin .2s cubic-bezier(.22,1,.36,1),opacity .12s}.sidebar-collapsed .workspace-folder-label{height:0;margin-block:18px}.workspace-brand{gap:0}.workspace[data-sidebar-motion=false] :is(.workspace-nav>span,.workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label,.workspace-wordmark,.workspace-brand){transition:none}@media (prefers-reduced-motion:reduce){.workspace-sidebar :is(span,small,kbd),.workspace-folder-label,.workspace-toolbar,.workspace-brand{filter:none!important;transition:none!important}}.sidebar-titlebar{flex:none;justify-content:flex-end;align-items:center;height:52px;padding:0 16px;display:flex}.workspace-sidebar-body{padding:16px var(--sidebar-inset) 5px;flex:1;overflow:hidden auto}.workspace-search{border:1px solid var(--sidebar-field-edge);background:var(--sidebar-field);width:100%;height:34px;box-shadow:none;color:var(--ink);border-radius:6px;align-items:center;gap:10px;margin-bottom:17px;padding:0 10px;font-size:13px;font-weight:500;display:flex}.workspace-search>svg{width:16px;height:16px;color:var(--muted)}.workspace-search kbd{font:10px var(--font-sans);color:var(--muted);margin-inline-start:auto}.workspace-search:hover{background:color-mix(in srgb,var(--sidebar-field) 97%,var(--ink))}.workspace-nav{width:100%;height:35px;padding:0 var(--nav-inset);text-align:start;border-radius:6px;align-items:center;gap:10px;font-size:13px;font-weight:500;display:flex;position:relative}.workspace-nav>svg{color:var(--muted);flex:none}.workspace-nav>span:not(.folder-glyph){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-nav small{color:var(--muted);margin-inline-start:auto;font-size:9px;font-weight:400;line-height:17px}.workspace-nav:hover,.workspace-icon:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}.workspace-nav[aria-current=page]{background:var(--sidebar-selected);color:var(--ink)}.workspace-nav[aria-current=page]:before{content:none}.workspace-nav[aria-current=page]>svg{color:var(--written)}.workspace-folder-label{margin:30px var(--nav-inset) 8px;color:var(--muted);font-size:11px}.workspace-folder-item,.workspace-folder-list{position:relative}.workspace:not(.sidebar-collapsed) .workspace-folder-item>.workspace-nav{touch-action:none;padding-inline-end:36px}.workspace-folder-item[data-moving=true]{z-index:2;background:var(--float);border-radius:6px;box-shadow:0 2px 8px #0000001a}.workspace-folder-item[data-moving=true]>.workspace-nav{cursor:grabbing}.workspace-folder-item[data-moving=true] .workspace-folder-more{visibility:hidden}.workspace-folder-item [role=menuitem]:disabled{opacity:.4}.workspace-folder-item>.workspace-nav[data-drop=true]{background:var(--accent-soft);color:var(--ink)}.workspace-folder-more{inset-inline-end:5px;opacity:0;width:27px;height:27px;position:absolute;top:4px}.workspace-folder-item:hover .workspace-folder-more,.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]{opacity:1}.workspace-folder-item:hover small{visibility:hidden}.workspace-folder-item:has(.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]) small{visibility:hidden}.workspace-folder-item small{position:absolute;inset-inline-end:var(--nav-inset)}.workspace-folder-new,.workspace-folder-new>svg{color:var(--muted)}.workspace-folder-new:hover{color:var(--ink)}.native-folder{grid-template-columns:minmax(0,1fr);height:100%;min-height:0;padding-top:52px;display:grid}.native-folder .native-library>h1 input{font:inherit;letter-spacing:inherit}.workspace-sidebar-footer{padding:9px var(--sidebar-inset) 0}.workspace-brand{min-height:var(--workspace-footer-height);border-top:1px solid var(--line);margin-top:9px;margin-inline:calc(-1 * var(--sidebar-inset));padding:0 calc(var(--sidebar-inset) + var(--nav-inset));justify-content:flex-start;align-items:center;display:flex}.workspace-content{z-index:1;contain:layout;background:var(--reading-surface);flex:1;min-width:0;height:100%;position:relative;container-type:inline-size}.workspace-content>.bg-bg,.workspace-content .document-main{background:0 0}.document-body{padding-inline:clamp(20px,10cqw - 42px,48px)}.workspace-toolbar{inset-inline:0;z-index:50;border-bottom:1px solid var(--line);background:0 0;align-items:center;height:52px;padding:0 24px;display:flex;position:absolute;top:0}.workspace-toolbar[data-note=true]{padding-inline-end:185px}.workspace-breadcrumb{min-width:0;color:var(--muted);white-space:nowrap;align-items:center;gap:9px;font-size:13px;display:flex}.workspace-breadcrumb>svg{flex:none}.workspace-breadcrumb>[aria-current]{color:var(--ink);text-overflow:ellipsis;font-weight:500;overflow:hidden}.workspace-history{flex:none;gap:2px;display:flex}.workspace-history button:disabled{opacity:.3;background:0 0}.sidebar-collapsed .workspace-toolbar{padding-inline-start:68px}.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:padding-inline-start .2s cubic-bezier(.22,1,.36,1)}.workspace-icon{width:28px;height:28px;color:var(--muted);border:1px solid #0000;border-radius:5px;flex:none;justify-content:center;align-items:center;display:inline-flex}.workspace-icon:active{background:color-mix(in srgb,var(--ink) 9%,transparent)}.workspace button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-button{border:1px solid var(--line);background:var(--float);height:30px;color:var(--ink);white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,box-shadow var(--dur-micro) ease,transform var(--dur-micro) var(--ease-out);border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 11px;font-size:12px;font-weight:500;display:inline-flex;box-shadow:inset 0 1px #ffffff0d,0 1px 2px #0000000a}.workspace-button:hover:not(:disabled){background:var(--control-hover)}.workspace-button:active:not(:disabled){background:var(--control-pressed);box-shadow:inset 0 1px 2px #0000000a}.workspace-button:disabled{opacity:.45;cursor:default}.workspace-button.primary{background-color:var(--primary);color:#fff;background-image:linear-gradient(#ffffff14,#0000 55%,#0000000a);border-color:#00000014;box-shadow:inset 0 1px #ffffff29,0 1px 2px #35006524}.workspace-button.primary:hover:not(:disabled){background-color:var(--primary-hover)}.workspace-button.primary:active:not(:disabled){background-image:none;box-shadow:inset 0 1px 2px #35006533}.recording-split{min-width:0;max-width:min(100%,276px);display:flex}.recording-main{min-width:0}.recording-main>svg{flex:none}.recording-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:200px;overflow:hidden}.recording-split[data-split=true] .recording-main{border-inline-end:0;border-start-end-radius:0;border-end-end-radius:0}.workspace-button.primary.recording-chevron{border-inline-start:1px solid #ffffff26;border-start-start-radius:0;border-end-start-radius:0;flex:none;width:28px;padding:0}.recording-menu{width:276px;max-width:var(--available-width);max-height:var(--available-height);border:1px solid var(--line);overflow-y:auto}.recording-meeting-copy{flex:1;min-width:0}.recording-meeting-copy>span,.recording-meeting-copy>small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.recording-meeting-copy>small,.recording-timing{color:var(--muted);font-size:10px;font-weight:400;line-height:16px}.recording-timing{flex:none}.recording-menu-separator{background:var(--line);height:1px;margin:4px 0}.workspace-toolbar[data-recording-return=true]{gap:16px;padding-inline-end:17px}.workspace-toolbar[data-recording-return=true][data-note=true]{padding-inline-end:62px}.workspace-toolbar[data-recording-return=true] .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-recording-link{color:#fff;white-space:nowrap;min-width:86px;height:30px;transition:box-shadow var(--dur-micro) ease;background:linear-gradient(#7a1aff,#6f00ff 65%,#6600eb);border:1px solid #5200bc;border-radius:9px;flex:none;justify-content:center;align-items:center;gap:9px;padding:0 12px;font-size:12px;font-weight:500;display:flex;position:relative;box-shadow:inset 0 1px #fff3,0 1px 3px #39008026}.recording-return-time{font-variant-numeric:tabular-nums;text-align:center;min-width:32px}.workspace-recording-link:hover{filter:brightness(1.06);box-shadow:inset 0 1px #ffffff40,0 2px 5px #39008033}.workspace-recording-link:active{filter:brightness(.96);box-shadow:inset 0 1px 3px #39008033}.workspace-recording-link[data-paused=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:var(--shadow-soft)}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-recording-return=true][data-note=true],.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-recording-return=true][data-note=true]{padding-left:185px}.native-home{grid-template-columns:minmax(0,1fr) 270px;height:100%;min-height:0;padding-top:52px;display:grid}.workspace-toolbar-actions{flex:none}.workspace-toolbar-actions:has(.recording-split){flex:0 auto;min-width:0;max-width:276px}.workspace-toolbar:has(.recording-split) .workspace-breadcrumb{min-width:100px}.workspace-toolbar-actions:empty{display:none}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){gap:16px;padding-inline-end:17px}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){padding-inline-end:132px}.workspace-toolbar:has(.notes-download-status){gap:10px;padding-inline-end:17px}.workspace-toolbar:has(.notes-download-status) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-toolbar[data-note=true]:has(.notes-download-status){padding-inline-end:62px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.notes-download-status){padding-inline-end:132px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-note=true]:has(.notes-download-status){padding-inline-end:185px}.native-library{min-width:0;padding:29px 26px 30px;overflow:auto}.native-library>h1{letter-spacing:-.55px;margin-bottom:9px;font-size:20px;font-weight:600;line-height:26px}.native-meeting-day{margin-top:25px}.native-meeting-day>h2{color:var(--muted);margin-bottom:9px;font-size:10px;font-weight:500;line-height:14px}.native-meeting-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:12px;margin-inline:-8px;padding-inline-end:8px;display:grid;position:relative;overflow:hidden}.native-meeting-row:hover:not(:focus-visible):not(:has(:focus-visible)){background:var(--row-hover)}.native-meeting-card{grid-area:1/1/2/3;grid-template-columns:subgrid;border-radius:inherit;align-items:center;min-width:0;display:grid}.native-meeting-card:has(.meeting-folder-pill){grid-template-columns:minmax(0,1fr) fit-content(40%) max-content;column-gap:12px}.native-meeting-link{grid-area:1/1/2/-1;grid-template-columns:subgrid;text-align:start;border-radius:inherit;align-items:center;width:100%;min-width:0;min-height:57px;padding-block:8px;padding-inline:8px 0;display:grid}.native-meeting-card>.row-swap-actions{grid-area:1/-2}.native-meeting-card .meeting-meta{grid-column:-2}.meeting-content{align-items:center;gap:12px;min-width:0;display:flex}.meeting-identity{background:var(--control);width:30px;height:30px;color:var(--written);border:1px solid #0000;border-radius:7px;flex:none;place-items:center;font-size:10px;font-weight:600;display:grid}.meeting-identity.recording{color:#fff;background:var(--primary);border-color:#0000}.meeting-description{flex:1;min-width:0}.meeting-description strong{letter-spacing:-.1px;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:19px;display:block;overflow:hidden}.meeting-description>span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin-top:2px;font-size:11px;line-height:16px;display:block;overflow:hidden}.meeting-meta{text-align:end;min-width:49px;color:var(--muted);font-variant-numeric:tabular-nums;flex-direction:column;flex:none;gap:4px;font-size:10px;display:flex}.meeting-meta small{color:var(--muted);font-size:9px;line-height:12px}.meeting-drag-preview{border:1px solid var(--line);background:var(--float);width:max-content;max-width:280px;color:var(--ink);box-shadow:var(--shadow);pointer-events:none;border-radius:10px;align-items:center;gap:9px;padding:8px 11px;display:flex;position:fixed;inset-block-start:0;inset-inline-start:0}.meeting-drag-preview strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;line-height:19px;overflow:hidden}.meeting-live{color:var(--accent);align-items:center;gap:4px;display:flex}.meeting-delete{opacity:.6;width:27px;height:27px}.meeting-delete svg{width:13px;height:13px}.native-meeting-row:hover .meeting-delete{opacity:1}.native-meeting-row:has(:focus-visible) .meeting-delete{opacity:1}.meeting-delete:hover{color:var(--danger)}.meeting-more{width:27px;height:27px}.row-swap-meta{transition:opacity var(--dur-micro) var(--ease-out) 40ms;grid-column:2}.row-swap-actions{z-index:1;opacity:0;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out);grid-area:1/2;justify-self:end}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-meta{opacity:0;pointer-events:none;transition-delay:0s}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-actions{opacity:1;pointer-events:auto;transition:opacity var(--dur-micro) var(--ease-out) 50ms}.row-swap :is(.workspace-icon,.chat-icon){background:0 0}.row-swap :is(.workspace-icon,.chat-icon):hover:not(:disabled){background:var(--control-hover)}.row-swap :is(.workspace-icon,.chat-icon):active:not(:disabled){background:var(--control-pressed)}:is(.native-meeting-row,.ask-history-row,.agenda-event):is(:focus-visible,:has(:focus-visible)){outline:2px solid var(--focus);outline-offset:-2px}.native-meeting-row .native-meeting-link:focus-visible,.ask-history-row>.ask-history-link:focus-visible,.agenda-event .agenda-title:focus-visible{outline:none}.row-swap :is(.workspace-icon,.chat-icon):focus-visible{outline-offset:-2px}.meeting-row-menu{z-index:100;border:1px solid var(--line);width:224px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);position:fixed;overflow-y:auto}.meeting-row-menu [role=menuitem]{text-align:start;align-items:center;gap:10px;width:100%;display:flex}.meeting-row-menu [role=menuitem]:disabled{opacity:.5}.meeting-row-menu svg{flex-shrink:0}@media (prefers-reduced-motion:reduce){.row-swap-meta,.row-swap-actions{transition:opacity var(--dur-micro) var(--ease-out)!important;transform:none!important}}.native-library:has(>.library-empty){flex-direction:column;display:flex}.native-library:has(>.library-empty)>:not(.library-empty){flex-shrink:0}.empty-state{text-align:center;flex:1;place-items:center;min-width:0;padding-block:24px 48px;display:grid}.empty-state-content{width:100%;max-width:310px}.empty-tile{border:1px solid var(--line);background:var(--float);width:64px;height:64px;color:var(--written);border-radius:14px;place-items:center;margin:0 auto 16px;display:grid;position:relative;box-shadow:0 1px 2px #17171a0a,0 10px 28px -12px #2a1a4a24}.empty-tile:before{content:"";border:1px solid var(--line);opacity:.45;pointer-events:none;border-radius:9px;position:absolute;inset:5px}.library-empty h2{letter-spacing:-.3px;font-size:17px;font-weight:550;line-height:24px}.library-empty p{color:var(--muted);margin:10px 0 20px;line-height:1.65}.library-loading{color:var(--muted);margin-top:25px;font-size:12px}.native-agenda{min-width:0;min-height:0;padding:29px var(--agenda-inset);--agenda-inset:20px;background:var(--card);border-inline-start:1px solid var(--line);flex-direction:column;display:flex;position:relative;overflow:hidden}.native-agenda>div:not(.agenda-scroll){flex-shrink:0}.agenda-scroll{margin-inline:calc(-1 * var(--agenda-inset));padding-inline:var(--agenda-inset);overscroll-behavior:contain;flex:1;min-height:80px;padding-block:16px;scroll-padding-block:16px;overflow-y:auto}.agenda-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.agenda-header>h2{letter-spacing:-.1px;font-size:13px;font-weight:550}.agenda-navigation{align-items:center;gap:4px;margin-top:24px;display:flex}.agenda-month{min-width:0;color:var(--written);margin-inline-end:auto;font-size:11px;font-weight:500}.agenda-header .workspace-button{height:27px;padding:0 9px;font-size:11px}.agenda-week{border-bottom:1px solid var(--line);grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;margin-bottom:23px;padding:18px 0 20px;display:grid}.agenda-week button{flex-direction:column;align-items:center;gap:8px;min-width:0;display:flex}.agenda-week span{color:var(--muted);font-size:10px;line-height:14px}.agenda-week b{border:1px solid #0000;border-radius:6px;place-items:center;width:26px;height:26px;font-size:11px;font-weight:500;display:grid}.agenda-week button:not([aria-pressed=true]):not([aria-current=date]):hover b{background:var(--accent-soft)}.agenda-week [aria-pressed=true] b{color:var(--accent);background:var(--accent-soft);border-color:#0000}.agenda-week [aria-current=date] b{color:#fff;background:var(--primary)}.agenda-day{align-items:baseline;gap:9px;margin-bottom:16px;display:flex}.agenda-day h3{font-size:13px;font-weight:600}.agenda-day>span{color:var(--muted);font-size:11px}.agenda-events{flex-direction:column;gap:3px;display:flex}.agenda-event{cursor:pointer;border-radius:8px;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:12px;padding:8px 6px;display:grid;position:relative;overflow:hidden}.agenda-event:hover:not(:has(:focus-visible)){background:var(--row-hover)}.agenda-event-body{border-inline-start:2px solid var(--line);flex-direction:column;gap:2px;min-width:0;padding-inline-start:12px;display:flex}.agenda-event:is(.live,[data-recording=true]) .agenda-event-body{border-inline-start-color:var(--accent)}.agenda-event:is(.live,[data-recording=true]) .agenda-title{letter-spacing:-.1px;font-weight:600}.agenda-event[data-selected=true] .agenda-title{color:var(--ink)}.agenda-time{color:var(--muted);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;padding-top:0;font-size:10px;line-height:17px}.agenda-heading{align-items:center;gap:8px;min-height:17px;display:flex}.agenda-marker{pointer-events:none;width:23px;height:17px;color:var(--muted);flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.agenda-event[data-recording=true] .agenda-marker{color:var(--accent)}.agenda-levels{flex:none;transform:scale(.85)}.agenda-event h3{flex:1;min-width:0;font-size:11px;font-weight:400;line-height:17px}.agenda-title{text-overflow:ellipsis;white-space:nowrap;text-align:start;width:100%;color:var(--ink);cursor:pointer;border-radius:3px;display:block;overflow:hidden}.agenda-title:after{content:"";border-radius:8px;position:absolute;inset:0}.agenda-event p{color:var(--muted);margin-top:0;font-size:11px;line-height:17px}.agenda-people{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.agenda-live{white-space:nowrap;color:var(--muted);align-items:center;padding:1px 0;font-size:10px;font-weight:500;line-height:16px;display:inline-flex}.agenda-inspector{visibility:hidden;z-index:5;border:1px solid var(--line);background:var(--float);max-width:none;color:var(--ink);box-shadow:var(--shadow);overflow-wrap:anywhere;border-radius:12px;margin:0;padding:0;font-size:12px;line-height:18px;position:absolute;inset:0 auto auto 0;overflow:visible}.agenda-inspector[data-side=top]{transform-origin:bottom}.agenda-inspector[data-side=bottom]{transform-origin:top}.agenda-inspector-content{border-radius:inherit;flex-direction:column;gap:16px;padding:16px;display:flex;overflow:hidden}.agenda-inspector-scroll{overscroll-behavior:contain;min-width:0;min-height:0;max-height:240px;overflow:hidden auto}.agenda-inspector-time{flex:none}.agenda-inspector-arrow{background:var(--float);border-top:1px solid var(--line);border-left:1px solid var(--line);pointer-events:none;width:10px;height:10px;position:absolute;top:-6px;transform:rotate(45deg)}.agenda-inspector[data-side=top] .agenda-inspector-arrow{top:auto;bottom:-6px;transform:rotate(225deg)}.agenda-inspector-heading{flex:none;justify-content:space-between;align-items:start;gap:12px;display:flex}.agenda-inspector-heading h3{outline:none;min-width:0;font-size:14px;font-weight:600;line-height:21px}.agenda-inspector-heading .workspace-icon{flex:none;margin-block:-4px;margin-inline-end:-4px}.agenda-open-note{height:28px;padding-inline:8px;font-size:11px}.agenda-inspector-footer{border-top:1px solid var(--line);flex-direction:column;flex:none;gap:12px;padding-top:16px;display:flex}.agenda-inspector-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex;container-type:inline-size}.agenda-inspector .agenda-inspector-footer{gap:16px}.agenda-inspector .agenda-inspector-actions:has(>:only-child){justify-content:flex-start}.agenda-inspector-actions>.workspace-button{min-width:0;max-width:100%}.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:calc(50% - 4px)}.agenda-inspector-actions>.workspace-button>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:inherit;font-size:inherit;overflow:hidden}.agenda-inspector-actions>.workspace-button>svg{flex:none}.agenda-inspector-actions>a.workspace-button{color:var(--ink);text-decoration:none}.agenda-inspector-actions>a.workspace-button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@container (width<=180px){.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:100%}}.agenda-inspector-people{min-width:0}.agenda-more-people{color:var(--accent);text-align:start;margin-top:8px;font-size:11px}.agenda-more-people:hover{text-underline-offset:3px;text-decoration:underline}.agenda-inspector button:focus-visible,.agenda-inspector a:focus-visible{outline-offset:-2px}.agenda-inspector-line{align-items:start;gap:10px;display:flex}.agenda-inspector-line>svg{color:var(--muted);flex:none;margin-top:2px}.agenda-inspector-line>div,.agenda-inspector-line>p,.agenda-inspector-line ul{overflow-wrap:anywhere;min-width:0}.agenda-inspector li+li{margin-top:6px}.agenda-inspector span,.agenda-inspector-muted{color:var(--muted);font-size:11px;display:block}@media (height<=650px){.native-agenda{padding-block:16px}.agenda-navigation{margin-top:12px}.agenda-week{margin-bottom:12px;padding-block:10px 12px}.agenda-day{margin-bottom:6px}}.agenda-event[data-faded=true] :is(.agenda-time,.agenda-title,.agenda-marker){color:var(--ink);opacity:.65}.agenda-status{color:var(--muted);padding:10px 0;font-size:12px;line-height:1.65}.agenda-status svg{margin-bottom:14px}.agenda-status h3{color:var(--written);font-size:13px;font-weight:500}.agenda-status p{margin:5px 0 17px}.agenda-status .workspace-button{font-size:11px}.trash-note{color:var(--muted);margin:0 0 16px;font-size:12px;line-height:1.6}.trash-actions{gap:4px;display:flex}.trash-actions .workspace-icon{width:27px;height:27px}.app-toast-viewport{bottom:20px;--toast-x:0px;--toast-y:0px;translate:var(--toast-x) var(--toast-y);transition:translate var(--dur-surface) var(--ease-in-out);z-index:90;pointer-events:none;outline:none;width:340px;max-width:calc(100% - 40px);position:fixed;inset-inline-end:20px}.app-toast{width:100%;height:var(--toast-frontmost-height,var(--toast-height));border:1px solid var(--line);background:var(--float);color:var(--ink);pointer-events:auto;--gap:10px;z-index:calc(100 - var(--toast-index,0));border-radius:11px;outline:none;position:absolute;inset-block-end:0;inset-inline:0;box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.app-toast[data-expanded]{height:var(--toast-height)}.app-toast[data-limited]{opacity:0}.app-toast-content{align-items:center;gap:12px;padding-block:12px;padding-inline:16px 10px;display:flex;overflow:hidden}.app-toast-content[data-behind]:not([data-expanded]){opacity:0}.app-toast-title{flex:1;min-width:0;font-size:13px;font-weight:500;line-height:19px}.app-toast-action{border:1px solid var(--control-border);background:var(--button-surface,var(--control));border-radius:6px;flex:none;padding:5px 9px;font-size:12px;font-weight:500;line-height:18px;box-shadow:0 1px 2px #0000000a}.app-toast-action:hover{background:var(--control-hover)}.app-toast-close{width:24px;height:24px;color:var(--muted);border-radius:5px;flex:none;place-items:center;display:grid}.app-toast-close:hover{color:var(--ink);background:var(--control)}.app-toast button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-anchor{white-space:nowrap}.citation-group{vertical-align:baseline;white-space:nowrap;align-items:baseline;gap:1px;line-height:0;display:inline-flex;position:relative;top:-1ex}.citation-group[data-gap]{margin-inline-start:.18em}.source-citation{height:1em;color:var(--accent);letter-spacing:1px;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:.68em;font-weight:500;line-height:1;display:inline-flex;position:relative}.source-citation:before{content:"";position:absolute;inset:-6px 0}.citation-group[data-single] .source-citation:before{inset:-6px -9px}.source-citation:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.citation-positioner{z-index:100}.citation-positioner[data-anchor-hidden]{visibility:hidden;pointer-events:none}.citation-card{isolation:isolate;width:380px;max-width:calc(100vw - 24px);color:var(--ink);text-align:start;letter-spacing:-.012em;outline:none;font-size:13px;line-height:1.5;transition:opacity .16s ease-out;position:relative}.citation-card[data-animate=false]{transition:none}.citation-card[data-ending-style]{opacity:0}.citation-filter{pointer-events:none;position:absolute}.citation-liquid,.citation-edge{z-index:-1;pointer-events:none;position:absolute;inset:0}.citation-mass{background:var(--float);transform-origin:0 0;border-radius:12px;position:absolute;inset:0}.citation-edge{border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:12px}.citation-content{padding:12px}.citation-heading{justify-content:space-between;align-items:baseline;gap:10px;line-height:18px;display:flex}.citation-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:18px;overflow:hidden}.citation-date{color:var(--muted);white-space:nowrap;flex:none;font-size:10px}.citation-excerpt{-webkit-line-clamp:6;color:var(--muted);overflow-wrap:anywhere;-webkit-box-orient:vertical;max-height:120px;margin:8px 0 0;font-size:13px;line-height:20px;display:-webkit-box;overflow:clip}.citation-match{color:var(--ink)}.citation-passage{color:var(--muted);margin-top:8px}.citation-passage [hidden]{display:none!important}.citation-lines{overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:clip}.citation-transcript{flex-direction:column;gap:6px;margin-top:12px;display:flex}.citation-transcript .transcript-turn{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.citation-transcript .transcript-turn[data-track=me]{align-items:flex-end}.citation-transcript .bubble{margin:0}.citation-transcript .bubble+.bubble{margin-top:1px}.citation-transcript .bubble:not([data-continuation]){width:85%}.citation-transcript .bubble[data-continuation]{margin-inline:12px}.citation-speaker{padding-inline:4px;font-size:12px;font-weight:500;line-height:18px}.citation-notes{font-size:13px;line-height:20px}.citation-notes p{margin:0}.citation-notes ul,.citation-notes ol{margin:0;padding-inline-start:18px}.citation-notes ul{list-style-type:disc}.citation-notes ol{list-style-type:decimal}.citation-notes li+li{margin-top:4px}.citation-notes li:not(:has([data-citation-part]:not([hidden]))){display:none}.citation-notes [data-citation-part]+[data-citation-part]{margin-top:8px}.citation-notes .citation-match{background:color-mix(in srgb,var(--accent) 10%,transparent);-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:3px}.citation-notes code{font-size:.92em}.citation-footer{color:var(--muted);justify-content:flex-end;align-items:center;gap:12px;margin-top:8px;font-size:11px;display:flex}.citation-footer>span{margin-inline-end:auto}.citation-open{height:24px;color:var(--muted);background:0 0;border-radius:4px;align-items:center;gap:5px;padding:2px 5px;font-size:11px;line-height:20px;display:inline-flex}.citation-open:hover{background:var(--control-hover);color:var(--ink)}.citation-open:active{background:var(--control-pressed)}.citation-open:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-card[data-morph=true] .citation-liquid{filter:var(--citation-filter)}.citation-card[data-morph=true] .citation-mass{animation:.28s linear both citation-pull}.citation-card[data-morph=true] .citation-content{animation:.13s ease-out 90ms both citation-in,.28s linear backwards citation-crop}.citation-card[data-morph=true] .citation-edge{animation:.16s ease-out .12s both citation-in}@keyframes citation-pull{0%{transform:translate(var(--from-x),var(--from-y)) scale(var(--from-sx),var(--from-sy));border-radius:12px;animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{border-radius:14px;animation-timing-function:cubic-bezier(.2,0,.25,1);transform:translateY(-2px)scale(.992,1.018)}to{border-radius:12px;transform:none}}@keyframes citation-in{0%{opacity:0}to{opacity:1}}@keyframes citation-crop{0%{clip-path:inset(var(--from-y) calc(100% - var(--from-x) - var(--from-sx) * 100%) calc(100% - var(--from-y) - var(--from-sy) * 100%) var(--from-x) round 9px);animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{clip-path:inset(-2px .8% calc(2px - 1.8%) 0 round 14px);animation-timing-function:cubic-bezier(.2,0,.25,1)}to{clip-path:inset(0 round 12px)}}@media (prefers-reduced-motion:reduce){.citation-card{transition:none}.citation-card *{animation:none!important}.citation-liquid{filter:none!important}}::highlight(citation-target){background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}[data-focused]{background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}@container (width<=700px){.native-home{grid-template-columns:minmax(0,1fr) 235px}.native-library{padding:24px 18px}.native-agenda{--agenda-inset:15px;padding-block:25px}.meeting-description strong{font-size:13px}.meeting-meta{font-size:10px}}@container (width<=520px){.native-home{grid-template-rows:minmax(0,1fr) 200px;grid-template-columns:1fr}.native-agenda{border-inline-start:0;border-top:1px solid var(--line)}.native-meeting-link{gap:8px}.workspace-breadcrumb{gap:5px}.workspace-parent,.workspace-parent-separator{display:none}}.native-home.no-agenda{grid-template-rows:none;grid-template-columns:minmax(0,1fr)}.workspace-assistant-dock{inset-inline:0;border-top:1px solid var(--line);background:var(--bg);justify-content:flex-end;align-items:center;height:44px;padding:0 18px;display:flex;position:absolute;bottom:0}.workspace-assistant-launch{height:28px;color:var(--muted);transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:450;display:inline-flex}.workspace-assistant-launch:hover{color:var(--ink);background:var(--control)}.workspace-assistant-launch:active{background:var(--control-pressed)}.workspace-assistant-launch kbd{font:10px/15px var(--font-sans);color:var(--muted);margin-inline-start:5px}.workspace-content:has(.workspace-assistant-dock) :is(.native-home,.native-folder){padding-bottom:44px}@media (prefers-reduced-motion:reduce){.chat-starter,.workspace-button,.workspace-recording-link,.workspace-assistant-launch,.workspace[data-sidebar-motion=true].sidebar-collapsed .workspace-sidebar,.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:none}}[data-folder-color]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--folder-ink:var(--written);--folder-tint:var(--control)}@media (prefers-color-scheme:dark){[data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial}}.widget [data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-folder-color=violet]{--folder-ink:var(--lightningcss-light,#7434ca)var(--lightningcss-dark,#b995ff)}[data-folder-color=blue]{--folder-ink:var(--lightningcss-light,#2868ba)var(--lightningcss-dark,#87b5f4)}[data-folder-color=teal]{--folder-ink:var(--lightningcss-light,#157d80)var(--lightningcss-dark,#72cece)}[data-folder-color=green]{--folder-ink:var(--lightningcss-light,#388044)var(--lightningcss-dark,#92c88a)}[data-folder-color=amber]{--folder-ink:var(--lightningcss-light,#976b0d)var(--lightningcss-dark,#e5bd68)}[data-folder-color=orange]{--folder-ink:var(--lightningcss-light,#b85a1f)var(--lightningcss-dark,#efa777)}[data-folder-color=rose]{--folder-ink:var(--lightningcss-light,#be4675)var(--lightningcss-dark,#e99dbb)}[data-folder-color]:not([data-folder-color=default]){--folder-tint:color-mix(in srgb,var(--folder-ink) 12%,var(--bg))}.folder-glyph{color:var(--folder-ink);flex:none;justify-content:center;align-items:center;display:inline-flex}.folder-preview-tile,.folder-heading-icon{background:var(--folder-tint);color:var(--folder-ink)}.folder-page-heading{align-items:center;gap:12px;margin-bottom:9px;display:flex}.folder-page-heading h1{letter-spacing:-.55px;min-width:0;font-size:20px;font-weight:600;line-height:26px}.folder-page-heading h1 input{font:inherit;letter-spacing:inherit}.folder-heading-icon{border:1px solid color-mix(in srgb,var(--folder-ink) 15%,transparent);border-radius:10px;flex:none;place-items:center;width:40px;height:40px;display:grid}.folder-heading-icon:hover{filter:brightness(.96)}.folder-appearance-preview{align-items:center;gap:12px;min-width:0;margin:0 20px 22px;display:flex}.folder-appearance-preview strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.folder-preview-tile{border-radius:11px;flex:none;place-items:center;width:44px;height:44px;display:grid}.folder-choices{padding:0 20px 22px}.folder-choice-label{color:var(--muted);margin-bottom:9px;font-size:11px;font-weight:500}.folder-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:20px;display:grid}.folder-icon-grid button{height:38px;transition:background var(--dur-micro) ease,border-color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:8px;place-items:center;display:grid}.folder-icon-grid button:hover{background:var(--control)}.folder-icon-grid button[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}.folder-color-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;display:grid}.folder-color-grid button{border:1px solid #0000;border-radius:50%;place-items:center;height:30px;display:grid}.folder-color-grid button span{background:var(--folder-ink);border-radius:50%;width:18px;height:18px}.folder-color-grid button:hover{background:var(--control)}.folder-color-grid button[aria-checked=true]{border-color:var(--folder-ink)}.folder-choices button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.folder-choices button:disabled{opacity:.5}@media (prefers-reduced-motion:reduce){.folder-icon-grid button{transition:none}}body:has(.note-footer) .app-toast-viewport{--toast-y:calc(20px - var(--note-footer-height,76px))}body:has(.chat-page) .app-toast-viewport{--toast-y:-68px}body:has(.chat-panel[open]) .app-toast-viewport{--toast-x:-440px}body:has(.chat-panel[open]) .app-toast-viewport:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--toast-x:440px}@media (width<=999px){body:has(.chat-panel[open]) .app-toast-viewport{--toast-x:4px;--toast-y:4px}body:has(.chat-panel[open]) .app-toast-viewport:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--toast-x:-4px}.chat-panel:has(.app-toast){height:min(440px,100dvh - 152px);inset-block-end:84px}}@media (prefers-reduced-motion:reduce){.app-toast-viewport{transition:none}}.native-library{container:meeting-library/inline-size}.meeting-description{flex:220px}.meeting-folders{z-index:1;grid-area:1/2;gap:6px;min-width:0;display:flex;overflow:hidden}.meeting-folders:empty{display:none}.meeting-folder-suggestion{min-width:0;display:flex}.meeting-folder-pill{border:1px solid var(--line);min-width:0;max-width:140px;height:22px;color:var(--written);background:0 0;border-radius:11px;flex:0 auto;align-items:center;gap:5px;padding:0 7px;font-size:11px;line-height:20px;display:inline-flex}.meeting-folder-pill[data-opens=true]{transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,border-color var(--dur-micro) ease}.meeting-folder-pill[data-opens=true]:hover{border-color:var(--control-border);background:var(--control);color:var(--ink)}.meeting-folder-dot{background:var(--folder-ink);border-radius:50%;flex:none;width:7px;height:7px}.meeting-folder-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.meeting-folder-name,.meeting-folder-proposal .note-folder-name>.truncate{max-width:112px}.meeting-folder-pill.meeting-folder-proposal{max-width:none}.meeting-folder-proposal{border-style:dashed;gap:3px;padding-inline-end:3px}.meeting-folder-proposal .note-folder-name{height:20px;font:inherit;border-radius:9px;gap:5px;padding:0}.meeting-folder-proposal .note-folder-name:hover{background:0 0}.meeting-folder-proposal .note-folder-actions{border:0;padding:0}.meeting-folder-proposal .workspace-icon{border-radius:50%;width:20px;height:20px}.meeting-folder-proposal button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.meeting-folder-proposal button:active{background:var(--control-pressed)}@container meeting-library (width<=460px){.meeting-folders{flex-shrink:0;max-width:50px}.meeting-folders:has(>.meeting-folder-suggestion){max-width:100%}.meeting-folder-pill:not(.meeting-folder-proposal){flex:0 0 22px;justify-content:center;width:22px;min-width:22px;max-width:22px;padding:0}.meeting-folder-name{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.sidebar-toggle-pane{width:6px}.workspace-sidebar-toggle[aria-expanded=false] .sidebar-toggle-pane{width:2px}@media (prefers-reduced-motion:no-preference){.workspace[data-sidebar-motion=true] .sidebar-toggle-pane{transition:width .2s cubic-bezier(.22,1,.36,1)}}.ask-page{contain:layout;scrollbar-gutter:stable both-edges;flex-direction:column;height:100%;min-height:0;padding:104px 32px 24px;display:flex;overflow-y:auto}.ask-page-toolbar{z-index:4;top:68px;justify-content:flex-end;align-items:center;gap:12px;height:28px;display:flex;position:absolute;inset-inline:24px}.ask-recent-button,.ask-back{height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding-inline:8px;font-size:12px;display:inline-flex}.ask-recent-button:hover,.ask-recent-button[aria-expanded=true],.ask-back:hover{background:var(--control);color:var(--ink)}.ask-recent-button:active,.ask-back:active{background:var(--control-pressed)}.ask-back{margin-inline-end:auto}.ask-page:has(.ask-landing){padding-bottom:clamp(104px,24vh,240px);container-type:size}.ask-page:has(.ask-landing) .ask-back{display:none}.ask-conversation{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ask-page>.ask-landing{flex:none;width:100%;max-width:720px;margin:max(0px,50cqh - 97px) auto 0}.ask-home-title{text-align:center;letter-spacing:-.55px;margin:0 0 24px;font-size:20px;font-weight:600;line-height:26px}.ask-page.ask-full-thread:not(:has(.ask-landing)){padding-inline:0;overflow:hidden}.ask-full-thread>.ask-conversation:not(.ask-landing){--ask-reading-inset:max(32px,calc((100% - 720px)/2))}.ask-full-thread .ask-conversation-head,.ask-full-thread .ask-conversation:not(.ask-landing) .ask-composer{margin-inline:var(--ask-reading-inset)}.ask-full-thread .ask-thread{padding-inline:var(--ask-reading-inset)}.ask-conversation-head{flex:none;justify-content:space-between;align-items:center;gap:8px;min-height:44px;display:flex}.ask-conversation-head h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:550;overflow:hidden}.ask-conversation .chat-icon:active:not(:disabled){background:var(--control-pressed)}.ask-conversation .chat-icon:disabled{opacity:.45}.ask-conversation :is(.chat-copy-action,.chat-latest):hover{background:var(--control);color:var(--ink)}.ask-conversation :is(.chat-copy-action,.chat-latest):active{background:var(--control-pressed)}.ask-conversation button:focus-visible,.ask-page-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.ask-header-actions{flex:none;align-items:center;gap:8px;display:flex}.ask-thread-wrap{flex:1;min-height:0;display:flex;position:relative}.ask-thread{overscroll-behavior:contain;flex:1;min-height:0;padding:16px 0;overflow-y:auto}.ask-thread-empty{flex-direction:column;display:flex}.ask-thread-empty .ask-thread-content{margin-top:auto}.ask-landing .ask-thread-wrap{display:none}.ask-turn{flex-direction:column;gap:16px;margin:0 0 24px;display:flex}.ask-turn:last-child{margin-bottom:0}.ask-question{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--control);border-radius:12px;width:fit-content;max-width:80%;margin-inline-start:auto;padding:8px 12px;font-size:14px;line-height:20px}.ask-composer{flex:none;min-width:0;container-type:inline-size}.ask-box{border:1px solid var(--line);background:var(--float);min-width:0;box-shadow:var(--shadow-soft);border-radius:12px;position:relative}@media (prefers-reduced-motion:reduce){.orb-material:before,.orb-material:after{animation:none}.ask-send{transition:none;transform:none!important}}.ask-tracer{pointer-events:none;opacity:0;fill:none;width:calc(100% + 2px);height:calc(100% + 2px);stroke:var(--primary);stroke-width:3px;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--primary) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 35%,transparent));position:absolute;inset:-1px;overflow:visible}.ask-tracer rect{stroke-dasharray:1.05 98.95}@media (prefers-reduced-motion:reduce){.ask-tracer{display:none}}.ask-field{padding:12px}.ask-box textarea{field-sizing:content;resize:none;width:100%;min-height:38px;max-height:160px;color:var(--ink);background:0 0;outline:none;font-size:14px;line-height:22px;display:block}.ask-box textarea:focus-visible{outline:none}.ask-box textarea::placeholder{color:var(--muted)}.ask-box-actions{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.ask-toolbar-button{width:28px;height:28px;color:var(--muted);transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;border:1px solid #0000;border-radius:50%;flex:none;place-items:center;display:grid}.ask-toolbar-button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-toolbar-button:active:not(:disabled){background:var(--control-hover)}.ask-toolbar-button:disabled{color:var(--muted);opacity:.45}.ask-send{isolation:isolate;background:var(--primary);color:#fff;--orb-play:paused;transition:transform .12s ease-out;position:relative;overflow:hidden}.ask-send:after{content:"";pointer-events:none;border-radius:inherit;background:#6f00ffbd;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #ccb6ff44}.ask-send svg{z-index:1;position:relative}.orb-material{border-radius:inherit;pointer-events:none;background:var(--primary);isolation:isolate;position:absolute;inset:0;overflow:hidden}.orb-material:before,.orb-material:after{content:"";pointer-events:none;filter:blur(3px);animation:18s linear infinite orb-turn;animation-play-state:var(--orb-play);opacity:.92;background:radial-gradient(at 27% 32%,#ccb6ff 0 12%,#af8bff 24%,#0000 52%),radial-gradient(at 75% 68%,#7142e8 0 18%,#0000 50%);position:absolute;inset:-35%;transform:rotate(22deg)}.orb-material:after{background:radial-gradient(ellipse at 68% 26%,#fff 0 3%,#ccb6ff 13%,transparent 40%),radial-gradient(ellipse at 23% 72%,var(--accent) 0 13%,#7142e8 29%,transparent 54%);opacity:.8;animation-name:orb-counter;animation-duration:27s}@keyframes orb-turn{0%{transform:rotate(22deg)}to{transform:rotate(382deg)}}@keyframes orb-counter{0%{transform:rotate(-28deg)}to{transform:rotate(-388deg)}}.ask-box:not([data-busy=true]) .ask-send:not(:disabled):is(:hover,:focus-visible){--orb-play:running;transform:scale(1.04)}.ask-send:active:not(:disabled){transform:scale(.94)}.ask-send:disabled{border-color:var(--line);background:0 0}.ask-send:disabled:after,.ask-send:disabled .orb-material,.ask-box[data-busy=true] .orb-material{display:none}.ask-stop{background:var(--control);color:var(--ink)}.ask-stop:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-stop:active:not(:disabled){background:var(--control-pressed)}.ask-scope-group{align-items:center;gap:1px;min-width:0;max-width:calc(100% - 40px);display:flex}.ask-scope{background:var(--control);min-width:0;max-width:100%;height:28px;color:var(--muted);white-space:nowrap;border-radius:8px;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}.ask-scope:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope:disabled{opacity:.45}.ask-scope-group:has(.ask-scope-clear) .ask-scope{border-start-end-radius:0;border-end-end-radius:0}.ask-scope-clear{background:var(--control);width:26px;height:28px;color:var(--muted);border-start-end-radius:8px;border-end-end-radius:8px;flex:none;justify-content:center;align-items:center;display:flex}.ask-scope-clear:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope-clear:disabled{opacity:.45}.ask-picker h3:has(.ask-picker-clear){justify-content:space-between;align-items:center;display:flex}.ask-picker h3 .ask-picker-clear{width:auto;color:var(--muted);background:0 0;border-radius:4px;padding:0 2px;font-size:11px;font-weight:500}.ask-picker h3 .ask-picker-clear:hover:not(:disabled){color:var(--ink);background:0 0}.ask-scope-label{min-width:0;display:flex}.ask-scope-name{text-overflow:ellipsis;min-width:0;overflow:hidden}.ask-scope-others{white-space:pre;flex:none}.ask-scope>svg{flex:none}.ask-starters{flex-direction:column;align-items:flex-end;gap:8px;min-width:0;display:flex}.ask-starters button{max-width:80%;color:var(--muted);text-align:start;background:color-mix(in srgb,var(--control) 50%,transparent);border:0;border-radius:12px;padding:8px 12px;font-size:12px;line-height:20px}.ask-home-starters{opacity:1;visibility:visible;transition:opacity var(--dur-micro) var(--ease-out),visibility 0s;flex-flow:wrap;justify-content:center;align-items:center;margin-top:12px}.ask-home-starters[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out),visibility 0s var(--dur-micro)}.ask-home-starters[data-instant]{transition:none}@media (prefers-reduced-motion:reduce){.ask-home-starters{transition:opacity var(--dur-micro) var(--ease-out),visibility 0s}.ask-home-starters[aria-hidden=true]{transition-delay:0s,var(--dur-micro)}}.ask-home-starters button{white-space:nowrap;text-overflow:ellipsis;max-width:100%;height:28px;padding:4px 10px;font-size:12.5px;overflow:hidden}.ask-starters button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-starters button:active:not(:disabled){background:var(--control-pressed)}.ask-picker{z-index:80;border:1px solid var(--line);background:var(--float);max-height:min(340px,50vh);color:var(--ink);box-shadow:var(--shadow-soft);animation:ask-fade var(--dur-micro) var(--ease-out);border-radius:10px;padding:6px;overflow-y:auto}.ask-mention{width:min(380px,100vw - 32px);position:fixed}.ask-selector-positioner{z-index:80}.ask-picker.ask-selector{width:min(380px,100vw - 32px);max-height:min(380px,60vh,var(--available-height));color:var(--ink);flex-direction:column;display:flex;position:static;inset:auto;overflow:hidden}.ask-picker-search{border-bottom:1px solid var(--line);width:100%;min-width:0;color:var(--ink);text-overflow:ellipsis;background:0 0;border-radius:0;outline:none;flex:none;padding:10px 8px;font-size:13px}.ask-picker-search::placeholder{color:var(--muted)}.ask-picker-search:focus-visible{border-radius:0;outline:none}.ask-picker-results{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow-y:auto}.ask-picker h3{color:var(--muted);padding:7px 8px;font-size:11px;font-weight:550}.ask-picker button{text-align:start;border-radius:5px;align-items:center;gap:8px;width:100%;padding:8px;font-size:13px;display:flex}.ask-picker button[data-active=true],.ask-picker button:hover:not(:disabled){background:var(--card)}.ask-picker button>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ask-picker button:active{background:var(--control-pressed)}.ask-picker button>svg{flex:none}.ask-picker button:disabled{opacity:.45}.ask-picker small{color:var(--muted);flex:none;font-size:11px}.ask-picker p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:10px;font-size:12px;overflow:hidden}.ask-recent-positioner{z-index:80}.ask-history{width:min(520px,100vw - 32px);max-height:min(480px,var(--available-height));border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:9px;overflow:hidden}.ask-history-scroll{max-height:min(478px,calc(var(--available-height) - 2px));overscroll-behavior:contain;padding:8px;overflow-y:auto}.ask-history h2{color:var(--muted);padding:8px 8px 4px;font-size:10px;font-weight:500;line-height:14px}.ask-history section+section{margin-top:8px}.ask-history-empty{color:var(--muted);padding:16px 8px;font-size:12px}.ask-history-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:16px;height:46px;padding-inline:8px;display:grid}.ask-history-row:hover:not(:has(:focus-visible)){background:var(--card)}.ask-history-row:active{background:var(--control)}.ask-history-link{grid-area:1/1/2/3;grid-template-columns:subgrid;text-align:start;border-radius:5px;align-items:center;min-width:0;height:100%;display:grid}.ask-history-link strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:450;overflow:hidden}.ask-history-link time{min-width:86px;color:var(--muted);text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.ask-history-all{width:100%;color:var(--muted);text-align:start;border-radius:5px;padding:10px 8px;font-size:12px;display:block}.ask-history-all:hover{background:var(--card);color:var(--ink)}.ask-history-all:active{background:var(--control-pressed)}.ask-menu-positioner{z-index:110}.ask-actions-menu{min-width:156px}.ask-actions-menu [role=menuitem]{cursor:default;align-items:center;gap:8px;display:flex}.ask-actions-menu [data-highlighted]{background:var(--card);outline:none}.chat-panel .ask-conversation-head{height:44px;padding-inline:16px 12px}.chat-panel .ask-thread{padding:16px 12px}.chat-panel .ask-composer{padding:0 12px 12px;overflow:visible}@container (width<=520px){.ask-page{padding-inline:18px}}@keyframes ask-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.ask-toolbar-button{transition:none}}.note-folder-proposal{width:max-content;max-width:min(256px,100%)}.note-folder-proposal:hover{color:var(--muted);background:0 0}.note-folder-name{border-radius:5px 0 0 5px;align-items:center;gap:6px;min-width:0;height:30px;padding:0 10px;display:flex}[dir=rtl] .note-folder-name{border-radius:0 5px 5px 0}.note-folder-name:hover,.note-folder-name[aria-expanded=true]{color:var(--ink);background:var(--control-hover)}.note-folder-name:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.note-folder-actions{border-inline-start:1px solid var(--line);flex:none;align-items:center;padding:0 1px;display:flex}.note-folder-proposal,.meeting-folder-proposal{transition:opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),gap var(--dur-base) var(--ease-out)}.note-folder-actions{width:59px;transition:width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),border-width var(--dur-base) var(--ease-out);overflow:hidden}.meeting-folder-proposal .note-folder-actions{width:40px}[data-phase=accepted] .note-folder-actions,[data-phase=settled] .note-folder-actions{opacity:0;border-inline-start-width:0;width:0;padding:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]){border-style:solid;gap:0;padding-inline-end:7px}.note-folder-proposal[data-phase=dismissed],.meeting-folder-proposal[data-phase=dismissed]{opacity:0;pointer-events:none}@container meeting-library (width<=460px){.meeting-folder-proposal .note-folder-name span:last-child{max-width:120px;transition:max-width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out)}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]){gap:0;min-width:22px;padding:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) .note-folder-name{flex:1;justify-content:center;gap:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) .note-folder-name span:last-child{opacity:0;max-width:0}}@media (prefers-reduced-motion:reduce){.note-folder-proposal,.meeting-folder-proposal,.note-folder-actions,.meeting-folder-proposal .note-folder-name span:last-child{transition:none}}.ask-conversation ::selection{background:var(--accent-soft);color:var(--ink)}.native-library{scrollbar-gutter:stable}.native-library:has(.library-empty){flex-direction:column;display:flex}.library-load,.library-load>.loading-result{flex-direction:column;flex:1;display:flex}:root[data-chrome=overlay]{--controls-start:env(titlebar-area-x,0px);--controls-end:calc(100vw - env(titlebar-area-x,0px) - env(titlebar-area-width,100vw))}:root[data-chrome=overlay] .workspace{--chrome-glass:var(--chrome)}:root[data-chrome=overlay] .workspace-sidebar-toggle{left:calc(14px + var(--controls-start));top:12px}:root[data-chrome=overlay] .sidebar-collapsed .workspace-window-bar{width:56px}:root[data-chrome=overlay] .workspace-toolbar{right:var(--controls-end)}:root[data-chrome=overlay] .workspace:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{right:calc(16px + var(--controls-end))}:root[data-chrome=overlay] .sidebar-collapsed .workspace-toolbar{padding-inline-start:24px}:root[data-chrome=overlay] .workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.notes-download-status){right:max(0px,calc(var(--controls-end) - 208px))}:root[data-chrome=overlay] .workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar:has(.notes-download-status){right:max(0px,calc(var(--controls-end) - 56px))}.note-reading-frame{border-radius:12px;flex:1;min-width:0;min-height:0;margin:0 calc(max(0px,50% - 430px) + clamp(20px,10cqw - 42px,48px) - 14px);padding:0 2px;position:relative}.note-reading-frame[data-has-summary=true]{padding-bottom:44px}.note-reading-frame[hidden]{display:none}.note-reading-clip{border-radius:10px;height:100%;overflow:hidden}.main-window .note-reading-clip>.note-notes-pane{scrollbar-width:auto;scrollbar-gutter:stable;height:100%}.note-reading-frame .note-notes-body{max-width:none;padding-block:22px 40px;padding-inline:12px 8px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar{width:4px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-track{background:0 0}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-thumb{background:0 0}.note-reading-clip>.note-notes-pane[data-scrolling]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 45%,transparent);border-radius:3px}.note-summary-status{inset-inline-start:14px;z-index:1;background:var(--bg);color:var(--muted);pointer-events:none;font-size:11px;line-height:16px;position:absolute;bottom:18px}.note-latest{z-index:3;border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:6px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;line-height:16px;display:flex;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.native-library{--meeting-selection-tint:6%}.native-library .native-meeting-row[data-selected=true],.native-library .native-meeting-row[data-selected=true]:hover{background:color-mix(in srgb,var(--primary) var(--meeting-selection-tint),var(--bg))}.native-meeting-row[data-selected=true]+.native-meeting-row[data-selected=true]{border-top-left-radius:0;border-top-right-radius:0}.native-meeting-row[data-selected=true]:has(+.native-meeting-row[data-selected=true]){border-bottom-right-radius:0;border-bottom-left-radius:0}.native-library:has([data-selecting=true]){padding-bottom:100px}.native-library:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.meeting-menu-divider{background:var(--line);height:1px;margin:4px 0}.meeting-selection-bar{border:1px solid var(--line);background:var(--float);width:max-content;color:var(--ink);z-index:60;border-radius:11px;flex-wrap:wrap;align-items:center;gap:10px;padding:9px 10px 9px 16px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.meeting-selection-count{font-variant-numeric:tabular-nums;margin-inline-end:8px;font-size:12px;font-weight:500}.meeting-selection-count small{color:var(--muted);font-size:11px;font-weight:400;line-height:14px;display:block}.meeting-selection-delete{color:var(--danger)}.meeting-selection-folder{position:relative}.meeting-selection-menu{border:1px solid var(--line);width:240px;max-width:calc(100vw - 16px);max-height:min(320px,60vh);position:absolute;overflow:auto}.meeting-selection-bar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.meeting-drag-count{background:var(--primary);color:#fff;border-radius:5px;padding:2px 6px;font-size:11px}.app-toast[data-kind=recording-deleted-toast]{width:max-content;max-width:calc(100vw - 40px);inset-inline-start:auto}.app-toast[data-kind=recording-deleted-toast] :is(.app-toast-title,.app-toast-action){white-space:nowrap}.workspace-button:active:not(:disabled){transform:scale(.97)}@media (prefers-reduced-motion:reduce){.workspace-button:active:not(:disabled){transform:none}.app-toast{filter:none!important}.note-folder-proposal,.meeting-folder-proposal,.note-folder-actions,.meeting-folder-proposal .note-folder-name span:last-child{transition:opacity var(--dur-micro) var(--ease-out)}}:root[data-marketing-theme=dark] .workspace{--sidebar-field:#2f2f31;--sidebar-field-edge:#363638;--sidebar-selected:#38313f}:root[data-marketing-theme=dark] .empty-tile{box-shadow:0 1px 2px #0003,0 14px 32px -10px #00000080}:root[data-marketing-theme=dark] .ask-conversation ::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .native-library{--meeting-selection-tint:9%}html,body,#root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;height:100%;margin:0;overflow:hidden}html.main-window,body{background:0 0!important}body{pointer-events:none;-webkit-user-select:none;user-select:none;caret-color:#0000}.marketing-window{background:var(--bg);border-radius:12px;position:absolute;inset:0;overflow:hidden;transform:translateZ(0)}@media (width>=1000px){.marketing-window .chat-panel{--chat-height:initial!important}}.marketing-traffic{z-index:100;gap:7px;display:flex;position:absolute;top:16px;left:18px}.marketing-traffic i{background:#ff6058;border-radius:50%;width:10px;height:10px}.marketing-traffic i:nth-child(2){background:#febc2e}.marketing-traffic i:nth-child(3){background:#29c840}html[data-still] *,html[data-still] :before,html[data-still] :after{transition:none!important;animation:none!important}html[data-playing=false] *,html[data-playing=false] :before,html[data-playing=false] :after{animation-play-state:paused!important}.marketing-window .transcript-turn:first-child .name-in{animation:none}.marketing-cursor{z-index:1000;pointer-events:none;opacity:0;width:30px;height:32px;position:fixed;top:0;left:0;overflow:visible}.cursor-pointer{fill:#2f3649;stroke:#fff;filter:drop-shadow(0 1px 1.5px #0e142633);transform-origin:4px 3px;transition:transform .13s ease-out}.marketing-cursor[data-clicking=true] .cursor-pointer{transform:scale(.88)}.cursor-ring{fill:none;stroke:#fff;stroke-width:1.5px;opacity:0;transform-origin:4px 3px;transition:transform .24s ease-out,opacity .18s ease-out;transform:scale(.6)}.marketing-cursor[data-clicking=true] .cursor-ring{opacity:.3;transform:scale(1)}html[data-typing=true] [data-testid=note-mine] li:last-child p:after{content:"";vertical-align:-.1em;border-right:1.5px solid;height:1em;animation:.9s step-end infinite demo-caret;display:inline-block}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child){position:relative}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child):after{position:absolute;top:50%;left:0;translate:0 -50%}@keyframes demo-caret{50%{opacity:0}}html[data-fragment]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.marketing-fragment{min-width:0;position:absolute;inset:24px 24px auto}.marketing-fragment .transcript-toolbar,.marketing-fragment .transcript-player-dock,.marketing-fragment .ask-conversation-head,.marketing-fragment .ask-composer,.marketing-fragment .chat-answer-actions{display:none}.fragment-transcript .transcript-inline [data-testid=transcript]{flex:none;gap:20px;padding:0;overflow:hidden}.fragment-transcript .transcript-turn{min-width:0;margin:0}.fragment-transcript .turn-head{align-self:stretch}.fragment-transcript .line-who{flex:1}.fragment-transcript .turn-time{display:none}.fragment-transcript .transcript-turn[data-track=me]>p.sr-only{clip:auto;clip-path:none;white-space:normal;text-align:right;width:auto;height:auto;font-size:var(--text-xs);line-height:var(--text-xs--line-height);color:var(--muted);align-self:stretch;margin:0;padding:0;display:flex;position:static;overflow:visible}.fragment-transcript [data-testid=transcript-empty],.fragment-transcript .loading-placeholder{display:none}.marketing-fragment .ask-thread{padding:0;overflow:visible}.marketing-fragment .ask-turn>.ask-question{order:0}.fragment-byline{color:var(--muted);order:1;align-items:center;gap:9px;font-size:12px;display:flex}.marketing-fragment .ask-turn>:is(.chat-progress,.chat-answer){order:2}.marketing-fragment .ask-turn>.chat-progress{margin:0}.marketing-fragment .ask-turn>.chat-answer{margin-left:29px}html[data-fragment-playing=false] *{animation-play-state:paused!important}.fragment-ask .ask-turn{position:relative}.fragment-ask .ask-turn>.chat-progress{left:29px;top:var(--fragment-answer-top);visibility:hidden;position:absolute}@media (width<=320px){.marketing-fragment{inset:20px 20px auto}.marketing-fragment .bubble,.marketing-fragment .ask-question,.marketing-fragment .chat-answer{font-size:15px}}.marketing-window [data-testid=transcript-who],.fragment-transcript [data-testid=transcript-who]{visibility:visible;animation:none}.fragment-plan{position:relative}.fragment-plan-size{visibility:hidden;pointer-events:none}.fragment-plan-live{position:absolute;inset:0}html[data-ask-focused=true] [data-testid=chat-suggestions]{visibility:hidden}
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--font-weight-medium:500;--leading-snug:1.375;--leading-relaxed:1.625;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--default-mono-font-family:var(--font-mono);--font-brand:"Bricolage Grotesque", -apple-system, system-ui, sans-serif}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}@media (prefers-reduced-motion:no-preference){:where(.main-window :is(.overflow-auto,.overflow-y-auto,.workspace-sidebar-body,.native-library,.agenda-scroll,.agenda-inspector-scroll,.note-notes-pane,.note-layout,.chat-thread,.chat-history,.settings-scroll,.shortcuts-list,.citation-excerpt,.note-date-events,.finish-setup,.ob-side)){transition:scrollbar-color var(--dur-micro) ease}}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:0}.inset-x-0{inset-inline:0}.start-0{inset-inline-start:calc(var(--spacing) * 0)}.start-1\/2{inset-inline-start:50%}.end-0{inset-inline-end:calc(var(--spacing) * 0)}.end-4{inset-inline-end:calc(var(--spacing) * 4)}.top-0{top:0}.top-\[10px\]{top:10px}.top-full{top:100%}.bottom-1{bottom:var(--spacing)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-full{bottom:100%}.z-20{z-index:20}.z-30{z-index:30}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[80\]{z-index:80}.z-\[100\]{z-index:100}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing) * -1)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-5{margin-inline:calc(var(--spacing) * 5)}.mx-auto{margin-inline:auto}.my-1{margin-block:var(--spacing)}.ms-0\.5{margin-inline-start:calc(var(--spacing) * .5)}.ms-auto{margin-inline-start:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mt-px{margin-top:1px}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-\[26px\]{width:26px;height:26px}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-11{height:calc(var(--spacing) * 11)}.h-12{height:calc(var(--spacing) * 12)}.h-\[min\(44vh\,480px\)\]{height:min(44vh,480px)}.h-full{height:100%}.h-px{height:1px}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\[74vh\]{max-height:74vh}.min-h-0{min-height:0}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-\[40vh\]{min-height:40vh}.min-h-\[52px\]{min-height:52px}.w-9{width:calc(var(--spacing) * 9)}.w-60{width:calc(var(--spacing) * 60)}.w-64{width:calc(var(--spacing) * 64)}.w-72{width:calc(var(--spacing) * 72)}.w-\[30px\]{width:30px}.w-\[min\(340px\,calc\(100vw-48px\)\)\]{width:min(340px,100vw - 48px)}.w-\[min\(720px\,calc\(100\%-48px\)\)\]{width:min(720px,100% - 48px)}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.max-w-64{max-width:calc(var(--spacing) * 64)}.max-w-\[220px\]{max-width:220px}.max-w-\[640px\]{max-width:640px}.max-w-\[calc\(100\%-32px\)\]{max-width:calc(100% - 32px)}.max-w-\[calc\(100vw-32px\)\]{max-width:calc(100vw - 32px)}.max-w-\[min\(280px\,calc\(100vw-48px\)\)\]{max-width:min(280px,100vw - 48px)}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-48{min-width:calc(var(--spacing) * 48)}.min-w-60{min-width:calc(var(--spacing) * 60)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-\[5px\]{gap:5px}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-line{border-color:var(--line)}.bg-\[var\(--line\)\]{background-color:var(--line)}.bg-accent{background-color:var(--accent)}.bg-bg{background-color:var(--bg)}.bg-card{background-color:var(--card)}.bg-float{background-color:var(--float)}.bg-transparent{background-color:#0000}.\!p-1\.5{padding:calc(var(--spacing) * 1.5)!important}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-3{padding:calc(var(--spacing) * 3)}.\!px-0{padding-inline:0!important}.\!px-2{padding-inline:calc(var(--spacing) * 2)!important}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.\!py-1{padding-block:var(--spacing)!important}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-end{text-align:end}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.leading-5{--tw-leading:calc(var(--spacing) * 5);line-height:calc(var(--spacing) * 5)}.leading-\[1\.55\]{--tw-leading:1.55;line-height:1.55}.leading-\[17px\]{--tw-leading:17px;line-height:17px}.leading-\[18px\]{--tw-leading:18px;line-height:18px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.whitespace-nowrap{white-space:nowrap}.text-\[\#fff\]{color:#fff}.text-\[var\(--pill-accent\)\]{color:var(--pill-accent)}.text-accent{color:var(--accent)}.text-accent-ink{color:var(--accent-ink)}.text-danger{color:var(--danger)}.text-ink{color:var(--ink)}.text-muted{color:var(--muted)}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.shadow-\[var\(--shadow\)\]{--tw-shadow:var(--shadow);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[var\(--shadow-soft\)\]{--tw-shadow:var(--shadow-soft);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-line{--tw-ring-color:var(--line)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);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,)}.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,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.outline-none{--tw-outline-style:none;outline-style:none}.\[overflow-anchor\:none\]{overflow-anchor:none}.placeholder\:text-muted::placeholder{color:var(--muted)}@media (hover:hover){.hover\:bg-\[var\(--line\)\]:hover{background-color:var(--line)}.hover\:bg-card:hover{background-color:var(--card)}.hover\:text-ink:hover{color:var(--ink)}}.focus\:ring-accent:focus{--tw-ring-color:var(--accent)}.focus-visible\:bg-\[var\(--line\)\]:focus-visible{background-color:var(--line)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}@media (hover:hover){.disabled\:hover\:bg-transparent:disabled:hover{background-color:#0000}}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}@media (hover:hover){.aria-disabled\:hover\:bg-transparent[aria-disabled=true]:hover{background-color:#0000}}.aria-expanded\:text-ink[aria-expanded=true]{color:var(--ink)}@media (prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}.rtl\:translate-x-1\/2:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-translate-x:calc(1 / 2 * 100%);translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:-scale-x-100:where(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),[dir=rtl],[dir=rtl] *){--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}}@font-face{font-family:Bricolage Grotesque;src:url(data:font/ttf;base64,AAEAAAAQAQAABAAAR0RFRjocOWEAAAJQAAAA5EdQT1NqC7sMAAC11AAAi6pHU1VCvzzi/gAAETgAAAgcT1MvMmZffxoAAAHwAAAAYFNUQVRkw1NUAAABmAAAAFZjbWFwwBgxaAAACwwAAAYsZ2FzcAAAABAAAAEUAAAACGdseWYwEH14AAAx/AAAg9ZoZWFkH43wwgAAAWAAAAA2aGhlYQgxBTEAAAE8AAAAJGhtdHi4ZlhOAAAZVAAACPhsb2NhN9gXaAAABowAAAR+bWF4cAJQANYAAAEcAAAAIG5hbWVNBX+sAAADNAAAA1Zwb3N07eDS7wAAIkwAAA+ucHJlcGgGjIUAAAEMAAAAB7gB/4WwBI0AAAEAAf//AA8AAQAAAj4AZwAHAG0ABgABAAAAAAAAAAAAAAAAAAQAAQABAAADov7yAAAFZv9B/poFSwABAAAAAAAAAAAAAAAAAAACPgABAAAAAQBC7KnWY18PPPUAAwPoAAAAANsNS6MAAAAA4N1g7/9B/pAFSwR7AAAABgACAAAAAAAAAAEAAQAIAAMAAAAUAAMAAAAsAAJvcHN6AQAAAHdkdGgBAgABd2dodAEBAAIAHgASAAYAAQACAAABBwJYAAAAAQABAAIBEwBkAAAAAQAAAAABCwAOAAAAAAAEAjsCWAAFAAACigJYAAAASwKKAlgAAAFeADIBOgAAAgsGBQQEAgACBAAAAAMAAAAAAAAAAAAAAABBVExSAMAAICfpA6L+8gAABIgBkAAAAAEAAAAAAgsClAAAACAADQABAAIADgAAAAAAAACcAAIAFwABAG0AAQBvAMMAAQDFAREAAQETAUYAAQFiAWIAAQFkAWQAAQFnAWcAAQFsAWwAAQFuAW4AAQFxAXEAAQF2AXcAAQGAAYAAAQGCAYIAAQGFAYUAAQGKAYoAAQGMAYwAAQGPAY8AAQHJAckAAQHaAeIAAQHpAewAAQHwAfIAAQISAhYAAwIYAiwAAwABAAMAAAA+AAAAFgAAABAAAQABAiAAAQASAhICEwIVAhYCGAIZAhoCGwIcAh0CHgIfAiUCJwIoAikCKwIsAAEAAwIhAiICIwAAABAAxgADAAEECQAAAMQBzAADAAEECQABADgBlAADAAEECQACAA4BhgADAAEECQADAEwBOgADAAEECQAEADgBlAADAAEECQAFAFYA5AADAAEECQAGADYArgADAAEECQAOADYAeAADAAEECQAQACYAUgADAAEECQARABAAQgADAAEECQEAABgAKgADAAEECQEBAAwAHgADAAEECQECAAoAFAADAAEECQEHABAAQgADAAEECQELAAgADAADAAEECQETAAwAAABOAG8AcgBtAGEAbAAxADQAcAB0AFcAaQBkAHQAaABXAGUAaQBnAGgAdABPAHAAdABpAGMAYQBsACAAcwBpAHoAZQBTAGUAbQBpAEIAbwBsAGQAQgByAGkAYwBvAGwAYQBnAGUAIABHAHIAbwB0AGUAcwBxAHUAZQBoAHQAdABwAHMAOgAvAC8AcwBjAHIAaQBwAHQAcwAuAHMAaQBsAC4AbwByAGcALwBPAEYATABCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABWAGUAcgBzAGkAbwBuACAAMQAuADAAMAAxADsAZwBmAHQAbwBvAGwAcwBbADAALgA5AC4AMwAzAC4AZABlAHYAOAArAGcAMAAyADkAZQAxADkAZgBdADEALgAwADAAMQA7AEEAVABMAFIAOwBCAHIAaQBjAG8AbABhAGcAZQBHAHIAbwB0AGUAcwBxAHUAZQAtAFMAZQBtAGkAQgBvAGwAZABSAGUAZwB1AGwAYQByAEIAcgBpAGMAbwBsAGEAZwBlACAARwByAG8AdABlAHMAcQB1AGUAIABTAGUAbQBpAEIAbwBsAGQAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMgAyACAAVABoAGUAIABCAHIAaQBjAG8AbABhAGcAZQAgAEcAcgBvAHQAZQBzAHEAdQBlACAAUAByAG8AagBlAGMAdAAgAEEAdQB0AGgAbwByAHMAIAAoAGgAdAB0AHAAcwA6AC8ALwBnAGkAdABoAHUAYgAuAGMAbwBtAC8AYQB0AGUAbABpAGUAcgB0AHIAaQBhAHkALwBiAHIAaQBjAG8AbABhAGcAZQApAAAAAABEAF0AaQB1AIUAlQDMANwA7AEQARwBLAE8AWUBdQGFAZEBnQG9AckB1QHhAe0B+QIpAmACmgKmAuoC9gMCAy0DYgNqA50DvQPJA/MD/wQPBB8ETgReBG4EegSGBJIEuQTFBNEE3QTpBQMFQgVOBVoFZgWABaIFrgW6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AJAAkQCWAJcAnwG7AbABvAIBAbYCMwCjALsAvADBAMUA1gDXANsA3QDqAOwA7gDzAPQA+gERARMBFAEYAR4BIQE0ATUBOgE7AUMBuQHUAboB/wGRAacB3QHuAfIB1QHNAjEBzgFHAcMCAAHPAjsB0QH9AYgBiQI0AgoBzAGqAjwBhwFIAcQBdgFzAXcBqQASAAIACgAXABAAFgAYAB0ALwAkACYALABCAD0APgA/ACIAVABgAFcAWABrAF4B9QBqAIMAfgCAAIEAmABuAR0AtACkAKwAuQCyALgAugC/ANEAxgDIAM4A5ADfAOAA4QDEAPgBBAD7APwBDwECAfYBDgEnASIBJAElATwBEgE+ABQAtgADAKUAFQC3ABsAvQAeAMAAHAC+ACAAwgAhAMMAMQDTAC0AzwAyANQAJQDHADYA2AA4ANoANwDZADoA3ABGAOgARADmAEUA5wBAAN4APADpAEkA7QBLAO8ATQDxAEwA8ABOAPIAUQD1AFMA9wBSAPYAVQD5AGkBDQBoAQwAbAEQAHEBFQBzARcAcgEWAHUBGQB3ARsAdgEaAHsBHwCPATMAjAEwAH8BIwCOATIAiwEvAI0BMQCTATcAmQE9AJoAoAFEAKIBRgChAUUAYgEGAIUBKQAJAKsAeAEcAHwBIAI4AjICOQI9AjoCNQIUAhUCGAIcAh0CGgITAhICHgIbAhYCGQCVATkAkgE2AJQBOAARALMAEwC1AAsArQANAK8ADgCwAA8AsQAMAK4ABACmAAYAqAAHAKkACACqAAUApwAuANAAMADSADMA1QAnAMkAKQDLACoAzAArAM0AKADKAEMA5QBBAOMAXwEDAGEBBQBZAP0AWwD/AFwBAABdAQEAWgD+AGMBBwBlAQkAZgEKAGcBCwBkAQgAggEmAIQBKACGASoAiAEsAIkBLQCKAS4AhwErAJwBQACbAT8AnQFBAJ4BQgGUAZUBkgGTAcEBwgG9Ab8BwAG+AdYB2AGrAZ4CDQHsAfEB4AHhAeQB8AHqAeIB4wHcAe8B7QHnAegB6wHlAdsCEQIOAg8CEAIDAgYCCAH0AfwB+wABAAAACgCeASoAAkRGTFQAfmxhdG4ADgB0AAhBWkUgAFxDQVQgAEhDUlQgAFxLQVogAFxNT0wgADRST00gADRUQVQgAFxUUksgAFwAAP//AAcAAAABAAIABQAGAAcACAAA//8ABwAAAAEAAgAEAAYABwAIAAD//wAHAAAAAQACAAMABgAHAAgABAAAAAD//wAGAAAAAQACAAYABwAIAAljY21wAIRkbm9tAH5mcmFjAFxsb2NsAFZsb2NsAFBsb2NsAEpudW1yAERwbnVtAD50bnVtADgAAAABAA8AAAABAA4AAAABAAwAAAABAAgAAAABAAkAAAABAAcAAAAPABAAEgAUABYAGAAaABwAHgAgACIAJAAmACgAKgAsAAAAAQANAAAAAgAAAAEALgaUBcQFrgWSBXYFkgV2BWIFTAUQBQIE9ATcBM4EtgSoApIChAJkBNwCPgTcAiAE3AIABNwB3gTcAboE3AGUBNwBbATcAUIE3AEWBNwA6ATcALgE3ACOBM4AbABeAAEAAAABAAgAAQAiAAsABgAAAAEACAADAAEEdgABABQAAQHmAAEAAAAtAAEAAQGQAAYAAAABAAgAAwABABIAAQRUAAAAAQAAACsAAgACAV4BZwAAAXIBcgAKAAYAAAABAAgAAwAAAAEEKgAMAZoBmgGaAZoBmgGaAZoBmgGaAZoBmgG+AAEAAAApAAYAAAABAAgAAwAAAAED+gALAWoBagFqAWoBagFqAWoBagFqAWoBjgABAAAAJwAGAAAAAQAIAAMAAAABA8wACgE8ATwBPAE8ATwBPAE8ATwBPAFgAAEAAAAlAAYAAAABAAgAAwAAAAEDoAAJARABEAEQARABEAEQARABEAE0AAEAAAAjAAYAAAABAAgAAwAAAAEDdgAIAOYA5gDmAOYA5gDmAOYBCgABAAAAIQAGAAAAAQAIAAMAAAABA04ABwC+AL4AvgC+AL4AvgDiAAEAAAAfAAYAAAABAAgAAwAAAAEDKAAGAJgAmACYAJgAmAC8AAEAAAAdAAYAAAABAAgAAwAAAAEDBAAFAHQAdAB0AHQAmAABAAAAGwAGAAAAAQAIAAMAAAABAuIABABSAFIAUgB2AAEAAAAZAAYAAAABAAgAAwAAAAECwgADADIAMgBWAAEAAAAXAAYAAAABAAgAAwAAAAECpAACABQAOAABAAAAFQACAAEBaAFxAAAABgAAAAEACAADAAAAAQJ+AAEAEgABAAAAEwABAAEBcgABAAAAAQAIAAECFv/DAAYAAAABAAgAAgIIAfgB8AH4AAIAAAAQABUBwgGkAYgBbAFSATgBIAEIAPIA3ADIALQAogCQAIAAcABiAFQASAA8ACwAAQABAAEAAQABAAEAAAARAAAAAQACAAEAAgAAAAIAAQACAAEAAAAAAAAAAQADAAEAAQACAAAAAwABAAEAAgABAAAAAAAAAAEABAABAAEAAQACAAAABAABAAEAAQACAAEAAAAAAAAAAQAFAAEAAQABAAEAAgAAAAUAAQABAAEAAQACAAEAAAAAAAAAAQAGAAEAAQABAAEAAQACAAAABgABAAEAAQABAAEAAgABAAAAAAAAAAEABwABAAEAAQABAAEAAQACAAAABwABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAIAAEAAQABAAEAAQABAAEAAgAAAAgAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQAJAAEAAQABAAEAAQABAAEAAQACAAAACQABAAEAAQABAAEAAQABAAEAAgABAAAAAAAAAAEACgABAAEAAQABAAEAAQABAAEAAQACAAAACgABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAAAAQALAAEAAQABAAEAAQABAAEAAQABAAEAAgAAAAsAAQABAAEAAQABAAEAAQABAAEAAQACAAEAAAAAAAEBrwABAAEAAgACAUoBUwABAa8BrwACAAEAAQGvAAEAAAABAAgAAQA6AAoAAQAAAAEACAABAAb/9gACAAEBVAFdAAAAAQAAAAEACAABABQAFAABAAAAAQAIAAEABgAeAAIAAQFKAVMAAAABAAAAAQAIAAEAJAAIAAEAAAABAAgAAQAWAAcABgAAAAEACAABAAgAAQAOAAEAAQGqAAIAFgAGAAEASgABAAEASgABAAAACwABAO4AAQABAO4AAQAAAAoAAQAAAAEACAABAAYAAQABAAIAdwEbAAEAAAABAAgAAQAGAAUAAQABAN0AAgAAAAEACAABAAgAAQAOAAEAAQDnAAIA3gIkAAIAAAABAAgAAQAIAAEADgABAAEA4wACAN4CIQABAAAAAQAIAAEABgABAAEAAgDdAOoABgAAAAEACAACALwAuACcAIAABAAAAFwAOAAUAAIAFgAGAAAAAQACAAIAAQABAAAABQAAAAEAAQABAAEAAAADAAIAFgAGAAAAAQACAAIAAQABAAAABgAAAAEAAQABAAEAAAAEAAIAFgAGAAAAAQACAAIAAQABAAAAAgAAAAEAAQABAAEAAAACAAIABAISAhYAAQIYAh8AAQIgAiEAAgIjAiQAAgACAAQA3QDdAAEA4wDjAAMA5wDnAAIA6gDqAAEAAgAAAAEABADdAOMA5wDqAAQAAAABAAgAAQBOAAIALAAKAAQAHAAWABAACgIoAAICHAInAAICHgImAAICFAIlAAICFQAEABwAFgAQAAoCLAACAhwCKwACAh4CKgACAhQCKQACAhUAAQACAhgCGgKQAE4CrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgKsABYCrAAWAqwAFgOnABYCogBOAqMANQKjADUCowA1AqMANQKjADUCtwBOArcATgLrADEC6wAxAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CYgBOAmIATgJiAE4CSQBOAskANQLJADUCyQA1AskANQLMAE4DKgA5ARwATgKJAE4BHABOARwABgEc//4BHAA+ARwAQgEcAAABHAA0ARwADwEcACUBHP/4AW0ADAKlAE4CpQBOAfwATgH8AE4B/ABOAfwATgJLAEQDnABOAvkATgL5AE4C+QBOAvkATgL5AE4C+QBOAs8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUCzwA1As8ANQLPADUC1gA2As8ANQPgADUCfgBOAoAATgLRADUCnQBOAp0ATgKdAE4CnQBOAocALwKHAC8ChwAvAocALwKHAC8CvQBKAjIAFQIyABUCMgAVAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQLUAEkC1ABJAtQASQKZABYDzAAbA8wAGwPMABsDzAAbA8wAGwKiABgCbQAJAm0ACQJtAAkCbQAJAm0ACQJtAAkCbQAJAm0ACQI1ACICNQAiAjUAIgI1ACICQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgJAACoCQAAqAkAAKgOVACoCdABHAjAAKgIwACoCMAAqAjAAKgIwACoCdAArAnQAKwJwACsCXQApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkCQAApAkAAKQJAACkBhQAYAlMAHAJTABwCUwAcAlMAHAJrAEcCbv/0AQwANwELAEcBCwBHAQv//gEL//YBCwA3AQwANwEM//gBCwAtAQsABwELABsBC//wAh0ANwER/+oBEf/qAkAARwJAAEcBCgBHAQoARwEKAEcBCgA1AWsAJgOhAEcCawBHAmsARwJrAEcCawBHAmsARwJrAEcCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCXwApAl8AKQJfACkCeAApAngAKQJ4ACkCeAApAngAKQJ4ACkCXwApAl8AKQJfACkCXwApA8IAKQJ0AEcCdABHAnQAKwGmAEcBpgBHAaYANgGmADoCGwAkAhsAJAIbACQCGwAkAhsAJAKhAEcBhQAQAYUAEAGFABACYwA/AmMAPwJjAD8CYwA/AmMAPwJjAD8CYwA/AmMAPwKIAD8CiAA/AogAPwKIAD8CiAA/AogAPwJjAD8CYwA/AmMAPwJjAD8CYwA/Ai8ADQNNABIDTQASA00AEgNNABIDTQASAicAEQJVADACVQAwAlUAMAJVADACVQAwAlUAMAJVADACVQAwAgAAIwIAACMCAAAjAgAAIwGmABUBogAUAosAFQKVADUBTQAfAlEALQJYABoCYQAZAlwAMwKMADUB9QAYAooAMwKGADMCaAAuAmgAKgJoACgCaAAhAmgAFAJoADgCaAAuAmgAKgJoADUCaAA4AcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYBKv+RA5YAIwOhACMESQAnA5AAIwQkABYDpQAjBDkAFgQ9AC8D0QAZAcEAJwD+ACMBpQAnAZ8AFgG+ABkBpQAvAbwAJwFhABkBtgAkAbkAJgHBACcA/gAjAaUAJwGfABYBvgAZAaUALwG8ACcBYQAZAbYAJAG5ACYA7gAAAO4AAAH0AAAD6AAAAfQAAAPoAAABLAAAAPoAAACnAAACaAAAANcAAAB4AAAAPwAAAAAAAACnAAABQAAQAUAAHQDXABcAtAADAOEAHADMAAQC4AAXARcANwEXADcBoQAVAZsAEADXABcBKwAXAZ8ACwHgAE4CawAVAWX/+gFd//IAsQAEAAH/QQFZAB8CEQAfAxEAHwI2AAABOQA7AS8ACQFfABkBUQAIAUAATgE2ABAAtAADAWoAAwF0ABUBdAAQAL4AFQC+ABABuQAZAbkAIADsABkA4gAVAVIAGQCoABkClwBOA8oAOALzABkCpwAjAjEALwOtACkCnwAbA9MACgFjABsAtgAZAV8AGQEJAE4BCQBOAasAFQHuABABogAVAz8AKQQ/AE4ClwBOApcANQIwACoClwA1AnwALwJwACsC5gAZAqQAHALNAC0C3AASAqoAMwLOABUCtAAlAqUAPANxACIDDwAgArEAJgS5AE4CSQAkAs4AFQIyABUCJwAVBCEAIgJhAAkCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKADsCCgA7AgoAOwIKACQCCgAkAgoAOwIvAA0DzgAqAuwAOwHOAA4DCAAnAsAAFgLMAE4COQAtAqgAFQJxAD8CbgArA8IAGwVmABsB8QATAm4AEgH0ABUCbgAQAAAAFAAAABQAAAAUAAAAFAAAABQAAAAAAAAAFAAAABQAAAAQAAAAFAAAABEAAAAUAAAAFAAAABQAAAAUAAAAFAAAABQAAAAUAAAAFAAAABAAAAAQAAAAEAAAAA0AAAAUAAAAFAAAABQAAAALAAAAFAAAABQAAAASAAAAFAF3ABQAxwAUARsAFAEbABQBcgAUAWYAFAFmABQBEQAQAOAAFAFvABEBSAAUASIAFADPABQAAgAAAAAAAP+cADIAAAAAAAAAAAAAAAAAAAAAAAAAAAI+AAAAJADJAQIBAwEEAQUBBgEHAQgAxwEJAQoBCwEMAQ0AYgEOAK0BDwEQAREAYwCuAJAAJQAmAP0A/wBkARIAJwETARQA6QAoAGUBFQDIARYBFwEYARkBGgDKARsBHADLAR0BHgEfASAAKQAqAPgBIQEiACsBIwAsASQAzADNAM4A+gElAM8BJgEnASgBKQAtAC4BKgAvASsBLAEtAOIAMAAxAS4BLwEwAGYBMQAyANAA0QEyATMBNAE1ATYAZwE3ANMBOAE5AToBOwE8AT0BPgE/AUAAkQCvALAAMwDtADQANQFBAUIBQwA2AUQA5AD7AUUBRgA3AUcBSAA4ANQBSQDVAGgBSgDWAUsBTAFNAU4BTwFQAVEBUgFTAVQBVQFWADkAOgFXAVgBWQFaADsAPADrAVsAuwFcAV0BXgFfAD0BYADmAWEARABpAWIBYwFkAWUBZgFnAWgAawFpAWoBawFsAW0AbAFuAGoBbwFwAXEAbgBtAKAARQBGAP4BAABvAXIARwFzAQEA6gBIAHABdAByAXUBdgF3AXgBeQBzAXoBewBxAXwBfQF+AX8ASQBKAPkBgAGBAEsBggBMANcAdAB2AHcBgwGEAHUBhQGGAYcBiAGJAE0BigBOAYsATwGMAY0BjgDjAFAAUQGPAZABkQB4AZIAUgB5AHsBkwGUAZUBlgGXAHwBmAB6AZkBmgGbAZwBnQGeAZ8BoAGhAKEAfQCxAFMA7gBUAFUBogGjAaQAVgGlAOUA/AGmAIkAVwGnAagAWAB+AakAgACBAaoAfwGrAawBrQGuAa8BsAGxAbIBswG0AbUBtgBZAFoBtwG4AbkBugBbAFwA7AG7ALoBvAG9Ab4BvwBdAcAA5wHBAJ0AngCbABMAFAAVABYAFwAYABkAGgAbABwBwgHDAcQBxQHGAccByAHJAcoBywHMAc0BzgHPAdAB0QHSAdMB1AHVAdYB1wHYAdkB2gHbAdwB3QHeAd8AvAD0AeAB4QD1APYB4gHjAeQB5QHmAecB6AHpAeoB6wHsAe0B7gHvAfAB8QHyAfMB9AH1AfYB9wH4AfkAAwH6AfsB/AH9Af4B/wIAAgECAgIDAgQCBQIGAgcCCAIJABEADwAdAB4AqwAEAKMAIgCiAMMAhwANAgoABgASAD8CCwIMABAAsgCzAEIACwAMAF4AYAA+AEAAxADFALQAtQC2ALcAqQCqAL4AvwAFAAoCDQAjAAkAiACGAIsAigCMAIMCDgIPAF8A6ACCAhAAwgIRAhICEwIUAIQCFQAHAhYCFwIYAhkCGgIbAhwCHQIeAh8CIAIhAiICIwCFAiQCJQImAJYADgDvAPAAuAAgAI8AIQAfAJUAlACTAKcAYQCkAEEAkgInAJwCKAIpAJoAmQClAioAmAAIAMYCKwIsAi0CLgIvAjACMQIyAjMCNAI1AjYCNwI4AjkCOgI7AjwCPQI+Aj8CQAJBAkICQwJEAkUCRgJHAkgCSQJKAksCTAJNAI4A3ABDAI0A3wDYAOEA2wDdANkA2gDeAOAGQWJyZXZlB3VuaTFFQUUHdW5pMUVCNgd1bmkxRUIwB3VuaTFFQjIHdW5pMUVCNAd1bmkwMUNEB3VuaTFFQTQHdW5pMUVBQwd1bmkxRUE2B3VuaTFFQTgHdW5pMUVBQQd1bmkxRUEwB3VuaTFFQTIHQW1hY3JvbgdBb2dvbmVrCkNkb3RhY2NlbnQGRGNhcm9uBkRjcm9hdAZFY2Fyb24HdW5pMUVCRQd1bmkxRUM2B3VuaTFFQzAHdW5pMUVDMgd1bmkxRUM0CkVkb3RhY2NlbnQHdW5pMUVCOAd1bmkxRUJBB0VtYWNyb24HRW9nb25lawd1bmkxRUJDB3VuaTAxMjIKR2RvdGFjY2VudARIYmFyAklKB3VuaTFFQ0EHdW5pMUVDOAdJbWFjcm9uB0lvZ29uZWsGSXRpbGRlB3VuaTAxMzYGTGFjdXRlBkxjYXJvbgd1bmkwMTNCBk5hY3V0ZQZOY2Fyb24HdW5pMDE0NQNFbmcHdW5pMUVEMAd1bmkxRUQ4B3VuaTFFRDIHdW5pMUVENAd1bmkxRUQ2B3VuaTFFQ0MHdW5pMUVDRQVPaG9ybgd1bmkxRURBB3VuaTFFRTIHdW5pMUVEQwd1bmkxRURFB3VuaTFFRTANT2h1bmdhcnVtbGF1dAdPbWFjcm9uBlJhY3V0ZQZSY2Fyb24HdW5pMDE1NgZTYWN1dGUHdW5pMDIxOAd1bmkxRTlFBlRjYXJvbgd1bmkwMjFBBlVicmV2ZQd1bmkxRUU0B3VuaTFFRTYFVWhvcm4HdW5pMUVFOAd1bmkxRUYwB3VuaTFFRUEHdW5pMUVFQwd1bmkxRUVFDVVodW5nYXJ1bWxhdXQHVW1hY3JvbgdVb2dvbmVrBVVyaW5nBlV0aWxkZQZXYWN1dGULV2NpcmN1bWZsZXgJV2RpZXJlc2lzBldncmF2ZQtZY2lyY3VtZmxleAd1bmkxRUY0BllncmF2ZQd1bmkxRUY2B3VuaTFFRjgGWmFjdXRlClpkb3RhY2NlbnQGYWJyZXZlB3VuaTFFQUYHdW5pMUVCNwd1bmkxRUIxB3VuaTFFQjMHdW5pMUVCNQd1bmkwMUNFB3VuaTFFQTUHdW5pMUVBRAd1bmkxRUE3B3VuaTFFQTkHdW5pMUVBQgd1bmkxRUExB3VuaTFFQTMHYW1hY3Jvbgdhb2dvbmVrCmNkb3RhY2NlbnQGZGNhcm9uBmVjYXJvbgd1bmkxRUJGB3VuaTFFQzcHdW5pMUVDMQd1bmkxRUMzB3VuaTFFQzUKZWRvdGFjY2VudAd1bmkxRUI5B3VuaTFFQkIHZW1hY3Jvbgdlb2dvbmVrB3VuaTFFQkQHdW5pMDEyMwpnZG90YWNjZW50BGhiYXIJaS5sb2NsVFJLB3VuaTFFQ0IHdW5pMUVDOQdpbWFjcm9uB2lvZ29uZWsGaXRpbGRlAmlqB3VuaTAyMzcHdW5pMDEzNwZsYWN1dGUGbGNhcm9uB3VuaTAxM0MGbmFjdXRlBm5jYXJvbgd1bmkwMTQ2A2VuZwd1bmkxRUQxB3VuaTFFRDkHdW5pMUVEMwd1bmkxRUQ1B3VuaTFFRDcHdW5pMUVDRAd1bmkxRUNGBW9ob3JuB3VuaTFFREIHdW5pMUVFMwd1bmkxRUREB3VuaTFFREYHdW5pMUVFMQ1vaHVuZ2FydW1sYXV0B29tYWNyb24GcmFjdXRlBnJjYXJvbgd1bmkwMTU3BnNhY3V0ZQd1bmkwMjE5BnRjYXJvbgd1bmkwMjFCBnVicmV2ZQd1bmkxRUU1B3VuaTFFRTcFdWhvcm4HdW5pMUVFOQd1bmkxRUYxB3VuaTFFRUIHdW5pMUVFRAd1bmkxRUVGDXVodW5nYXJ1bWxhdXQHdW1hY3Jvbgd1b2dvbmVrBXVyaW5nBnV0aWxkZQZ3YWN1dGULd2NpcmN1bWZsZXgJd2RpZXJlc2lzBndncmF2ZQt5Y2lyY3VtZmxleAd1bmkxRUY1BnlncmF2ZQd1bmkxRUY3B3VuaTFFRjkGemFjdXRlCnpkb3RhY2NlbnQHemVyby50ZgZvbmUudGYGdHdvLnRmCHRocmVlLnRmB2ZvdXIudGYHZml2ZS50ZgZzaXgudGYIc2V2ZW4udGYIZWlnaHQudGYHbmluZS50Zgl6ZXJvLmRub20Ib25lLmRub20IdHdvLmRub20KdGhyZWUuZG5vbQlmb3VyLmRub20JZml2ZS5kbm9tCHNpeC5kbm9tCnNldmVuLmRub20KZWlnaHQuZG5vbQluaW5lLmRub20JemVyby5udW1yCG9uZS5udW1yCHR3by5udW1yCnRocmVlLm51bXIJZm91ci5udW1yCWZpdmUubnVtcghzaXgubnVtcgpzZXZlbi5udW1yCmVpZ2h0Lm51bXIJbmluZS5udW1yB3VuaTIxNTMHdW5pMjE1NAlvbmVlaWdodGgMdGhyZWVlaWdodGhzC2ZpdmVlaWdodGhzDHNldmVuZWlnaHRocwd1bmkyMDgwB3VuaTIwODEHdW5pMjA4Mgd1bmkyMDgzB3VuaTIwODQHdW5pMjA4NQd1bmkyMDg2B3VuaTIwODcHdW5pMjA4OAd1bmkyMDg5B3VuaTIwNzAHdW5pMDBCOQd1bmkwMEIyB3VuaTAwQjMHdW5pMjA3NAd1bmkyMDc1B3VuaTIwNzYHdW5pMjA3Nwd1bmkyMDc4B3VuaTIwNzkHdW5pMDBBMAd1bmkyMDAyB3VuaTIwMDMHdW5pMjAwMAd1bmkyMDAxB3VuaTIwMDQHdW5pMjAwNQd1bmkyMDA2B3VuaTIwMDcHdW5pMjAwOAd1bmkyMDA5B3VuaTIwMEEHdW5pMjAwQgd1bmkyMDJGB3VuaTI3RTgHdW5pMjdFOQd1bmkyMDE2FnBlcmlvZGNlbnRlcmVkLmxvY2xDQVQbcGVyaW9kY2VudGVyZWQubG9jbENBVC5jYXNlB3VuaTBFM0YGbWludXRlBnNlY29uZAd1bmkyMTEzCWVzdGltYXRlZAd1bmkyMTE2B3VuaTIwQkYHdW5pMjBCNQ1jb2xvbm1vbmV0YXJ5BGRvbmcERXVybwd1bmkyMEIyB3VuaTIwQjQHdW5pMjBBRAd1bmkyMEJFBGxpcmEHdW5pMjBCQQd1bmkyMEJDB3VuaTIwQTYHdW5pMjBCMQd1bmkyMEJEB3VuaTIwQTgHdW5pMjBCOQd1bmkyMEI4B3VuaTIwQUUHdW5pMjBBOQhlbXB0eXNldAd1bmkyMTI2B3VuaTIyMDYHdW5pMDBCNQdhcnJvd3VwCmFycm93cmlnaHQJYXJyb3dkb3duCWFycm93bGVmdAd1bmkwMzA4B3VuaTAzMDcJZ3JhdmVjb21iCWFjdXRlY29tYgd1bmkwMzBCC3VuaTAzMEMuYWx0B3VuaTAzMDIHdW5pMDMwQwd1bmkwMzA2B3VuaTAzMEEJdGlsZGVjb21iB3VuaTAzMDQNaG9va2Fib3ZlY29tYgd1bmkwMzEyB3VuaTAzMUIM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AAAR7AAAEfIAABHmAAAR8gAAEfgAABHgAAAR2gAAEfIAABHUAAARzgAAEcgRwhG8EbYRsBHCEbwRthGqEcIRvBG2EaQRwhG8EbYRqhHCEZ4RthHIEcIRvBG2EZgRwhG8EbYRkhHCEbwRthGMEcIRvBG2EcgRwhGeEbYRyBHCEbwRthGGEcIRvBG2EcgRwhG8EbYRsBHCEbwRthHIEcIRnhG2EcgRwhG8EbYRhhHCEbwRthGAEcIRvBG2EXoRwhG8EbYRdBHCEbwRthFuEWgRYhFcEVYRwhG8EbYRUAAAEUoAABFEAAARPgAAETgAABM8AAASKAAAETIAABEsAAARMgAAESYAABEyAAASKAAAESAAABEaAAARFAAAEQ4AABEUAAARCAAAERQAABEaAAARAgAAERoAABD8AAAQ9gAAEPAAABDqAAAQ5AAAEN4AABDkAAAQ6gAAENgAABDSEMwQxhDAELoQzBDGEMAQtBDMEMYQwBCuEMwQxhDAEKgQzBDGEMAQ0hDMEKIQwBDSEMwQxhDAEJwQzBDGEMAQ0hCWEMYQwBC6EJYQxhDAENIQlhCiEMAQ0hCWEMYQwBCcEJYQxhDAEJAQlhDGEMAQihDMEMYQwBCEEMwQxhDAENIQzBDGEMAQfhDMEMYQwBCQEMwQxhDAEjoAABB4AAAQcgAAEGwAABBmAAAQbAAAEGAAABBsAAAQWgAAEGwAABByAAAQbAAAEFQAABBOAAAQSAAAEEIAABA8AAAQQgAAEDYAABBCAAAQMAAAEEIAABBIAAAQKgAAEEgAABBCAAAQJAAAEEIAABAeAAAQQgAAEBgAABASAAAQDAAAEBIAABAGAAAQEgAAEAAAABASAAAP+gAAD/QP7g/oAAAP9A/uD+IAAA/0D+4P3AAAD/QP7g/iAAAP1g/uD/oAAA/0D+4P0AAAD/QP7g/KAAAP9A/uD8QAAA/0D+4PvgAAD/QP7g+4AAAP9A/uD74AAA/WD+4P+gAAD/QP7g+yAAAP9A/uD6wAAA/0D+4PpgAAD/QP7g/6AAAP1g/uD/oAAA/0D+4PoAAAD/QP7g+aAAAP9A/uD/oAAA/0D+4PlAAAD/QP7g+OAAAP9A/uD4gAAA+CAAAPfAAAD3YAAA9wAAAPagAAD2QAAA9qAAAPXgAAD2oAAA9wAAAPWAAAD1IAAA9qAAAPTA9GD0AAAA9MD0YPQAAAD0wPRg9AAAAPOgAADzQPLg8oAAAPNA8uDyIAAA80Dy4PHAAADzQPLg8WAAAPNA8uDxwAAA9YDy4POgAADzQPLg8QAAAPNA8uDwoAAA80Dy4PBAAADzQPLg7+AAAPNA8uDzoAAA9YDy4POgAADzQPLg74AAAPNA8uDvIAAA80Dy4POgAADzQPLg7sAAAPNA8uDuYAAA7gAAAO2gAADtQAAA7OAAAO1AAADsgAAA7UAAAOwgAADtQAAA68AAAOtgAADrAAAA6qAAAOpAAAFOIAAA6eAAAOmAAADpIAAA6YAAAOjAAADpgAAA6GAAAOmAAADoAAAA6YAAAOpAAADnoAAA50AAAU4gAADm4AAA6YAAAOaAAADpgAAA6AAAAOmAAADmIAAA6YAAAOXAAADlYAAA5QAAAOVgAADkoAAA5EAAAOSgAADj4AAA44DjIOLAAADiYOMg4sAAAOOA4yDiwAAA44DjIOIAAADhoOFA4OAAAOCAAADgIAAA38AAAN9gAADfAAAA32AAAN6gAADfYAAA38AAAN5AAADd4AAA32AAAN2AAAEEIAAA3SDcwNxg3ADboNzA3GDcANtA3MDcYNwA2uDcwNxg3ADbQNzA2oDcAN0g3MDcYNwA2iDcwNxg3ADZwNzA3GDcANlg3MDcYNwA3SDcwNqA3ADdINzA3GDcANkA3MDcYNwA3SDcwNxg3ADboNzA3GDcAN0g3MDagNwA3SDcwNxg3ADZANzA3GDcANig3MDcYNwA2EDcwNxg3ADX4NzA3GDcANeA3MDcYNwA1yDcwNxg3ADWwAAA1mAAANYAAADVoAAA1UAAANTgAADUgAAA1CAAANPAAADUIAAA02AAANQgAADUgAAA0wAAANVAAADSoAAA0kAAANKgAADR4AAA0qAAANVAAADRgAAA1UAAANEgAADQwAAA0GAAANAAz6DPQAAA0ADPoM9AAADQAM+gzuAAAM6AziD0AM3AzWDOIPQAzcDNAM4g9ADNwMygziD0AM3AzEDOIPQAzcDOgM4gy+DNwM6AziD0AM3Ay4DOIPQAzcDOgMsg9ADNwM1gyyD0AM3AzoDLIMvgzcDOgMsg9ADNwMuAyyD0AM3AysDLIPQAzcDKYM4g9ADNwMoAziD0AM3AzoDOIPQAzcDJoM4g9ADNwMrAziD0AM3AyUAAAMjgAADIgAAAyC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ACIAAP/5ACUAAP+4AAYAAAAAAAAABf/+AAAADP/w/7QADv/z/97/4P/tAA//3//v/+n/7QAo//H//QAoAA7/6gAAAA3/4v/i//sAHv/R//QAAQAA/+T/5v/vAAAAEgA3ACoAKAAAAAAAAP/UAAAAHgAVAAAAAAApAAAALgAr//v/y//1AAD/swAAAAD//wADAAD/3AAAAAD/+AAAAAD/5AAAAAAADwAAAAAAAP/+AAAABgAA//gALv/PAAAAGwAAAAAAHAAA/7cABAAA//0AAAAB//8AAAAA////+gAA//////////4AAP////8AAAAA//v/+AAD//4AAAAA//cACf////n////+/+v////+AAAAAP/2ABD/+P/4//r/+//2/+z/7AAA//8AAP/6//sAAAAA//4AAAAE//0AAv/7AAUAAP/9AAAAAP/7AAQAAAASAAAAAAADAAAAAAADAAAAAP/+AAAAAAAA//8AAP/5AAD//wABAAH/9v//AAD//f//AAD/+gAPAAAABQAA//X/9AAA////+QAF//3/+v/8//P//AAA//P/9gAAAAD/8P/4AAD/+//+//8AAAAK//UAAAAG//z/3v/6AAIAAP/o/+7/+gAHAAQAAAAHAAf//f/9AAAADgAA//gAAAAAAAAABQAAAAb//gAKAA3//gAAAAQAAAAAAAAAAAAA//oAAAAAAAUAAAAA/+sAAAAAAAAAAAAAAAAAAwAAAAIAAP/8//wAEQAAAAIAAAAf//4AAAAAAAAAAAAIAAAAAAAEAAAAAAAA/8sAAAAD//P/9gAAAAD/9f/1//P/9v/3//8AAAAAAAAAAAAc//n/+f/3AAn//f/nAAAAGAAA//b/+///AAAAAAAQABgAFAAAAA0AAP/UAAAAAP/p/+MAAAAVAAf////3AA//1QAAAAT/w//vAAAAAwAAAAT/7gAIAAIACQATAAD/9wAHAAD////z//j/9gAAAAUACgAA//7/9//aAAAAAf/yABX//P/4/9EAAP/+AAMAAQAZAA4AAAAA//gACf/+AAD/+f/qAAAAAP/q/+v/+f/r//D//gAA//8AAP/6AAkABv/uAAEAD//5/8z//AAPAAD/2f/1//gAAAAAAAkAEwAPAAAAAgAAAA8AAP/+AAYAAP/PAAwAAv//AAAACwARAAD//gAG/+kAAP//AAD//f/r//7//gAGAAwAAP/ZAAUAAP///+H/6AAAAAAAAAAC/////P//ABMAAAAE//kAGv/9//AABwAA//MABv/9AAwAFAABAAgBNAE6AUwBTQFRAa8BvQG+AAIABwE0ATQABgE6AToABwFMAUwABQFNAU0ABAFRAVEAAgGvAa8AAwG9Ab0AAQABAAIAAAAIAAI6FAAEAAA+MDrYAE8AXgAAAAD/5wAO/+X/7v/9//H//v/+//L/8v/9//H/r//3//b/zf/+//7/2wAQ//P//wAK/77/zf/p/+X/5P/x/+f/+wAAAAD/v//G/8YAAP/DAAwAEv/d/64AAAAC/9r/xv/A//8AAAAIABYAAP/NAAn/9QAA/+gAAP/G//3/0v/3AAIACf////L////+AAD/0//l/90AAP/J/+T/vf/z//4AGQAA//b/+wAI/+H/wQARAAD/0wAI/9n/ywAJAAAAAAAAAAD/9AAA//8AAAAAAAAAAAAA//8AAP+///z//P/fAAD////5AAEAAgAAAAH/w//pAAAAAAAAAAT/8wAKAAAAAP/s/+z/7wAA//AAAAAD/+r/z///AAH/9P/w/+T//f/9AAUAAgAA//f//wAA//7//wAA/+4AAf/6//MACgASAAAABAAAAAAAAP/t//z/6AAA//D/7f/eAAD/9QAEAAD/7v/qAAn/0v/gAAAAAP/5AAD/9v/yAAAAAAAA//EACP/+//L//v/z//YAAP/z//b//v/0AA//8P/+AA8AAP////0AFv/zAAAABQAR/9v/8v/+//H/8v/o//kAAAAAAA4ACgADAAD//gAHABf/4wAKAA0AAv/kAA8AGgAkABwAAgAUAAD/+wAH//oAAwAAAAD/+v/5//L/9gACAAYAHv/zACIAAwAA/93/9v/bAAAAAAAEAAD/+QAVABUAAAAVAAQAEAAYAAMABQAAAAQABwAC//oAAgAAAAAAAP/6//4AAwACAAQAAAAAAAQABAACAAT/wv/9AAD/6AAAAAYAAAAAAAYAAP///8H/9AAAAAD//gAE//gAGAAAAAD/7//v//EAAP/3//YAAgAA/9T/7AAN//3/9P/q/+T/5wAK//4AAP/9//4AAP//AAAAAP/3AAQAA//4AAwAFQABAAQAAAAA//3/9wAAAAAAAP/6/+7/6AAD//EABQAA/+7/3AAM/9P/6f/+AAAABf//AAH/+P/yAAAAAAAB/+YAAAADAAD//wAAAAAAAAAAAAD////e//8AAP/0AAAAAAAA//UAAAAA////7P/zAAIAA//+AAX/+QAQAAAAAP/6//7//wAA//z/3//3//T/5//Y//7//P/9//z/6//sAAn/7AAAAAD/4/////0AAAAA//sABAAG//UACwAUAAQACgAJAAP//v/3AAD/8AAA//7////yAAT/7P/zAAD/+v/XABL/6f/p/+kAAAAG//4AAgAA//wAAAAA////8v/9AAAAAAAAAAAAAAAAAAAAAAAD/77/+wAA/+cAAAAE//3//AAAAAD/+/+6//X//wAA//4AEv/4ABcAAAAA/+f/6//uAAD/9QAA//7/9f/S/98AA//+//P/6P/e/+sAAP/2AAD//P/yAAD//P//AAD/9wAOAAD/9gAMABQAAAATAAAAAP/8//gAAP/xAAD/+v/u/+YAAP/q//oAAP/o/9UACP/N/+n/9AAAAAL//AAA//b/6wAAAAD////lAAEAAP/5//3/+wAA//z//f/8//4AA//4AAAABAAA//4AAf/+//3/9//8AAH/5v//AAD/9wAA//AABQAAAAAAAwAHAAEAAP/9/93/9v/uAAYAAP/9//IABgAZAAkAAgAA/+0AAAAA/+T/////AAEAAP/5//7////2AAQACgASAAIAEAAAAAD/7//7/+sAAP//AAL//f//AAL/8wAAAAL/9wAHAAD//f/iAAD//f/+//sAAP//AAAAAAAA//7//QAAAAAAAAAAAAAAAAAAAAAAAP/c//v////wAAAAAAAAAAAAAAAAAAD/5v/nAAAAAQAAAAD/8wAIAAAAAP/3//v//AAA//YAAAAAAAD/5//4AAD/8v/9//f/9v/1AAH//wAA//f/+//9//0AAAAA//AAAP/6//IACAARAAAAAAABAAAAAP/w//f/6AAA//T/9//xAAD/8QAAAAD/+//lAA3/5v/n//4AAP/5//7/9QAAAAEAAAAAAAAAAAAAAAD//gAAAAAAAAAAAAD//wAAAAD//gAAAAAAAAAAAAAAAAAAAAAAAAAA/+UAAAAA//T//v/wAAUAAAAAAAAAAwAAAAD/+//8AAD/6wABAAAAAP/wAAIAGAANAAgAAAAAAAD//v/5AAAAAAAAAAD/+AAA//v/9QAEAAwADwAAABEAAgAA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//cADAAAAAD//AAA//4AAP/3//T////0/+v/8QAK//b////6//f/9QAF//sAAP/v//4AAAAAAAAAAP/uABD/9v/+AAYADgAJAAAADgAA//7/8P/5//UAAP/1////9AAA//QAAwAAAAD/6gAF//v/7f/8AAD/7AAH//gAAAAAAAAAAP/y/8sABP/y/+P/5//vAAD/5v/x/+f/8AAW/+7//QAfAAD/7f//AA//5//l//wAHP/X//YAAP/w/+r/6v/2AAAAAAAiAB4AFAAAAAD/yP/a/94AIQAE/9v/3gAZADgAGQAZ//z/2AAAAAP/wwAAAAf//wAAAAL/6f/7//3/+v//AAD/6gAnAAL////h//EAAAAAAAMACAAI//kAF//eAAAAFQAKAAQAFAAL/8cAAAAE//oABAAA//8AAAAAAAD//v/7AAAABwAAAAAAAAAAAAAABwAA/9D//QAF/+4AAAAJAAAABgAAAAAAAv/M/+8AAAAAAAD/+v/+AAgAAAAA//b/+v/5AAD//AAAAAoAAP/g//QAFf/2//z/8v/r/+4AFwAFAAAAAgABAAL//wAEAAD/+AAEAAkAAQAQABoAAP/6AAAAAP/+//YAAf/4AAD//P/7/+kAAP/xAA0AAP/2/+QAHf/b/+H//gAAAAIAAf/8//v/+QAAAAAAAP/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7AAAAAAAAAAAAAAAFAAAAAAAA////5wAAAAP/9gAA//MACQAAAAAABAAAAAAAAP/5AAAAAAAAAAAAAAAA//IABQAcAAoACAAA//4AAP/+//v//QAAAAAAAP/6AAD/+//3AAkAEQACAAAABgAAAAD/8P/5/+gAAP/9AAD/+wAAAAoAAAAAAAD/+gAN/////f/+AAD/+wAA//kAAAABAAAAAAAB//7//wACAAQABgABAAEABAAEAAQABv/M//wAAP/qAAEACf//AAEABv//AAP/x//pAAIAAP/8//7/+QARAAAAAP/z//b/9gAA//oAAAAGAAD/3f/0ABD/8P/2//D/7P/qABAAAgAA//sAAAAA//8AAAAA//QACAAD//wADwAZAAL//gAAAAH//v/z//3/9AAA//P/+P/kAAP/8QAKAAD/8//kABX/2v/ZAAAAAP/6AAD/9v/9//oAAAAAAAD/2wABAAf/+//9AAAAAP/8//z/+//9//QAAgAAAAAAAAAAAB7/+v////0ACP/6/+4AAAAVAAD//P/9AAYAAAAAAA4AFAASAAAACgAA/+YAAP///+r/7f/yABQAEf////YAE//nAAAAA//YAAAAAQAGAAAAAf/3AAsAAQAQABoAAv/8AAkAAP////X//gAAAAAAAwAIAAAAAP/3/+oAAAAA//QAHf/7//f/4QAAAAIAAwABABwACgAA//8AAf/l//0AAP/+//8AAAAA///////+////3P/+AAD/8wAAAAAAAP/yAAD////+/+n/8wABAAP//gAF//kADgAAAAD/+v/+//8AAP/8/9z/8P/0/+j/1v/9//z//f/7/+n/6QAI/+kAAAAA/9/////7AAAAAP/7AAQAB//yAAoAEwADAAkABwAA//3/+AAA//AAAP/+////8gAC/+z/8AAA//r/1QAM/+j/5//mAAAABv/+AAIAAP/6AAAAAP//AAkAAAAAAAD//wAAAAEAAAAAAAD////m//wAAf/3AAEAAwAAAAsAAAAAAAH/9P/tAAAAAP/8AAv/8wAPAAAAAP/5/////gAA//X//wAS//T/7AAAAAb/+v/+//z////+AAYAEQAA//oAAgAAAAAAAAAA//UAE//6//oACAAOAA0AEwAQAAEAAP/w//3/7gAA//n/+P/wAAP/+gALAAAAAP/wAAf/9v/qAAMAAP/8AAX/+gAAAAAAAAAAAAAAA//9AAD////9AAAAAP////8AAP/9/+3//QAB//gAAAAAAAAAEf//AAAAA//6/90AAAAE//b/7P/y//0AAAAA//4ABQACAAD/+wAAAAn/4f/yAAIAAP/iAAT//gABAAAADwALAAD/+QAA//0AAQAAAAD/9f//AAD/+wAIAA8ACP/tAAsAAAAA/+gAAP/tAAD/+gAA//gAAAABAA0AAAAD//sAG//9/+sABgAA//YADv/2AAAABQAAAAD/8QAN////9P/+//X/+QAD//b/+QAA//cADv/zAAQAEgAA/////wAa//YAAAAJABf/tP/1AAT/6v/S/+T/9AAAAAAAGgAcABIAAP/9AAgAIv/aABAADwAF/7sAFQApACsAHQAJABwAAP/9AAgAAAAL//4AAP/6//r/8//+AAQACQAA/9QAJwAGAAD/z//qAAAAAAACAAkAAP/9ABIAGQAAABwAAwAXABYAAgAJAAD/+QAUAAH//wADAAAAAAAA//P//QABAAEAAwAAAAAAAAAAAAEAA//C//wAAP/oAAAABv////4AAAAA//3/xP/1AAAAAAAAABH/+QAXAAAAAP/q/+3/7wAA//UAAP/+AAD/1f/jAAP//f/0/+n/4f/nAAP/+wAA//z/9AAA//8AAAAA//YADQAA//YADAAVAAIAEgAAAAD//f/3AAD/8QAA//n/8f/lAAL/7P/8AAD/6v/YAAr/0v/n//YAAAAC//wAAP/4/+8AAAAAAAAAA//+AAD//f/2AAAAAP/3//f//f/2/+4AAAAA//4AAAAAAAkABP/9AAIAC//4/+kAAAANAAD/8//z//4AAAAAAAAACAAKAAAAAAAAAA4AAP/4AAAAAP/tAAoAAgAYAA8AEAAuAAD//QAI//MAAAACAAD/+//0AAP/+QAGAA8AAv/0AAMAAAAX//D/+//yAAD//gAA//0AAgAPABMAAAACAAAAL//5/+8AGwAA//0AA//6AAoAEgAAAAAAAP/IAAAAA//4//wAAAAA//v/+//8//z/+f//AAQAAAAA//8AG//6//z//AAI//z/5QAAABYAAP/o//r//QAAAAAAFwAYABoAAAAUAAD/ywAA//7/6P/N/+oAGAAK//7//wAI/7oAAAAC/6D/7gAAAAsAAAAH/9sADQACAAwAFQAD/+gACQAA////8P/7//kAAAAJAAkAAP////r/uwAAAAT/9QAZ//z/+v/PAAAAAAAHAAAAGgAPAAAAAAAAAAP//gAA//7/+wAAAAD/+v/6//7/+//u//8AAAAAAAD//wAPAAb//AABAAz/+f/iAAAAD//6/+n/9P/9AAAAAAAFAAoADQAAAAYAAAAPAAD/+AAAAAP/6QANAAb/////ABYAFAAA//8ABgAAAAIABAAA//3/9wAG//0ACQATAAD/6QABAAAAAP/t//4AAAAAAAEAAf/+////+QAVAAAAAP/1ACr//P/wAAYAAP/+AAj//AAPABEAAAAA//AAGP/w//gABP/5///////6//oABP/5/6X/9v/9/9X//wAE/+EAJv/6AAEAEP+0/6b/8v/t/+b/wv/f//oAAAAA/6z/j/+RAAD/dgAVADb/4P+4AA8ADv+J/4z/yQABAAEAEAAwAAD/dgAVAAD////rAAD/cP/6/3T//QAOABUAAP/EAAD////+/6IAAP/bAAD/df/l/4P/+//+ACYAAP/6//sAHv/l/3gAFAAA/3gAHP9z/84ADwAAAAD/6v++AAH/7P++/7v/5v///7r/3P/c/9cAHf/o//sAHP///8P/+gAS/8X/v//2ACn/of/v//7/5f+r/87/0wAAAAAAIgAWABIAAP///6z/0P/VABgADf/H/6QAGwAqACAAE//m/8QAAP///6UAAAAA//sAAAAA/77/7f/7/+X/6QAq/6wAIgAA////sv/j/8sAAAAEAAMACP/tABH/wgAAABMABv/pACMAD/+4AAAAA//8AAL//f/6AAD/5f/z/83/5v/s/+QAAP/n/+f/9QAAAAAAAP+zAAD/4v/Y/+f/7wAA/73/9QAA/9X/of/t//P/7gAAAAD/5P/9AAAAAP/I/9b/1//fAAAAAP+xAAD/yv+lAAAAAP/jAAD/vv/L//H/vf/hAAAAAAAAAAAAAP/qAAD/+wAAAAD/9AAAAAD//QAAAAAAAAAAAAAAAP/nAAD/2wAA/+7/zv/CAAD/zgAA//r/rQAA/8//zQAA/9EAAAAA/84AAAAA/+gAB//9/+z/+v/q//wAAP/s//D//f/uAAb/8f/5AAMAAv/6//MAG//sAAAABAAM/7n/6//2/+P/5//f//MAAAAAAA4ACAADAAD/8QAAAA7/1wACABgAAP/KAAQAHAAjABgABAAQAAD/9AADAAAABf/5AAD/9f/8/9b/+f/+AAIAAP/oACUABAAB/8X/4f/aAAD/+gADAAD/9wAUABQAAAATAAAAAQAVAAAADAAA//4AEP/3/+8AAwAAAAAABP/z//8AAwAAAAAAAAAAAAAAAAAAAAD/6P/+AAD/+gAAAAMAAP/+AAIAAv///+3/7gAFAAAAAAAG//YADgAAAAD/9//9//4AAP/3AAD//gAA/+3/7QAAAAD//AAA/+z/8wAA//8AAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAgAAAAAAAcAAAAAAAAAAAAAAAAAAAAA//0AAAAA/+///QAB//wAAAAQ/+8AAP/8AAAAAP//AAD//v/8AAAAYQAXAAAAAAABAAAAAAABAG0AAAAOAAAADAAAAAAAAAAAAFAAAgACAAAAAAABABsAAAAAAAAACwAAAAAAAAAJAAAAAACGAHEAcgAAAD8AAAAAAAAAAAAAAAAAAAAAAAAAAACFAAP//gAAAE3/+wAAAFgAOwAAAFUAAAAZAAAAAAAAAAAAAAAAAAAATQAAAAAAAAAAAFIAAABXAAAAiAAAAAAAawAAAA8AAABzAAcAAABjAAAAUAABAAAAAAAAAAD/+P//AAAAAAAAAAAAAAAAAAAAAAAA/+z/+wAG//kAAAAAAAAABgAA//kAAP/4/+EAAAAAAAD////1AAb//f/+//v///////X/9gAA//8AAP/v//EAAAAA//8AAP/7//UACv/7AAMAAP/+AAAAAAAAAAAAAAAHAAAAAAAIAAAAAAAAAAAAAP//AAAAAAAAAAAAAP/8AAAAAP/zAAEAAAAAAAAACP/6AAD/+QAMAAAABQAAAAAAAAAA//4AB//x//8ABv/8ABIAAAAAABEAEf/8ABL/wP////v/6gAA//7//P/yABH////m/6wAAAAI//sAAAAAAAAAFAAAAAD/lv+b/5v/6P/0AAD/5AAA/9z/zAAAAAAAAAAAAAD/4//0/+T//wAAAAAAAAAA/////wAAAA0AAAAA//4AAAAAAAAAAAAA//4AAAAAAAD/9gAA/+QAAAAG/+X/4//0/+YAAP/2/80AAP/y//wAAP/oAAD/9v/ZAAAABAALAAIABAAMAAcADAAIAAkACgAKAAcADP/nAAgACv/7AAgADAARAAgADAAEAAn/5f/0AAwAFAAA//7//QAB//8AC//x//v/+wAEAAcAAAAOAAD/8f/6AAAAAP/3AAD/6//uABgAAwAIAAAACAAAAAAAFwAJAAAADwAAAAAAFQAAAAD//gAAAAAABAAAAAAAAAAMAAD//wAAAAj/+AAMABH/+wAAACL/6gAAAAMACwAAAAcAAAAKAAYAAAAFABD/+wAFAAwACAAXAAgACQAWABYACAAX/9QACQAE//cACAAOAAb//QAXAAv//f/T//0AEQAMAAAAFAADABH/8v/7/9X/5v/o//f//AAA//0AAP/o/+cAAAAA/+oAAP/k/+8ABP/2AAYAAP/1AAAAAAAPAAoAAAAlAAAAAAABAAAAAAAUAAAAAAAHAAAAAAAA//8AAP/4AAAADv/1//sAB//3AAAAC//eAAD/+wAGAAD/+wAA////+QAAAAD/9wAJ//f///////QAAAAA//T/9P////T/6//8AAD/+gAA//8ABAAI//YAAQAL//f/yf/5AAoAAP/j/+z/+wAAAAAAAQAIAAQAAP//AAAAEgAA//IABAAA/80AAAAA/////wANABEAAP/3AAn/8wAB//wAAP/2//r/+v/6AAEAB////+UAAQAA////3P/m/+oAAP/+AAD//P/8//8AFAAAAAD/+wAY//n/6AAOAAD/6gAI//gAAwAUAAAAAAAC/+cAAAADAAEAAAAAAAAAAAAAAAAAAP/g//8AAP/3AAAAAQAA//YAAAAAAAD/7//zAAEAAwAAAAf/+QARAAT////7//7////6//wAAP/4AAD/6f/cAAAAAP/+AAD/7//uAAn/7gAAAAD/5QAAAAAAAAABAAAABQAAAAAADAAAAAAACwAAAAD//wAAAAAAAAADAAD//wAAAAT/7f/0AAP/+wAAABP/7AAA/+n//wAA//4AAAAA//0AAAAA//r/vwAE//v/7P/n//cABP/k/+r/8f/rAB//+P//ACIAA//2AA4AC//q/+0AAAAi/8f/+wAOAAD/lv/y/9UAEQAeAB8AFgASABMACwAA/9MAAAAfABEAAAAAABQAAAAkAB7//v+m//wAAP9XAAAAAAAAAAAAAP/HAAAAAP/xAAAAAP+YAAAAAAABAAAAAAAAAAIAAAAQAAD/9wAf/5YACwAkAAAACgAeAAD/xAABAAAABAAAABAACgAAAAD/8f+7AAD/8v/h/97/7gAA/9z/4//o/+MAHP/v//sAGQAA/+sAAQAH/+D/4//8ABz/y//zAAIAAP+b/+X/0AAGAA8AHAANAA0ACAAAAAD/0QAAABYADwAAAAAADgAAACQAHf/2/6b/8wAA/0YAAAAA//4AAAAA/7sAAAAA/+wAAAAA/50AAAAA//8AAAAAAAD//QAAAAcAAP/yACP/lv//ABoAAP/+ABcAAP/AAAAAAP/9AAAABAABAAAAAP/v/7kABP/1/9r/1//yAAD/1f/h/+L/3wAk//P//QAeAAD/5wAFAAz/2v/d//4AIf/B//EABgAA/5n/5f/OAAAAGQAfABMADwAAAAcAAP/QAAAAHAAVAAAAAAATAAAAJgAg//T/pv/4AAD/RgAAAAD//v/+AAD/vgAAAAD/5gAAAAD/sQAAAAAAAAAAAAAAAP/+AAAAEAAA//MAI/+WAAQAIwAA//gAGwAA/78ABgAA//8AAAAI//8AAAAAAAD/9//+AAAAAP//AAAAAP//AAAAAAAA/+f/+wAE//kAAAAA//8AA/////j////4/+0AAAAAAAAAAf/0AAz//P/+//oAAP/8//T/9gAA//8AAP/q/+oAAAAA//4AAP/2//QAAP/5AAEAAP/4AAAAAAAAAAAAAAAMAAAAAAAFAAAAAAAEAAAAAP/9AAAAAAAA//4AAP/9AAAAAP/x//3//wAAAAD//f/5AAD/9gAHAAAAAAAAAAAAAAAAAAD//wAL//0AAAAA//sAAAAA//z//AAA//v/8P//AAEAAAAAAAAACAAT//wAAAAT//n/1f//AA8AAP/f//P/+gAAAAAAAQAJAA0AAP/+AAAAGAAA//gAAgAG/90ACQAC/////wAUAB4AAP/9AA3//QACAAEAAP/5//0AAAAAAAcADgAA/98AAwAAAAD/5f/6//QAAP//AAH//P////0AGwAAAAD/+AAq//z/7QAOAAD/9wAL//oACQATAAAAAAAB//j//wAAAAIAAAAAAAAAAAAAAAIAAP/o//kABf/2AAAAAAAAAAYAAP/4AAD/9v/hAAEAAP/v////9QAGAAAAAP/5/////wAA//T/8/////H/7P/uAAb/8f////n/9f/zAAf/+QAA//H//QAA//0AAAAA/+wACP/1//0ABwAOAAYAAAAHAAD////t//P/8QAA//P/+f/xAAD/8QAAAAAAAP/oAAT/9//r//kAAP/sAAP/8wAA//0AAAAA//b/0QAC//f/4f/z//AAAP/z//T/5v/zABj/8v/8ABgAAv/v//8ADP/y/+v/8gAi/+f/9wAA//X/+//x//0AAAAAAB0AFAAOAAAAAP/D/9f/6gASAAn/5v/yABkAJgAbABL/+f/HAAAABP+CAAAAAf/9AAAABP/3//v/+f/5//4AAP/8AB8AAwAA/+n/9v/eAAAABgAHAAT/8wAP/8kAAAAOAAP//gAcAAv/zgAAAAz/+gAI//7//AAAAAP/9QAY//P/+QAE//kAAAAA//r/+gAE//n/t//3//3/2QAAAAQAAAAmAAAAAAAW/8YAAAAAAAAAAP/fAAD/+gAAAAD/0P/Z/9gAAP/QABUANv/g/8QADwAAAAAAAAAAAAAAAQAQADAAAP/QABUAAAABAAAAAP/I//r/2wAAAA4AAAAA/+IAAAAAAAAAAP/mAAAAAP/JAAD/v//7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AAIAawBsAAIAbQBuAAEAbwBvAAIAcABzAAEAdAB4ABAAegB8ABkAfQCPAAQAkACQACsAkQCVABEAlgCWACwAlwCeAA4AnwCiABUAowCpAAYAqgCyAAwAswC4AAYAuQC5AAwAugC6AAYAuwC7AAkAvAC9AAoAvgC+AAsAvwDAAAoAwQDDABYAxADEADgAxQDGAAoAxwDOAAsAzwDSAAoA0wDTAAsA1ADUAAoA1QDVAAsA1gDWADoA1wDaABcA2wDbAAkA3ADcAEIA3QDdABIA3gDeAAgA3wDfAAkA4ADgAEQA4gDjABIA5ADkAEUA5wDnABIA6QDpABIA6gDqAEYA7ADxAAkA8gDyAEgA8wD5AAgA+gD7AAcA/AECAA0BAwEKAAcBCwELAA0BDAEOAAcBDwEPAA0BEAEQAAcBEQERAAgBEgESAAkBEwETABYBFAEVAAgBFgEWAAkBFwEXAAgBGAEcABMBHQEdAAgBHgEgABwBIQEzAAUBNAE0AFwBNQE5ABQBOgE6AF0BOwFCAA8BQwFGABgBSQFJAFEBSgFKABsBSwFLAEwBTAFMAFoBTQFNAFgBTgFOAD0BTwFPADsBUAFQABsBUQFRAFUBUgFSADUBUwFTAEoBaAFoACYBbgFuACYBhgGGACcBhwGHAE0BiAGIAFsBiQGJAFkBigGKAD4BiwGLADwBjAGMACcBjQGNAFYBjgGOADYBjwGPAEsBoAGgAFMBoQGhAFABogGiADQBowGjADMBpAGkAFQBpQGlADcBpgGmADkBqAGoAFIBrAGsAC8BrwGvAFcBsAGwADABswGzAEMBtAG1AB4BtwG3AE4BuAG4AE8BugG6ADEBvAG8ADIBvwG/ACQBwAHAACUBwQHBACQBwgHCACUBwwHDACABxAHEAEABxQHFACABxgHGAEEBxwHIACMBywHLAC0B0gHTACEB8wH0ABoB9QH1AEkB9gH2ABoB9wH4AB8B+QH5AD8B+gH6AEcB/wH/AC4CDAINACIAAgB0ABgAGAACABkAGQAxABoAHgARAB8AIgAYACMAMwACADQANAAyADUAOAAZADkAOQAIADsAOwAIADwAPAAGAD0APQAIAEAAQAAIAEIARQAIAEcARwAGAEgASQAjAEoASwAgAE0ATQAgAE4ATgAzAE8AVAAIAFYAYQAEAGIAZwANAGgAawAEAGwAbAACAG0AbQA0AG8AbwAEAHAAcwAaAHQAeAASAHoAfAAhAH0AhAAGAIUAigAOAIsAjwAGAJAAkAA1AJEAlQATAJYAlgA2AJcAngAKAJ8AogAbAKMAuQABALoAugADALsAuwAcALwAwAAUAMEAwQAVAMIAwgAlAMMAwwA/AMQAxAAcAMUA1QADANYA1gBCANcA2gAdANsA3AAJAN0A3QAMAN4A3gAHAN8A3wAMAOIA4wAMAOQA5AAVAOcA5wAMAOkA6gAMAOwA7QAqAO4A7wAVAPAA8AAlAPEA8QAVAPIA8gBJAPMA+QAJAPoBBQAFAQYBCwAPAQwBDwAFARABEAADAREBEgAcARMBEwAHARQBFwAeARgBHAAWAR4BHgAwASABIAAwASEBKAAHASkBLgAQAS8BMwAHATUBOQAXATsBQgALAUMBRgAfAUoBSgArAU4BTgBEAU8BTwBDAVABUAAvAVIBUgAmAVMBUwArAZ8BnwBHAaEBoQBMAaIBogA+AaMBowA9AaUBpQBAAagBqABNAakBqQBOAawBrAA5AbMBswBGAbQBtQAnAbcBtwBLAbgBuAAkAbkBuQA7AboBugAkAbsBuwA8Ab8BvwAtAcABwAAuAcEBwQAtAcIBwgAuAcMBwwAoAcQBxAApAcUBxQAoAcYBxgApAccByAAsAcoBygA6AcsBywA3AfMB9AAiAfUB9QBKAfYB9gAiAfcB9wBBAfkB+QBFAfoB+gBIAf8B/wA4AAEAAgAAAAgAAQHuAAQAAADyLNIsyCyyLKgsqCyiLKIsoiyQLIosiix0LGosZCxKLCAsFiwAK8IrvCu2K7ArpitEKyoqtCoOKgAp7imwKZ4piClyKWApUikUKNoo1CiKJ+An2ifIJ7YnsCd2J1AnEiaEJjomFCXuJeQleiRwJGYkXCRGJDwjtiN0Iz4i1CLGIsAiuiKUIooiVCJOIkQiOiIUIgIh6CHSIcwhxiGEIX4hdCFCIRwiTiEOIPAiTiDOILQgliCQIGYgDB9uHyAfGh8EHvIe6B6iHoweNh4wHeodzB2iHZgdih2AHUYdKB0GHQAc+hz0HOoc2ByuHFQcThxIHDocNBwqG6gbkhrwGuoa4BraHPQawBqmGpgadhpwGmoaXBpCGdgZohk0GQoY1Bh2GGAYNhf0F8YXjBdaFwQW1hakFnIWQBYOFdgVphV4FXIVbBVmFWAVYBVaFVoVUBVKFUQU/hTMFI4URBPiE4wTOhLoEs4SfBJSEjQSFhHoEcYRoBGGEWQRDhD0ENYQyBC2EGwQQhAED9IPfA8+DzQPJg7QDlINzA1+DVwNPgxYDC4MEAv+C5gLcgs0CroKgAomCawJjglsCWYJSAjaCFAILgf8B94HwAeuB1gHGga4BiIF/AWWBWAFSgVABP4E4ARiA+ADugACAEwAAQACAAAACgAQAAIAEgASAAkAFAAVAAoAFwAaAAwAHAAcABAAHwAfABEAIwAlABIALAAsABUAMgAyABYANAA1ABcAOQA7ABkAPQA/ABwAQQBBAB8ARABKACAATABNACcATwBQACkAVQBWACsAagBqAC0AbQBwAC4AdAB0ADIAdgB2ADMAeQB9ADQAgQCBADkAkACRADoAlgCZADwAmwCbAEAAnwCfAEEAoQChAEIAowCjAEMArACsAEQAsgCyAEUAtAC0AEYAtwC3AEcAugC8AEgAvgC/AEsAwQDFAE0AyADIAFIAzgDOAFMA1ADXAFQA2wDdAFgA3wDqAFsA7ADsAGcA7gDuAGgA8ADxAGkA8wD0AGsA+QD6AG0A/AD8AG8BAgECAHABDAEMAHEBEAERAHIBEwEWAHQBGAEYAHgBGgEbAHkBHQEhAHsBJQElAIABLwEvAIEBMQExAIIBNAE1AIMBOgE7AIUBPQE9AIcBRwFTAIgBXgFyAJUBfAGPAKoBnwGiAL4BpAGpAMIBrgGwAMgBswG1AMsBtwG7AM4BvQHIANMBygHLAN8B0gHTAOEB4gHiAOMB8wH1AOQB9wH/AOcCDAINAPAACQGhABYBogAJAaj/9AGs/8YBuP/zAb//lAHA/5cBwf+iAcL/ogAgAYb/0gGH/9YBiP/xAYn/5wGK/9ABi//cAYz/0wGN/9sBjv/iAY//3gGhABYBogAJAaMADQGkAAABpv//Aaj/9QGs/8YBswAJAbQACQG1AAkBuP/zAbz/9wG//6MBwP+fAcH/qwHC/6gBwwASAcQADgHFABIBxgAYAcf/qgHI/64AHwDW//4A1//5AOr/8AE0//QBNf/4ATv/8wFK//wBS//qAUz/4QFN/9QBTv//AU//9QFQ//wBUf+2AVL/6QFT//QBof+7AaL/twGm/+oBqP/cAaz/7gGv/9YBt//3Abj/2QG8/9QBv//RAcD/2AHB/+UBwv/lAcf/3gHI/98ABwAB/+8BS//4AUz//QFNAAABUf/nAbj/7QG/AAIAEABH//4Alv/hAUr/9QFL//UBTP/5AU3//QFP//UBUP/2AVH/4gFp/+kBav/uAW//3gFx//ABt//0Abj/5AG8/+IAAgFR//4BuP//AAUAev/hAUv/+QFM//8BUf/jAbj/6QANANf/7ADq//AA+v/2ATv/8gFNAAIBUf/8AWn/8QFr//EBb//sAbf/8wG4//QBvP/6Afr/2wAZANf/8QDq/+wA+v/4ATT/8wE1//UBO//xAUv/6AFM/+cBTf/ZAU//7wFR/7sBUv/rAVP/8QFo/+8Baf/dAW7/8AFv/98Bcf/wAbf/9AG4/9cBvP/RAcf/5AHI/+QB+f/bAfr/9AAJAAH/5QBQ//IAl//eALv/9AFK//wBS//0AUz/8wFR/+EBuP/iACUA1v/7ANf/8wDq//AA+v/4ATT/+wE1//0BO//zAUn//AFK//kBS//zAUz/8QFN//sBTgAAAU//8wFQ//kBUf/bAVL/9QFT//YBaP/0AWn/6QFu//QBb//cAXH/8gGh/+wBov/mAbf/9gG4/+EBvP/ZAb//7wHA//EBwf/vAcL/8QHH//MByP/zAfP/5AH0/+YB9//4ABgA1//mAUr/8AFL/+8BTP/zAU3/8gFO//sBT//tAVD/8AFR/9EBUv/yAVP/8wFo/+8Baf/aAWr/6QFt/+gBbv/wAW//ywFx/+UBt//qAbj/1wG///gBwP/3Acf/9QHI//UADwDq/+UBNP/nATX/7gE7/+oBSf/lAUz/0QFp/9UBa//0AWz/8QFt/+gBb//aAXD/7QFx/+oBv//AAcD/wQAVALL/5QDW//YA1//wAOr/5QD6//UBNP/oATX/7gE7/+kBSf/lAU3/ywFp/9UBbP/xAW3/6AFv/9oBcP/tAXH/6gGm/+ABv//OAcD/0wHG//gByP/OAAQBS//5AVH/9AGN/+cBuP/4AAcBof+WAaL/pwGv/8QBs//SAbgAHgHD/9oBxf/aAAcBSv/1AU7/ygGh/6cBov+rAbP/0gG4AB4B0gASAAwA1gAAATT/7gE1//YBS//nAVH/1wG4//IBv//IAcD/yQHB/8gBwv/JAcf/xwHI/8cACAE0//kBNf/+AUv/9AFR/9kBuP/qAbz/5gHH//AByP/wACIACv/E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)format("truetype");font-style:normal;font-weight:600;font-display:swap}:root{--dur-micro:.12s;--dur-base:.18s;--dur-surface:.24s;--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);--ease-soft:cubic-bezier(.23,1.15,.32,1);--dur-player-duck:.16s;--dur-player-return:.36s;--ease-player-duck:linear(0, .00391, .01563, .03516, .0625, .09766, .14063, .19141, .25, .31641, .39063, .47266, .5625, .66016, .76563, .87891, 1);--ease-player-return:linear(0, .02869, .10244, .2049, .32261, .44499, .56409, .67433, .77212, .85554, .92399, .97783, 1.01814, 1.04642, 1.06443, 1.07399, 1.07691, 1.07484, 1.06925, 1.06143, 1.0524, 1.04299, 1.03381, 1.0253, 1.01775, 1.0113, 1.006, 1.00182, .99869, .99649, .99508, .99432, .99409, .99423, .99466, 1, 1);--bg:#fff;--card:#f6f6f8;--ink:#23242a;--muted:#6e6f7b;--line:#e6e6ec;--accent:#7142e8;--accent-ink:#fff;--accent-soft:#ede6fc;--status-live:#416d48;--danger:#c13e51;--danger-ink:#fff;--float:#fff;--chrome:#f8f8fa;--shadow:0 16px 48px #1c182821, 0 2px 8px #1c182812;--shadow-soft:0 1px 3px #1c182812;--written:#50515c;--heading:#292a32;--scrim:#14121c2e;--pill:#232229;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root:not(.widget){--bg:#fff;--chrome:#f3f3f3;--card:#f6f6f6;--row-hover:var(--ink)}@supports (color:color-mix(in lab, red, red)){:root:not(.widget){--row-hover:color-mix(in srgb, var(--ink) 5%, transparent)}}:root:not(.widget){--float:#fff;--ink:#29292c;--muted:#606066;--heading:#29292c;--written:#54545a;--line:#e6e6e8;--accent:#6f00ff;--accent-ink:#fff;--accent-soft:#f1e6ff;--playback-bg:#e5d4ff;--playback-ink:#35105f;--primary:#6f00ff;--primary-hover:#6200e0;--control:#ececee;--control-hover:#e4e4e7;--control-pressed:#dcdce1;--control-border:transparent;--selected:#e4e2e8;--focus:#6f00ff;--danger:#b63c4d;--danger-ink:#fff;--danger-soft:#f4e5e8;--danger-control-ink:#a13041;--scrim:#16161938;--shadow:0 16px 44px #17171a1a, 0 2px 6px #17171a0d;--shadow-soft:0 1px 2px #17171a08}html,body,#root{height:100%;overflow:hidden}html.main-window,html.main-window body,html.main-window #root{background:0 0}body{background:var(--bg);color:var(--ink);font-family:var(--font-sans);letter-spacing:-.012em;-webkit-font-smoothing:antialiased;font-size:13px}.main-window *{scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:auto}.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:var(--muted) transparent}@supports (color:color-mix(in lab, red, red)){.main-window :is(:hover,:focus-visible,[data-scrolling]){scrollbar-color:color-mix(in srgb,var(--muted) 25%,transparent) transparent}}@media (prefers-contrast:more),(forced-colors:active){.main-window :is(*,:hover,:focus-visible,[data-scrolling]){scrollbar-width:auto;scrollbar-color:auto}.main-window ::-webkit-scrollbar{width:6px;height:6px}.main-window ::-webkit-scrollbar-thumb{background:var(--ink);border-radius:3px}.main-window ::-webkit-scrollbar-track{background:0 0}}.drag{-webkit-app-region:drag}.no-drag{-webkit-app-region:no-drag}html.widget,html.widget body,html.widget #root{background:0 0}html.widget{--pill:#232326;--pill-ink:#f7f7fa;--accent:#b780ff;--pill-accent:var(--accent);--widget-line:#48484d}.widget-pill{background:var(--pill);border:1px solid var(--widget-line);box-shadow:none;touch-action:none}.widget-pill:focus-visible{outline:2px solid var(--pill-accent);outline-offset:-3px}.widget-btn{color:#fff;transition:transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) ease;background:#6f00ff}.widget-btn-secondary{color:var(--pill-ink);background:#39393e}.widget-btn:disabled{opacity:.55}.widget-retry{color:#ffb0bd}.widget-btn:focus-visible{outline:2px solid var(--pill-ink);outline-offset:2px}.widget-btn:active{transform:scale(.97)}@media (hover:hover) and (pointer:fine){.widget-btn:not(:disabled):hover{background:#8120ff}.widget-btn-secondary:not(:disabled):hover{background:#48484f}}.widget-morph{visibility:hidden;isolation:isolate;-webkit-user-select:none;user-select:none;color:var(--pill-ink);cursor:default;position:absolute;overflow:hidden}.widget-morph[data-open=true]{cursor:grab}.widget-details{z-index:2;position:absolute;top:0;left:0}.widget-details>*{margin:0;position:absolute;top:0;left:0}.widget-time{white-space:nowrap;font-variant-numeric:tabular-nums;opacity:.8;font-size:10px;font-weight:500;line-height:15px}.widget-preview{color:var(--pill-ink);transform-origin:50% 0;cursor:default;flex-direction:column;padding:0 4px 12px 12px;font-size:14px;line-height:21px;display:flex;position:absolute;top:52px;left:0}.widget-preview[aria-hidden=true]{visibility:hidden;transition:visibility 0s linear var(--dur-base)}.widget-preview[aria-hidden=true] *{animation-play-state:paused!important}[data-testid=widget-wave]{will-change:transform}.widget-preview[aria-hidden=true]{pointer-events:none}.widget-preview-conversation{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:auto;flex:auto;min-height:0;padding:8px 4px 4px 0;overflow-x:hidden;overflow-y:scroll!important}.widget-preview-conversation::-webkit-scrollbar{width:4px}.widget-preview-conversation::-webkit-scrollbar-thumb{background:#ffffff50;border-radius:3px}.widget-preview-turn{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:16px;display:flex}.widget-preview-turn[data-me=true]{align-items:flex-end}.widget-preview-speaker{color:#b8b8c0;text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding-inline:8px;font-size:12px;font-weight:500;overflow:hidden}.widget-preview-bubble{overflow-wrap:anywhere;background:#ffffff0d;border-radius:12px;max-width:100%;padding:8px 12px}.widget-preview-turn[data-me=true] .widget-preview-bubble{background:#ffffff17}.widget-preview .live-words{color:#c3c3ca}.widget-preview .live-dots i{background:#c3c3ca}.widget-preview-empty{color:#b8b8c0;padding:12px 6px;font-size:13px}.widget-preview-latest{border:1px solid var(--widget-line);background:var(--pill);bottom:12px;border-radius:8px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;display:flex;position:absolute;inset-inline-start:50%;translate:-50%;box-shadow:0 3px 10px #0003}[dir=rtl] .widget-preview-latest{translate:50%}.widget-preview-warning{background:#ffffff06;border-radius:10px;flex:none;margin:0 8px 12px 0;padding:10px 12px;font-size:12px;line-height:18px}.widget-settings{cursor:pointer;background:#ffffff08;border:1px solid #ffffff20;border-radius:6px;min-height:28px;margin-top:10px;padding:4px 9px;font-size:11px;font-weight:500;display:block}.widget-settings:hover{background:#ffffff14}.widget-preview button:focus-visible{outline:2px solid var(--pill-accent);outline-offset:1px}.widget-preview .page-loading{--control:#ffffff14}@media (prefers-reduced-motion:reduce){.widget-btn{transition:none}}.summary-regenerate{z-index:40;border:1px solid var(--line);background:var(--float);width:420px;max-width:calc(100vw - 32px);box-shadow:var(--shadow);inset-inline-end:0;border-radius:9px;padding:14px;position:absolute;top:calc(100% + 8px);overflow:hidden}.summary-regenerate-heading{white-space:nowrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:12px;font-weight:500;line-height:20px;display:flex}.summary-regenerate-heading button{width:22px;height:22px;color:var(--muted);border-radius:4px;place-items:center;display:grid}.summary-regenerate-input{border:1px solid var(--control-border);background:var(--control);width:100%;height:36px;color:var(--ink);border-radius:6px;padding:0 10px;font-size:12px}.main-window .summary-regenerate-input:focus-visible{outline:2px solid var(--muted);outline-offset:2px}.summary-regenerate-input::placeholder{color:var(--muted)}.summary-regenerate-warning{color:var(--muted);white-space:nowrap;margin-top:10px;font-size:12px;line-height:20px}.summary-regenerate-actions{justify-content:flex-end;margin-top:12px;display:flex}.summary-regenerate-actions button{white-space:nowrap;font-size:12px}.note-chip,.note-record-action{height:32px}.note-chip,.share-btn,.person-remove{transition:background-color var(--dur-micro) ease, color var(--dur-micro) ease, opacity var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) ease}.note-chip:hover,.note-chip[aria-expanded=true]{background:var(--control-hover);color:var(--ink)}.note-chip:focus-visible,.share-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.share-btn:hover{background:var(--control-hover)}.person-remove{opacity:0}.person-row:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.person-row:hover{background:color-mix(in srgb, var(--line) 45%, transparent)}}.person-row:hover .person-remove{opacity:1}.person-row:has(:focus-visible) .person-remove{opacity:1}.menu-entry{transform-origin:var(--transform-origin,top right)}.menu-entry[role=menu]{color:var(--ink);border-color:var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:9px;padding:5px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]){border-radius:5px;min-height:32px;padding:6px 9px;font-size:12px;line-height:20px}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):hover:not(:disabled){background:var(--control-hover)}.menu-entry[role=menu] :is([role=menuitem],[role=menuitemradio],[role=menuitemcheckbox]):focus-visible{background:var(--selected);outline:none}.menu-entry[role=menu] :is([data-testid=note-delete],.folder-picker-new){border-top:1px solid var(--line);border-radius:0 0 5px 5px;margin-top:4px;padding-top:10px}.people-add-field:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.people-add-field input:focus-visible{outline:none}.menu-entry[data-anchor=start]{transform-origin:0 0}[dir=rtl] .menu-entry[data-anchor=start]{transform-origin:100% 0}[dir=rtl] .menu-entry[data-anchor=end]{transform-origin:0 0}.menu-entry[data-anchor=bottom-start]{transform-origin:0 100%}[dir=rtl] .menu-entry[data-anchor=bottom-start]{transform-origin:100% 100%}.menu-entry:not([data-motion=instant]){transition:opacity var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}.menu-entry:not([data-motion=instant])[data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.menu-entry:not([data-motion=instant]){opacity:0;transform:scale(.97)}}.menu-entry:not([data-motion=instant])[data-ending-style]{opacity:0;transition:opacity var(--dur-micro) var(--ease-out);pointer-events:none;transform:none}@media (prefers-reduced-motion:reduce){.note-chip,.share-btn,.person-remove,.menu-entry:not([data-motion=instant]){transition:opacity var(--dur-micro) var(--ease-out)}.menu-entry:not([data-motion=instant])[data-starting-style]{transform:none}@starting-style{.menu-entry:not([data-motion=instant]){transform:none}}}.ghost-btn{color:var(--muted);transition:color var(--dur-micro) ease, background-color var(--dur-micro) ease;border-radius:6px;align-items:center;gap:5px;padding:4px 8px;display:inline-flex}.ghost-btn:hover,.ghost-btn[aria-pressed=true]{color:var(--ink);background:var(--control-hover)}@keyframes rec-pulse{50%{opacity:.35}}@keyframes shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.note-prose,.note-empty{font-size:15px;line-height:1.7}.note-prose{color:var(--ink);caret-color:var(--accent)}.note-empty{color:var(--muted)}.note-prose>*+*{margin-top:.4em}.note-prose h1,.note-prose h2,.note-prose h3{font-weight:600;line-height:1.4;position:relative}.note-prose h1{margin-top:1.5em;font-size:19px}.note-prose h2{letter-spacing:-.015em;margin-top:1.7em;font-size:15px}.note-prose h3{margin-top:1.3em;font-size:15.5px}.note-prose>:first-child{margin-top:0}.note-prose h1+ul,.note-prose h2+ul,.note-prose h3+ul,.note-prose h1+ol,.note-prose h2+ol,.note-prose h3+ol{margin-top:.35em}.note-prose ul,.note-prose ol{padding-inline-start:1.15em}.note-prose ul{list-style:outside}.note-prose ul ul{list-style:none}.note-prose ul ul>li{position:relative}.note-prose ul ul>li:before{content:"–";color:var(--muted);position:absolute;inset-inline-start:-1.1em}.note-prose ol{list-style:decimal}.note-prose li{margin-top:.25em;padding-inline-start:.15em}.note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.note-prose li::marker{color:color-mix(in srgb, var(--ink) 70%, transparent)}}.note-prose strong{font-weight:600}.note-prose a{color:var(--accent);text-underline-offset:2px;text-decoration:underline}.note-prose p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--muted);float:inline-start;pointer-events:none;height:0}.note-prose.enhanced{color:var(--written)}.note-prose.enhanced h1,.note-prose.enhanced h2,.note-prose.enhanced h3{color:var(--heading)}.note-prose.enhanced strong,.note-prose .mine{color:var(--ink)}.chat-answer h1:before,.chat-answer h2:before,.chat-answer h3:before{content:none}@keyframes fade-in{0%{opacity:.4}to{opacity:1}}.chat-in{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.fw{animation:fade-in var(--dur-micro) var(--ease-out) both}.chat-answer{font-size:14.5px;line-height:1.6}:where(.stream-caret,.streaming .note-prose):empty:after,:where(.stream-caret,.streaming .note-prose)>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after,:where(.stream-caret,.streaming .note-prose)>:where(ul,ol):last-child>li:last-child>:where(ul,ol):last-child>li:last-child>:where(:not(ul):not(ol)):last-child:after{content:"●";vertical-align:.1em;color:var(--muted);margin-inline-start:.3em;font-size:.7em;animation:2s cubic-bezier(.4,0,.6,1) infinite caret-pulse}@keyframes caret-pulse{50%{opacity:.35}}.swap{flex:none;place-items:center;display:inline-grid}.swap>*{transition:opacity var(--dur-base) var(--ease-out),filter var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-soft);grid-area:1/1;display:inline-flex}.swap>[data-on=false]{opacity:0;filter:blur(2px);pointer-events:none;transform:scale(.4)}.swap-text{display:inline-grid}.swap-text>*,.swap-text:after{grid-area:1/1}.swap-text[data-widest]:after{content:attr(data-widest);visibility:hidden;height:0;overflow:hidden}.swap-in{animation:swap-in var(--dur-base) var(--ease-out) both}@keyframes swap-in{0%{opacity:0;filter:blur(2px)}}.follow-arrow{transition:transform var(--dur-base) var(--ease-soft)}.follow-arrow[data-up=true]{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.swap>*{transition:opacity var(--dur-micro) var(--ease-out);filter:none!important;transform:none!important}.swap-in{animation:motion-fade var(--dur-micro) var(--ease-out)}.follow-arrow{transition:none}}.accordion{transition:grid-template-rows var(--dur-base) var(--ease-out);grid-template-rows:0fr;display:grid}.accordion[data-open=true]{transition-duration:var(--dur-surface);grid-template-rows:1fr}.accordion>*{opacity:0;visibility:hidden;min-height:0;transition:opacity var(--dur-micro) var(--ease-out),visibility var(--dur-base);overflow:hidden}.accordion[data-open=true]>*{opacity:1;visibility:visible;transition:opacity var(--dur-base) var(--ease-out) 40ms,visibility 0s}@media (prefers-reduced-motion:reduce){.accordion{transition:none}.accordion>*,.accordion[data-open=true]>*{transition:opacity var(--dur-micro) var(--ease-out),visibility var(--dur-micro)}.accordion[data-open=true]>*{transition-delay:0s}}.streaming .note-prose>:last-child>br.ProseMirror-trailingBreak:only-child{display:none}.summary-surface{position:relative}.summary-surface[data-streaming=true]{isolation:isolate}.summary-surface[data-streaming=true] .note-prose{z-index:1;position:relative}.summary-ink-layer{pointer-events:none;width:100%;height:100%;fill:var(--accent);position:absolute;inset:0;overflow:hidden}.summary-surface:not([data-streaming=true])>.summary-ink-layer{display:none}.summary-ink{color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.summary-ink{color:color-mix(in srgb, var(--accent) var(--ink-fresh,0%), var(--ink-target))}}.enhanced{--ink-target:var(--written)}.enhanced :is(h1,h2,h3){--ink-target:var(--heading)}.enhanced :is(strong,.mine){--ink-target:var(--ink)}.enhanced a{--ink-target:var(--accent)}.summary-outline{pointer-events:none;padding-top:5px;font-size:15px}.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,var(--line) 50%,var(--line) 100%);border-radius:3px;height:8px}@supports (color:color-mix(in lab, red, red)){.summary-outline-bar{background:linear-gradient(90deg,var(--line) 0%,color-mix(in srgb,var(--line) 40%,var(--card)) 50%,var(--line) 100%)}}.summary-outline-bar{background-size:200% 100%;animation:1.6s ease-in-out infinite shimmer}.summary-outline-heading{width:30%;height:11px;margin-bottom:16px}.summary-outline-block+.summary-outline-block{margin-top:29px}.summary-outline-bullet{align-items:center;gap:calc(1.3em - 4px);margin-bottom:14px;display:flex}.summary-outline-bullet:before{content:"";background:var(--line);border-radius:50%;flex:none;width:4px;height:4px}.summary-outline-bullet .summary-outline-bar{width:80%}.summary-outline-bullet:nth-child(3) .summary-outline-bar{width:58%}.summary-outline-block+.summary-outline-block .summary-outline-bullet:nth-child(2) .summary-outline-bar{width:70%}.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, var(--line) 50%, var(--line) 100%);inset-inline-start:0;border-radius:4px;width:142px;max-width:100%;height:12px;position:absolute;top:5px}@supports (color:color-mix(in lab, red, red)){.summary-heading-bar{background:linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, var(--card)) 50%, var(--line) 100%)}}.summary-heading-bar{pointer-events:none;transform-origin:0;background-size:200% 100%}.summary-surface[data-waiting=true]>.summary-heading-bar{animation:1.6s ease-in-out infinite shimmer}.summary-surface[data-waiting=true] .note-prose:after,.summary-surface[data-waiting=true] .note-prose :after{content:none}@media (prefers-reduced-motion:reduce){.summary-heading-bar{animation:none!important}.summary-outline-bar,.summary-outline-block{opacity:.75;animation:none}.summary-ink{color:inherit}.summary-ink-layer{display:none}}.chat-answer>*+*{margin-top:.45em}@media (prefers-reduced-motion:reduce){.chat-in,.fw{animation:motion-fade var(--dur-micro) var(--ease-out)}.stream-caret:after,.stream-caret :after,.streaming .note-prose:after,.streaming .note-prose :after{animation:none}}.line-in{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.bubble{text-align:start;overflow-wrap:anywhere;max-width:min(85%,560px);color:var(--ink);border-radius:9px;padding:5px 10px;font-size:13.5px;line-height:1.5}.bubble-me,.bubble-them{background:var(--control)}.bubble .line{-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:4px}.bubble [data-playing]:before{content:none}.turn-time{opacity:0;transition:opacity var(--dur-micro) var(--ease-out)}.transcript-turn:hover .turn-time{opacity:1}.transcript-turn:has([data-playing]) .turn-time{opacity:1}.live-words{color:var(--muted)}.live-word{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.live-dots{vertical-align:-.1em;align-items:center;gap:3px;height:1em;margin-inline-start:7px;display:inline-flex}.live-dots i{background:var(--muted);border-radius:999px;width:4px;height:4px;animation:1.2s ease-in-out infinite live-dot}.live-dots i:nth-child(2){animation-delay:.2s}.live-dots i:nth-child(3){animation-delay:.4s}@keyframes live-dot{0%,80%,to{opacity:.3}40%{opacity:1}}.line-settle{animation:line-settle var(--dur-surface) var(--ease-out)}@keyframes line-settle{0%{color:var(--muted)}to{color:var(--ink)}}@media (prefers-reduced-motion:reduce){.live-word{animation:motion-fade var(--dur-micro) var(--ease-out)}.line-settle{animation:none}.live-dots i{opacity:.6;animation:none}}.line-playable{transition:background-color var(--dur-micro) ease}.line-playable:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.line-playable:hover{background:color-mix(in srgb, var(--line) 55%, transparent)}}.line-playable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}[data-playing]{background:var(--playback-bg);color:var(--playback-ink);box-shadow:0 0 0 1px var(--accent);position:relative}@supports (color:color-mix(in lab, red, red)){[data-playing]{box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 55%,transparent)}}[data-playing]:before{content:"";background:var(--accent);inset-inline-start:2px;border-radius:2px;width:2px;position:absolute;top:7px;bottom:7px}.line-playable[data-playing]:hover{background:var(--playback-bg)}[data-playing] .line-time{opacity:1;color:var(--accent)}.transcript-turn:has([data-playing]) .line-who:not([data-color]){color:var(--accent)}.name-in{animation:motion-fade var(--dur-base) var(--ease-out) backwards}.player-btn{transition:transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out)}.player-btn:hover{opacity:.88}.player-btn:active{transform:scale(.97)}.scrubber{appearance:none;cursor:pointer;background:0 0;height:16px}.scrubber::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill));border-radius:999px;height:3px}[dir=rtl] .scrubber::-webkit-slider-runnable-track{background:linear-gradient(to left, var(--accent) var(--fill), var(--line) var(--fill))}.scrubber::-webkit-slider-thumb{-webkit-appearance:none;background:var(--accent);width:11px;height:11px;box-shadow:0 0 0 3px var(--float);border-radius:999px;margin-top:-4px}.scrubber:focus-visible{outline:none}.scrubber:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--float), 0 0 0 5px var(--accent)}@media (prefers-reduced-motion:reduce){.line-in,.name-in{animation:motion-fade var(--dur-micro) var(--ease-out)}}.bar-btn{transition:transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out), background-color var(--dur-micro) ease, color var(--dur-micro) ease}.bar-btn:hover{color:var(--ink);background:var(--card)}.note-title-btn{transition:background-color var(--dur-micro) ease}.note-title-btn:hover{background:var(--line)}@supports (color:color-mix(in lab, red, red)){.note-title-btn:hover{background:color-mix(in srgb, var(--line) 60%, transparent)}}.note-title-btn:focus-visible,.bar-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.past-day{content-visibility:auto;contain-intrinsic-size:auto 320px}.search-backdrop{background:var(--scrim)}.search-panel{z-index:101;width:min(640px,100vw - 32px);height:min(560px,74vh);box-shadow:var(--shadow);border-radius:12px;outline:none;position:fixed;top:12vh;left:50%;translate:-50%}.search-header{border-bottom:1px solid var(--line);flex:none}.search-input-row{align-items:center;padding-inline:20px;display:flex}.search-field{min-width:0;font-size:var(--text-base);flex:1;line-height:24px;position:relative}.search-field input{width:100%;min-width:0;height:60px;color:var(--ink);caret-color:var(--accent);font:inherit;letter-spacing:inherit;background:0 0;border:0;outline:none;padding:18px 0;display:block;position:relative}.search-field input::placeholder{color:var(--muted);font-weight:400}.search-input-highlight{white-space:pre;pointer-events:none;color:#0000;padding-block:18px;position:absolute;inset:0;overflow:hidden}.search-input-highlight>span{min-width:100%;display:inline-block}.search-input-highlight mark{background:var(--accent-soft);color:#0000;border-radius:3px;padding:0}.search-filters{flex-wrap:wrap;gap:8px;padding:0 20px 12px;display:flex}.search-filter{background:var(--control);min-width:0;max-width:100%;min-height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:7px;padding:3px 4px 3px 8px;font-size:12px;display:flex}.search-filter>svg,.search-filter>button{flex:none}.search-filter>button{border-radius:4px;place-items:center;width:22px;height:22px;display:grid}.search-filter>button:hover{color:var(--ink);background:var(--control-hover)}.search-filter>button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.command-section{font-size:var(--text-xs);color:var(--muted);padding:12px 12px 4px;font-weight:500;line-height:16px}.command-row{min-height:40px;font-size:var(--text-sm);cursor:default;border-radius:7px;align-items:center;gap:10px;padding:8px 12px;font-weight:500;line-height:20px;display:flex}.search-row>svg,.search-row>.folder-glyph{width:16px;height:16px;color:var(--muted);flex:none}.search-filter>.folder-glyph{color:var(--muted)}.command-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.search-meeting{cursor:default;border-radius:7px;align-items:center;gap:10px;min-height:48px;padding:8px 12px;display:flex}.search-metadata{max-width:35%;color:var(--muted);font-size:var(--text-xs);text-align:end;font-variant-numeric:tabular-nums;flex:none;line-height:18px}.search-metadata>span{display:block}.search-return{visibility:hidden;flex:none}.search-row[aria-selected=true] .search-return{visibility:visible}.search-key{min-width:20px;height:20px;font:var(--text-xs) var(--font-sans);white-space:nowrap;color:var(--muted);background:var(--control);border:1px solid #0000;border-radius:4px;flex:none;place-items:center;padding:0 4px;display:inline-grid}.search-footer{border-top:1px solid var(--line);min-height:44px;color:var(--muted);font-size:var(--text-xs);background:var(--card);flex:none;align-items:center;gap:14px;padding:10px 20px;display:flex}.search-footer>span{white-space:nowrap;align-items:center;gap:5px;display:flex}@media (width<=480px){.search-input-row,.search-filters{padding-inline:16px}.search-footer{flex-wrap:wrap;gap:8px 12px;padding-inline:16px}}.search-panel [data-testid=search-input]:focus-visible{outline:none}.app-modal{z-index:101;border:1px solid var(--line);background:var(--float);width:min(340px,100vw - 40px);max-height:calc(100vh - 40px);color:var(--ink);box-shadow:var(--shadow);text-align:start;border-radius:16px;outline:none;padding:0;position:fixed;top:50%;left:50%;overflow:auto;translate:-50% -50%}.app-modal-backdrop{z-index:100;background:var(--scrim);position:fixed;inset:0;pointer-events:auto!important}.dialog-motion{transform-origin:50%;transition:opacity var(--dur-surface) var(--ease-out),transform var(--dur-surface) var(--ease-soft);flex-direction:column;display:flex}.dialog-motion[data-starting-style]{opacity:0;transform:scale(.97)}@starting-style{.dialog-motion{opacity:0;transform:scale(.97)}}.dialog-motion[data-ending-style]{opacity:0;transition-duration:var(--dur-base);transition-timing-function:var(--ease-out);transform:scale(.98)}@media (prefers-reduced-motion:reduce){.dialog-motion,.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out)}.dialog-motion[data-starting-style],.dialog-motion[data-ending-style]{transform:none}@starting-style{.dialog-motion{transform:none}}}.app-modal[data-testid=delete-confirm]{border-radius:17px;width:min(294px,100vw - 40px)}.app-modal[data-testid=delete-confirm] .modal-copy{padding:21px 19px 20px}.app-modal[data-testid=delete-confirm] .modal-copy p{font-size:11px;line-height:17px}.app-modal[data-testid=delete-confirm] .modal-actions{padding:0 19px 17px}.app-modal[data-testid=delete-confirm] .modal-button{border-radius:8px;min-height:32px}.modal-copy{padding:22px 20px 18px}.modal-copy h2{letter-spacing:-.15px;overflow-wrap:anywhere;font-size:14px;font-weight:600;line-height:20px}.modal-copy p{color:var(--muted);margin-top:8px;font-size:12px;line-height:18px}.inline-error{border:1px solid var(--line);background:var(--float);color:var(--written);text-align:start;text-overflow:ellipsis;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;line-height:20px;display:flex}.inline-error>svg{color:var(--danger);flex:none;align-self:flex-start;margin-block-start:2px}.inline-error>span{overflow-wrap:anywhere;flex:1;min-width:0}.inline-error-action{color:var(--accent);text-underline-offset:3px;border-radius:4px;flex:none;padding:2px 3px;font-size:12px;font-weight:500;text-decoration:underline}.inline-error-action:hover{color:var(--ink);background:var(--control)}.inline-error-action:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.inline-error-in-dialog{background:0 0;border:0;border-radius:0;margin:0 19px 16px;padding:0;font-size:12px;line-height:18px}.modal-actions{flex-direction:column;gap:7px;padding:0 20px 20px;display:flex}.modal-button{background:var(--control);width:100%;min-height:33px;transition:background-color var(--dur-micro) ease;border:1px solid #0000;border-radius:7px;justify-content:center;align-items:center;padding:6px 12px;font-size:12px;font-weight:500;display:inline-flex}.modal-button:hover:not(:disabled){background:var(--control-hover)}.modal-button.danger{color:var(--danger-control-ink);background:var(--danger-soft)}.modal-button.danger:hover:not(:disabled){background:var(--danger-soft)}@supports (color:color-mix(in lab, red, red)){.modal-button.danger:hover:not(:disabled){background:color-mix(in srgb,var(--danger-soft) 87%,var(--danger))}}.modal-button.primary{background:var(--primary);color:#fff}.modal-button.primary:hover:not(:disabled){background:var(--primary-hover)}.modal-button:disabled{opacity:.55}.search-row[aria-selected=true]{background:var(--selected)}.search-mark{background:var(--accent-soft);color:var(--ink);border-radius:3px;padding:0 1px}@media (prefers-reduced-motion:reduce){.bar-btn{transition:none}}.window-bar{background:var(--chrome);border-bottom:1px solid var(--line)}button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,[role=button]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus-visible{border-radius:5px}input::selection{background:var(--accent-soft)}textarea::selection{background:var(--accent-soft)}.note-prose ::selection{background:var(--accent-soft)}.editor-menu{z-index:40}.editor-toolbar{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow);border-radius:10px;align-items:center;gap:2px;padding:4px;display:flex}.editor-toolbar button{width:30px;height:30px;color:var(--written);border-radius:6px;place-items:center;display:grid}.editor-toolbar button:hover{background:var(--control-hover);color:var(--ink)}.editor-toolbar button[aria-pressed=true]{background:var(--selected);color:var(--ink)}.editor-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.home-content{max-width:880px}.home-content>header{padding-bottom:2px}.calendar-schedule{background:var(--bg)}.calendar-schedule [data-testid=event]+[data-testid=event]{border-top:1px solid var(--line)}.calendar-schedule [data-testid=event]{min-height:76px}.past-day>ul{border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-row+.card-row{border-top:1px solid var(--line)}.document-main{background:var(--bg)}.document-body{padding-top:86px}.document-meta{padding-bottom:18px}.note-layout{min-height:0}.note-page-width{width:100%;max-width:860px;margin-inline:auto;padding-inline:clamp(20px,10cqw - 42px,48px)}.note-header{flex:none;padding-top:84px}.note-metadata{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.note-meta-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.note-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.note-recording-status{color:var(--muted);white-space:nowrap;align-items:center;gap:8px;padding-inline:10px;display:flex}.note-elapsed{font-variant-numeric:tabular-nums;min-width:36px;color:var(--muted);text-align:end;margin-inline:4px 8px;font-size:11px}.note-primary-tabs{border-bottom:1px solid var(--line);gap:24px;margin-top:22px;display:flex;position:relative}.note-primary-tabs [role=tab]{height:36px;color:var(--muted);border-bottom:2px solid #0000;align-items:center;gap:7px;padding-inline:1px;font-size:13px;font-weight:500;display:flex}.note-primary-tabs [role=tab][aria-selected=true],.note-primary-tabs [role=tab]:hover{color:var(--ink)}.note-primary-tabs[data-summary-arriving=true] #note-summary-tab{animation:summary-tab-arrive var(--dur-micro) var(--ease-out) both}@keyframes summary-tab-arrive{0%{opacity:0}}.note-reading-area{flex:1;min-height:0;display:flex;position:relative}.note-panels{contain:layout;flex:1;min-width:0;min-height:0;display:flex}:is(.note-panels,.ask-page)::view-transition-group(root){animation:none}:is(.note-panels,.ask-page)::view-transition-old(root){animation:none;display:none}:is(.note-panels,.ask-page)::view-transition-new(root){animation:note-panel-in var(--dur-micro) var(--ease-out) both;mix-blend-mode:normal}@keyframes note-panel-in{0%{opacity:0}}.note-tab-indicator{height:2px;width:var(--tab-width,0px);background:var(--primary);transform:translateX(var(--tab-x,0px));pointer-events:none;inset-inline-start:0;border-radius:1px;position:absolute;bottom:-1px}@media (prefers-reduced-motion:no-preference){.note-layout[data-tab-pointer=true] .note-tab-indicator{transition:transform var(--dur-base) var(--ease-out),width var(--dur-base) var(--ease-out)}}.note-content{flex:1;min-width:0;min-height:0}.main-window .note-notes-pane{scrollbar-gutter:stable both-edges;overflow-y:auto}.note-notes-pane[hidden]{display:none}.note-notes-body{padding-top:22px;padding-bottom:40px}.note-transcript-pane{contain:layout style;--transcript-inset:calc(max(0px,(100% - 860px)/2) + clamp(20px,calc(10cqw - 42px),48px));display:flex}.transcript-turn{contain:layout style}.note-footer{background:var(--bg);--note-footer-line:var(--line);flex:none}@supports (color:color-mix(in lab, red, red)){.note-footer{--note-footer-line:color-mix(in srgb,var(--line) 60%,var(--bg))}}.note-footer-bar{min-height:var(--workspace-footer-height);border-top:1px solid var(--note-footer-line);justify-content:space-between;align-items:center;gap:12px;padding:8px 24px;display:flex}.note-footer-bar:not(:first-child){margin-top:8px}@media (prefers-contrast:more){.note-footer{--note-footer-line:var(--line)}}.note-status{min-width:0}.note-footer-bar>.chat-trigger{flex-shrink:0}.chat-trigger kbd{color:var(--muted);margin-inline-start:8px;font-family:inherit;font-size:11px;font-weight:400}.note-footer>[data-testid=note-stop-unsaved]{max-width:min(760px,100% - 48px);margin-inline:auto}.note-record-hint{max-width:760px;color:var(--written);justify-content:center;align-items:flex-start;gap:7px;margin:8px auto 0;padding-inline:24px;font-size:12px;line-height:18px;display:flex}.note-record-hint>svg{margin-top:2px}.note-recording-group{flex-wrap:wrap;align-items:center;gap:8px;min-height:30px;display:flex}.note-recording-group[data-recording=true]{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);border-radius:6px;flex-wrap:nowrap;gap:0}.note-recording-group[data-recording=true] .note-elapsed{margin:0}.note-recording-group[data-recording=true] .note-record-action{border:0;border-inline-start:1px solid var(--line);min-width:0;height:28px;box-shadow:none;color:var(--muted);background:0 0;border-radius:0;flex:none;padding-inline:12px}.note-recording-group[data-recording=true] .note-pause-action{width:30px;padding:0}.note-recording-group[data-recording=true] .note-record-action:last-child{border-start-end-radius:6px;border-end-end-radius:6px}.note-recording-group[data-recording=true] .note-record-action:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.note-recording-group[data-recording=true] .note-record-action:active:not(:disabled){background:var(--control-pressed)}.note-recording-group[data-recording=true] .note-finish-action{background:var(--primary);color:#fff;min-width:68px;height:30px;margin-block:-1px;margin-inline-end:-1px}.note-recording-group[data-recording=true] .note-finish-action:hover:not(:disabled),.note-recording-group[data-recording=true] .note-finish-action:active:not(:disabled){background:var(--primary-hover);color:#fff}.note-recording-group[data-recording=true] .note-finish-action:focus-visible{outline-offset:-3px;outline-color:#fff}.note-finishing{border:1px solid var(--line);height:30px;color:var(--muted);border-radius:6px;align-items:center;padding-inline:10px;font-size:12px;display:flex}.note-header-actions .share-btn{height:30px;box-shadow:none;background:0 0}.workspace .note-record-action:focus-visible{outline-offset:-2px}.chat-trigger{border:1px solid var(--line);background:var(--float);height:30px;box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding-inline:10px;font-size:12px;font-weight:500;display:flex}.chat-trigger:hover,.chat-trigger[aria-expanded=true]{background:var(--control)}.chat-trigger:active{background:var(--control-pressed)}.chat-panel{z-index:70;inset-block:auto var(--chat-bottom,72px);width:420px;max-width:calc(100% - 32px);height:min(440px,var(--chat-height,440px),calc(100dvh - var(--chat-bottom,72px) - 68px));border:1px solid var(--line);background:var(--float);min-height:0;max-height:none;color:var(--ink);border-radius:12px;margin:0;padding:0;position:fixed;inset-inline:auto 24px;overflow:visible;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel[open]{flex-direction:column;display:flex}.chat-panel{box-shadow:none;background:0 0;border-color:#0000}.chat-morph-surface{pointer-events:none;border:1px solid var(--line);border-radius:inherit;background:var(--float);width:calc(100% + 2px);height:calc(100% + 2px);position:absolute;inset:-1px auto auto -1px;box-shadow:0 16px 48px #0000002e,0 4px 12px #00000014}.chat-panel-contents{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.chat-trigger[aria-expanded=true]{opacity:0}.note-resume-action{min-width:160px}[data-icon]{flex:none}[data-icon=Loader]{animation:1s linear infinite icon-spin}[data-icon] path{transform-box:fill-box;transform-origin:50%}@keyframes icon-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){[data-icon=Loader]{animation:none}}.chat-icon{width:28px;height:28px;color:var(--muted);border-radius:5px;flex-shrink:0;place-items:center;display:grid}.chat-icon:hover,.chat-icon[aria-expanded=true]{background:var(--control);color:var(--ink)}.chat-latest{z-index:1;border:1px solid var(--line);background:var(--float);width:30px;height:30px;color:var(--muted);box-shadow:var(--shadow-soft);bottom:8px;border-radius:50%;place-items:center;display:grid;position:absolute;inset-inline-start:calc(50% - 15px)}.chat-answer-actions{align-items:center;gap:8px;margin-top:6px;display:flex}.ask-turn .chat-answer-actions{opacity:0;transition:opacity var(--dur-base) ease,transform 0s linear var(--dur-base);transform:translateY(2px)}.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{opacity:1;transition:opacity var(--dur-surface) var(--ease-out) 60ms,transform var(--dur-surface) var(--ease-out) 60ms;transform:none}@starting-style{.ask-turn[data-show-copy] .chat-answer-actions{opacity:0;transform:translateY(2px)}}.ask-turn[data-show-copy] .chat-answer-actions{transition-delay:.15s}@media (prefers-reduced-motion:reduce){.ask-turn .chat-answer-actions,.ask-turn:is([data-show-copy],:hover,:focus-within) .chat-answer-actions{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}@media (hover:none){.ask-turn .chat-answer-actions{opacity:1}}.chat-answer-scope{min-width:0;color:var(--muted);white-space:pre;align-items:center;margin-inline-start:-5px;font-size:11px;line-height:16px;display:flex}.chat-answer-scope:before{content:"·";flex:none;margin-inline-end:8px}.chat-copy-action{min-height:28px;color:var(--muted);border-radius:5px;flex:none;align-items:center;gap:5px;margin-inline-start:-5px;padding:4px 5px;font-size:11px;display:inline-flex}.chat-copy-action:hover{background:var(--control);color:var(--ink)}.chat-progress{color:var(--muted);align-items:center;gap:9px;padding-block:5px;font-size:13px;line-height:20px;display:flex}.thinking-dots{width:18px;height:20px;color:var(--accent);flex:none}.chat-step{animation:.24s ease-out step-in}@keyframes step-in{0%{opacity:0}to{opacity:1}}.chat-step{background:linear-gradient(100deg,var(--muted) 35%,var(--ink) 50%,var(--muted) 65%) 0 0 / 250% 100%;color:#0000;-webkit-background-clip:text;background-clip:text;animation:.24s ease-out step-in,2.2s linear infinite step-shimmer}@keyframes step-shimmer{0%{background-position:100% 0}to{background-position:-150% 0}}@media (prefers-reduced-motion:reduce){.chat-step{color:inherit;background:0 0;animation:none}}.thinking-dots-static{justify-content:space-between;align-items:center;display:flex}.thinking-dots-static i{opacity:.65;background:currentColor;border-radius:50%;width:4px;height:4px}.thinking-dots-static i:nth-child(2){opacity:.81}.thinking-dots-static i:nth-child(3){opacity:.97}.chat-panel .chat-history{overscroll-behavior:contain;flex:1;min-width:0;min-height:0;padding:0 16px 20px;overflow-y:auto}.chat-panel .chat-composer{flex-shrink:0}.chat-error{color:var(--danger);margin:0 0 10px;font-size:12px;line-height:18px}@media (width<=999px){.chat-panel{inset-inline-end:16px}.chat-panel::backdrop{background:#00000029}}@media (width<=999px) and (height<=420px){.chat-panel{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);inset-block:16px}}.note-record-action{border:1px solid var(--line);background:var(--float);box-shadow:var(--shadow-soft);color:var(--ink);white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:6px;padding-inline:12px;font-size:12px;font-weight:500;display:flex}.note-record-action:hover:not(:disabled){background:var(--control-hover)}.note-record-action:active:not(:disabled){background:var(--control-pressed);box-shadow:none}.note-record-action:disabled{opacity:.45}.note-record-action.primary{background:var(--primary);border-color:var(--primary);color:#fff}.note-record-action.primary:hover:not(:disabled){background:var(--primary-hover)}@media (prefers-reduced-motion:reduce){.note-record-action{transition:none}}[data-testid=transcript-panel]{border-radius:12px}.note-primary-tools{flex:1;align-self:flex-start;align-items:center;min-width:32px;height:34px;margin-inline-start:auto;display:flex;container-type:inline-size}.note-primary-tools .transcript-toolbar{border:0;flex-wrap:nowrap;justify-content:flex-end;width:100%;padding:0}.note-primary-tools .transcript-find-clip{width:clamp(240px,100cqw,376px)}.note-primary-tools .transcript-actions{order:-1;margin-inline-start:0}.transcript-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 12px;display:flex}.note-primary-tabs{z-index:2}.transcript-find{z-index:2;clip-path:inset(-4px -4px -4px -600px);width:32px;height:32px;position:relative}.transcript-find-trigger{opacity:1;width:32px;height:32px;transition:opacity var(--dur-micro) var(--ease-out) var(--dur-micro);justify-content:center;padding:0}.transcript-find[data-open=true] .transcript-find-trigger{opacity:0;pointer-events:none;transition-delay:0s}.transcript-find-clip{opacity:0;pointer-events:none;width:min(376px,100vw - 48px);height:32px;transition:transform var(--dur-micro) var(--ease-out),opacity var(--dur-micro) var(--ease-out);inset-inline-end:0;border-radius:6px;position:absolute;top:0;overflow:hidden;transform:translate(calc(100% - 32px))}.transcript-search-field{background:var(--control);height:32px;transition:transform var(--dur-micro) var(--ease-out);border-radius:6px;align-items:center;gap:8px;padding-inline:10px 4px;display:flex;transform:translate(calc(32px - 100%))}.transcript-find[data-open=true] .transcript-find-clip{opacity:1;pointer-events:auto;transition-duration:var(--dur-base);transform:none}.transcript-find[data-open=true] .transcript-search-field{transition-duration:var(--dur-base);transform:none}.transcript-search-field:focus-within{box-shadow:inset 0 0 0 1px var(--ink)}@supports (color:color-mix(in lab, red, red)){.transcript-search-field:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 22%,transparent)}}[data-testid=transcript-search]{width:0;min-width:0;height:100%;color:var(--ink);text-align:start;background:0 0;border:0;flex:1;padding:0;font-size:13px;font-weight:400;line-height:20px}[data-testid=transcript-search]::placeholder{color:var(--muted)}[data-testid=transcript-search]:focus-visible{box-shadow:none;outline:none}.transcript-find-controls{flex:none;align-items:center;gap:8px;display:flex}.transcript-find-results{opacity:0;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out);flex:none;align-items:center;gap:8px;display:flex}.transcript-find-results[data-visible=true]{opacity:1;pointer-events:auto}.transcript-find-count{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:end;flex:none;font-size:11px;line-height:20px;display:grid}.transcript-find-count>span{grid-area:1/1}.transcript-find-reserve{visibility:hidden}.transcript-find-arrows{flex:none;align-items:center;gap:2px;display:flex}.transcript-find-controls .ghost-btn{flex:none;place-items:center;width:24px;height:24px;padding:0;display:grid}.transcript-find-controls .ghost-btn:disabled{opacity:.35;color:var(--muted);cursor:default;background:0 0}.transcript-find-controls svg{display:block}.transcript-find-close{opacity:0;transition:opacity var(--dur-micro) var(--ease-out)}.transcript-find[data-open=true] .transcript-find-close{opacity:1;transition-delay:var(--dur-micro)}::highlight(transcript-find){background:var(--accent-soft);color:var(--ink)}::highlight(transcript-find-current){background:var(--primary);color:#fff}.transcript-find:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:inset(-4px -600px -4px -4px)}.transcript-find:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .transcript-find-clip{transform:translate(calc(32px - 100%))}.transcript-find:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .transcript-search-field{transform:translate(calc(100% - 32px))}.transcript-find:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))[data-open=true] :is(.transcript-find-clip,.transcript-search-field){transform:none}.note-primary-tools [data-find-below=true] .transcript-find{clip-path:inset(-4px -4px -48px -600px)}.note-primary-tools [data-find-below=true] .transcript-find:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:inset(-4px -600px -48px -4px)}.note-primary-tools [data-find-below=true] .transcript-find-clip{width:min(376px,100vw - 60px);top:40px}@media (prefers-reduced-motion:reduce){.transcript-find[data-open] :is(.transcript-find-trigger,.transcript-find-clip,.transcript-search-field,.transcript-find-results,.transcript-find-close){transition:none}}.transcript-actions{align-items:center;gap:4px;margin-inline-start:auto;display:flex}@media (width<=600px){.window-wordmark{display:none}.note-header{padding-top:76px}.note-header .note-title-type{font-size:23px}.note-meta-row{gap:8px;margin-top:10px}.note-header-actions{gap:8px}.note-primary-tabs{flex-wrap:wrap;gap:16px;margin-top:12px}.note-primary-tools{max-width:100%}}@media (height<=420px){.note-layout{overflow-y:auto}.note-reading-area{flex:none;height:180px;min-height:180px}[data-testid=transcript-panel]{height:36vh}}[data-testid=transcript-panel].transcript-inline{width:100%;height:auto;min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex-direction:column;flex:1;display:flex;position:relative}.transcript-inline>.transcript-toolbar{border:0;padding-block:4px 8px;padding-inline:0}.transcript-inline [data-testid=transcript]{padding-inline:var(--transcript-inset);padding-top:22px}[data-testid=transcript-panel] [data-testid=transcript]{padding-bottom:max(16px,var(--playback-inset));scroll-padding-bottom:var(--playback-inset)}.transcript-player-dock{z-index:1;clip-path:inset(-16px -16px -12px);inset-inline:max(16px,50% - 206px);position:absolute;bottom:12px}.transcript-player{border:1px solid var(--line);background:var(--float);border-radius:22px;padding:5px 8px}@supports (color:color-mix(in lab, red, red)){.transcript-player{background:color-mix(in srgb,var(--float) 96%,transparent)}}.transcript-player{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);opacity:1;transition:opacity var(--dur-micro) var(--ease-out),transform var(--dur-player-return) var(--ease-player-return);transform:translateY(0);box-shadow:0 2px 8px #0000000d}.transcript-player-dock[data-hidden=true] .transcript-player{opacity:0;pointer-events:none;transition:transform var(--dur-player-duck) var(--ease-player-duck),opacity calc(var(--dur-player-duck)/4) linear calc(var(--dur-player-duck)*.75);transform:translateY(calc(100% + 12px))}@media (prefers-reduced-motion:reduce){.transcript-player,.transcript-player-dock[data-hidden=true] .transcript-player{transition:opacity var(--dur-micro) var(--ease-out);transform:none}}[data-testid=transcript-panel] [data-testid=transcript-follow]{bottom:calc(var(--playback-inset) + 8px)}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.transcript-player{background:var(--float);-webkit-backdrop-filter:none;backdrop-filter:none}}html:not(.widget) .bg-accent{background-color:var(--primary)}html:not(.widget) button:focus-visible,html:not(.widget) input:focus-visible{outline-color:var(--focus)}.share-control{background:var(--control);height:28px;color:var(--ink);border-radius:6px;align-items:center;font-size:12px;font-weight:500;display:flex}.share-control .share-btn{border-radius:5px;height:28px}.share-control .share-btn+.share-btn{border-color:var(--line)}@media (prefers-reduced-motion:reduce){.modal-button,.chat-page .chat-box,.chat-page .chat-send{transition:none}}.search-footer>button{border-radius:4px;align-items:center;gap:6px;margin-inline-start:auto;display:flex}.search-footer>button:hover{color:var(--ink)}.app-modal[data-testid=shortcuts-dialog]{flex-direction:column;width:min(460px,100vw - 40px);height:min(580px,80vh);display:flex;overflow:hidden}.app-modal[data-testid=shortcuts-dialog] .modal-copy{flex:none;padding:22px 24px 18px}.shortcuts-close{inset-inline-end:16px;position:absolute;top:18px}.shortcuts-search{border:1px solid var(--line);color:var(--muted);border-radius:7px;align-items:center;gap:10px;margin:0 24px 12px;padding:9px 11px;display:flex}.shortcuts-search:focus-within{border-color:var(--accent)}.shortcuts-search input{width:100%;min-width:0;color:var(--ink);background:0 0;outline:none;font-size:13px}.shortcuts-list{flex:1;min-height:0;padding:0 24px 22px;overflow-y:auto}.shortcuts-list section+section{margin-top:20px}.shortcuts-list h3{color:var(--muted);padding:10px 0 7px;font-size:11px;font-weight:500}.shortcuts-list dl>div{justify-content:space-between;align-items:center;gap:18px;min-height:34px;font-size:13px;display:flex}.shortcuts-list kbd{font:12px var(--font-sans);white-space:nowrap;color:var(--muted)}.shortcuts-empty{color:var(--muted);text-align:center;padding-top:24px;font-size:13px}.note-transcript-pane[hidden]{display:none!important}.page-loading{pointer-events:none}.loading-prose{gap:12px;padding-block:6px;display:grid}.note-title-type{letter-spacing:-.03em;font-size:28px;font-weight:600;line-height:1.25}.loading-note-chip{background:var(--control);border-radius:7px;max-width:30%;height:32px}.loading-transcript-turns{gap:12px;display:grid}.loading-folder-icon{background:var(--control);border-radius:4px;flex:none;width:16px;height:16px}.loading-checkbox{background:var(--control);border-radius:3px;width:14px;height:14px}.loading-note-frame,.loading-note-frame>.loading-result{height:100%}.people-card{max-height:var(--people-available-height,calc(100dvh - 200px));overscroll-behavior:contain;flex-direction:column;display:flex;overflow-y:auto}.people-card>*{flex-shrink:0}.people-card .people-list{overscroll-behavior:contain;flex-shrink:1;min-height:40px}.grouped-people{max-height:386px}.grouped-people section+section{margin-top:6px}.company-heading{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:8px 10px 3px;font-size:11px;font-weight:500;line-height:16px;overflow:hidden}.grouped-people .person-row{gap:9px}.person-initials{background:var(--control);width:28px;height:28px;color:var(--muted);border-radius:50%;flex:none;place-items:center;font-size:10px;font-weight:500;display:grid}:is(.line-who,.widget-preview-speaker)[data-folder-color]{color:var(--folder-ink)}.note-date-card{--note-date-ms:var(--dur-base);--note-date-ease:var(--ease-out)}.note-date-swap{position:relative;overflow:hidden}.note-date-retiring{pointer-events:none;position:absolute;inset:0 0 auto}.note-date-retiring,.note-date-retiring *{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){.note-date-card{--note-date-ms:0s}}.note-date-card .agenda-inspector-heading h3{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.note-date-linked{flex-direction:column;display:flex}.note-date-picker-space{padding-top:0}.note-date-linked .note-date-picker-motion{margin-inline:-8px}.note-date-linked .note-date-picker-motion[data-open=true]{margin-top:12px}.note-date-linked:last-child .note-date-picker-motion[data-open=true]{margin-bottom:-8px}.note-date-motion,.note-date-motion[data-open=true]{transition:grid-template-rows var(--note-date-ms) var(--note-date-ease),margin-top var(--note-date-ms) var(--note-date-ease),margin-bottom var(--note-date-ms) var(--note-date-ease)}.note-date-motion>*{transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s var(--note-date-ms)}.note-date-motion[data-open=true]>*{transition:opacity var(--note-date-ms) var(--note-date-ease),visibility 0s}.note-date-details-motion[data-open=false]{margin-top:-16px}.note-date-linked .note-date-link{gap:6px}.note-date-details{flex-direction:column;gap:16px;display:flex}.note-date-event-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.note-date-event-toggle{text-align:start;border-radius:6px;align-items:flex-start;gap:10px;width:calc(100% + 16px);margin:-8px;padding:8px;display:flex}.note-date-color{border-radius:3px;flex:none;width:10px;height:10px;margin-top:5px}.note-date-actions{min-height:28px}.note-date-actions .note-date-access{flex-wrap:nowrap}.note-date-actions p{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.note-date-reveal{opacity:1;transition:opacity var(--dur-micro) var(--ease-out)}.note-date-reveal[data-ready=false]{opacity:0}@media (prefers-reduced-motion:reduce){.note-date-reveal{transition:none}}.note-date-identity{flex:1;min-width:0}.note-date-identity>strong,.note-date-time,.note-date-calendar{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-identity>strong{font-size:14px;font-weight:600;line-height:21px}.note-date-time{color:var(--written);margin-top:3px;font-size:12px;line-height:18px}.note-date-calendar{min-height:16px;color:var(--muted);margin-top:3px;font-size:11px;line-height:16px}.note-date-event-toggle>svg{color:var(--muted);transition:transform var(--note-date-ms) var(--note-date-ease);flex:none;margin-top:3px}.note-date-linked :is(.note-date-event-toggle,.note-date-link):hover:not(:disabled){background:var(--row-hover)}.note-date-linked :is(.note-date-event-toggle,.note-date-link):active:not(:disabled){background:var(--control-pressed)}.note-date-linked :is(.note-date-event-toggle,.note-date-link):focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@media (prefers-reduced-motion:reduce){.note-date-motion,.note-date-motion[data-open=true],.note-date-motion>*,.note-date-motion[data-open=true]>*,.note-date-event-toggle>svg{transition:none}}.note-date-link{text-align:start;width:100%;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:8px;font-size:12px;display:flex}.note-date-link:hover,.note-date-event:hover{background:var(--card);color:var(--ink)}.note-date-card .note-date-picker button:focus-visible{outline-offset:-2px}.note-date-link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.note-date-link>svg{flex:none}.note-date-link small{text-overflow:ellipsis;margin-top:3px;font-size:11px;display:block;overflow:hidden}.note-date-events{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.note-date-events>p{color:var(--muted);padding:12px 8px;font-size:12px}.note-date-event{text-align:start;border-radius:6px;align-items:center;gap:8px;width:100%;padding:8px;display:flex}.note-date-event>span{flex:1;min-width:0}.note-date-event strong,.note-date-event small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.note-date-event strong{font-size:13px;font-weight:500}.note-date-event small{color:var(--muted);margin-top:3px;font-size:11px}.loading-content{min-width:0;position:relative}.loading-placeholder{pointer-events:none}.loading-content[data-loading-phase=waiting]>.loading-placeholder,.loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>.loading-result{visibility:hidden}.loading-content:has(>.loading-result)>.loading-placeholder{position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-placeholder{animation:loading-out var(--dur-micro) var(--ease-out) both;position:absolute;inset:0}.loading-content[data-loading-phase=revealing]>.loading-result{animation:loading-in var(--dur-micro) var(--ease-out) both}.loading-mask{pointer-events:none;-webkit-user-select:none;user-select:none}.loading-bar{background:var(--control);vertical-align:middle;border-radius:4px;max-width:100%;height:.65em;min-height:7px;display:inline-block!important}.loading-mask .meeting-meta .loading-bar{align-self:flex-end}.loading-mask .meeting-folder-pill{background:var(--control);border-color:#0000}.loading-mask .meeting-folder-dot{visibility:hidden}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label){position:relative;color:#0000!important}.loading-mask :is(.settings-label,.settings-description,.settings-permission-label):after{content:"";background:var(--control);inset-inline-start:0;border-radius:4px;width:min(75%,260px);height:10px;position:absolute;top:5px}.loading-mask .settings-description:after{width:min(85%,300px);height:8px;top:6px}.loading-mask :is(.settings-toggle,.settings-select,.settings-name-field,.settings-action,.settings-spoken,.settings-jargon-field){color:#0000!important;background:var(--control)!important;box-shadow:none!important;border-color:#0000!important}.loading-mask :is(.settings-toggle,.settings-action,.settings-spoken,.settings-jargon-field)>*,.loading-mask .settings-select-wrap>svg,.loading-mask .settings-permission-icon>*,.loading-mask .settings-permission-status{visibility:hidden}.loading-mask .settings-select{pointer-events:none}@keyframes loading-in{0%{opacity:0}to{opacity:1}}@keyframes loading-out{0%{opacity:1}to{opacity:0}}.main-window :is(.settings-scroll,.native-library){scrollbar-gutter:stable}.transcript-loading-content:is([data-loading-phase=waiting],[data-loading-phase=skeleton])>li:not(.loading-placeholder){visibility:hidden}.transcript-loading-content[data-loading-phase=revealing]>li:not(.loading-placeholder){animation:loading-in var(--dur-micro) var(--ease-out) both}.transcript-loading-content[data-loaded=true]>.loading-placeholder{position:absolute;inset:8px 16px auto}.loading-mask .ask-field{position:relative}.loading-mask .ask-field:after{content:"";background:var(--control);border-radius:4px;width:160px;height:12px;position:absolute;inset:16px auto auto 12px}.loading-mask .ask-field textarea,.loading-mask .ask-field textarea::placeholder{color:#0000}.loading-mask .ask-toolbar{visibility:hidden}.notes-download-status{flex:0 auto;min-width:50px;max-width:45%;display:flex}.notes-download-trigger{min-width:0;height:30px;color:var(--muted);font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:400;display:flex}.notes-download-trigger:is(:hover,[aria-expanded=true]){color:var(--ink);background:var(--row-hover);border-color:var(--line)}.notes-download-trigger>svg{opacity:.65;transition:transform var(--dur-base) var(--ease-out)}.notes-download-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}.notes-download-dot{background:var(--accent);border-radius:50%;flex:none;width:5px;height:5px}.notes-download-dot[data-failed=true]{background:var(--danger)}.notes-download-dot[data-failed=true][data-upgrade=true]{background:var(--muted)}.notes-download-positioner{z-index:60}.notes-download-menu{border:1px solid var(--line);background:var(--float);width:408px;max-width:calc(100vw - 24px);color:var(--ink);box-shadow:var(--shadow);border-radius:10px;outline:none;padding:14px 16px;font-size:12px;line-height:18px}.notes-download-menu p{text-wrap:pretty;overflow-wrap:anywhere}.notes-download-readout{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.notes-download-readout strong{font-weight:550}.notes-download-readout>span{color:var(--muted);font-size:11px}.notes-download-progress{background:var(--line);border-radius:4px;height:3px;margin:9px 0 7px;overflow:hidden}.notes-download-progress>span{border-radius:inherit;background:var(--muted);height:100%;display:block}.notes-download-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;display:flex}.notes-download-support{font-size:11px}.notes-download-menu[data-failed=true] .notes-download-support{flex-basis:100%}.notes-download-retry,.notes-download-skip{transition:transform var(--dur-micro) var(--ease-out)}.notes-download-actions{align-items:center;gap:12px;display:flex}.notes-download-actions button{border:1px solid var(--line);background:var(--control);color:var(--ink);white-space:nowrap;border-radius:5px;flex:none;padding:4px 10px;font-size:12px;line-height:18px}.notes-download-actions button:hover{background:var(--control-hover)}.notes-download-actions button:active:not(:disabled){transform:scale(.97)}.notes-download-actions button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.notes-download-actions button:disabled{opacity:.5}.notes-download-actions .notes-download-skip{color:var(--muted);background:0 0;border:0;padding:4px 0;font-size:11px}.notes-download-actions .notes-download-skip:hover{color:var(--ink);background:0 0}.notes-download-actions .notes-download-skip:active{transform:none}.notes-download-menu:not([data-failed=true]) .notes-download-footer{flex-wrap:nowrap}.notes-download-menu:not([data-failed=true]) .notes-download-support{flex:auto;min-width:0}.notes-download-menu [role=alert]{margin-top:10px}@keyframes motion-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.widget-btn:active,.player-btn:active,.notes-download-actions button:active:not(:disabled){transform:none}.player-btn{transition:opacity var(--dur-micro) var(--ease-out)}.scrubber::-webkit-slider-thumb{transition:none;transform:none}.scrubber:hover::-webkit-slider-thumb{transition:none;transform:none}.scrubber:active::-webkit-slider-thumb{transition:none;transform:none}.notes-download-trigger>svg{transition:none}.widget-preview[aria-hidden=true]{transition-delay:var(--dur-micro)}}.search-panel.dialog-motion,.search-panel.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out),transform var(--dur-micro) var(--ease-out)}.search-panel.dialog-motion[data-starting-style],.search-panel.dialog-motion[data-ending-style]{transform:scale(.99)}@starting-style{.search-panel.dialog-motion{transform:scale(.99)}}@media (prefers-reduced-motion:reduce){.search-panel.dialog-motion,.search-panel.dialog-motion[data-ending-style]{transition:opacity var(--dur-micro) var(--ease-out)}.search-panel.dialog-motion[data-starting-style],.search-panel.dialog-motion[data-ending-style]{transform:none}@starting-style{.search-panel.dialog-motion{transform:none}}}.summary-rewrite{position:relative}.summary-rewrite[data-rewriting=true]>.summary-result{opacity:.45;-webkit-user-select:none;user-select:none;pointer-events:none}.summary-rewrite[data-handoff=true]>.summary-result{animation:summary-rewrite-out var(--dur-micro) var(--ease-out) both;pointer-events:none}.summary-rewrite[data-resetting=true]{visibility:hidden}@keyframes summary-rewrite-out{0%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:no-preference){.summary-rewrite:is([data-rewriting=true],[data-handoff=true])>.summary-result{opacity:1}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{background:linear-gradient(100deg,var(--written) 38%,var(--ink) 50%,var(--written) 62%) 0 0 / 250% 100%}@supports (color:color-mix(in lab, red, red)){.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{background:linear-gradient(100deg,color-mix(in srgb,var(--written) 45%,transparent) 38%,color-mix(in srgb,var(--ink) 90%,transparent) 50%,color-mix(in srgb,var(--written) 45%,transparent) 62%) 0 0 / 250% 100%}}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose{color:#0000;-webkit-background-clip:text;background-clip:text;animation:2.8s linear infinite step-shimmer}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose :is(h1,h2,h3,p,li,strong,a,em){color:#0000}.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose li::marker{color:var(--ink)}@supports (color:color-mix(in lab, red, red)){.summary-rewrite:is([data-rewriting=true],[data-handoff=true]) .note-prose li::marker{color:color-mix(in srgb,var(--ink) 31.5%,transparent)}}}.summary-stop-icon{place-items:center;width:14px;height:14px;display:inline-grid}.summary-stop-icon>*{transition:opacity var(--dur-base) var(--ease-out);grid-area:1/1}.summary-stop-square{opacity:0;background:currentColor;border-radius:2px;width:10px;height:10px}.note-resume-action[data-processing=true]{color:var(--muted);cursor:pointer}.note-resume-action[data-processing=true]:hover{background:var(--float)}.note-resume-action:is(:hover,:focus-visible) .summary-stop-icon>svg{opacity:0}.note-resume-action:is(:hover,:focus-visible) .summary-stop-square{opacity:1}.summary-stopped{color:var(--muted);flex-direction:column;align-items:flex-start;gap:8px;font-size:13px;display:flex}@media (prefers-reduced-motion:reduce){.summary-stop-icon>*{transition:none}}.renderer-recovery{background:var(--bg);height:100%;color:var(--ink);place-items:center;padding:72px 24px 24px;display:grid;position:relative}.renderer-recovery-titlebar{height:52px;position:absolute;inset:0 0 auto}.renderer-recovery-content{text-align:center;flex-direction:column;align-items:center;gap:16px;max-width:360px;font-size:14px;display:flex}.renderer-recovery-content .modal-button{width:auto;min-width:80px}.update-ready-status{max-width:35%}.update-ready-menu{width:max-content;min-width:286px;max-width:calc(100vw - 24px)}.update-ready-menu h2{font-size:12px;font-weight:550;line-height:18px}.update-ready-menu .update-ready-description{color:var(--muted);white-space:nowrap;text-wrap:nowrap;text-overflow:ellipsis;margin:6px 0 15px;font-size:11px;overflow:hidden}.update-ready-actions{justify-content:flex-end;align-items:center;gap:14px;display:flex}.update-ready-later{color:var(--muted);background:0 0;border:0;padding:4px 0;font-size:11px}.update-ready-later:hover{color:var(--ink);background:0 0}.update-ready-later:active{transform:none}.update-ready-later:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.update-ready-menu [role=alert]{max-width:320px;color:var(--muted);font-size:11px}:root[data-marketing-theme=dark]{--bg:#18191d;--card:#202126;--ink:#eeeff4;--muted:#9a9ba9;--line:#32333d;--accent:#af8bff;--accent-ink:#241637;--accent-soft:#35284f;--status-live:#aed4b5;--danger:#f28798;--danger-ink:#32121b;--float:#24252c;--chrome:#1d1e23;--shadow:0 18px 48px #0006, 0 2px 8px #0003;--shadow-soft:0 1px 3px #0003;--written:#b8b9c4;--heading:#e4e5ec;--scrim:#00000073;--pill:#25232e;--pill-ink:#faf9ff;--pill-accent:#ccb6ff}:root[data-marketing-theme=dark]:not(.widget){--bg:#1b1b1d;--chrome:#242425;--card:#202021;--float:#29292b;--ink:#e7e6eb;--muted:#a7a4ad;--heading:#e7e6eb;--written:#c6c3cc;--line:#343436;--accent:#b780ff;--accent-ink:#fff;--accent-soft:#2c164a;--playback-bg:#7040af;--playback-ink:#fff;--primary:#6f00ff;--primary-hover:#7d1aff;--control:#333335;--control-hover:#3b3b3e;--control-pressed:#434347;--selected:#3b393f;--focus:#c599ff;--danger:#f098a5;--danger-ink:#32121b;--danger-soft:#59343c;--danger-control-ink:#ffd6dc;--scrim:#0006;--shadow:0 18px 48px #00000040, 0 2px 8px #00000026;--shadow-soft:0 1px 2px #00000014}:root[data-marketing-theme=dark] input::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] textarea::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .note-prose ::selection{color:#fff;background:#8055b8}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}.workspace{isolation:isolate;--sidebar-inset:10px;--nav-inset:11px;--workspace-footer-height:52px;--chrome-glass:color-mix(in srgb,var(--chrome) 85%,transparent);--sidebar-field:#fafafb;--sidebar-field-edge:#e8e8eb;--sidebar-selected:#e7e1ef;--reading-surface:linear-gradient(to bottom,transparent 52px,var(--bg) 52px);background:var(--chrome-glass);height:100%;display:flex;position:relative;overflow:hidden}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.workspace{--chrome-glass:var(--chrome)}}:root:not([data-chrome=overlay]) .workspace{background:linear-gradient(var(--chrome) 0 52px,transparent 52px),var(--chrome-glass)}.workspace-window-bar{z-index:55;border-bottom:1px solid var(--line);background:0 0;width:208px;min-width:124px;height:52px;position:absolute;top:0;left:0}.workspace-drag-region{pointer-events:none;width:100vw;height:100%;position:absolute;top:0;left:0}.sidebar-collapsed .workspace-window-bar{border-bottom:1px solid var(--line);width:124px}.workspace-sidebar-toggle{-webkit-app-region:no-drag;position:absolute;top:13px;left:88px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-window-bar{width:124px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{left:132px;right:auto}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar{padding-left:124px;padding-right:24px;left:0;right:0}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-note=true]{padding-left:185px}.workspace [hidden]{display:none!important}.workspace-sidebar{z-index:2;background:0 0;border-inline-end:1px solid #0000;flex-direction:column;display:flex;position:absolute;inset-block:0;inset-inline-start:0}.workspace-sidebar:after{content:"";background:var(--line);pointer-events:none;width:1px;position:absolute;inset-block:52px 0;inset-inline-end:-1px}.workspace-sidebar,.workspace-sidebar-gap{width:208px}.sidebar-collapsed :is(.workspace-sidebar,.workspace-sidebar-gap){width:56px}.workspace-sidebar-gap{flex:none}.workspace-sidebar-inner{flex-direction:column;height:100%;min-height:0;display:flex}.workspace-sidebar .workspace-search>svg{flex:none}.workspace-sidebar .workspace-nav>span:not(.folder-glyph),.workspace-sidebar .workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label{transition:opacity 90ms}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-nav>small,.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd,.sidebar-collapsed .workspace-folder-label{opacity:0;pointer-events:none}.sidebar-collapsed .workspace-nav{gap:0;padding-inline:10px}.sidebar-collapsed .workspace-nav>span:not(.folder-glyph),.sidebar-collapsed .workspace-search>span,.sidebar-collapsed .workspace-search>kbd{flex:none;width:0}.sidebar-collapsed .workspace-search{gap:0;padding-inline:9px}.sidebar-collapsed .workspace-folder-more{display:none}.sidebar-collapsed .workspace-brand{padding-inline:17px}.workspace-wordmark{direction:ltr;flex:none;width:90px;display:flex;overflow:hidden}.sidebar-collapsed .workspace-wordmark{width:22px}.workspace[data-sidebar-motion=true] .workspace-wordmark{transition:width .2s cubic-bezier(.22,1,.36,1)}.workspace[data-sidebar-motion=true] .workspace-brand{transition:padding-inline .2s cubic-bezier(.22,1,.36,1)}.workspace-folder-label{white-space:nowrap;height:16px;overflow:hidden}.workspace[data-sidebar-motion=true] .workspace-folder-label{transition:height .2s cubic-bezier(.22,1,.36,1),margin .2s cubic-bezier(.22,1,.36,1),opacity .12s}.sidebar-collapsed .workspace-folder-label{height:0;margin-block:18px}.workspace-brand{gap:0}.workspace[data-sidebar-motion=false] :is(.workspace-nav>span,.workspace-nav>small,.workspace-search>span,.workspace-search>kbd,.workspace-folder-label,.workspace-wordmark,.workspace-brand){transition:none}@media (prefers-reduced-motion:reduce){.workspace-sidebar :is(span,small,kbd),.workspace-folder-label,.workspace-toolbar,.workspace-brand{filter:none!important;transition:none!important}}.sidebar-titlebar{flex:none;justify-content:flex-end;align-items:center;height:52px;padding:0 16px;display:flex}.workspace-sidebar-body{padding:16px var(--sidebar-inset) 5px;flex:1;overflow:hidden auto}.workspace-search{border:1px solid var(--sidebar-field-edge);background:var(--sidebar-field);width:100%;height:34px;box-shadow:none;color:var(--ink);border-radius:6px;align-items:center;gap:10px;margin-bottom:17px;padding:0 10px;font-size:13px;font-weight:500;display:flex}.workspace-search>svg{width:16px;height:16px;color:var(--muted)}.workspace-search kbd{font:10px var(--font-sans);color:var(--muted);margin-inline-start:auto}.workspace-search:hover{background:color-mix(in srgb,var(--sidebar-field) 97%,var(--ink))}.workspace-nav{width:100%;height:35px;padding:0 var(--nav-inset);text-align:start;border-radius:6px;align-items:center;gap:10px;font-size:13px;font-weight:500;display:flex;position:relative}.workspace-nav>svg{color:var(--muted);flex:none}.workspace-nav>span:not(.folder-glyph){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-nav small{color:var(--muted);margin-inline-start:auto;font-size:9px;font-weight:400;line-height:17px}.workspace-nav:hover,.workspace-icon:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}.workspace-nav[aria-current=page]{background:var(--sidebar-selected);color:var(--ink)}.workspace-nav[aria-current=page]:before{content:none}.workspace-nav[aria-current=page]>svg{color:var(--written)}.workspace-folder-label{margin:30px var(--nav-inset) 8px;color:var(--muted);font-size:11px}.workspace-folder-item,.workspace-folder-list{position:relative}.workspace:not(.sidebar-collapsed) .workspace-folder-item>.workspace-nav{touch-action:none;padding-inline-end:36px}.workspace-folder-item[data-moving=true]{z-index:2;background:var(--float);border-radius:6px;box-shadow:0 2px 8px #0000001a}.workspace-folder-item[data-moving=true]>.workspace-nav{cursor:grabbing}.workspace-folder-item[data-moving=true] .workspace-folder-more{visibility:hidden}.workspace-folder-item [role=menuitem]:disabled{opacity:.4}.workspace-folder-item>.workspace-nav[data-drop=true]{background:var(--accent-soft);color:var(--ink)}.workspace-folder-more{inset-inline-end:5px;opacity:0;width:27px;height:27px;position:absolute;top:4px}.workspace-folder-item:hover .workspace-folder-more,.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]{opacity:1}.workspace-folder-item:hover small{visibility:hidden}.workspace-folder-item:has(.workspace-folder-more:focus-visible,.workspace-folder-more[aria-expanded=true]) small{visibility:hidden}.workspace-folder-item small{position:absolute;inset-inline-end:var(--nav-inset)}.workspace-folder-new,.workspace-folder-new>svg{color:var(--muted)}.workspace-folder-new:hover{color:var(--ink)}.native-folder{grid-template-columns:minmax(0,1fr);height:100%;min-height:0;padding-top:52px;display:grid}.native-folder .native-library>h1 input{font:inherit;letter-spacing:inherit}.workspace-sidebar-footer{padding:9px var(--sidebar-inset) 0}.workspace-brand{min-height:var(--workspace-footer-height);border-top:1px solid var(--line);margin-top:9px;margin-inline:calc(-1 * var(--sidebar-inset));padding:0 calc(var(--sidebar-inset) + var(--nav-inset));justify-content:flex-start;align-items:center;display:flex}.workspace-content{z-index:1;contain:layout;background:var(--reading-surface);flex:1;min-width:0;height:100%;position:relative;container-type:inline-size}.workspace-content>.bg-bg,.workspace-content .document-main{background:0 0}.document-body{padding-inline:clamp(20px,10cqw - 42px,48px)}.workspace-toolbar{inset-inline:0;z-index:50;border-bottom:1px solid var(--line);background:0 0;align-items:center;height:52px;padding:0 24px;display:flex;position:absolute;top:0}.workspace-toolbar[data-note=true]{padding-inline-end:185px}.note-topbar{top:10.5px}.note-topbar>div>button{width:30px;height:30px}.workspace-breadcrumb{min-width:0;color:var(--muted);white-space:nowrap;align-items:center;gap:9px;font-size:13px;display:flex}.workspace-breadcrumb>svg{flex:none}.workspace-breadcrumb>[aria-current]{color:var(--ink);text-overflow:ellipsis;font-weight:500;overflow:hidden}.workspace-history{flex:none;gap:2px;display:flex}.workspace-history button:disabled{opacity:.3;background:0 0}.sidebar-collapsed .workspace-toolbar{padding-inline-start:68px}.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:padding-inline-start .2s cubic-bezier(.22,1,.36,1)}.workspace-icon{width:28px;height:28px;color:var(--muted);border:1px solid #0000;border-radius:5px;flex:none;justify-content:center;align-items:center;display:inline-flex}.workspace-icon:active{background:color-mix(in srgb,var(--ink) 9%,transparent)}.workspace button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.workspace-button{border:1px solid var(--line);background:var(--float);height:30px;color:var(--ink);white-space:nowrap;transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,box-shadow var(--dur-micro) ease,transform var(--dur-micro) var(--ease-out);border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:0 11px;font-size:12px;font-weight:500;display:inline-flex;box-shadow:inset 0 1px #ffffff0d,0 1px 2px #0000000a}.workspace-button:hover:not(:disabled){background:var(--control-hover)}.workspace-button:active:not(:disabled){background:var(--control-pressed);box-shadow:inset 0 1px 2px #0000000a}.workspace-button:disabled{opacity:.45;cursor:default}.workspace-button.primary{background-color:var(--primary);color:#fff;background-image:linear-gradient(#ffffff14,#0000 55%,#0000000a);border-color:#00000014;box-shadow:inset 0 1px #ffffff29,0 1px 2px #35006524}.workspace-button.primary:hover:not(:disabled){background-color:var(--primary-hover)}.workspace-button.primary:active:not(:disabled){background-image:none;box-shadow:inset 0 1px 2px #35006533}.recording-split{min-width:0;max-width:min(100%,276px);display:flex}.recording-main{min-width:0}.recording-main>svg{flex:none}.recording-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:200px;overflow:hidden}.recording-split[data-split=true] .recording-main{border-inline-end:0;border-start-end-radius:0;border-end-end-radius:0}.workspace-button.primary.recording-chevron{border-inline-start:1px solid #ffffff26;border-start-start-radius:0;border-end-start-radius:0;flex:none;width:28px;padding:0}.recording-menu{width:276px;max-width:var(--available-width);max-height:var(--available-height);border:1px solid var(--line);overflow-y:auto}.recording-meeting-copy{flex:1;min-width:0}.recording-meeting-copy>span,.recording-meeting-copy>small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.recording-meeting-copy>small,.recording-timing{color:var(--muted);font-size:10px;font-weight:400;line-height:16px}.recording-timing{flex:none}.recording-menu-separator{background:var(--line);height:1px;margin:4px 0}.workspace-toolbar[data-recording-return=true]{gap:16px;padding-inline-end:17px}.workspace-toolbar[data-recording-return=true][data-note=true]{padding-inline-end:62px}.workspace-toolbar[data-recording-return=true] .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-recording-link{color:#fff;white-space:nowrap;min-width:86px;height:30px;transition:box-shadow var(--dur-micro) ease;background:linear-gradient(#7a1aff,#6f00ff 65%,#6600eb);border:1px solid #5200bc;border-radius:9px;flex:none;justify-content:center;align-items:center;gap:9px;padding:0 12px;font-size:12px;font-weight:500;display:flex;position:relative;box-shadow:inset 0 1px #fff3,0 1px 3px #39008026}.recording-return-time{font-variant-numeric:tabular-nums;text-align:center;min-width:32px}.workspace-recording-link:hover{filter:brightness(1.06);box-shadow:inset 0 1px #ffffff40,0 2px 5px #39008033}.workspace-recording-link:active{filter:brightness(.96);box-shadow:inset 0 1px 3px #39008033}.workspace-recording-link[data-paused=true]{background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 22%,transparent);color:var(--accent);box-shadow:var(--shadow-soft)}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-recording-return=true][data-note=true],.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar[data-recording-return=true][data-note=true]{padding-left:185px}.native-home{grid-template-columns:minmax(0,1fr) 270px;height:100%;min-height:0;padding-top:52px;display:grid}.workspace-toolbar-actions{flex:none}.workspace-toolbar-actions:has(.recording-split){flex:0 auto;min-width:0;max-width:276px}.workspace-toolbar:has(.recording-split) .workspace-breadcrumb{min-width:100px}.workspace-toolbar-actions:empty{display:none}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){gap:16px;padding-inline-end:17px}.workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.workspace-toolbar-actions:not(:empty)){padding-inline-end:132px}.workspace-toolbar:has(.notes-download-status){gap:10px;padding-inline-end:17px}.workspace-toolbar:has(.update-ready-status):has(.notes-download-status:not(.update-ready-status)){gap:8px}.workspace-toolbar:has(.notes-download-status) .workspace-breadcrumb{flex:1;overflow:hidden}.workspace-toolbar[data-note=true]:has(.notes-download-status){padding-inline-end:62px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.notes-download-status){padding-inline-end:132px}.workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar[data-note=true]:has(.notes-download-status){padding-inline-end:185px}.native-library{min-width:0;padding:29px 26px 30px;position:relative;overflow:auto}.native-library>h1{letter-spacing:-.55px;margin-bottom:9px;font-size:20px;font-weight:600;line-height:26px}.native-meeting-day{margin-top:25px}.native-meeting-day>h2,.meeting-day-exit{color:var(--muted);margin-bottom:9px;font-size:10px;font-weight:500;line-height:14px}.native-meeting-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:12px;margin-inline:-8px;padding-inline-end:8px;display:grid;position:relative;overflow:hidden}.native-meeting-row:hover:not(:focus-visible):not(:has(:focus-visible)){background:var(--row-hover)}.native-meeting-card{grid-area:1/1/2/3;grid-template-columns:subgrid;border-radius:inherit;align-items:center;min-width:0;display:grid}.native-meeting-card:has(.meeting-folder-pill){grid-template-columns:minmax(0,1fr) fit-content(40%) max-content;column-gap:12px}.native-meeting-link{grid-area:1/1/2/-1;grid-template-columns:subgrid;text-align:start;border-radius:inherit;align-items:center;width:100%;min-width:0;min-height:57px;padding-block:8px;padding-inline:8px 0;display:grid}.native-meeting-card>.row-swap-actions{grid-area:1/-2}.native-meeting-card .meeting-meta{grid-column:-2}.meeting-content{align-items:center;gap:12px;min-width:0;display:flex}.meeting-identity{background:var(--control);width:30px;height:30px;color:var(--written);border:1px solid #0000;border-radius:7px;flex:none;place-items:center;font-size:10px;font-weight:600;display:grid}.meeting-identity.recording{color:#fff;background:var(--primary);border-color:#0000}.meeting-description{flex:1;min-width:0}.meeting-description strong{letter-spacing:-.1px;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:19px;display:block;overflow:hidden}.meeting-description>span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);margin-top:2px;font-size:11px;line-height:16px;display:block;overflow:hidden}.meeting-meta{text-align:end;min-width:49px;color:var(--muted);font-variant-numeric:tabular-nums;flex-direction:column;flex:none;gap:4px;font-size:10px;display:flex}.meeting-meta small{color:var(--muted);font-size:9px;line-height:12px}.meeting-drag-preview{border:1px solid var(--line);background:var(--float);width:max-content;max-width:280px;color:var(--ink);box-shadow:var(--shadow);pointer-events:none;border-radius:10px;align-items:center;gap:9px;padding:8px 11px;display:flex;position:fixed;inset-block-start:0;inset-inline-start:0}.meeting-drag-preview strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;line-height:19px;overflow:hidden}.meeting-live{color:var(--accent);align-items:center;gap:4px;display:flex}.meeting-delete{opacity:.6;width:27px;height:27px}.meeting-delete svg{width:13px;height:13px}.native-meeting-row:hover .meeting-delete{opacity:1}.native-meeting-row:has(:focus-visible) .meeting-delete{opacity:1}.meeting-delete:hover{color:var(--danger)}.meeting-more{width:27px;height:27px}.row-swap-meta{transition:opacity var(--dur-micro) var(--ease-out) 40ms;grid-column:2}.row-swap-actions{z-index:1;opacity:0;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out);grid-area:1/2;justify-self:end}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-meta{opacity:0;pointer-events:none;transition-delay:0s}.row-swap:is(:hover,:focus-visible,:has(:focus-visible),[data-menu-open=true],:has(>.row-swap-actions[aria-expanded=true])) .row-swap-actions{opacity:1;pointer-events:auto;transition:opacity var(--dur-micro) var(--ease-out) 50ms}.row-swap :is(.workspace-icon,.chat-icon){background:0 0}.row-swap :is(.workspace-icon,.chat-icon):hover:not(:disabled){background:var(--control-hover)}.row-swap :is(.workspace-icon,.chat-icon):active:not(:disabled){background:var(--control-pressed)}:is(.native-meeting-row,.ask-history-row,.agenda-event):is(:focus-visible,:has(:focus-visible)){outline:2px solid var(--focus);outline-offset:-2px}.native-meeting-row .native-meeting-link:focus-visible,.ask-history-row>.ask-history-link:focus-visible,.agenda-event .agenda-title:focus-visible{outline:none}.row-swap :is(.workspace-icon,.chat-icon):focus-visible{outline-offset:-2px}.meeting-row-menu{z-index:100;border:1px solid var(--line);width:224px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);position:fixed;overflow-y:auto}.meeting-row-menu [role=menuitem]{text-align:start;align-items:center;gap:10px;width:100%;display:flex}.meeting-row-menu [role=menuitem]:disabled{opacity:.5}.meeting-row-menu svg{flex-shrink:0}@media (prefers-reduced-motion:reduce){.row-swap-meta,.row-swap-actions{transition:opacity var(--dur-micro) var(--ease-out)!important;transform:none!important}}.native-library:has(>.library-empty){flex-direction:column;display:flex}.native-library:has(>.library-empty)>:not(.library-empty){flex-shrink:0}.empty-state{text-align:center;flex:1;place-items:center;min-width:0;padding-block:24px 48px;display:grid}.empty-state-content{width:100%;max-width:310px}.empty-tile{border:1px solid var(--line);background:var(--float);width:64px;height:64px;color:var(--written);border-radius:14px;place-items:center;margin:0 auto 16px;display:grid;position:relative;box-shadow:0 1px 2px #17171a0a,0 10px 28px -12px #2a1a4a24}.empty-tile:before{content:"";border:1px solid var(--line);opacity:.45;pointer-events:none;border-radius:9px;position:absolute;inset:5px}.library-empty h2{letter-spacing:-.3px;font-size:17px;font-weight:550;line-height:24px}.library-empty p{color:var(--muted);text-wrap:balance;margin:10px 0 20px;line-height:1.65}.library-loading{color:var(--muted);margin-top:25px;font-size:12px}.native-agenda{min-width:0;min-height:0;padding:29px var(--agenda-inset);--agenda-inset:20px;background:var(--card);border-inline-start:1px solid var(--line);flex-direction:column;display:flex;position:relative;overflow:hidden}.native-agenda>div:not(.agenda-scroll){flex-shrink:0}.agenda-scroll{margin-inline:calc(-1 * var(--agenda-inset));padding-inline:var(--agenda-inset);overscroll-behavior:contain;flex:1;min-height:80px;padding-block:16px;scroll-padding-block:16px;overflow-y:auto}.agenda-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.agenda-header>h2{letter-spacing:-.1px;font-size:13px;font-weight:550}.agenda-navigation{align-items:center;gap:4px;margin-top:24px;display:flex}.agenda-month{min-width:0;color:var(--written);margin-inline-end:auto;font-size:11px;font-weight:500}.agenda-header .workspace-button{height:27px;padding:0 9px;font-size:11px}.agenda-week{border-bottom:1px solid var(--line);grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;margin-bottom:23px;padding:18px 0 20px;display:grid}.agenda-week button{flex-direction:column;align-items:center;gap:8px;min-width:0;display:flex}.agenda-week span{color:var(--muted);font-size:10px;line-height:14px}.agenda-week b{border:1px solid #0000;border-radius:6px;place-items:center;width:26px;height:26px;font-size:11px;font-weight:500;display:grid}.agenda-week button:not([aria-pressed=true]):not([aria-current=date]):hover b{background:var(--accent-soft)}.agenda-week [aria-pressed=true] b{color:var(--accent);background:var(--accent-soft);border-color:#0000}.agenda-week [aria-current=date] b{color:#fff;background:var(--primary)}.agenda-day{align-items:baseline;gap:9px;margin-bottom:0;display:flex}.agenda-day h3{font-size:13px;font-weight:600}.agenda-day>span{color:var(--muted);font-size:11px}.agenda-events{flex-direction:column;gap:3px;display:flex}.agenda-event{cursor:pointer;border-radius:8px;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:12px;padding:8px 6px;display:grid;position:relative;overflow:hidden}.agenda-event:hover:not(:has(:focus-visible)){background:var(--row-hover)}.agenda-event-body{border-inline-start:2px solid var(--line);flex-direction:column;gap:2px;min-width:0;padding-inline-start:12px;display:flex}.agenda-event:is(.live,[data-recording=true]) .agenda-event-body{border-inline-start-color:var(--accent)}.agenda-event:is(.live,[data-recording=true]) .agenda-title{letter-spacing:-.1px;font-weight:600}.agenda-event[data-selected=true] .agenda-title{color:var(--ink)}.agenda-time{color:var(--muted);font-variant-numeric:tabular-nums;text-align:end;white-space:nowrap;padding-top:0;font-size:10px;line-height:17px}.agenda-heading{align-items:center;gap:8px;min-height:17px;display:flex}.agenda-marker{pointer-events:none;width:23px;height:17px;color:var(--muted);flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.agenda-event[data-recording=true] .agenda-marker{color:var(--accent)}.agenda-levels{flex:none;transform:scale(.85)}.agenda-event h3{flex:1;min-width:0;font-size:11px;font-weight:400;line-height:17px}.agenda-title{text-overflow:ellipsis;white-space:nowrap;text-align:start;width:100%;color:var(--ink);cursor:pointer;border-radius:3px;display:block;overflow:hidden}.agenda-title:after{content:"";border-radius:8px;position:absolute;inset:0}.agenda-event p{color:var(--muted);margin-top:0;font-size:11px;line-height:17px}.agenda-people{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.agenda-live{white-space:nowrap;color:var(--muted);align-items:center;padding:1px 0;font-size:10px;font-weight:500;line-height:16px;display:inline-flex}.agenda-inspector{visibility:hidden;z-index:5;border:1px solid var(--line);background:var(--float);max-width:none;color:var(--ink);box-shadow:var(--shadow);overflow-wrap:anywhere;border-radius:12px;margin:0;padding:0;font-size:12px;line-height:18px;position:absolute;inset:0 auto auto 0;overflow:visible}.agenda-inspector[data-side=top]{transform-origin:bottom}.agenda-inspector[data-side=bottom]{transform-origin:top}.agenda-inspector-content{border-radius:inherit;flex-direction:column;gap:16px;padding:16px;display:flex;overflow:hidden}.agenda-inspector-scroll{overscroll-behavior:contain;min-width:0;min-height:0;max-height:240px;overflow:hidden auto}.agenda-inspector-time{flex:none}.agenda-inspector-arrow{background:var(--float);border-top:1px solid var(--line);border-left:1px solid var(--line);pointer-events:none;width:10px;height:10px;position:absolute;top:-6px;transform:rotate(45deg)}.agenda-inspector[data-side=top] .agenda-inspector-arrow{top:auto;bottom:-6px;transform:rotate(225deg)}.agenda-inspector-heading{flex:none;justify-content:space-between;align-items:start;gap:12px;display:flex}.agenda-inspector-heading h3{outline:none;min-width:0;font-size:14px;font-weight:600;line-height:21px}.agenda-inspector-heading .workspace-icon{flex:none;margin-block:-4px;margin-inline-end:-4px}.agenda-open-note{height:28px;padding-inline:8px;font-size:11px}.agenda-inspector-footer{border-top:1px solid var(--line);flex-direction:column;flex:none;gap:12px;padding-top:16px;display:flex}.agenda-inspector-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex;container-type:inline-size}.agenda-inspector .agenda-inspector-footer{gap:16px}.agenda-inspector .agenda-inspector-actions:has(>:only-child){justify-content:flex-start}.agenda-inspector-actions>.workspace-button{min-width:0;max-width:100%}.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:calc(50% - 4px)}.agenda-inspector-actions>.workspace-button>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:inherit;font-size:inherit;overflow:hidden}.agenda-inspector-actions>.workspace-button>svg{flex:none}.agenda-inspector-actions>a.workspace-button{color:var(--ink);text-decoration:none}.agenda-inspector-actions>a.workspace-button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}@container (width<=180px){.agenda-inspector-actions:has(>:nth-child(2))>.workspace-button{max-width:100%}}.agenda-inspector-people{min-width:0}.agenda-more-people{color:var(--accent);text-align:start;margin-top:8px;font-size:11px}.agenda-more-people:hover{text-underline-offset:3px;text-decoration:underline}.agenda-inspector button:focus-visible,.agenda-inspector a:focus-visible{outline-offset:-2px}.agenda-inspector-line{align-items:start;gap:10px;display:flex}.agenda-inspector-line>svg{color:var(--muted);flex:none;margin-top:2px}.agenda-inspector-line>div,.agenda-inspector-line>p,.agenda-inspector-line ul{overflow-wrap:anywhere;min-width:0}.agenda-inspector li+li{margin-top:6px}.agenda-inspector span,.agenda-inspector-muted{color:var(--muted);font-size:11px;display:block}@media (height<=650px){.native-agenda{padding-block:16px}.agenda-navigation{margin-top:12px}.agenda-week{margin-bottom:12px;padding-block:10px 12px}}.agenda-event[data-faded=true] :is(.agenda-time,.agenda-title,.agenda-marker){color:var(--ink);opacity:.65}.agenda-status{color:var(--muted);padding:10px 0;font-size:12px;line-height:1.65}.agenda-status svg{margin-bottom:14px}.agenda-status h3{color:var(--written);font-size:13px;font-weight:500}.agenda-status p{margin:5px 0 17px}.agenda-status .workspace-button{font-size:11px}.trash-note{color:var(--muted);margin:0 0 16px;font-size:12px;line-height:1.6}.trash-actions{gap:4px;display:flex}.trash-actions .workspace-icon{width:27px;height:27px}.app-toast-viewport{bottom:20px;--toast-x:0px;--toast-y:0px;translate:var(--toast-x) var(--toast-y);transition:translate var(--dur-surface) var(--ease-in-out);z-index:90;pointer-events:none;outline:none;width:340px;max-width:calc(100% - 40px);position:fixed;inset-inline-end:20px}.app-toast{width:100%;height:var(--toast-frontmost-height,var(--toast-height));border:1px solid var(--line);background:var(--float);color:var(--ink);pointer-events:auto;--gap:10px;z-index:calc(100 - var(--toast-index,0));border-radius:11px;outline:none;position:absolute;inset-block-end:0;inset-inline:0;box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.app-toast[data-expanded]{height:var(--toast-height)}.app-toast[data-limited]{opacity:0}.app-toast-content{align-items:center;gap:12px;padding-block:12px;padding-inline:16px 10px;display:flex;overflow:hidden}.app-toast-content[data-behind]:not([data-expanded]){opacity:0}.app-toast-title{flex:1;min-width:0;font-size:13px;font-weight:500;line-height:19px}.app-toast-action{border:1px solid var(--control-border);background:var(--button-surface,var(--control));border-radius:6px;flex:none;padding:5px 9px;font-size:12px;font-weight:500;line-height:18px;box-shadow:0 1px 2px #0000000a}.app-toast-action:hover{background:var(--control-hover)}.app-toast-close{width:24px;height:24px;color:var(--muted);border-radius:5px;flex:none;place-items:center;display:grid}.app-toast-close:hover{color:var(--ink);background:var(--control)}.app-toast button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-anchor{white-space:nowrap}.citation-group{vertical-align:baseline;white-space:nowrap;align-items:baseline;gap:1px;line-height:0;display:inline-flex;position:relative;top:-1ex}.citation-group[data-gap]{margin-inline-start:.18em}.source-citation{height:1em;color:var(--accent);letter-spacing:1px;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:.68em;font-weight:500;line-height:1;display:inline-flex;position:relative}.source-citation:before{content:"";position:absolute;inset:-6px 0}.citation-group[data-single] .source-citation:before{inset:-6px -9px}.source-citation:focus-visible{outline:2px solid var(--focus);outline-offset:1px}.citation-positioner{z-index:100}.citation-positioner[data-anchor-hidden]{visibility:hidden;pointer-events:none}.citation-card{isolation:isolate;width:380px;max-width:calc(100vw - 24px);color:var(--ink);text-align:start;letter-spacing:-.012em;outline:none;font-size:13px;line-height:1.5;transition:opacity .16s ease-out;position:relative}.citation-card[data-animate=false]{transition:none}.citation-card[data-ending-style]{opacity:0}.citation-filter{pointer-events:none;position:absolute}.citation-liquid,.citation-edge{z-index:-1;pointer-events:none;position:absolute;inset:0}.citation-mass{background:var(--float);transform-origin:0 0;border-radius:12px;position:absolute;inset:0}.citation-edge{border:1px solid var(--line);box-shadow:var(--shadow-soft);border-radius:12px}.citation-content{padding:12px}.citation-heading{justify-content:space-between;align-items:baseline;gap:10px;line-height:18px;display:flex}.citation-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:18px;overflow:hidden}.citation-date{color:var(--muted);white-space:nowrap;flex:none;font-size:10px}.citation-excerpt{-webkit-line-clamp:6;color:var(--muted);overflow-wrap:anywhere;-webkit-box-orient:vertical;max-height:120px;margin:8px 0 0;font-size:13px;line-height:20px;display:-webkit-box;overflow:clip}.citation-match{color:var(--ink)}.citation-passage{color:var(--muted);margin-top:8px}.citation-passage [hidden]{display:none!important}.citation-lines{overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:clip}.citation-transcript{flex-direction:column;gap:6px;margin-top:12px;display:flex}.citation-transcript .transcript-turn{flex-direction:column;align-items:flex-start;gap:5px;display:flex}.citation-transcript .transcript-turn[data-track=me]{align-items:flex-end}.citation-transcript .bubble{margin:0}.citation-transcript .bubble+.bubble{margin-top:1px}.citation-transcript .bubble:not([data-continuation]){width:85%}.citation-transcript .bubble[data-continuation]{margin-inline:12px}.citation-speaker{padding-inline:4px;font-size:12px;font-weight:500;line-height:18px}.citation-notes{font-size:13px;line-height:20px}.citation-notes p{margin:0}.citation-notes ul,.citation-notes ol{margin:0;padding-inline-start:18px}.citation-notes ul{list-style-type:disc}.citation-notes ol{list-style-type:decimal}.citation-notes li+li{margin-top:4px}.citation-notes li:not(:has([data-citation-part]:not([hidden]))){display:none}.citation-notes [data-citation-part]+[data-citation-part]{margin-top:8px}.citation-notes .citation-match{background:color-mix(in srgb,var(--accent) 10%,transparent);-webkit-box-decoration-break:clone;box-decoration-break:clone;border-radius:3px}.citation-notes code{font-size:.92em}.citation-footer{color:var(--muted);justify-content:flex-end;align-items:center;gap:12px;margin-top:8px;font-size:11px;display:flex}.citation-footer>span{margin-inline-end:auto}.citation-open{height:24px;color:var(--muted);background:0 0;border-radius:4px;align-items:center;gap:5px;padding:2px 5px;font-size:11px;line-height:20px;display:inline-flex}.citation-open:hover{background:var(--control-hover);color:var(--ink)}.citation-open:active{background:var(--control-pressed)}.citation-open:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.citation-card[data-morph=true] .citation-liquid{filter:var(--citation-filter)}.citation-card[data-morph=true] .citation-mass{animation:.28s linear both citation-pull}.citation-card[data-morph=true] .citation-content{animation:.13s ease-out 90ms both citation-in,.28s linear backwards citation-crop}.citation-card[data-morph=true] .citation-edge{animation:.16s ease-out .12s both citation-in}@keyframes citation-pull{0%{transform:translate(var(--from-x),var(--from-y)) scale(var(--from-sx),var(--from-sy));border-radius:12px;animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{border-radius:14px;animation-timing-function:cubic-bezier(.2,0,.25,1);transform:translateY(-2px)scale(.992,1.018)}to{border-radius:12px;transform:none}}@keyframes citation-in{0%{opacity:0}to{opacity:1}}@keyframes citation-crop{0%{clip-path:inset(var(--from-y) calc(100% - var(--from-x) - var(--from-sx) * 100%) calc(100% - var(--from-y) - var(--from-sy) * 100%) var(--from-x) round 9px);animation-timing-function:cubic-bezier(.18,.8,.25,1)}72%{clip-path:inset(-2px .8% calc(2px - 1.8%) 0 round 14px);animation-timing-function:cubic-bezier(.2,0,.25,1)}to{clip-path:inset(0 round 12px)}}@media (prefers-reduced-motion:reduce){.citation-card{transition:none}.citation-card *{animation:none!important}.citation-liquid{filter:none!important}}::highlight(citation-target){background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}[data-focused]{background:color-mix(in srgb,var(--accent-soft) 70%,transparent)}@container (width<=700px){.native-home{grid-template-columns:minmax(0,1fr) 235px}.native-library{padding:24px 18px}.native-agenda{--agenda-inset:15px;padding-block:25px}.meeting-description strong{font-size:13px}.meeting-meta{font-size:10px}}@container (width<=520px){.native-home{grid-template-rows:minmax(0,1fr) 200px;grid-template-columns:1fr}.native-agenda{border-inline-start:0;border-top:1px solid var(--line)}.native-meeting-link{gap:8px}.workspace-breadcrumb{gap:5px}.workspace-parent,.workspace-parent-separator{display:none}}.native-home.no-agenda{grid-template-rows:none;grid-template-columns:minmax(0,1fr)}.workspace-assistant-dock{inset-inline:0;border-top:1px solid var(--line);background:var(--bg);justify-content:flex-end;align-items:center;height:44px;padding:0 18px;display:flex;position:absolute;bottom:0}.workspace-assistant-launch{height:28px;color:var(--muted);transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:6px;align-items:center;gap:7px;padding:0 9px;font-size:11px;font-weight:450;display:inline-flex}.workspace-assistant-launch:hover{color:var(--ink);background:var(--control)}.workspace-assistant-launch:active{background:var(--control-pressed)}.workspace-assistant-launch kbd{font:10px/15px var(--font-sans);color:var(--muted);margin-inline-start:5px}.workspace-content:has(.workspace-assistant-dock) :is(.native-home,.native-folder){padding-bottom:44px}@media (prefers-reduced-motion:reduce){.chat-starter,.workspace-button,.workspace-recording-link,.workspace-assistant-launch,.workspace[data-sidebar-motion=true].sidebar-collapsed .workspace-sidebar,.workspace[data-sidebar-motion=true] .workspace-toolbar{transition:none}}[data-folder-color]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--folder-ink:var(--written);--folder-tint:var(--control)}@media (prefers-color-scheme:dark){[data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial}}.widget [data-folder-color]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-folder-color=violet]{--folder-ink:var(--lightningcss-light,#7434ca)var(--lightningcss-dark,#b995ff)}[data-folder-color=blue]{--folder-ink:var(--lightningcss-light,#2868ba)var(--lightningcss-dark,#87b5f4)}[data-folder-color=teal]{--folder-ink:var(--lightningcss-light,#157d80)var(--lightningcss-dark,#72cece)}[data-folder-color=green]{--folder-ink:var(--lightningcss-light,#388044)var(--lightningcss-dark,#92c88a)}[data-folder-color=amber]{--folder-ink:var(--lightningcss-light,#976b0d)var(--lightningcss-dark,#e5bd68)}[data-folder-color=orange]{--folder-ink:var(--lightningcss-light,#b85a1f)var(--lightningcss-dark,#efa777)}[data-folder-color=rose]{--folder-ink:var(--lightningcss-light,#be4675)var(--lightningcss-dark,#e99dbb)}[data-folder-color]:not([data-folder-color=default]){--folder-tint:color-mix(in srgb,var(--folder-ink) 12%,var(--bg))}.folder-glyph{color:var(--folder-ink);flex:none;justify-content:center;align-items:center;display:inline-flex}.folder-preview-tile,.folder-heading-icon{background:var(--folder-tint);color:var(--folder-ink)}.folder-page-heading{align-items:center;gap:12px;margin-bottom:9px;display:flex}.folder-page-heading h1{letter-spacing:-.55px;min-width:0;font-size:20px;font-weight:600;line-height:26px}.folder-page-heading h1 input{font:inherit;letter-spacing:inherit}.folder-heading-icon{border:1px solid color-mix(in srgb,var(--folder-ink) 15%,transparent);border-radius:10px;flex:none;place-items:center;width:40px;height:40px;display:grid}.folder-heading-icon:hover{filter:brightness(.96)}.folder-appearance-preview{align-items:center;gap:12px;min-width:0;margin:0 20px 22px;display:flex}.folder-appearance-preview strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.folder-preview-tile{border-radius:11px;flex:none;place-items:center;width:44px;height:44px;display:grid}.folder-choices{padding:0 20px 22px}.folder-choice-label{color:var(--muted);margin-bottom:9px;font-size:11px;font-weight:500}.folder-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:20px;display:grid}.folder-icon-grid button{height:38px;transition:background var(--dur-micro) ease,border-color var(--dur-micro) ease;background:0 0;border:1px solid #0000;border-radius:8px;place-items:center;display:grid}.folder-icon-grid button:hover{background:var(--control)}.folder-icon-grid button[aria-checked=true]{border-color:var(--accent);background:var(--accent-soft)}.folder-color-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;display:grid}.folder-color-grid button{border:1px solid #0000;border-radius:50%;place-items:center;height:30px;display:grid}.folder-color-grid button span{background:var(--folder-ink);border-radius:50%;width:18px;height:18px}.folder-color-grid button:hover{background:var(--control)}.folder-color-grid button[aria-checked=true]{border-color:var(--folder-ink)}.folder-choices button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.folder-choices button:disabled{opacity:.5}@media (prefers-reduced-motion:reduce){.folder-icon-grid button{transition:none}}body:has(.note-footer) .app-toast-viewport{--toast-y:calc(20px - var(--note-footer-height,76px))}body:has(.chat-page) .app-toast-viewport{--toast-y:-68px}body:has(.chat-panel[open]) .app-toast-viewport{--toast-x:-440px}body:has(.chat-panel[open]) .app-toast-viewport:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--toast-x:440px}@media (width<=999px){body:has(.chat-panel[open]) .app-toast-viewport{--toast-x:4px;--toast-y:4px}body:has(.chat-panel[open]) .app-toast-viewport:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){--toast-x:-4px}.chat-panel:has(.app-toast){height:min(440px,100dvh - 152px);inset-block-end:84px}}@media (prefers-reduced-motion:reduce){.app-toast-viewport{transition:none}}.native-library{container:meeting-library/inline-size}.meeting-description{flex:220px}.meeting-folders{z-index:1;grid-area:1/2;gap:6px;min-width:0;display:flex;overflow:hidden}.meeting-folders:empty{display:none}.meeting-folder-suggestion{min-width:0;display:flex}.meeting-folder-pill{border:1px solid var(--line);min-width:0;max-width:140px;height:22px;color:var(--written);background:0 0;border-radius:11px;flex:0 auto;align-items:center;gap:5px;padding:0 7px;font-size:11px;line-height:20px;display:inline-flex}.meeting-folder-pill[data-opens=true]{transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease,border-color var(--dur-micro) ease}.meeting-folder-pill[data-opens=true]:hover{border-color:var(--control-border);background:var(--control);color:var(--ink)}.meeting-folder-dot{background:var(--folder-ink);border-radius:50%;flex:none;width:7px;height:7px}.meeting-folder-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.meeting-folder-name,.meeting-folder-proposal .note-folder-name>.truncate{max-width:112px}.meeting-folder-pill.meeting-folder-proposal{max-width:none}.meeting-folder-proposal{border-style:dashed;gap:3px;padding-inline-end:3px}.meeting-folder-proposal .note-folder-name{height:20px;font:inherit;border-radius:9px;gap:5px;padding:0}.meeting-folder-proposal .note-folder-name:hover{background:0 0}.meeting-folder-proposal .note-folder-actions{border:0;padding:0}.meeting-folder-proposal .workspace-icon{border-radius:50%;width:20px;height:20px}.meeting-folder-proposal button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.meeting-folder-proposal button:active{background:var(--control-pressed)}@container meeting-library (width<=460px){.meeting-folders{flex-shrink:0;max-width:50px}.meeting-folders:has(>.meeting-folder-suggestion){max-width:100%}.meeting-folder-pill:not(.meeting-folder-proposal){flex:0 0 22px;justify-content:center;width:22px;min-width:22px;max-width:22px;padding:0}.meeting-folder-name{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.sidebar-toggle-pane{width:6px}.workspace-sidebar-toggle[aria-expanded=false] .sidebar-toggle-pane{width:2px}@media (prefers-reduced-motion:no-preference){.workspace[data-sidebar-motion=true] .sidebar-toggle-pane{transition:width .2s cubic-bezier(.22,1,.36,1)}}.ask-page{contain:layout;scrollbar-gutter:stable both-edges;flex-direction:column;height:100%;min-height:0;padding:104px 32px 24px;display:flex;overflow-y:auto}.ask-page-toolbar{z-index:4;top:68px;justify-content:flex-end;align-items:center;gap:12px;height:28px;display:flex;position:absolute;inset-inline:24px}.ask-recent-button,.ask-back{height:28px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding-inline:8px;font-size:12px;display:inline-flex}.ask-recent-button:hover,.ask-recent-button[aria-expanded=true],.ask-back:hover{background:var(--control);color:var(--ink)}.ask-recent-button:active,.ask-back:active{background:var(--control-pressed)}.ask-back{margin-inline-end:auto}.ask-page:has(.ask-landing){padding-bottom:clamp(104px,24vh,240px);container-type:size}.ask-page:has(.ask-landing) .ask-back{display:none}.ask-conversation{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.ask-page>.ask-landing{flex:none;width:100%;max-width:720px;margin:max(0px,50cqh - 97px) auto 0}.ask-home-title{text-align:center;letter-spacing:-.55px;margin:0 0 24px;font-size:20px;font-weight:600;line-height:26px}.ask-page.ask-full-thread:not(:has(.ask-landing)){padding-inline:0;overflow:hidden}.ask-full-thread>.ask-conversation:not(.ask-landing){--ask-reading-inset:max(32px,calc((100% - 720px)/2))}.ask-full-thread .ask-conversation-head,.ask-full-thread .ask-conversation:not(.ask-landing) .ask-composer{margin-inline:var(--ask-reading-inset)}.ask-full-thread .ask-thread{padding-inline:var(--ask-reading-inset)}.ask-conversation-head{flex:none;justify-content:space-between;align-items:center;gap:8px;min-height:44px;display:flex}.ask-conversation-head h2{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:550;overflow:hidden}.ask-conversation .chat-icon:active:not(:disabled){background:var(--control-pressed)}.ask-conversation .chat-icon:disabled{opacity:.45}.ask-conversation :is(.chat-copy-action,.chat-latest):hover{background:var(--control);color:var(--ink)}.ask-conversation :is(.chat-copy-action,.chat-latest):active{background:var(--control-pressed)}.ask-conversation button:focus-visible,.ask-page-toolbar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.ask-header-actions{flex:none;align-items:center;gap:8px;display:flex}.ask-thread-wrap{flex:1;min-height:0;display:flex;position:relative}.ask-thread{overscroll-behavior:contain;flex:1;min-height:0;padding:16px 0;overflow-y:auto}.ask-thread-empty{flex-direction:column;display:flex}.ask-thread-empty .ask-thread-content{margin-top:auto}.ask-landing .ask-thread-wrap{display:none}.ask-turn{flex-direction:column;gap:16px;margin:0 0 24px;display:flex}.ask-turn:last-child{margin-bottom:0}.ask-question{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--control);border-radius:12px;width:fit-content;max-width:80%;margin-inline-start:auto;padding:8px 12px;font-size:14px;line-height:20px}.ask-composer{flex:none;min-width:0;container-type:inline-size}.ask-box{border:1px solid var(--line);background:var(--float);min-width:0;box-shadow:var(--shadow-soft);border-radius:12px;position:relative}@media (prefers-reduced-motion:reduce){.orb-material:before,.orb-material:after{animation:none}.ask-send{transition:none;transform:none!important}}.ask-tracer{pointer-events:none;opacity:0;fill:none;width:calc(100% + 2px);height:calc(100% + 2px);stroke:var(--primary);stroke-width:3px;stroke-linecap:round;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--primary) 70%,transparent)) drop-shadow(0 0 10px color-mix(in srgb,var(--primary) 35%,transparent));position:absolute;inset:-1px;overflow:visible}.ask-tracer rect{stroke-dasharray:1.05 98.95}@media (prefers-reduced-motion:reduce){.ask-tracer{display:none}}.ask-field{padding:12px}.ask-box textarea{field-sizing:content;resize:none;width:100%;min-height:38px;max-height:160px;color:var(--ink);background:0 0;outline:none;font-size:14px;line-height:22px;display:block}.ask-box textarea:focus-visible{outline:none}.ask-box textarea::placeholder{color:var(--muted)}.ask-box-actions{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.ask-toolbar-button{width:28px;height:28px;color:var(--muted);transition:background-color var(--dur-micro) ease,color var(--dur-micro) ease;border:1px solid #0000;border-radius:50%;flex:none;place-items:center;display:grid}.ask-toolbar-button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-toolbar-button:active:not(:disabled){background:var(--control-hover)}.ask-toolbar-button:disabled{color:var(--muted);opacity:.45}.ask-send{isolation:isolate;background:var(--primary);color:#fff;--orb-play:paused;transition:transform .12s ease-out;position:relative;overflow:hidden}.ask-send:after{content:"";pointer-events:none;border-radius:inherit;background:#6f00ffbd;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #ccb6ff44}.ask-send svg{z-index:1;position:relative}.orb-material{border-radius:inherit;pointer-events:none;background:var(--primary);isolation:isolate;position:absolute;inset:0;overflow:hidden}.orb-material:before,.orb-material:after{content:"";pointer-events:none;filter:blur(3px);animation:18s linear infinite orb-turn;animation-play-state:var(--orb-play);opacity:.92;background:radial-gradient(at 27% 32%,#ccb6ff 0 12%,#af8bff 24%,#0000 52%),radial-gradient(at 75% 68%,#7142e8 0 18%,#0000 50%);position:absolute;inset:-35%;transform:rotate(22deg)}.orb-material:after{background:radial-gradient(ellipse at 68% 26%,#fff 0 3%,#ccb6ff 13%,transparent 40%),radial-gradient(ellipse at 23% 72%,var(--accent) 0 13%,#7142e8 29%,transparent 54%);opacity:.8;animation-name:orb-counter;animation-duration:27s}@keyframes orb-turn{0%{transform:rotate(22deg)}to{transform:rotate(382deg)}}@keyframes orb-counter{0%{transform:rotate(-28deg)}to{transform:rotate(-388deg)}}.ask-box:not([data-busy=true]) .ask-send:not(:disabled):is(:hover,:focus-visible){--orb-play:running;transform:scale(1.04)}.ask-send:active:not(:disabled){transform:scale(.94)}.ask-send:disabled{border-color:var(--line);background:0 0}.ask-send:disabled:after,.ask-send:disabled .orb-material,.ask-box[data-busy=true] .orb-material{display:none}.ask-stop{background:var(--control);color:var(--ink)}.ask-stop:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-stop:active:not(:disabled){background:var(--control-pressed)}.ask-scope-group{align-items:center;gap:1px;min-width:0;max-width:calc(100% - 40px);display:flex}.ask-scope{background:var(--control);min-width:0;max-width:100%;height:28px;color:var(--muted);white-space:nowrap;border-radius:8px;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}.ask-scope:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope:disabled{opacity:.45}.ask-scope-group:has(.ask-scope-clear) .ask-scope{border-start-end-radius:0;border-end-end-radius:0}.ask-scope-clear{background:var(--control);width:26px;height:28px;color:var(--muted);border-start-end-radius:8px;border-end-end-radius:8px;flex:none;justify-content:center;align-items:center;display:flex}.ask-scope-clear:hover:not(:disabled){background:var(--control-hover);color:var(--ink)}.ask-scope-clear:disabled{opacity:.45}.ask-picker h3:has(.ask-picker-clear){justify-content:space-between;align-items:center;display:flex}.ask-picker h3 .ask-picker-clear{width:auto;color:var(--muted);background:0 0;border-radius:4px;padding:0 2px;font-size:11px;font-weight:500}.ask-picker h3 .ask-picker-clear:hover:not(:disabled){color:var(--ink);background:0 0}.ask-scope-label{min-width:0;display:flex}.ask-scope-name{text-overflow:ellipsis;min-width:0;overflow:hidden}.ask-scope-others{white-space:pre;flex:none}.ask-scope>svg{flex:none}.ask-starters{flex-direction:column;align-items:flex-end;gap:8px;min-width:0;display:flex}.ask-starters button{max-width:80%;color:var(--muted);text-align:start;background:color-mix(in srgb,var(--control) 50%,transparent);border:0;border-radius:12px;padding:8px 12px;font-size:12px;line-height:20px}.ask-home-starters{opacity:1;visibility:visible;transition:opacity var(--dur-micro) var(--ease-out),visibility 0s;flex-flow:wrap;justify-content:center;align-items:center;margin-top:12px}.ask-home-starters[aria-hidden=true]{opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--dur-micro) var(--ease-out),visibility 0s var(--dur-micro)}.ask-home-starters[data-instant]{transition:none}@media (prefers-reduced-motion:reduce){.ask-home-starters{transition:opacity var(--dur-micro) var(--ease-out),visibility 0s}.ask-home-starters[aria-hidden=true]{transition-delay:0s,var(--dur-micro)}}.ask-home-starters button{white-space:nowrap;text-overflow:ellipsis;max-width:100%;height:28px;padding:4px 10px;font-size:12.5px;overflow:hidden}.ask-starters button:hover:not(:disabled){background:var(--control);color:var(--ink)}.ask-starters button:active:not(:disabled){background:var(--control-pressed)}.ask-picker{z-index:80;border:1px solid var(--line);background:var(--float);max-height:min(340px,50vh);color:var(--ink);box-shadow:var(--shadow-soft);animation:ask-fade var(--dur-micro) var(--ease-out);border-radius:10px;padding:6px;overflow-y:auto}.ask-mention{width:min(380px,100vw - 32px);position:fixed}.ask-selector-positioner{z-index:80}.ask-picker.ask-selector{width:min(380px,100vw - 32px);max-height:min(380px,60vh,var(--available-height));color:var(--ink);flex-direction:column;display:flex;position:static;inset:auto;overflow:hidden}.ask-picker-search{border-bottom:1px solid var(--line);width:100%;min-width:0;color:var(--ink);text-overflow:ellipsis;background:0 0;border-radius:0;outline:none;flex:none;padding:10px 8px;font-size:13px}.ask-picker-search::placeholder{color:var(--muted)}.ask-picker-search:focus-visible{border-radius:0;outline:none}.ask-picker-results{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;overflow-y:auto}.ask-picker h3{color:var(--muted);padding:7px 8px;font-size:11px;font-weight:550}.ask-picker button{text-align:start;border-radius:5px;align-items:center;gap:8px;width:100%;padding:8px;font-size:13px;display:flex}.ask-picker button[data-active=true],.ask-picker button:hover:not(:disabled){background:var(--card)}.ask-picker button>span{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.ask-picker button:active{background:var(--control-pressed)}.ask-picker button>svg{flex:none}.ask-picker button:disabled{opacity:.45}.ask-picker small{color:var(--muted);flex:none;font-size:11px}.ask-picker p{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;padding:10px;font-size:12px;overflow:hidden}.ask-recent-positioner{z-index:80}.ask-history{width:min(520px,100vw - 32px);max-height:min(480px,var(--available-height));border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:9px;overflow:hidden}.ask-history-scroll{max-height:min(478px,calc(var(--available-height) - 2px));overscroll-behavior:contain;padding:8px;overflow-y:auto}.ask-history h2{color:var(--muted);padding:8px 8px 4px;font-size:10px;font-weight:500;line-height:14px}.ask-history section+section{margin-top:8px}.ask-history-empty{color:var(--muted);padding:16px 8px;font-size:12px}.ask-history-row{border-radius:7px;grid-template-columns:minmax(0,1fr) max-content;align-items:center;column-gap:16px;height:46px;padding-inline:8px;display:grid}.ask-history-row:hover:not(:has(:focus-visible)){background:var(--card)}.ask-history-row:active{background:var(--control)}.ask-history-link{grid-area:1/1/2/3;grid-template-columns:subgrid;text-align:start;border-radius:5px;align-items:center;min-width:0;height:100%;display:grid}.ask-history-link strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:450;overflow:hidden}.ask-history-link time{min-width:86px;color:var(--muted);text-align:end;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.ask-history-all{width:100%;color:var(--muted);text-align:start;border-radius:5px;padding:10px 8px;font-size:12px;display:block}.ask-history-all:hover{background:var(--card);color:var(--ink)}.ask-history-all:active{background:var(--control-pressed)}.ask-menu-positioner{z-index:110}.ask-actions-menu{min-width:156px}.ask-actions-menu [role=menuitem]{cursor:default;align-items:center;gap:8px;display:flex}.ask-actions-menu [data-highlighted]{background:var(--card);outline:none}.chat-panel .ask-conversation-head{height:44px;padding-inline:16px 12px}.chat-panel .ask-thread{padding:16px 12px}.chat-panel .ask-composer{padding:0 12px 12px;overflow:visible}@container (width<=520px){.ask-page{padding-inline:18px}}@keyframes ask-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.ask-toolbar-button{transition:none}}.note-folder-proposal{width:max-content;max-width:min(256px,100%)}.note-folder-proposal:hover{color:var(--muted);background:0 0}.note-folder-name{border-radius:5px 0 0 5px;align-items:center;gap:6px;min-width:0;height:30px;padding:0 10px;display:flex}[dir=rtl] .note-folder-name{border-radius:0 5px 5px 0}.note-folder-name:hover,.note-folder-name[aria-expanded=true]{color:var(--ink);background:var(--control-hover)}.note-folder-name:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.note-folder-actions{border-inline-start:1px solid var(--line);flex:none;align-items:center;padding:0 1px;display:flex}.note-folder-proposal,.meeting-folder-proposal{transition:opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),gap var(--dur-base) var(--ease-out)}.note-folder-actions{width:59px;transition:width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out),padding var(--dur-base) var(--ease-out),border-width var(--dur-base) var(--ease-out);overflow:hidden}.meeting-folder-proposal .note-folder-actions{width:40px}[data-phase=accepted] .note-folder-actions,[data-phase=settled] .note-folder-actions{opacity:0;border-inline-start-width:0;width:0;padding:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]){border-style:solid;gap:0;padding-inline-end:7px}.note-folder-proposal[data-phase=dismissed],.meeting-folder-proposal[data-phase=dismissed]{opacity:0;pointer-events:none}@container meeting-library (width<=460px){.meeting-folder-proposal .note-folder-name span:last-child{max-width:120px;transition:max-width var(--dur-base) var(--ease-out),opacity var(--dur-base) var(--ease-out)}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]){gap:0;min-width:22px;padding:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) .note-folder-name{flex:1;justify-content:center;gap:0}.meeting-folder-proposal:is([data-phase=accepted],[data-phase=settled]) .note-folder-name span:last-child{opacity:0;max-width:0}}@media (prefers-reduced-motion:reduce){.note-folder-proposal,.meeting-folder-proposal,.note-folder-actions,.meeting-folder-proposal .note-folder-name span:last-child{transition:none}}.ask-conversation ::selection{background:var(--accent-soft);color:var(--ink)}.native-library{scrollbar-gutter:stable}.native-library:has(.library-empty){flex-direction:column;display:flex}.library-load,.library-load>.loading-result{flex-direction:column;flex:1;display:flex}:root[data-chrome=overlay]{--controls-start:env(titlebar-area-x,0px);--controls-end:calc(100vw - env(titlebar-area-x,0px) - env(titlebar-area-width,100vw))}:root[data-chrome=overlay] .workspace{--chrome-glass:var(--chrome)}:root[data-chrome=overlay] .workspace-sidebar-toggle{left:calc(14px + var(--controls-start));top:12px}:root[data-chrome=overlay] .sidebar-collapsed .workspace-window-bar{width:56px}:root[data-chrome=overlay] .workspace-toolbar{right:var(--controls-end)}:root[data-chrome=overlay] .workspace:not(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .note-topbar{right:calc(16px + var(--controls-end))}:root[data-chrome=overlay] .sidebar-collapsed .workspace-toolbar{padding-inline-start:24px}:root[data-chrome=overlay] .workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .workspace-toolbar:has(.notes-download-status){right:max(0px,calc(var(--controls-end) - 208px))}:root[data-chrome=overlay] .workspace:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)).sidebar-collapsed .workspace-toolbar:has(.notes-download-status){right:max(0px,calc(var(--controls-end) - 56px))}.note-reading-frame{border-radius:12px;flex:1;min-width:0;min-height:0;margin:0 calc(max(0px,50% - 430px) + clamp(20px,10cqw - 42px,48px) - 14px);padding:0 2px;position:relative}.note-reading-frame[hidden]{display:none}.note-reading-clip{border-radius:10px;height:100%;overflow:hidden}.main-window .note-reading-clip>.note-notes-pane{scrollbar-width:auto;scrollbar-gutter:stable;height:100%}.note-reading-frame .note-notes-body{max-width:none;padding-block:22px 40px;padding-inline:12px 8px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar{width:4px}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-track{background:0 0}.note-reading-clip>.note-notes-pane::-webkit-scrollbar-thumb{background:0 0}.note-reading-clip>.note-notes-pane[data-scrolling]::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--muted) 45%,transparent);border-radius:3px}.note-latest{z-index:3;border:1px solid var(--line);background:var(--float);color:var(--ink);box-shadow:var(--shadow);border-radius:6px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;line-height:16px;display:flex;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.native-library{--meeting-selection-tint:6%}.native-library .native-meeting-row[data-selected=true],.native-library .native-meeting-row[data-selected=true]:hover{background:color-mix(in srgb,var(--primary) var(--meeting-selection-tint),var(--bg))}.native-meeting-row[data-selected=true]+.native-meeting-row[data-selected=true]{border-top-left-radius:0;border-top-right-radius:0}.native-meeting-row[data-selected=true]:has(+.native-meeting-row[data-selected=true]){border-bottom-right-radius:0;border-bottom-left-radius:0}.native-library:has([data-selecting=true]){padding-bottom:100px}.native-library:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.meeting-menu-divider{background:var(--line);height:1px;margin:4px 0}.meeting-selection-bar{border:1px solid var(--line);background:var(--float);width:max-content;color:var(--ink);z-index:60;border-radius:11px;flex-wrap:wrap;align-items:center;gap:10px;padding:9px 10px 9px 16px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #0000001f,0 1px 3px #00000014}.meeting-selection-count{font-variant-numeric:tabular-nums;margin-inline-end:8px;font-size:12px;font-weight:500}.meeting-selection-count small{color:var(--muted);font-size:11px;font-weight:400;line-height:14px;display:block}.meeting-selection-delete{color:var(--danger)}.meeting-selection-folder{position:relative}.meeting-selection-menu{border:1px solid var(--line);width:240px;max-width:calc(100vw - 16px);max-height:min(320px,60vh);position:absolute;overflow:auto}.meeting-selection-bar button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.meeting-drag-count{background:var(--primary);color:#fff;border-radius:5px;padding:2px 6px;font-size:11px}.app-toast[data-kind=recording-deleted-toast]{width:max-content;max-width:calc(100vw - 40px);inset-inline-start:auto}.app-toast[data-kind=recording-deleted-toast] :is(.app-toast-title,.app-toast-action){white-space:nowrap}.workspace-button:active:not(:disabled){transform:scale(.97)}@media (prefers-reduced-motion:reduce){.workspace-button:active:not(:disabled){transform:none}.app-toast{filter:none!important}.note-folder-proposal,.meeting-folder-proposal,.note-folder-actions,.meeting-folder-proposal .note-folder-name span:last-child{transition:opacity var(--dur-micro) var(--ease-out)}}.note-reading-frame[data-resetting=true] .note-reading-clip{visibility:hidden}:root[data-marketing-theme=dark] .workspace{--sidebar-field:#2f2f31;--sidebar-field-edge:#363638;--sidebar-selected:#38313f}:root[data-marketing-theme=dark] .empty-tile{box-shadow:0 1px 2px #0003,0 14px 32px -10px #00000080}:root[data-marketing-theme=dark] .ask-conversation ::selection{color:#fff;background:#8055b8}:root[data-marketing-theme=dark] .native-library{--meeting-selection-tint:9%}html,body,#root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;height:100%;margin:0;overflow:hidden}html.main-window,body{background:0 0!important}body{pointer-events:none;-webkit-user-select:none;user-select:none;caret-color:#0000}.marketing-window{background:var(--bg);border-radius:12px;position:absolute;inset:0;overflow:hidden;transform:translateZ(0)}@media (width>=1000px){.marketing-window .chat-panel{--chat-height:initial!important}}.marketing-traffic{z-index:100;gap:7px;display:flex;position:absolute;top:16px;left:18px}.marketing-traffic i{background:#ff6058;border-radius:50%;width:10px;height:10px}.marketing-traffic i:nth-child(2){background:#febc2e}.marketing-traffic i:nth-child(3){background:#29c840}html[data-still] *,html[data-still] :before,html[data-still] :after{transition:none!important;animation:none!important}html[data-playing=false] *,html[data-playing=false] :before,html[data-playing=false] :after{animation-play-state:paused!important}.marketing-window .transcript-turn:first-child .name-in{animation:none}.marketing-cursor{z-index:1000;pointer-events:none;opacity:0;width:30px;height:32px;position:fixed;top:0;left:0;overflow:visible}.cursor-pointer{fill:#2f3649;stroke:#fff;filter:drop-shadow(0 1px 1.5px #0e142633);transform-origin:4px 3px;transition:transform .13s ease-out}.marketing-cursor[data-clicking=true] .cursor-pointer{transform:scale(.88)}.cursor-ring{fill:none;stroke:#fff;stroke-width:1.5px;opacity:0;transform-origin:4px 3px;transition:transform .24s ease-out,opacity .18s ease-out;transform:scale(.6)}.marketing-cursor[data-clicking=true] .cursor-ring{opacity:.3;transform:scale(1)}html[data-typing=true] [data-testid=note-mine] li:last-child p:after{content:"";vertical-align:-.1em;border-right:1.5px solid;height:1em;animation:.9s step-end infinite demo-caret;display:inline-block}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child){position:relative}html[data-typing=true] [data-testid=note-mine] li:last-child p:has(>br:only-child):after{position:absolute;top:50%;left:0;translate:0 -50%}@keyframes demo-caret{50%{opacity:0}}html[data-fragment]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.marketing-fragment{min-width:0;position:absolute;inset:24px 24px auto}.marketing-fragment .transcript-toolbar,.marketing-fragment .transcript-player-dock,.marketing-fragment .ask-conversation-head,.marketing-fragment .ask-composer,.marketing-fragment .chat-answer-actions{display:none}.fragment-transcript .transcript-inline [data-testid=transcript]{flex:none;gap:20px;padding:0;overflow:hidden}.fragment-transcript .transcript-turn{min-width:0;margin:0}.fragment-transcript .turn-head{align-self:stretch}.fragment-transcript .line-who{flex:1}.fragment-transcript .turn-time{display:none}.fragment-transcript .transcript-turn[data-track=me]>p.sr-only{clip:auto;clip-path:none;white-space:normal;text-align:right;width:auto;height:auto;font-size:var(--text-xs);line-height:var(--text-xs--line-height);color:var(--muted);align-self:stretch;margin:0;padding:0;display:flex;position:static;overflow:visible}.fragment-transcript [data-testid=transcript-empty],.fragment-transcript .loading-placeholder{display:none}.marketing-fragment .ask-thread{padding:0;overflow:visible}.marketing-fragment .ask-turn>.ask-question{order:0}.fragment-byline{color:var(--muted);order:1;align-items:center;gap:9px;font-size:12px;display:flex}.marketing-fragment .ask-turn>:is(.chat-progress,.chat-answer){order:2}.marketing-fragment .ask-turn>.chat-progress{margin:0}.marketing-fragment .ask-turn>.chat-answer{margin-left:29px}html[data-fragment-playing=false] *{animation-play-state:paused!important}.fragment-ask .ask-turn{position:relative}.fragment-ask .ask-turn>.chat-progress{left:29px;top:var(--fragment-answer-top);visibility:hidden;position:absolute}@media (width<=320px){.marketing-fragment{inset:20px 20px auto}.marketing-fragment .bubble,.marketing-fragment .ask-question,.marketing-fragment .chat-answer{font-size:15px}}.marketing-window [data-testid=transcript-who],.fragment-transcript [data-testid=transcript-who]{visibility:visible;animation:none}.fragment-plan{position:relative}.fragment-plan-size{visibility:hidden;pointer-events:none}.fragment-plan-live{position:absolute;inset:0}html[data-ask-focused=true] [data-testid=chat-suggestions]{visibility:hidden}
/*$vite$:1*/
\ No newline at end of file
diff --git a/site/public/marketing/app/renderer.js b/site/public/marketing/app/renderer.js
index f3c5821c..7a1efd3f 100644
--- a/site/public/marketing/app/renderer.js
+++ b/site/public/marketing/app/renderer.js
@@ -9,14 +9,14 @@ Publish the page Tuesday. Send the announcement Wednesday morning, after checkin
Lincoln announces it Wednesday.`,y=(e,t,n,r,i)=>({id:e,meetingId:`sample-meeting`,track:`them`,speaker:t,speakerColor:[`Kara Moore`,`Ray Mones`,`Lincoln Park`].indexOf(t),text:n,startMs:r,endMs:i,hidden:!1}),b=[y(1,`Kara Moore`,`The launch page is ready for review.`,709e3,712e3)],x=[{from:1.5,to:4.5,line:y(2,`Ray Mones`,`Support has the checklist. We can publish Tuesday.`,721500,724500)},{from:5.2,to:7.5,line:y(3,`Lincoln Park`,`I’ll send the announcement on Wednesday morning.`,725200,727500)}],S=(e,t)=>e.split(` `).slice(0,Math.ceil(e.split(` `).length*Math.max(0,Math.min(1,t)))).join(` `);function C(e){let t=e>=l.resume,n=t?0:e,r=[...b];for(let e of x)r.push({...e.line,hidden:n<e.to});r.sort((e,t)=>e.startMs-t.startMs);let i=x.find(e=>n>=e.from&&n<e.to);return{transcript:r,partial:i?S(i.line.text,(n-i.from)/(i.to-i.from)):``,partialStart:i?.line.startMs??0,state:t||e<l.finish?`recording`:e<l.summary?`stopped`:`done`,status:t||e<l.finish?`idle`:e<l.summary?`writing`:`done`,mine:u+(!t&&e>=l.type-1.1?`
- `+d.slice(0,h.filter(t=>t<=e).length):``),draft:t||e<l.summaryStart?``:g.slice(0,Math.floor(321*Math.min(1,(e-l.summaryStart)/(l.summary-l.summaryStart)))),tab:e<l.notes||e>=l.transcript?`note-transcript-toggle`:e<l.finish||t?`note-notes-tab`:`note-summary-tab`,askFocused:e>=l.askFocus&&e<l.send,question:e<l.question?``:_.slice(0,Math.ceil(22*Math.min(1,(e-l.question)/2))),answer:e<l.answer?``:S(v,(e-l.answer)/(l.answered-l.answer))}}var w=Date.now(),T=new Date(w).setHours(0,0,0,0),E={id:`sample-meeting`,title:`Launch planning`,startedAt:Math.max(w-72e4,T),endedAt:null,durationMs:72e4,state:`recording`,eventId:null,app:null,language:`english`,titleSource:`user`,attendees:[`Kara Moore`,`Ray Mones`,`Lincoln Park`,`Charlotte Goode`].map(e=>({name:e}))},D=[{id:`launch`,name:`Launch`,color:`violet`},{id:`hiring`,name:`Hiring`,color:`teal`},{id:`customer-calls`,name:`Customer calls`,color:`amber`}].map((e,t)=>({...e,icon:`folder`,createdAt:E.startedAt,position:t})),O={meetingId:E.id,mine:u,enhanced:null,edited:!1,status:`idle`,draft:``,peopleChanged:!1,saves:{mine:{revision:0,status:`saved`},enhanced:{revision:0,status:`saved`}}},k=[{n:1,meetingId:E.id,title:E.title,startedAt:E.startedAt,atMs:721500,excerpt:`Ray Mones: Support has the checklist. We can publish Tuesday.
-Lincoln Park: I’ll send the announcement on Wednesday morning.`,transcript:{speakers:[`Kara Moore`,`Ray Mones`,`Lincoln Park`],lines:[{track:`them`,speaker:`Ray Mones`,text:`Support has the checklist. We can publish Tuesday.`,startMs:721500},{track:`them`,speaker:`Lincoln Park`,text:`I’ll send the announcement on Wednesday morning.`,startMs:725200}]}}],A=[{kind:`meeting`,id:E.id,title:E.title,startedAt:E.startedAt}],j={id:`sample-conversation`,title:`Launch date`,chips:A,draft:``,draftChips:[],firstChips:null,turns:[],waitsForMeeting:!1,waitsForModel:!1},M=new URLSearchParams(location.search).get(`fragment`),N=()=>{},P=()=>N,F=e=>async()=>structuredClone(e),I=Object.fromEntries([`widget`,`level`,`segment`,`speakers`,`partial`,`reset`,`meeting`,`notes`,`chat`].map(e=>{let t=new Set;return[e,{on:e=>(t.add(e),()=>{t.delete(e)}),emit:e=>t.forEach(t=>t(structuredClone(e)))}]})),L=I.reset.on,R=new URLSearchParams(location.search).get(`still`),ee=Number(R),z=R===null?0:Math.max(0,Math.min(39,R===``||!Number.isFinite(ee)?33:ee)),te=!1,ne=C(z).transcript,re=JSON.stringify(ne),ie=``,ae=``,B=0,oe,V,se;O.mine=V=C(z).mine;var ce=(e,t,n)=>(O.mine=t,O.saves.mine={revision:n,status:`saved`},structuredClone(O.saves.mine)),le=()=>E.state===`recording`?{kind:`recording`,meetingId:E.id,title:E.title,elapsedMs:72e4+(z>=l.resume?0:z)*1e3,at:Date.now(),note:null}:null;window.yogurt={platform:`darwin`,fake:!0,setup:{state:F({}),onState:P},widget:{state:async()=>le(),onState:I.widget.on,onLevel:I.level.on},meetings:{get:F(E),onChange:I.meeting.on,stop:async()=>{},resume:async()=>(document.documentElement.dataset.resumeClicked=`true`,{id:E.id})},notes:{get:F(O),onChange:I.notes.on,onFlushRequest:P,keptEdits:N,setMine:async(...e)=>ce(...e),setEnhanced:F({revision:0,status:`failed`}),flushSync:(e,t,n,r)=>t===`mine`?ce(e,n,r):{revision:r,status:`saved`}},transcript:{get:async()=>structuredClone(ne),onSpeakers:I.speakers.on,onSegment:I.segment.on,onPartial:I.partial.on},conversations:{current:F(j.id),get:F(j),onChange:I.chat.on,targets:F(A),warm:N,draft:async(e,t)=>{j.draft=t},ask:async(e,t)=>(t===`When are we launching?`&&(document.documentElement.dataset.questionSent=`true`),j.draft=``,j.id),stop:async()=>{}},settings:{get:F({theme:`dark`,locale:`en`,systemLocale:`en`,language:``,spoken:`en`,myName:`You`,macName:`You`,recordingReminder:!1}),onLanguage:P},audio:{tracks:F([]),onDeleted:P,mics:F({devices:[],choice:null,using:`Mac microphone`,defaultName:`Mac microphone`}),onMics:P},folders:{suggestion:F(null),of:F([D[0]]),list:F(D),onChange:P},onboarding:{nudge:F([])},nav:{go:N,takeAsk:F(!1),onAsk:P},share:{copy:F(`failed`),save:F(`cancelled`)}},HTMLElement.prototype.focus=N,R!==null&&(document.documentElement.dataset.still=``);var ue=window.setInterval.bind(window);window.setInterval=(e,t,...n)=>ue(()=>{te&&R===null&&e(...n)},t);var de=e=>document.querySelector(`[data-testid="${e}"]`),fe=(e,t=!0)=>e?.dispatchEvent(new MouseEvent(`click`,{bubbles:!0,cancelable:!0,detail:+!!t}));function pe(e){let t=de(`note-mine`)?.editor;if(t&&(se!==t||V!==e.mine)){se=t,V=e.mine,t.commands.setContent({type:`doc`,content:[{type:`bulletList`,content:e.mine.split(`
-`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:e.slice(2)?[{type:`text`,text:e.slice(2)}]:[]}]}))}]});let n=0;t.state.doc.descendants((e,t)=>{e.isTextblock&&(n=t+1+e.content.size)}),t.commands.setTextSelection(n)}}function me(e){document.activeElement?.blur();let t=de(e.tab);(R!==null||e.tab!==`note-summary-tab`)&&t&&t!==oe&&(oe=t,t.getAttribute(`aria-selected`)!==`true`&&fe(t,z>=l.notes)),z>=l.ask&&z<l.close&&de(`chat-open`)?.getAttribute(`aria-expanded`)!==`true`&&fe(de(`chat-open`)),z>=l.close&&de(`chat-close`)&&!document.documentElement.dataset.chatClosed&&(fe(de(`chat-close`)),document.documentElement.dataset.chatClosed=`true`),z>=l.resume&&!document.documentElement.dataset.resumeClicked&&fe(de(`note-resume`)),pe(e),document.documentElement.dataset.typing=String(z>=l.type&&z<l.typed);let n=de(`chat-input`);e.askFocused&&document.documentElement.dataset.askFocused!==`true`&&fe(n),document.documentElement.dataset.askFocused=String(e.askFocused),n&&z<l.send&&n.value!==e.question&&(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,e.question),n.dispatchEvent(new Event(`input`,{bubbles:!0}))),z>=l.send&&z<l.close&&!document.documentElement.dataset.questionSent&&(n&&n.value!==`When are we launching?`?(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,_),n.dispatchEvent(new Event(`input`,{bubbles:!0}))):de(`chat-send`)&&!de(`chat-send`).disabled&&de(`chat-box`)?.dispatchEvent(new Event(`submit`,{bubbles:!0,cancelable:!0})))}var he=[{id:`note-notes-tab`,start:l.notes-1.2,at:l.notes},{id:`note-stop`,start:l.finish-1.3,at:l.finish},{id:`chat-open`,start:l.ask-1.3,at:l.ask},{id:`chat-input`,start:l.ask+.2,at:l.askFocus},{id:`chat-send`,start:l.send-1.1,at:l.send},{id:`chat-close`,start:l.close-1.1,at:l.close},{id:`note-resume`,start:l.resume-1.1,at:l.resume},{id:`note-transcript-toggle`,start:l.transcript-1.1,at:l.transcript},{id:`home`,start:l.transcript+.2,at:39}],ge,_e,ve=0;function ye(e=z){let t=document.querySelector(`.marketing-cursor`);if(!t)return;let n={x:(window.innerWidth||1e3)*.75-4,y:(window.innerHeight||608)*.82-3};!_e&&!ge&&(t.style.transform=`translate(${n.x}px,${n.y}px)`);let r=he.findLast(t=>e>=t.start);if(t.style.opacity=r&&e<r.at+(r.id===`note-notes-tab`?.2:.35)&&(R===null||r.id!==`home`)?`1`:`0`,r?.id===`chat-input`&&(t.style.opacity=String(Math.max(0,Math.min(1,1-(e-r.at-.15)/.2)))),t.dataset.clicking=String(!!r&&r.id!==`home`&&e>=r.at&&e<r.at+.15),r){if(r!==ge){let{x:i,y:a}=n;if(r.id!==`home`){let e=de(r.id);if(!e)return;let t=e.getBoundingClientRect();if(!t.width||!t.height)return;i=t.x+t.width*.6-4,a=t.y+t.height*.6-3}let o=t.getBoundingClientRect();if(r.id===`note-stop`){let e=de(`note-mine`)?.editor;if(!e)return;let t=e.view.coordsAtPos(e.state.selection.to);if(t.bottom<=t.top)return;o={x:t.left+10,y:t.bottom+8}}let s=r.id===`chat-input`?(r.at-r.start-.1)*1e3:Math.max(240,Math.hypot(i-o.x,a-o.y)/.6);_e?.cancel(),_e=t.animate([{transform:`translate(${o.x}px,${o.y}px)`},{transform:`translate(${i}px,${a}px)`}],{duration:s,easing:`cubic-bezier(.45,0,.25,1)`,fill:`both`}),_e.pause(),ge=r,ve=R===null?Math.max(r.start,e-1/60):r.start}_e.currentTime=Math.max(0,(e-ve)*1e3)}}function be(e,t=[.4,.65,.5]){let n=e<z;z=e;let r=C(z);pe(r),ye(),n&&(delete document.documentElement.dataset.chatClosed,delete document.documentElement.dataset.resumeClicked,delete document.documentElement.dataset.questionSent),z>=l.finish&&z<l.resume&&E.state===`recording`&&fe(de(`note-stop`)),E.state!==r.state&&(E.state=r.state,E.endedAt=r.state===`recording`?null:E.startedAt+72e4+l.finish*1e3,I.meeting.emit()),ne=r.transcript,JSON.stringify(ne)!==re&&(re=JSON.stringify(ne),ne.filter(e=>!e.hidden).forEach(e=>I.segment.emit(e)),I.speakers.emit(E.id));let i=r.partial.split(` `).filter(Boolean).map((e,t)=>({text:e,startMs:r.partialStart+t*200,endMs:r.partialStart+t*200+150}));I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),Object.assign(O,{status:r.status,enhanced:r.status===`done`?g:null,draft:r.draft}),JSON.stringify(O)!==ie&&(ie=JSON.stringify(O),I.notes.emit(O)),j.turns=z<l.send||z>=l.resume?[]:[{id:1,question:_,answer:r.answer+(z>=l.answered?`[1]`:``),status:z<l.answered?`answering`:`done`,step:z<l.answer?{kind:`loading`}:{kind:`reading`,title:E.title},sources:k,scope:A}],j.firstChips=j.turns.length?A:null,JSON.stringify(j)!==ae&&(ae=JSON.stringify(j),I.chat.emit(j)),z<1.5&&R===null&&(t=[.45+.2*Math.sin(z*9),.55+.18*Math.sin(z*13)]);let a=Array.isArray(t)?Math.max(0,...t.slice(0,3).map(e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0)):0,o={me:E.state===`recording`?a:0,them:E.state===`recording`?a:0};I.level.emit(o),I.widget.emit(le()),n&&!de(`note-transcript-toggle`)&&I.reset.emit(),me(r),cancelAnimationFrame(B);let s=6,c=()=>{me(C(z)),I.level.emit(o),I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),--s&&(B=requestAnimationFrame(c))};B=requestAnimationFrame(c)}function xe(){let e=()=>{de(`note-transcript-toggle`)&&(z===0&&(me(C(z)),document.querySelectorAll(`[data-testid=transcript-who]`).length<C(0).transcript.filter(e=>!e.hidden).length)||(t.disconnect(),be(z),requestAnimationFrame(()=>requestAnimationFrame(()=>{document.documentElement.dataset.ready=`true`,window.parent.postMessage({type:`yogurt-hero-ready`,duration:39},location.origin)}))))},t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),e(),()=>t.disconnect()}window.addEventListener(`message`,e=>{M||e.source!==window.parent||e.origin!==location.origin||(e.data?.type===`yogurt-hero-cursor`&&Number.isFinite(e.data.seconds)&&ye(Math.max(0,Math.min(39,e.data.seconds))),e.data?.type===`yogurt-hero-time`&&Number.isFinite(e.data.seconds)&&be(Math.max(0,Math.min(39,e.data.seconds)),e.data.bands),e.data?.type===`yogurt-hero-playing`&&typeof e.data.playing==`boolean`&&(te=e.data.playing,document.documentElement.dataset.playing=String(te)))});function Se(e){j.turns=e?[{id:1,...e,sources:k,scope:A}]:[],j.firstChips=A,I.chat.emit(j)}function Ce(e,t){ne=e;for(let t of e)I.segment.emit(t);I.speakers.emit(E.id),I.partial.emit({meetingId:E.id,...t})}var we=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ee(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(ee.bind(null,e))}var z={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=z,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ee,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),Te=o(((e,t)=>{t.exports=we()})),Ee=o((e=>{var t=Te();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),De=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ee()})),H=c(Te()),Oe=c(De()),ke=/^(#{1,3})\s+(.*)$/,Ae=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,je=`\\*_[]<#-+.)`;function Me(e,t,n){for(let r=e.indexOf(t,n);r!==-1;r=e.indexOf(t,r+1)){let t=0;for(let n=r-1;n>=0&&e[n]===`\\`;n--)t++;if(t%2==0)return r}return-1}function Ne(e,t,n){if(t[0]!==`*`)return Me(e,t,n);let r=!1;for(let i=Me(e,`*`,n);i!==-1;i=Me(e,`*`,i)){let n=i+1;for(;e[n]===`*`;)n++;let a=n-i;if(a>=t.length&&(t.length===2||a!==2)){let e=r?t.length===2?1:2:0;if(a>=t.length+e)return i+e}r=!r,i=n}return-1}var Pe=(e,t)=>e.type===t.type&&(e.type!==`link`||t.type===`link`&&e.attrs.href===t.attrs.href),Fe=/<\/?(m(i(n(e)?)?)?)?$/;function Ie(e,t,n=[]){t.streaming&&(e=e.replace(Fe,``));let r=[],i=``,a=()=>{if(!i)return;let e=r.at(-1);e&&e.text!==void 0&&JSON.stringify(e.marks??[])===JSON.stringify(n)?e.text+=i:r.push(n.length?{type:`text`,text:i,marks:n}:{type:`text`,text:i}),i=``},o=(e,i)=>{a();for(let a of Ie(e,{...t,streaming:!1},[...n,i]))Le(r,a)},s=(e,i)=>{a();for(let a of Ie(e,t,[...n,i]))Le(r,a)},c=0;for(;c<e.length;){let l=e.slice(c),u=c>0?e[c-1]:` `;if(l[0]===`\\`&&l.length>1&&je.includes(l[1])){i+=l[1],c+=2;continue}if(t.inlineCode&&l[0]==="`"){let e=/^`+/.exec(l)[0],i=l.slice(e.length),o=RegExp("(?<!`)"+e+"(?!`)").exec(i);if(o||t.streaming){let t=i.slice(0,o?.index).replace(/\n/g,` `);/^ .* $/.test(t)&&/\S/.test(t)&&(t=t.slice(1,-1)),a(),r.push({type:`text`,text:t,marks:[...n,{type:`code`}]}),c+=e.length+(o?o.index+e.length:i.length);continue}}if(l.startsWith(`<mine>`)){let t=Me(e,`</mine>`,c+6);if(t!==-1){o(e.slice(c+6,t),{type:`mine`}),c=t+7;continue}return s(e.slice(c+6),{type:`mine`}),r}if(l.startsWith(`</mine>`)){c+=7;continue}let d=l.startsWith(`***`)?Me(e,`*`,c+3):-1,f=d!==-1&&e.slice(d,d+2)===`**`&&e[d+2]!==`*`;if(l.startsWith(`**`)&&!f||l.startsWith(`__`)&&!/\w/.test(u)){let n=l.slice(0,2),i=Ne(e,n,c+2);if(i>c+2){o(e.slice(c+2,i),{type:`bold`}),c=i+2;continue}if(t.streaming&&i===-1)return s(e.slice(c+2),{type:`bold`}),r}if(l[0]===`*`&&l[1]!==` `&&(l[1]!==`*`||f)||l[0]===`_`&&!/\w/.test(u)&&l[1]!==`_`){let n=l[0],i=Ne(e,n,c+1);for(;n===`_`&&i!==-1&&/\w/.test(e[i+1]??``);)i=Me(e,n,i+1);if(i>c+1&&e[i-1]!==` `){o(e.slice(c+1,i),{type:`italic`}),c=i+1;continue}if(t.streaming&&i===-1&&l.length>1)return s(e.slice(c+1),{type:`italic`}),r}if(l[0]===`[`){let e=/^\[((?:\\.|[^\]\\])+)\]\(([^)\s]+)\)/.exec(l);if(e){o(e[1],{type:`link`,attrs:{href:e[2]}}),c+=e[0].length;continue}if(t.streaming&&/^\[[^\]]*(\]\([^)]*)?$/.test(l)){i+=l.slice(1).replace(/\]\(.*$/,``);break}}i+=e[c],c++}return a(),r}function Le(e,t){let n=e.at(-1);n&&n.text!==void 0&&t.text!==void 0&&JSON.stringify(n.marks??[])===JSON.stringify(t.marks??[])?n.text+=t.text:e.push(t)}var Re=(e,t)=>{let n=Ie(e,t);return n.length?{type:`paragraph`,content:n}:{type:`paragraph`}};function ze(e,t={}){t.streaming&&(e=e.trimEnd().replace(/(^|\n)[\t ]*(?:[-*+]|\d+[.)]|#{1,6})$/,``).trimEnd());let n=[],r=[];for(let i of e.replace(/\r\n?/g,`
+Lincoln Park: I’ll send the announcement on Wednesday morning.`,transcript:{speakers:[`Kara Moore`,`Ray Mones`,`Lincoln Park`],lines:[{track:`them`,speaker:`Ray Mones`,text:`Support has the checklist. We can publish Tuesday.`,startMs:721500},{track:`them`,speaker:`Lincoln Park`,text:`I’ll send the announcement on Wednesday morning.`,startMs:725200}]}}],A=[{kind:`meeting`,id:E.id,title:E.title,startedAt:E.startedAt}],j={id:`sample-conversation`,title:`Launch date`,chips:A,draft:``,draftChips:[],firstChips:null,turns:[],waitsForMeeting:!1,waitsForModel:!1},M=new URLSearchParams(location.search).get(`fragment`),N=()=>{},P=()=>N,F=e=>async()=>structuredClone(e),I=Object.fromEntries([`widget`,`level`,`segment`,`speakers`,`partial`,`reset`,`meeting`,`notes`,`chat`].map(e=>{let t=new Set;return[e,{on:e=>(t.add(e),()=>{t.delete(e)}),emit:e=>t.forEach(t=>t(structuredClone(e)))}]})),L=I.reset.on,R=new URLSearchParams(location.search).get(`still`),ee=Number(R),z=R===null?0:Math.max(0,Math.min(39,R===``||!Number.isFinite(ee)?33:ee)),te=!1,ne=C(z).transcript,re=JSON.stringify(ne),ie=``,B=``,ae=0,oe,V,se;O.mine=V=C(z).mine;var ce=(e,t,n)=>(O.mine=t,O.saves.mine={revision:n,status:`saved`},structuredClone(O.saves.mine)),le=()=>E.state===`recording`?{kind:`recording`,meetingId:E.id,title:E.title,elapsedMs:72e4+(z>=l.resume?0:z)*1e3,at:Date.now(),note:null}:null;window.yogurt={platform:`darwin`,fake:!0,capabilities:{calendar:!1,callNames:!1,permissionPrompts:!1,mediaPause:!1},setup:{state:F({}),onState:P},updates:{status:F({version:``,available:!1,on:!1,state:`idle`}),onStatus:P},widget:{state:async()=>le(),onState:I.widget.on,onLevel:I.level.on},meetings:{get:F(E),onChange:I.meeting.on,stop:async()=>{},resume:async()=>(document.documentElement.dataset.resumeClicked=`true`,{id:E.id})},notes:{get:F(O),onChange:I.notes.on,onFlushRequest:P,keptEdits:N,setMine:async(...e)=>ce(...e),setEnhanced:F({revision:0,status:`failed`}),flushSync:(e,t,n,r)=>t===`mine`?ce(e,n,r):{revision:r,status:`saved`}},transcript:{get:async()=>structuredClone(ne),onSpeakers:I.speakers.on,onSegment:I.segment.on,onPartial:I.partial.on},conversations:{current:F(j.id),get:F(j),onChange:I.chat.on,targets:F(A),warm:N,draft:async(e,t)=>{j.draft=t},ask:async(e,t)=>(t===`When are we launching?`&&(document.documentElement.dataset.questionSent=`true`),j.draft=``,j.id),stop:async()=>{}},settings:{get:F({theme:`dark`,locale:`en`,systemLocale:`en`,language:``,spoken:`en`,myName:`You`,macName:`You`,recordingReminder:!1}),onLanguage:P},audio:{tracks:F([]),onDeleted:P,mics:F({devices:[],choice:null,using:`Mac microphone`,defaultName:`Mac microphone`}),onMics:P},folders:{suggestion:F(null),of:F([D[0]]),list:F(D),onChange:P},onboarding:{nudge:F([])},nav:{go:N,takeAsk:F(!1),onAsk:P},share:{copy:F(`failed`),save:F(`cancelled`)}},HTMLElement.prototype.focus=N,R!==null&&(document.documentElement.dataset.still=``);var ue=window.setInterval.bind(window);window.setInterval=(e,t,...n)=>ue(()=>{te&&R===null&&e(...n)},t);var de=e=>document.querySelector(`[data-testid="${e}"]`),fe=(e,t=!0)=>e?.dispatchEvent(new MouseEvent(`click`,{bubbles:!0,cancelable:!0,detail:+!!t}));function pe(e){let t=de(`note-mine`)?.editor;if(t&&(se!==t||V!==e.mine)){se=t,V=e.mine,t.commands.setContent({type:`doc`,content:[{type:`bulletList`,content:e.mine.split(`
+`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:e.slice(2)?[{type:`text`,text:e.slice(2)}]:[]}]}))}]});let n=0;t.state.doc.descendants((e,t)=>{e.isTextblock&&(n=t+1+e.content.size)}),t.commands.setTextSelection(n)}}function me(e){document.activeElement?.blur();let t=de(e.tab);(R!==null||e.tab!==`note-summary-tab`)&&t&&t!==oe&&(oe=t,t.getAttribute(`aria-selected`)!==`true`&&fe(t,z>=l.notes)),z>=l.ask&&z<l.close&&de(`chat-open`)?.getAttribute(`aria-expanded`)!==`true`&&fe(de(`chat-open`)),z>=l.close&&de(`chat-close`)&&!document.documentElement.dataset.chatClosed&&(fe(de(`chat-close`)),document.documentElement.dataset.chatClosed=`true`),z>=l.resume&&!document.documentElement.dataset.resumeClicked&&fe(de(`note-resume`)),pe(e),document.documentElement.dataset.typing=String(z>=l.type&&z<l.typed);let n=de(`chat-input`);e.askFocused&&document.documentElement.dataset.askFocused!==`true`&&fe(n),document.documentElement.dataset.askFocused=String(e.askFocused),n&&z<l.send&&n.value!==e.question&&(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,e.question),n.dispatchEvent(new Event(`input`,{bubbles:!0}))),z>=l.send&&z<l.close&&!document.documentElement.dataset.questionSent&&(n&&n.value!==`When are we launching?`?(Object.getOwnPropertyDescriptor(HTMLTextAreaElement.prototype,`value`).set.call(n,_),n.dispatchEvent(new Event(`input`,{bubbles:!0}))):de(`chat-send`)&&!de(`chat-send`).disabled&&de(`chat-box`)?.dispatchEvent(new Event(`submit`,{bubbles:!0,cancelable:!0})))}var he=[{id:`note-notes-tab`,start:l.notes-1.2,at:l.notes},{id:`note-stop`,start:l.finish-1.3,at:l.finish},{id:`chat-open`,start:l.ask-1.3,at:l.ask},{id:`chat-input`,start:l.ask+.2,at:l.askFocus},{id:`chat-send`,start:l.send-1.1,at:l.send},{id:`chat-close`,start:l.close-1.1,at:l.close},{id:`note-resume`,start:l.resume-1.1,at:l.resume},{id:`note-transcript-toggle`,start:l.transcript-1.1,at:l.transcript},{id:`home`,start:l.transcript+.2,at:39}],ge,_e,ve=0;function ye(e=z){let t=document.querySelector(`.marketing-cursor`);if(!t)return;let n={x:(window.innerWidth||1e3)*.75-4,y:(window.innerHeight||608)*.82-3};!_e&&!ge&&(t.style.transform=`translate(${n.x}px,${n.y}px)`);let r=he.findLast(t=>e>=t.start);if(t.style.opacity=r&&e<r.at+(r.id===`note-notes-tab`?.2:.35)&&(R===null||r.id!==`home`)?`1`:`0`,r?.id===`chat-input`&&(t.style.opacity=String(Math.max(0,Math.min(1,1-(e-r.at-.15)/.2)))),t.dataset.clicking=String(!!r&&r.id!==`home`&&e>=r.at&&e<r.at+.15),r){if(r!==ge){let{x:i,y:a}=n;if(r.id!==`home`){let e=de(r.id);if(!e)return;let t=e.getBoundingClientRect();if(!t.width||!t.height)return;i=t.x+t.width*.6-4,a=t.y+t.height*.6-3}let o=t.getBoundingClientRect();if(r.id===`note-stop`){let e=de(`note-mine`)?.editor;if(!e)return;let t=e.view.coordsAtPos(e.state.selection.to);if(t.bottom<=t.top)return;o={x:t.left+10,y:t.bottom+8}}let s=r.id===`chat-input`?(r.at-r.start-.1)*1e3:Math.max(240,Math.hypot(i-o.x,a-o.y)/.6);_e?.cancel(),_e=t.animate([{transform:`translate(${o.x}px,${o.y}px)`},{transform:`translate(${i}px,${a}px)`}],{duration:s,easing:`cubic-bezier(.45,0,.25,1)`,fill:`both`}),_e.pause(),ge=r,ve=R===null?Math.max(r.start,e-1/60):r.start}_e.currentTime=Math.max(0,(e-ve)*1e3)}}function be(e,t=[.4,.65,.5]){let n=e<z;z=e;let r=C(z);pe(r),ye(),n&&(delete document.documentElement.dataset.chatClosed,delete document.documentElement.dataset.resumeClicked,delete document.documentElement.dataset.questionSent),z>=l.finish&&z<l.resume&&E.state===`recording`&&fe(de(`note-stop`)),E.state!==r.state&&(E.state=r.state,E.endedAt=r.state===`recording`?null:E.startedAt+72e4+l.finish*1e3,I.meeting.emit()),ne=r.transcript,JSON.stringify(ne)!==re&&(re=JSON.stringify(ne),ne.filter(e=>!e.hidden).forEach(e=>I.segment.emit(e)),I.speakers.emit(E.id));let i=r.partial.split(` `).filter(Boolean).map((e,t)=>({text:e,startMs:r.partialStart+t*200,endMs:r.partialStart+t*200+150}));I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),Object.assign(O,{status:r.status,enhanced:r.status===`done`?g:null,draft:r.draft}),JSON.stringify(O)!==ie&&(ie=JSON.stringify(O),I.notes.emit(O)),j.turns=z<l.send||z>=l.resume?[]:[{id:1,question:_,answer:r.answer+(z>=l.answered?`[1]`:``),status:z<l.answered?`answering`:`done`,step:z<l.answer?{kind:`loading`}:{kind:`reading`,title:E.title},sources:k,scope:A}],j.firstChips=j.turns.length?A:null,JSON.stringify(j)!==B&&(B=JSON.stringify(j),I.chat.emit(j)),z<1.5&&R===null&&(t=[.45+.2*Math.sin(z*9),.55+.18*Math.sin(z*13)]);let a=Array.isArray(t)?Math.max(0,...t.slice(0,3).map(e=>Number.isFinite(e)?Math.max(0,Math.min(1,e)):0)):0,o={me:E.state===`recording`?a:0,them:E.state===`recording`?a:0};I.level.emit(o),I.widget.emit(le()),n&&!de(`note-transcript-toggle`)&&I.reset.emit(),me(r),cancelAnimationFrame(ae);let s=6,c=()=>{me(C(z)),I.level.emit(o),I.partial.emit({meetingId:E.id,track:`them`,startMs:r.partialStart,text:r.partial,words:i}),--s&&(ae=requestAnimationFrame(c))};ae=requestAnimationFrame(c)}function xe(){let e=()=>{de(`note-transcript-toggle`)&&(z===0&&(me(C(z)),document.querySelectorAll(`[data-testid=transcript-who]`).length<C(0).transcript.filter(e=>!e.hidden).length)||(t.disconnect(),be(z),requestAnimationFrame(()=>requestAnimationFrame(()=>{document.documentElement.dataset.ready=`true`,window.parent.postMessage({type:`yogurt-hero-ready`,duration:39},location.origin)}))))},t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0}),e(),()=>t.disconnect()}window.addEventListener(`message`,e=>{M||e.source!==window.parent||e.origin!==location.origin||(e.data?.type===`yogurt-hero-cursor`&&Number.isFinite(e.data.seconds)&&ye(Math.max(0,Math.min(39,e.data.seconds))),e.data?.type===`yogurt-hero-time`&&Number.isFinite(e.data.seconds)&&be(Math.max(0,Math.min(39,e.data.seconds)),e.data.bands),e.data?.type===`yogurt-hero-playing`&&typeof e.data.playing==`boolean`&&(te=e.data.playing,document.documentElement.dataset.playing=String(te)))});function Se(e){j.turns=e?[{id:1,...e,sources:k,scope:A}]:[],j.firstChips=A,I.chat.emit(j)}function Ce(e,t){ne=e;for(let t of e)I.segment.emit(t);I.speakers.emit(E.id),I.partial.emit({meetingId:E.id,...t})}var we=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ee(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(ee.bind(null,e))}var z={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=z,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ee,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),Te=o(((e,t)=>{t.exports=we()})),Ee=o((e=>{var t=Te();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),De=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ee()})),H=c(Te()),Oe=c(De()),ke=/^(#{1,3})\s+(.*)$/,Ae=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,je=`\\*_[]<#-+.)`;function Me(e,t,n){for(let r=e.indexOf(t,n);r!==-1;r=e.indexOf(t,r+1)){let t=0;for(let n=r-1;n>=0&&e[n]===`\\`;n--)t++;if(t%2==0)return r}return-1}function Ne(e,t,n){if(t[0]!==`*`)return Me(e,t,n);let r=!1;for(let i=Me(e,`*`,n);i!==-1;i=Me(e,`*`,i)){let n=i+1;for(;e[n]===`*`;)n++;let a=n-i;if(a>=t.length&&(t.length===2||a!==2)){let e=r?t.length===2?1:2:0;if(a>=t.length+e)return i+e}r=!r,i=n}return-1}var Pe=(e,t)=>e.type===t.type&&(e.type!==`link`||t.type===`link`&&e.attrs.href===t.attrs.href),Fe=/<\/?(m(i(n(e)?)?)?)?$/;function Ie(e,t,n=[]){t.streaming&&(e=e.replace(Fe,``));let r=[],i=``,a=()=>{if(!i)return;let e=r.at(-1);e&&e.text!==void 0&&JSON.stringify(e.marks??[])===JSON.stringify(n)?e.text+=i:r.push(n.length?{type:`text`,text:i,marks:n}:{type:`text`,text:i}),i=``},o=(e,i)=>{a();for(let a of Ie(e,{...t,streaming:!1},[...n,i]))Le(r,a)},s=(e,i)=>{a();for(let a of Ie(e,t,[...n,i]))Le(r,a)},c=0;for(;c<e.length;){let l=e.slice(c),u=c>0?e[c-1]:` `;if(l[0]===`\\`&&l.length>1&&je.includes(l[1])){i+=l[1],c+=2;continue}if(t.inlineCode&&l[0]==="`"){let e=/^`+/.exec(l)[0],i=l.slice(e.length),o=RegExp("(?<!`)"+e+"(?!`)").exec(i);if(o||t.streaming){let t=i.slice(0,o?.index).replace(/\n/g,` `);/^ .* $/.test(t)&&/\S/.test(t)&&(t=t.slice(1,-1)),a(),r.push({type:`text`,text:t,marks:[...n,{type:`code`}]}),c+=e.length+(o?o.index+e.length:i.length);continue}}if(l.startsWith(`<mine>`)){let t=Me(e,`</mine>`,c+6);if(t!==-1){o(e.slice(c+6,t),{type:`mine`}),c=t+7;continue}return s(e.slice(c+6),{type:`mine`}),r}if(l.startsWith(`</mine>`)){c+=7;continue}let d=l.startsWith(`***`)?Me(e,`*`,c+3):-1,f=d!==-1&&e.slice(d,d+2)===`**`&&e[d+2]!==`*`;if(l.startsWith(`**`)&&!f||l.startsWith(`__`)&&!/\w/.test(u)){let n=l.slice(0,2),i=Ne(e,n,c+2);if(i>c+2){o(e.slice(c+2,i),{type:`bold`}),c=i+2;continue}if(t.streaming&&i===-1)return s(e.slice(c+2),{type:`bold`}),r}if(l[0]===`*`&&l[1]!==` `&&(l[1]!==`*`||f)||l[0]===`_`&&!/\w/.test(u)&&l[1]!==`_`){let n=l[0],i=Ne(e,n,c+1);for(;n===`_`&&i!==-1&&/\w/.test(e[i+1]??``);)i=Me(e,n,i+1);if(i>c+1&&e[i-1]!==` `){o(e.slice(c+1,i),{type:`italic`}),c=i+1;continue}if(t.streaming&&i===-1&&l.length>1)return s(e.slice(c+1),{type:`italic`}),r}if(l[0]===`[`){let e=/^\[((?:\\.|[^\]\\])+)\]\(([^)\s]+)\)/.exec(l);if(e){o(e[1],{type:`link`,attrs:{href:e[2]}}),c+=e[0].length;continue}if(t.streaming&&/^\[[^\]]*(\]\([^)]*)?$/.test(l)){i+=l.slice(1).replace(/\]\(.*$/,``);break}}i+=e[c],c++}return a(),r}function Le(e,t){let n=e.at(-1);n&&n.text!==void 0&&t.text!==void 0&&JSON.stringify(n.marks??[])===JSON.stringify(t.marks??[])?n.text+=t.text:e.push(t)}var Re=(e,t)=>{let n=Ie(e,t);return n.length?{type:`paragraph`,content:n}:{type:`paragraph`}};function ze(e,t={}){t.streaming&&(e=e.trimEnd().replace(/(^|\n)[\t ]*(?:[-*+]|\d+[.)]|#{1,6})$/,``).trimEnd());let n=[],r=[];for(let i of e.replace(/\r\n?/g,`
`).split(`
`)){let e=i.replace(/\s+$/,``);if(!e.trim()){r=[],n.push({type:`paragraph`});continue}let a=Ae.exec(e);if(a){let e=a[1].replace(/\t/g,` `).length,i=/\d/.test(a[2])?`orderedList`:`bulletList`;for(;r.length&&r.at(-1).indent>e;)r.pop();let o=r.at(-1);o&&o.indent===e&&o.list.type!==i&&(r.pop(),o=r.at(-1));let s={type:`listItem`,content:[Re(a[3],t)]};if(o&&o.indent===e)o.list.content.push(s);else{let t=i===`orderedList`?{type:i,attrs:{start:Number(a[2].replace(/\D/g,``))||1},content:[s]}:{type:i,content:[s]};o?o.list.content.at(-1).content.push(t):n.push(t),r.push({indent:e,list:t})}continue}r=[];let o=ke.exec(e.trim());if(o){let e=Ie(o[2],t);n.push(e.length?{type:`heading`,attrs:{level:o[1].length},content:e}:{type:`heading`,attrs:{level:o[1].length}})}else n.push(Re(i,t))}return t.streaming&&Ve(n),{type:`doc`,content:n.length?n:[{type:`paragraph`}]}}var Be=e=>!!e.text?.trim()||!!e.content?.some(Be);function Ve(e){for(;e.length&&!Be(e.at(-1));)e.pop();let t=e.at(-1);t?.content&&/List$|^listItem$/.test(t.type)&&Ve(t.content)}var He={link:()=>`[`,mine:()=>`<mine>`,bold:()=>`**`,italic:()=>`*`},Ue={link:e=>`](${e.type===`link`?e.attrs.href:``})`,mine:()=>`</mine>`,bold:()=>`**`,italic:()=>`*`},We=[`mine`,`link`,`bold`,`italic`],Ge=e=>e.replace(/[\\*_[\]]/g,`\\$&`).replace(/<(?=\/?mine>)/g,`\\<`),Ke=e=>e.replace(/^(\s*)([#+-])/,`$1\\$2`).replace(/^(\s*\d+)([.)])(?=\s)/,`$1\\$2`);function qe(e=[]){let t=``,n=[];for(let[r,i]of e.entries()){if(i.type===`hardBreak`){t+=` `;continue}let a=t=>{let n=r+1;for(;n<e.length&&e[n].marks?.some(e=>Pe(e,t));)n++;return n},o=(i.marks??[]).filter(e=>e.type!==`code`).sort((e,t)=>[`bold`,`italic`].includes(e.type)&&[`bold`,`italic`].includes(t.type)&&a(t)-a(e)||We.indexOf(e.type)-We.indexOf(t.type)),s=0;for(;s<n.length&&s<o.length&&Pe(n[s],o[s]);)s++;for(let e=n.length-1;e>=s;e--)t+=Ue[n[e].type](n[e]);for(let e=s;e<o.length;e++)t+=He[o[e].type](o[e]);n=o;let c=i.text??``;if(i.marks?.some(e=>e.type===`code`)){let e="`".repeat(Math.max(0,...[...c.matchAll(/`+/g)].map(e=>e[0].length))+1),n=/^[` ]|[` ]$/.test(c)?` `:``;t+=`${e}${n}${c}${n}${e}`}else t+=Ge(c)}for(let e=n.length-1;e>=0;e--)t+=Ue[n[e].type](n[e]);return t}function Je(e,t,n){let r=Number(e.attrs?.start??1);for(let i of e.content??[]){let a=e.type===`orderedList`?`${r++}. `:`- `,[o,...s]=i.content??[];n.push(`${t}${a}${o?.type===`paragraph`?qe(o.content):``}`);let c=t+` `.repeat(a.length);for(let e of o?.type===`paragraph`?s:i.content??[])e.type===`bulletList`||e.type===`orderedList`?Je(e,c,n):e.type===`paragraph`&&n.push(`${c}${Ke(qe(e.content))}`)}}function Ye(e){let t=[];for(let n of e.content??[])n.type===`heading`?t.push(`${`#`.repeat(Number(n.attrs?.level??2))} ${qe(n.content)}`):n.type===`bulletList`||n.type===`orderedList`?Je(n,``,t):n.type===`paragraph`&&t.push(Ke(qe(n.content)));return t.join(`
`)}var Xe=/\[(\d+(?:\s*,\s*\d+)*)\]/g,Ze=/\[\d+(?:\s*,\s*\d+)*\](?:\s*(?:,|;|&|and)?\s*\[\d+(?:\s*,\s*\d+)*\])*/g,Qe=4,$e=e=>[...e.matchAll(Xe)].flatMap(e=>e[1].split(`,`).map(e=>Number(e.trim())));function et(e,t){let n=new Map(t.map(e=>[e.n,e.meetingId])),r=new Set(n.values()).size;return e.replace(Ze,e=>{let t=new Set,i=$e(e).filter(e=>{let r=n.get(e);return r===void 0||t.has(r)?!1:(t.add(r),!0)});return r>=Qe&&t.size>r/2?``:i.length?`[${i.join(`, `)}]`:``}).replace(/ +([.,;:!?])/g,`$1`).replace(/ +$/gm,``).replace(/ {2,}/g,` `)}var tt=/[.!?…](?=$|[\s"'”’)\]]|\p{Lu})/u,nt=/^[ \t]*([.!?…"'”’)\]]+)/u;function rt(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.type!==`citation`){i.text&&n.push(i);continue}for(;n.at(-1)?.type===`text`;){let e=n.at(-1);if(e.text=e.text.trimEnd(),e.text)break;n.pop()}let a=n.map(e=>e.text??``).join(``),o=e.slice(r+1).map(e=>e.text??``).join(``),s=/[.!?…]["'”’)\]]*$/.test(a),c=nt.exec(o),l=c?o.slice(c[0].length):o;if(c&&(s||tt.test(c[1]+l)&&/[.!?…]/.test(c[1])||!t&&!l.trim())){let t=c[0].length,i=t-c[1].length;for(let a=r+1;t&&e[a]?.type===`text`;a++){let r=e[a],o=Math.min(t,r.text.length),s=r.text.slice(Math.min(i,o),o);s&&n.push({...r,text:s}),r.text=r.text.slice(o),i=Math.max(0,i-o),t-=o}}(!t||s||tt.test(o)||/^\s+["“(]*\p{Lu}/u.test(o))&&(i.attrs.gap=/[\p{L}\p{N}\p{M}]$/u.test(n.at(-1)?.text??``),n.push(i))}let r=ct(n.map(e=>e.text??``).join(``)),i=0;for(let e of n)e.type===`citation`&&(e.attrs.sentence=r.find(e=>i>e.index&&i<=e.end)?.text??``),i+=e.text?.length??0;let a=[];for(let e of n){if(e.type!==`citation`){a.push(e);continue}let t=[e];for(;a.at(-1)?.type===`text`;){let e=a.at(-1),n=/\S+$/.exec(e.text??``);if(!n)break;if(a.pop(),t.unshift({...e,text:n[0]}),n.index){a.push({...e,text:e.text.slice(0,n.index)});break}}a.push(t.length>1?{type:`citationAnchor`,content:t}:e)}return a}function it(e,t,n=!1){let r=ze(et(n?e.replace(/\[[\d,\s]*$/,``):e,t).replace(/\n{2,}/g,`
`),{streaming:n}),i=new Map(t.map(e=>[e.n,e.meetingId])),a=new Map,o=e=>e.content?.length&&e.type!==`paragraph`&&e.type!==`heading`?o(e.content.at(-1)):e,s=n?o(r):null,c=e=>{if(e.type!==`text`){if(!e.content)return[e];let t=e.content.flatMap(c);return[{...e,content:e.type===`paragraph`||e.type===`heading`?rt(t,e===s):t}]}let t=e.text??``,n=[],r=0;for(let o of t.matchAll(Xe)){o.index>r&&n.push({...e,text:t.slice(r,o.index)});let s=[];for(let e of o[1].split(`,`).map(Number)){let t=i.get(e);t!==void 0&&(a.has(t)||a.set(t,a.size+1),s.push({source:e,number:a.get(t)}))}s.length&&n.push({type:`citation`,attrs:{marks:s,length:o[0].length}}),r=o.index+o[0].length}return r<t.length&&n.push({...e,text:t.slice(r)}),n};return c(r)[0]}function at(e){let t=ze(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}),n=e=>e.type===`paragraph`||e.type===`heading`?[e.content??[]]:(e.content??[]).flatMap(n);return n(t)}var ot=e=>at(e).map(e=>e.map(e=>e.text??``).join(``)).join(`
`),st=new Intl.Segmenter(void 0,{granularity:`sentence`});function ct(e){let t=0;return e.split(`
-`).flatMap(e=>{let n=t;return t+=e.length+1,[...st.segment(e)].filter(e=>e.segment.trim()).map(e=>({text:e.segment.trim(),index:n+e.index,end:n+e.index+e.segment.length}))})}var lt=new Set(`a an and are as at be been but by can did do for from had has have he her his how i in is it its me my of on or our she so that the their them there these they this to was we were what when which who will with would you your`.split(` `)),ut=e=>new Set((e.toLowerCase().match(/[\p{L}\p{N}]+/gu)??[]).filter(e=>!lt.has(e)));function dt(e,t){let n=ct(ot(e)).map(e=>e.text),r=ut(t),i=0,a=-1;return n.forEach((e,t)=>{let n=[...ut(e)].filter(e=>r.has(e)).length;n>a&&(i=t,a=n)}),{before:n[i-1]??``,match:n[i]??``,after:n[i+1]??``}}var ft=e=>e.normalize(`NFKC`).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,` `).trim();function pt(e,t,n=0){let r=ft(t);if(!r)return-1;let i=e.map(e=>ft(ot(e))),a=e=>e.sort((e,t)=>Math.abs(e-n)-Math.abs(t-n))[0]??-1,o=a(i.flatMap((e,t)=>e.includes(r)?[t]:[]));if(o>=0)return o;let s=ft(t.replace(/^[^:\n]{1,80}:\s*/,``)),c=i.join(` `).indexOf(s);if(s&&c>=0){let e=0;return i.findIndex(t=>(e+=t.length+1,e>c))}return a(i.flatMap((e,t)=>e&&r.includes(e)?[t]:[]))}var mt={"Reading the transcript…":`Reading the transcript…`,"Link event":`Link event`,"No events":`No events`,"Go to {date}":`Go to {date}`,"Previous day":`Previous day`,"Next day":`Next day`,"Resume notes · {title}":`Resume notes · {title}`,"Take notes · {title}":`Take notes · {title}`,"Take notes · {count} now":{one:`Take notes · {count} now`,other:`Take notes · {count} now`},Now:`Now`,"in {count} min":{one:`in {count} min`,other:`in {count} min`},"Has notes":`Has notes`,"No matching meetings with {name}.":`No matching meetings with {name}.`,"No matching meetings on {date}.":`No matching meetings on {date}.`,"No matching meetings with {name} on {date}.":`No matching meetings with {name} on {date}.`,"Meetings with {name}":`Meetings with {name}`,"{count} min":{one:`{count} min`,other:`{count} min`},"Starts in {count} min":{one:`Starts in {count} min`,other:`Starts in {count} min`},"Exported {count} meetings":{one:`Exported 1 meeting`,other:`Exported {count} meetings`},"Added {count} meetings.":{one:`Added 1 meeting.`,other:`Added {count} meetings.`},"{count} were already here.":{one:`1 was already here.`,other:`{count} were already here.`},"{count} meetings":{one:`1 meeting`,other:`{count} meetings`},"Meetings in the Trash are deleted for good after {count} days, with their recordings.":{one:`Meetings in the Trash are deleted for good after 1 day, with their recordings.`,other:`Meetings in the Trash are deleted for good after {count} days, with their recordings.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this Mac for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this computer for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.`},"{count} languages supported":{one:`{count} language supported`,other:`{count} languages supported`},"and {count} more":{one:`and {count} more`,other:`and {count} more`},"{count} left":{one:`{count} left`,other:`{count} left`},"Downloading AI":`Downloading AI`,"Downloading AI · {percent}":`Downloading AI · {percent}`,"Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.":`Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.`,"Yogurt's AI is ready. Summaries and Ask now work.":`Yogurt's AI is ready. Summaries and Ask now work.`,"AI download stopped":`AI download stopped`,"{done} of {total} GB":`{done} of {total} GB`,"{progress} · about {minutes} min left":`{progress} · about {minutes} min left`,"{count} selected":{one:`{count} selected`,other:`{count} selected`},"Add {count} meetings to folder":{one:`Add {count} meeting to folder`,other:`Add {count} meetings to folder`},"Move {count} meetings to Trash":{one:`Move {count} meeting to Trash`,other:`Move {count} meetings to Trash`},"{count} meetings moved to Trash":{one:`{count} meeting moved to Trash`,other:`{count} meetings moved to Trash`},"Upgrading AI":`Upgrading AI`,"Upgrading AI · {percent}":`Upgrading AI · {percent}`,"AI upgrade paused":`AI upgrade paused`,"Skip for now":`Skip for now`,"Better notes model":`Better notes model`,"Download ({size} GB)":`Download ({size} GB)`,"Couldn't change the notes model. Try again.":`Couldn't change the notes model. Try again.`,"Notes use this model. Removing it brings back the smaller one.":`Notes use this model. Removing it brings back the smaller one.`,"Getting the smaller model · {progress}":`Getting the smaller model · {progress}`,"The larger model keeps running summaries and Ask until then, and is removed after.":`The larger model keeps running summaries and Ask until then, and is removed after.`,"Removing…":`Removing…`,"Open Settings":`Open Settings`,"Download stopped":`Download stopped`,"Upgrade paused":`Upgrade paused`,"You can record meetings. AI summaries and Ask work when this finishes.":`You can record meetings. AI summaries and Ask work when this finishes.`,"Once this model is ready, we'll remove the old one.":`Once this model is ready, we'll remove the old one.`,"More detailed, accurate notes. Replaces the current model, so you don't keep both.":`More detailed, accurate notes. Replaces the current model, so you don't keep both.`,"about {minutes} min left":`about {minutes} min left`,"AI upgrade skipped":`AI upgrade skipped`,Suggested:`Suggested`,"Dismiss suggestion":`Dismiss suggestion`,"Delete recording":`Delete recording`,"Delete recording?":`Delete recording?`,"The audio is deleted for good. Your transcript and notes stay.":`The audio is deleted for good. Your transcript and notes stay.`,"Keep the audio until the transcript is saved.":`Keep the audio until the transcript is saved.`,"Couldn't delete the recording. Try again.":`Couldn't delete the recording. Try again.`,"Keep audio recordings after meetings":`Keep audio recordings after meetings`,"Recording deleted":`Recording deleted`,"When off, new meetings' audio is deleted once the summary is saved.":`When off, new meetings' audio is deleted once the summary is saved.`,Settings:`Settings`,"New recording":`New recording`,"Hide events without a call link":`Hide events without a call link`,"Keep your agenda and reminders focused on calls.":`Keep your agenda and reminders focused on calls.`,"Show earlier lines":`Show earlier lines`,"{count} more results":{one:`{count} more result`,other:`{count} more results`},"Search meetings and folders":`Search meetings and folders`,"Search…":`Search…`,"All meetings":`All meetings`,"Choose meetings or folders":`Choose meetings or folders`,"In this chat":`In this chat`,"and {count} others":{one:`and {count} other`,other:`and {count} others`},"{count} more":{one:`{count} more`,other:`{count} more`},Clear:`Clear`,"Searched {name}":`Searched {name}`,"Searched all meetings":`Searched all meetings`},ht=[{id:`en`,name:`English`,english:`English`},{id:`ar`,name:`العربية`,english:`Arabic`,rtl:!0},{id:`bn`,name:`বাংলা`,english:`Bengali`},{id:`zh-CN`,name:`简体中文`,english:`Chinese (Simplified)`},{id:`zh-TW`,name:`繁體中文`,english:`Chinese (Traditional)`},{id:`cs`,name:`Čeština`,english:`Czech`},{id:`da`,name:`Dansk`,english:`Danish`},{id:`nl`,name:`Nederlands`,english:`Dutch`},{id:`fil`,name:`Filipino`,english:`Filipino`},{id:`fi`,name:`Suomi`,english:`Finnish`},{id:`fr`,name:`Français`,english:`French`},{id:`de`,name:`Deutsch`,english:`German`},{id:`el`,name:`Ελληνικά`,english:`Greek`},{id:`he`,name:`עברית`,english:`Hebrew`,rtl:!0},{id:`hi`,name:`हिन्दी`,english:`Hindi`},{id:`hu`,name:`Magyar`,english:`Hungarian`},{id:`id`,name:`Bahasa Indonesia`,english:`Indonesian`},{id:`it`,name:`Italiano`,english:`Italian`},{id:`ja`,name:`日本語`,english:`Japanese`},{id:`ko`,name:`한국어`,english:`Korean`},{id:`ms`,name:`Bahasa Melayu`,english:`Malay`},{id:`nb`,name:`Norsk`,english:`Norwegian`},{id:`pl`,name:`Polski`,english:`Polish`},{id:`pt-BR`,name:`Português`,english:`Portuguese`},{id:`ro`,name:`Română`,english:`Romanian`},{id:`ru`,name:`Русский`,english:`Russian`},{id:`es`,name:`Español`,english:`Spanish`},{id:`sv`,name:`Svenska`,english:`Swedish`},{id:`th`,name:`ไทย`,english:`Thai`},{id:`tr`,name:`Türkçe`,english:`Turkish`},{id:`uk`,name:`Українська`,english:`Ukrainian`},{id:`vi`,name:`Tiếng Việt`,english:`Vietnamese`}],gt=e=>ht.find(t=>t.id===e)?.rtl?`rtl`:`ltr`,_t=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":mt})).map(([e,t])=>[e.replace(/^.*\/|\.json$/g,``),t]));function vt(e,t,n,r){let i=e[t]?.[n]??e.en?.[n]??n;if(typeof i!=`string`){let e=typeof r?.count==`number`?r.count:0;i=i[new Intl.PluralRules(t).select(e)]??i.other??n}return r?i.replace(/\{(\w+)\}/g,(e,n)=>{let i=r[n];return i===void 0?e:typeof i==`number`?new Intl.NumberFormat(t).format(i):i}):i}var yt=`en`,bt=new Set,xt=()=>yt;function St(e){return bt.add(e),()=>{bt.delete(e)}}var U=(e,t)=>vt(_t,yt,e,t),Ct=e=>e,wt={folder:Ct(`Folder`),star:Ct(`Star`),heart:Ct(`Heart`),flag:Ct(`Flag`),bookmark:Ct(`Bookmark`),briefcase:Ct(`Briefcase`),users:Ct(`People`),handshake:Ct(`Handshake`),message:Ct(`Conversation`),video:Ct(`Video`),calendar:Ct(`Calendar`),clock:Ct(`Clock`),target:Ct(`Target`),lightbulb:Ct(`Idea`),rocket:Ct(`Rocket`),code:Ct(`Code`),palette:Ct(`Palette`),megaphone:Ct(`Megaphone`),graduation:Ct(`Graduation cap`),book:Ct(`Book`),flask:Ct(`Flask`),coffee:Ct(`Coffee`),house:Ct(`House`),plane:Ct(`Plane`)},Tt={default:Ct(`Default`),violet:Ct(`Purple`),blue:Ct(`Blue`),teal:Ct(`Teal`),green:Ct(`Green`),amber:Ct(`Amber`),orange:Ct(`Orange`),rose:Ct(`Pink`)},Et={icon:`folder`,color:`default`},Dt=Object.keys(Tt).filter(e=>e!=="default");function Ot(e,t,n){let r=e===`them`&&t?n.indexOf(t):-1;return r<0?void 0:r%Dt.length}function kt(e,t){e.indexOf(t)===-1&&e.push(t)}function At(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function jt([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var Mt=(e,t,n)=>n>t?t:n<e?e:n,Nt={},Pt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ft=e=>typeof e==`object`&&!!e,It=e=>/^0[^.\s]+$/u.test(e);function Lt(e){let t;return()=>(t===void 0&&(t=e()),t)}var Rt=e=>e,zt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Bt=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Vt=class{constructor(){this.subscriptions=[]}add(e){return kt(this.subscriptions,e),()=>this.remove(e)}remove(e){At(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Ht=e=>e*1e3,Ut=e=>e/1e3,Wt=(e,t)=>t?1e3/t*e:0,Gt=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Kt=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function qt(e,t,n,r){return e===t&&n===r?Rt:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Kt(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Kt(s+1e-7,e,n)-i-r)}return Kt(s,t,r)}}var Jt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yt=e=>t=>1-e(1-t),Xt=qt(.33,1.53,.69,.99),Zt=Yt(Xt),Qt=Jt(Zt),$t=e=>e>=1?1:(e*=2)<1?.5*Zt(e):.5*(2-2**(-10*(e-1))),en=e=>1-Math.sin(Math.acos(e)),tn=Yt(en),nn=Jt(en),rn=qt(.42,0,1,1),an=qt(0,0,.58,1),on=qt(.42,0,.58,1),sn=e=>Array.isArray(e)&&typeof e[0]!=`number`;function cn(e,t){return sn(e)?e[Gt(0,e.length,t)]:e}var ln=e=>Array.isArray(e)&&typeof e[0]==`number`,un={linear:Rt,easeIn:rn,easeInOut:on,easeOut:an,circIn:en,circInOut:nn,circOut:tn,backIn:Zt,backInOut:Qt,backOut:Xt,anticipate:$t},dn=e=>typeof e==`string`,fn=e=>{if(ln(e)){e.length;let[t,n,r,i]=e;return qt(t,n,r,i)}return dn(e)?(un[e],`${e}`,un[e]):e},pn={delta:0,timestamp:0,isProcessing:!1},mn;function hn(){mn=void 0}var gn={now:()=>(mn===void 0&&gn.set(pn.isProcessing||Nt.useManualTiming?pn.timestamp:performance.now()),mn),set:e=>{mn=e,queueMicrotask(hn)}},_n=e=>Math.round(e*1e5)/1e5,vn=e=>t=>typeof t==`string`&&t.startsWith(e),yn=vn(`--`),bn=vn(`var(--`),xn=e=>bn(e)?Sn.test(e.split(`/*`)[0].trim()):!1,Sn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Cn(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var wn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Tn={...wn,transform:e=>Mt(0,1,e)},En={...wn,default:1},Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function On(e){return e==null}var kn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,An=(e,t)=>n=>!!(typeof n==`string`&&kn.test(n)&&n.startsWith(e)||t&&!On(n)&&Object.prototype.hasOwnProperty.call(n,t)),jn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Dn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Mn=e=>Mt(0,255,e),Nn={...wn,transform:e=>Math.round(Mn(e))},Pn={test:An(`rgb`,`red`),parse:jn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Nn.transform(e)+`, `+Nn.transform(t)+`, `+Nn.transform(n)+`, `+_n(Tn.transform(r))+`)`};function Fn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var In={test:An(`#`),parse:Fn,transform:Pn.transform},Ln=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rn=Ln(`deg`),zn=Ln(`%`),W=Ln(`px`),Bn=Ln(`vh`),Vn=Ln(`vw`),Hn={...zn,parse:e=>zn.parse(e)/100,transform:e=>zn.transform(e*100)},Un={test:An(`hsl`,`hue`),parse:jn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+zn.transform(_n(t))+`, `+zn.transform(_n(n))+`, `+_n(Tn.transform(r))+`)`},Wn={test:e=>Pn.test(e)||In.test(e)||Un.test(e),parse:e=>Pn.test(e)?Pn.parse(e):Un.test(e)?Un.parse(e):In.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Pn.transform(e):Un.transform(e),getAnimatableNone:e=>{let t=Wn.parse(e);return t.alpha=0,Wn.transform(t)}},Gn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Kn=new RegExp(Dn.source),qn=new RegExp(Gn.source,`i`);function Jn(e){return isNaN(e)&&typeof e==`string`&&(Kn.test(e)||qn.test(e))}var Yn=`number`,Xn=`color`,Zn=`var`,Qn=`var(`,$n="${}",er=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function tr(e){let t=e.toString();return Kn.test(t)||qn.test(t)}function nr(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(er,e=>(Wn.test(e)?(r.color.push(a),i.push(Xn),n.push(Wn.parse(e))):e.startsWith(Qn)?(r.var.push(a),i.push(Zn),n.push(e)):(r.number.push(a),i.push(Yn),n.push(parseFloat(e))),++a,$n)).split($n),indexes:r,types:i}}function rr(e){return nr(e).values}function ir({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Yn?_n(r[a]):e===Xn?Wn.transform(r[a]):r[a]}return i}}function ar(e){return ir(nr(e))}var or=e=>typeof e==`number`?0:Wn.test(e)?Wn.getAnimatableNone(e):e,sr=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:or(e);function cr(e){let t=nr(e);return ir(t)(t.values.map((e,n)=>sr(e,t.split[n])))}var lr={test:Jn,parse:rr,createTransformer:ar,getAnimatableNone:cr};function ur(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ur(s,r,e+1/3),a=ur(s,r,e),o=ur(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function fr(e,t){return n=>n>0?t:e}var pr=(e,t,n)=>e+(t-e)*n,mr=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},hr=[In,Pn,Un],gr=e=>hr.find(t=>t.test(e));function _r(e){let t=gr(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Un&&(n=dr(n)),n}var vr=(e,t)=>{let n=_r(e),r=_r(t);if(!n||!r)return fr(e,t);let i={...n};return e=>(i.red=mr(n.red,r.red,e),i.green=mr(n.green,r.green,e),i.blue=mr(n.blue,r.blue,e),i.alpha=pr(n.alpha,r.alpha,e),Pn.transform(i))},yr=new Set([`none`,`hidden`]);function br(e,t){return yr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xr(e,t){return n=>pr(e,t,n)}function Sr(e){return typeof e==`number`?xr:typeof e==`string`?xn(e)?fr:Wn.test(e)?vr:Er:Array.isArray(e)?Cr:typeof e==`object`?Wn.test(e)?vr:wr:fr}function Cr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Sr(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function wr(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Sr(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Tr(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Er=(e,t)=>{let n=lr.createTransformer(t),r=nr(e),i=nr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?yr.has(e)&&!i.values.length||yr.has(t)&&!r.values.length?br(e,t):zt(Cr(Tr(r,i),i.values),n):(`${e}${t}`,fr(e,t))},Dr=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Or(e,t){let n=Dr.exec(e);if(!n)return;let r=Dr.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>_n(pr(a,o,e))+i}function kr(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return pr(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Or(e,t);if(n)return n}return Sr(e)(e,t)}var Ar=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function jr(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Mr=40;function Nr(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Ar.reduce((e,t)=>(e[t]=jr(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Nt.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Mr),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Ar.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ar.length;t++)o[Ar[t]].cancel(e)},state:n,steps:o}}var{schedule:Pr,cancel:Fr,steps:Ir}=Nr(typeof requestAnimationFrame<`u`?requestAnimationFrame:Rt,!0,pn),Lr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Pr.update(t,e),stop:()=>Fr(t),now:()=>pn.isProcessing?pn.timestamp:gn.now()}},Rr=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},zr=2e4;function Br(e,t=50,n=zr,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Vr(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Br(o),zr);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Ut(s)}}var Hr={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Ur=e=>e<0?1/Math.max(1+e,Hr.minDamping):Math.max(1-e,Hr.minDamping);function Wr(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return qr(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Gr(e,t){return e*Math.sqrt(1-t*t)}var Kr=12;function qr(e,t,n){let r=n;for(let n=1;n<Kr;n++)r-=e(r)/t(r);return r}var Jr=.001;function Yr({duration:e=Hr.duration,bounce:t=Hr.bounce}){let n,r;Hr.maxDuration;let i=Ur(t);e=Mt(Hr.minDuration,Hr.maxDuration,Ut(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Gr(t,i),o=Math.exp(-r);return Jr-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Gr(t*t,i);return(-n(t)+Jr>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=qr(n,r,a),s=o*Wr(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Ht(e)}}var Xr=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Zr(e,t){if(Xr(e,t))return e}function Qr(e){let t=Zr(e.stiffness),n=Zr(e.damping,!0),r=Zr(e.mass),i={...e,stiffness:t??Hr.stiffness,damping:n??Hr.damping,mass:r??Hr.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Ur(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Wr(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Yr(i)),i.isResolvedFromDuration=!0;Xr(i.stiffness)&&Xr(i.damping,!0)||(i.stiffness=Hr.stiffness,i.damping=Hr.damping)}return i}function $r(e=Hr.visualDuration,t=Hr.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Qr({...n}),f=e=>d?0:-Ut(e),p=s/(2*Math.sqrt(o*c)),m=Ut(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Hr.restSpeed.granular:Hr.restSpeed.default),g.restDelta=n.restDelta||(e?Hr.restDelta.granular:Hr.restDelta.default)};_();let v,y,b;if(p<1){let e=Gr(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>Ht(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Ht(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Br(S),zr),t=Rr(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}$r.applyToOptions=e=>{let t=Vr(e,100,$r);return e.ease=t.ease,e.duration=Ht(t.duration),e.type=`keyframes`,e};function ei({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=$r({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function ti(e,t,n){let r=[],i=n||Nt.mix||kr,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=zt(Array.isArray(t)?t[n]||Rt:t,a)),r.push(a)}return r}function ni(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ti(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Bt(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Mt(e[0],e[a-1],t)):l}function ri(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Bt(0,t,r);e.push(pr(n,1,i))}}function ii(e){let t=[0];return ri(t,e.length-1),t}function ai(e,t){return e.map(e=>e*t)}function oi(e,t){return e.map(()=>t||on).splice(0,e.length-1)}function si({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=sn(r)?r.map(fn):fn(r)||on,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(Nt.mix||kr)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?Mt(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=ni(ai(n&&n.length===t.length?n:ii(t),e),t,{ease:Array.isArray(i)?i:oi(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ci=5;function li(e,t,n){let r=Math.max(t-ci,0);return Wt(n-e(r),t-r)}function ui(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):li(t=>e.next(t).value,t,e.next(t).value)}var di=e=>e!==null;function fi(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(di),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var pi={decay:ei,inertia:ei,tween:si,keyframes:si,spring:$r};function mi(e){typeof e.type==`string`&&(e.type=pi[e.type])}var hi=40,gi=(e,t)=>t-e>hi&&!Nt.useManualTiming?t:e;function _i(e,t){return{kind:e,animation:t,timestamp:gn.now(),frameTimestamp:pn.timestamp,frameIsProcessing:pn.isProcessing}}function vi(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({..._i(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function yi(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({..._i(`layout-animation-start`,e),node:t})}catch{}}var bi=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},xi=e=>e/100,Si=e=>Math.round(e*1e4)/1e4,Ci=class extends bi{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==gn.now()&&this.tick(gn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),vi(this,this.options)}initAnimation(){let{options:e}=this;mi(e);let{type:t=si,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||si;s!==si&&typeof o[0]!=`number`&&(this.mixKeyframes=zt(xi,kr(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Br(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=gi(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==ei&&(f.value=fi(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Si((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==ei?fi(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=Mt(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return Ut(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ut(e)}get time(){return Ut(this.currentTime)}set time(e){e=Ht(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return ui(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(gn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ut(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Lr,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(gn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},wi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ti(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Dn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!wi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ei=/\b([a-z-]*)\(.*?\)/gu,Di={...lr,getAnimatableNone:e=>{let t=e.match(Ei);return t?t.map(Ti).join(` `):e}},Oi={...lr,getAnimatableNone:e=>{let t=lr.parse(e);return lr.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ki={...wn,transform:Math.round},Ai={rotate:Rn,pathRotation:Rn,rotateX:Rn,rotateY:Rn,rotateZ:Rn,scale:En,scaleX:En,scaleY:En,scaleZ:En,skew:Rn,skewX:Rn,skewY:Rn,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:Tn,originX:Hn,originY:Hn,originZ:W},ji={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...Ai,zIndex:ki,fillOpacity:Tn,strokeOpacity:Tn,numOctaves:ki},Mi={...ji,color:Wn,backgroundColor:Wn,outlineColor:Wn,fill:Wn,stroke:Wn,borderColor:Wn,borderTopColor:Wn,borderRightColor:Wn,borderBottomColor:Wn,borderLeftColor:Wn,filter:Di,WebkitFilter:Di,mask:Oi,WebkitMask:Oi},Ni=e=>Mi[e],Pi=new Set([Di,Oi]);function Fi(e,t){let n=Ni(e);return Pi.has(n)||(n=lr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Ii(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Li=e=>e*180/Math.PI,Ri=e=>Bi(Li(Math.atan2(e[1],e[0]))),zi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ri,rotateZ:Ri,skewX:e=>Li(Math.atan(e[1])),skewY:e=>Li(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bi=e=>(e%=360,e<0&&(e+=360),e),Vi=Ri,Hi=e=>Math.hypot(e[0],e[1]),Ui=e=>Math.hypot(e[4],e[5]),Wi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hi,scaleY:Ui,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Hi(e)+Ui(e))/2,rotateX:e=>Bi(Li(Math.atan2(e[6],e[5]))),rotateY:e=>Bi(Li(Math.atan2(-e[2],e[0]))),rotateZ:Vi,rotate:Vi,skewX:e=>Li(Math.atan(e[4])),skewY:e=>Li(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Gi(e){return+!!e.includes(`scale`)}function Ki(e,t){if(!e||e===`none`)return Gi(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Wi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zi,i=t}if(!i)return Gi(t);let a=r[t],o=i[1].split(`,`).map(Ji);return typeof a==`function`?a(o):o[a]}var qi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ki(n,t)};function Ji(e){return parseFloat(e.trim())}var Yi=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Xi=new Set([...Yi,`pathRotation`]),Zi=e=>e===wn||e===W,Qi=new Set([`x`,`y`,`z`]),$i=Yi.filter(e=>!Qi.has(e));function ea(e){let t=[];return $i.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var ta=new Set([`bottom`,`right`]);function na(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var ra={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>na(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>na(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Ki(e,`x`),y:({transform:e})=>Ki(e,`y`)};ra.translateX=ra.x,ra.translateY=ra.y;var ia=new Set,aa=!1,oa=!1,sa=!1;function ca(){if(oa){let e=[],t=new Set,n=new Set;ia.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ta.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ea(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}oa=!1,aa=!1,ia.forEach(e=>e.complete(sa)),ia.clear()}function la(){ia.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oa=!0)})}function ua(){sa=!0,la(),ca(),sa=!1}function da(e,t,n){if(typeof e==`string`){if(Pt(e)||It(e))return parseFloat(e);if(!lr.test(e)&&lr.test(n))return Fi(t,n)}return e??void 0}var fa=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ia.add(this),aa||(aa=!0,Pr.read(la),Pr.resolveKeyframes(ca))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=da(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Ii(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ia.delete(this)}cancel(){this.state===`scheduled`&&(ia.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},pa=e=>e.startsWith(`--`);function ma(e,t,n){pa(t)?e.style.setProperty(t,n):e.style[t]=n}var ha={};function ga(e,t){let n=Lt(e);return()=>ha[t]??n()}var _a=ga(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),va=ga(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ya=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ba={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ya([0,.65,.55,1]),circOut:ya([.55,0,1,.45]),backIn:ya([.31,.01,.66,-.59]),backOut:ya([.33,1.53,.69,.99])};function xa(e,t){if(e)return typeof e==`function`?va()?Rr(e,t):`ease-out`:ln(e)?ya(e):Array.isArray(e)?e.map(e=>xa(e,t)||ba.easeOut):ba[e]}function Sa(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xa(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ca(e){return typeof e==`function`&&`applyToOptions`in e}function wa({type:e,...t}){return Ca(e)&&va()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Ta=class extends bi{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wa(e);this.animation=Sa(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fi(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ma(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},vi(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Ut(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ut(e)}get time(){return Ut(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ht(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&_a()?(this.animation.timeline=e,t?.(this.animation),Rt):n(this)}},Ea={anticipate:$t,backInOut:Qt,circInOut:nn};function Da(e){return e in Ea}function Oa(e){typeof e.ease==`string`&&Da(e.ease)&&(e.ease=Ea[e.ease])}var ka=class extends Ta{constructor(e){Oa(e),mi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(gn.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Ci({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?Mt(0,10,a):0,s=this.sample(a);n&&r&&ma(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Aa=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(lr.test(e)||e===`0`)&&!e.startsWith(`url(`));function ja(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ma(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Aa(i,t),s=Aa(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):ja(e)||(n===`spring`||Ca(n))&&r}function Na(e){e.duration=0,e.type=`keyframes`}var Pa=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Fa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ia(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Fa.test(e[t]))return!0;return!1}var La=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ra=Lt(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function za(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Pa.has(n)||La.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ra()&&(Pa.has(n)||La.has(n)&&Ia(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ba=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Va={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ha=Yi.length;function Ua(e,t,n){let r=``,i=!0;for(let a=0;a<Ha;a++){let o=Yi[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ba(s,ji[o]);if(!c){i=!1;let t=Va[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ba(a,ji.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Wa=new WeakMap,Ga=200,Ka=.001,qa=.1,Ja=.001,Ya=100,Xa=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Za=(e,t)=>e-t,Qa=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(pr(e,t,i/n));return r},$a=e=>e.motionValue.owner,eo=e=>Wa.get(e),to=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),no=({name:e,motionValue:t})=>e&&Yi.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ra()&&va();function ro(e){let t=$a(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(to(t,`transform`)||`none`)===`none`&&!to(t,`pathRotation`)&&!t.projection?.isProjecting()}var io=class extends Ci{constructor(e){let t=$a(e).current,{driver:n=Lr}=e,r,i=ro(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=eo(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=eo(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return eo($a(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(gn.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ln(n)?ya(n):Xa(n)&&ba[n];if(o&&!i&&!r&&e.length===2&&t===si&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||si)===si?u||ii(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=gn.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||ao($a(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(gn.now())}get time(){return this.isAccelerated()?Ut(Mt(0,this.totalDuration,this.at(gn.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function ao(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?Yi:a){let a=r.get(s),c=t===void 0?to(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(Va[e]||e)+`(`+Ba(r[e],ji[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Ua(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=gn.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Ga,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Qa(t,n,i).concat(r).sort(Za),o=e=>Bt(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Ka>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Ka)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Ka)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Ka))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Si(t)+` `+Si(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Ja:qa))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=Qa(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Za))e>c&&o(c,e,0),c=e;return i.sort(Za)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Bt(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=Yi.filter(t=>{if(r.has(t))return!0;let n=i[t]=to(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,eo(t)===O&&Wa.delete(t),O.isJS||_(),!0),D=()=>{let t=gn.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=to(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<Ya)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,pn.isProcessing?Pr.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if(to(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Wa.set(t,O),O}var oo=class extends bi{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gn.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||fa;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=gn.now();let u=!0;Ma(e,i,a,o)||(u=!1,(Nt.instantAnimations||!s)&&l?.(fi(e,n,t)),e[0]=e[e.length-1],Na(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&za(n),p=!f&&no(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=gi(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new ka(n)}catch{m=new Ci(n)}}else m=p?new io(n):new Ci(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),ua()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},so=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return co(this.animations,`duration`)}get iterationDuration(){return co(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function co(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var lo=class extends so{then(e,t){return this.finished.finally(e).then(()=>{})}};function uo(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var fo=30,po=e=>!isNaN(parseFloat(e)),mo={current:void 0},ho=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=gn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=gn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=po(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Vt)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Vt,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){Pr.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){mo.current&&mo.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=gn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>fo)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,fo);return Wt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function go(e,t){return new ho(e,t)}function _o(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function vo(e,t){let n=e?.[t]??e?.default??e;return n===e?n:_o(n,e)}var yo={type:`spring`,stiffness:500,damping:25,restSpeed:10},bo=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xo={type:`keyframes`,duration:.8},So={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Co=(e,{keyframes:t})=>t.length>2?xo:Xi.has(e)?e.startsWith(`scale`)?bo(t[1]):yo:So,wo=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function To(e){for(let t in e)if(!wo.has(t))return!0;return!1}var Eo=(e,t,n,r={},i,a)=>o=>{let s=vo(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ht(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};To(s)||Object.assign(u,Co(e,u)),u.duration&&=Ht(u.duration),u.repeatDelay&&=Ht(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Na(u),u.delay===0&&(d=!0)),(Nt.instantAnimations||Nt.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Na(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fi(u.keyframes,s);if(e!==void 0){Pr.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Ci(u):new oo(u)},Do=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Oo(e){let t=Do.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ko(e,t,n=1){`${e}`;let[r,i]=Oo(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Pt(e)?parseFloat(e):e}return xn(i)?ko(i,t,n+1):i}function Ao(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function jo(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Ao(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Mo(e,t,n){return jo(e.getProps(),t,n,e)}var No=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Po=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Yi]),Fo=e=>Array.isArray(e);function Io(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,go(n))}function Lo(e){return Fo(e)?e[e.length-1]||0:e}function Ro(e,t){let{transitionEnd:n={},transition:r={},...i}=Mo(e,t)||{};i={...i,...n};for(let t in i)Io(e,t,Lo(i[t]))}var zo=e=>!!(e&&e.getVelocity);function Bo(e){return!!(zo(e)&&e.add)}function Vo(e,t){let n=e.getValue(`willChange`);if(Bo(n))return n.add(t);if(!n&&Nt.WillChange){let n=new Nt.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ho(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Uo=`data-`+Ho(`framerAppearId`);function Wo(e){return e.props[Uo]}var Go=typeof window<`u`;function Ko({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function qo(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?_o(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Ko(f,t))continue;let o={delay:n,...vo(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Pr.update(()=>r.set(i));continue}let p=!1;if(Go&&window.MotionHandoffAnimation){let n=Wo(e);if(n){let e=window.MotionHandoffAnimation(n,t,Pr);e!==null&&(o.startTime=e,p=!0)}}Vo(e,t);let m=l??e.shouldReduceMotion;r.start(Eo(t,r,i,m&&Po.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Pr.update(()=>{o&&Ro(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Jo(e,t,n={}){let r=Mo(e,t,No(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?qo(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Jo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+uo(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Yo(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Jo(e,t,n))):typeof t==`string`?Jo(e,t,n):Promise.all(qo(e,Mo(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Xo={test:e=>e===`auto`,parse:e=>e},Zo=e=>t=>t.test(e),Qo=[wn,W,zn,Rn,Vn,Bn,Xo],$o=e=>Qo.find(Zo(e));function es(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||It(e)}var ts=new Set([`auto`,`none`,`0`]);function ns(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ts.has(t)&&tr(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Fi(n,i))}var rs=class extends fa{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Cn(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),xn(r))){let i=ko(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Po.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=$o(r),o=$o(i);if(Cn(r)!==Cn(i)&&ra[n])this.needsMeasurement=!0;else if(a!==o){if(Zi(a)&&Zi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ra[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||es(e[t]))&&n.push(t);n.length&&ns(e,n,t)}measure(){let{element:e,name:t}=this;return ra[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},is=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],as=[];function ss(e){typeof e.test==`function`&&e.read,cs(e),as.unshift(e)}function cs(e){At(as,e)}function ls(e){return as.find(t=>t.test(e))}function us(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?Pr.update(()=>l.set(c)):(l.start(Eo(o,l,c,s&&Po.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>Pr.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function ds(e,t,n,r,i){return us(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=fs(i)??e.read(t,r,i),`${r}`}a=go(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function fs(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function ps(e){return Ft(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ms(e){return Ft(e)&&`ownerSVGElement`in e}function hs(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var gs=class{constructor(e=Pr.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function _s(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new gs(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var vs={};function ys(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(vs[i]||(vs[i]=(Va[i]||i)+`(`))+Ba(a,Ai[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Ba(i,Ai.pathRotation)+`)`),t||`none`}var bs=new Set([`originX`,`originY`,`originZ`]),xs=(e,t)=>Ba(e.get(t)?.get(),ji[t]),Ss=(e,t,n,r)=>{let i,a;if(Xi.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Yi.indexOf(e)-Yi.indexOf(t)))}t.get(`transform`)||(!ps(e)&&!t.get(`transformBox`)&&Ss(e,t,`transformBox`,new ho(`fill-box`)),t.set(`transform`,new ho(`none`),()=>{Wa.get(e)?.check(),e.style.transform=ys(t)})),a=t.get(`transform`)}else bs.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new ho(``),()=>{let n=xs(t,`originX`)??`50%`,r=xs(t,`originY`)??`50%`,i=xs(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=pa(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ba(r.getCurrent(),ji[n])};return t.set(n,r,i,a)},Cs=e=>ps(e)||ms(e),ws=(e,t)=>{if(Xi.has(t))return qi(e,t);let n=getComputedStyle(e),r=pa(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Ts=_s(Ss,{test:Cs,read:ws});function Es(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Xi.has(e))o=!0;else if(yn(e))i[e]=n;else{let t=Ba(n,ji[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ua(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Ds={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Os={offset:`strokeDashoffset`,array:`strokeDasharray`};function ks(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ds:Os;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var As=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function js(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Es(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of As)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ks(d,i,a,o,!1)}function Ms(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Ns=(e,t,n,r,i=n)=>{let a=Ms(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Ho(i));let o=ji[n]||ji[i],s=a?()=>{e[i]=Ba(r.get(),ji[n])}:()=>{let t=Ba(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ps(e,t,n,r){return Pr.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new ho(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Fs=_s((e,t,n,r)=>n.startsWith(`path`)&&!Xi.has(n)?Ps(e,t,n,r):n.startsWith(`attr`)?Ns(e,t,n,r,Is(n)):(Xi.has(n)||bs.has(n)||pa(n)||n in e.style?Ss:Ns)(e,t,n,r),{test:ms,read:(e,t)=>Xi.has(t)?ji[t]?.default||0:pa(t)||As.includes(t)?ws(e,t)||e.getAttribute(Ho(t))||0:(t=Is(t),e.getAttribute(Ho(t))??e.getAttribute(t)??void 0)});function Is(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ls({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Rs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zs(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Bs(e){return e===void 0||e===1}function Vs({scale:e,scaleX:t,scaleY:n}){return!Bs(e)||!Bs(t)||!Bs(n)}function Hs(e){return Vs(e)||Us(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Us(e){return Ws(e.x)||Ws(e.y)}function Ws(e){return e&&e!==`0%`}function Gs(e,t,n){return n+t*(e-n)}function Ks(e,t,n,r,i){return i!==void 0&&(e=Gs(e,i,r)),Gs(e,n,r)+t}function qs(e,t=0,n=1,r,i){e.min=Ks(e.min,t,n,r,i),e.max=Ks(e.max,t,n,r,i)}function Js(e,{x:t,y:n}){qs(e.x,t.translate,t.scale,t.originPoint),qs(e.y,n.translate,n.scale,n.originPoint)}var Ys=.999999999999,Xs=1.0000000000001;function Zs(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Qs(e.x,-a.scroll.offset.x),Qs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Js(e,o)),r&&Hs(a.latestValues)&&tc(e,a.latestValues,a.layout?.layoutBox))}t.x<Xs&&t.x>Ys&&(t.x=1),t.y<Xs&&t.y>Ys&&(t.y=1)}function Qs(e,t){e.min+=t,e.max+=t}function $s(e,t,n,r,i=.5){qs(e,t,n,pr(e.min,e.max,i),r)}function ec(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function tc(e,t,n){let r=n??e;$s(e.x,ec(t.x,r.x),t.scaleX,t.scale,t.originX),$s(e.y,ec(t.y,r.y),t.scaleY,t.scale,t.originY)}function nc(e,t){return Ls(zs(e.getBoundingClientRect(),t))}function rc(e,t,n){let r=nc(e,n),{scroll:i}=t;return i&&(Qs(r.x,i.offset.x),Qs(r.y,i.offset.y)),r}var ic={},ac=e=>ms(e)?Fs:Ts,oc=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=rs}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return nc(this.current)}getProps(){return ic}};function sc(e,t,n,r){if(r)return us(e=>r.getValue(e,null),t,n,r);let i=ac(e);return ds(i,e,t,n,new oc(i,e))}var cc=_s((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ft(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:lc,cancel:uc}=Nr(queueMicrotask,!1);function dc(e,t,n){let r=zo(e)?e:go(e);return r.start(Eo(``,r,t,n)),r.animation}var fc={},pc={value:null,addProjectionMetrics:null};function mc(e,t){let n=gn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Fr(r),e(a-t))};return Pr.setup(r,!0),()=>Fr(r)}function hc(e){return ms(e)&&e.tagName===`svg`}function gc(e){return zo(e)?e.get():e}var _c=e=>typeof e==`number`?e:parseFloat(e),vc=is.length,yc=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],bc=yc.length,xc=e=>typeof e==`number`||W.test(e);function Sc(e,t,n,r,i,a){i?(e.opacity=pr(0,n.opacity??1,wc(r)),e.opacityExit=pr(t.opacity??1,0,Tc(r))):a&&(e.opacity=pr(t.opacity??1,n.opacity??1,r));for(let i=0;i<vc;i++){let a=is[i],o=Cc(t,a),s=Cc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||xc(o)===xc(s)?(e[a]=Math.max(pr(_c(o),_c(s),r),0),(zn.test(s)||zn.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<bc;i++){let a=yc[i];(t[a]||n[a])&&(e[a]=pr(t[a]||0,n[a]||0,r))}}function Cc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var wc=Ec(0,.5,tn),Tc=Ec(.5,.95,Rt);function Ec(e,t,n){return r=>r<e?0:r>t?1:n(Bt(e,t,r))}function Dc(e,t){e.min=t.min,e.max=t.max}function Oc(e,t){Dc(e.x,t.x),Dc(e.y,t.y)}function kc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ac=.9999,jc=1.0001,Mc=-.01,Nc=.01;function Pc(e){return e.max-e.min}function Fc(e,t,n){return Math.abs(e-t)<=n}function Ic(e,t,n,r=.5){e.origin=r,e.originPoint=pr(t.min,t.max,e.origin),e.scale=Pc(n)/Pc(t),e.translate=pr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ac&&e.scale<=jc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Mc&&e.translate<=Nc||isNaN(e.translate))&&(e.translate=0)}function Lc(e,t,n,r){Ic(e.x,t.x,n.x,r?r.originX:void 0),Ic(e.y,t.y,n.y,r?r.originY:void 0)}function Rc(e,t,n,r=0){e.min=(r?pr(n.min,n.max,r):n.min)+t.min,e.max=e.min+Pc(t)}function zc(e,t,n,r){Rc(e.x,t.x,n.x,r?.x),Rc(e.y,t.y,n.y,r?.y)}function Bc(e,t,n,r=0){let i=r?pr(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Pc(t)}function Vc(e,t,n,r){Bc(e.x,t.x,n.x,r?.x),Bc(e.y,t.y,n.y,r?.y)}function Hc(e,t,n,r,i){return e-=t,e=Gs(e,1/n,r),i!==void 0&&(e=Gs(e,1/i,r)),e}function Uc(e,t=0,n=1,r=.5,i,a=e,o=e){if(zn.test(t)&&(t=parseFloat(t),t=pr(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=pr(a.min,a.max,r);e===a&&(s-=t),e.min=Hc(e.min,t,n,s,i),e.max=Hc(e.max,t,n,s,i)}function Wc(e,t,[n,r,i],a,o){Uc(e,t[n],t[r],t[i],t.scale,a,o)}var Gc=[`x`,`scaleX`,`originX`],Kc=[`y`,`scaleY`,`originY`];function qc(e,t,n,r){Wc(e.x,t,Gc,n?n.x:void 0,r?r.x:void 0),Wc(e.y,t,Kc,n?n.y:void 0,r?r.y:void 0)}var Jc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yc=()=>({x:Jc(),y:Jc()}),Xc=()=>({min:0,max:0}),Zc=()=>({x:Xc(),y:Xc()});function Qc(e){return e.translate===0&&e.scale===1}function $c(e){return Qc(e.x)&&Qc(e.y)}function el(e,t){return e.min===t.min&&e.max===t.max}function tl(e,t){return el(e.x,t.x)&&el(e.y,t.y)}function nl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rl(e,t){return nl(e.x,t.x)&&nl(e.y,t.y)}function il(e){return Pc(e.x)/Pc(e.y)}function al(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var ol=class{constructor(){this.members=[]}add(e){kt(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(At(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(At(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function sl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${sl(e,t.target.x)}% ${sl(e,t.target.y)}%`}},ll={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=lr.parse(e);if(i.length>5)return r;let a=lr.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=pr(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ul={borderRadius:{...cl,applyTo:[...is]},borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:ll};function dl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function fl(e){return[e(`x`),e(`y`)]}var pl=(e,t)=>e.depth-t.depth,ml=class{constructor(){this.children=[],this.isDirty=!1}add(e){kt(this.children,e),this.isDirty=!0}remove(e){At(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pl),this.isDirty=!1,this.children.forEach(e)}},hl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(fc,{...ul,...fc});var gl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},_l=[``,`X`,`Y`,`Z`],vl=1e3,yl=0;function bl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var xl=({instance:e})=>e&&Wa.get(e)?.demote();function Sl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Wo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Pr,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Sl(r)}function Cl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=yl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pc.value&&(gl.nodes=gl.calculatedTargetDeltas=gl.calculatedProjections=0),this.nodes.forEach(El),this.nodes.forEach(Ll),this.nodes.forEach(Rl),this.nodes.forEach(Dl),pc.addProjectionMetrics&&pc.addProjectionMetrics(gl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ml)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Vt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ms(t)&&!hc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Pr.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=mc(i,250),hl.hasAnimatedSinceResize&&(hl.hasAnimatedSinceResize=!1,this.nodes.forEach(Il)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Wl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!rl(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...vo(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Fr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zl),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Sl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;xl(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,xl(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Al),this.nodes.forEach(kl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nl),this.nodes.forEach(Pl),this.nodes.forEach(Fl),this.nodes.forEach(wl),this.nodes.forEach(Tl)):this.nodes.forEach(jl),this.clearAllSnapshots();let e=gn.now();pn.delta=Mt(0,1e3/60,e-pn.timestamp),pn.timestamp=e,pn.isProcessing=!0,Ir.update.process(pn),Ir.preRender.process(pn),Ir.render.process(pn),pn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ol),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Pc(this.snapshot.measuredBox.x)&&!Pc(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=Zc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&xl(this);let t=this.projectionDelta&&!$c(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Hs(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Jl(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Zc();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Xl))){let{scroll:e}=this.root;e&&(Qs(t.x,e.offset.x),Qs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Zc();if(Oc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Oc(t,e),Qs(t.x,i.offset.x),Qs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Zc();Oc(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Qs(r.x,-n.scroll.offset.x),Qs(r.y,-n.scroll.offset.y)),Hs(n.latestValues)&&tc(r,n.latestValues,n.layout?.layoutBox)}return Hs(this.latestValues)&&tc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Zc();Oc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Hs(n.latestValues))continue;let r;n.instance&&(Vs(n.latestValues)&&n.updateSnapshot(),r=Zc(),Oc(r,n.measurePageBox())),qc(t,n.latestValues,n.snapshot?.layoutBox,r)}return Hs(this.latestValues)&&qc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==pn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=pn.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Zc(),this.targetWithTransforms=Zc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Oc(this.target,this.layout.layoutBox),Js(this.target,this.targetDelta)):Oc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),pc.value&&gl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Vs(this.parent.latestValues)||Us(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zc(),this.relativeTargetOrigin=Zc(),Vc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Oc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===pn.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Oc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Zs(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Zc());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kc(this.prevProjectionDelta.x,this.projectionDelta.x),kc(this.prevProjectionDelta.y,this.projectionDelta.y)),Lc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&al(this.projectionDelta.x,this.prevProjectionDelta.x)&&al(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),pc.value&&gl.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yc(),this.projectionDelta=Yc(),this.projectionDeltaWithTransform=Yc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Yc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Zc(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Ul));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=pr(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=pr(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Bl(o.x,e.x,n),Bl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Hl(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&tl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Zc(),Oc(f,this.relativeTarget)),c&&(this.animationValues=a,Sc(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Fr(this.pendingAnimation),void 0),this.pendingAnimation=Pr.update(()=>{hl.hasAnimatedSinceResize=!0,this.motionValue||=go(0),this.motionValue.jump(0,!1),this.currentAnimation=dc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),yi(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Yl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Zc();let t=Pc(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Pc(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Oc(t,i),tc(t,r),Lc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ol),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&bl(`z`,e,r,this.animationValues);for(let t=0;t<_l.length;t++)bl(`rotate${_l[t]}`,e,r,this.animationValues),bl(`skew${_l[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=gc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=gc(t?.pointerEvents)||``),this.hasProjected&&!Hs(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=dl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in fc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=fc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?gc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(kl),this.root.sharedNodes.clear()}}}function wl(e){e.updateLayout(),Ml(e)}function Tl(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)fl(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Pc(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Dc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Yl(i,t.layoutBox,n)&&fl(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Pc(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Yc();Lc(o,n,t.layoutBox);let s=Yc();a?Lc(s,e.applyTransform(r,!0),t.measuredBox):Lc(s,n,t.layoutBox);let c=!$c(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Zc();Vc(s,t.layoutBox,i.layoutBox,o);let c=Zc();Vc(c,n,a.layoutBox,o),rl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function El(e){pc.value&&gl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Dl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ol(e){e.clearSnapshot()}function kl(e){e.clearMeasurements()}function Al(e){e.isLayoutDirty=!0,e.updateLayout()}function jl(e){e.isLayoutDirty=!1}function Ml(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;fl(e=>Qs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Nl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Pl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Fl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Il(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ll(e){e.resolveTargetDelta()}function Rl(e){e.calcProjection()}function zl(e){e.resetSkewAndRotation()}function Bl(e,t,n){e.translate=pr(t.translate,0,n),e.scale=pr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vl(e,t,n,r){e.min=pr(t.min,n.min,r),e.max=pr(t.max,n.max,r)}function Hl(e,t,n,r){Vl(e.x,t.x,n.x,r),Vl(e.y,t.y,n.y,r)}function Ul(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Wl={duration:.45,ease:[.4,0,.1,1]},Gl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Kl=Gl(`applewebkit/`)&&!Gl(`chrome/`)?Math.round:Rt;function ql(e){e.min=Kl(e.min),e.max=Kl(e.max)}function Jl(e){ql(e.x),ql(e.y)}function Yl(e,t,n){return e===`position`||e===`preserve-aspect`&&!Fc(il(t),il(n),.2)}function Xl(e){return e!==e.root&&e.scroll?.wasRoot}function Zl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ql=Cl({attachResizeListener:(e,t)=>Zl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),$l={current:void 0},eu=Cl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$l.current){let e=new Ql({});e.mount(window),e.setOptions({layoutScroll:!0}),$l.current=e}return $l.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),tu=new WeakMap;function nu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function ru(e){return typeof e==`string`||Array.isArray(e)}var iu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],au=[`initial`,...iu];function ou(e){if(nu(e.animate))return!0;for(let t=0;t<au.length;t++)if(ru(e[au[t]]))return!0;return!1}function su(e){return!!(ou(e)||e.variants)}function cu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(zo(i))e.addValue(r,i);else if(zo(a))e.addValue(r,go(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,go(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var lu={current:null},uu={current:!1},du=typeof window<`u`;function fu(){if(uu.current=!0,du){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>lu.current=e.matches;e.addEventListener(`change`,t),t()}else lu.current=!1}}var pu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],mu={};function hu(e){mu=e}function gu(){return mu}var _u=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=gn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Pr.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ou(t),this.isVariantNode=su(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&zo(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,tu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(uu.current||fu(),this.shouldReduceMotion=lu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Fr(this.notifyUpdate),Fr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Pa.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Ta({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ht(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Xi.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Pr.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Wa.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in mu){let t=mu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Zc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Wa.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<pu.length;t++){let n=pu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=go(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Pt(n)||It(n))?n=parseFloat(n):typeof n!=`number`&&!lr.test(n)&&lr.test(t)&&(n=Fi(e,t)),this.setBaseTarget(e,zo(n)?n.get():n)),zo(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Vt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){lc.render(this.render)}},vu=class extends _u{constructor(){super(...arguments),this.KeyframeResolver=rs}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;zo(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function yu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function bu(e,{layout:t,layoutId:n}){return Xi.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!fc[e]||e===`opacity`)}function xu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(zo(r[t])||i&&zo(i[t])||bu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Su(e){return window.getComputedStyle(e)}var Cu=class extends vu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=yu}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Xi.has(t))return this.projection?.isProjecting?Gi(t):qi(e,t);{let n=Su(e),r=(yn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nc(e,t)}build(e,t,n){Es(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return xu(e,t,n)}},wu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Tu(e){return{point:{x:e.pageX,y:e.pageY}}}var Eu=e=>t=>wu(t)&&e(t,Tu(t));function Du(e,t,n,r){return Zl(e,t,Eu(n),r)}var Ou=new WeakMap,ku,Au=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ms(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ju=Au(`inline`,`width`,`offsetWidth`),Mu=Au(`block`,`height`,`offsetHeight`);function Nu({target:e,borderBoxSize:t}){Ou.get(e)?.forEach(n=>{n(e,{get width(){return ju(e,t)},get height(){return Mu(e,t)}})})}function Pu(e){e.forEach(Nu)}function Fu(){typeof ResizeObserver<`u`&&(ku=new ResizeObserver(Pu))}function Iu(e,t){ku||Fu();let n=hs(e);return n.forEach(e=>{let n=Ou.get(e);n||(n=new Set,Ou.set(e,n)),n.add(t),ku?.observe(e)}),()=>{n.forEach(e=>{let n=Ou.get(e);n?.delete(t),n?.size||ku?.unobserve(e)})}}var Lu=new Set,Ru;function zu(){Ru=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Lu.forEach(t=>t(e))},window.addEventListener(`resize`,Ru)}function Bu(e){return Lu.add(e),Ru||zu(),()=>{Lu.delete(e),!Lu.size&&typeof Ru==`function`&&(window.removeEventListener(`resize`,Ru),Ru=void 0)}}function Vu(e,t){return typeof e==`function`?Bu(e):Iu(e,t)}var Hu=(e,t)=>Math.abs(e-t);function Uu(e,t){let n=Hu(e.x,t.x),r=Hu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Wu=new Set([`auto`,`scroll`]),Gu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ku(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Ju(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Uu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:gn.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Ku(t,this.transformPagePoint),this.hasPendingMove=!0,Pr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Ju(e.type===`pointercancel`?this.lastMoveEventInfo:Ku(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!wu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Ku(Tu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=pn;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ju(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=zt(Du(this.contextWindow,`pointermove`,this.handlePointerMove,d),Du(this.contextWindow,`pointerup`,this.handlePointerUp,d),Du(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Wu.has(e.overflowX)||Wu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Pr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Fr(this.updatePoint)}};function Ku(e,t){return t?{point:t(e.point)}:e}function qu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ju({point:e},t){return{point:e,delta:qu(e,Xu(t)),offset:qu(e,Yu(t)),velocity:Zu(t,.1)}}function Yu(e){return e[0]}function Xu(e){return e[e.length-1]}function Zu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Xu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ht(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ht(t)*2&&(r=e[1]);let a=Ut(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Qu=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function $u(e){return Qu.has(e.tagName)||e.isContentEditable===!0}var ed=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function td(e){return ed.has(e.tagName)||e.isContentEditable===!0}var nd={x:!1,y:!1};function rd(){return nd.x||nd.y}function id(e){return e===`x`||e===`y`?nd[e]?null:(nd[e]=!0,()=>{nd[e]=!1}):nd.x||nd.y?null:(nd.x=nd.y=!0,()=>{nd.x=nd.y=!1})}function ad(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?pr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?pr(n,e,r.max):Math.min(e,n)),e}function od(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function sd(e,{top:t,left:n,bottom:r,right:i}){return{x:od(e.x,n,i),y:od(e.y,t,r)}}function cd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ld(e,t){return{x:cd(e.x,t.x),y:cd(e.y,t.y)}}function ud(e,t){let n=.5,r=Pc(e),i=Pc(t);return i>r?n=Bt(t.min,t.max-r,e.min):r>i&&(n=Bt(e.min,e.max-i,t.min)),Mt(0,1,n)}function dd(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var fd=.35;function pd(e=fd){return e===!1?e=0:e===!0&&(e=fd),{x:md(e,`left`,`right`),y:md(e,`top`,`bottom`)}}function md(e,t,n){return{min:hd(e,t),max:hd(e,n)}}function hd(e,t){return typeof e==`number`?e:e[t]||0}var gd=new WeakMap,_d=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Zc(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=id(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xn(t)&&(t=ko(t,this.visualElement.current)||0),W.test(t))t=parseFloat(t);else if(zn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Pc(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Pr.update(()=>i(e,t),!1,!0),Vo(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=Cd(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Pr.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Gu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Pr.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Sd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ad(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;vd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?sd(n.layoutBox,e):!1,this.elastic=pd(t),r!==this.constraints&&!vd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&fl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=dd(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!vd(e))return!1;let n=yd(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=rc(n,r.root,this.visualElement.getTransformPagePoint()),a=ld(r.layout.layoutBox,i);if(t){let e=t(Rs(a));this.hasMutatedConstraints=!!e,e&&(a=Ls(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=fl(o=>{if(!Sd(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Vo(this.visualElement,e),n.start(Eo(e,n,0,t,this.visualElement,!1))}stopAnimation(){fl(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();fl(e=>{if(!Sd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-pr(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!vd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};fl(e=>{let t=this.getAxisMotionValue(e).get();i[e]=ud({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),fl(t=>{let n=this.getAxisMotionValue(t);if(!Sd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(pr(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;gd.set(this.visualElement,this);let e=this.visualElement.current,t=Du(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&td(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=vd(t)&&yd(t);r&&(this.constraints=this.resolveRefConstraints(),n||=xd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Pr.read(r);let o=Zl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(fl(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=fd,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function vd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var yd=e=>`current`in e?e.current:e;function bd(e){let t=!0;return()=>{t?t=!1:e()}}function xd(e,t,n){let r=Vu(e,bd(n)),i=Vu(t,bd(n));return()=>{r(),i()}}function Sd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Cd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function wd(e,t){let n=hs(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Td(e){return!(e.pointerType===`touch`||rd())}function Ed(e,t,n={}){let[r,i,a]=wd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Td(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Dd=(e,t)=>t?e===t||Dd(e,t.parentElement):!1,Od=new WeakSet;function kd(e){return t=>{t.key===`Enter`&&e(t)}}function Ad(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var jd=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=kd(()=>{if(Od.has(n))return;Ad(n,`down`);let e=kd(()=>{Ad(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ad(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Md(e){return wu(e)&&!rd()}var Nd=new WeakSet;function Pd(e,t,n={}){let[r,i,a]=wd(e,n),o=e=>{let r=e.currentTarget;if(!Md(e)||Nd.has(e))return;Od.add(r),n.stopPropagation&&Nd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Od.has(r)&&Od.delete(r),Md(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Dd(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ps(e)&&(e.addEventListener(`focus`,e=>jd(e,i)),!$u(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Fd(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=ni(i,a,o);return t?s(r):s}var Id=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Ld=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Rd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function zd(e,t,n,r){yu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ld.has(n)?n:Ho(n),t.attrs[n])}function Bd(e,t,n){let r=xu(e,t,n);for(let n in e)if(n!==`children`&&(zo(e[n])||zo(t[n]))){let t=Yi.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Vd=class extends vu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Zc}getBaseTargetFromProps(e,t){return Xi.has(t)?super.getBaseTargetFromProps(e,t)??Gi(t):e[t]}getDefaultValue(e){return Xi.has(e)?this.latestValues[e]??Gi(e):void 0}readValueFromInstance(e,t){if(Xi.has(t)){let e=Ni(t);return e&&e.default||0}if(As.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Ld.has(t)?t:Ho(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Bd(e,t,n)}build(e,t,n){js(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){zd(e,t,n,r)}mount(e){this.isSVGTag=Rd(e.tagName),super.mount(e)}};function Hd(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Ud=[...iu].reverse();function Wd(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Yo(e,t,n))),n=Kd(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Ud.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?ru(g)||g===!1?g:void 0:h,v=ru(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||nu(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Gd(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Mo(e,n,No(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Hd(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Mo(s,n)?.transition?.delayChildren;r.delay=uo(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Mo(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!zo(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Kd(),i=!0}}}function Gd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Hd(t,e):!1}function Kd(){let e={};for(let t of iu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function qd(e){return typeof e==`object`&&!Array.isArray(e)}function Jd(e,t,n,r){return e==null?[]:typeof e==`string`&&qd(t)?hs(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Yd(e,t,n){return e*(t+1)+n*t}function Xd(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Zd(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(At(e,i),r--)}}function Qd(e,t,n,r,i,a){Zd(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:pr(i,a,r[o]),easing:cn(n,o)})}function $d(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function ef(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var tf=`easeInOut`,nf=20;function rf(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Xd(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Xd(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=sf(e),{delay:l=0,times:u=ii(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Ca(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&uf(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=Ht(b));let r=Vr(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&ri(u,T),c.length===1&&c.unshift(null),m&&`${m}${nf}`,m&&m<nf){let e=b>0?_/b:0;b=Yd(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Yt(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:cn(f,e-1))}$d(u,m,e)}let E=w+b;Qd(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(zo(p)){let e=af(p,s);_(m,h,of(`default`,e))}else{let e=Jd(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=af(r,s);for(let e in m)_(m[e],cf(h,e),of(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(ef);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Bt(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(tf)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function af(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function of(e,t){return t[e]||(t[e]=[]),t[e]}function sf(e){return Array.isArray(e)?e:[e]}function cf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var lf=e=>typeof e==`number`,uf=e=>e.every(lf);function df(e,t){return zo(e)||typeof e==`number`||typeof e==`string`&&!qd(t)}function ff(e,t,n,r){let i=[];if(df(e,t))i.push(dc(e,qd(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Jd(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...sc(r,t,s,tu.get(r))):i.push(...ds(ls(r)??cc,r,t,s))}}return i}function pf(e,t,n){let r=[];return rf(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=go(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:$r}).forEach(({keyframes:e,transition:t},n)=>{r.push(...ff(n,e,t))}),r}function mf(e){return Array.isArray(e)&&e.some(Array.isArray)}function hf(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),mf(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=pf(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=ff(e,i,{...c,...r},t)}let l=new lo(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{At(t.animations,l)})),l}return i}var gf=Object.assign(hf(),{addEffect:ss,removeEffect:cs}),_f=.1,vf=2/3,yf=1/3;function bf(e,t){return e.bottom>t.scrollTop&&e.top<t.scrollTop+t.height}function xf(e,t,n=!1){return e.top>=t.scrollTop+t.height*_f&&e.bottom<=t.scrollTop+t.height*vf&&!n?null:Math.round(Math.max(0,Math.min(t.scrollHeight-t.height,e.top-t.height*yf)))}function Sf(e,t,n){let r=e,i=e,a=[];return{to(e,t){e!==i&&a.push({delta:e-i,start:t}),i=e},at(e){let i=0;return a=a.filter(({delta:a,start:o})=>{let s=Math.max(0,Math.min(1,(e-o)/t));return s===1?(r+=a,!1):(i+=a*n(s),!0)}),r+i},get active(){return a.length>0}}}var Cf=`(prefers-reduced-motion: reduce)`,wf=[.23,1,.32,1],Tf=[.23,1.15,.32,1],Ef=[.77,0,.175,1],Df=qt(...wf),Of={micro:120,base:180,surface:240,askExit:150,ease:`cubic-bezier(${wf.join(`,`)})`,move:`cubic-bezier(${Ef.join(`,`)})`,soft:`cubic-bezier(${Tf.join(`,`)})`,out:wf,softCurve:Tf},kf={settleMs:280},Af=()=>window.matchMedia(Cf).matches?`auto`:`smooth`;function jf(){let[e,t]=(0,H.useState)(()=>window.matchMedia(Cf).matches);return(0,H.useEffect)(()=>{let e=window.matchMedia(Cf),n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function Mf(e,t){let n=Sf(e.scrollTop,Of.surface,Df),r=e.scrollTop,i=0,a=o=>{i=0,Af()===`auto`?(e.scrollTop=r,t()):(n.to(r,o),e.scrollTop=n.at(o),n.active?i=requestAnimationFrame(a):t())};return{to(e){r=e,i||=requestAnimationFrame(a)},stop(){cancelAnimationFrame(i),i=0},get active(){return i!==0}}}function Nf(e,t){let[n,r]=(0,H.useState)({value:e,pointer:t});return(0,H.useLayoutEffect)(()=>{if(e){r({value:e,pointer:t});return}if(!n.value)return;let i=setTimeout(()=>r({value:e,pointer:!1}),Of.micro);return()=>clearTimeout(i)},[e,t]),{value:e||(n.pointer?n.value:void 0),props:{"data-pointer":e?t:n.pointer,"data-ending-style":e?void 0:``,inert:!e}}}var Pf=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ff=o(((e,t)=>{t.exports=Pf()})),If=(0,H.createContext)({});function Lf(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Rf=typeof window<`u`?H.useLayoutEffect:H.useEffect,zf=(0,H.createContext)(null),Bf=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Vf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Hf(...e){return t=>{let n=!1,r=e.map(e=>{let r=Vf(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Vf(e[t],null)}}}}function Uf(...e){return H.useCallback(Hf(...e),e)}var G=Ff(),Wf=class extends H.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(ps(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=ps(e)&&e.offsetWidth||0,r=ps(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Gf({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,H.useId)(),c=(0,H.useRef)(null),l=(0,H.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,H.useContext)(Bf),d=Uf(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,H.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
+`).flatMap(e=>{let n=t;return t+=e.length+1,[...st.segment(e)].filter(e=>e.segment.trim()).map(e=>({text:e.segment.trim(),index:n+e.index,end:n+e.index+e.segment.length}))})}var lt=new Set(`a an and are as at be been but by can did do for from had has have he her his how i in is it its me my of on or our she so that the their them there these they this to was we were what when which who will with would you your`.split(` `)),ut=e=>new Set((e.toLowerCase().match(/[\p{L}\p{N}]+/gu)??[]).filter(e=>!lt.has(e)));function dt(e,t){let n=ct(ot(e)).map(e=>e.text),r=ut(t),i=0,a=-1;return n.forEach((e,t)=>{let n=[...ut(e)].filter(e=>r.has(e)).length;n>a&&(i=t,a=n)}),{before:n[i-1]??``,match:n[i]??``,after:n[i+1]??``}}var ft=e=>e.normalize(`NFKC`).toLowerCase().replace(/[^\p{L}\p{N}]+/gu,` `).trim();function pt(e,t,n=0){let r=ft(t);if(!r)return-1;let i=e.map(e=>ft(ot(e))),a=e=>e.sort((e,t)=>Math.abs(e-n)-Math.abs(t-n))[0]??-1,o=a(i.flatMap((e,t)=>e.includes(r)?[t]:[]));if(o>=0)return o;let s=ft(t.replace(/^[^:\n]{1,80}:\s*/,``)),c=i.join(` `).indexOf(s);if(s&&c>=0){let e=0;return i.findIndex(t=>(e+=t.length+1,e>c))}return a(i.flatMap((e,t)=>e&&r.includes(e)?[t]:[]))}var mt={"Other people":`Other people`,"Reading the transcript…":`Reading the transcript…`,"No events":`No events`,"Go to {date}":`Go to {date}`,"Previous day":`Previous day`,"Next day":`Next day`,"Resume notes · {title}":`Resume notes · {title}`,"Take notes · {title}":`Take notes · {title}`,"Take notes · {count} now":{one:`Take notes · {count} now`,other:`Take notes · {count} now`},Now:`Now`,"in {count} min":{one:`in {count} min`,other:`in {count} min`},"Has notes":`Has notes`,"No matching meetings with {name}.":`No matching meetings with {name}.`,"No matching meetings on {date}.":`No matching meetings on {date}.`,"No matching meetings with {name} on {date}.":`No matching meetings with {name} on {date}.`,"Meetings with {name}":`Meetings with {name}`,"{count} min":{one:`{count} min`,other:`{count} min`},"Starts in {count} min":{one:`Starts in {count} min`,other:`Starts in {count} min`},"Exported {count} meetings":{one:`Exported 1 meeting`,other:`Exported {count} meetings`},"Added {count} meetings.":{one:`Added 1 meeting.`,other:`Added {count} meetings.`},"{count} were already here.":{one:`1 was already here.`,other:`{count} were already here.`},"{count} meetings":{one:`1 meeting`,other:`{count} meetings`},"Meetings in the Trash are deleted for good after {count} days, with their recordings.":{one:`Meetings in the Trash are deleted for good after 1 day, with their recordings.`,other:`Meetings in the Trash are deleted for good after {count} days, with their recordings.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this Mac for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this Mac for good.`},"{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.":{one:`1 meeting, with its notes, transcript and recordings, is removed from this computer for good.`,other:`{count} meetings, with their notes, transcripts and recordings, are removed from this computer for good.`},"{count} languages supported":{one:`{count} language supported`,other:`{count} languages supported`},"and {count} more":{one:`and {count} more`,other:`and {count} more`},"{count} left":{one:`{count} left`,other:`{count} left`},"Downloading AI":`Downloading AI`,"Downloading AI · {percent}":`Downloading AI · {percent}`,"AI download stopped":`AI download stopped`,"{done} of {total} GB":`{done} of {total} GB`,"{progress} · about {minutes} min left":`{progress} · about {minutes} min left`,"{count} selected":{one:`{count} selected`,other:`{count} selected`},"Add {count} meetings to folder":{one:`Add {count} meeting to folder`,other:`Add {count} meetings to folder`},"Move {count} meetings to Trash":{one:`Move {count} meeting to Trash`,other:`Move {count} meetings to Trash`},"{count} meetings moved to Trash":{one:`{count} meeting moved to Trash`,other:`{count} meetings moved to Trash`},"Upgrading AI":`Upgrading AI`,"Upgrading AI · {percent}":`Upgrading AI · {percent}`,"AI upgrade paused":`AI upgrade paused`,"Better notes model":`Better notes model`,"Download ({size} GB)":`Download ({size} GB)`,"Getting the smaller model · {progress}":`Getting the smaller model · {progress}`,"The larger model keeps running summaries and Ask until then, and is removed after.":`The larger model keeps running summaries and Ask until then, and is removed after.`,"Removing…":`Removing…`,"Open Settings":`Open Settings`,"Download stopped":`Download stopped`,"Upgrade paused":`Upgrade paused`,"You can record meetings. AI summaries and Ask work when this finishes.":`You can record meetings. AI summaries and Ask work when this finishes.`,"Once this model is ready, we'll remove the old one.":`Once this model is ready, we'll remove the old one.`,"More detailed, accurate notes. Replaces the current model, so you don't keep both.":`More detailed, accurate notes. Replaces the current model, so you don't keep both.`,"about {minutes} min left":`about {minutes} min left`,"AI upgrade skipped":`AI upgrade skipped`,Suggested:`Suggested`,"Dismiss suggestion":`Dismiss suggestion`,"Delete recording":`Delete recording`,"Delete recording?":`Delete recording?`,"The audio is deleted for good. Your transcript and notes stay.":`The audio is deleted for good. Your transcript and notes stay.`,"Keep the audio until the transcript is saved.":`Keep the audio until the transcript is saved.`,"Keep audio recordings after meetings":`Keep audio recordings after meetings`,"Recording deleted":`Recording deleted`,"When off, new meetings' audio is deleted once the summary is saved.":`When off, new meetings' audio is deleted once the summary is saved.`,Settings:`Settings`,"New recording":`New recording`,"Hide events without a call link":`Hide events without a call link`,"Keep your agenda and reminders focused on calls.":`Keep your agenda and reminders focused on calls.`,"Show earlier lines":`Show earlier lines`,"{count} more results":{one:`{count} more result`,other:`{count} more results`},"Search meetings and folders":`Search meetings and folders`,"Search…":`Search…`,"All meetings":`All meetings`,"Choose meetings or folders":`Choose meetings or folders`,"In this chat":`In this chat`,"and {count} others":{one:`and {count} other`,other:`and {count} others`},"{count} more":{one:`{count} more`,other:`{count} more`},Clear:`Clear`,"Searched {name}":`Searched {name}`,"Searched all meetings":`Searched all meetings`,"A meeting can be in more than one folder.":`A meeting can be in more than one folder.`,"An AI app":`An AI app`,"Connected apps · {apps}":`Connected apps · {apps}`,"Custom words":`Custom words`,"Export Markdown":`Export Markdown`,"Export Markdown…":`Export Markdown…`,"Export backup":`Export backup`,"Now · {title}":`Now · {title}`,"Paused · {title}":`Paused · {title}`,"Recording is still paused after an interruption.":`Recording is still paused after an interruption.`,"Recording reminders":`Recording reminders`,"Recording resumed after an interruption.":`Recording resumed after an interruption.`,"Recording stopped when the call ended.":`Recording stopped when the call ended.`,"Recording · {title}":`Recording · {title}`,"Removing this model restores the smaller one.":`Removing this model restores the smaller one.`,Skip:`Skip`,"Still reading…":`Still reading…`,"Summaries and Ask are ready.":`Summaries and Ask are ready.`,"The attendee list has changed.":`The attendee list has changed.`,"The download needs {gb} GB more free space.":`The download needs {gb} GB more free space.`,"The downloaded file is damaged.":`The downloaded file is damaged.`,"The list is full.":`The list is full.`,"The selected microphone is unavailable, so recording is using your system microphone.":`The selected microphone is unavailable, so recording is using your system microphone.`,"There is no transcript or typed note to summarize.":`There is no transcript or typed note to summarize.`,"This changes the language of Yogurt's menus and buttons.":`This changes the language of Yogurt's menus and buttons.`,"Yogurt couldn't change the notes model.":`Yogurt couldn't change the notes model.`,"Yogurt couldn't copy.":`Yogurt couldn't copy.`,"Yogurt couldn't delete everything in the Trash.":`Yogurt couldn't delete everything in the Trash.`,"Yogurt couldn't delete the recording.":`Yogurt couldn't delete the recording.`,"Yogurt couldn't delete this folder.":`Yogurt couldn't delete this folder.`,"Yogurt couldn't finish deleting this note.":`Yogurt couldn't finish deleting this note.`,"Yogurt couldn't regenerate the summary, so your previous version is still shown.":`Yogurt couldn't regenerate the summary, so your previous version is still shown.`,"Yogurt couldn't restart the download.":`Yogurt couldn't restart the download.`,"Yogurt couldn't save this folder.":`Yogurt couldn't save this folder.`,"Yogurt is setting up transcription on your computer.":`Yogurt is setting up transcription on your computer.`,"Yogurt reads these calendars and never changes them.":`Yogurt reads these calendars and never changes them.`,"Yogurt records calls without joining them and writes summaries on your computer afterward.":`Yogurt records calls without joining them and writes summaries on your computer afterward.`,"Yogurt stores your meetings, notes and audio on this computer.":`Yogurt stores your meetings, notes and audio on this computer.`,"Yogurt transcribes the call audio without joining the call.":`Yogurt transcribes the call audio without joining the call.`,"Yogurt transcribes your voice.":`Yogurt transcribes your voice.`,"Yogurt uses names shown by supported call apps to label speakers in your transcript.":`Yogurt uses names shown by supported call apps to label speakers in your transcript.`,"Yogurt uses these words to spell names and terms in your transcripts and notes.":`Yogurt uses these words to spell names and terms in your transcripts and notes.`,"Yogurt uses your name to identify you in calls.":`Yogurt uses your name to identify you in calls.`,"Yogurt writes a summary after you finish recording.":`Yogurt writes a summary after you finish recording.`,"You can add notes here to guide the summary.":`You can add notes here to guide the summary.`,"You can back up meetings, notes, transcripts and saved audio in one file.":`You can back up meetings, notes, transcripts and saved audio in one file.`,"You can get a reminder when Yogurt detects a call.":`You can get a reminder when Yogurt detects a call.`,"You can record here or add existing meetings to this folder.":`You can record here or add existing meetings to this folder.`,"You can use calendar events to add meeting titles and attendees to your notes.":`You can use calendar events to add meeting titles and attendees to your notes.`,"Your calendar":`Your calendar`,"Your edits to the summary will be replaced.":`Your edits to the summary will be replaced.`,"Your next recording will use both the microphone and call audio.":`Your next recording will use both the microphone and call audio.`,"Your question is waiting for Yogurt's AI to download.":`Your question is waiting for Yogurt's AI to download.`,"Your summary is waiting for Yogurt's AI to download.":`Your summary is waiting for Yogurt's AI to download.`,"Show Yogurt in":`Show Yogurt in`,"Menu bar and Dock":`Menu bar and Dock`,"Menu bar only":`Menu bar only`,"Dock only":`Dock only`,"Summary language":`Summary language`,"Same as the meeting":`Same as the meeting`,"Used for new summaries and when you write them again.":`Used for new summaries and when you write them again.`,"Writing the summary":`Writing the summary`,Regenerate:`Regenerate`,"Available after recording":`Available after recording`,"Note for the summary":`Note for the summary`,"Add a note, like shorter or in Spanish":`Add a note, like shorter or in Spanish`,"Waiting for Yogurt AI to download":`Waiting for Yogurt AI to download`,"Stop summary":`Stop summary`,"Summary stopped.":`Summary stopped.`,"This window couldn't be displayed.":`This window couldn't be displayed.`,Close:`Close`,"{current} of {count}":{one:`{current} of {count}`,other:`{current} of {count}`},"No matches":`No matches`,"Previous match":`Previous match`,"Next match":`Next match`,"Update ready":`Update ready`,"Installs when you restart Yogurt":`Installs when you restart Yogurt`,"You can restart after recording":`You can restart after recording`,Later:`Later`,Restart:`Restart`,"Yogurt couldn't restart. Try again.":`Yogurt couldn't restart. Try again.`,"Yogurt {version}":`Yogurt {version}`},ht=[{id:`en`,name:`English`,english:`English`},{id:`ar`,name:`العربية`,english:`Arabic`,rtl:!0},{id:`bn`,name:`বাংলা`,english:`Bengali`},{id:`zh-CN`,name:`简体中文`,english:`Chinese (Simplified)`},{id:`zh-TW`,name:`繁體中文`,english:`Chinese (Traditional)`},{id:`cs`,name:`Čeština`,english:`Czech`},{id:`da`,name:`Dansk`,english:`Danish`},{id:`nl`,name:`Nederlands`,english:`Dutch`},{id:`fil`,name:`Filipino`,english:`Filipino`},{id:`fi`,name:`Suomi`,english:`Finnish`},{id:`fr`,name:`Français`,english:`French`},{id:`de`,name:`Deutsch`,english:`German`},{id:`el`,name:`Ελληνικά`,english:`Greek`},{id:`he`,name:`עברית`,english:`Hebrew`,rtl:!0},{id:`hi`,name:`हिन्दी`,english:`Hindi`},{id:`hu`,name:`Magyar`,english:`Hungarian`},{id:`id`,name:`Bahasa Indonesia`,english:`Indonesian`},{id:`it`,name:`Italiano`,english:`Italian`},{id:`ja`,name:`日本語`,english:`Japanese`},{id:`ko`,name:`한국어`,english:`Korean`},{id:`ms`,name:`Bahasa Melayu`,english:`Malay`},{id:`nb`,name:`Norsk`,english:`Norwegian`},{id:`pl`,name:`Polski`,english:`Polish`},{id:`pt-BR`,name:`Português`,english:`Portuguese`},{id:`ro`,name:`Română`,english:`Romanian`},{id:`ru`,name:`Русский`,english:`Russian`},{id:`es`,name:`Español`,english:`Spanish`},{id:`sv`,name:`Svenska`,english:`Swedish`},{id:`th`,name:`ไทย`,english:`Thai`},{id:`tr`,name:`Türkçe`,english:`Turkish`},{id:`uk`,name:`Українська`,english:`Ukrainian`},{id:`vi`,name:`Tiếng Việt`,english:`Vietnamese`}],gt=e=>ht.find(t=>t.id===e)?.rtl?`rtl`:`ltr`,_t=Object.fromEntries(Object.entries(Object.assign({"./locales/en.json":mt})).map(([e,t])=>[e.replace(/^.*\/|\.json$/g,``),t]));function vt(e,t,n,r){let i=e[t]?.[n]??e.en?.[n]??n;if(typeof i!=`string`){let e=typeof r?.count==`number`?r.count:0;i=i[new Intl.PluralRules(t).select(e)]??i.other??n}return r?i.replace(/\{(\w+)\}/g,(e,n)=>{let i=r[n];return i===void 0?e:typeof i==`number`?new Intl.NumberFormat(t).format(i):i}):i}var yt=`en`,bt=new Set,xt=()=>yt;function St(e){return bt.add(e),()=>{bt.delete(e)}}var U=(e,t)=>vt(_t,yt,e,t),Ct=e=>e,wt={folder:Ct(`Folder`),star:Ct(`Star`),heart:Ct(`Heart`),flag:Ct(`Flag`),bookmark:Ct(`Bookmark`),briefcase:Ct(`Briefcase`),users:Ct(`People`),handshake:Ct(`Handshake`),message:Ct(`Conversation`),video:Ct(`Video`),calendar:Ct(`Calendar`),clock:Ct(`Clock`),target:Ct(`Target`),lightbulb:Ct(`Idea`),rocket:Ct(`Rocket`),code:Ct(`Code`),palette:Ct(`Palette`),megaphone:Ct(`Megaphone`),graduation:Ct(`Graduation cap`),book:Ct(`Book`),flask:Ct(`Flask`),coffee:Ct(`Coffee`),house:Ct(`House`),plane:Ct(`Plane`)},Tt={default:Ct(`Default`),violet:Ct(`Purple`),blue:Ct(`Blue`),teal:Ct(`Teal`),green:Ct(`Green`),amber:Ct(`Amber`),orange:Ct(`Orange`),rose:Ct(`Pink`)},Et={icon:`folder`,color:`default`},Dt=Object.keys(Tt).filter(e=>e!=="default");function Ot(e,t,n){let r=e===`them`&&t?n.indexOf(t):-1;return r<0?void 0:r%Dt.length}function kt(e,t){e.indexOf(t)===-1&&e.push(t)}function At(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function jt([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}var Mt=(e,t,n)=>n>t?t:n<e?e:n,Nt={},Pt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ft=e=>typeof e==`object`&&!!e,It=e=>/^0[^.\s]+$/u.test(e);function Lt(e){let t;return()=>(t===void 0&&(t=e()),t)}var Rt=e=>e,zt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Bt=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Vt=class{constructor(){this.subscriptions=[]}add(e){return kt(this.subscriptions,e),()=>this.remove(e)}remove(e){At(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},Ht=e=>e*1e3,Ut=e=>e/1e3,Wt=(e,t)=>t?1e3/t*e:0,Gt=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Kt=(e,t,n)=>e*(3*(1-e)*((1-e)*t+e*n)+e*e);function qt(e,t,n,r){return e===t&&n===r?Rt:i=>{let a=0,o=1,s=i;for(let t=0;;t++){s>=a&&s<=o||(s=(a+o)/2);let r=Kt(s,e,n)-i;if(r*r<1e-28||t===40)break;r>0?o=s:a=s,s-=r*1e-7/(Kt(s+1e-7,e,n)-i-r)}return Kt(s,t,r)}}var Jt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yt=e=>t=>1-e(1-t),Xt=qt(.33,1.53,.69,.99),Zt=Yt(Xt),Qt=Jt(Zt),$t=e=>e>=1?1:(e*=2)<1?.5*Zt(e):.5*(2-2**(-10*(e-1))),en=e=>1-Math.sin(Math.acos(e)),tn=Yt(en),nn=Jt(en),rn=qt(.42,0,1,1),an=qt(0,0,.58,1),on=qt(.42,0,.58,1),sn=e=>Array.isArray(e)&&typeof e[0]!=`number`;function cn(e,t){return sn(e)?e[Gt(0,e.length,t)]:e}var ln=e=>Array.isArray(e)&&typeof e[0]==`number`,un={linear:Rt,easeIn:rn,easeInOut:on,easeOut:an,circIn:en,circInOut:nn,circOut:tn,backIn:Zt,backInOut:Qt,backOut:Xt,anticipate:$t},dn=e=>typeof e==`string`,fn=e=>{if(ln(e)){e.length;let[t,n,r,i]=e;return qt(t,n,r,i)}return dn(e)?(un[e],`${e}`,un[e]):e},pn={delta:0,timestamp:0,isProcessing:!1},mn;function hn(){mn=void 0}var gn={now:()=>(mn===void 0&&gn.set(pn.isProcessing||Nt.useManualTiming?pn.timestamp:performance.now()),mn),set:e=>{mn=e,queueMicrotask(hn)}},_n=e=>Math.round(e*1e5)/1e5,vn=e=>t=>typeof t==`string`&&t.startsWith(e),yn=vn(`--`),bn=vn(`var(--`),xn=e=>bn(e)?Sn.test(e.split(`/*`)[0].trim()):!1,Sn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Cn(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var wn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Tn={...wn,transform:e=>Mt(0,1,e)},En={...wn,default:1},Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function On(e){return e==null}var kn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,An=(e,t)=>n=>!!(typeof n==`string`&&kn.test(n)&&n.startsWith(e)||t&&!On(n)&&Object.prototype.hasOwnProperty.call(n,t)),jn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Dn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Mn=e=>Mt(0,255,e),Nn={...wn,transform:e=>Math.round(Mn(e))},Pn={test:An(`rgb`,`red`),parse:jn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Nn.transform(e)+`, `+Nn.transform(t)+`, `+Nn.transform(n)+`, `+_n(Tn.transform(r))+`)`};function Fn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var In={test:An(`#`),parse:Fn,transform:Pn.transform},Ln=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Rn=Ln(`deg`),zn=Ln(`%`),W=Ln(`px`),Bn=Ln(`vh`),Vn=Ln(`vw`),Hn={...zn,parse:e=>zn.parse(e)/100,transform:e=>zn.transform(e*100)},Un={test:An(`hsl`,`hue`),parse:jn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+zn.transform(_n(t))+`, `+zn.transform(_n(n))+`, `+_n(Tn.transform(r))+`)`},Wn={test:e=>Pn.test(e)||In.test(e)||Un.test(e),parse:e=>Pn.test(e)?Pn.parse(e):Un.test(e)?Un.parse(e):In.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Pn.transform(e):Un.transform(e),getAnimatableNone:e=>{let t=Wn.parse(e);return t.alpha=0,Wn.transform(t)}},Gn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Kn=new RegExp(Dn.source),qn=new RegExp(Gn.source,`i`);function Jn(e){return isNaN(e)&&typeof e==`string`&&(Kn.test(e)||qn.test(e))}var Yn=`number`,Xn=`color`,Zn=`var`,Qn=`var(`,$n="${}",er=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)(?![a-z]*\()/giu;function tr(e){let t=e.toString();return Kn.test(t)||qn.test(t)}function nr(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(er,e=>(Wn.test(e)?(r.color.push(a),i.push(Xn),n.push(Wn.parse(e))):e.startsWith(Qn)?(r.var.push(a),i.push(Zn),n.push(e)):(r.number.push(a),i.push(Yn),n.push(parseFloat(e))),++a,$n)).split($n),indexes:r,types:i}}function rr(e){return nr(e).values}function ir({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Yn?_n(r[a]):e===Xn?Wn.transform(r[a]):r[a]}return i}}function ar(e){return ir(nr(e))}var or=e=>typeof e==`number`?0:Wn.test(e)?Wn.getAnimatableNone(e):e,sr=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:or(e);function cr(e){let t=nr(e);return ir(t)(t.values.map((e,n)=>sr(e,t.split[n])))}var lr={test:Jn,parse:rr,createTransformer:ar,getAnimatableNone:cr};function ur(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function dr({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=ur(s,r,e+1/3),a=ur(s,r,e),o=ur(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function fr(e,t){return n=>n>0?t:e}var pr=(e,t,n)=>e+(t-e)*n,mr=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},hr=[In,Pn,Un],gr=e=>hr.find(t=>t.test(e));function _r(e){let t=gr(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Un&&(n=dr(n)),n}var vr=(e,t)=>{let n=_r(e),r=_r(t);if(!n||!r)return fr(e,t);let i={...n};return e=>(i.red=mr(n.red,r.red,e),i.green=mr(n.green,r.green,e),i.blue=mr(n.blue,r.blue,e),i.alpha=pr(n.alpha,r.alpha,e),Pn.transform(i))},yr=new Set([`none`,`hidden`]);function br(e,t){return yr.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xr(e,t){return n=>pr(e,t,n)}function Sr(e){return typeof e==`number`?xr:typeof e==`string`?xn(e)?fr:Wn.test(e)?vr:Er:Array.isArray(e)?Cr:typeof e==`object`?Wn.test(e)?vr:wr:fr}function Cr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Sr(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function wr(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Sr(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Tr(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Er=(e,t)=>{let n=lr.createTransformer(t),r=nr(e),i=nr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?yr.has(e)&&!i.values.length||yr.has(t)&&!r.values.length?br(e,t):zt(Cr(Tr(r,i),i.values),n):(`${e}${t}`,fr(e,t))},Dr=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function Or(e,t){let n=Dr.exec(e);if(!n)return;let r=Dr.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>_n(pr(a,o,e))+i}function kr(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return pr(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=Or(e,t);if(n)return n}return Sr(e)(e,t)}var Ar=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function jr(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Mr=40;function Nr(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Ar.reduce((e,t)=>(e[t]=jr(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Nt.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,Mr),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Ar.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ar.length;t++)o[Ar[t]].cancel(e)},state:n,steps:o}}var{schedule:Pr,cancel:Fr,steps:Ir}=Nr(typeof requestAnimationFrame<`u`?requestAnimationFrame:Rt,!0,pn),Lr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Pr.update(t,e),stop:()=>Fr(t),now:()=>pn.isProcessing?pn.timestamp:gn.now()}},Rr=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},zr=2e4;function Br(e,t=50,n=zr,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function Vr(e,t=100,n){let{keyframes:r,velocity:i}=e,a=r&&r[r.length-1]-r[0],o=n({...e,velocity:i&&a?i*t/a:i,keyframes:[0,t]}),s=Math.min(Br(o),zr);return{type:`keyframes`,ease:e=>o.next(s*e).value/t,duration:Ut(s)}}var Hr={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Ur=e=>e<0?1/Math.max(1+e,Hr.minDamping):Math.max(1-e,Hr.minDamping);function Wr(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return qr(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Gr(e,t){return e*Math.sqrt(1-t*t)}var Kr=12;function qr(e,t,n){let r=n;for(let n=1;n<Kr;n++)r-=e(r)/t(r);return r}var Jr=.001;function Yr({duration:e=Hr.duration,bounce:t=Hr.bounce}){let n,r;Hr.maxDuration;let i=Ur(t);e=Mt(Hr.minDuration,Hr.maxDuration,Ut(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Gr(t,i),o=Math.exp(-r);return Jr-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Gr(t*t,i);return(-n(t)+Jr>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=qr(n,r,a),s=o*Wr(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:Ht(e)}}var Xr=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Zr(e,t){if(Xr(e,t))return e}function Qr(e){let t=Zr(e.stiffness),n=Zr(e.damping,!0),r=Zr(e.mass),i={...e,stiffness:t??Hr.stiffness,damping:n??Hr.damping,mass:r??Hr.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Ur(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Wr(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Yr(i)),i.isResolvedFromDuration=!0;Xr(i.stiffness)&&Xr(i.damping,!0)||(i.stiffness=Hr.stiffness,i.damping=Hr.damping)}return i}function $r(e=Hr.visualDuration,t=Hr.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Qr({...n}),f=e=>d?0:-Ut(e),p=s/(2*Math.sqrt(o*c)),m=Ut(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Hr.restSpeed.granular:Hr.restSpeed.default),g.restDelta=n.restDelta||(e?Hr.restDelta.granular:Hr.restDelta.default)};_();let v,y,b;if(p<1){let e=Gr(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>Ht(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=Ht(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(Br(S),zr),t=Rr(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}$r.applyToOptions=e=>{let t=Vr(e,100,$r);return e.ease=t.ease,e.duration=Ht(t.duration),e.type=`keyframes`,e};function ei({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=$r({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function ti(e,t,n){let r=[],i=n||Nt.mix||kr,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=zt(Array.isArray(t)?t[n]||Rt:t,a)),r.push(a)}return r}function ni(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=ti(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Bt(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Mt(e[0],e[a-1],t)):l}function ri(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Bt(0,t,r);e.push(pr(n,1,i))}}function ii(e){let t=[0];return ri(t,e.length-1),t}function ai(e,t){return e.map(e=>e*t)}function oi(e,t){return e.map(()=>t||on).splice(0,e.length-1)}function si({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=sn(r)?r.map(fn):fn(r)||on,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(Nt.mix||kr)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?Mt(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=ni(ai(n&&n.length===t.length?n:ii(t),e),t,{ease:Array.isArray(i)?i:oi(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var ci=5;function li(e,t,n){let r=Math.max(t-ci,0);return Wt(n-e(r),t-r)}function ui(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):li(t=>e.next(t).value,t,e.next(t).value)}var di=e=>e!==null;function fi(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(di),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var pi={decay:ei,inertia:ei,tween:si,keyframes:si,spring:$r};function mi(e){typeof e.type==`string`&&(e.type=pi[e.type])}var hi=40,gi=(e,t)=>t-e>hi&&!Nt.useManualTiming?t:e;function _i(e,t){return{kind:e,animation:t,timestamp:gn.now(),frameTimestamp:pn.timestamp,frameIsProcessing:pn.isProcessing}}function vi(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({..._i(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function yi(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({..._i(`layout-animation-start`,e),node:t})}catch{}}var bi=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},xi=e=>e/100,Si=e=>Math.round(e*1e4)/1e4,Ci=class extends bi{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==gn.now()&&this.tick(gn.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),vi(this,this.options)}initAnimation(){let{options:e}=this;mi(e);let{type:t=si,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||si;s!==si&&typeof o[0]!=`number`&&(this.mixKeyframes=zt(xi,kr(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Br(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,calculatedDuration:i}=this;if(this.startTime===null)return n.next(0);let{delay:a=0,keyframes:o,type:s,onUpdate:c,finalKeyframe:l}=this.options;this.startTime===this.pendingStartTime&&(this.startTime=gi(this.startTime,e)),this.pendingStartTime=void 0,this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let u=this.currentTime-a*(this.playbackSpeed>=0?1:-1),d=this.playbackSpeed>=0?u<0:u>r;this.currentTime=Math.max(u,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let f=this.generate(this.currentTime,d),{done:p}=f;!d&&i!==null&&(p=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let m=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&p);return m&&s!==ei&&(f.value=fi(o,this.options,l,this.speed)),c&&c(f.value),m&&this.finish(),f}at(e){return this.holdTime??Si((e-this.startTime)*this.playbackSpeed)}sampleAt(e,t){let{options:n,totalDuration:r}=this,i=this.at(e)-(n.delay||0);return i>=r&&n.type!==ei?fi(n.keyframes,n,t?void 0:n.finalKeyframe):this.generate(Math.max(i,0),i<0).value}generate(e,t){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o}=this,{keyframes:s,repeat:c,repeatType:l,repeatDelay:u}=this.options,d=e,f=n;if(c){let t=Math.min(e,r)/o,n=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),i===1&&n--,n=Math.min(n,c+1),n%2&&(l===`reverse`?(i=1-i,u&&(i-=u/o)):l===`mirror`&&(f=a)),d=Mt(0,1,i)*o}let p;return t?(this.delayState.value=s[0],p=this.delayState):p=f.next(d),i&&!t&&(p.value=i(p.value)),p}then(e,t){return this.finished.then(e,t)}get duration(){return Ut(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ut(e)}get time(){return Ut(this.currentTime)}set time(e){e=Ht(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return ui(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(gn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Ut(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Lr,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??(this.pendingStartTime=n):this.startTime=n-this.holdTime/(this.playbackSpeed||1),this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(gn.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},wi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ti(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Dn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!wi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Ei=/\b([a-z-]*)\(.*?\)/gu,Di={...lr,getAnimatableNone:e=>{let t=e.match(Ei);return t?t.map(Ti).join(` `):e}},Oi={...lr,getAnimatableNone:e=>{let t=lr.parse(e);return lr.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ki={...wn,transform:Math.round},Ai={rotate:Rn,pathRotation:Rn,rotateX:Rn,rotateY:Rn,rotateZ:Rn,scale:En,scaleX:En,scaleY:En,scaleZ:En,skew:Rn,skewX:Rn,skewY:Rn,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:Tn,originX:Hn,originY:Hn,originZ:W},ji={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,...Ai,zIndex:ki,fillOpacity:Tn,strokeOpacity:Tn,numOctaves:ki},Mi={...ji,color:Wn,backgroundColor:Wn,outlineColor:Wn,fill:Wn,stroke:Wn,borderColor:Wn,borderTopColor:Wn,borderRightColor:Wn,borderBottomColor:Wn,borderLeftColor:Wn,filter:Di,WebkitFilter:Di,mask:Oi,WebkitMask:Oi},Ni=e=>Mi[e],Pi=new Set([Di,Oi]);function Fi(e,t){let n=Ni(e);return Pi.has(n)||(n=lr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Ii(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Li=e=>e*180/Math.PI,Ri=e=>Bi(Li(Math.atan2(e[1],e[0]))),zi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scaleZ:()=>1,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ri,rotateZ:Ri,skewX:e=>Li(Math.atan(e[1])),skewY:e=>Li(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Bi=e=>(e%=360,e<0&&(e+=360),e),Vi=Ri,Hi=e=>Math.hypot(e[0],e[1]),Ui=e=>Math.hypot(e[4],e[5]),Wi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Hi,scaleY:Ui,scaleZ:e=>Math.hypot(e[8],e[9],e[10]),scale:e=>(Hi(e)+Ui(e))/2,rotateX:e=>Bi(Li(Math.atan2(e[6],e[5]))),rotateY:e=>Bi(Li(Math.atan2(-e[2],e[0]))),rotateZ:Vi,rotate:Vi,skewX:e=>Li(Math.atan(e[4])),skewY:e=>Li(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Gi(e){return+!!e.includes(`scale`)}function Ki(e,t){if(!e||e===`none`)return Gi(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Wi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zi,i=t}if(!i)return Gi(t);let a=r[t],o=i[1].split(`,`).map(Ji);return typeof a==`function`?a(o):o[a]}var qi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ki(n,t)};function Ji(e){return parseFloat(e.trim())}var Yi=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`scaleZ`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Xi=new Set([...Yi,`pathRotation`]),Zi=e=>e===wn||e===W,Qi=new Set([`x`,`y`,`z`]),$i=Yi.filter(e=>!Qi.has(e));function ea(e){let t=[];return $i.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var ta=new Set([`bottom`,`right`]);function na(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var ra={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>na(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>na(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Ki(e,`x`),y:({transform:e})=>Ki(e,`y`)};ra.translateX=ra.x,ra.translateY=ra.y;var ia=new Set,aa=!1,oa=!1,sa=!1;function ca(){if(oa){let e=[],t=new Set,n=new Set;ia.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),ta.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ea(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}oa=!1,aa=!1,ia.forEach(e=>e.complete(sa)),ia.clear()}function la(){ia.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(oa=!0)})}function ua(){sa=!0,la(),ca(),sa=!1}function da(e,t,n){if(typeof e==`string`){if(Pt(e)||It(e))return parseFloat(e);if(!lr.test(e)&&lr.test(n))return Fi(t,n)}return e??void 0}var fa=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ia.add(this),aa||(aa=!0,Pr.read(la),Pr.resolveKeyframes(ca))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=da(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Ii(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ia.delete(this)}cancel(){this.state===`scheduled`&&(ia.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},pa=e=>e.startsWith(`--`);function ma(e,t,n){pa(t)?e.style.setProperty(t,n):e.style[t]=n}var ha={};function ga(e,t){let n=Lt(e);return()=>ha[t]??n()}var _a=ga(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),va=ga(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ya=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ba={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ya([0,.65,.55,1]),circOut:ya([.55,0,1,.45]),backIn:ya([.31,.01,.66,-.59]),backOut:ya([.33,1.53,.69,.99])};function xa(e,t){if(e)return typeof e==`function`?va()?Rr(e,t):`ease-out`:ln(e)?ya(e):Array.isArray(e)?e.map(e=>xa(e,t)||ba.easeOut):ba[e]}function Sa(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xa(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Ca(e){return typeof e==`function`&&`applyToOptions`in e}function wa({type:e,...t}){return Ca(e)&&va()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Ta=class extends bi{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wa(e);this.animation=Sa(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=fi(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ma(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},vi(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Ut(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ut(e)}get time(){return Ut(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ht(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&_a()?(this.animation.timeline=e,t?.(this.animation),Rt):n(this)}},Ea={anticipate:$t,backInOut:Qt,circInOut:nn};function Da(e){return e in Ea}function Oa(e){typeof e.ease==`string`&&Da(e.ease)&&(e.ease=Ea[e.ease])}var ka=class extends Ta{constructor(e){Oa(e),mi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}elapsed(){return this.state===`running`?(gn.now()-this.startTime)*this.speed:this.time*1e3}sample(e){if(!this.sampler){let{motionValue:e,onUpdate:t,onComplete:n,onPlay:r,onStop:i,element:a,...o}=this.options;this.sampler=new Ci({...o,autoplay:!1}),this.sampler.stop()}return this.sampler.sample(Math.max(0,e)).value}liveValue(){let{state:e}=this;if(e===`running`||e===`paused`)return this.sample(this.elapsed())}updateMotionValue(e){let{motionValue:t,element:n,name:r}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let{speed:i}=this,a=this.elapsed(),o=this.state===`running`&&i?Mt(0,10,a):0,s=this.sample(a);n&&r&&ma(n,r,s),t.setWithVelocity(this.sample(a-o*Math.sign(i)),s,o/Math.abs(i||1))}},Aa=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(lr.test(e)||e===`0`)&&!e.startsWith(`url(`));function ja(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ma(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Aa(i,t),s=Aa(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):ja(e)||(n===`spring`||Ca(n))&&r}function Na(e){e.duration=0,e.type=`keyframes`}var Pa=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Fa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ia(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Fa.test(e[t]))return!0;return!1}var La=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ra=Lt(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function za(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(Pa.has(n)||La.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ra()&&(Pa.has(n)||La.has(n)&&Ia(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ba=(e,t)=>t&&typeof e==`number`?t.transform(e):e,Va={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ha=Yi.length;function Ua(e,t,n){let r=``,i=!0;for(let a=0;a<Ha;a++){let o=Yi[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ba(s,ji[o]);if(!c){i=!1;let t=Va[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ba(a,ji.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var Wa=new WeakMap,Ga=200,Ka=.001,qa=.1,Ja=.001,Ya=100,Xa=e=>/^(linear|ease(In|Out|InOut))$/.test(e),Za=(e,t)=>e-t,Qa=(e,t,n)=>{let r=[];for(let i=0;i<=n;i++)r.push(pr(e,t,i/n));return r},$a=e=>e.motionValue.owner,eo=e=>Wa.get(e),to=(e,t)=>e.latestValues?e.latestValues[t]:e.getValue(t)?.get(),no=({name:e,motionValue:t})=>e&&Yi.includes(e)&&t?.owner?.current instanceof HTMLElement&&Ra()&&va();function ro(e){let t=$a(e),{onUpdate:n,transformTemplate:r}=t.getProps();return!e.isHandoff&&!n&&!e.hasOnUpdate&&!r&&e.type!==`inertia`&&(to(t,`transform`)||`none`)===`none`&&!to(t,`pathRotation`)&&!t.projection?.isProjecting()}var io=class extends Ci{constructor(e){let t=$a(e).current,{driver:n=Lr}=e,r,i=ro(e);e.driver=e=>{let i=n(e);return{js:i,now:i.now,start:(e=!0)=>{let n=eo(t);!n||n.isJS?i.start(e):n.schedule(!1,!e)},stop:()=>{i.stop();let e=eo(t);e&&!e.isFinishing&&e.release(r)}}},super(e),r=this,this.canAccelerate=i;let{stop:a}=this;this.stop=()=>{this.isAccelerated()&&this.sync(),a()}}get group(){return eo($a(this.options).current)}get js(){return this.driver?.js}get name(){return this.options.name}timing(){let{startTime:e,speed:t,totalDuration:n}=this,{delay:r=0,repeatType:i}=this.options;return this.holdTime===null?n===1/0?[e+r/t,this.resolvedDuration*(i===`loop`?1:2)/t||1]:[e+(r+n)/t,0]:[1/0,0]}isAccelerated(){let{group:e,state:t}=this;return e?.tracks.has(this)&&!e.isJS&&this.canAccelerate&&(t===`running`||t===`paused`)}liveValue(){return this.isAccelerated()?this.sampleAt(gn.now()):void 0}tween(){let{keyframes:e,type:t,ease:n,times:r,repeat:i,delay:a=0}=this.options,o=ln(n)?ya(n):Xa(n)&&ba[n];if(o&&!i&&!r&&e.length===2&&t===si&&this.holdTime===null){let e=this.startTime+a/this.speed;return[e,e+this.resolvedDuration/this.speed,o]}}boundaries(e,t){let{startTime:n,speed:r,resolvedDuration:i,options:a}=this,{delay:o=0,repeat:s=0,repeatDelay:c=0,repeatType:l,times:u,keyframes:d,type:f}=a,p=(f||si)===si?u||ii(d):[0,1],m=n+o/r,h=[];if(this.holdTime!==null||!(i>0))return h;for(let n=Math.max(0,Math.floor((e-m)*r/i));n<=s;n++){let a=m+n*i/r;if(a>t)break;for(let o of p){let s=a+(n%2&&l&&l!==`loop`?1-o:o)*(i-c)/r;s>e&&s<t&&h.push(s)}}return h}numberAt(e){return parseFloat(this.sampleAt(e,!0))}sync(){let e=gn.now();this.options.motionValue.setWithVelocity(this.sampleAt(e-10,!0),this.sampleAt(e,!0),10)}play(){this.isStopped||((this.group||ao($a(this.options))).tracks.add(this),super.play())}pause(){super.pause(),this.isAccelerated()&&(this.sync(),this.group.schedule(!1))}complete(){super.complete();let{group:e}=this;e&&!e.isJS&&this.canAccelerate&&this.tick(gn.now())}get time(){return this.isAccelerated()?Ut(Mt(0,this.totalDuration,this.at(gn.now())-(this.options.delay||0))):super.time}set time(e){super.time=e,this.isAccelerated()&&this.sync()}attachTimeline(e){return this.canAccelerate=!1,this.group?.demote(!0),super.attachTimeline(e)}};function ao(e){let t=e.current,n=new Set,r=new Map,i={},a=[],o=new Map,s=[],c=!1,l=!1,u=!1,d=!1,f=-1/0,p=e=>{for(let t of n)if(t.name===e)return!0},m=(t,n)=>{let o={};for(let s of t===void 0?Yi:a){let a=r.get(s),c=t===void 0?to(e,s):a?a.sampleAt(n>t&&!a.timing()[1]?n:t):i[s];c!==void 0&&(o[s]=c)}return o},h=(e,t)=>{let n=``,r=m(e,t);for(let e in r)n+=(Va[e]||e)+`(`+Ba(r[e],ji[e])+`) `;return n||`none`},g=(e=m())=>{t.style.transform=Ua(e,{})},_=(e=!0)=>{e&&g(),s.forEach(({animation:e})=>e.cancel()),s=[]},v=(e,t,n=1/0)=>{let r={animation:e,offset:t,end:n};e.startTime=gn.now()+t,n<1/0&&(e.onfinish=()=>{r.isDone=!0,s.some(e=>e.end===1/0)&&(e.cancel(),s=s.filter(e=>e!==r)),O.schedule(!1)}),e.oncancel=()=>s.includes(r)&&O.demote(),s.push(r)},y=(e,t,n)=>{let r=(t,n)=>Math.abs(e(n)-e(t)),i=r(t,n);for(;n-t>.01;){let e=(t+n)/2;r(t,e)>r(e,n)?n=e:t=e}return r(t,n)>i/2?[t,n]:[]},b=(e,t,n,r)=>{let i=Math.min(Ga,Math.max(2,Math.ceil((n-t)/10)));if(r.length*4>i)return;let a=Qa(t,n,i).concat(r).sort(Za),o=e=>Bt(t,n,e),s,c;for(let t of e){let e=a.map(e=>t.numberAt(e)),[n]=e,r=e.map(e=>e-n),i=r[r.length-1],o=r.some(e=>Math.abs(e)*Ka>Math.abs(i))?0:i,l=r.map(e=>o?e/o:e);if(!o){if(l.some(e=>!(Math.abs(e)<=Ka)))return}else if(!s)s=l,c=e=>(t.numberAt(e)-n)/o;else if(l.some((e,t)=>!(Math.abs(e-s[t])<=Ka)))return}if(!s||s.every((e,t)=>Math.abs(e-o(a[t]))<=Ka))return`linear`;let l=[],u=(e,t=c(e))=>l.push(Si(t)+` `+Si(o(e)*100)+`%`);return s.forEach((e,t)=>{t&&Math.abs(e-s[t-1])>.2&&y(c,a[t-1],a[t]).forEach(e=>u(e)),u(a[t],e)}),`linear(`+l+`)`},x=(e,t,n,r)=>{let i=[t],a=(t,n)=>e.every(e=>!(Math.abs(e.numberAt((t+n)/2)-(e.numberAt(t)+e.numberAt(n))/2)>(e.name.startsWith(`scale`)?Ja:qa))),o=(t,n,r)=>{if(n-t<1||a(t,n))i.push(n);else if(r<4)o(t,(t+n)/2,r+1),o((t+n)/2,n,r+1);else{for(let r of e)i.push(...y(e=>r.numberAt(e),t,n));i.push(n)}},s=Qa(t,n,Math.ceil((n-t)/100));for(let e of r)s.push(e,Math.min(e+.01,n));let c=t;for(let e of s.sort(Za))e>c&&o(c,e,0),c=e;return i.sort(Za)},S=e=>{let t;for(let n of e){let e=n.tween();if(!e||t?.some((t,n)=>n<2?Math.abs(e[n]-t)>1:e[n]!==t))return;t=e}return t},C=(e,n,r,i={fill:`both`},a,o)=>{let s=e.flatMap(e=>e.boundaries(n,r)),c=o||b(e,n,r,s),l=c?[n,r]:x(e,n,r,s),u=l.map(e=>h(e,a)),d={transform:u};return c||(d.offset=l.map(e=>Bt(n,r,e))),u.every(e=>e===u[0])&&(g(m(n,a)),d=null),t.animate(d,{...i,duration:r-n,easing:c||`linear`})},w=c=>{let l=c,u=0,d=0,f=[],p=[],m=new Set;r.clear(),o=new Map;for(let e of n){r.set(e.name,e);let[t,n]=e.timing(),i=t===1/0;if(o.set(e,[e.at(c),e.speed,i]),i)e.sync();else{if(e.speed<0)return;if(n){if(u){let e=(t-d)/n;if(Math.abs(n-u)>1||Math.abs(e-Math.round(e))*u>1)return}else u=n,d=t;p.push(e)}else m.add(t);f.push(e),l=Math.max(l,t)}}i={},a=Yi.filter(t=>{if(r.has(t))return!0;let n=i[t]=to(e,t);return n!==void 0&&parseFloat(n)!==+!!t.startsWith(`scale`)}),_(!1);let h=!u&&S(f);try{if(h&&h[1]>c){let[e,t,n]=h;v(C(f,e,t,void 0,void 0,n),e-c,t-e)}else l>c&&(v(C(f,c,l),0,l-c),m.forEach(e=>e<l-1&&v(t.animate(null,{duration:e-c}),0,e-c)));if(u){let e=d+Math.floor((l-d)/u)*u;v(C(p,e,e+u,{iterations:1/0,iterationStart:(l-e)/u,fill:`forwards`},l),l-c)}}catch{return}return s.length||_(),!0},T=e=>{let t,r=0;for(let i of n){let n=o.get(i);if(!n)return!1;let[a,s,c]=n,l=i.at(e),u=i.timing()[0]===1/0;if(c){if(u&&l===a)continue;return!1}let d=(l-a)/s,f=u?0:i.speed/s;if(t===void 0)t=d,r=f;else if(Math.abs(d-t)>1||f!==r)return!1}if(t===void 0)return!0;if(!s.length)return!1;for(let{offset:e,end:n,isDone:r}of s){let i=t-e;if(n<1/0&&(r?i<n-1:i<0||i>=n))return!1}for(let{animation:n,offset:i,isDone:a}of s){if(a)continue;let o=t-i;r?(n.playbackRate=r,n.startTime=e-o/r):(n.pause(),n.currentTime=o)}return!0},E=()=>!n.size&&(u=!0,eo(t)===O&&Wa.delete(t),O.isJS||_(),!0),D=()=>{let t=gn.now();if(O.isJS||(O.isFinishing=!0,n.forEach(n=>{let[r,a]=n.timing();n.state===`running`&&n.speed>0&&!a&&r<=t+1&&(n.complete(),i[n.name]=to(e,n.name),o.has(n)||(c=!0))}),O.isFinishing=!1),l=!1,u||(n.forEach(({state:e},t)=>{(e===`idle`||e===`finished`)&&n.delete(t)}),E()))return;for(let e of n)if(!e.canAccelerate)return O.demote(!0);O.isJS&&(O.isJS=!1,c=!0,n.forEach(e=>e.js?.stop()));let r=c,a=d;if(c=d=!1,r||!T(t)){if(a){if(t-f<Ya)return O.demote();f=t}if(!w(t))return O.demote()}},O={tracks:n,isJS:!1,isFinishing:!1,schedule(e,t){u||(c||=e,d||=!!t,l||(l=!0,pn.isProcessing?Pr.render(D,!1,!0):queueMicrotask(D)))},release(e){let{state:t}=e;(t===`idle`||t===`finished`)&&n.delete(e),E()||O.schedule(!0)},check(){if(!O.isJS){for(let t in i)if(to(e,t)!==i[t]&&!p(t))return O.schedule(!0,!0)}},demote(e){O.isJS||u||(n.forEach(t=>{t.isAccelerated()&&t.sync(),e||(t.canAccelerate=!1)}),O.isJS=!0,o=new Map,_(),n.forEach(e=>e.state===`running`&&e.js?.start()))}};return Wa.set(t,O),O}var oo=class extends bi{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gn.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||fa;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=gn.now();let u=!0;Ma(e,i,a,o)||(u=!1,(Nt.instantAnimations||!s)&&l?.(fi(e,n,t)),e[0]=e[e.length-1],Na(n),n.repeat=0);let{onComplete:d}=n;n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{d?.(),this.notifyFinished()};let f=u&&!c&&za(n),p=!f&&no(n);r&&(f||p||this.resolvedAt!==this.createdAt)&&(n.startTime??=gi(this.createdAt,this.resolvedAt));let m;if(f){n.element=n.motionValue?.owner?.current;try{m=new ka(n)}catch{m=new Ci(n)}}else m=p?new io(n):new Ci(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}liveValue(){return this._animation?.liveValue?.()}get animation(){return this._animation||(this.keyframeResolver?.resume(),ua()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},so=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return co(this.animations,`duration`)}get iterationDuration(){return co(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function co(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var lo=class extends so{then(e,t){return this.finished.finally(e).then(()=>{})}};function uo(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var fo=30,po=e=>!isNaN(parseFloat(e)),mo={current:void 0},ho=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=gn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=gn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=po(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Vt)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Vt,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){Pr.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){mo.current&&mo.current.push(this);let e=this.animation?.liveValue?.();return e===void 0?this.current:e}getCurrent(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=gn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>fo)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,fo);return Wt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function go(e,t){return new ho(e,t)}function _o(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function vo(e,t){let n=e?.[t]??e?.default??e;return n===e?n:_o(n,e)}var yo={type:`spring`,stiffness:500,damping:25,restSpeed:10},bo=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xo={type:`keyframes`,duration:.8},So={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Co=(e,{keyframes:t})=>t.length>2?xo:Xi.has(e)?e.startsWith(`scale`)?bo(t[1]):yo:So,wo=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function To(e){for(let t in e)if(!wo.has(t))return!0;return!1}var Eo=(e,t,n,r={},i,a)=>o=>{let s=vo(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Ht(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i,hasOnUpdate:!!s.onUpdate};To(s)||Object.assign(u,Co(e,u)),u.duration&&=Ht(u.duration),u.repeatDelay&&=Ht(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Na(u),u.delay===0&&(d=!0)),(Nt.instantAnimations||Nt.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Na(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=fi(u.keyframes,s);if(e!==void 0){Pr.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Ci(u):new oo(u)},Do=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Oo(e){let t=Do.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ko(e,t,n=1){`${e}`;let[r,i]=Oo(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Pt(e)?parseFloat(e):e}return xn(i)?ko(i,t,n+1):i}function Ao(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function jo(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Ao(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Mo(e,t,n){return jo(e.getProps(),t,n,e)}var No=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Po=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Yi]),Fo=e=>Array.isArray(e);function Io(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,go(n))}function Lo(e){return Fo(e)?e[e.length-1]||0:e}function Ro(e,t){let{transitionEnd:n={},transition:r={},...i}=Mo(e,t)||{};i={...i,...n};for(let t in i)Io(e,t,Lo(i[t]))}var zo=e=>!!(e&&e.getVelocity);function Bo(e){return!!(zo(e)&&e.add)}function Vo(e,t){let n=e.getValue(`willChange`);if(Bo(n))return n.add(t);if(!n&&Nt.WillChange){let n=new Nt.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ho(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Uo=`data-`+Ho(`framerAppearId`);function Wo(e){return e.props[Uo]}var Go=typeof window<`u`;function Ko({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function qo(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?_o(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&(p.animateValues?p.animateValues(t=>e.getValue(t,e.latestValues[t]??0),s,a,n,d):p.animateVisualElement?.(e,s,a,n,d));for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Ko(f,t))continue;let o={delay:n,...vo(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Pr.update(()=>r.set(i));continue}let p=!1;if(Go&&window.MotionHandoffAnimation){let n=Wo(e);if(n){let e=window.MotionHandoffAnimation(n,t,Pr);e!==null&&(o.startTime=e,p=!0)}}Vo(e,t);let m=l??e.shouldReduceMotion;r.start(Eo(t,r,i,m&&Po.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Pr.update(()=>{o&&Ro(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Jo(e,t,n={}){let r=Mo(e,t,No(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?qo(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(Jo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+uo(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function Yo(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>Jo(e,t,n))):typeof t==`string`?Jo(e,t,n):Promise.all(qo(e,Mo(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var Xo={test:e=>e===`auto`,parse:e=>e},Zo=e=>t=>t.test(e),Qo=[wn,W,zn,Rn,Vn,Bn,Xo],$o=e=>Qo.find(Zo(e));function es(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||It(e)}var ts=new Set([`auto`,`none`,`0`]);function ns(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ts.has(t)&&tr(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=Fi(n,i))}var rs=class extends fa{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}scheduleResolve(){if(this.canReadNow()&&(this.readKeyframes(),!this.needsMeasurement))return this.complete();super.scheduleResolve()}canReadNow(){let{unresolvedKeyframes:e,element:t,motionValue:n}=this,r=e[0]??n?.get();if(!t?.current||r===void 0)return!1;for(let t=0;t<e.length;t++)if(Cn(t?e[t]:r))return!1;return!0}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),xn(r))){let i=ko(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Po.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=$o(r),o=$o(i);if(Cn(r)!==Cn(i)&&ra[n])this.needsMeasurement=!0;else if(a!==o){if(Zi(a)&&Zi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ra[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||es(e[t]))&&n.push(t);n.length&&ns(e,n,t)}measure(){let{element:e,name:t}=this;return ra[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},is=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],as=[];function ss(e){typeof e.test==`function`&&e.read,cs(e),as.unshift(e)}function cs(e){At(as,e)}function ls(e){return as.find(t=>t.test(e))}function us(e,t,n={},r){let i=[],{velocity:a,path:o}=n,s=n.reduceMotion??r?.shouldReduceMotion;o?.animateValues&&r&&(t={...t},o.animateValues(e,t,n,0,i));for(let o in t){if(o===`transition`||o===`transitionEnd`)continue;let c=t[o];if(c===void 0)continue;let l=e(o),u=l.get();u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a?Pr.update(()=>l.set(c)):(l.start(Eo(o,l,c,s&&Po.has(o)?{type:!1}:n,r)),l.animation&&i.push(l.animation))}let{transitionEnd:c}=t;if(c){let t=()=>Pr.update(()=>{for(let t in c)e(t).set(c[t])});i.length?Promise.all(i).then(t):t()}return i}function ds(e,t,n,r,i){return us(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=fs(i)??e.read(t,r,i),`${r}`}a=go(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function fs(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function ps(e){return Ft(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function ms(e){return Ft(e)&&`ownerSVGElement`in e}function hs(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var gs=class{constructor(e=Pr.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function _s(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new gs(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var vs={};function ys(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].getCurrent();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(vs[i]||(vs[i]=(Va[i]||i)+`(`))+Ba(a,Ai[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Ba(i,Ai.pathRotation)+`)`),t||`none`}var bs=new Set([`originX`,`originY`,`originZ`]),xs=(e,t)=>Ba(e.get(t)?.get(),ji[t]),Ss=(e,t,n,r)=>{let i,a;if(Xi.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Yi.indexOf(e)-Yi.indexOf(t)))}t.get(`transform`)||(!ps(e)&&!t.get(`transformBox`)&&Ss(e,t,`transformBox`,new ho(`fill-box`)),t.set(`transform`,new ho(`none`),()=>{Wa.get(e)?.check(),e.style.transform=ys(t)})),a=t.get(`transform`)}else bs.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new ho(``),()=>{let n=xs(t,`originX`)??`50%`,r=xs(t,`originY`)??`50%`,i=xs(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=pa(n)?()=>{e.style.setProperty(n,r.getCurrent())}:()=>{e.style[n]=Ba(r.getCurrent(),ji[n])};return t.set(n,r,i,a)},Cs=e=>ps(e)||ms(e),ws=(e,t)=>{if(Xi.has(t))return qi(e,t);let n=getComputedStyle(e),r=pa(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},Ts=_s(Ss,{test:Cs,read:ws});function Es(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Xi.has(e))o=!0;else if(yn(e))i[e]=n;else{let t=Ba(n,ji[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ua(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Ds={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Os={offset:`strokeDashoffset`,array:`strokeDasharray`};function ks(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ds:Os;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var As=[`transform`,`opacity`,`clipPath`,`filter`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function js(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Es(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of As)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&ks(d,i,a,o,!1)}function Ms(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Ns=(e,t,n,r,i=n)=>{let a=Ms(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=Ho(i));let o=ji[n]||ji[i],s=a?()=>{e[i]=Ba(r.get(),ji[n])}:()=>{let t=Ba(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Ps(e,t,n,r){return Pr.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new ho(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Fs=_s((e,t,n,r)=>n.startsWith(`path`)&&!Xi.has(n)?Ps(e,t,n,r):n.startsWith(`attr`)?Ns(e,t,n,r,Is(n)):(Xi.has(n)||bs.has(n)||pa(n)||n in e.style?Ss:Ns)(e,t,n,r),{test:ms,read:(e,t)=>Xi.has(t)?ji[t]?.default||0:pa(t)||As.includes(t)?ws(e,t)||e.getAttribute(Ho(t))||0:(t=Is(t),e.getAttribute(Ho(t))??e.getAttribute(t)??void 0)});function Is(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function Ls({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Rs({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zs(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Bs(e){return e===void 0||e===1}function Vs({scale:e,scaleX:t,scaleY:n}){return!Bs(e)||!Bs(t)||!Bs(n)}function Hs(e){return Vs(e)||Us(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.rotateZ||e.skewX||e.skewY}function Us(e){return Ws(e.x)||Ws(e.y)}function Ws(e){return e&&e!==`0%`}function Gs(e,t,n){return n+t*(e-n)}function Ks(e,t,n,r,i){return i!==void 0&&(e=Gs(e,i,r)),Gs(e,n,r)+t}function qs(e,t=0,n=1,r,i){e.min=Ks(e.min,t,n,r,i),e.max=Ks(e.max,t,n,r,i)}function Js(e,{x:t,y:n}){qs(e.x,t.translate,t.scale,t.originPoint),qs(e.y,n.translate,n.scale,n.originPoint)}var Ys=.999999999999,Xs=1.0000000000001;function Zs(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Qs(e.x,-a.scroll.offset.x),Qs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Js(e,o)),r&&Hs(a.latestValues)&&tc(e,a.latestValues,a.layout?.layoutBox))}t.x<Xs&&t.x>Ys&&(t.x=1),t.y<Xs&&t.y>Ys&&(t.y=1)}function Qs(e,t){e.min+=t,e.max+=t}function $s(e,t,n,r,i=.5){qs(e,t,n,pr(e.min,e.max,i),r)}function ec(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function tc(e,t,n){let r=n??e;$s(e.x,ec(t.x,r.x),t.scaleX,t.scale,t.originX),$s(e.y,ec(t.y,r.y),t.scaleY,t.scale,t.originY)}function nc(e,t){return Ls(zs(e.getBoundingClientRect(),t))}function rc(e,t,n){let r=nc(e,n),{scroll:i}=t;return i&&(Qs(r.x,i.offset.x),Qs(r.y,i.offset.y)),r}var ic={},ac=e=>ms(e)?Fs:Ts,oc=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=rs}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return nc(this.current)}getProps(){return ic}};function sc(e,t,n,r){if(r)return us(e=>r.getValue(e,null),t,n,r);let i=ac(e);return ds(i,e,t,n,new oc(i,e))}var cc=_s((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>Ft(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:lc,cancel:uc}=Nr(queueMicrotask,!1);function dc(e,t,n){let r=zo(e)?e:go(e);return r.start(Eo(``,r,t,n)),r.animation}var fc={},pc={value:null,addProjectionMetrics:null};function mc(e,t){let n=gn.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Fr(r),e(a-t))};return Pr.setup(r,!0),()=>Fr(r)}function hc(e){return ms(e)&&e.tagName===`svg`}function gc(e){return zo(e)?e.get():e}var _c=e=>typeof e==`number`?e:parseFloat(e),vc=is.length,yc=[`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skewX`,`skewY`],bc=yc.length,xc=e=>typeof e==`number`||W.test(e);function Sc(e,t,n,r,i,a){i?(e.opacity=pr(0,n.opacity??1,wc(r)),e.opacityExit=pr(t.opacity??1,0,Tc(r))):a&&(e.opacity=pr(t.opacity??1,n.opacity??1,r));for(let i=0;i<vc;i++){let a=is[i],o=Cc(t,a),s=Cc(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||xc(o)===xc(s)?(e[a]=Math.max(pr(_c(o),_c(s),r),0),(zn.test(s)||zn.test(o))&&(e[a]+=`%`)):e[a]=s)}for(let i=0;i<bc;i++){let a=yc[i];(t[a]||n[a])&&(e[a]=pr(t[a]||0,n[a]||0,r))}}function Cc(e,t){return e[t]===void 0?e.borderRadius:e[t]}var wc=Ec(0,.5,tn),Tc=Ec(.5,.95,Rt);function Ec(e,t,n){return r=>r<e?0:r>t?1:n(Bt(e,t,r))}function Dc(e,t){e.min=t.min,e.max=t.max}function Oc(e,t){Dc(e.x,t.x),Dc(e.y,t.y)}function kc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ac=.9999,jc=1.0001,Mc=-.01,Nc=.01;function Pc(e){return e.max-e.min}function Fc(e,t,n){return Math.abs(e-t)<=n}function Ic(e,t,n,r=.5){e.origin=r,e.originPoint=pr(t.min,t.max,e.origin),e.scale=Pc(n)/Pc(t),e.translate=pr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ac&&e.scale<=jc||isNaN(e.scale))&&(e.scale=1),(e.translate>=Mc&&e.translate<=Nc||isNaN(e.translate))&&(e.translate=0)}function Lc(e,t,n,r){Ic(e.x,t.x,n.x,r?r.originX:void 0),Ic(e.y,t.y,n.y,r?r.originY:void 0)}function Rc(e,t,n,r=0){e.min=(r?pr(n.min,n.max,r):n.min)+t.min,e.max=e.min+Pc(t)}function zc(e,t,n,r){Rc(e.x,t.x,n.x,r?.x),Rc(e.y,t.y,n.y,r?.y)}function Bc(e,t,n,r=0){let i=r?pr(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Pc(t)}function Vc(e,t,n,r){Bc(e.x,t.x,n.x,r?.x),Bc(e.y,t.y,n.y,r?.y)}function Hc(e,t,n,r,i){return e-=t,e=Gs(e,1/n,r),i!==void 0&&(e=Gs(e,1/i,r)),e}function Uc(e,t=0,n=1,r=.5,i,a=e,o=e){if(zn.test(t)&&(t=parseFloat(t),t=pr(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=pr(a.min,a.max,r);e===a&&(s-=t),e.min=Hc(e.min,t,n,s,i),e.max=Hc(e.max,t,n,s,i)}function Wc(e,t,[n,r,i],a,o){Uc(e,t[n],t[r],t[i],t.scale,a,o)}var Gc=[`x`,`scaleX`,`originX`],Kc=[`y`,`scaleY`,`originY`];function qc(e,t,n,r){Wc(e.x,t,Gc,n?n.x:void 0,r?r.x:void 0),Wc(e.y,t,Kc,n?n.y:void 0,r?r.y:void 0)}var Jc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yc=()=>({x:Jc(),y:Jc()}),Xc=()=>({min:0,max:0}),Zc=()=>({x:Xc(),y:Xc()});function Qc(e){return e.translate===0&&e.scale===1}function $c(e){return Qc(e.x)&&Qc(e.y)}function el(e,t){return e.min===t.min&&e.max===t.max}function tl(e,t){return el(e.x,t.x)&&el(e.y,t.y)}function nl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rl(e,t){return nl(e.x,t.x)&&nl(e.y,t.y)}function il(e){return Pc(e.x)/Pc(e.y)}function al(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var ol=class{constructor(){this.members=[]}add(e){kt(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&r.isConnected!==!1||n.snapshot||(At(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(At(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};function sl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var cl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${sl(e,t.target.x)}% ${sl(e,t.target.y)}%`}},ll={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=lr.parse(e);if(i.length>5)return r;let a=lr.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=pr(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ul={borderRadius:{...cl,applyTo:[...is]},borderTopLeftRadius:cl,borderTopRightRadius:cl,borderBottomLeftRadius:cl,borderBottomRightRadius:cl,boxShadow:ll};function dl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,rotateZ:s,skewX:c,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`rotateZ(${s}deg) `),c&&(r+=`skewX(${c}deg) `),l&&(r+=`skewY(${l}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}function fl(e){return[e(`x`),e(`y`)]}var pl=(e,t)=>e.depth-t.depth,ml=class{constructor(){this.children=[],this.isDirty=!1}add(e){kt(this.children,e),this.isDirty=!0}remove(e){At(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pl),this.isDirty=!1,this.children.forEach(e)}},hl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(fc,{...ul,...fc});var gl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},_l=[``,`X`,`Y`,`Z`],vl=1e3,yl=0;function bl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}var xl=({instance:e})=>e&&Wa.get(e)?.demote();function Sl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Wo(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Pr,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Sl(r)}function Cl({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=yl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pc.value&&(gl.nodes=gl.calculatedTargetDeltas=gl.calculatedProjections=0),this.nodes.forEach(El),this.nodes.forEach(Ll),this.nodes.forEach(Rl),this.nodes.forEach(Dl),pc.addProjectionMetrics&&pc.addProjectionMetrics(gl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ml)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Vt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ms(t)&&!hc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Pr.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=mc(i,250),hl.hasAnimatedSinceResize&&(hl.hasAnimatedSinceResize=!1,this.nodes.forEach(Il)))})}n&&this.root.registerSharedNode(n,this),this.addLayoutListener()}addLayoutListener(){let{layoutId:e,layout:t,visualElement:n,animate:r}=this.options;this.instance&&!this.hasLayoutListener&&r!==!1&&n&&(e||t)&&(this.hasLayoutListener=!0,this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:i})=>{if(this.isAnimationBlocked){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||n.getDefaultTransition()||Wl,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=n.getProps(),c=!this.targetLayout||!rl(this.targetLayout,i),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...vo(a,`layout`),onPlay:o,onComplete:s};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Il(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),this.hasLayoutListener=!1,Fr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zl),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Sl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;xl(this),this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,xl(t),(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1),t.isAnimationBlocked&&(t.dragSnapshot||=t.measure(),this.dragAncestor=t)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Al),this.nodes.forEach(kl);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(jl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Nl),this.nodes.forEach(Pl),this.nodes.forEach(Fl),this.nodes.forEach(wl),this.nodes.forEach(Tl)):this.nodes.forEach(jl),this.clearAllSnapshots();let e=gn.now();pn.delta=Mt(0,1e3/60,e-pn.timestamp),pn.timestamp=e,pn.isProcessing=!0,Ir.update.process(pn),Ir.preRender.process(pn),Ir.render.process(pn),pn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ol),this.sharedNodes.forEach((e,t)=>e.members.length?e.removeLeadSnapshot():this.sharedNodes.delete(t))}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Pc(this.snapshot.measuredBox.x)&&!Pc(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=Zc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout;e&&xl(this);let t=this.projectionDelta&&!$c(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Hs(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Jl(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Zc();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Xl))){let{scroll:e}=this.root;e&&(Qs(t.x,e.offset.x),Qs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Zc();if(Oc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Oc(t,e),Qs(t.x,i.offset.x),Qs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Zc();Oc(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Qs(r.x,-n.scroll.offset.x),Qs(r.y,-n.scroll.offset.y)),Hs(n.latestValues)&&tc(r,n.latestValues,n.layout?.layoutBox)}return Hs(this.latestValues)&&tc(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Zc();Oc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Hs(n.latestValues))continue;let r;n.instance&&(Vs(n.latestValues)&&n.updateSnapshot(),r=Zc(),Oc(r,n.measurePageBox())),qc(t,n.latestValues,n.snapshot?.layoutBox,r)}return Hs(this.latestValues)&&qc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade},this.addLayoutListener()}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==pn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=pn.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=Zc(),this.targetWithTransforms=Zc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zc(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Oc(this.target,this.layout.layoutBox),Js(this.target,this.targetDelta)):Oc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),pc.value&&gl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Vs(this.parent.latestValues)||Us(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zc(),this.relativeTargetOrigin=Zc(),Vc(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Oc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===pn.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Oc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Zs(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Zc());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kc(this.prevProjectionDelta.x,this.projectionDelta.x),kc(this.prevProjectionDelta.y,this.projectionDelta.y)),Lc(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&al(this.projectionDelta.x,this.prevProjectionDelta.x)&&al(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),pc.value&&gl.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yc(),this.projectionDelta=Yc(),this.projectionDeltaWithTransform=Yc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Yc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Zc(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Ul));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=pr(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=pr(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Bl(o.x,e.x,n),Bl(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vc(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Hl(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&tl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Zc(),Oc(f,this.relativeTarget)),c&&(this.animationValues=a,Sc(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Fr(this.pendingAnimation),void 0),this.pendingAnimation=Pr.update(()=>{hl.hasAnimatedSinceResize=!0,this.motionValue||=go(0),this.motionValue.jump(0,!1),this.currentAnimation=dc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),yi(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Yl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Zc();let t=Pc(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Pc(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Oc(t,i),tc(t,r),Lc(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ol),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&bl(`z`,e,r,this.animationValues);for(let t=0;t<_l.length;t++)bl(`rotate${_l[t]}`,e,r,this.animationValues),bl(`skew${_l[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=gc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=gc(t?.pointerEvents)||``),this.hasProjected&&!Hs(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=dl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in fc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=fc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?gc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=this.dragSnapshot=this.dragAncestor=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(kl),this.root.sharedNodes.clear()}}}function wl(e){e.updateLayout(),Ml(e)}function Tl(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)fl(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Pc(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Dc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Yl(i,t.layoutBox,n)&&fl(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Pc(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Yc();Lc(o,n,t.layoutBox);let s=Yc();a?Lc(s,e.applyTransform(r,!0),t.measuredBox):Lc(s,n,t.layoutBox);let c=!$c(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Zc();Vc(s,t.layoutBox,i.layoutBox,o);let c=Zc();Vc(c,n,a.layoutBox,o),rl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function El(e){pc.value&&gl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Dl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ol(e){e.clearSnapshot()}function kl(e){e.clearMeasurements()}function Al(e){e.isLayoutDirty=!0,e.updateLayout()}function jl(e){e.isLayoutDirty=!1}function Ml(e){let{snapshot:t,dragAncestor:n}=e,r=n?.layout;if(!t||!r||e.resumeFrom||e.isAnimationBlocked)return;let i=n.dragSnapshot;fl(e=>Qs(t.layoutBox[e],r.layoutBox[e].min-i.layoutBox[e].min))}function Nl(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.dragSnapshot||e.layout,e.isLayoutDirty=!0)}function Pl(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function Fl(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Il(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ll(e){e.resolveTargetDelta()}function Rl(e){e.calcProjection()}function zl(e){e.resetSkewAndRotation()}function Bl(e,t,n){e.translate=pr(t.translate,0,n),e.scale=pr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vl(e,t,n,r){e.min=pr(t.min,n.min,r),e.max=pr(t.max,n.max,r)}function Hl(e,t,n,r){Vl(e.x,t.x,n.x,r),Vl(e.y,t.y,n.y,r)}function Ul(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Wl={duration:.45,ease:[.4,0,.1,1]},Gl=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Kl=Gl(`applewebkit/`)&&!Gl(`chrome/`)?Math.round:Rt;function ql(e){e.min=Kl(e.min),e.max=Kl(e.max)}function Jl(e){ql(e.x),ql(e.y)}function Yl(e,t,n){return e===`position`||e===`preserve-aspect`&&!Fc(il(t),il(n),.2)}function Xl(e){return e!==e.root&&e.scroll?.wasRoot}function Zl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Ql=Cl({attachResizeListener:(e,t)=>Zl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),$l={current:void 0},eu=Cl({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$l.current){let e=new Ql({});e.mount(window),e.setOptions({layoutScroll:!0}),$l.current=e}return $l.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),tu=new WeakMap;function nu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function ru(e){return typeof e==`string`||Array.isArray(e)}var iu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],au=[`initial`,...iu];function ou(e){if(nu(e.animate))return!0;for(let t=0;t<au.length;t++)if(ru(e[au[t]]))return!0;return!1}function su(e){return!!(ou(e)||e.variants)}function cu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(zo(i))e.addValue(r,i);else if(zo(a))e.addValue(r,go(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,go(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var lu={current:null},uu={current:!1},du=typeof window<`u`;function fu(){if(uu.current=!0,du){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>lu.current=e.matches;e.addEventListener(`change`,t),t()}else lu.current=!1}}var pu=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],mu={};function hu(e){mu=e}function gu(){return mu}var _u=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=gn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Pr.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ou(t),this.isVariantNode=su(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&zo(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,tu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(uu.current||fu(),this.shouldReduceMotion=lu.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Fr(this.notifyUpdate),Fr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Pa.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Ta({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Ht(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Xi.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Pr.preRender(this.notifyUpdate),n&&(this.projection&&(this.projection.isTransformDirty=!0),Wa.get(this.current)?.check()),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in mu){let t=mu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Zc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){let{transformTemplate:n,onUpdate:r}=this.props;(e.transformTemplate||n)&&this.scheduleRender(),(e.transformTemplate&&!n||e.onUpdate&&!r)&&Wa.get(this.current)?.demote(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<pu.length;t++){let n=pu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=cu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=go(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Pt(n)||It(n))?n=parseFloat(n):typeof n!=`number`&&!lr.test(n)&&lr.test(t)&&(n=Fi(e,t)),this.setBaseTarget(e,zo(n)?n.get():n)),zo(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Vt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){lc.render(this.render)}},vu=class extends _u{constructor(){super(...arguments),this.KeyframeResolver=rs}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;zo(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function yu(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function bu(e,{layout:t,layoutId:n}){return Xi.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!fc[e]||e===`opacity`)}function xu(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(zo(r[t])||i&&zo(i[t])||bu(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Su(e){return window.getComputedStyle(e)}var Cu=class extends vu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=yu}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Xi.has(t))return this.projection?.isProjecting?Gi(t):qi(e,t);{let n=Su(e),r=(yn(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nc(e,t)}build(e,t,n){Es(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return xu(e,t,n)}},wu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1;function Tu(e){return{point:{x:e.pageX,y:e.pageY}}}var Eu=e=>t=>wu(t)&&e(t,Tu(t));function Du(e,t,n,r){return Zl(e,t,Eu(n),r)}var Ou=new WeakMap,ku,Au=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ms(r)&&`getBBox`in r?r.getBBox()[t]:r[n],ju=Au(`inline`,`width`,`offsetWidth`),Mu=Au(`block`,`height`,`offsetHeight`);function Nu({target:e,borderBoxSize:t}){Ou.get(e)?.forEach(n=>{n(e,{get width(){return ju(e,t)},get height(){return Mu(e,t)}})})}function Pu(e){e.forEach(Nu)}function Fu(){typeof ResizeObserver<`u`&&(ku=new ResizeObserver(Pu))}function Iu(e,t){ku||Fu();let n=hs(e);return n.forEach(e=>{let n=Ou.get(e);n||(n=new Set,Ou.set(e,n)),n.add(t),ku?.observe(e)}),()=>{n.forEach(e=>{let n=Ou.get(e);n?.delete(t),n?.size||ku?.unobserve(e)})}}var Lu=new Set,Ru;function zu(){Ru=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Lu.forEach(t=>t(e))},window.addEventListener(`resize`,Ru)}function Bu(e){return Lu.add(e),Ru||zu(),()=>{Lu.delete(e),!Lu.size&&typeof Ru==`function`&&(window.removeEventListener(`resize`,Ru),Ru=void 0)}}function Vu(e,t){return typeof e==`function`?Bu(e):Iu(e,t)}var Hu=(e,t)=>Math.abs(e-t);function Uu(e,t){let n=Hu(e.x,t.x),r=Hu(e.y,t.y);return Math.sqrt(n**2+r**2)}var Wu=new Set([`auto`,`scroll`]),Gu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ku(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Ju(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Uu(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:gn.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Ku(t,this.transformPagePoint),this.hasPendingMove=!0,Pr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Ju(e.type===`pointercancel`?this.lastMoveEventInfo:Ku(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!wu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Ku(Tu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=pn;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Ju(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=zt(Du(this.contextWindow,`pointermove`,this.handlePointerMove,d),Du(this.contextWindow,`pointerup`,this.handlePointerUp,d),Du(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Wu.has(e.overflowX)||Wu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Pr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Fr(this.updatePoint)}};function Ku(e,t){return t?{point:t(e.point)}:e}function qu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ju({point:e},t){return{point:e,delta:qu(e,Xu(t)),offset:qu(e,Yu(t)),velocity:Zu(t,.1)}}function Yu(e){return e[0]}function Xu(e){return e[e.length-1]}function Zu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Xu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ht(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Ht(t)*2&&(r=e[1]);let a=Ut(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var Qu=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function $u(e){return Qu.has(e.tagName)||e.isContentEditable===!0}var ed=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function td(e){return ed.has(e.tagName)||e.isContentEditable===!0}var nd={x:!1,y:!1};function rd(){return nd.x||nd.y}function id(e){return e===`x`||e===`y`?nd[e]?null:(nd[e]=!0,()=>{nd[e]=!1}):nd.x||nd.y?null:(nd.x=nd.y=!0,()=>{nd.x=nd.y=!1})}function ad(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?pr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?pr(n,e,r.max):Math.min(e,n)),e}function od(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function sd(e,{top:t,left:n,bottom:r,right:i}){return{x:od(e.x,n,i),y:od(e.y,t,r)}}function cd(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ld(e,t){return{x:cd(e.x,t.x),y:cd(e.y,t.y)}}function ud(e,t){let n=.5,r=Pc(e),i=Pc(t);return i>r?n=Bt(t.min,t.max-r,e.min):r>i&&(n=Bt(e.min,e.max-i,t.min)),Mt(0,1,n)}function dd(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var fd=.35;function pd(e=fd){return e===!1?e=0:e===!0&&(e=fd),{x:md(e,`left`,`right`),y:md(e,`top`,`bottom`)}}function md(e,t,n){return{min:hd(e,t),max:hd(e,n)}}function hd(e,t){return typeof e==`number`?e:e[t]||0}var gd=new WeakMap,_d=class{constructor(e,t=()=>e.getProps()){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Zc(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e,this.readProps=t}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=id(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xn(t)&&(t=ko(t,this.visualElement.current)||0),W.test(t))t=parseFloat(t);else if(zn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Pc(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Pr.update(()=>i(e,t),!1,!0),Vo(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){if(this.currentDirection=Cd(o),this.currentDirection===null)return;i&&i(this.currentDirection)}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Pr.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Gu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:this.visualElement.current?.ownerDocument.defaultView,element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Pr.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Sd(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=ad(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;vd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?sd(n.layoutBox,e):!1,this.elastic=pd(t),r!==this.constraints&&!vd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&fl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=dd(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!vd(e))return!1;let n=yd(e),{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=rc(n,r.root,this.visualElement.getTransformPagePoint()),a=ld(r.layout.layoutBox,i);if(t){let e=t(Rs(a));this.hasMutatedConstraints=!!e,e&&(a=Ls(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=fl(o=>{if(!Sd(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Vo(this.visualElement,e),n.start(Eo(e,n,0,t,this.visualElement,!1))}stopAnimation(){fl(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.readProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();fl(e=>{if(!Sd(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-pr(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!vd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};fl(e=>{let t=this.getAxisMotionValue(e).get();i[e]=ud({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),fl(t=>{let n=this.getAxisMotionValue(t);if(!Sd(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(pr(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;gd.set(this.visualElement,this);let e=this.visualElement.current,t=Du(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&td(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps(),r=vd(t)&&yd(t);r&&(this.constraints=this.resolveRefConstraints(),n||=xd(e,r,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Pr.read(r);let o=Zl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(fl(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.readProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=fd,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function vd(e){return!!e&&typeof e==`object`&&(`current`in e||`nodeType`in e)}var yd=e=>`current`in e?e.current:e;function bd(e){let t=!0;return()=>{t?t=!1:e()}}function xd(e,t,n){let r=Vu(e,bd(n)),i=Vu(t,bd(n));return()=>{r(),i()}}function Sd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Cd(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}function wd(e,t){let n=hs(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Td(e){return!(e.pointerType===`touch`||rd())}function Ed(e,t,n={}){let[r,i,a]=wd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Td(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Dd=(e,t)=>t?e===t||Dd(e,t.parentElement):!1,Od=new WeakSet;function kd(e){return t=>{t.key===`Enter`&&e(t)}}function Ad(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var jd=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=kd(()=>{if(Od.has(n))return;Ad(n,`down`);let e=kd(()=>{Ad(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Ad(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Md(e){return wu(e)&&!rd()}var Nd=new WeakSet;function Pd(e,t,n={}){let[r,i,a]=wd(e,n),o=e=>{let r=e.currentTarget;if(!Md(e)||Nd.has(e))return;Od.add(r),n.stopPropagation&&Nd.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Od.has(r)&&Od.delete(r),Md(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Dd(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ps(e)&&(e.addEventListener(`focus`,e=>jd(e,i)),!$u(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Fd(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=ni(i,a,o);return t?s(r):s}var Id=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},Ld=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Rd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function zd(e,t,n,r){yu(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Ld.has(n)?n:Ho(n),t.attrs[n])}function Bd(e,t,n){let r=xu(e,t,n);for(let n in e)if(n!==`children`&&(zo(e[n])||zo(t[n]))){let t=Yi.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Vd=class extends vu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Zc}getBaseTargetFromProps(e,t){return Xi.has(t)?super.getBaseTargetFromProps(e,t)??Gi(t):e[t]}getDefaultValue(e){return Xi.has(e)?this.latestValues[e]??Gi(e):void 0}readValueFromInstance(e,t){if(Xi.has(t)){let e=Ni(t);return e&&e.default||0}if(As.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Ld.has(t)?t:Ho(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Bd(e,t,n)}build(e,t,n){js(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){zd(e,t,n,r)}mount(e){this.isSVGTag=Rd(e.tagName),super.mount(e)}};function Hd(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Ud=[...iu].reverse();function Wd(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>Yo(e,t,n))),n=Kd(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Ud.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?ru(g)||g===!1?g:void 0:h,v=ru(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||nu(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Gd(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Mo(e,n,No(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Hd(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Mo(s,n)?.transition?.delayChildren;r.delay=uo(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Mo(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!zo(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Kd(),i=!0}}}function Gd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Hd(t,e):!1}function Kd(){let e={};for(let t of iu)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function qd(e){return typeof e==`object`&&!Array.isArray(e)}function Jd(e,t,n,r){return e==null?[]:typeof e==`string`&&qd(t)?hs(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Yd(e,t,n){return e*(t+1)+n*t}function Xd(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Zd(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(At(e,i),r--)}}function Qd(e,t,n,r,i,a){Zd(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:pr(i,a,r[o]),easing:cn(n,o)})}function $d(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function ef(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var tf=`easeInOut`,nf=20;function rf(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Xd(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Xd(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=sf(e),{delay:l=0,times:u=ii(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=Ca(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&uf(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=Ht(b));let r=Vr(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&ri(u,T),c.length===1&&c.unshift(null),m&&`${m}${nf}`,m&&m<nf){let e=b>0?_/b:0;b=Yd(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Yt(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:cn(f,e-1))}$d(u,m,e)}let E=w+b;Qd(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(zo(p)){let e=af(p,s);_(m,h,of(`default`,e))}else{let e=Jd(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=af(r,s);for(let e in m)_(m[e],cf(h,e),of(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(ef);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(Bt(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(tf)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function af(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function of(e,t){return t[e]||(t[e]=[]),t[e]}function sf(e){return Array.isArray(e)?e:[e]}function cf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var lf=e=>typeof e==`number`,uf=e=>e.every(lf);function df(e,t){return zo(e)||typeof e==`number`||typeof e==`string`&&!qd(t)}function ff(e,t,n,r){let i=[];if(df(e,t))i.push(dc(e,qd(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Jd(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...sc(r,t,s,tu.get(r))):i.push(...ds(ls(r)??cc,r,t,s))}}return i}function pf(e,t,n){let r=[];return rf(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=go(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:$r}).forEach(({keyframes:e,transition:t},n)=>{r.push(...ff(n,e,t))}),r}function mf(e){return Array.isArray(e)&&e.some(Array.isArray)}function hf(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),mf(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=pf(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=ff(e,i,{...c,...r},t)}let l=new lo(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{At(t.animations,l)})),l}return i}var gf=Object.assign(hf(),{addEffect:ss,removeEffect:cs}),_f=.1,vf=2/3,yf=1/3;function bf(e,t){return e.bottom>t.scrollTop&&e.top<t.scrollTop+t.height}function xf(e,t,n=!1){return e.top>=t.scrollTop+t.height*_f&&e.bottom<=t.scrollTop+t.height*vf&&!n?null:Math.round(Math.max(0,Math.min(t.scrollHeight-t.height,e.top-t.height*yf)))}function Sf(e,t,n){let r=e,i=e,a=[];return{to(e,t){e!==i&&a.push({delta:e-i,start:t}),i=e},at(e){let i=0;return a=a.filter(({delta:a,start:o})=>{let s=Math.max(0,Math.min(1,(e-o)/t));return s===1?(r+=a,!1):(i+=a*n(s),!0)}),r+i},get active(){return a.length>0}}}var Cf=`(prefers-reduced-motion: reduce)`,wf=[.23,1,.32,1],Tf=[.23,1.15,.32,1],Ef=[.77,0,.175,1],Df=qt(...wf),Of={micro:120,base:180,surface:240,askExit:150,ease:`cubic-bezier(${wf.join(`,`)})`,move:`cubic-bezier(${Ef.join(`,`)})`,soft:`cubic-bezier(${Tf.join(`,`)})`,out:wf,softCurve:Tf},kf={settleMs:280},Af=()=>window.matchMedia(Cf).matches?`auto`:`smooth`;function jf(){let[e,t]=(0,H.useState)(()=>window.matchMedia(Cf).matches);return(0,H.useEffect)(()=>{let e=window.matchMedia(Cf),n=()=>t(e.matches);return e.addEventListener(`change`,n),n(),()=>e.removeEventListener(`change`,n)},[]),e}function Mf(e,t){let n=Sf(e.scrollTop,Of.surface,Df),r=e.scrollTop,i=0,a=o=>{i=0,Af()===`auto`?(e.scrollTop=r,t()):(n.to(r,o),e.scrollTop=n.at(o),n.active?i=requestAnimationFrame(a):t())};return{to(e){r=e,i||=requestAnimationFrame(a)},stop(){cancelAnimationFrame(i),i=0},get active(){return i!==0}}}function Nf(e,t=!0){let[n,r]=(0,H.useState)({value:e,animate:t});return(0,H.useLayoutEffect)(()=>{if(e){r({value:e,animate:t});return}if(!n.value)return;let i=setTimeout(()=>r({value:e,animate:!1}),Of.micro);return()=>clearTimeout(i)},[e,t]),{value:e||(n.animate?n.value:void 0),props:{"data-motion":(e?t:n.animate)?void 0:`instant`,"data-ending-style":e?void 0:``,inert:!e}}}var Pf=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ff=o(((e,t)=>{t.exports=Pf()})),If=(0,H.createContext)({});function Lf(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Rf=typeof window<`u`?H.useLayoutEffect:H.useEffect,zf=(0,H.createContext)(null),Bf=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Vf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Hf(...e){return t=>{let n=!1,r=e.map(e=>{let r=Vf(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Vf(e[t],null)}}}}function Uf(...e){return H.useCallback(Hf(...e),e)}var G=Ff(),Wf=class extends H.Component{getSnapshotBeforeUpdate(e){let t=this.props.getElement();if(ps(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=ps(e)&&e.offsetWidth||0,r=ps(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Gf({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a,popNode:o}){let s=(0,H.useId)(),c=(0,H.useRef)(null),l=(0,H.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,H.useContext)(Bf),d=Uf(c,a===!1?void 0:e.props?.ref??e?.ref),f=()=>c.current||o?.current?.current;return(0,H.useInsertionEffect)(()=>{let{width:e,height:o,top:c,left:d,right:p,bottom:m,direction:h}=l.current,g=f();if(t||a===!1||!g||!e||!o)return;let _=h===`rtl`,v=n===`left`?_?`right: ${p}`:`left: ${d}`:_?`left: ${d}`:`right: ${p}`,y=r===`bottom`?`bottom: ${m}`:`top: ${c}`;g.dataset.motionPopId=s;let b=g.ownerDocument,x=b.createElement(`style`);u&&(x.nonce=u);let S=i??b.head;return S.appendChild(x),x.sheet&&x.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${e}px !important;
@@ -24,25 +24,25 @@ Lincoln Park: I’ll send the announcement on Wednesday morning.`,transcript:{sp
${v}px !important;
${y}px !important;
}
- `),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,G.jsx)(Wf,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:H.cloneElement(e,{ref:d})})}var Kf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Lf(qf),d=(0,H.useId)(),f=(0,H.useRef)(),p=(0,H.useRef)(n),m=(0,H.useRef)(r);Rf(()=>{p.current=n,m.current=r});let h=!0,g=(0,H.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,H.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),H.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,G.jsx)(Gf,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,G.jsx)(zf.Provider,{value:g,children:e})};function qf(){return new Map}function Jf(e=!0){let t=(0,H.useContext)(zf);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,H.useId)();(0,H.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,H.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Yf(){return Xf((0,H.useContext)(zf))}function Xf(e){return e===null||e.isPresent}var Zf=e=>e.key||``;function Qf(e){let t=[];return H.Children.forEach(e,e=>{(0,H.isValidElement)(e)&&t.push(e)}),t}var $f=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Jf(o),f=(0,H.useMemo)(()=>Qf(e),[e]),p=o&&!u?[]:f.map(Zf),m=(0,H.useRef)(!0),h=Lf(()=>new Map),g=(0,H.useRef)(new Set),[_,v]=(0,H.useState)(f),[y,b]=(0,H.useState)(f);Rf(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,H.useRef)();(0,H.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),Rf(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Zf(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Zf(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Zf(e)))?e=f:a===`wait`&&(e=S),b(Qf(e)),v(f),null}let{forceRender:C}=(0,H.useContext)(If);return(0,G.jsx)(G.Fragment,{children:y.map(e=>{let _=Zf(e),b=o&&!u?!1:f===y||p.includes(_);return(0,G.jsx)(Kf,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},ep=(0,H.createContext)({strict:!1}),tp={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},np=!1;function rp(){if(np)return;let e={};for(let t in tp)e[t]={isEnabled:e=>tp[t].some(t=>!!e[t])};hu(e),np=!0}function ip(){return rp(),gu()}function ap(e){let t=ip();for(let n in e)t[n]={...t[n],...e[n]};hu(t)}function op({children:e,...t}){let n=(0,H.useContext)(Bf);t={...n,...t},t.transition=_o(t.transition,n.transition),t.isStatic=Lf(()=>t.isStatic);let r=(0,H.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,G.jsx)(Bf.Provider,{value:r,children:e})}var sp=(0,H.createContext)({});function cp(e,t){if(ou(e)){let{initial:t,animate:n}=e;return{initial:t===!1||ru(t)?t:void 0,animate:ru(n)?n:void 0}}return e.inherit===!1?{}:t}function lp(e){let{initial:t,animate:n}=cp(e,(0,H.useContext)(sp));return(0,H.useMemo)(()=>({initial:t,animate:n}),[up(t),up(n)])}function up(e){return Array.isArray(e)?e.join(` `):e}var dp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fp(e,t,n){for(let r in t)!zo(t[r])&&!bu(r,n)&&(e[r]=t[r])}function pp({transformTemplate:e},t){return(0,H.useMemo)(()=>{let n=dp();return Es(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mp(e,t){let n=e.style||{},r={};return fp(r,n,e),Object.assign(r,pp(e,t)),r}function hp(e,t){let n={},r=mp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var gp=()=>({...dp(),attrs:{}});function _p(e,t,n,r){let i=(0,H.useMemo)(()=>{let n=gp();return js(n,t,Rd(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};fp(t,e.style,e),i.style={...t,...i.style}}return i}var vp=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function yp(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||vp.has(e)}function bp(e,t){return e.startsWith(`on`)?!yp(e):t?.(e)??!yp(e)}function xp(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||zo(e[a])||(bp(a,r)||n===!0&&yp(a)||!t&&!yp(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Sp=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Cp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Sp.indexOf(e)>-1||/[A-Z]/u.test(e))}function wp(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Cp(e)?_p:hp)(t,r,i,e),l=xp(t,typeof e==`string`,a,s),u=e===H.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,H.useMemo)(()=>zo(d)?d.get():d,[d]);return(0,H.createElement)(e,{...u,children:f})}function Tp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ep(n,r,i,e),renderState:t()}}function Ep(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=gc(a[e]);let{initial:o,animate:s}=e,c=ou(e),l=su(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!nu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=jo(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Dp=e=>(t,n)=>{let r=(0,H.useContext)(sp),i=(0,H.useContext)(zf),a=()=>Tp(e,t,r,i);return n?a():Lf(a)},Op=Dp({scrapeMotionValuesFromProps:xu,createRenderState:dp}),kp=Dp({scrapeMotionValuesFromProps:Bd,createRenderState:gp}),Ap=Symbol.for(`motionComponentSymbol`);function jp(e,t,n){let r=(0,H.useRef)(n);(0,H.useInsertionEffect)(()=>{r.current=n});let i=(0,H.useRef)(null);return(0,H.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Mp=(0,H.createContext)({});function Np(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Pp(e,t,n,r,i,a){let{visualElement:o}=(0,H.useContext)(sp),s=(0,H.useContext)(ep),c=(0,H.useContext)(zf),l=(0,H.useContext)(Bf),u=l.reducedMotion,d=l.skipAnimations,f=(0,H.useRef)(null),p=(0,H.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,H.useContext)(Mp);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Fp(f.current,n,i,h);let g=(0,H.useRef)(!1);(0,H.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Uo],v=(0,H.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Rf(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Rf(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,H.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Fp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Ip(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Np(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ip(e){if(e)return e.options.allowProjection===!1?Ip(e.parent):e.projection}function Lp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ap(r);let a=n?n===`svg`:Cp(e),o=a?kp:Op;function s(n,s){let c,l={...(0,H.useContext)(Bf),...n,layoutId:Rp(n)},{isStatic:u,isValidProp:d}=l,f=lp(n),p=o(n,u);if(!u&&typeof window<`u`){zp(l,r);let t=Bp(l);c=t.MeasureLayout,f.visualElement=Pp(e,p,l,i,t.ProjectionNode,a)}return(0,G.jsxs)(sp.Provider,{value:f,children:[c&&f.visualElement?(0,G.jsx)(c,{visualElement:f.visualElement,...l}):null,wp(e,n,jp(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,H.forwardRef)(s);return c[Ap]=e,c}function Rp({layoutId:e}){let t=(0,H.useContext)(If).id;return t&&e!==void 0?t+`-`+e:e}function zp(e,t){(0,H.useContext)(ep).strict}function Bp(e){let{drag:t,layout:n}=ip();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Vp(e,t){if(typeof Proxy>`u`)return Lp;let n=new Map,r=(n,r)=>Lp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Lp(a,void 0,e,t)),n.get(a))})}var Hp=(e,t)=>t.isSVG??Cp(e)?new Vd(t):new Cu(t,{allowProjection:e!==H.Fragment}),Up=class extends Id{constructor(e){super(e),e.animationState||=Wd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();nu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Wp=0,Gp={animation:{Feature:Up},exit:{Feature:class extends Id{constructor(){super(...arguments),this.id=Wp++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Mo(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},Kp=class extends Id{constructor(e){super(e),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new _d(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},qp=({current:e})=>e?e.ownerDocument.defaultView:null,Jp=e=>(t,n)=>{e&&Pr.update(()=>e(t,n),!1,!0)},Yp=class extends Id{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(e){this.session=new Gu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jp(e),onStart:Jp(t),onMove:Jp(n),onEnd:(e,t)=>{delete this.session,r&&Pr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Du(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Xp=!1,Zp=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),Qp=class extends H.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Xp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Zp(this.props),onExitComplete:()=>this.safeToRemove()})),hl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...Zp(this.props)}),Xp=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Pr.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),lc.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Xp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function $p(e){let[t,n]=Jf(),r=(0,H.useContext)(If);return(0,G.jsx)(Qp,{...e,layoutGroup:r,switchLayoutGroup:(0,H.useContext)(Mp),isPresent:t,safeToRemove:n})}var em={pan:{Feature:Yp},drag:{Feature:Kp,ProjectionNode:eu,MeasureLayout:$p}};function tm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Pr.postRender(()=>i(t,Tu(t)))}var nm=class extends Id{mount(){let{current:e}=this.node;e&&(this.unmount=Ed(e,(e,t)=>(tm(this.node,t,`Start`),e=>tm(this.node,e,`End`))))}unmount(){}},rm=class extends Id{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=zt(Zl(this.node.current,`focus`,()=>this.onFocus()),Zl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function im(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Pr.postRender(()=>i(t,Tu(t)))}var am=class extends Id{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Pd(e,(e,t)=>(im(this.node,t,`Start`),(e,{success:t})=>im(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},om=new WeakMap,sm=new WeakMap,cm=e=>{let t=om.get(e.target);t&&t(e)},lm=e=>{e.forEach(cm)};function um({root:e,...t}){let n=e||document;sm.has(n)||sm.set(n,{});let r=sm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(lm,{root:e,...t})),r[i]}function dm(e,t,n){let r=um(t);return om.set(e,n),r.observe(e),()=>{om.delete(e),r.unobserve(e)}}var fm={some:0,all:1},pm=class extends Id{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:fm[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=dm(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(mm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function mm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var hm={inView:{Feature:pm},tap:{Feature:am},focus:{Feature:rm},hover:{Feature:nm}},gm={layout:{ProjectionNode:eu,MeasureLayout:$p}},_m=Vp({...Gp,...hm,...em,...gm},Hp);function vm(e){let t=Lf(()=>go(e)),{isStatic:n}=(0,H.useContext)(Bf);if(n){let[,n]=(0,H.useState)(e);(0,H.useEffect)(()=>t.on(`change`,n),[])}return t}function ym(e,t){let n=vm(t()),r=()=>n.set(t());return r(),Rf(()=>{let t=()=>Pr.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Fr(r)}}),n}function bm(e){mo.current=[],e();let t=ym(mo.current,e);return mo.current=void 0,t}function xm(e,t,n,r){if(typeof e==`function`)return bm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Cm(e,t,n,r);let i=typeof t==`function`?t:Fd(t,n,r),a=Array.isArray(e)?Sm(e,i):Sm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function Sm(e,t){let n=Lf(()=>[]);return ym(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Cm(e,t,n,r){let i=Lf(()=>Object.keys(n)),a=Lf(()=>({}));for(let o of i)a[o]=xm(e,t,n[o],r);return a}var wm=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Tm=()=>new wm;function Em(){return Lf(Tm)}var Dm=(0,H.createContext)(null);function Om(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:pr(t.x.min,t.x.max,.5)+n.x,y:pr(t.y.min,t.y.max,.5)+n.y},i=km(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>Am(r.y,t)<Am(r.y,e)?t:e);if(c!==s)return jm(e,o,r.x,c,a);let l=Mm(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Mm(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:jt(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=pr(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?jt(e,o,o+s):e}function km(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function Am(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function jm(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=pr(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Mm(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Nm=(e,t)=>e.max<=t.min||t.max<=e.min;function Pm(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Nm(e[r].x,e[i].x),n||=Nm(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Fm({children:e,as:t=`ul`,axis:n,onReorder:r,values:i,onPointerDownCapture:a,onClickCapture:o,...s},c){let l=Lf(()=>_m[t]),u=(0,H.useRef)(new Map),[d,f]=(0,H.useState)(`y`),p=(0,H.useRef)(!1),m=(0,H.useRef)(!1),h=(0,H.useRef)(null),g=n||d,_=new Set(i);u.current.forEach((e,t)=>{_.has(t)||u.current.delete(t)});let v={axis:g,groupRef:h,hasReordered:m,registerItem:(e,t)=>{if(u.current.set(e,t),!n){let e=Pm(i.flatMap(e=>{let t=u.current.get(e);return t?[t]:[]}));e!==d&&f(e)}},updateOrder:(e,t,n)=>{if(p.current)return;let a=i.flatMap(e=>{let t=u.current.get(e);return t?[{value:e,layout:t}]:[]}),o=h.current?.ownerDocument.defaultView?.getComputedStyle(h.current).direction===`rtl`?`rtl`:`ltr`,s=Om(a,e,t,n,g,o);if(a!==s){p.current=!0,m.current=!0;let e=[...i],t=a.map(({value:e})=>i.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};(0,H.useEffect)(()=>{p.current=!1},[i]);let y=e=>{h.current=e,typeof c==`function`?c(e):c&&(c.current=e)},b={overflowAnchor:`none`,...s.style};return(0,G.jsx)(l,{...s,style:b,ref:y,onPointerDownCapture:e=>{m.current=!1,a?.(e)},onClickCapture:e=>{m.current&&e.detail&&(m.current=!1,e.stopPropagation(),e.preventDefault()),o?.(e)},ignoreStrict:!0,children:(0,G.jsx)(Dm.Provider,{value:v,children:e})})}var Im=(0,H.forwardRef)(Fm),Lm=50,Rm=25,zm=new Set([`auto`,`scroll`]),Bm=new WeakMap,Vm=new WeakMap,Hm=null;function Um(){if(Hm){let e=Gm(Hm,`y`);e&&(Vm.delete(e),Bm.delete(e));let t=Gm(Hm,`x`);t&&t!==e&&(Vm.delete(t),Bm.delete(t)),Hm=null}}function Wm(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return zm.has(r)||i}function Gm(e,t){let n=e?.parentElement;for(;n;){if(Wm(n,t))return n;n=n.parentElement}return null}function Km(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Lm){let e=1-o/Lm;return{amount:-25*e*e,edge:`start`}}if(s<Lm){let e=1-s/Lm;return{amount:Rm*e*e,edge:`end`}}return{amount:0,edge:null}}function qm(e,t,n,r){if(!e)return;Hm=e;let i=Gm(e,n);if(!i)return;let{amount:a,edge:o}=Km(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){Vm.delete(i),Bm.delete(i);return}let s=Vm.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;Vm.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Bm.set(i,e)}if(a>0){let e=Bm.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function Jm(e,t=0){return zo(e)?e:vm(t)}function Ym({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Lf(()=>_m[r]),u=(0,H.useContext)(Dm),d={x:Jm(t.x),y:Jm(t.y)},f=xm([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g,hasReordered:_}=u;return(0,G.jsx)(l,{drag:p===`xy`||p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o={x:d.x.get(),y:d.y.get()};h(n,o,r);let s=p===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:p;qm(g.current,a[s],s,r[s]),i&&i(e,t)},onDragEnd:(e,t)=>{_.current=!1,Um(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var Xm=(0,H.forwardRef)(Ym),Zm=_m,Qm={out:[.23,1,.32,1],soft:[.215,.61,.355,1],draw:[0,0,.58,1],inOut:[.77,0,.175,1],away:[.33,.17,.67,.5],in:[.4,0,1,1],drawer:[.34,1.2,.64,1],arrive:[.11,0,.5,0],color:[.25,.1,.25,1],leave:[0,0,.58,1],enter:[.25,.1,.35,1],resize:[.4,0,.1,1],fill:[.4,0,.2,1]},$m={press:{type:`spring`,stiffness:550,damping:30,restSpeed:10},pop:{type:`spring`,stiffness:400,damping:29},tooltip:{type:`spring`,stiffness:400,damping:31},dialog:{type:`spring`,stiffness:150,damping:25},toast:{type:`spring`,stiffness:280,damping:24},selection:{type:`spring`,stiffness:300,damping:30},highlight:{type:`spring`,stiffness:500,damping:40},reflow:{type:`spring`,stiffness:500,damping:40},handoff:{type:`spring`,stiffness:450,damping:43},morph:{type:`spring`,stiffness:660,damping:52},height:{type:`spring`,stiffness:300,damping:30,bounce:0,restDelta:.01},slide:{type:`spring`,stiffness:300,damping:35,restDelta:.01},thumb:{type:`spring`,stiffness:300,damping:25},slider:{type:`spring`,stiffness:400,damping:32},bounce:{type:`spring`,stiffness:200,damping:16},glyph:{type:`spring`,stiffness:500,damping:45},checkPop:{type:`spring`,stiffness:500,damping:24},entrance:{type:`spring`,stiffness:200,damping:20},progress:{type:`spring`,stiffness:300,damping:35,restDelta:.01,restSpeed:.1},number:{type:`spring`,stiffness:90,damping:50}},eh={menu:{duration:.22,ease:Qm.soft},overlay:{duration:.4,ease:Qm.soft},dialogFade:{duration:.4,ease:Qm.soft},fade:{duration:.2,ease:Qm.out},color:{duration:.2,ease:Qm.color},reveal:{duration:.3,ease:Qm.out},disclosure:{duration:.35,ease:Qm.soft},panelOut:{duration:.15,ease:Qm.leave},panelIn:{duration:.3,ease:Qm.enter},tooltipIn:{duration:.34,ease:Qm.enter},tooltipOut:{duration:.13,ease:Qm.leave},panelHeight:{duration:.45,ease:Qm.resize},check:{duration:.3,delay:.2,ease:Qm.draw},uncheck:{duration:.3,ease:Qm.draw},fill:{duration:.3,ease:Qm.fill},popOut:{duration:.15,ease:Qm.out},swap:{duration:.15,ease:Qm.out},spin:{duration:.3,ease:Qm.out},handoffOut:{duration:.22,ease:Qm.soft},handoffIn:{duration:.26,ease:Qm.arrive},dismiss:{duration:.2,ease:Qm.away},shake:{duration:.4,ease:Qm.inOut},drawerOut:{duration:.16,ease:Qm.in},drawer:{duration:.4,ease:Qm.drawer},sheet:{duration:.4,ease:Qm.soft},collapse:{duration:.28,ease:Qm.inOut},collapseLabel:{duration:.14,ease:Qm.out},instant:{duration:0}},th={press:.97,choice:.985,tooltip:.7,popover:.8,menu:.9,dialog:.8,icon:.5,toast:.96,fill:.7,action:.9},nh={icon:`blur(2px)`,tooltip:`blur(6px)`,disclosure:`blur(2px)`,surface:`blur(4px)`,panel:`blur(5px)`},rh={icon:90},ih={handoff:6,navigation:24,tabs:12,step:24,tooltip:40,shake:3},ah={stack:.03};function oh(e=1){let t=t=>e===1?t:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,uh(n,e)]));return{tempo:e,ease:Qm,scale:th,blur:nh,rotate:rh,shift:ih,stagger:e===1?ah:Object.fromEntries(Object.entries(ah).map(([t,n])=>[t,n*e])),spring:t($m),transition:t(eh)}}var sh=oh(),ch=H.createContext(sh),lh=[`duration`,`visualDuration`,`delay`,`repeatDelay`,`delayChildren`];function uh(e,t){if(!e||t===1||typeof e!=`object`)return e;let n={};for(let[r,i]of Object.entries(e))n[r]=typeof i==`number`&&lh.includes(r)?i*t:typeof i==`number`&&r===`stiffness`?i/(t*t):typeof i==`number`&&r===`damping`?i/t:i&&typeof i==`object`&&!Array.isArray(i)?uh(i,t):i;return n}function dh(e){let{tempo:t}=H.use(ch);return uh(e,t)}function fh(){return H.use(ch)}H.createContext(`draw`);var ph={linear:`linear`,easeIn:`cubic-bezier(0.42, 0, 1, 1)`,easeOut:`cubic-bezier(0, 0, 0.58, 1)`,easeInOut:`cubic-bezier(0.42, 0, 0.58, 1)`,circIn:`cubic-bezier(0, 0.65, 0.55, 1)`,circOut:`cubic-bezier(0.55, 0, 1, 0.45)`,backIn:`cubic-bezier(0.31, 0.01, 0.66, -0.59)`,backOut:`cubic-bezier(0.33, 1.53, 0.69, 0.99)`},mh=[`stiffness`,`damping`,`mass`,`bounce`,`visualDuration`];function hh(e){return Array.isArray(e)&&e.length===4&&e.every(Number.isFinite)?`cubic-bezier(${e.join(`, `)})`:typeof e==`string`?ph[e]??`ease`:ph.easeInOut}function gh(e){let t=e;if(t.type===`spring`||mh.some(e=>e in t)){let{duration:e,ease:n}=Vr(typeof t.duration==`number`?{...t,duration:t.duration*1e3}:t,100,$r),r=Math.round(e*1e3);return{duration:r,easing:Rr(n,r)}}let n=typeof t.duration==`number`?t.duration:.3;return{duration:Math.round(n*1e3),easing:hh(t.ease)}}var _h=H.createContext(`user`);function vh(){let e=H.use(_h),{reducedMotion:t}=H.use(Bf);return t===`always`?`always`:e}function yh({children:e,remount:t}){let n=vh();return(0,G.jsx)(op,{reducedMotion:n,children:t?(0,G.jsx)(bh,{children:e}):e})}function bh({children:e}){let t=Ch();return(0,G.jsx)(H.Fragment,{children:e},t?`reduce`:`full`)}var xh=`(prefers-reduced-motion: reduce)`;function Sh(e){let t=window.matchMedia(xh);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function Ch(){let e=vh(),t=H.useSyncExternalStore(Sh,()=>window.matchMedia(xh).matches,()=>!1);return e===`never`?!1:e===`always`||t}var wh=sh.spring.pop;sh.transition.menu,sh.spring.morph;var Th={tooltip:sh.scale.tooltip,popover:sh.scale.popover,menu:sh.scale.menu};function Eh(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Dh(e){if(!(e instanceof HTMLElement))return[1,1];let t=e.getBoundingClientRect(),n=(e,t)=>t&&Math.abs(e-t)>=1?e/t:1;return[n(t.width,e.offsetWidth),n(t.height,e.offsetHeight)]}var Oh=sh.transition.fade,kh=[`top`,`bottom`,`left`,`right`],Ah={top:`--scroll-fade-top`,bottom:`--scroll-fade-bottom`,left:`--scroll-fade-left`,right:`--scroll-fade-right`,size:`--scroll-fade-size`},jh=e=>`rgb(0 0 0 / calc(1 - var(${Ah[e]}, 0)))`,Mh=e=>`calc(var(${Ah.size}) * min(1, var(${Ah[e]}, 0) * 1000))`,Nh=`linear-gradient(to bottom, ${jh(`top`)} 0, #000 ${Mh(`top`)}, #000 calc(100% - ${Mh(`bottom`)}), ${jh(`bottom`)} 100%)`,Ph=`linear-gradient(to right, ${jh(`left`)} 0, #000 ${Mh(`left`)}, #000 calc(100% - ${Mh(`right`)}), ${jh(`right`)} 100%)`,Fh={vertical:Nh,horizontal:Ph,both:`${Nh}, ${Ph}`},Ih=e=>Math.min(1,Math.max(0,e)),Lh=e=>e*e*(3-2*e),Rh=1.75,zh=150,Bh=`ul, ol, [role="list"], [role="group"]`;function Vh(e,t){for(let n of e.children)n instanceof HTMLElement&&(n.matches(Bh)||Array.from(n.children).some(e=>e.matches(Bh))?Vh(n,t):t.push(n));return t}function Hh(e){let t=e;for(;t.children.length===1;)t=t.children[0];return Vh(t,[])}function Uh(e,t){let n=e.style;if(t)n.setProperty(`mask-image`,t),n.setProperty(`-webkit-mask-image`,t),n.setProperty(`mask-composite`,`intersect`),n.setProperty(`-webkit-mask-composite`,`source-in`);else for(let e of[`mask-image`,`-webkit-mask-image`,`mask-composite`,`-webkit-mask-composite`])n.removeProperty(e)}function Wh(e,{orientation:t=`vertical`,size:n=40,shrink:r=.03,blur:i=4,transition:a,enabled:o=!0}={}){let s=Ch(),c=dh(a??Oh),l=H.useRef(c);H.useEffect(()=>{l.current=c});let u=vm(0),d=vm(0),f=vm(0),p=vm(0),m=H.useMemo(()=>({top:u,bottom:d,left:f,right:p}),[u,d,f,p]),h=H.useRef(s);return H.useEffect(()=>{h.current=s},[s]),H.useEffect(()=>{let a=e.current;if(!a||!o)return;let s=t!==`horizontal`,c=t!==`vertical`,u=Fh[t],d=!1;a.style.setProperty(Ah.size,`${n}px`);let f=new Set,p=new Set,g=()=>{for(let e of f)e.style.removeProperty(`scale`);for(let e of p)e.style.removeProperty(`filter`);f.clear(),p.clear()},_=[],v=0,y=0,b=()=>{if(!r&&!i){_=[];return}let e=a.getBoundingClientRect(),[t,n]=Dh(a);v=a.clientWidth,y=a.clientHeight,_=Hh(a).map(r=>{let i=r.getBoundingClientRect();return{item:r,x:(i.left+i.width/2-e.left)/t+a.scrollLeft,y:(i.top+i.height/2-e.top)/n+a.scrollTop,ownFilter:!p.has(r)&&getComputedStyle(r).filter!==`none`}})},x=n*Rh,S=e=>x>0?Lh(Ih(1-e/x)):0,C=!0,w=()=>{C&&(C=!1,b());let e=h.current?0:r;if(!_.length||!e&&!i)return g();let t=a.scrollLeft,n=a.scrollTop;for(let{item:r,x:a,y:o,ownFilter:l}of _){let u=0;if(s){let e=o-n;u=Math.max(S(e)*m.top.get(),S(y-e)*m.bottom.get())}if(c){let e=a-t;u=Math.max(u,S(e)*m.left.get(),S(v-e)*m.right.get())}u>.001&&e?(r.style.scale=String(1-e*u),f.add(r)):f.delete(r)&&r.style.removeProperty(`scale`),u>.001&&i&&!l?(r.style.filter=`blur(${(i*u).toFixed(2)}px)`,p.add(r)):p.delete(r)&&r.style.removeProperty(`filter`)}},T=!1,E=()=>{T=!1,w()},D=()=>{T||(T=!0,Pr.render(E))},O=()=>{let e=!1;for(let t of kh){let n=Ih(m[t].get());n>.001&&(e=!0),a.style.setProperty(Ah[t],n.toFixed(4))}e!==d&&(d=e,Uh(a,e?u:null)),D()},k=kh.map(e=>m[e].on(`change`,O)),A=n/2,j=e=>A>0?Ih(e/A):+(e>.5),M=e=>{let t={top:0,bottom:0,left:0,right:0};if(s){let e=a.scrollHeight-a.clientHeight;e>1&&(t.top=j(a.scrollTop),t.bottom=j(e-a.scrollTop))}if(c){let e=a.scrollWidth-a.clientWidth;if(e>1){let n=Math.abs(a.scrollLeft),r=e-n,i=getComputedStyle(a).direction===`rtl`;t.left=j(i?r:n),t.right=j(i?n:r)}}for(let n of kh)e||h.current?m[n].jump(t[n]):Math.abs(m[n].get()-t[n])>.001&&gf(m[n],t[n],l.current);O()};M(!0);let N=0,P=()=>{let e=performance.now();e-N>zh&&(C=!0),N=e,M(!0)};a.addEventListener(`scroll`,P,{passive:!0});let F=new ResizeObserver(()=>{C=!0,M(!1)}),I=()=>{F.disconnect(),F.observe(a);for(let e of a.children)F.observe(e)};I();let L=new MutationObserver(e=>{e.some(e=>e.target===a)&&I(),C=!0,M(!1)});return L.observe(a,{childList:!0,subtree:!0}),()=>{a.removeEventListener(`scroll`,P),Fr(E),F.disconnect(),L.disconnect(),k.forEach(e=>e()),Uh(a,null),g();for(let e of Object.values(Ah))a.style.removeProperty(e);for(let e of kh)m[e].jump(0)}},[e,o,t,n,r,i,m]),m}var Gh={vertical:{overflowY:`auto`},horizontal:{overflowX:`auto`},both:{overflow:`auto`}};function Kh({ref:e,asChild:t=!1,orientation:n=`vertical`,size:r,shrink:i,blur:a,transition:o,enabled:s,style:c,children:l,...u}){let d=H.useRef(null),f=H.isValidElement(l)?l.props.ref:void 0,p=H.useMemo(()=>Eh(d,f),[f]);H.useImperativeHandle(e,()=>d.current),Wh(d,{orientation:n,size:r,shrink:i,blur:a,transition:o,enabled:s});let m={"data-slot":`scroll-fade`,"data-orientation":n,...u};if(t&&H.isValidElement(l)){let e=l;return H.cloneElement(e,{...e.props,...m,className:[e.props.className,u.className].filter(Boolean).join(` `)||void 0,style:{...Gh[n],...e.props.style,...c},ref:p})}return(0,G.jsx)(`div`,{ref:d,style:{...Gh[n],...c},...m,children:l})}function qh({children:e,enabled:t=!0,size:n=20}){let r=jf();return(0,G.jsx)(Kh,{asChild:!0,enabled:t,size:n,shrink:0,blur:0,transition:{duration:(r?Of.micro:Of.base)/1e3,ease:Of.out},children:e})}var Jh=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Yh(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Jh(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Xh=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Zh=e=>{let t=Xh(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qh=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$h={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function eg(e){return e!=null}function tg(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$h.width,a=e.size??e.height??$h.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Qh(...c):Qh(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$h[`stroke-width`])*Number(e.size??e.width??$h.width)/Number(t.size??t.width??$h.width):t.strokeWidth??$h[`stroke-width`];return[`svg`,{...Object.entries($h).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&eg(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&eg(t.width)&&{[r(`width`)]:t.width},...`height`in t&&eg(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ng(e,t={}){return tg(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var rg=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ig=(0,H.createContext)({}),eee=()=>(0,H.useContext)(ig),tee=(0,H.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=eee()??{},y=!!c||rg(d),[b,x,S=[]]=ng(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Qh(v,s),hasA11yProp:y,attributes:d});return(0,H.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function ag(e,t=[],n=[]){let r=typeof e==`string`?Yh(e,t,n):e,i=(0,H.forwardRef)(({className:e,...t},n)=>(0,H.createElement)(tee,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Zh(r.name)),i}var og={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};og.node;var sg=ag(og),cg={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};cg.node;var nee=ag(cg),lg={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};lg.node;var ug=ag(lg),dg={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};dg.node;var fg=ag(dg),pg={name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]};pg.node;var ree=ag(pg),mg={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};mg.node;var iee=ag(mg),hg={name:`bookmark`,size:24,node:[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]};hg.node;var aee=ag(hg),gg={name:`briefcase-business`,size:24,node:[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M22 13a18.15 18.15 0 0 1-20 0`,key:`12hx5q`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};gg.node;var oee=ag(gg),_g={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};_g.node;var vg=ag(_g),yg={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};yg.node;var bg=ag(yg),xg={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};xg.node;var Sg=ag(xg),Cg={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Cg.node;var wg=ag(Cg),Tg={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Tg.node;var Eg=ag(Tg),Dg={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Dg.node;var Og=ag(Dg),kg={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};kg.node;var Ag=ag(kg),jg={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};jg.node;var Mg=ag(jg),Ng={name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]};Ng.node;var Pg=ag(Ng),Fg={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Fg.node;var Ig=ag(Fg),Lg={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Lg.node;var Rg=ag(Lg),zg={name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]};zg.node;var Bg=ag(zg),Vg={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Vg.node;var Hg=ag(Vg),Ug={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};Ug.node;var Wg=ag(Ug),Gg={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};Gg.node;var Kg=ag(Gg),qg={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};qg.node;var Jg=ag(qg),Yg={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};Yg.node;var Xg=ag(Yg),Zg={name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]};Zg.node;var Qg=ag(Zg),$g={name:`heading`,size:24,node:[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]};$g.node;var e_=ag($g),t_={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]};t_.node;var n_=ag(t_),r_={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};r_.node;var i_=ag(r_),a_={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};a_.node;var o_=ag(a_),s_={name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]};s_.node;var c_=ag(s_),l_={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};l_.node;var u_=ag(l_),d_={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};d_.node;var f_=ag(d_),p_={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};p_.node;var m_=ag(p_),h_={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};h_.node;var g_=ag(h_),__={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};__.node;var v_=ag(__),y_={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};y_.node;var b_=ag(y_),x_={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};x_.node;var S_=ag(x_),C_={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};C_.node;var w_=ag(C_),T_={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};T_.node;var E_=ag(T_),D_={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};D_.node;var O_=ag(D_),k_={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};k_.node;var A_=ag(k_),j_={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};j_.node;var M_=ag(j_),N_={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};N_.node;var P_=ag(N_),F_={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};F_.node;var I_=ag(F_),L_={name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]};L_.node;var see=ag(L_),R_={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};R_.node;var z_=ag(R_),B_={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};B_.node;var cee=ag(B_),V_={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};V_.node;var H_=ag(V_),U_={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};U_.node;var lee=ag(U_),W_={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};W_.node;var uee=ag(W_),G_={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};G_.node;var dee=ag(G_),K_={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};K_.node;var fee=ag(K_),q_={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};q_.node;var J_=ag(q_),Y_={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Y_.node;var X_=ag(Y_),Z_={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Z_.node;var Q_=ag(Z_),$_={name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]};$_.node;var pee=ag($_),ev={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};ev.node;var tv=ag(ev),nv={name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]};nv.node;var mee=ag(nv),rv={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};rv.node;var iv=ag(rv),av=({width:e=`60%`})=>(0,G.jsx)(`span`,{className:`loading-bar`,style:{width:e}});function ov({layout:e,testId:t=`${e}-loading`}){return(0,G.jsx)(`div`,{"data-testid":t,className:`page-loading loading-${e}`,role:`status`,"aria-label":U(`Loading…`),"aria-busy":`true`,children:(0,G.jsx)(`div`,{"aria-hidden":`true`,inert:!0,children:e===`note`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,G.jsx)(`div`,{className:`note-title-type`,children:(0,G.jsx)(av,{width:`52%`})}),(0,G.jsx)(`div`,{className:`note-meta-row`,children:(0,G.jsx)(`div`,{className:`note-metadata`,children:[100,130,110].map(e=>(0,G.jsx)(`span`,{className:`loading-note-chip`,style:{width:e}},e))})}),(0,G.jsxs)(`div`,{className:`note-primary-tabs`,children:[(0,G.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,G.jsx)(fg,{size:14}),U(`Transcript`)]}),(0,G.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,G.jsx)(J_,{size:14}),U(`My notes`)]})]})]}),(0,G.jsx)(`div`,{className:`note-page-width note-notes-body`,children:(0,G.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,G.jsx)(av,{width:e},e))})})]}):e===`history`?(0,G.jsxs)(`section`,{children:[(0,G.jsx)(`h2`,{children:(0,G.jsx)(av,{width:`48px`})}),(0,G.jsx)(`ul`,{children:[0,1,2].map(e=>(0,G.jsx)(`li`,{className:`ask-history-row`,children:(0,G.jsxs)(`div`,{className:`ask-history-link`,children:[(0,G.jsx)(`strong`,{children:(0,G.jsx)(av,{width:`${130+e*14}px`})}),(0,G.jsx)(`time`,{children:(0,G.jsx)(av,{width:`56px`})})]})},e))})]}):e===`folders`?(0,G.jsx)(`div`,{className:`workspace-folder-list`,children:[0,1,2].map(e=>(0,G.jsxs)(`div`,{className:`workspace-nav`,children:[(0,G.jsx)(`span`,{className:`loading-folder-icon`}),(0,G.jsx)(av,{width:`${70+e*12}px`})]},e))}):e===`calendars`?(0,G.jsx)(G.Fragment,{children:[0,1].map(e=>(0,G.jsxs)(`div`,{className:`settings-row settings-calendar-choice`,children:[(0,G.jsx)(`span`,{className:`settings-calendar-dot loading-bar`}),(0,G.jsxs)(`span`,{className:`settings-row-copy`,children:[(0,G.jsx)(`span`,{className:`settings-label`,children:(0,G.jsx)(av,{width:`120px`})}),(0,G.jsx)(`span`,{className:`settings-description block`,children:(0,G.jsx)(av,{width:`90px`})})]}),(0,G.jsx)(`span`,{className:`loading-checkbox`})]},e))}):e===`transcript`?(0,G.jsx)(`div`,{className:`loading-transcript-turns`,children:[0,1,2].map(e=>(0,G.jsxs)(`div`,{className:`transcript-turn flex flex-col gap-[5px] ${e===1?`items-end`:`items-start`}`,children:[(0,G.jsx)(`p`,{className:e===1?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:(0,G.jsx)(av,{width:`42px`})}),(0,G.jsx)(`p`,{className:`bubble ${e===1?`bubble-me`:`bubble-them`}`,children:(0,G.jsx)(av,{width:`${160+e*25}px`})})]},e))}):(0,G.jsxs)(`div`,{className:`ask-turn`,children:[(0,G.jsx)(`p`,{className:`ask-question`,children:(0,G.jsx)(av,{width:`160px`})}),(0,G.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,G.jsx)(av,{width:e},e))})]})})})}function sv(e){let t=jf(),[n,r]=(0,H.useState)(e?`waiting`:`ready`),i=(0,H.useRef)(void 0);return(0,H.useLayoutEffect)(()=>{let a;return e?n!==`skeleton`&&(i.current=void 0,r(`waiting`),a=setTimeout(()=>{i.current=performance.now(),r(`skeleton`)},100)):n===`waiting`?r(`ready`):n===`skeleton`?t?r(`revealing`):a=setTimeout(()=>r(`revealing`),Math.max(0,200-(performance.now()-i.current))):n===`revealing`&&(a=setTimeout(()=>r(`ready`),Of.micro)),()=>clearTimeout(a)},[e,n,t]),n}var cv=()=>(0,H.useSyncExternalStore)(St,xt);function hee(e,t){return U(e,Object.fromEntries(Object.keys(t).map(e=>[e,`\u0000${e}\u0000`]))).split(`\0`).map((e,n)=>n%2?(0,G.jsx)(H.Fragment,{children:t[e]},n):e)}function gee(e){let t=[];for(let n of e){if(n.hidden&&n.echoConfident)continue;let e=!!n.hidden,r=t.at(-1);r?.echo===e?r.lines.push(n):t.push({echo:e,lines:[n]})}return t}var lv=3e4;function uv(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=String(t%60).padStart(2,`0`);return n?`${n}:${String(r).padStart(2,`0`)}:${i}`:`${r}:${i}`}function dv(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&r.track===n.track&&r.speaker===n.speaker&&n.startMs-(r.endMs??r.startMs)<lv?e.push(n):t.push([n])}return t}function fv(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].startMs<=t?(i=a,n=a+1):r=a-1}return i}function pv(e,t){let n=t.toLocaleLowerCase().split(/\s+/).filter(Boolean);return n.length?e.filter(e=>{let t=e.text.toLocaleLowerCase();return n.every(e=>t.includes(e))}):e}function _ee(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&n.startMs-r.endMs<1500?e.push(n):t.push([n])}return t}function vee(e,t){let n=t.filter(e=>e.words.length).map(t=>{let n=e.filter(e=>e.track===t.track&&e.startMs<=t.startMs).at(-1);return{track:t.track,startMs:t.startMs,endMs:t.endMs,speaker:n?n.speaker:null,speakerColor:n?.speakerColor,live:t}});return n.length?[...e,...n].sort((e,t)=>e.startMs-t.startMs):e}function mv(e,t,n,r){let i=0,a=0;for(let t=0;t<e.length;t++){if(e[t]!==n[0])continue;let r=0;for(;t+r<e.length&&r<n.length&&e[t+r]===n[r];)r++;r>=a&&(a=r,i=t)}let o=r;return{keys:n.map((e,n)=>i+n<t.length?t[i+n]:o++),next:o}}function hv(e,t,n){let r=e=>!(`live`in e),i=e.reduce((e,t)=>e+t.lines.filter(r).length,0),a=i<=t?0:Math.floor((i-t)/n)*n;if(!a)return{runs:e,earlier:0};let o=a,s=[];for(let t of e){if(!o){s.push(t);continue}let e=0;for(;e<t.lines.length&&o>0;)r(t.lines[e])&&o--,e++;e<t.lines.length&&s.push({...t,lines:t.lines.slice(e)})}return{runs:s,earlier:a}}function gv(e,t){let n=t.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(Boolean),r=e.toLocaleLowerCase(),i=Array(e.length).fill(!1);if(r.length===e.length)for(let e of n)for(let t=r.indexOf(e);t!==-1;t=r.indexOf(e,t+1))i.fill(!0,t,t+e.length);let a=[];for(let t=0;t<e.length;t++){let n=a.at(-1);n&&n.hit===i[t]?n.text+=e[t]:a.push({text:e[t],hit:i[t]})}return a.length?a:[{text:e,hit:!1}]}function _v(){return null}var vv=new Map,yv=new Map,bv=e=>vv.get(e);function xv(){for(let[e,t]of yv)t.clientHeight&&vv.set(e,t.scrollTop)}function Sv(e,t=!0){let n=(0,H.useRef)(null);return(0,H.useLayoutEffect)(()=>{let r=n.current;if(!r)return;yv.set(e,r),t&&vv.has(e)&&(r.scrollTop=vv.get(e));let i=()=>{r.clientHeight&&vv.set(e,r.scrollTop)};return r.addEventListener(`scroll`,i,{passive:!0}),()=>{yv.delete(e),r.removeEventListener(`scroll`,i)}},[e,t]),n}var Cv=e=>(e.startMs+e.endMs)/2,yee=e=>e.map((e,t)=>t===0||e.glue?e.text:` `+e.text).join(``),wv=e=>e.toLocaleLowerCase().replace(/[^\p{L}\p{N}']/gu,``),bee=(e,t)=>e===t||Math.min(e.length,t.length)>=4&&(e.startsWith(t)||t.startsWith(e)),Tv=500;function Ev(e,t){let n=t.split(/\s+/).map(wv).filter(Boolean).slice(-40),r=e.slice(0,60).map(e=>wv(e.text));if(!n.length||!r.length)return 0;let i=Array(n.length+1).fill(0),a=0,o=0;for(let e=1;e<=r.length;e++){let t=[e];for(let a=1;a<=n.length;a++)t[a]=Math.min(i[a]+1,t[a-1]+1,i[a-1]+ +!bee(r[e-1],n[a-1]));let s=t[n.length],c=e-2*s;s<=Math.floor(e/4)&&(e>=2||n.length===1)&&c>o&&(a=e,o=c),i=t}return a}function Dv(e,t){let n=e.filter(e=>!e.rough&&Cv(e)>=t.endMs),r=e.filter(e=>e.rough),i=Ev(r,t.text),a=r.filter(e=>Cv(e)<t.endMs-Tv).length;return[...n,...r.slice(i||a)].sort((e,t)=>e.startMs-t.startMs)}var Ov=e=>`${e.track}:${e.startMs}`,kv=24,Av=400,jv=e=>e.track===`me`?U(`You`):e.speaker||U(`Them`);function Mv(e){let[t,n]=(0,H.useState)([]),[r,i]=(0,H.useState)(!1),a=(0,H.useRef)(new Set);return(0,H.useEffect)(()=>{let t=!0;i(!1),n([]),a.current=new Set;let r=(t,r)=>n(n=>{let i=new Set(n.map(Ov)),o=t.filter(t=>t.meetingId===e&&!i.has(Ov(t)));if(r)for(let e of o)a.current.add(Ov(e));return o.length?[...n,...o].sort((e,t)=>e.startMs-t.startMs):n}),o=window.yogurt.transcript.onSegment(e=>r([e],!0));window.yogurt.transcript.get(e,{hidden:!0}).then(e=>{t&&(r(e,!1),i(!0))});let s=window.yogurt.transcript.onSpeakers(t=>{t===e&&window.yogurt.transcript.get(e,{hidden:!0}).then(e=>n(t=>{let n=new Map(e.map(e=>[Ov(e),e])),r=new Set(t.map(Ov));return[...t.map(e=>n.get(Ov(e))??e),...e.filter(e=>!r.has(Ov(e)))].sort((e,t)=>e.startMs-t.startMs)}))});return()=>{t=!1,o(),s()}},[e]),{lines:t,live:a,loaded:r}}var Nv=300,Pv=50;function Fv(e,t){let[n,r]=(0,H.useState)({}),i=(0,H.useRef)({me:-1/0,them:-1/0});(0,H.useEffect)(()=>{if(r({}),i.current={me:-1/0,them:-1/0},!t)return;let n=window.yogurt.transcript.onPartial(t=>{if(t.meetingId!==e)return;let n=t.words??[];n.length&&(i.current[t.track]=Math.max(i.current[t.track],n.at(-1).endMs)),r(e=>({...e,[t.track]:{track:t.track,startMs:n[0]?.startMs??t.startMs,endMs:n.at(-1)?.endMs??t.startMs,text:t.text,words:n}}))}),a=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&r(e=>{let n=e[t.track];if(!n)return e;let r=Dv(n.words,{endMs:t.endMs,text:t.text});return{...e,[t.track]:{...n,words:r,text:yee(r),startMs:r[0]?.startMs??n.startMs}}})});return()=>{n(),a()}},[e,t]);let a=(0,H.useCallback)(e=>e.startMs<i.current[e.track]+500,[]);return{live:[`me`,`them`].map(e=>n[e]).filter(e=>!!e&&e.words.length>0),previewed:a}}function Iv({said:e}){let t=(0,H.useRef)({words:[],keys:[],next:0}),n=e.words.map(e=>e.text),r=mv(t.current.words,t.current.keys,n,t.current.next);return t.current={words:n,keys:r.keys,next:r.next},(0,G.jsxs)(`span`,{"data-testid":`transcript-partial`,"data-track":e.track,"data-start":e.startMs,"aria-live":`off`,className:`live-words`,children:[e.words.map((e,t)=>(0,G.jsx)(`span`,{className:`live-word`,children:t===0||e.glue?e.text:` ${e.text}`},r.keys[t])),(0,G.jsxs)(`span`,{className:`live-dots`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]})]})}var Lv=(0,H.memo)(function({line:e,focused:t,name:n,query:r,playing:i,playable:a,focusable:o,arrived:s,onPlay:c,onFocusLine:l}){cv(),window.yogurt.fake&&(window.__rowRenders=(window.__rowRenders??0)+1);let u=Ov(e),d=uv(e.startMs);return(0,G.jsxs)(`span`,{"data-key":u,"data-testid":`transcript-line`,"data-track":e.track,"data-start":e.startMs,"data-playing":i||void 0,role:a?`button`:void 0,"aria-label":a?U(`Play from {time}, {name}: {text}`,{time:d,name:n,text:e.text}):void 0,tabIndex:a?o?0:-1:void 0,onFocus:e=>{e.target===e.currentTarget&&l(u)},onClick:t=>c(e,t),title:d,"data-hidden":e.hidden||void 0,"data-focused":t||void 0,className:`line ${s===`fade`?`line-in`:s===`settle`?`line-settle`:``} ${a?`line-playable cursor-pointer`:``}`,children:[(0,G.jsx)(`span`,{"data-testid":`transcript-text`,children:r?gv(e.text,r).map((e,t)=>e.hit?(0,G.jsx)(`mark`,{className:`search-mark`,children:e.text},t):(0,G.jsx)(`span`,{children:e.text},t)):e.text}),(0,G.jsx)(`time`,{"data-testid":`transcript-time`,className:`sr-only`,children:d})]})});function Rv({id:e,recording:t,inline:n=!1,active:r=!0,onClose:i,focus:a,toolbar:o}){let{lines:s,live:c,loaded:l}=Mv(e),u=sv(!l),{live:d,previewed:f}=Fv(e,t),p=(0,H.useMemo)(()=>gee(vee(s,d)).filter(e=>!e.echo),[s,d]),m=(0,H.useMemo)(()=>p.flatMap(e=>e.lines.filter(e=>!(`live`in e))),[p]),[h,g]=(0,H.useState)(``),[_,v]=(0,H.useState)(!1);(0,H.useEffect)(()=>{g(``),v(!1)},[e]);let[y,b]=(0,H.useState)([]);(0,H.useEffect)(()=>{if(b([]),t)return;let n=!0,r=!1,i=window.yogurt.audio.onDeleted(t=>{t===e&&(document.activeElement?.closest(`[data-testid="player"], [data-testid="recording-delete-confirm"]`)&&(P.current?.setAttribute(`tabindex`,`-1`),P.current?.focus({preventScroll:!0})),r=!0,b([]),ne(!1),M(null))});return window.yogurt.audio.tracks(e).then(e=>{n&&!r&&b(e)}),()=>{n=!1,i()}},[e,t]);let x=(0,H.useRef)(null),S=y.length>0,C=(0,H.useRef)(null),[w,T]=(0,H.useState)(0);(0,H.useLayoutEffect)(()=>{let e=C.current;if(!n||!e){T(0);return}let t=()=>T(e.getBoundingClientRect().height+16);t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[n,S,r]);let[E,D]=(0,H.useState)(),[O,k]=(0,H.useState)(0),A=(0,H.useRef)(0),j=(0,H.useRef)(m);j.current=m;let M=(0,H.useCallback)((e,t=!1)=>{let n=e==null?-1:fv(j.current,e),r=n<0?void 0:Ov(j.current[n]);D(e=>e===r?e:r),t&&k(e=>e+1)},[]),N=`transcript/${e}`,P=Sv(N,r&&l),F=(0,H.useRef)(bv(N)===void 0),[I,L]=(0,H.useState)(!1),R=()=>{let e=P.current;e&&(B.current===null&&(oe.current=performance.now(),de()),F.current=e.scrollHeight-e.scrollTop-e.clientHeight<kv,L(!F.current))};(0,H.useLayoutEffect)(()=>{let e=P.current;r&&t&&e&&F.current&&(e.scrollTop=e.scrollHeight)},[m,d,t,r]);let ee=()=>{let e=P.current;e&&(F.current=!0,L(!1),e.scrollTo({top:e.scrollHeight,behavior:Af()}))},z=e=>e?P.current?.querySelector(`[data-key="${CSS.escape(e)}"]`)??null:null,[te,ne]=(0,H.useState)(!1),re=(0,H.useRef)(!0),[ie,ae]=(0,H.useState)(null),B=(0,H.useRef)(null),oe=(0,H.useRef)(0),V=(0,H.useRef)(E);V.current=E,(0,H.useEffect)(()=>{re.current=!0,ae(null)},[e]);let se=e=>{let t=P.current,n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top-n.top+t.scrollTop;return{row:{top:i,bottom:i+r.height},view:{scrollTop:t.scrollTop,height:Math.max(0,t.clientHeight-w),scrollHeight:t.scrollHeight}}},ce=e=>{let t=P.current,n=z(V.current);if(!t||!n||!e&&performance.now()-oe.current<Av)return;let{row:r,view:i}=se(n),a=xf(r,i,e);if(!(a===null||!B.current&&Math.abs(a-t.scrollTop)<2)){if(!B.current){let e=Mf(t,()=>requestAnimationFrame(()=>{B.current===e&&!e.active&&(B.current=null)}));B.current=e}B.current.to(a)}};(0,H.useEffect)(()=>{O===A.current?te&&re.current&&ce(!1):(A.current=O,re.current=!0,ae(null),ce(!0))},[E,te,O]);let le=(0,H.useCallback)(()=>{re.current=!0,ae(null)},[]),ue=()=>{le(),ce(!0)},de=()=>{let e=P.current,n=z(V.current);if(t||!e||!n)return;let{row:r,view:i}=se(n);re.current=bf(r,i),ae(re.current?null:r.top<i.scrollTop?`up`:`down`)},fe=()=>{oe.current=performance.now(),B.current?.stop(),B.current=null};(0,H.useEffect)(()=>()=>{B.current?.stop(),B.current=null},[e,r]);let pe=(0,H.useRef)(S);pe.current=S;let me=(0,H.useCallback)((e,t)=>{!pe.current||t.target.closest(`button, input, form`)||window.getSelection()?.toString()||(le(),x.current?.playFrom(e.startMs))},[le]),he=(0,H.useMemo)(()=>pv(m,h),[m,h]),[ge,_e]=(0,H.useState)(),ve=(0,H.useRef)(void 0);(0,H.useEffect)(()=>{if(!r||!a||ve.current===a.seq||!m.length)return;let e=m.filter(e=>!e.hidden),t=(a.match?e[pt(e.map(e=>e.text),a.match,Math.max(0,fv(e,a.ms)))]:void 0)??m[Math.max(0,fv(m,a.ms))];t&&(ve.current=a.seq,F.current=!1,v(!0),_e(Ov(t)),be(Ov(t)),requestAnimationFrame(()=>z(Ov(t))?.scrollIntoView({block:`center`})))},[a?.seq,m,r]),(0,H.useEffect)(()=>{if(!ge)return;let e=window.setTimeout(()=>_e(void 0),2400);return()=>clearTimeout(e)},[ge,a?.seq]);let[ye,be]=(0,H.useState)(),xe=ye??E??(he[0]&&Ov(he[0])),Se=e=>{let t=e.target.closest(`[data-testid="transcript-line"]`);if(!S||!t||t!==e.target)return;let n=he.findIndex(e=>Ov(e)===t.dataset.key);if(n<0)return;let r=e=>{let t=z(Ov(he[Math.max(0,Math.min(he.length-1,e))]));t?.focus(),t?.scrollIntoView({block:`nearest`})};e.key===`ArrowDown`?(e.preventDefault(),r(n+1)):e.key===`ArrowUp`?(e.preventDefault(),r(n-1)):e.key===`Home`?(e.preventDefault(),r(0)):e.key===`End`?(e.preventDefault(),r(he.length-1)):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),le(),x.current?.playFrom(he[n].startMs))},Ce=h.trim(),we=(0,H.useMemo)(()=>p.map(e=>({...e,k:Ov(e.lines[0]),lines:Ce?e.lines.filter(e=>!(`live`in e)&&pv([e],Ce).length):e.lines})).filter(e=>e.lines.length),[p,Ce]),Te=(0,H.useMemo)(()=>t&&!Ce&&!_?hv(we,Nv,Pv):{runs:we,earlier:0},[we,t,Ce,_]),Ee=(0,H.useMemo)(()=>!!E&&he.some(e=>Ov(e)===E),[E,he]),De=n?`section`:`aside`,ke=(0,G.jsxs)(`div`,{className:`transcript-toolbar`,children:[(0,G.jsxs)(`label`,{className:`transcript-search-field`,children:[(0,G.jsx)(lee,{size:14,strokeWidth:1.75,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsx)(`input`,{"data-testid":`transcript-search`,value:h,onChange:e=>g(e.target.value),placeholder:U(`Search`),"aria-label":U(`Search the transcript`),spellCheck:!1})]}),!n&&i&&(0,G.jsx)(`div`,{className:`transcript-actions`,children:(0,G.jsx)(`button`,{"data-testid":`transcript-close`,onClick:i,"aria-label":U(`Hide transcript`),title:U(`Hide transcript`),className:`ghost-btn !p-1.5`,children:(0,G.jsx)(Sg,{size:15,"aria-hidden":`true`})})})]});return(0,G.jsxs)(De,{style:{"--playback-inset":`${w}px`},"data-testid":`transcript-panel`,"aria-label":U(`Transcript`),onKeyDown:e=>{!n&&e.key===`Escape`&&(e.stopPropagation(),i?.())},className:n?`transcript-inline`:`chat-in pointer-events-auto absolute inset-x-0 bottom-1 z-20 mx-auto flex h-[min(44vh,480px)] w-[min(720px,calc(100%-48px))] flex-col rounded-xl border border-line bg-float shadow-[var(--shadow)]`,children:[r&&(o?(0,Oe.createPortal)(ke,o):ke),(0,G.jsxs)(`div`,{className:`transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col`,children:[(0,G.jsx)(qh,{enabled:r&&l,children:(0,G.jsxs)(`ol`,{"data-loaded":l,"data-loading-phase":u,"data-testid":`transcript`,ref:P,onScroll:R,onWheel:fe,onTouchStart:fe,onPointerDown:fe,onKeyDownCapture:fe,onKeyDown:Se,className:`loading-content transcript-loading-content flex flex-1 flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 text-sm leading-[1.55]`,children:[u!==`ready`&&(0,G.jsx)(`li`,{className:`loading-placeholder`,children:(0,G.jsx)(ov,{layout:`transcript`})}),l&&s.length===0&&d.length===0&&(0,G.jsx)(`li`,{"data-testid":`transcript-empty`,className:`note-empty empty-state`,children:(0,G.jsxs)(`div`,{className:`empty-state-content`,children:[(0,G.jsx)(`div`,{className:`empty-tile`,children:(0,G.jsx)(fg,{size:28,strokeWidth:1.5,"aria-hidden":`true`})}),U(`Nothing heard yet.`)]})}),s.length>0&&we.length===0&&(0,G.jsx)(`li`,{"data-testid":`transcript-none`,className:`note-empty`,children:U(`Nothing found for “{query}”.`,{query:Ce})}),Te.earlier>0&&(0,G.jsx)(`li`,{className:`flex justify-center`,children:(0,G.jsx)(`button`,{"data-testid":`transcript-earlier`,onClick:()=>{F.current=!1,v(!0)},className:`ghost-btn !px-2 !py-1 text-xs text-muted`,children:U(`Show earlier lines`)})}),Te.runs.map(e=>(0,G.jsx)(H.Fragment,{children:dv(e.lines).map(e=>{let t=e[0].track===`me`,n=e[0],r=t||!(`speakerColor`in n)?void 0:n.speakerColor,i=e.some(e=>!(`live`in e));return(0,G.jsxs)(`li`,{"data-testid":`transcript-turn`,"data-track":n.track,className:`transcript-turn flex flex-col gap-[5px] ${t?`items-end`:`items-start`}`,children:[(0,G.jsxs)(`p`,{className:t?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:[(0,G.jsx)(`span`,{"data-testid":`transcript-who`,"data-color":r,"data-folder-color":r===void 0?void 0:Dt[r],className:`line-who font-medium ${t?``:`text-muted`} ${i?`name-in`:`invisible`}`,children:jv(n)}),(0,G.jsx)(`time`,{className:`turn-time tabular-nums text-muted`,children:uv(n.startMs)})]}),_ee(e).map(e=>(0,G.jsx)(`p`,{"data-testid":`transcript-bubble`,"data-track":n.track,dir:`auto`,className:`bubble ${t?`bubble-me`:`bubble-them`}`,children:e.map((e,t)=>{if(`live`in e)return(0,G.jsxs)(H.Fragment,{children:[t>0&&` `,(0,G.jsx)(Iv,{said:e.live})]},`live`);let n=Ov(e);return(0,G.jsxs)(H.Fragment,{children:[t>0&&` `,(0,G.jsx)(Lv,{line:e,focused:n===ge,name:jv(e),query:Ce,playing:n===E,playable:S,focusable:n===xe,arrived:c.current.has(n)?f(e)?`settle`:`fade`:null,onPlay:me,onFocusLine:be})]},n)})},Ov(e[0])))]},Ov(n))})},e.k))]})}),t&&I&&(0,G.jsxs)(`button`,{"data-testid":`transcript-latest`,onClick:ee,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,G.jsx)(sg,{size:12,"aria-hidden":`true`}),U(`Latest`)]}),!t&&te&&ie&&Ee&&(0,G.jsxs)(`button`,{"data-testid":`transcript-follow`,onClick:ue,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,G.jsx)(sg,{size:12,"aria-hidden":`true`,className:`follow-arrow`,"data-up":ie===`up`}),U(`Back to playing`)]})]}),r&&S&&(0,G.jsx)(`div`,{ref:C,className:`transcript-player-dock`,children:(0,G.jsx)(_v,{ref:x,id:e,tracks:y,onTime:M,onPlaying:ne})})]})}function zv(e){this.content=e}zv.prototype={constructor:zv,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new zv(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new zv(n)},addToStart:function(e,t){return new zv([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new zv(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new zv(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=zv.from(e),e.size?new zv(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=zv.from(e),e.size?new zv(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=zv.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},zv.from=function(e){if(e instanceof zv)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new zv(t)};function Bv(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&Uv(e.charCodeAt(r-1))&&Hv(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=Bv(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function Vv(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&Uv(e.charCodeAt(i-1))&&Hv(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=Vv(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function Hv(e){return e>=56320&&e<57344}function Uv(e){return e>=55296&&e<56320}var K=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return Bv(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return Vv(this,e,t,n)}findIndex(e){if(e==0)return Gv(0,e);if(e==this.size)return Gv(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?Gv(t+1,i):Gv(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};K.empty=new K([],0);var Wv={index:0,offset:0};function Gv(e,t){return Wv.index=e,Wv.offset=t,Wv}function Kv(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!Kv(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Kv(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var qv=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Kv(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};qv.none=[];var Jv=class extends Error{},q=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Xv(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Yv(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(K.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};q.empty=new q(K.empty,0,0);function Yv(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Yv(a.content,t-i-1,n-i-1)))}function Xv(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Xv(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function xee(e,t,n){if(n.openStart>e.depth)throw new Jv(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Jv(`Inconsistent open depths`);return Zv(e,t,n,0)}function Zv(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Zv(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return ny(a,iy(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return ny(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=See(n,e);return ny(a,ry(e,i,o,t,r))}}function Qv(e,t){if(!t.type.compatibleContent(e.type))throw new Jv(`Cannot join `+t.type.name+` onto `+e.type.name)}function $v(e,t,n){let r=e.node(n);return Qv(r,t.node(n)),r}function ey(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function ty(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(ey(e.nodeAfter,r),a++));for(let e=a;e<o;e++)ey(i.child(e),r);t&&t.depth==n&&t.textOffset&&ey(t.nodeBefore,r)}function ny(e,t){if(!e.type.validContent(t))throw new Jv(`Invalid content for node `+e.type.name);return e.copy(t)}function ry(e,t,n,r,i){let a=e.depth>i&&$v(e,t,i+1),o=r.depth>i&&$v(n,r,i+1),s=[];return ty(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Qv(a,o),ey(ny(a,ry(e,t,n,r,i+1)),s)):(a&&ey(ny(a,iy(e,t,i+1)),s),ty(t,n,i,s),o&&ey(ny(o,iy(n,r,i+1)),s)),ty(r,null,i,s),new K(s)}function iy(e,t,n){let r=[];return ty(null,e,n,r),e.depth>n&&ey(ny($v(e,t,n+1),iy(e,t,n+1)),r),ty(t,null,n,r),new K(r)}function See(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(K.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var ay=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return qv.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new sy(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=oy.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else oy.set(t,r=new Cee);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%wee,i}},Cee=class{constructor(){this.elts=[],this.i=0}},wee=12,oy=new WeakMap,sy=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Tee=Object.create(null),cy=class e{constructor(e,t,n,r=qv.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||K.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&Kv(this.attrs,t||e.defaultAttrs||Tee)&&qv.sameSet(this.marks,n||qv.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return q.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new q(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return xee(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return ay.resolveCached(this,e)}resolveNoCache(e){return ay.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),ly(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=K.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),uy(this.type.attrs,this.attrs,`node`,this.type.name);let e=qv.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];uy(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!qv.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=K.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};cy.prototype.text=void 0;var Eee=class e extends cy{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ly(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function ly(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function uy(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var dy=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Dee(t,n);if(r.next==null)return e.empty;let i=fy(r);r.next&&r.err(`Unexpected trailing text`);let a=Pee(Nee(i));return Fee(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return K.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
-`)}};dy.empty=new dy(!0);var Dee=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function fy(e){let t=[];do t.push(Oee(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Oee(e){let t=[];do t.push(kee(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function kee(e){let t=Mee(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Aee(e,t);else break;return t}function py(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Aee(e,t){let n=py(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:py(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function jee(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Mee(e){if(e.eat(`(`)){let t=fy(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=jee(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Nee(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function my(e,t){return t-e}function hy(e,t){let n=[];return r(t),n.sort(my);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Pee(e){let t=Object.create(null);return n(hy(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);hy(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new dy(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(my);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Fee(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function gy(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function _y(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0){if(i.hasDefault)a=i.default;else throw RangeError(`No value supplied for attribute `+r)}else i.validate&&i.validate(a);n[r]=a}return n}function vy(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new Lee(e,r,t[r]);return n}var yy=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=vy(e,n.attrs),this.defaultAttrs=gy(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==dy.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:_y(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new cy(this,this.computeAttrs(e),K.from(t),qv.setFrom(n))}createChecked(e=null,t,n){return t=K.from(t),this.checkContent(t),new cy(this,this.computeAttrs(e),t,qv.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=K.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(K.empty,!0);return i?new cy(this,e,t.append(i),qv.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:qv.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function Iee(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var Lee=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?Iee(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},by=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=vy(e,r.attrs),this.excluded=null;let i=gy(this.attrs);this.instance=i?new qv(this,i):null}create(e=null){return!e&&this.instance?this.instance:new qv(this,_y(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}},xy=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=zv.from(e.nodes),t.marks=zv.from(e.marks||{}),this.nodes=yy.compile(this.spec.nodes,this),this.marks=by.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=dy.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?Sy(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:Sy(this,n.split(` `))}this.nodeFromJSON=e=>cy.fromJSON(this,e),this.markFromJSON=e=>qv.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof yy))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Eee(n,n.defaultAttrs,e,qv.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function Sy(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function Ree(e){return e.tag!=null}function zee(e){return e.style!=null}var Cy=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(Ree(e))this.tags.push(e);else if(zee(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new jy(this,t,!1);return n.addAll(e,qv.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new jy(this,t,!0);return n.addAll(e,qv.none,t.from,t.to),q.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Ny(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Py(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Py(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},wy={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Bee={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ty={ol:!0,ul:!0},Ey=1,Dy=2,Oy=4;function ky(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Ey:0)|(t===`full`?Dy:0)}var Ay=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=qv.none,this.match=i||(a&Oy?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(K.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ey)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=K.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(K.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!wy.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},jy=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=ky(null,t.preserveWhitespace,0)|(n?Oy:0);i=r?new Ay(r.type,r.attrs,qv.none,!0,t.topMatch||r.type.contentMatch,a):n?new Ay(null,null,qv.none,!0,null,a):new Ay(e.schema.topNodeType,null,qv.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&Dy?`full`:this.localPreserveWS||(r.options&Ey)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
-`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;Ty.hasOwnProperty(a)&&this.parser.normalizeLists&&My(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:Bee.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(wy.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
-`),t)}ignoreFallback(e,t){e.nodeName!=`BR`||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=qv.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Fy(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=ky(e,i,a.options);a.options&Oy&&a.content.length==0&&(o|=Oy);let s=qv.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):Fy(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new Ay(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Ey);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function My(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Ty.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Ny(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Py(e){let t={};for(let n in e)t[n]=e[n];return t}function Fy(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var Iy=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Ry(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name])a++;else{if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return Ry(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Hy(Ry(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Hy(Ry(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Hy(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Ly(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Ly(e.marks)}};function Ly(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Ry(e){return e.document||window.document}var zy=new WeakMap;function By(e){let t=zy.get(e);return t===void 0&&zy.set(e,t=Vy(e)),t}function Vy(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t])}else for(let t in e)n(e[t])}}return n(e),t}function Hy(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=By(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Hy(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Uy=65535,Wy=2**16;function Gy(e,t){return e+t*Wy}function Ky(e){return e&Uy}function qy(e){return(e-(e&Uy))/Wy}var Jy=1,Yy=2,Xy=4,Zy=8,Qy=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Zy)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Xy)>0}},$y=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Ky(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+qy(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Gy(o/3,e-s),f=0;return c&&(f|=e==s?Yy:e==u?Jy:Xy,(t<0?e!=s:e!=u)&&(f|=Zy)),new Qy(a,f,d)}r+=l-c}return n?e+r:new Qy(e+r,0,null)}touches(e,t){let n=0,r=Ky(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};$y.empty=new $y([]);var eb=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Qy(e,r,null)}},tb=Object.create(null),nb=class{getMap(){return $y.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=tb[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in tb)throw RangeError(`Duplicate use of step JSON ID `+e);return tb[e]=t,t.prototype.jsonID=e,t}},rb=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof Jv)return e.fail(t.message);throw t}}};function ib(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(ib(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return K.fromArray(r)}var ab=class e extends nb{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new q(ib(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return rb.fromReplace(e,this.from,this.to,i)}invert(t){let n=[];return t.nodesBetween(this.from,this.to,(t,r)=>{if(t.isInline&&t.isAtom){let i=this.mark.addToSet(t.marks);if(!qv.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);sb(ob,a,o,this.mark,n);for(let r of t.marks)r.isInSet(i)||sb(e,a,o,r,n)}}}),n.length==1?n[0]:new cb(n)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};nb.jsonID(`addMark`,ab);var ob=class e extends nb{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new q(ib(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return rb.fromReplace(e,this.from,this.to,n)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(e,n)=>{e.isInline&&e.isAtom&&this.mark.isInSet(e.marks)&&sb(ab,Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark,t)}),t.length==1?t[0]:new cb(t)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};nb.jsonID(`removeMark`,ob);function sb(e,t,n,r,i){let a=i.length?i[i.length-1]:null;a&&a instanceof e&&a.to==t&&a.mark.eq(r)?i[i.length-1]=new e(a.from,n,r):i.push(new e(t,n,r))}var cb=class e extends nb{constructor(e){super(),this.steps=e}apply(e){for(let t of this.steps){let n=t.apply(e);if(!n.doc)return n;e=n.doc}return new rb(e,null)}invert(t){return new e(this.steps.map(e=>e.invert(t)))}map(t){let n=[];for(let e of this.steps){let r=e.map(t);r&&n.push(r)}return n.length?new e(n):null}toJSON(){return{stepType:`markSet`,steps:this.steps.map(e=>e.toJSON())}}static fromJSON(t,n){if(!Array.isArray(n.steps)||!n.steps.every(e=>e.stepType==`addMark`||e.stepType==`removeMark`))throw RangeError(`Invalid JSON for MarkSetStep`);return new e(n.steps.map(e=>nb.fromJSON(t,e)))}};nb.jsonID(`markSet`,cb);var lb=class e extends nb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return rb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return rb.fromReplace(e,this.pos,this.pos+1,new q(K.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new ub(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};nb.jsonID(`addNodeMark`,lb);var ub=class e extends nb{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return rb.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return rb.fromReplace(e,this.pos,this.pos+1,new q(K.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new lb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};nb.jsonID(`removeNodeMark`,ub);var db=class e extends nb{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&pb(e,this.from,this.to)?rb.fail(`Structure replace would overwrite content`):rb.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new $y([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?q.empty:new q(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?q.empty:new q(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,q.fromJSON(t,n.slice),!!n.structure)}};db.MAP_BIAS=1,nb.jsonID(`replace`,db);var fb=class e extends nb{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(pb(e,this.from,this.gapFrom)||pb(e,this.gapTo,this.to)))return rb.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return rb.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?rb.fromReplace(e,this.from,this.to,n):rb.fail(`Content does not fit in gap`)}getMap(){return new $y([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,q.fromJSON(t,n.slice),n.insert,!!n.structure)}};nb.jsonID(`replaceAround`,fb);function pb(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function mb(e,t,n,r){let i=[];e.doc.nodesBetween(t,n,(e,a,o)=>{if(!e.isInline)return;let s=e.marks;!r.isInSet(s)&&o.type.allowsMarkType(r.type)&&sb(ab,Math.max(a,t),Math.min(a+e.nodeSize,n),r,i)}),i.forEach(t=>e.step(t))}function hb(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline||!e.isAtom)return;a++;let s=null;if(r instanceof by){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new ob(t.from,t.to,t.style)))}function gb(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new db(s,l,q.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new ob(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new q(K.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new db(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(K.empty,!0);e.replace(s,s,new q(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function _b(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function vb(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!_b(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function yb(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=K.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=K.from(r.node(e).copy(u)),d++):c--;let f=K.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=K.from(i.node(e).copy(f)),p++):l++;e.step(new fb(c,l,o,s,new q(u.append(f),d,p),u.size-d,!0))}function bb(e,t,n=null,r=e){let i=Sb(e,t),a=i&&Cb(r,t);return a?i.map(xb).concat({type:t,attrs:n}).concat(a.map(xb)):null}function xb(e){return{type:e,attrs:null}}function Sb(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function Cb(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function wb(e,t,n){let r=K.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=K.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new fb(i,a,i,a,new q(r,0,0),n.length,!0))}function Tb(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&Ob(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&Db(e,t,n,a),gb(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new fb(c,l,c+1,l-1,new q(K.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&Eb(e,t,n,a),!1}})}function Eb(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function Db(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
-`))}})}function Ob(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function kb(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new fb(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new q(K.from(o),0,0),1,!0))}function Ab(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function jb(e,t,n=1,r){let i=e.doc.resolve(t),a=K.empty,o=K.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=K.from(i.node(e).copy(a));let t=r&&r[s];o=K.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new db(t,t,new q(a.append(o),n,n),!0))}function Mb(e,t){let n=e.resolve(t),r=n.index();return Pb(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Nb(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function Pb(e,t){return!!(e&&t&&!e.isLeaf&&Nb(e,t))}function Fb(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&Pb(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function Ib(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);Db(e,r.node(),r.before(),s)}o.inlineContent&&gb(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new db(l,c.map(t+n,-1),q.empty,!0)),r===!0){let t=e.doc.resolve(l);Eb(e,t.node(),t.before(),e.steps.length)}return e}function Lb(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function Rb(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function zb(e,t,n=t,r=q.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Bb(i,a,r)?new db(t,n,r):new Vb(i,a,r).fit()}function Bb(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Vb=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=K.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=K.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new q(i,a,o);return e>-1?new fb(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new db(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=Wb(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(K.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return Yb(e,-1)<=t?!1:(this.unplaced.size>1&&Yb(e,1)>n&&n++,this.unplaced=new q(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Wb(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new q(Hb(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new q(Hb(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(Gb(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=Ub(this.placed,t,K.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?q.empty:new q(Hb(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new q(Hb(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Kb(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Kb(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Kb(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Ub(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Ub(this.placed,this.depth,K.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(K.empty,!0);e.childCount&&(this.placed=Ub(this.placed,this.frontier.length,e))}};function Hb(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Hb(e.firstChild.content,t-1,n)))}function Ub(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Ub(e.lastChild.content,t-1,n)))}function Wb(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Gb(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Gb(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(K.empty,!0)))),e.copy(r)}function Kb(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!qb(n,a.content,o)?s:null}function qb(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Jb(e){return e.spec.defining||e.spec.definingForContent}function Yb(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function Xb(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Bb(i,a,r))return e.step(new db(t,n,r));let o=ex(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=Jb(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new q(Zb(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function Zb(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Zb(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(K.empty,!0))}return e}function Qb(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=Lb(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new q(K.from(r),0,0))}function $b(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=ex(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function ex(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var tx=class e extends nb{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return rb.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return rb.fromReplace(e,this.pos,this.pos+1,new q(K.from(r),0,+!t.isLeaf))}getMap(){return $y.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};nb.jsonID(`attr`,tx);var nx=class e extends nb{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return rb.ok(n)}getMap(){return $y.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};nb.jsonID(`docAttr`,nx);var rx=class extends Error{};rx=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},rx.prototype=Object.create(Error.prototype),rx.prototype.constructor=rx,rx.prototype.name=`TransformError`;var ix=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new eb}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new rx(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=q.empty){let r=zb(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new q(K.from(n),0,0))}delete(e,t){return this.replace(e,t,q.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Xb(this,e,t,n),this}replaceRangeWith(e,t,n){return Qb(this,e,t,n),this}deleteRange(e,t){return $b(this,e,t),this}lift(e,t){return yb(this,e,t),this}join(e,t=1){return Ib(this,e,t),this}wrap(e,t){return wb(this,e,t),this}setBlockType(e,t=e,n,r=null){return Tb(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return kb(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new tx(e,t,n)),this}setDocAttribute(e,t){return this.step(new nx(e,t)),this}addNodeMark(e,t){return this.step(new lb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof qv)t.isInSet(n.marks)&&this.step(new ub(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new ub(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return jb(this,e,t,n),this}addMark(e,t,n){return mb(this,e,t,n),this}removeMark(e,t,n){return hb(this,e,t,n),this}clearIncompatible(e,t,n){return gb(this,e,t,n),this}},ax=Object.create(null),ox=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new sx(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=q.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?q.empty:t),o==0&&_x(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),_x(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new ux(e):gx(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?gx(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):gx(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new mx(e.node(0))}static atStart(e){return gx(e,e,0,0,1)||new mx(e)}static atEnd(e){return gx(e,e,e.content.size,e.childCount,-1)||new mx(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=ax[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in ax)throw RangeError(`Duplicate use of selection JSON ID `+e);return ax[e]=t,t.prototype.jsonID=e,t}getBookmark(){return ux.between(this.$anchor,this.$head).getBookmark()}};ox.prototype.visible=!0;var sx=class{constructor(e,t){this.$from=e,this.$to=t}},cx=!1;function lx(e){!cx&&!e.parent.inlineContent&&(cx=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var ux=class e extends ox{constructor(e,t=e){lx(e),lx(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return ox.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=q.empty){if(super.replace(e,t),t==q.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new dx(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=ox.findFrom(n,r,!0)||ox.findFrom(n,-r,!0);if(e)n=e.$head;else return ox.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(ox.findFrom(t,-r,!0)||ox.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};ox.jsonID(`text`,ux);var dx=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return ux.between(e.resolve(this.anchor),e.resolve(this.head))}},fx=class e extends ox{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?ox.near(a):new e(a)}content(){return new q(K.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new px(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};fx.prototype.visible=!1,ox.jsonID(`node`,fx);var px=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new dx(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&fx.isSelectable(n)?new fx(t):ox.near(t)}},mx=class e extends ox{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=q.empty){if(t==q.empty){e.delete(0,e.doc.content.size);let t=ox.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return hx}};ox.jsonID(`all`,mx);var hx={map(){return this},resolve(e){return new mx(e)}};function gx(e,t,n,r,i,a=!1){if(t.inlineContent)return ux.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=gx(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&fx.isSelectable(r))return fx.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function _x(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof db||i instanceof fb))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(ox.near(e.doc.resolve(o),n))}var vx=1,yx=2,bx=4,xx=class extends ix{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|vx)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&vx)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=yx,this}ensureMarks(e){return qv.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&yx)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||qv.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(ox.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=bx,this}get scrolledIntoView(){return(this.updated&bx)>0}};function Sx(e,t){return!t||!e?e:e.bind(t)}var Cx=class{constructor(e,t,n){this.name=e,this.init=Sx(t.init,n),this.apply=Sx(t.apply,n)}},Vee=[new Cx(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Cx(`selection`,{init(e,t){return e.selection||ox.atStart(t.doc)},apply(e){return e.selection}}),new Cx(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Cx(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],wx=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Vee.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new Cx(e.key,e.spec.state,e))})}},Tx=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new xx(this)}static create(t){let n=new wx(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new wx(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new wx(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=cy.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=ox.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function Ex(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=Ex(i,t,{})),n[r]=i}return n}var Dx=class{constructor(e){this.spec=e,this.props={},e.props&&Ex(e.props,this,this.props),this.key=e.key?e.key.key:kx(`plugin`)}getState(e){return e[this.key]}},Ox=Object.create(null);function kx(e){return e in Ox?e+`$`+ ++Ox[e]:(Ox[e]=0,e+`$`)}var Ax=class{constructor(e=`key`){this.key=kx(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Hee=o((e=>{var t=Te();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),jx=o(((e,t)=>{t.exports=Hee()})),Mx=jx(),Nx=Object.defineProperty,Uee=(e,t)=>{let n={};for(var r in e)Nx(n,r,{get:e[r],enumerable:!0});return t||Nx(n,Symbol.toStringTag,{value:`Module`}),n},Px=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Fx(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var Ix=(e,t,n)=>{let r=Fx(e,n);if(!r)return!1;let i=Bx(r);if(!i){let n=r.blockRange(),i=n&&vb(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(Xx(e,i,t,-1))return!0;if(r.parent.content.size==0&&(Rx(a,`end`)||fx.isSelectable(a)))for(let n=r.depth;;n--){let o=zb(e.doc,r.before(n),r.after(n),q.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(Rx(a,`end`)?ox.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):fx.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},Wee=(e,t,n)=>{let r=Fx(e,n);if(!r)return!1;let i=Bx(r);return i?Lx(e,i,t):!1},Gee=(e,t,n)=>{let r=Vx(e,n);if(!r)return!1;let i=Wx(r);return i?Lx(e,i,t):!1};function Lx(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=zb(e.doc,i,o,q.empty);if(!s||s.from!=i||s instanceof db&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(ux.create(t.doc,i)),n(t.scrollIntoView())}return!0}function Rx(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var zx=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=Bx(r)}let o=a&&a.nodeBefore;return!o||!fx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(fx.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Bx(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Vx(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var Hx=(e,t,n)=>{let r=Vx(e,n);if(!r)return!1;let i=Wx(r);if(!i)return!1;let a=i.nodeAfter;if(Xx(e,i,t,1))return!0;if(r.parent.content.size==0&&(Rx(a,`start`)||fx.isSelectable(a))){let n=zb(e.doc,r.before(),r.after(),q.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(Rx(a,`start`)?ox.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):fx.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},Ux=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=Wx(r)}let o=a&&a.nodeAfter;return!o||!fx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(fx.create(e.doc,a.pos)).scrollIntoView()),!0)};function Wx(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var Kee=(e,t)=>{let n=e.selection,r=n instanceof fx,i;if(r){if(n.node.isTextblock||!Mb(e.doc,n.from))return!1;i=n.from}else if(i=Fb(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(fx.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},qee=(e,t)=>{let n=e.selection,r;if(n instanceof fx){if(n.node.isTextblock||!Mb(e.doc,n.to))return!1;r=n.to}else if(r=Fb(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},Jee=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&vb(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},Gx=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
-`).scrollIntoView()),!0)};function Kx(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var qx=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=Kx(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(ox.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},Jx=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof mx||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=Kx(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(ux.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},Yx=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Ab(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&vb(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function Yee(e){return(t,n)=>{if(t.selection instanceof fx&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!Ab(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof ux||t.selection instanceof mx)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=Kx(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=Ab(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,Ab(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var Xee=Yee(),Zee=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(fx.create(e.doc,i))),!0)},Qee=(e,t)=>(t&&t(e.tr.setSelection(new mx(e.doc))),!0);function $ee(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Mb(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function Xx(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&$ee(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=K.empty;for(let e=o.length-1;e>=0;e--)s=K.from(o[e].create(null,s));s=K.from(i.copy(s));let c=e.tr.step(new fb(t.pos-1,r,t.pos,r,new q(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&Mb(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:ox.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&vb(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&Rx(a,`start`,!0)&&Rx(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=K.empty;for(let e=o.length-1;e>=0;e--)r=K.from(o[e].copy(r));n(e.tr.step(new fb(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new q(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Zx(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(ux.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var Qx=Zx(-1),$x=Zx(1);function ete(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&bb(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function eS(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function tS(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var nS=tS(Px,Ix,zx),rS=tS(Px,Hx,Ux),iS={Enter:tS(Gx,Jx,Yx,Xee),"Mod-Enter":qx,Backspace:nS,"Mod-Backspace":nS,"Shift-Backspace":nS,Delete:rS,"Mod-Delete":rS,"Mod-a":Qee},tte={"Ctrl-h":iS.Backspace,"Alt-Backspace":iS[`Mod-Backspace`],"Ctrl-d":iS.Delete,"Ctrl-Alt-Backspace":iS[`Mod-Delete`],"Alt-Delete":iS[`Mod-Delete`],"Alt-d":iS[`Mod-Delete`],"Ctrl-a":Qx,"Ctrl-e":$x};for(let e in iS)tte[e]=iS[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function nte(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return rte(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function rte(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new sy(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new sy(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=bb(a,n,r,t);return s?(e&&ite(e,t,s,i,n),!0):!1}function ite(e,t,n,r,i){let a=K.empty;for(let e=n.length-1;e>=0;e--)a=K.from(n[e].type.create(n[e].attrs,a));e.step(new fb(t.start-(r?2:0),t.end,t.start,t.end,new q(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&Ab(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function ate(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?ote(t,n,e,a):ste(t,n,a):!0:!1}}function ote(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new fb(a-1,o,a,o,new q(K.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new sy(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=vb(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return Mb(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function ste(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?K.empty:K.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new fb(d-+!!s,f+ +!!c,d+1,f-1,new q((s?K.empty:K.from(i.copy(K.empty))).append(c?K.empty:K.from(i.copy(K.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function cte(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=K.from(r?e.create():null),o=new q(K.from(e.create(null,K.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new fb(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var aS=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},oS=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},sS=null,cS=function(e,t,n){let r=sS||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},lte=function(){sS=null},lS=function(e,t,n,r){return n&&(uS(e,t,n,r,-1)||uS(e,t,n,r,1))},ute=/^(img|br|input|textarea|hr)$/i;function uS(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:dS(e))){let n=e.parentNode;if(!n||!fS(n)||hS(e)||ute.test(e.nodeName)||e.contentEditable==`false`)return!1;t=aS(e)+(i<0?0:1),e=n}else if(fS(e)){let n=e.childNodes[t+(i<0?-1:0)];if(fS(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?dS(e):0}else return!1}}function dS(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function fS(e){return e.nodeType==1}function pS(e){return e.nodeType==3}function mS(e,t){return t?e.contains(fS(t)?t:t.parentNode):!1}function dte(e,t){for(;;){if(pS(e)&&t)return e;if(fS(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=dS(e)}else if(e.parentNode&&!hS(e))t=aS(e),e=e.parentNode;else return null}}function fte(e,t){for(;;){if(pS(e)&&t<e.nodeValue.length)return e;if(fS(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!hS(e))t=aS(e)+1,e=e.parentNode;else return null}}function pte(e,t,n){for(let r=t==0,i=t==dS(e);r||i;){if(e==n)return!0;let t=aS(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==dS(e)}}function hS(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var gS=function(e){return e.focusNode&&lS(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function _S(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function mte(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function hte(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(dS(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(dS(r.startContainer),r.startOffset)}}}var vS=typeof navigator<`u`?navigator:null,yS=typeof document<`u`?document:null,bS=vS&&vS.userAgent||``,xS=/Edge\/(\d+)/.exec(bS),SS=/MSIE \d/.exec(bS),CS=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(bS),wS=!!(SS||CS||xS),TS=SS?document.documentMode:CS?+CS[1]:xS?+xS[1]:0,ES=!wS&&/gecko\/(\d+)/i.test(bS);ES&&+(/Firefox\/(\d+)/.exec(bS)||[0,0])[1];var DS=!wS&&/Chrome\/(\d+)/.exec(bS),OS=!!DS,kS=DS?+DS[1]:0,AS=!wS&&!!vS&&/Apple Computer/.test(vS.vendor),jS=AS&&(/Mobile\/\w+/.test(bS)||!!vS&&vS.maxTouchPoints>2),MS=jS||(vS?/Mac/.test(vS.platform):!1),NS=vS?/Win/.test(vS.platform):!1,PS=/Android \d/.test(bS),FS=!!yS&&`webkitFontSmoothing`in yS.documentElement.style,IS=FS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function LS(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function RS(e,t){return typeof e==`number`?e:e[t]}function zS(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function BS(e,t,n){if(!tC(t)&&t.left==0)return;let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(!fS(o)){o=oS(o);continue}let e=o==a.body,n=e?LS(a):zS(o),s=0,c=0;if(t.top<n.top+RS(r,`top`)?c=-(n.top-t.top+RS(i,`top`)):t.bottom>n.bottom-RS(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+RS(i,`top`)-n.top:t.bottom-n.bottom+RS(i,`bottom`)),t.left<n.left+RS(r,`left`)?s=-(n.left-t.left+RS(i,`left`)):t.right>n.right-RS(r,`right`)&&(s=t.right-n.right+RS(i,`right`)),s||c){if(e)a.defaultView.scrollBy(s,c);else{let e=o.scrollLeft,n=o.scrollTop;c&&(o.scrollTop+=c),s&&(o.scrollLeft+=s);let r=o.scrollLeft-e,i=o.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}}let l=e?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(l))break;o=l==`absolute`?o.offsetParent:oS(o)}}function VS(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:HS(e.dom)}}function HS(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=oS(r));return t}function US({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;WS(n,r==0?0:r-t)}function WS(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var GS=null;function KS(e){if(e.setActive)return e.setActive();if(GS)return e.focus(GS);let t=HS(e);e.focus(GS==null?{get preventScroll(){return GS={preventScroll:!0},!0}}:void 0),GS||(GS=!1,WS(t,0))}function qS(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(fS(u))e=u.getClientRects();else if(pS(u))e=cS(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&pS(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,fS(u)&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&pS(n)?JS(n,i):!n||r?{node:e,offset:a}:qS(n,i)}function JS(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=nC(r,1);if(n.top!=n.bottom&&YS(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function YS(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function XS(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function ZS(e,t,n){let{node:r,offset:i}=qS(t,n),a=-1;if(fS(r)&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function QS(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(fS(t.dom)&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function $S(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(fS(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(YS(t,i))return $S(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function eC(e,t){let n=e.dom.ownerDocument,r,i=0,a=hte(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o)){let n=e.dom.getBoundingClientRect();if(!YS(t,n)||(o=$S(e.dom,t,n),!o))return null}if(AS)for(let e=o;r&&e;e=oS(e))e.draggable&&(r=void 0);if(o=XS(o,t),r){if(ES&&fS(r)&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;FS&&i&&fS(r)&&fS(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&fS(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&fS(r)&&r.childNodes[i-1].nodeName==`BR`||(s=QS(e,r,i,t))}s??=ZS(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function tC(e){return e.top<e.bottom||e.left<e.right}function nC(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(tC(e))return e}return Array.prototype.find.call(n,tC)||e.getBoundingClientRect()}var rC=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function iC(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=FS||ES;if(pS(r)){if(o&&(rC.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=nC(cS(r,i,i),n);if(ES&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=nC(cS(r,i-1,i-1),-1);if(t.top==e.top){let n=nC(cS(r,i,i+1),-1);if(n.top!=e.top)return aC(n,n.left<t.left)}}return e}{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,aC(nC(cS(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==dS(r))){let e=r.childNodes[i-1];if(fS(e))return oC(e.getBoundingClientRect(),!1)}if(a==null&&i<dS(r)){let e=r.childNodes[i];if(fS(e))return oC(e.getBoundingClientRect(),!0)}return oC(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==dS(r))){let e=r.childNodes[i-1],t=pS(e)?cS(e,dS(e)-+!o):fS(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return aC(nC(t,1),!1)}if(a==null&&i<dS(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?pS(e)?cS(e,0,+!o):fS(e)?e:null:null;if(t)return aC(nC(t,-1),!0)}return aC(nC(pS(r)?cS(r):r,-n),n>=0)}function aC(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function oC(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function sC(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function cC(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return sC(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=iC(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(fS(e))t=e.getClientRects();else if(pS(e))t=cS(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var lC=/[\u0590-\u08ac]/;function uC(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!lC.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:sC(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!mS(l,u)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var dC=null,fC=null,pC=!1;function mC(e,t,n){return dC==t&&fC==n?pC:(dC=t,fC=n,pC=n==`up`||n==`down`?cC(e,t,n):uC(e,t,n))}var hC=0,gC=1,_C=2,vC=3,yC=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=hC,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&mS(this.contentDOM,e)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>aS(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM)){let n=e.compareDocumentPosition(this.contentDOM);r=n&16?t>Array.from(e.childNodes).findIndex(e=>e.contains(this.contentDOM)):!(n&4)}else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node)){if(n&&(a=i.nodeDOM)&&!(fS(a)?mS(a,e):a==e))n=!1;else return i}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(;n>0;n--){let e=this.children[n-1];if(e.size||!(e instanceof EC||e instanceof bC&&e.side>=0))break}if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?aS(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?aS(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=aS(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=aS(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(!fS(t)||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((ES||AS)&&e==t){let{node:e,offset:t}=o;if(pS(e)){if(u=!!(t&&e.nodeValue[t-1]==`
-`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:aS(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(ES&&l.focusNode&&l.focusNode!=s.node&&fS(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&AS)&&lS(o.node,o.offset,l.anchorNode,l.anchorOffset)&&lS(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&ES)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?_C:gC,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=vC:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?_C:vC}n=a}this.dirty=_C}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?_C:gC;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},bC=class extends yC{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){let e=fS(a)?a:document.createElement(`span`);e!=a&&(e.appendChild(a),a=e),e.hasAttribute(`contenteditable`)||(e.contentEditable=`false`),e.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==hC&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},xC=class extends yC{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},SC=class e extends yC{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return o&&o.dom||(o=Iy.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&vC||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vC&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=hC){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=hC}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=UC(a,n,o,r)),t>0&&(a=UC(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},CC=class e extends yC{constructor(e,t,n,r,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(!pS(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=Iy.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=PC(u,r,n),l?c=new DC(t,n,r,i,u,d||null,f,l):n.isText?new TC(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>fS(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>K.empty}}return t}matchesNode(e,t,n){return this.dirty==hC&&e.eq(this.node)&&FC(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new LC(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;BC(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?qv.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,u,d)=>{s.syncToMarks(t.marks,n,e,d),l&&t.isAtom&&!t.isText&&s.addHackNode(`IMG`,s.top);let f;s.findNodeMatch(t,a,u,d)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(f=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,u,f,e)||s.updateNextNode(t,a,u,e,d,r)||s.addNode(t,a,u,e,r),r+=t.nodeSize,c&&(l=t.isAtom&&!t.isText)}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==_C)&&(a&&this.protectLocalComposition(e,a),OC(this.contentDOM,this.children,e),jS&&VC(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof ux)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=HC(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new xC(this,i,t,r);e.input.compositionNodes.push(a),this.children=UC(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==vC||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=hC}updateOuterDeco(e){if(FC(e,this.outerDeco))return;let t=!fS(this.nodeDOM),n=this.dom;this.dom=MC(this.dom,this.nodeDOM,jC(this.outerDeco,this.node,t),jC(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){fS(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){fS(this.nodeDOM)&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function wC(e,t,n,r,i){PC(r,t,e);let a=new CC(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var TC=class e extends CC{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==vC||this.dirty!=hC&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=hC||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=hC,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=vC)}get domAtom(){return!1}isText(e){return this.node.text==e}},EC=class extends yC{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==hC&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},DC=class extends CC{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==vC)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function OC(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=IC(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof SC){let t=r?r.previousSibling:e.lastChild;OC(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=IC(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var kC=function(e){e&&(this.nodeName=e)};kC.prototype=Object.create(null);var AC=[new kC];function jC(e,t,n){if(e.length==0)return AC;let r=n?AC[0]:new kC,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new kC(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new kC(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function MC(e,t,n,r){if(n==AC&&r==AC)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=AC[0]),i=t}NC(i,o||AC[0],a)}return i}function NC(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function PC(e,t,n){return MC(e,e,AC,jC(t,n,!fS(e)))}function FC(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function IC(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var LC=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=RC(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=hC,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof SC&&t.dirty!=vC&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=SC.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==vC&&a.dom==a.contentDOM&&(a.dirty=_C),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof CC){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=vC&&FC(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=_C,u.updateChildren(r,a+1),u.dirty=hC),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!FC(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=CC.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=CC.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new bC(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof SC;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof TC)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((AS||OS)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new EC(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||fS(e)&&e.contains(this.lock.parentNode))}};function RC(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof SC)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function zC(e,t){return e.type.side-t.type.side}function BC(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u){if(d){d.sort(zC);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c)}let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function VC(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function HC(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function UC(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function WC(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(gS(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&fx.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&pte(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new fx(o==e?s:r.resolve(e))}else if(ES&&t==`key`&&o>e.state.selection.to&&fS(n.focusNode)&&n.focusOffset==n.focusNode.childNodes.length&&i&&i.posAtStart>e.state.selection.to)for(let e=n.focusNode;;e=e.parentNode){if(getComputedStyle(e).overflow!=`visible`){l=ox.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!fS(e.parentNode))break}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=tw(e,u,s,n)}return l}function GC(e){return e.editable?e.hasFocus():rw(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function KC(e,t=!1){let n=e.state.selection;if($C(e,n),!GC(e))return;let r=e.input.mouseDown;if(!t&&OS&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&lS(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)QC(e);else{let{anchor:r,head:i}=n,a,o;qC&&!(n instanceof ux)&&(n.$from.parent.inlineContent||(a=JC(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=JC(e,n.to))),e.docView.setSelection(r,i,e,t),qC&&(a&&XC(a),o&&XC(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&ZC(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var qC=AS||OS&&kS<63;function JC(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(AS&&i&&i.contentEditable==`false`)return YC(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return YC(i);if(a)return YC(a)}}function YC(e){return e.contentEditable=`true`,AS&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function XC(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function ZC(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!GC(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function QC(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,aS(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&wS&&TS<=11&&(n.disabled=!0,n.disabled=!1)}function $C(e,t){if(t instanceof fx){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(ew(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else ew(e)}function ew(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function tw(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||ux.between(t,n,r)}function nw(e){return e.editable&&!e.hasFocus()?!1:rw(e)}function rw(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return mS(e.dom,t.anchorNode)&&(e.editable||mS(e.dom,t.focusNode))}catch{return!1}}function iw(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return lS(t.node,t.offset,n.anchorNode,n.anchorOffset)}function aw(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&ox.findFrom(a,t)}function ow(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function sw(e,t,n){let r=e.state.selection;if(r instanceof ux){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return ow(e,new ux(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=aw(e.state,t);return n&&n instanceof fx?ow(e,n):!1}if(!MS||n.indexOf(`m`)<0){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?fx.isSelectable(i)?ow(e,new fx(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):ow(e,new ux(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof fx&&r.node.isInline)return ow(e,new ux(t>0?r.$to:r.$from));else{let n=aw(e.state,t);return n?ow(e,n):!1}}function cw(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):fS(e)&&e.contentEditable==`false`}function lw(e,t){return t<0?uw(e):dw(e)}function uw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(ES&&fS(n)&&r<dS(n)&&cw(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!fS(n))break;let e=n.childNodes[r-1];if(cw(e,-1))i=n,a=--r;else if(pS(e))n=e,r=n.nodeValue.length;else break}else if(fw(n))break;else{let t=n.previousSibling;for(;t&&cw(t,-1);)i=n.parentNode,a=aS(t),t=t.previousSibling;if(t)n=t,r=dS(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?hw(e,n,r):i&&hw(e,i,a)}function dw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=dS(n),a,o;for(;;)if(r<i){if(!fS(n))break;let e=n.childNodes[r];if(cw(e,1))a=n,o=++r;else break}else if(fw(n))break;else{let t=n.nextSibling;for(;t&&cw(t,1);)a=t.parentNode,o=aS(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=dS(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&hw(e,a,o)}function fw(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function pw(e,t){for(;e&&t==e.childNodes.length&&!hS(e);)t=aS(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(pS(n))return n;if(fS(n)&&n.contentEditable==`false`)break;e=n,t=0}}function mw(e,t){for(;e&&!t&&!hS(e);)t=aS(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(pS(n))return n;if(fS(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function hw(e,t,n){if(!pS(t)){let e,r;(r=pw(t,n))?(t=r,n=0):(e=mw(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;gS(i)?r.collapse(t,n):r.extend&&(r.collapse(i.anchorNode,i.anchorOffset),r.extend(t,n)),e.domObserver.setCurSelection();let{state:a}=e;setTimeout(()=>{e.state==a&&KC(e)},50)}function gw(e,t){let n=e.state.doc.resolve(t);if(!(OS||NS)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}let r=e.dom;for(let t=n.depth;t>0;t--)if(n.node(t).isBlock){r=e.nodeDOM(n.before(t))||r;break}return getComputedStyle(r).direction==`rtl`?`rtl`:`ltr`}function _w(e,t,n){let r=e.state.selection;if(r instanceof ux&&!r.empty||n.indexOf(`s`)>-1||MS&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=aw(e.state,t);if(n&&n instanceof fx)return ow(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof mx?ox.near(n,t):ox.findFrom(n,t);return o?ow(e,o):!1}return!1}function vw(e,t){if(!(e.state.selection instanceof ux))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function yw(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function bw(e){if(!AS||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&fS(t)&&n==0&&t.firstChild&&fS(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;yw(e,n,`true`),setTimeout(()=>yw(e,n,`false`),20)}return!1}function xw(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function Sw(e,t){let n=t.keyCode,r=xw(t);if(n==8||MS&&n==72&&r==`c`)return vw(e,-1)||lw(e,-1);if(n==46&&!t.shiftKey||MS&&n==68&&r==`c`)return vw(e,1)||lw(e,1);if(n==13||n==27)return!0;if(n==37||MS&&n==66&&r==`c`){let t=n==37?gw(e,e.state.selection.from)==`ltr`?-1:1:-1;return sw(e,t,r)||lw(e,t)}if(n==39||MS&&n==70&&r==`c`){let t=n==39?gw(e,e.state.selection.from)==`ltr`?1:-1:1;return sw(e,t,r)||lw(e,t)}return n==38||MS&&n==80&&r==`c`?_w(e,-1,r)||lw(e,-1):n==40||MS&&n==78&&r==`c`?bw(e)||_w(e,1,r)||lw(e,1):!(r!=(MS?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function Cw(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||Iy.fromSchema(e.state.schema),s=Nw(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&fS(l)&&(u=Mw[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&fS(l)&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
-
-`),slice:t}}function ww(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new q(K.from(e.state.schema.text(t.replace(/\r\n?/g,`
-`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=Iy.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=Iw(n),FS&&Lw(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&!fS(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||Cy.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!Tw.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=Rw(jw(s,+u[1],+u[2]),u[4]);else if(s=q.maxOpen(Ew(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=jw(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var Tw=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Ew(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&Ow(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=kw(a[a.length-1],i.length));let n=Dw(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return K.from(a)}return e}function Dw(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,K.from(e));return e}function Ow(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=Ow(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(K.from(Dw(n,e,i+1))))}}function kw(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,kw(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(K.empty,!0);return e.copy(n.append(r))}function Aw(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=Aw(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(K.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function jw(e,t,n){return t<e.openStart&&(e=new q(Aw(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new q(Aw(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Mw={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function Nw(){return document.implementation.createHTMLDocument(`title`)}var Pw=null;function Fw(e){let t=window.trustedTypes;if(!t)return e;if(!Pw){if(Pw=t.defaultPolicy)try{return Pw.createHTML(e)}catch{}Pw=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return Pw.createHTML(e)}function Iw(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Nw(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&Mw[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=Fw(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function Lw(e){let t=e.querySelectorAll(OS?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function Rw(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;try{i=K.from(t.create(r[e+1],i))}catch{break}a++,o++}return new q(i,a,o)}var zw={},Bw={},Vw={touchstart:!0,touchmove:!0},Hw=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function Uw(e){for(let t in zw){let n=zw[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{Jw(e,t)&&!qw(e,t)&&(e.editable||!(t.type in Bw))&&n(e,t)},Vw[t]?{passive:!0}:void 0)}AS&&e.dom.addEventListener(`input`,()=>null),Kw(e)}function Ww(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Gw(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Kw(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>qw(e,t))})}function qw(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function Jw(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Yw(e,t){!qw(e,t)&&zw[t.type]&&(e.editable||!(t.type in Bw))&&zw[t.type](e,t)}Bw.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!fT(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(PS&&OS&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),jS&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,_S(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||Sw(e,n)?n.preventDefault():Ww(e,`key`)}},Bw.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},Bw.keypress=(e,t)=>{let n=t;if(fT(e)||!n.charCode||n.ctrlKey&&!n.altKey||MS&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof ux)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function Xw(e){return{left:e.clientX,top:e.clientY}}function Zw(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Qw(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function $w(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta(`pointer`,!0),e.dispatch(r)}function eT(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&fx.isSelectable(r)?($w(e,new fx(n)),!0):!1}function tT(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof fx&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(fx.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i!=null&&($w(e,fx.create(e.state.doc,i)),!0)}function nT(e,t,n,r,i){return Qw(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?tT(e,n):eT(e,n))}function rT(e,t,n,r){return Qw(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function iT(e,t,n,r){return Qw(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||aT(e,n,r)}function aT(e,t,n){if(n.button!=0)return!1;let r=oT(e,t,!0),i=e.state.doc;return r?($w(e,r),r instanceof ux&&i.eq(e.state.doc)&&(e.input.mouseDown=new dT(e,r)),!0):!1}function oT(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?ux.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return ux.create(r,a+1,a+1+t.content.size);if(n&&fx.isSelectable(t))return fx.create(r,a)}return null}function sT(e){return vT(e)}var cT=MS?`metaKey`:`ctrlKey`;zw.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=sT(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&Zw(n,e.input.lastClick)&&!n[cT]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(Xw(n));o&&(a==`singleClick`?e.input.mouseDown=new uT(e,o,n,!!r):(a==`doubleClick`?rT:iT)(e,o.pos,o.inside,n)?n.preventDefault():Ww(e,`pointer`))};var lT=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},uT=class extends lT{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[cT],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&fS(s.nodeDOM)?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof fx&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&ES&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),Ww(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||KC(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Xw(e))),this.updateAllowDefault(e),this.allowDefault||!t?Ww(this.view,`pointer`):nT(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||AS&&this.mightDrag&&!this.mightDrag.node.isAtom||OS&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?($w(this.view,ox.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Ww(this.view,`pointer`)}move(e){this.updateAllowDefault(e),Ww(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},dT=class extends lT{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),Ww(this.view,`pointer`);let t=this.view.posAtCoords(Xw(e)),n=t&&oT(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];$w(this.view,ux.create(r,a,o))}};zw.touchstart=e=>{e.input.lastTouch=Date.now(),sT(e),Ww(e,`pointer`)},zw.touchmove=e=>{e.input.lastTouch=Date.now(),Ww(e,`pointer`)},zw.contextmenu=e=>sT(e);function fT(e,t){return e.composing?!0:AS&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var pT=PS?5e3:-1;Bw.compositionstart=Bw.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof ux&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||OS&&NS&&mT(e)))e.markCursor=e.state.storedMarks||n.marks(),vT(e,!0),e.markCursor=null;else if(vT(e,!t.selection.empty),ES&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&fS(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(pS(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}hT(e,pT)};function mT(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!fS(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return fS(r)&&r.contentEditable==`false`}Bw.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,hT(e,20))};function hT(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>vT(e),t))}function gT(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function _T(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=dte(t.focusNode,t.focusOffset),r=fte(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function vT(e,t=!1){if(!(PS&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),gT(e),t||e.docView&&e.docView.dirty){let n=WC(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function yT(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var bT=wS&&TS<15||jS&&IS<604;zw.copy=Bw.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=bT?null:n.clipboardData,{dom:o,text:s}=Cw(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):yT(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function xT(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function ST(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?CT(e,r.value,null,i,t):CT(e,r.textContent,r.innerHTML,i,t)},50)}function CT(e,t,n,r,i){let a=ww(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||q.empty)))return!0;if(!a)return!1;let o=xT(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function wT(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}Bw.paste=(e,t)=>{let n=t;if(e.composing&&!PS)return;let r=bT?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&CT(e,wT(r),r.getData(`text/html`),i,n)?n.preventDefault():ST(e,n)};var TT=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},ET=MS?`altKey`:`ctrlKey`;function DT(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[ET]:!n}zw.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(Xw(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof fx?i.to-1:i.to))){if(r&&r.mightDrag)o=fx.create(e.state.doc,r.mightDrag.pos);else if(n.target&&fS(n.target)){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=fx.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=Cw(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!OS||kS>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(bT?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,bT||n.dataTransfer.setData(`text/plain`,c),e.dragging=new TT(l,DT(e,n),o)},zw.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Bw.dragover=Bw.dragenter=(e,t)=>t.preventDefault(),Bw.drop=(e,t)=>{try{OT(e,t,e.dragging)}finally{e.dragging=null}};function OT(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(Xw(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=ww(e,wT(t.dataTransfer),bT?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&DT(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||q.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?Rb(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&fx.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new fx(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(tw(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}zw.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&KC(e)},20))},zw.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},zw.beforeinput=(e,t)=>{if(PS&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,_S(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in Bw)zw[e]=Bw[e];function kT(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var AT=class{constructor(e){this.frag=e,this.index=0,this.off=0}nodeAt(e){for(;this.off<=e&&this.index<this.frag.childCount;){let t=this.frag.child(this.index);if(this.off==e)return t;this.off+=t.nodeSize,this.index++}return null}},jT=class e{constructor(e,t){this.toDOM=e,this.spec=t||IT,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new PT(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&kT(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},MT=class e{constructor(e,t){this.attrs=e,this.spec=t||IT}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new PT(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&kT(this.attrs,t.attrs)&&kT(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},NT=class e{constructor(e,t){this.attrs=e,this.spec=t||IT}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new PT(i.pos-n,a.pos-n,this)}valid(e,t,n){let r=n.nodeAt(t.from);return!!r&&!r.isText&&t.from+r.nodeSize==t.to}eq(t){return this==t||t instanceof e&&kT(this.attrs,t.attrs)&&kT(this.spec,t.spec)}destroy(){}},PT=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new jT(n,r))}static inline(t,n,r,i){return new e(t,n,new MT(r,i))}static node(t,n,r,i){return new e(t,n,new NT(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof MT}get widget(){return this.type instanceof jT}},FT=[],IT={},LT=class e{constructor(e,t){this.local=e.length?e:FT,this.children=t.length?t:FT}static create(e,t){return t.length?GT(t,e,0,IT):RT}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==RT||e.maps.length==0?this:this.mapInner(e,t,0,0,n||IT)}mapInner(t,n,r,i,a){let o;if(this.local.length){let e=new AT(n.content);for(let s=0;s<this.local.length;s++){let c=this.local[s].map(t,r,i);c&&c.type.valid(n,c,e)?(o||=[]).push(c):a.onRemove&&a.onRemove(this.local[s].spec)}}return this.children.length?BT(this.children,o||[],t,n,r,i,a):o?new e(o.sort(KT),FT):RT}add(t,n){return n.length?this==RT?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=UT(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,GT(s,e,o+1,IT)),a+=3}});let o=VT(a?WT(n):n,-r);if(o.length){let e=new AT(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||o.splice(n--,1)}return new e(o.length?this.local.concat(o).sort(KT):this.local,i||this.children)}remove(e){return e.length==0||this==RT?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==RT?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):RT}forChild(t,n){if(this==RT)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof MT){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(KT),FT);return r?new zT([t,r]):t}return r||RT}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return qT(this.localsInner(e))}localsInner(e){if(this==RT)return FT;if(e.inlineContent||!this.local.some(MT.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof MT||t.push(this.local[e]);return t}forEachSet(e){e(this)}};LT.empty=new LT([],[]),LT.removeOverlap=qT;var RT=LT.empty,zT=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,IT));return e.from(r)}forChild(t,n){if(n.isLeaf)return LT.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=RT&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length){if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}}return t?qT(n?t:t.sort(KT)):FT}static from(t){switch(t.length){case 0:return RT;case 1:return t[0];default:return new e(t.every(e=>e instanceof LT)?t:t.reduce((e,t)=>e.concat(t instanceof LT?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function BT(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==RT?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=GT(HT(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new LT(t.sort(KT),s)}function VT(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new PT(i.from+t,i.to+t,i.type))}return n}function HT(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function UT(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function WT(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function GT(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=UT(e,t,o+n);if(s){a=!0;let e=GT(s,t,n+o+1,r);e!=RT&&i.push(o,o+t.nodeSize,e)}});let o=VT(a?WT(e):e,-n).sort(KT);if(o.length){let e=new AT(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||(r.onRemove&&r.onRemove(o[n].spec),o.splice(n--,1))}return o.length||i.length?new LT(o,i):RT}function KT(e,t){return e.from-t.from||e.to-t.to}function qT(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from)a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),JT(t,i+1,a.copy(r.to,a.to)));else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),JT(t,i,r.copy(a.from,r.to)));break}}}return t}function JT(e,t,n){for(;t<e.length&&KT(n,e[t])>0;)t++;e.splice(t,0,n)}function YT(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=RT&&t.push(r)}),e.cursorWrapper&&t.push(LT.create(e.state.doc,[e.cursorWrapper.deco])),zT.from(t)}var XT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ZT=wS&&TS<=11,QT=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},$T=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new QT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);wS&&TS<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():AS&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),ZT&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,XT)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(nw(this.view)){if(this.suppressingSelectionUpdates)return KC(this.view);if(wS&&TS<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&lS(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=oS(n))t.add(n);for(let r=e.anchorNode;r;r=oS(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:pS(n)?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n,r=!1;!this.suppressingSelectionUpdates&&nw(e)&&(n=e.domSelectionRange(),r=!this.currentSelection.eq(n)&&!this.ignoreSelectionChange(n));let i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||OS&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&fS(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(ES&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||aE(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&gS(n)&&(c=WC(e))&&c.eq(ox.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,KC(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),nE(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,oE(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&KC(e),n&&this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),pS(r)&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(wS&&TS<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?aS(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?aS(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}return e.type==`attributes`?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},eE=new WeakMap,tE=!1;function nE(e){if(!eE.has(e)&&(eE.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=ES,tE)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),tE=!0}}function rE(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return lS(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function iE(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return rE(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?rE(e,n):null}function aE(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function oE(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||!fS(e)||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function gte(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&mS(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],gS(l)||u.push({node:l.focusNode,offset:l.focusOffset})),OS&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||Cy.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace!=`pre`||`full`,findPositions:u,ruleFromNode:_te(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var _te=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(AS&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}if(t.parentNode.lastChild==t||AS&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},vte=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function yte(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=WC(e,t);if(n&&!e.state.selection.eq(n)){if(OS&&PS&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,_S(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=gte(e,t,n,i),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=Cte(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(jS&&e.input.lastIOSEnter>Date.now()-225||PS)&&i.some(e=>fS(e)&&!vte.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,_S(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof ux&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=sE(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof ux&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),wS&&TS<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((jS&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&Ste(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,_S(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:xte(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,_S(8,`Backspace`)))){PS&&OS&&e.domObserver.suppressSelectionUpdates();return}OS&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),PS&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,_S(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=sE(e,n.doc,l.sel);t&&!(OS&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||wS&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){wS&&TS<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>KC(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=bte(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x())}else e.dispatch(x())}function sE(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:tw(e,t.resolve(n.anchor),t.resolve(n.head))}function bte(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(K.from(l).eq(e))return{mark:s,type:o}}function xte(e,t,n,r,i){if(n-t<=i.pos-r.pos||cE(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.inlineContent){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(cE(a,!0,!0));return!o.parent.isTextblock||o.pos>n||cE(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function Ste(e,t,n){let r=0,i=0;return e.nodesBetween(t,n,(e,a)=>{e.isTextblock&&a>=t&&a<n?r++:(e.isText?/\S/.test(e.text.slice(Math.max(0,t-a),Math.min(e.nodeSize,n-a))):e.isLeaf)&&i++}),i==0&&r==1}function cE(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function Cte(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var lE=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Hw,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(mE),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=fE(this),dE(this),this.nodeViews=pE(this),this.docView=wC(this.state.doc,uE(this),YT(this),this.dom,this),this.domObserver=new $T(this,(e,t,n,r)=>yte(this,e,t,n,r)),this.domObserver.start(),Uw(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Kw(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(mE),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(gT(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=pE(this);Tte(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&Kw(this),this.editable=fE(this),dE(this);let o=YT(this),s=uE(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&VS(this);if(i){this.domObserver.stop();let t=l&&(wS||OS)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&wte(n.selection,e.selection);if(l){let n=OS?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=_T(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=wC(e.doc,s,o,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&iw(this)&&i.delaySelUpdate())?KC(this,t):($C(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&US(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&mS(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof fx){let t=this.docView.domAfterPos(this.state.selection.from);fS(t)&&BS(this,t.getBoundingClientRect(),e)}else BS(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new TT(e.slice,e.move,r<0?void 0:fx.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(wS){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&KS(this.dom),KC(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return eC(this,e)}coordsAtPos(e,t=1){return iC(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return mC(this,t||this.state,e)}pasteHTML(e,t){return CT(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return CT(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return Cw(this,e)}destroy(){this.docView&&(Gw(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],YT(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,lte())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Yw(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?AS&&this.root.nodeType===11&&mte(this.dom.ownerDocument)==this.dom&&iE(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};lE.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function uE(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[PT.node(0,e.state.doc.content.size,t)]}function dE(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:PT.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function fE(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function wte(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function pE(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function Tte(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function mE(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var hE={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},gE={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},Ete=typeof navigator<`u`&&/Mac/.test(navigator.platform),Dte=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),_E=0;_E<10;_E++)hE[48+_E]=hE[96+_E]=String(_E);for(var _E=1;_E<=24;_E++)hE[_E+111]=`F`+_E;for(var _E=65;_E<=90;_E++)hE[_E]=String.fromCharCode(_E+32),gE[_E]=String.fromCharCode(_E);for(var vE in hE)gE.hasOwnProperty(vE)||(gE[vE]=hE[vE]);function Ote(e){var t=!(Ete&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Dte&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?gE:hE)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var kte=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Ate=typeof navigator<`u`&&/Win/.test(navigator.platform);function jte(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))kte?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function Mte(e){let t=Object.create(null);for(let n in e)t[jte(n)]=e[n];return t}function yE(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function Nte(e){return new Dx({props:{handleKeyDown:bE(e)}})}function bE(e){let t=Mte(e);return function(e,n){let r=Ote(n),i,a=t[yE(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[yE(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Ate&&n.ctrlKey&&n.altKey)&&(i=hE[n.keyCode])&&i!=r){let r=t[yE(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var xE=200,SE=function(){};SE.prototype.append=function(e){return e.length?(e=SE.from(e),!this.length&&e||e.length<xE&&this.leafAppend(e)||this.length<xE&&e.leafPrepend(this)||this.appendInner(e)):this},SE.prototype.prepend=function(e){return e.length?SE.from(e).append(this):this},SE.prototype.appendInner=function(e){return new Pte(this,e)},SE.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?SE.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},SE.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},SE.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},SE.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},SE.from=function(e){return e instanceof SE?e:e&&e.length?new CE(e):SE.empty};var CE=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=xE)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=xE)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(SE);SE.empty=new CE([]);var Pte=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(SE),Fte=500,wE=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new TE(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new TE(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new TE(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>Lte&&(s=Ite(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new eb;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new TE(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new TE(i,o,l))}else r.push(new TE(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new TE(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>Fte&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new TE(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(SE.from(i.reverse()),a)}};wE.empty=new wE(SE.empty,0);function Ite(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var TE=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},EE=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},Lte=20;function Rte(e,t,n,r){let i=n.getMeta(NE),a;if(i)return i.historyState;n.getMeta(PE)&&(e=new EE(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(NE))return o.getMeta(NE).redo?new EE(e.done.addTransform(n,void 0,r,jE(t)),e.undone,DE(n.mapping.maps),e.prevTime,e.prevComposition):new EE(e.done,e.undone.addTransform(n,void 0,r,jE(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!zte(n,e.prevRanges)),s=o?OE(e.prevRanges,n.mapping):DE(n.mapping.maps);return new EE(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,jE(t)),wE.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new EE(e.done.rebased(n,a),e.undone.rebased(n,a),OE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new EE(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),OE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function zte(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function DE(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function OE(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function Bte(e,t,n){let r=jE(t),i=NE.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new EE(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(NE,{redo:n,historyState:c})}var kE=!1,AE=null;function jE(e){let t=e.plugins;if(AE!=t){kE=!1,AE=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){kE=!0;break}}return kE}function ME(e){return e.setMeta(PE,!0)}var NE=new Ax(`history`),PE=new Ax(`closeHistory`);function Vte(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Dx({key:NE,state:{init(){return new EE(wE.empty,wE.empty,null,0,-1)},apply(t,n,r){return Rte(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?IE:n==`historyRedo`?LE:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function FE(e,t){return(n,r)=>{let i=NE.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=Bte(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var IE=FE(!1,!0),LE=FE(!0,!0);function Hte(e){return e.getMeta(NE)!=null}function RE(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var zE=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:RE({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},Ute=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),Wte=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),Gte=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=vb(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},Kte=e=>t=>e(t),qte=()=>({state:e,dispatch:t})=>Jx(e,t),Jte=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new ux(r.doc.resolve(Math.max(o-1,0)))),!0},Yte=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function BE(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Xte=e=>({tr:t,state:n,dispatch:r})=>{let i=BE(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},Zte=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},Qte=e=>e.content?/^text(\*|\+)/.test(e.content):!1,VE=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return Qte(r)?n===`left`?e.start()-1:e.end()+1:e.pos},$te=(e,t,n)=>({from:VE(e,n,`left`),to:VE(t,n,`right`)}),ene=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=$te(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(ux.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},tne=()=>({commands:e})=>e.keyboardShortcut(`Enter`),nne=()=>({state:e,dispatch:t})=>qx(e,t);function HE(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function UE(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:HE(t[r])?t[r].test(e[r]):t[r]===e[r])}function WE(e,t,n={}){return e.find(e=>e.type===t&&UE(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function GE(e,t,n={}){return!!WE(e,t,n)}function KE(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!WE([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&GE([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&GE([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function qE(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var rne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=qE(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=KE(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=ux.create(o,e.from,e.to);n.setSelection(t)}}return!0},ine=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function JE(e){return e instanceof ux}function YE(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function XE(e,t=null){if(!t)return null;let n=ox.atStart(e),r=ox.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?ux.create(e,YE(0,i,a),YE(e.content.size,i,a)):ux.create(e,YE(t,i,a),YE(t,i,a))}function ZE(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function QE(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function ane(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var one=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(QE()||ZE())&&r.dom.focus(),ane()&&!QE()&&!ZE()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!JE(n.state.selection))return o(),!0;let s=XE(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},sne=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),cne=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),$E=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&$E(r)}return e};function eD(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return $E(n)}function tD(e){return typeof e?.nodesBetween==`function`}function nD(e,t,n){if(tD(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return K.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),nD(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new xy({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?Cy.fromSchema(a).parseSlice(eD(e),n.parseOptions):Cy.fromSchema(a).parse(eD(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=Cy.fromSchema(t);return n.slice?r.parseSlice(eD(e),n.parseOptions).content:r.parse(eD(e),n.parseOptions)}return nD(``,t,n)}function rD(e){return!(`type`in e)}function iD(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof db||i instanceof fb))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(ox.near(e.doc.resolve(o),n))}var lne=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{nD(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=nD(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=rD(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):tD(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=K.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&iD(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function aD(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var une=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=aD(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=nD(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&iD(t,t.steps.length-1,-1)),!0):!1},dne=()=>({state:e,dispatch:t})=>Kee(e,t),fne=()=>({state:e,dispatch:t})=>qee(e,t),pne=()=>({state:e,dispatch:t})=>Ix(e,t),mne=()=>({state:e,dispatch:t})=>Hx(e,t),oD=(e,t)=>{let n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},hne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Fb(e.doc,e.selection.$from.pos,-1);return r==null||!oD(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},gne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Fb(e.doc,e.selection.$from.pos,1);return r==null||!oD(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},_ne=()=>({state:e,dispatch:t})=>Wee(e,t),vne=()=>({state:e,dispatch:t})=>Gee(e,t);function sD(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function yne(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))QE()||sD()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var bne=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=yne(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function cD(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?BE(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>!o||o.name===e.node.type.name).filter(e=>UE(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var xne=(e,t={})=>({state:n,dispatch:r})=>cD(n,BE(e,n.schema),t)?Jee(n,r):!1,Sne=()=>({state:e,dispatch:t})=>Yx(e,t),Cne=e=>({state:t,dispatch:n})=>ate(BE(e,t.schema))(t,n),lD=()=>({state:e,dispatch:t})=>Gx(e,t);function uD(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function dD(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var fD=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=uD(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=BE(e,r.schema)),s===`mark`&&(o=qE(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,dD(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(dD(a.attrs,t))))})})}),c},pD=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),mD=()=>({tr:e,dispatch:t})=>{if(t){let t=new mx(e.doc);e.setSelection(t)}return!0},wne=()=>({state:e,dispatch:t})=>zx(e,t),Tne=()=>({state:e,dispatch:t})=>Ux(e,t),Ene=()=>({state:e,dispatch:t})=>Zee(e,t),hD=()=>({state:e,dispatch:t})=>$x(e,t),gD=()=>({state:e,dispatch:t})=>Qx(e,t);function _D(e,t,n={},r={}){return nD(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var vD=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=_D(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=rD(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function yD(e,t){let n=qE(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function bD(e,t){let n=new ix(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Dne(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function One(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function xD(e){return t=>One(t.$from,e)}function SD(e,t,n){return e.config[t]===void 0&&e.parent?SD(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?SD(e.parent,t,n):null}):e.config[t]}function CD(e){return e.map(e=>{let t=SD(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...CD(t())]:e}).flat(10)}function wD(e,t){let n=Iy.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function TD(e,t){let n=new Map;for(let t of e){let e=n.get(t.type)??new Map;e.set(t.name,t),n.set(t.type,e)}return[...Object.values(t.nodes),...Object.values(t.marks)].flatMap(e=>Object.entries(e.spec.attrs??{}).map(([t,r])=>{let i=n.get(e.name)?.get(t),a=Object.hasOwn(r,`default`);return{type:e.name,name:t,attribute:{rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,...i?.attribute,default:r.default,isRequired:!a,validate:r.validate}}}))}var ED={content:`string`,marks:`string`,group:`string`,inline:`boolean`,atom:`boolean`,selectable:`boolean`,draggable:`boolean`,code:`boolean`,whitespace:[`pre`,`normal`],definingAsContext:`boolean`,definingForContent:`boolean`,defining:`boolean`,isolating:`boolean`,linebreakReplacement:`boolean`},DD={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function OD(e,t,n){return Object.fromEntries(Object.entries(t).flatMap(([t,r])=>{let i=e[t];if(i===void 0)return[];if(!(typeof r==`string`?typeof i===r:typeof i==`string`&&r.includes(i)))throw RangeError(`Invalid schemaSpec field '${n}.${t}'`);return[[t,i]]}))}function kD(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...OD(n,r,e),attrs:n.attrs}}function AD(e,t,n){for(let r of Object.keys(t))if(!Object.hasOwn(e,r))throw RangeError(`schemaSpec requires a local ${n} extension named '${r}'`);for(let r of Object.keys(e))if(!Object.hasOwn(t,r))throw RangeError(`Local ${n} extension '${r}' is not in schemaSpec`)}function jD(e,t){AD(e.nodes,t.nodes,`node`),AD(e.marks,t.marks,`mark`);let n=t.spec.nodes,r=t.spec.marks;return t.spec.nodes.forEach((t,r)=>{n=n.update(t,kD(t,e.nodes[t],r,ED))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,kD(t,e.marks[t],n,DD))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function MD(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function ND(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function PD(e){let t=[],{nodeExtensions:n,markExtensions:r}=ND(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=SD(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=SD(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function FD(e){return typeof e==`function`}function ID(e,t=void 0,...n){return FD(e)?t?e.bind(t)(...n):e(...n):e}function kne(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Ane(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i)r=!r,n+=o;else if(o===`"`&&!r)i=!i,n+=o;else{if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}}return n&&t.push(n),t}function LD(e){let t=[],n=Ane(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function RD(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`)Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});else if(!n[e])n[e]=t;else if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...LD(n[e]),...LD(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function zD(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>RD(e,t),{})}function jne(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function BD(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):jne(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function VD(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&kne(t)?!1:t!=null))}function HD(e){var t,n;let r={};return!(e!=null&&(t=e.attribute)!=null&&t.isRequired)&&`default`in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function UD(e,t,n=PD(e)){let{nodeExtensions:r,markExtensions:i}=ND(e);return{topNode:r.find(e=>SD(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=VD({...e.reduce((e,t)=>{let n=SD(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:ID(SD(r,`content`,a)),marks:ID(SD(r,`marks`,a)),group:ID(SD(r,`group`,a)),inline:ID(SD(r,`inline`,a)),atom:ID(SD(r,`atom`,a)),selectable:ID(SD(r,`selectable`,a)),draggable:ID(SD(r,`draggable`,a)),code:ID(SD(r,`code`,a)),whitespace:ID(SD(r,`whitespace`,a)),linebreakReplacement:ID(SD(r,`linebreakReplacement`,a)),defining:ID(SD(r,`defining`,a)),isolating:ID(SD(r,`isolating`,a)),attrs:Object.fromEntries(i.map(HD))}),s=ID(SD(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>BD(e,i)));let c=SD(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:zD(e,i)}));let l=SD(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=VD({...e.reduce((e,t)=>{let n=SD(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:ID(SD(r,`inclusive`,a)),excludes:ID(SD(r,`excludes`,a)),group:ID(SD(r,`group`,a)),spanning:ID(SD(r,`spanning`,a)),code:ID(SD(r,`code`,a)),attrs:Object.fromEntries(i.map(HD))}),s=ID(SD(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>BD(e,i)));let c=SD(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:zD(e,i)})),[r.name,o]}))}}function Mne(e,t,n){if(n===void 0)return new xy(UD(e,t));let r=MD(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new xy(n);return new xy(jD(UD(e,t,TD(PD(e),i)),i))}function WD(e){return e.sort((e,t)=>{let n=SD(e,`priority`)||100,r=SD(t,`priority`)||100;return n>r?-1:+(n<r)})}function GD(e){let t=WD(CD(e)),n=MD(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function KD(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
-
-`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function qD(e,t){return KD(e,{from:0,to:e.content.size},t)}function JD(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function YD(e,t){let n=BE(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function XD(e,t){let n=uD(typeof t==`string`?t:t.name,e.schema);return n===`node`?YD(e,t):n===`mark`?yD(e,t):{}}function ZD(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function QD(e){let t=ZD(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function $D(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),QD(r)}function eO(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=KE(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&e?.nodeSize!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var tO=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]},nO=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function rO(e,t){return t.nodes[e]||t.marks[e]||null}function iO(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var aO=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function oO(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?qE(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>UE(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>UE(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function sO(e,t,n={}){if(!t)return cD(e,null,n)||oO(e,null,n);let r=uD(t,e.schema);return r===`node`?cD(e,t,n):r===`mark`&&oO(e,t,n)}var cO=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=xD(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},lO=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function uO(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function dO(e,t){let{nodeExtensions:n}=ND(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=ID(SD(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function fO(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(fO(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function pO(e){return e instanceof fx}function mO(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.apply==`function`&&typeof t.getMap==`function`&&typeof t.invert==`function`&&typeof t.map==`function`&&typeof t.merge==`function`&&typeof t.toJSON==`function`}function hO(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!mO(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var gO=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function _O(e,t){let n=t.mapping.mapResult(e.position);return{position:new gO(n.pos),mapResult:n}}function vO(e){return new gO(e)}function yO(e,t,n){let r=e.state.doc.content.size,i=YE(t,0,r),a=YE(n,0,r),o=e.coordsAtPos(i),s=e.coordsAtPos(a,-1),c=Math.min(o.top,s.top),l=Math.max(o.bottom,s.bottom),u=Math.min(o.left,s.left),d=Math.max(o.right,s.right),f={top:c,bottom:l,left:u,right:d,width:d-u,height:l-c,x:u,y:c};return{...f,toJSON:()=>f}}function bO(e,t,n){let{selection:r}=t,i=null;if(JE(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var xO=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=qE(e,r.schema);if(i){if(o){let e=yD(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})})}return bO(r,n,c)},SO=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),CO=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=BE(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>eS(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>eS(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},wO=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=YE(e,0,n.content.size),i=fx.create(n,r);t.setSelection(i)}return!0},TO=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},EO=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=ux.atStart(n).from,o=ux.atEnd(n).to,s=YE(r,a,o),c=YE(i,a,o),l=ux.create(n,s,c);t.setSelection(l)}return!0},DO=e=>({state:t,dispatch:n})=>cte(BE(e,t.schema))(t,n);function OO(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var kO=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=iO(l,s.node().type.name,s.node().attrs);if(a instanceof fx&&a.node.isBlock)return!s.parentOffset||!Ab(o,s.pos)?!1:(r&&(e&&OO(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:aD(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof ux&&!a.empty?Tx.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=Ab(h,g,1,p);if(!p&&!_&&Ab(h,g,1,f?[{type:f}]:void 0)&&(_=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(_){let e=t.steps.length;if(a instanceof ux&&t.deleteSelection(),t.split(t.mapping.slice(e).map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f){let n=t.mapping.slice(e).map(s.before()),r=t.doc.resolve(n);s.node(-1).canReplaceWith(r.index(),r.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(e).map(s.before()),f)}}e&&OO(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},AO=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=BE(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=K.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=K.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...iO(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(K.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new q(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(ux.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...iO(d,u.type.name,u.attrs),...t},m={...iO(d,s.node().type.name,s.node().attrs),...t},h=s.parentOffset===0&&s.index(-1)===0,g=s.before(-1);n.delete(s.pos,c.pos);let _=h?u.attrs:p,v=f?[{type:o,attrs:_},{type:f,attrs:m}]:[{type:o,attrs:_}];if(!Ab(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,v).scrollIntoView(),h&&n.setNodeMarkup(g,void 0,p),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function jO(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function MO(e,t){if(e.pendingContent.length===0)return!0;let n=jO(t,K.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function Nne(e,t,n){return n.validContent(K.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!MO(t,n)||!n.validContent(K.from(e))?!1:(t.pendingContent.push(e),!0)}function Pne(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=jO(n.listType,K.from(i),e.attrs);return a?n.itemType.validContent(K.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):MO(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function Fne(e,t,n){let r={items:[],pendingContent:[]};for(let i=0;i<e.childCount;i+=1){let a=e.child(i);if(!(t.isListNode(a)?Pne(a,r,t,n):Nne(a,r,t.itemType)))return null}return MO(r,t.itemType)?r.items:null}function NO(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=Fne(e.child(r),t,NO);if(!i)return null;n.push(...i)}return n}function PO(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function FO(e){return!e||e===`1`?null:e}function IO(e,t){return FO(e)===FO(t)}var LO=(e,t)=>{let n=xD(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&Mb(e.doc,n.pos))||!IO(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},RO=(e,t)=>{let n=xD(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&Mb(e.doc,r))||!IO(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function Ine(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return ux.between(r,i)}var Lne=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=BE(e,o.schema),m=BE(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=xD(e=>dO(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&dO(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=Ine(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(dO(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>LO(a,p)).command(()=>RO(a,p)).run();if(dO(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=NO(E.node,{listType:p,itemType:m,isListNode:e=>dO(e.type.name,d)}),t=e?K.from(e):null;return!t||!p.validContent(t)?!1:c().command(()=>{let{$anchor:e,$head:n}=a.selection,i=e.parent,o=n.parent,s=e.parentOffset,c=n.parentOffset,l;try{l=p.create(r,t)}catch{return!1}if(a.replaceWith(E.pos,E.pos+E.node.nodeSize,l),i.inlineContent&&o.inlineContent){let e=PO(l,i),t=PO(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(ux.create(a.doc,n,r))}}return!0}).command(()=>LO(a,p)).command(()=>RO(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>LO(a,p)).command(()=>RO(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>LO(a,p)).command(()=>RO(a,p)).run()},Rne=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=qE(e,r.schema);return oO(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},zne=(e,t,n={})=>({state:r,commands:i})=>{let a=BE(e,r.schema),o=BE(t,r.schema),s=cD(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},Bne=(e,t={})=>({state:n,commands:r})=>{let i=BE(e,n.schema);return cD(n,i,t)?r.lift(i):r.wrapIn(i,t)},Vne=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},Hne=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},Une=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=qE(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=KE(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},Wne=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},Gne=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=uD(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=BE(e,r.schema)),s===`mark`&&(o=qE(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},zO=new Ax(`__tiptap_decorations__`),Kne=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(zO,{type:`force`,name:e}),!0),qne=(e,t={})=>({state:n,dispatch:r})=>ete(BE(e,n.schema),t)(n,r),Jne=(e,t={})=>({state:n,dispatch:r})=>nte(BE(e,n.schema),t)(n,r),Yne=Uee({blur:()=>Ute,clearContent:()=>Wte,clearNodes:()=>Gte,command:()=>Kte,createParagraphNear:()=>qte,cut:()=>Jte,deleteCurrentNode:()=>Yte,deleteNode:()=>Xte,deleteRange:()=>Zte,deleteSelection:()=>ene,enter:()=>tne,exitCode:()=>nne,extendMarkRange:()=>rne,first:()=>ine,focus:()=>one,forEach:()=>sne,insertContent:()=>cne,insertContentAt:()=>lne,insertDefaultBlock:()=>une,joinBackward:()=>pne,joinDown:()=>fne,joinForward:()=>mne,joinItemBackward:()=>hne,joinItemForward:()=>gne,joinTextblockBackward:()=>_ne,joinTextblockForward:()=>vne,joinUp:()=>dne,keyboardShortcut:()=>bne,lift:()=>xne,liftEmptyBlock:()=>Sne,liftListItem:()=>Cne,newlineInCode:()=>lD,resetAttributes:()=>fD,scrollIntoView:()=>pD,selectAll:()=>mD,selectNodeBackward:()=>wne,selectNodeForward:()=>Tne,selectParentNode:()=>Ene,selectTextblockEnd:()=>hD,selectTextblockStart:()=>gD,setContent:()=>vD,setMark:()=>xO,setMeta:()=>SO,setNode:()=>CO,setNodeSelection:()=>wO,setTextDirection:()=>TO,setTextSelection:()=>EO,sinkListItem:()=>DO,splitBlock:()=>kO,splitListItem:()=>AO,toggleList:()=>Lne,toggleMark:()=>Rne,toggleNode:()=>zne,toggleWrap:()=>Bne,undoInputRule:()=>Vne,unsetAllMarks:()=>Hne,unsetMark:()=>Une,unsetTextDirection:()=>Wne,updateAttributes:()=>Gne,updateDecorations:()=>Kne,wrapIn:()=>qne,wrapInList:()=>Jne}),BO=new WeakMap;function Xne(e,t){BO.set(e,(BO.get(e)??0)+1);try{return t()}finally{let t=(BO.get(e)??1)-1;t>0?BO.set(e,t):BO.delete(e)}}function Zne(e){return BO.has(e)}var Qne=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},VO=typeof process<`u`&&!1;function $ne(e){return e.kind===`widget`}function HO(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&$ne(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function ere(e,t,n){let{decorations:r,widgetKeys:i}=HO(t,n);return{set:LT.create(e,r),widgetKeys:i}}function UO({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function tre({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>UO({position:e.anchor,from:t,to:n,docSize:r})?!0:(e.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function WO(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function nre(e){let t=new Map,n=new Map;for(let r of e.find()){let e=WO(r);if(!e)continue;let i=r.spec.extensionName??`unknown`,a=t.get(e)??new Set;a.add(i),t.set(e,a),n.set(e,(n.get(e)??0)+1)}return Array.from(t,([e,t])=>({key:e,extensions:t})).filter(({key:e})=>(n.get(e)??0)>1)}function GO(e){return e.jsonID===`attr`}function rre(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||GO(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function ire(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){let o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function are(e,t){if(e.steps.some(e=>!rre(e)))return{type:`full`};let n=$D(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!GO(t))return;let i=e.mapping.slice(r);n.push({from:i.map(t.pos,-1),to:i.map(t.pos+1)})});let r=[];for(let e of n){let n=ire(t,e);n&&r.push(n)}r.sort((e,t)=>e.from-t.from);let i=[];for(let e of r){let t=i[i.length-1];t&&e.from<=t.to?t.to=Math.max(t.to,e.to):i.push({...e})}return{type:`ranges`,ranges:i}}function KO(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function qO(e,t,n){let r=t.decorationSetsByExtension[e]??LT.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:KO(r,n.mapping,n.doc,i),widgetKeys:i}}function JO(e,t){let n=Object.values(t).flatMap(e=>e.find());return LT.create(e,n)}function YO(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function XO(e,t){switch(t.update??`document`){case`document`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case`changedRanges`:if(!t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case`manual`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function ZO(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var QO=new Set,$O=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=zO.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>XO(e,t)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on(`beforeTransaction`,this.handleBeforeTransaction)}destroy(){this.editor.off(`beforeTransaction`,this.handleBeforeTransaction)}liveWidgetKeys(){return zO.getState(this.editor.state)?.widgetKeys??QO}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){let t=[];for(let{name:n,addDecorations:r}of e){let e=r();e&&t.push({name:n,spec:e})}return t}createPlugin(){let{editor:e,entries:t}=this;return new Dx({key:zO,state:{init:(e,n)=>{let r={},i={};for(let{name:e,spec:a}of t){let{set:t,widgetKeys:o}=this.buildFullSet(e,a,n);r[e]=t,i[e]=o}let a={decorationSetsByExtension:r,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(n.doc,r),widgetKeys:YO(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(zO),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return Xne(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!ZO(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=qO(o,r,n);l[o]=e.set,u[o]=e.widgetKeys}else if(f.update===`changedRanges`&&n.docChanged&&!t){let e=this.applyChangedRangesRecompute(o,f,r,n,a);l[o]=e.set,u[o]=e.widgetKeys,d.add(o)}else{let{set:e,widgetKeys:t}=this.buildFullSet(o,f,a);l[o]=e,u[o]=t,d.add(o)}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:l,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:d}),widgetKeys:YO(u)}}},props:{decorations(e){return zO.getState(e)?.mergedDecorationSet??LT.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=are(r,i.doc);return a.type===`full`?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){let o=n.decorationSetsByExtension[e]??LT.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=KO(o,r.mapping,r.doc,s),l=i.doc.content.size;for(let{from:n,to:r}of a){let a=c.find(n,r).filter(e=>UO({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=WO(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=HO(tre({decorations:this.runCreate(e,`createInRange`,()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:n,to:r})),from:n,to:r,docSize:l,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,o);for(let e of u)s.add(e)}return{set:c,widgetKeys:s}}buildFullSet(e,t,n){let r=this.runCreate(e,`create`,()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return ere(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(n){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,n),[]}}warnDuplicateWidgetKeys(e){if(!VO)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=nre(e.mergedDecorationSet),n=new Set(t.map(({key:e})=>e));for(let{key:e,extensions:n}of t){if(this.warnedWidgetKeys.has(e))continue;let t=Array.from(n).map(e=>`"${e}"`).join(`, `);console.warn(`[tiptap warn]: Duplicate widget decoration key "${e}" in extension${n.size===1?``:`s`} ${t}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){let n=Object.keys(t);return n.length===1?t[n[0]]:JO(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):JO(n.doc,r)}};function ek(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof fx){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}function tk(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}function nk(e){return typeof e==`number`}function rk(e){return Object.prototype.toString.call(e).slice(8,-1)}function ik(e){return rk(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function ak(e,t,n){let r=e.split(`
+ `),()=>{g.removeAttribute(`data-motion-pop-id`),S.contains(x)&&S.removeChild(x)}},[t]),(0,G.jsx)(Wf,{isPresent:t,getElement:f,sizeRef:l,pop:a,children:a===!1?e:H.cloneElement(e,{ref:d})})}var Kf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Lf(qf),d=(0,H.useId)(),f=(0,H.useRef)(),p=(0,H.useRef)(n),m=(0,H.useRef)(r);Rf(()=>{p.current=n,m.current=r});let h=!0,g=(0,H.useMemo)(()=>(h=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:(e,t)=>(u.set(e,!1),t&&t.parent?.presenceContext?.id!==d&&(f.current=t),()=>{u.delete(e),!p.current&&!u.size&&m.current?.()})}),[n,u,r]);return a&&h&&(g={...g}),(0,H.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),H.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,G.jsx)(Gf,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,popNode:f,children:e}),(0,G.jsx)(zf.Provider,{value:g,children:e})};function qf(){return new Map}function Jf(e=!0){let t=(0,H.useContext)(zf);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,H.useId)();(0,H.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,H.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Yf(){return Xf((0,H.useContext)(zf))}function Xf(e){return e===null||e.isPresent}var Zf=e=>e.key||``;function Qf(e){let t=[];return H.Children.forEach(e,e=>{(0,H.isValidElement)(e)&&t.push(e)}),t}var $f=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=Jf(o),f=(0,H.useMemo)(()=>Qf(e),[e]),p=o&&!u?[]:f.map(Zf),m=(0,H.useRef)(!0),h=Lf(()=>new Map),g=(0,H.useRef)(new Set),[_,v]=(0,H.useState)(f),[y,b]=(0,H.useState)(f);Rf(()=>{o&&!u&&!y.length&&d?.()},[u,o,y.length,d]);let x=(0,H.useRef)();(0,H.useEffect)(()=>()=>{let e=x.current;x.current=void 0,e?.()},[y]),Rf(()=>{m.current=!1;for(let e=0;e<y.length;e++){let t=Zf(y[e]);p.includes(t)?(h.delete(t),g.current.delete(t)):h.get(t)!==!0&&h.set(t,!1)}},[y,p.length,p.join(`-`)]);let S=[];if(f!==_){let e=[...f],t=0;for(let n of y){let r=p.indexOf(Zf(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return S.every(e=>h.get(Zf(e)))?e=f:a===`wait`&&(e=S),b(Qf(e)),v(f),null}let{forceRender:C}=(0,H.useContext)(If);return(0,G.jsx)(G.Fragment,{children:y.map(e=>{let _=Zf(e),b=o&&!u?!1:f===y||p.includes(_);return(0,G.jsx)(Kf,{isPresent:b,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:b?void 0:()=>{if(g.current.has(_))return;if(h.has(_))g.current.add(_),h.set(_,!0);else return;let e=!0;h.forEach(t=>{t||(e=!1)}),e&&(C?.(),v([]),o&&d?.(),x.current=r)},anchorX:s,anchorY:c,children:e},_)})})},ep=(0,H.createContext)({strict:!1}),tp={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},np=!1;function rp(){if(np)return;let e={};for(let t in tp)e[t]={isEnabled:e=>tp[t].some(t=>!!e[t])};hu(e),np=!0}function ip(){return rp(),gu()}function ap(e){let t=ip();for(let n in e)t[n]={...t[n],...e[n]};hu(t)}function op({children:e,...t}){let n=(0,H.useContext)(Bf);t={...n,...t},t.transition=_o(t.transition,n.transition),t.isStatic=Lf(()=>t.isStatic);let r=(0,H.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,G.jsx)(Bf.Provider,{value:r,children:e})}var sp=(0,H.createContext)({});function cp(e,t){if(ou(e)){let{initial:t,animate:n}=e;return{initial:t===!1||ru(t)?t:void 0,animate:ru(n)?n:void 0}}return e.inherit===!1?{}:t}function lp(e){let{initial:t,animate:n}=cp(e,(0,H.useContext)(sp));return(0,H.useMemo)(()=>({initial:t,animate:n}),[up(t),up(n)])}function up(e){return Array.isArray(e)?e.join(` `):e}var dp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fp(e,t,n){for(let r in t)!zo(t[r])&&!bu(r,n)&&(e[r]=t[r])}function pp({transformTemplate:e},t){return(0,H.useMemo)(()=>{let n=dp();return Es(n,t,e),Object.assign({},n.vars,n.style)},[t])}function mp(e,t){let n=e.style||{},r={};return fp(r,n,e),Object.assign(r,pp(e,t)),r}function hp(e,t){let n={},r=mp(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var gp=()=>({...dp(),attrs:{}});function _p(e,t,n,r){let i=(0,H.useMemo)(()=>{let n=gp();return js(n,t,Rd(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};fp(t,e.style,e),i.style={...t,...i.style}}return i}var vp=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function yp(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||vp.has(e)}function bp(e,t){return e.startsWith(`on`)?!yp(e):t?.(e)??!yp(e)}function xp(e,t,n,r){let i={};for(let a in e)a===`values`&&typeof e.values==`object`||zo(e[a])||(bp(a,r)||n===!0&&yp(a)||!t&&!yp(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]);return i}var Sp=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Cp(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Sp.indexOf(e)>-1||/[A-Z]/u.test(e))}function wp(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Cp(e)?_p:hp)(t,r,i,e),l=xp(t,typeof e==`string`,a,s),u=e===H.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,H.useMemo)(()=>zo(d)?d.get():d,[d]);return(0,H.createElement)(e,{...u,children:f})}function Tp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Ep(n,r,i,e),renderState:t()}}function Ep(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=gc(a[e]);let{initial:o,animate:s}=e,c=ou(e),l=su(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!nu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=jo(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Dp=e=>(t,n)=>{let r=(0,H.useContext)(sp),i=(0,H.useContext)(zf),a=()=>Tp(e,t,r,i);return n?a():Lf(a)},Op=Dp({scrapeMotionValuesFromProps:xu,createRenderState:dp}),kp=Dp({scrapeMotionValuesFromProps:Bd,createRenderState:gp}),Ap=Symbol.for(`motionComponentSymbol`);function jp(e,t,n){let r=(0,H.useRef)(n);(0,H.useInsertionEffect)(()=>{r.current=n});let i=(0,H.useRef)(null);return(0,H.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Mp=(0,H.createContext)({});function Np(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Pp(e,t,n,r,i,a){let{visualElement:o}=(0,H.useContext)(sp),s=(0,H.useContext)(ep),c=(0,H.useContext)(zf),l=(0,H.useContext)(Bf),u=l.reducedMotion,d=l.skipAnimations,f=(0,H.useRef)(null),p=(0,H.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,H.useContext)(Mp);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Fp(f.current,n,i,h);let g=(0,H.useRef)(!1);(0,H.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Uo],v=(0,H.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Rf(()=>{p.current&&m&&(m.animationState?.animateChanges(),m.enteringChildren=void 0)},[]),Rf(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,H.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Fp(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Ip(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Np(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ip(e){if(e)return e.options.allowProjection===!1?Ip(e.parent):e.projection}function Lp(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ap(r);let a=n?n===`svg`:Cp(e),o=a?kp:Op;function s(n,s){let c,l={...(0,H.useContext)(Bf),...n,layoutId:Rp(n)},{isStatic:u,isValidProp:d}=l,f=lp(n),p=o(n,u);if(!u&&typeof window<`u`){zp(l,r);let t=Bp(l);c=t.MeasureLayout,f.visualElement=Pp(e,p,l,i,t.ProjectionNode,a)}return(0,G.jsxs)(sp.Provider,{value:f,children:[c&&f.visualElement?(0,G.jsx)(c,{visualElement:f.visualElement,...l}):null,wp(e,n,jp(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,H.forwardRef)(s);return c[Ap]=e,c}function Rp({layoutId:e}){let t=(0,H.useContext)(If).id;return t&&e!==void 0?t+`-`+e:e}function zp(e,t){(0,H.useContext)(ep).strict}function Bp(e){let{drag:t,layout:n}=ip();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Vp(e,t){if(typeof Proxy>`u`)return Lp;let n=new Map,r=(n,r)=>Lp(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Lp(a,void 0,e,t)),n.get(a))})}var Hp=(e,t)=>t.isSVG??Cp(e)?new Vd(t):new Cu(t,{allowProjection:e!==H.Fragment}),Up=class extends Id{constructor(e){super(e),e.animationState||=Wd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();nu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Wp=0,Gp={animation:{Feature:Up},exit:{Feature:class extends Id{constructor(){super(...arguments),this.id=Wp++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Mo(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id,this.node))}unmount(){}}}},Kp=class extends Id{constructor(e){super(e),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new _d(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},qp=({current:e})=>e?e.ownerDocument.defaultView:null,Jp=e=>(t,n)=>{e&&Pr.update(()=>e(t,n),!1,!0)},Yp=class extends Id{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(e){this.session=new Gu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qp(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Jp(e),onStart:Jp(t),onMove:Jp(n),onEnd:(e,t)=>{delete this.session,r&&Pr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Du(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Xp=!1,Zp=({layout:e,layoutDependency:t})=>({layout:e,layoutDependency:t,animationType:typeof e==`string`?e:`both`}),Qp=class extends H.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Xp&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,...Zp(this.props),onExitComplete:()=>this.safeToRemove()})),hl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layout:t,layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:o}=r;return o&&(o.isPresent=a,(e.layoutDependency!==n||e.layout!==t)&&o.setOptions({...o.options,...Zp(this.props)}),Xp=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||Pr.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),lc.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Xp=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function $p(e){let[t,n]=Jf(),r=(0,H.useContext)(If);return(0,G.jsx)(Qp,{...e,layoutGroup:r,switchLayoutGroup:(0,H.useContext)(Mp),isPresent:t,safeToRemove:n})}var em={pan:{Feature:Yp},drag:{Feature:Kp,ProjectionNode:eu,MeasureLayout:$p}};function tm(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Pr.postRender(()=>i(t,Tu(t)))}var nm=class extends Id{mount(){let{current:e}=this.node;e&&(this.unmount=Ed(e,(e,t)=>(tm(this.node,t,`Start`),e=>tm(this.node,e,`End`))))}unmount(){}},rm=class extends Id{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=zt(Zl(this.node.current,`focus`,()=>this.onFocus()),Zl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function im(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Pr.postRender(()=>i(t,Tu(t)))}var am=class extends Id{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Pd(e,(e,t)=>(im(this.node,t,`Start`),(e,{success:t})=>im(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},om=new WeakMap,sm=new WeakMap,cm=e=>{let t=om.get(e.target);t&&t(e)},lm=e=>{e.forEach(cm)};function um({root:e,...t}){let n=e||document;sm.has(n)||sm.set(n,{});let r=sm.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(lm,{root:e,...t})),r[i]}function dm(e,t,n){let r=um(t);return om.set(e,n),r.observe(e),()=>{om.delete(e),r.unobserve(e)}}var fm={some:0,all:1},pm=class extends Id{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:fm[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=dm(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(mm(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function mm({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var hm={inView:{Feature:pm},tap:{Feature:am},focus:{Feature:rm},hover:{Feature:nm}},gm={layout:{ProjectionNode:eu,MeasureLayout:$p}},_m=Vp({...Gp,...hm,...em,...gm},Hp);function vm(e){let t=Lf(()=>go(e)),{isStatic:n}=(0,H.useContext)(Bf);if(n){let[,n]=(0,H.useState)(e);(0,H.useEffect)(()=>t.on(`change`,n),[])}return t}function ym(e,t){let n=vm(t()),r=()=>n.set(t());return r(),Rf(()=>{let t=()=>Pr.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return r(),()=>{n.forEach(e=>e()),Fr(r)}}),n}function bm(e){mo.current=[],e();let t=ym(mo.current,e);return mo.current=void 0,t}function xm(e,t,n,r){if(typeof e==`function`)return bm(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Cm(e,t,n,r);let i=typeof t==`function`?t:Fd(t,n,r),a=Array.isArray(e)?Sm(e,i):Sm([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function Sm(e,t){let n=Lf(()=>[]);return ym(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Cm(e,t,n,r){let i=Lf(()=>Object.keys(n)),a=Lf(()=>({}));for(let o of i)a[o]=xm(e,t,n[o],r);return a}var wm=class{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}},Tm=()=>new wm;function Em(){return Lf(Tm)}var Dm=(0,H.createContext)(null);function Om(e,t,n,r,i,a=`ltr`){let o=e.findIndex(e=>e.value===t);if(o===-1)return e;if(i===`xy`){let{layout:t}=e[o],r={x:pr(t.x.min,t.x.max,.5)+n.x,y:pr(t.y.min,t.y.max,.5)+n.y},i=km(e),s=i.find(t=>t.items.includes(e[o])),c=i.reduce((e,t)=>Am(r.y,t)<Am(r.y,e)?t:e);if(c!==s)return jm(e,o,r.x,c,a);let l=Mm(r,t),u=-1,d=l;return e.forEach((e,t)=>{if(t===o)return;let n=Mm(r,e.layout);n<d&&(u=t,d=n)}),u===-1?e:jt(e,o,o+Math.sign(u-o))}if(!r[i])return e;let s=r[i]>0?1:-1,c=e[o+s];if(!c)return e;let l=e[o].layout[i],u=c.layout[i],d=pr(u.min,u.max,.5);return s===1&&l.max+n[i]>d||s===-1&&l.min+n[i]<d?jt(e,o,o+s):e}function km(e){let t=[];return e.forEach(e=>{let{min:n,max:r}=e.layout.y,i=t[t.length-1];!i||n>=i.max||r<=i.min?t.push({items:[e],min:n,max:r}):(i.items.push(e),i.min=Math.min(i.min,n),i.max=Math.max(i.max,r))}),t}function Am(e,t){return e<t.min?t.min-e:e>t.max?e-t.max:0}function jm(e,t,n,r,i){let a=e.filter((e,n)=>n!==t),o=r.items.find(e=>{let t=pr(e.layout.x.min,e.layout.x.max,.5);return i===`ltr`?n<t:n>t}),s=o?a.indexOf(o):a.indexOf(r.items[r.items.length-1])+1,c=[...a];return c.splice(s,0,e[t]),c.every((t,n)=>t===e[n])?e:c}function Mm(e,t){let n=Math.max(t.x.min-e.x,0,e.x-t.x.max),r=Math.max(t.y.min-e.y,0,e.y-t.y.max);return n*n+r*r}var Nm=(e,t)=>e.max<=t.min||t.max<=e.min;function Pm(e){let t=!1,n=!1;for(let r=0;r<e.length;r++)for(let i=r+1;i<e.length;i++)if(t||=Nm(e[r].x,e[i].x),n||=Nm(e[r].y,e[i].y),t&&n)return`xy`;return t?`x`:`y`}function Fm({children:e,as:t=`ul`,axis:n,onReorder:r,values:i,onPointerDownCapture:a,onClickCapture:o,...s},c){let l=Lf(()=>_m[t]),u=(0,H.useRef)(new Map),[d,f]=(0,H.useState)(`y`),p=(0,H.useRef)(!1),m=(0,H.useRef)(!1),h=(0,H.useRef)(null),g=n||d,_=new Set(i);u.current.forEach((e,t)=>{_.has(t)||u.current.delete(t)});let v={axis:g,groupRef:h,hasReordered:m,registerItem:(e,t)=>{if(u.current.set(e,t),!n){let e=Pm(i.flatMap(e=>{let t=u.current.get(e);return t?[t]:[]}));e!==d&&f(e)}},updateOrder:(e,t,n)=>{if(p.current)return;let a=i.flatMap(e=>{let t=u.current.get(e);return t?[{value:e,layout:t}]:[]}),o=h.current?.ownerDocument.defaultView?.getComputedStyle(h.current).direction===`rtl`?`rtl`:`ltr`,s=Om(a,e,t,n,g,o);if(a!==s){p.current=!0,m.current=!0;let e=[...i],t=a.map(({value:e})=>i.indexOf(e));s.forEach(({value:n},r)=>{e[t[r]]=n}),r(e)}}};(0,H.useEffect)(()=>{p.current=!1},[i]);let y=e=>{h.current=e,typeof c==`function`?c(e):c&&(c.current=e)},b={overflowAnchor:`none`,...s.style};return(0,G.jsx)(l,{...s,style:b,ref:y,onPointerDownCapture:e=>{m.current=!1,a?.(e)},onClickCapture:e=>{m.current&&e.detail&&(m.current=!1,e.stopPropagation(),e.preventDefault()),o?.(e)},ignoreStrict:!0,children:(0,G.jsx)(Dm.Provider,{value:v,children:e})})}var Im=(0,H.forwardRef)(Fm),Lm=50,Rm=25,zm=new Set([`auto`,`scroll`]),Bm=new WeakMap,Vm=new WeakMap,Hm=null;function Um(){if(Hm){let e=Gm(Hm,`y`);e&&(Vm.delete(e),Bm.delete(e));let t=Gm(Hm,`x`);t&&t!==e&&(Vm.delete(t),Bm.delete(t)),Hm=null}}function Wm(e,t){let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return zm.has(r)||i}function Gm(e,t){let n=e?.parentElement;for(;n;){if(Wm(n,t))return n;n=n.parentElement}return null}function Km(e,t,n){let r=t.getBoundingClientRect(),i=n===`x`?Math.max(0,r.left):Math.max(0,r.top),a=n===`x`?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom),o=e-i,s=a-e;if(o<Lm){let e=1-o/Lm;return{amount:-25*e*e,edge:`start`}}if(s<Lm){let e=1-s/Lm;return{amount:Rm*e*e,edge:`end`}}return{amount:0,edge:null}}function qm(e,t,n,r){if(!e)return;Hm=e;let i=Gm(e,n);if(!i)return;let{amount:a,edge:o}=Km(t-(n===`x`?window.scrollX:window.scrollY),i,n);if(o===null){Vm.delete(i),Bm.delete(i);return}let s=Vm.get(i),c=i===document.body||i===document.documentElement;if(s!==o){if(!(o===`start`&&r<0||o===`end`&&r>0))return;Vm.set(i,o);let e=n===`x`?i.scrollWidth-(c?window.innerWidth:i.clientWidth):i.scrollHeight-(c?window.innerHeight:i.clientHeight);Bm.set(i,e)}if(a>0){let e=Bm.get(i);if((n===`x`?c?window.scrollX:i.scrollLeft:c?window.scrollY:i.scrollTop)>=e)return}n===`x`?c?window.scrollBy({left:a}):i.scrollLeft+=a:c?window.scrollBy({top:a}):i.scrollTop+=a}function Jm(e,t=0){return zo(e)?e:vm(t)}function Ym({children:e,style:t={},value:n,as:r=`li`,onDrag:i,onDragEnd:a,layout:o=!0,...s},c){let l=Lf(()=>_m[r]),u=(0,H.useContext)(Dm),d={x:Jm(t.x),y:Jm(t.y)},f=xm([d.x,d.y],([e,t])=>e||t?1:`unset`),{axis:p,registerItem:m,updateOrder:h,groupRef:g,hasReordered:_}=u;return(0,G.jsx)(l,{drag:p===`xy`||p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:o,onDrag:(e,t)=>{let{velocity:r,point:a}=t,o={x:d.x.get(),y:d.y.get()};h(n,o,r);let s=p===`xy`?Math.abs(r.x)>Math.abs(r.y)?`x`:`y`:p;qm(g.current,a[s],s,r[s]),i&&i(e,t)},onDragEnd:(e,t)=>{_.current=!1,Um(),a&&a(e,t)},onLayoutMeasure:e=>{m(n,e)},ref:c,ignoreStrict:!0,children:e})}var Xm=(0,H.forwardRef)(Ym),Zm=_m,Qm={out:[.23,1,.32,1],soft:[.215,.61,.355,1],draw:[0,0,.58,1],inOut:[.77,0,.175,1],away:[.33,.17,.67,.5],in:[.4,0,1,1],drawer:[.34,1.2,.64,1],arrive:[.11,0,.5,0],color:[.25,.1,.25,1],leave:[0,0,.58,1],enter:[.25,.1,.35,1],resize:[.4,0,.1,1],fill:[.4,0,.2,1]},$m={press:{type:`spring`,stiffness:550,damping:30,restSpeed:10},pop:{type:`spring`,stiffness:400,damping:29},tooltip:{type:`spring`,stiffness:400,damping:31},dialog:{type:`spring`,stiffness:150,damping:25},toast:{type:`spring`,stiffness:280,damping:24},selection:{type:`spring`,stiffness:300,damping:30},highlight:{type:`spring`,stiffness:500,damping:40},reflow:{type:`spring`,stiffness:500,damping:40},handoff:{type:`spring`,stiffness:450,damping:43},morph:{type:`spring`,stiffness:660,damping:52},height:{type:`spring`,stiffness:300,damping:30,bounce:0,restDelta:.01},slide:{type:`spring`,stiffness:300,damping:35,restDelta:.01},thumb:{type:`spring`,stiffness:300,damping:25},slider:{type:`spring`,stiffness:400,damping:32},bounce:{type:`spring`,stiffness:200,damping:16},glyph:{type:`spring`,stiffness:500,damping:45},checkPop:{type:`spring`,stiffness:500,damping:24},entrance:{type:`spring`,stiffness:200,damping:20},progress:{type:`spring`,stiffness:300,damping:35,restDelta:.01,restSpeed:.1},number:{type:`spring`,stiffness:90,damping:50}},eh={menu:{duration:.22,ease:Qm.soft},overlay:{duration:.4,ease:Qm.soft},dialogFade:{duration:.4,ease:Qm.soft},fade:{duration:.2,ease:Qm.out},color:{duration:.2,ease:Qm.color},reveal:{duration:.3,ease:Qm.out},disclosure:{duration:.35,ease:Qm.soft},panelOut:{duration:.15,ease:Qm.leave},panelIn:{duration:.3,ease:Qm.enter},tooltipIn:{duration:.34,ease:Qm.enter},tooltipOut:{duration:.13,ease:Qm.leave},panelHeight:{duration:.45,ease:Qm.resize},check:{duration:.3,delay:.2,ease:Qm.draw},uncheck:{duration:.3,ease:Qm.draw},fill:{duration:.3,ease:Qm.fill},popOut:{duration:.15,ease:Qm.out},swap:{duration:.15,ease:Qm.out},spin:{duration:.3,ease:Qm.out},handoffOut:{duration:.22,ease:Qm.soft},handoffIn:{duration:.26,ease:Qm.arrive},dismiss:{duration:.2,ease:Qm.away},shake:{duration:.4,ease:Qm.inOut},drawerOut:{duration:.16,ease:Qm.in},drawer:{duration:.4,ease:Qm.drawer},sheet:{duration:.4,ease:Qm.soft},collapse:{duration:.28,ease:Qm.inOut},collapseLabel:{duration:.14,ease:Qm.out},instant:{duration:0}},th={press:.97,choice:.985,tooltip:.7,popover:.8,menu:.9,dialog:.8,icon:.5,toast:.96,fill:.7,action:.9},nh={icon:`blur(2px)`,tooltip:`blur(6px)`,disclosure:`blur(2px)`,surface:`blur(4px)`,panel:`blur(5px)`},rh={icon:90},ih={handoff:6,navigation:24,tabs:12,step:24,tooltip:40,shake:3},ah={stack:.03};function oh(e=1){let t=t=>e===1?t:Object.fromEntries(Object.entries(t).map(([t,n])=>[t,uh(n,e)]));return{tempo:e,ease:Qm,scale:th,blur:nh,rotate:rh,shift:ih,stagger:e===1?ah:Object.fromEntries(Object.entries(ah).map(([t,n])=>[t,n*e])),spring:t($m),transition:t(eh)}}var sh=oh(),ch=H.createContext(sh),lh=[`duration`,`visualDuration`,`delay`,`repeatDelay`,`delayChildren`];function uh(e,t){if(!e||t===1||typeof e!=`object`)return e;let n={};for(let[r,i]of Object.entries(e))n[r]=typeof i==`number`&&lh.includes(r)?i*t:typeof i==`number`&&r===`stiffness`?i/(t*t):typeof i==`number`&&r===`damping`?i/t:i&&typeof i==`object`&&!Array.isArray(i)?uh(i,t):i;return n}function dh(e){let{tempo:t}=H.use(ch);return uh(e,t)}function fh(){return H.use(ch)}H.createContext(`draw`);var ph={linear:`linear`,easeIn:`cubic-bezier(0.42, 0, 1, 1)`,easeOut:`cubic-bezier(0, 0, 0.58, 1)`,easeInOut:`cubic-bezier(0.42, 0, 0.58, 1)`,circIn:`cubic-bezier(0, 0.65, 0.55, 1)`,circOut:`cubic-bezier(0.55, 0, 1, 0.45)`,backIn:`cubic-bezier(0.31, 0.01, 0.66, -0.59)`,backOut:`cubic-bezier(0.33, 1.53, 0.69, 0.99)`},mh=[`stiffness`,`damping`,`mass`,`bounce`,`visualDuration`];function hh(e){return Array.isArray(e)&&e.length===4&&e.every(Number.isFinite)?`cubic-bezier(${e.join(`, `)})`:typeof e==`string`?ph[e]??`ease`:ph.easeInOut}function gh(e){let t=e;if(t.type===`spring`||mh.some(e=>e in t)){let{duration:e,ease:n}=Vr(typeof t.duration==`number`?{...t,duration:t.duration*1e3}:t,100,$r),r=Math.round(e*1e3);return{duration:r,easing:Rr(n,r)}}let n=typeof t.duration==`number`?t.duration:.3;return{duration:Math.round(n*1e3),easing:hh(t.ease)}}var _h=H.createContext(`user`);function vh(){let e=H.use(_h),{reducedMotion:t}=H.use(Bf);return t===`always`?`always`:e}function yh({children:e,remount:t}){let n=vh();return(0,G.jsx)(op,{reducedMotion:n,children:t?(0,G.jsx)(bh,{children:e}):e})}function bh({children:e}){let t=Ch();return(0,G.jsx)(H.Fragment,{children:e},t?`reduce`:`full`)}var xh=`(prefers-reduced-motion: reduce)`;function Sh(e){let t=window.matchMedia(xh);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function Ch(){let e=vh(),t=H.useSyncExternalStore(Sh,()=>window.matchMedia(xh).matches,()=>!1);return e===`never`?!1:e===`always`||t}var wh=sh.spring.pop;sh.transition.menu,sh.spring.morph;var Th={tooltip:sh.scale.tooltip,popover:sh.scale.popover,menu:sh.scale.menu};function Eh(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Dh(e){if(!(e instanceof HTMLElement))return[1,1];let t=e.getBoundingClientRect(),n=(e,t)=>t&&Math.abs(e-t)>=1?e/t:1;return[n(t.width,e.offsetWidth),n(t.height,e.offsetHeight)]}var Oh=sh.transition.fade,kh=[`top`,`bottom`,`left`,`right`],Ah={top:`--scroll-fade-top`,bottom:`--scroll-fade-bottom`,left:`--scroll-fade-left`,right:`--scroll-fade-right`,size:`--scroll-fade-size`},jh=e=>`rgb(0 0 0 / calc(1 - var(${Ah[e]}, 0)))`,Mh=e=>`calc(var(${Ah.size}) * min(1, var(${Ah[e]}, 0) * 1000))`,Nh=`linear-gradient(to bottom, ${jh(`top`)} 0, #000 ${Mh(`top`)}, #000 calc(100% - ${Mh(`bottom`)}), ${jh(`bottom`)} 100%)`,Ph=`linear-gradient(to right, ${jh(`left`)} 0, #000 ${Mh(`left`)}, #000 calc(100% - ${Mh(`right`)}), ${jh(`right`)} 100%)`,Fh={vertical:Nh,horizontal:Ph,both:`${Nh}, ${Ph}`},Ih=e=>Math.min(1,Math.max(0,e)),Lh=e=>e*e*(3-2*e),Rh=1.75,zh=150,Bh=`ul, ol, [role="list"], [role="group"]`;function Vh(e,t){for(let n of e.children)n instanceof HTMLElement&&(n.matches(Bh)||Array.from(n.children).some(e=>e.matches(Bh))?Vh(n,t):t.push(n));return t}function Hh(e){let t=e;for(;t.children.length===1;)t=t.children[0];return Vh(t,[])}function Uh(e,t){let n=e.style;if(t)n.setProperty(`mask-image`,t),n.setProperty(`-webkit-mask-image`,t),n.setProperty(`mask-composite`,`intersect`),n.setProperty(`-webkit-mask-composite`,`source-in`);else for(let e of[`mask-image`,`-webkit-mask-image`,`mask-composite`,`-webkit-mask-composite`])n.removeProperty(e)}function Wh(e,{orientation:t=`vertical`,size:n=40,shrink:r=.03,blur:i=4,transition:a,enabled:o=!0}={}){let s=Ch(),c=dh(a??Oh),l=H.useRef(c);H.useEffect(()=>{l.current=c});let u=vm(0),d=vm(0),f=vm(0),p=vm(0),m=H.useMemo(()=>({top:u,bottom:d,left:f,right:p}),[u,d,f,p]),h=H.useRef(s);return H.useEffect(()=>{h.current=s},[s]),H.useEffect(()=>{let a=e.current;if(!a||!o)return;let s=t!==`horizontal`,c=t!==`vertical`,u=Fh[t],d=!1;a.style.setProperty(Ah.size,`${n}px`);let f=new Set,p=new Set,g=()=>{for(let e of f)e.style.removeProperty(`scale`);for(let e of p)e.style.removeProperty(`filter`);f.clear(),p.clear()},_=[],v=0,y=0,b=()=>{if(!r&&!i){_=[];return}let e=a.getBoundingClientRect(),[t,n]=Dh(a);v=a.clientWidth,y=a.clientHeight,_=Hh(a).map(r=>{let i=r.getBoundingClientRect();return{item:r,x:(i.left+i.width/2-e.left)/t+a.scrollLeft,y:(i.top+i.height/2-e.top)/n+a.scrollTop,ownFilter:!p.has(r)&&getComputedStyle(r).filter!==`none`}})},x=n*Rh,S=e=>x>0?Lh(Ih(1-e/x)):0,C=!0,w=()=>{C&&(C=!1,b());let e=h.current?0:r;if(!_.length||!e&&!i)return g();let t=a.scrollLeft,n=a.scrollTop;for(let{item:r,x:a,y:o,ownFilter:l}of _){let u=0;if(s){let e=o-n;u=Math.max(S(e)*m.top.get(),S(y-e)*m.bottom.get())}if(c){let e=a-t;u=Math.max(u,S(e)*m.left.get(),S(v-e)*m.right.get())}u>.001&&e?(r.style.scale=String(1-e*u),f.add(r)):f.delete(r)&&r.style.removeProperty(`scale`),u>.001&&i&&!l?(r.style.filter=`blur(${(i*u).toFixed(2)}px)`,p.add(r)):p.delete(r)&&r.style.removeProperty(`filter`)}},T=!1,E=()=>{T=!1,w()},D=()=>{T||(T=!0,Pr.render(E))},O=()=>{let e=!1;for(let t of kh){let n=Ih(m[t].get());n>.001&&(e=!0),a.style.setProperty(Ah[t],n.toFixed(4))}e!==d&&(d=e,Uh(a,e?u:null)),D()},k=kh.map(e=>m[e].on(`change`,O)),A=n/2,j=e=>A>0?Ih(e/A):+(e>.5),M=e=>{let t={top:0,bottom:0,left:0,right:0};if(s){let e=a.scrollHeight-a.clientHeight;e>1&&(t.top=j(a.scrollTop),t.bottom=j(e-a.scrollTop))}if(c){let e=a.scrollWidth-a.clientWidth;if(e>1){let n=Math.abs(a.scrollLeft),r=e-n,i=getComputedStyle(a).direction===`rtl`;t.left=j(i?r:n),t.right=j(i?n:r)}}for(let n of kh)e||h.current?m[n].jump(t[n]):Math.abs(m[n].get()-t[n])>.001&&gf(m[n],t[n],l.current);O()};M(!0);let N=0,P=()=>{let e=performance.now();e-N>zh&&(C=!0),N=e,M(!0)};a.addEventListener(`scroll`,P,{passive:!0});let F=new ResizeObserver(()=>{C=!0,M(!1)}),I=()=>{F.disconnect(),F.observe(a);for(let e of a.children)F.observe(e)};I();let L=new MutationObserver(e=>{e.some(e=>e.target===a)&&I(),C=!0,M(!1)});return L.observe(a,{childList:!0,subtree:!0}),()=>{a.removeEventListener(`scroll`,P),Fr(E),F.disconnect(),L.disconnect(),k.forEach(e=>e()),Uh(a,null),g();for(let e of Object.values(Ah))a.style.removeProperty(e);for(let e of kh)m[e].jump(0)}},[e,o,t,n,r,i,m]),m}var Gh={vertical:{overflowY:`auto`},horizontal:{overflowX:`auto`},both:{overflow:`auto`}};function Kh({ref:e,asChild:t=!1,orientation:n=`vertical`,size:r,shrink:i,blur:a,transition:o,enabled:s,style:c,children:l,...u}){let d=H.useRef(null),f=H.isValidElement(l)?l.props.ref:void 0,p=H.useMemo(()=>Eh(d,f),[f]);H.useImperativeHandle(e,()=>d.current),Wh(d,{orientation:n,size:r,shrink:i,blur:a,transition:o,enabled:s});let m={"data-slot":`scroll-fade`,"data-orientation":n,...u};if(t&&H.isValidElement(l)){let e=l;return H.cloneElement(e,{...e.props,...m,className:[e.props.className,u.className].filter(Boolean).join(` `)||void 0,style:{...Gh[n],...e.props.style,...c},ref:p})}return(0,G.jsx)(`div`,{ref:d,style:{...Gh[n],...c},...m,children:l})}function qh({children:e,enabled:t=!0,size:n=20}){let r=jf();return(0,G.jsx)(Kh,{asChild:!0,enabled:t,size:n,shrink:0,blur:0,transition:{duration:(r?Of.micro:Of.base)/1e3,ease:Of.out},children:e})}var Jh=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Yh(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Jh(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Xh=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},Zh=e=>{let t=Xh(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qh=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),$h={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function eg(e){return e!=null}function tg(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$h.width,a=e.size??e.height??$h.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Qh(...c):Qh(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$h[`stroke-width`])*Number(e.size??e.width??$h.width)/Number(t.size??t.width??$h.width):t.strokeWidth??$h[`stroke-width`];return[`svg`,{...Object.entries($h).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&eg(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&eg(t.width)&&{[r(`width`)]:t.width},...`height`in t&&eg(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ng(e,t={}){return tg(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var rg=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},eee=(0,H.createContext)({}),tee=()=>(0,H.useContext)(eee),nee=(0,H.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=tee()??{},y=!!c||rg(d),[b,x,S=[]]=ng(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Qh(v,s),hasA11yProp:y,attributes:d});return(0,H.createElement)(b,{ref:f,...x},[...S.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function ig(e,t=[],n=[]){let r=typeof e==`string`?Yh(e,t,n):e,i=(0,H.forwardRef)(({className:e,...t},n)=>(0,H.createElement)(nee,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Zh(r.name)),i}var ag={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};ag.node;var og=ig(ag),sg={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};sg.node;var ree=ig(sg),cg={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};cg.node;var lg=ig(cg),ug={name:`audio-lines`,size:24,node:[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]};ug.node;var dg=ig(ug),fg={name:`bold`,size:24,node:[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]};fg.node;var iee=ig(fg),pg={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};pg.node;var aee=ig(pg),mg={name:`bookmark`,size:24,node:[[`path`,{d:`M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z`,key:`oz39mx`}]]};mg.node;var oee=ig(mg),hg={name:`briefcase-business`,size:24,node:[[`path`,{d:`M12 12h.01`,key:`1mp3jc`}],[`path`,{d:`M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`,key:`1ksdt3`}],[`path`,{d:`M22 13a18.15 18.15 0 0 1-20 0`,key:`12hx5q`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]};hg.node;var see=ig(hg),gg={name:`calendar-days`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]};gg.node;var _g=ig(gg),vg={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};vg.node;var yg=ig(vg),bg={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};bg.node;var xg=ig(bg),Sg={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Sg.node;var Cg=ig(Sg),wg={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};wg.node;var Tg=ig(wg),Eg={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Eg.node;var Dg=ig(Eg),Og={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};Og.node;var kg=ig(Og),Ag={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Ag.node;var jg=ig(Ag),Mg={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Mg.node;var Ng=ig(Mg),Pg={name:`coffee`,size:24,node:[[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M14 2v2`,key:`6buw04`}],[`path`,{d:`M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1`,key:`pwadti`}],[`path`,{d:`M6 2v2`,key:`colzsn`}]]};Pg.node;var Fg=ig(Pg),Ig={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Ig.node;var Lg=ig(Ig),Rg={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};Rg.node;var zg=ig(Rg),Bg={name:`file-down`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}],[`path`,{d:`m9 15 3 3 3-3`,key:`1npd3o`}]]};Bg.node;var Vg=ig(Bg),Hg={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Hg.node;var Ug=ig(Hg),Wg={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};Wg.node;var Gg=ig(Wg),Kg={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};Kg.node;var qg=ig(Kg),Jg={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};Jg.node;var Yg=ig(Jg),Xg={name:`graduation-cap`,size:24,node:[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]};Xg.node;var Zg=ig(Xg),Qg={name:`handshake`,size:24,node:[[`path`,{d:`m11 17 2 2a1 1 0 1 0 3-3`,key:`efffak`}],[`path`,{d:`m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4`,key:`9pr0kb`}],[`path`,{d:`m21 3 1 11h-2`,key:`1tisrp`}],[`path`,{d:`M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3`,key:`1uvwmv`}],[`path`,{d:`M3 4h8`,key:`1ep09j`}]]};Qg.node;var $g=ig(Qg),e_={name:`heading`,size:24,node:[[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M6 20V4`,key:`1w1bmo`}],[`path`,{d:`M18 20V4`,key:`o2hl4u`}]]};e_.node;var t_=ig(e_),n_={name:`heart`,size:24,node:[[`path`,{d:`M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5`,key:`mvr1a0`}]]};n_.node;var r_=ig(n_),i_={name:`house`,size:24,node:[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]],aliases:[`home`]};i_.node;var a_=ig(i_),o_={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};o_.node;var s_=ig(o_),c_={name:`italic`,size:24,node:[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]};c_.node;var l_=ig(c_),u_={name:`languages`,size:24,node:[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]};u_.node;var d_=ig(u_),f_={name:`lightbulb`,size:24,node:[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]};f_.node;var p_=ig(f_),m_={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};m_.node;var h_=ig(m_),g_={name:`list-ordered`,size:24,node:[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]};g_.node;var __=ig(g_),v_={name:`list`,size:24,node:[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]};v_.node;var y_=ig(v_),b_={name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]};b_.node;var x_=ig(b_),S_={name:`maximize-2`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]};S_.node;var C_=ig(S_),w_={name:`megaphone`,size:24,node:[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]};w_.node;var T_=ig(w_),E_={name:`message-circle`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}]]};E_.node;var D_=ig(E_),O_={name:`mic`,size:24,node:[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]};O_.node;var k_=ig(O_),A_={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};A_.node;var j_=ig(A_),M_={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};M_.node;var N_=ig(M_),P_={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};P_.node;var F_=ig(P_),I_={name:`plane`,size:24,node:[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]};I_.node;var L_=ig(I_),R_={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};R_.node;var z_=ig(R_),B_={name:`rocket`,size:24,node:[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]};B_.node;var cee=ig(B_),V_={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};V_.node;var H_=ig(V_),U_={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};U_.node;var W_=ig(U_),G_={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};G_.node;var lee=ig(G_),K_={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};K_.node;var uee=ig(K_),q_={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};q_.node;var dee=ig(q_),J_={name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]};J_.node;var Y_=ig(J_),X_={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};X_.node;var Z_=ig(X_),Q_={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Q_.node;var $_=ig(Q_),ev={name:`users-round`,size:24,node:[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]],aliases:[`users-2`]};ev.node;var fee=ig(ev),tv={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};tv.node;var nv=ig(tv),rv={name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]};rv.node;var pee=ig(rv),iv={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};iv.node;var av=ig(iv),ov=({width:e=`60%`})=>(0,G.jsx)(`span`,{className:`loading-bar`,style:{width:e}});function sv({layout:e,testId:t=`${e}-loading`}){return(0,G.jsx)(`div`,{"data-testid":t,className:`page-loading loading-${e}`,role:`status`,"aria-label":U(`Loading…`),"aria-busy":`true`,children:(0,G.jsx)(`div`,{"aria-hidden":`true`,inert:!0,children:e===`note`?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,G.jsx)(`div`,{className:`note-title-type`,children:(0,G.jsx)(ov,{width:`52%`})}),(0,G.jsx)(`div`,{className:`note-meta-row`,children:(0,G.jsx)(`div`,{className:`note-metadata`,children:[100,130,110].map(e=>(0,G.jsx)(`span`,{className:`loading-note-chip`,style:{width:e}},e))})}),(0,G.jsxs)(`div`,{className:`note-primary-tabs`,children:[(0,G.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,G.jsx)(dg,{size:14}),U(`Transcript`)]}),(0,G.jsxs)(`button`,{role:`tab`,disabled:!0,children:[(0,G.jsx)(Y_,{size:14}),U(`My notes`)]})]})]}),(0,G.jsx)(`div`,{className:`note-page-width note-notes-body`,children:(0,G.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,G.jsx)(ov,{width:e},e))})})]}):e===`history`?(0,G.jsxs)(`section`,{children:[(0,G.jsx)(`h2`,{children:(0,G.jsx)(ov,{width:`48px`})}),(0,G.jsx)(`ul`,{children:[0,1,2].map(e=>(0,G.jsx)(`li`,{className:`ask-history-row`,children:(0,G.jsxs)(`div`,{className:`ask-history-link`,children:[(0,G.jsx)(`strong`,{children:(0,G.jsx)(ov,{width:`${130+e*14}px`})}),(0,G.jsx)(`time`,{children:(0,G.jsx)(ov,{width:`56px`})})]})},e))})]}):e===`folders`?(0,G.jsx)(`div`,{className:`workspace-folder-list`,children:[0,1,2].map(e=>(0,G.jsxs)(`div`,{className:`workspace-nav`,children:[(0,G.jsx)(`span`,{className:`loading-folder-icon`}),(0,G.jsx)(ov,{width:`${70+e*12}px`})]},e))}):e===`calendars`?(0,G.jsx)(G.Fragment,{children:[0,1].map(e=>(0,G.jsxs)(`div`,{className:`settings-row settings-calendar-choice`,children:[(0,G.jsx)(`span`,{className:`settings-calendar-dot loading-bar`}),(0,G.jsxs)(`span`,{className:`settings-row-copy`,children:[(0,G.jsx)(`span`,{className:`settings-label`,children:(0,G.jsx)(ov,{width:`120px`})}),(0,G.jsx)(`span`,{className:`settings-description block`,children:(0,G.jsx)(ov,{width:`90px`})})]}),(0,G.jsx)(`span`,{className:`loading-checkbox`})]},e))}):e===`transcript`?(0,G.jsx)(`div`,{className:`loading-transcript-turns`,children:[0,1,2].map(e=>(0,G.jsxs)(`div`,{className:`transcript-turn flex flex-col gap-[5px] ${e===1?`items-end`:`items-start`}`,children:[(0,G.jsx)(`p`,{className:e===1?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:(0,G.jsx)(ov,{width:`42px`})}),(0,G.jsx)(`p`,{className:`bubble ${e===1?`bubble-me`:`bubble-them`}`,children:(0,G.jsx)(ov,{width:`${160+e*25}px`})})]},e))}):(0,G.jsxs)(`div`,{className:`ask-turn`,children:[(0,G.jsx)(`p`,{className:`ask-question`,children:(0,G.jsx)(ov,{width:`160px`})}),(0,G.jsx)(`div`,{className:`loading-prose`,children:[`48%`,`82%`,`72%`].map(e=>(0,G.jsx)(ov,{width:e},e))})]})})})}function cv(e){let t=jf(),[n,r]=(0,H.useState)(e?`waiting`:`ready`),i=(0,H.useRef)(void 0);return(0,H.useLayoutEffect)(()=>{let a;return e?n!==`skeleton`&&(i.current=void 0,r(`waiting`),a=setTimeout(()=>{i.current=performance.now(),r(`skeleton`)},100)):n===`waiting`?r(`ready`):n===`skeleton`?t?r(`revealing`):a=setTimeout(()=>r(`revealing`),Math.max(0,200-(performance.now()-i.current))):n===`revealing`&&(a=setTimeout(()=>r(`ready`),Of.micro)),()=>clearTimeout(a)},[e,n,t]),n}var lv=()=>(0,H.useSyncExternalStore)(St,xt);function mee(e,t){return U(e,Object.fromEntries(Object.keys(t).map(e=>[e,`\u0000${e}\u0000`]))).split(`\0`).map((e,n)=>n%2?(0,G.jsx)(H.Fragment,{children:t[e]},n):e)}function uv(e){let t=[];for(let n of e){if(n.hidden&&n.echoConfident)continue;let e=!!n.hidden,r=t.at(-1);r?.echo===e?r.lines.push(n):t.push({echo:e,lines:[n]})}return t}var dv=3e4;function fv(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=String(t%60).padStart(2,`0`);return n?`${n}:${String(r).padStart(2,`0`)}:${i}`:`${r}:${i}`}function pv(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&r.track===n.track&&r.speaker===n.speaker&&n.startMs-(r.endMs??r.startMs)<dv?e.push(n):t.push([n])}return t}function mv(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].startMs<=t?(i=a,n=a+1):r=a-1}return i}function hv(e){let t=[];for(let n of e){let e=t[t.length-1],r=e?.[e.length-1];r&&n.startMs-r.endMs<1500?e.push(n):t.push([n])}return t}function hee(e,t){let n=t.filter(e=>e.words.length).map(t=>{let n=e.filter(e=>e.track===t.track&&e.startMs<=t.startMs).at(-1);return{track:t.track,startMs:t.startMs,endMs:t.endMs,speaker:n?n.speaker:null,speakerColor:n?.speakerColor,live:t}});return n.length?[...e,...n].sort((e,t)=>e.startMs-t.startMs):e}function gee(e,t,n,r){let i=0,a=0;for(let t=0;t<e.length;t++){if(e[t]!==n[0])continue;let r=0;for(;t+r<e.length&&r<n.length&&e[t+r]===n[r];)r++;r>=a&&(a=r,i=t)}let o=r;return{keys:n.map((e,n)=>i+n<t.length?t[i+n]:o++),next:o}}function _ee(e,t,n){let r=e=>!(`live`in e),i=e.reduce((e,t)=>e+t.lines.filter(r).length,0),a=i<=t?0:Math.floor((i-t)/n)*n;if(!a)return{runs:e,earlier:0};let o=a,s=[];for(let t of e){if(!o){s.push(t);continue}let e=0;for(;e<t.lines.length&&o>0;)r(t.lines[e])&&o--,e++;e<t.lines.length&&s.push({...t,lines:t.lines.slice(e)})}return{runs:s,earlier:a}}function vee(e,t){let n=t.trim();if(!n)return[];let r=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),`giu`),i=[];for(let t of e)for(let e of t.text.matchAll(r))i.push({key:`${t.track}:${t.startMs}`,start:e.index,end:e.index+e[0].length});return i}function yee(e,t){return t?Math.max(0,e.findIndex(e=>e.key===t.key&&e.start===t.start)):0}function gv(e,t,n){return n?((e+t)%n+n)%n:0}function _v(e,t){return e.top>=t.top&&e.bottom<=t.bottom?null:t.scrollTop+(e.top+e.bottom-t.top-t.bottom)/2}var vv={"⌃⌘S":`Ctrl+Shift+S`,"⌃⌘F":`F11`,"⌥⇧⌘V":`Ctrl+Shift+V`};function yv(e,t){if(t===`darwin`)return e;if(vv[e])return vv[e];let n=e.replace(/[⌃⇧⌥⌘]/g,``);return n===e?e:[...[e.includes(`⌘`)||e.includes(`⌃`)?`Ctrl`:``,e.includes(`⇧`)?`Shift`:``,e.includes(`⌥`)?`Alt`:``].filter(Boolean),n].join(`+`)}var bv=(e,t)=>t===`darwin`?e.metaKey:e.ctrlKey&&!e.metaKey;function xv(e,t){return t===`darwin`?e.mac:`other`in e?e.other:t===`win32`?e.windows:e.linux}var Sv=()=>globalThis.window?.yogurt?.os??`darwin`,Cv=e=>yv(e,Sv()),wv=e=>bv(e,Sv()),Tv=()=>Sv()===`darwin`,Ev=e=>xv(e,Sv());function bee(e,t,n){let r=new Map;for(let t of e.querySelectorAll(`[data-key]`)){let e=t.querySelector(`[data-testid="transcript-text"]`);if(!e)continue;let n=[],i=[],a=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),o,s=0;for(;o=a.nextNode();){let e=o;e.length&&(n.push({node:e,start:s,end:s+e.length}),i.push(e.data),s+=e.length)}r.set(t.dataset.key,{root:e,text:i.join(``),spans:n})}let i=t.map(e=>({...e,text:r.get(`${e.track}:${e.startMs}`)?.text??``})),a=[],o=[];for(let e of vee(i,n)){let t=r.get(e.key);try{let n=Dv(t.spans,e.start),r=Dv(t.spans,e.end);if(!t.root.isConnected||!n||!r||!t.root.contains(n.node)||!t.root.contains(r.node))continue;let i=t.root.ownerDocument.createRange();if(i.setStart(n.node,e.start-n.start),i.setEnd(r.node,e.end-r.start),i.toString()!==t.text.slice(e.start,e.end))continue;a.push(e),o.push(i)}catch{}}return{query:n,matches:a,ranges:o}}function Dv(e,t){let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;e[i].end<t?n=i+1:r=i}return e[n]}function xee({lines:e,list:t,active:n,playbackInset:r,beforeScroll:i,onFinding:a,toolbar:o,onClose:s}){lv();let c=(0,H.useId)(),l=(0,H.useId)(),[u,d]=(0,H.useState)(!1),[f,p]=(0,H.useState)(``),[m,h]=(0,H.useState)(0),[g,_]=(0,H.useState)(null),v=(0,H.useRef)(null),y=(0,H.useRef)(null),[b,x]=(0,H.useState)({query:``,matches:[],ranges:[]}),{matches:S,ranges:C}=b,w=yee(S,g),T=S[w],E=(0,H.useRef)(null),D=(0,H.useRef)(!1),O=!!f.trim(),k=()=>{d(!0),a(!0),u&&(v.current?.focus({preventScroll:!0}),v.current?.select())},A=()=>{p(``),_(null),d(!1),a(!1),y.current?.focus({preventScroll:!0})},j=e=>{S.length&&(D.current=!0,_(S[gv(w,e,S.length)]),h(e=>e+1))};(0,H.useLayoutEffect)(()=>{u&&(v.current?.focus({preventScroll:!0}),v.current?.select())},[u]),(0,H.useLayoutEffect)(()=>{let e=E.current,t=e?.querySelector(`.transcript-find-controls`);if(!n||!o||!e||!t)return;let r=()=>{let n=Math.max(240,t.getBoundingClientRect().width+76);e.dataset.findBelow=String(o.getBoundingClientRect().width<n)};r();let i=new ResizeObserver(r);return i.observe(o),i.observe(t),()=>i.disconnect()},[n,o]),(0,H.useLayoutEffect)(()=>{b.query===f&&T&&(T.key!==g?.key||T.start!==g.start)&&_(T)},[T,g,b.query,f]),(0,H.useLayoutEffect)(()=>{let r=t.current;if(!n||!u||!f.trim()||!r){x({query:f,matches:[],ranges:[]});return}let i=()=>x(bee(r,e,f));i();let a=new MutationObserver(i);return a.observe(r,{childList:!0,characterData:!0,subtree:!0}),()=>a.disconnect()},[e,f,u,n,t]),(0,H.useLayoutEffect)(()=>{if(!n)return;let e=new Highlight;for(let t of C)e.add(t);return CSS.highlights.set(`transcript-find`,e),()=>{CSS.highlights.get(`transcript-find`)===e&&CSS.highlights.delete(`transcript-find`)}},[C,n]),(0,H.useLayoutEffect)(()=>{if(!n||b.query!==f)return;let e=C[w],a=new Highlight(...e?[e]:[]);a.priority=1,CSS.highlights.set(`transcript-find-current`,a);let o=t.current;if(D.current&&e&&o){let t=e.getBoundingClientRect(),n=o.getBoundingClientRect(),a=v.current?.getBoundingClientRect(),s=_v(t,{top:a&&a.bottom>n.top&&t.right>a.left&&t.left<a.right?a.bottom+8:n.top,bottom:n.bottom-r,scrollTop:o.scrollTop});t.height&&s!==null&&(i?.(),o.scrollTo({top:s,behavior:Af()}))}return D.current=!1,()=>{CSS.highlights.get(`transcript-find-current`)===a&&CSS.highlights.delete(`transcript-find-current`)}},[C,w,g,m,n,r,t,b.query,f]),(0,H.useEffect)(()=>{if(!n)return;let e=e=>{e.defaultPrevented||e.isComposing||e.altKey||document.querySelector(`dialog:modal, [aria-modal="true"]`)||(wv(e)&&(e.code===`KeyF`||e.code===`KeyG`)?(e.preventDefault(),e.stopPropagation(),e.code===`KeyF`?k():O&&j(e.shiftKey?-1:1)):e.key===`Escape`&&u&&(E.current?.contains(e.target)||t.current?.contains(e.target))&&(e.preventDefault(),e.stopPropagation(),A()))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)});let M=(0,G.jsxs)(`div`,{ref:E,className:`transcript-toolbar`,children:[(0,G.jsxs)(`div`,{className:`transcript-find`,"data-open":u,onBlur:e=>{u&&!e.currentTarget.contains(e.relatedTarget)&&!O&&(d(!1),a(!1))},children:[(0,G.jsx)(`button`,{ref:y,type:`button`,"data-testid":`transcript-find-open`,className:`ghost-btn transcript-find-trigger`,"aria-label":U(`Search the transcript`),title:`${U(`Search the transcript`)} (${Cv(`⌘F`)})`,"aria-expanded":u,"aria-hidden":u,"aria-controls":l,tabIndex:u?-1:0,onClick:k,children:(0,G.jsx)(W_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),(0,G.jsx)(`div`,{id:l,className:`transcript-find-clip`,inert:!u,"aria-hidden":!u,children:(0,G.jsxs)(`div`,{className:`transcript-search-field`,children:[(0,G.jsx)(W_,{size:14,strokeWidth:1.75,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsx)(`input`,{ref:v,"data-testid":`transcript-search`,value:f,onChange:e=>{D.current=!0,_(null),p(e.target.value)},onKeyDown:e=>{e.nativeEvent.isComposing||e.key===`Enter`&&(e.preventDefault(),j(e.shiftKey?-1:1))},placeholder:U(`Search`),"aria-label":U(`Search the transcript`),"aria-describedby":c,spellCheck:!1}),(0,G.jsxs)(`span`,{className:`transcript-find-controls`,children:[(0,G.jsxs)(`span`,{className:`transcript-find-results`,"data-visible":O,inert:!O,"aria-hidden":!O,children:[(0,G.jsxs)(`span`,{className:`transcript-find-count`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`transcript-find-reserve`,children:U(`{current} of {count}`,{current:99999,count:99999})}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`transcript-find-reserve`,children:U(`No matches`)}),(0,G.jsx)(`span`,{id:c,"data-testid":`transcript-find-count`,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:O?S.length?U(`{current} of {count}`,{current:w+1,count:S.length}):U(`No matches`):``})]}),(0,G.jsxs)(`span`,{className:`transcript-find-arrows`,children:[(0,G.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-previous`,className:`ghost-btn`,disabled:!S.length,"aria-label":U(`Previous match`),title:`${U(`Previous match`)} (⇧Enter · ${Cv(`⇧⌘G`)})`,"aria-keyshortcuts":`Shift+Enter ${Tv()?`Meta`:`Control`}+Shift+G`,onClick:()=>j(-1),children:(0,G.jsx)(Dg,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-next`,className:`ghost-btn`,disabled:!S.length,"aria-label":U(`Next match`),title:`${U(`Next match`)} (Enter · ${Cv(`⌘G`)})`,"aria-keyshortcuts":`Enter ${Tv()?`Meta`:`Control`}+G`,onClick:()=>j(1),children:(0,G.jsx)(xg,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})]}),(0,G.jsx)(`button`,{type:`button`,"data-testid":`transcript-find-close`,className:`ghost-btn transcript-find-close`,"aria-label":U(`Close`),title:`${U(`Close`)} (Esc)`,"aria-keyshortcuts":`Escape`,onClick:A,children:(0,G.jsx)(av,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})]})})]}),s&&(0,G.jsx)(`div`,{className:`transcript-actions`,children:(0,G.jsx)(`button`,{"data-testid":`transcript-close`,onClick:s,"aria-label":U(`Hide transcript`),title:U(`Hide transcript`),className:`ghost-btn !p-1.5`,children:(0,G.jsx)(xg,{size:15,"aria-hidden":`true`})})})]});return n?o?(0,Oe.createPortal)(M,o):M:null}function See(){return null}var Ov=900,kv=24,Av=8,jv=24;function Mv(e,t){let n=!1,r=!1,i=!1,a=!1,o=e.scrollTop,s=0,c=0,l=!1,u,d=()=>i||a||t.contains(document.activeElement)||!e.clientHeight||e.scrollHeight-e.clientHeight-e.scrollTop<=jv,f=e=>{let n=e&&!d();l!==n&&(l=n,t.dataset.hidden=String(l))},p=()=>{n=!1,s=0,c=0,o=e.scrollTop,clearTimeout(u),u=void 0,f(!1)},m=()=>{clearTimeout(u),u=setTimeout(p,Ov)},h=()=>{n||(s=0,c=0),n=!0,m()},g=()=>{let t=e.scrollTop-o;if(o=e.scrollTop,d()){p();return}if(!n||!t)return;let r=Math.sign(t);c=r===s?c+Math.abs(t):Math.abs(t),s=r,r>0&&c>=kv&&f(!0),r<0&&c>=Av&&f(!1),m()},_=e=>{e.isTrusted&&!e.ctrlKey&&Math.abs(e.deltaY)>Math.abs(e.deltaX)&&h()},v=e=>{!e.isTrusted||e.defaultPrevented||e.ctrlKey||e.metaKey||e.altKey||![`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)||e.target.closest(`input, textarea, button, [contenteditable="true"]`)||h()},y=e=>{e.isTrusted&&h()},b=t=>{if(!t.isTrusted||t.button!==0||t.target!==e)return;let n=e.getBoundingClientRect(),i=t.clientX-n.left;(i<=Math.max(e.clientLeft,12)||i>=Math.min(e.clientLeft+e.clientWidth,n.width-12))&&(r=!0,h())},x=e=>{r&&e.isTrusted&&h()},S=()=>{r=!1},C=e=>{e.pointerType!==`touch`&&(a=!0,p())},w=()=>{a=!1},T=()=>{d()&&p()},E=new ResizeObserver(T);E.observe(e);let D=new MutationObserver(T);return D.observe(e,{childList:!0,subtree:!0}),e.addEventListener(`scroll`,g,{passive:!0}),e.addEventListener(`wheel`,_,{passive:!0}),e.addEventListener(`touchmove`,y,{passive:!0}),e.addEventListener(`keydown`,v),e.addEventListener(`pointerdown`,b),document.addEventListener(`pointermove`,x,{passive:!0}),document.addEventListener(`pointerup`,S),document.addEventListener(`pointercancel`,S),t.addEventListener(`pointerenter`,C),t.addEventListener(`pointerleave`,w),t.addEventListener(`focusin`,p),t.dataset.hidden=`false`,{programmatic:p,pin(e){i=e,p()},dispose(){clearTimeout(u),E.disconnect(),D.disconnect(),e.removeEventListener(`scroll`,g),e.removeEventListener(`wheel`,_),e.removeEventListener(`touchmove`,y),e.removeEventListener(`keydown`,v),e.removeEventListener(`pointerdown`,b),document.removeEventListener(`pointermove`,x),document.removeEventListener(`pointerup`,S),document.removeEventListener(`pointercancel`,S),t.removeEventListener(`pointerenter`,C),t.removeEventListener(`pointerleave`,w),t.removeEventListener(`focusin`,p),delete t.dataset.hidden}}}var Nv=new Map,Pv=new Map,Fv=e=>Nv.get(e);function Iv(){for(let[e,t]of Pv)t.clientHeight&&Nv.set(e,t.scrollTop)}function Lv(e,t=!0){let n=(0,H.useRef)(null);return(0,H.useLayoutEffect)(()=>{let r=n.current;if(!r)return;Pv.set(e,r),t&&Nv.has(e)&&(r.scrollTop=Nv.get(e));let i=()=>{r.clientHeight&&Nv.set(e,r.scrollTop)};return r.addEventListener(`scroll`,i,{passive:!0}),()=>{Pv.delete(e),r.removeEventListener(`scroll`,i)}},[e,t]),n}var Rv=e=>(e.startMs+e.endMs)/2,zv=e=>e.map((e,t)=>t===0||e.glue?e.text:` `+e.text).join(``),Bv=e=>e.toLocaleLowerCase().replace(/[^\p{L}\p{N}']/gu,``),Vv=(e,t)=>e===t||Math.min(e.length,t.length)>=4&&(e.startsWith(t)||t.startsWith(e)),Hv=500;function Uv(e,t){let n=t.split(/\s+/).map(Bv).filter(Boolean).slice(-40),r=e.slice(0,60).map(e=>Bv(e.text));if(!n.length||!r.length)return 0;let i=Array(n.length+1).fill(0),a=0,o=0;for(let e=1;e<=r.length;e++){let t=[e];for(let a=1;a<=n.length;a++)t[a]=Math.min(i[a]+1,t[a-1]+1,i[a-1]+ +!Vv(r[e-1],n[a-1]));let s=t[n.length],c=e-2*s;s<=Math.floor(e/4)&&(e>=2||n.length===1)&&c>o&&(a=e,o=c),i=t}return a}function Wv(e,t){let n=e.filter(e=>!e.rough&&Rv(e)>=t.endMs),r=e.filter(e=>e.rough),i=Uv(r,t.text),a=r.filter(e=>Rv(e)<t.endMs-Hv).length;return[...n,...r.slice(i||a)].sort((e,t)=>e.startMs-t.startMs)}var Gv=e=>`${e.track}:${e.startMs}`,Kv=24,qv=400,Jv=e=>e.track===`me`?U(`You`):e.speaker||U(`Them`);function Yv(e){let[t,n]=(0,H.useState)([]),[r,i]=(0,H.useState)(!1),a=(0,H.useRef)(new Set);return(0,H.useEffect)(()=>{let t=!0;i(!1),n([]),a.current=new Set;let r=(t,r)=>n(n=>{let i=new Set(n.map(Gv)),o=t.filter(t=>t.meetingId===e&&!i.has(Gv(t)));if(r)for(let e of o)a.current.add(Gv(e));return o.length?[...n,...o].sort((e,t)=>e.startMs-t.startMs):n}),o=window.yogurt.transcript.onSegment(e=>r([e],!0));window.yogurt.transcript.get(e,{hidden:!0}).then(e=>{t&&(r(e,!1),i(!0))});let s=window.yogurt.transcript.onSpeakers(t=>{t===e&&window.yogurt.transcript.get(e,{hidden:!0}).then(e=>n(t=>{let n=new Map(e.map(e=>[Gv(e),e])),r=new Set(t.map(Gv));return[...t.map(e=>n.get(Gv(e))??e),...e.filter(e=>!r.has(Gv(e)))].sort((e,t)=>e.startMs-t.startMs)}))});return()=>{t=!1,o(),s()}},[e]),{lines:t,live:a,loaded:r}}var Xv=300,Cee=50;function wee(e,t){let[n,r]=(0,H.useState)({}),i=(0,H.useRef)({me:-1/0,them:-1/0});(0,H.useEffect)(()=>{if(r({}),i.current={me:-1/0,them:-1/0},!t)return;let n=window.yogurt.transcript.onPartial(t=>{if(t.meetingId!==e)return;let n=t.words??[];n.length&&(i.current[t.track]=Math.max(i.current[t.track],n.at(-1).endMs)),r(e=>({...e,[t.track]:{track:t.track,startMs:n[0]?.startMs??t.startMs,endMs:n.at(-1)?.endMs??t.startMs,text:t.text,words:n}}))}),a=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&r(e=>{let n=e[t.track];if(!n)return e;let r=Wv(n.words,{endMs:t.endMs,text:t.text});return{...e,[t.track]:{...n,words:r,text:zv(r),startMs:r[0]?.startMs??n.startMs}}})});return()=>{n(),a()}},[e,t]);let a=(0,H.useCallback)(e=>e.startMs<i.current[e.track]+500,[]);return{live:[`me`,`them`].map(e=>n[e]).filter(e=>!!e&&e.words.length>0),previewed:a}}function Tee({said:e}){let t=(0,H.useRef)({words:[],keys:[],next:0}),n=e.words.map(e=>e.text),r=gee(t.current.words,t.current.keys,n,t.current.next);return t.current={words:n,keys:r.keys,next:r.next},(0,G.jsxs)(`span`,{"data-testid":`transcript-partial`,"data-track":e.track,"data-start":e.startMs,"aria-live":`off`,className:`live-words`,children:[e.words.map((e,t)=>(0,G.jsx)(`span`,{className:`live-word`,children:t===0||e.glue?e.text:` ${e.text}`},r.keys[t])),(0,G.jsxs)(`span`,{className:`live-dots`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]})]})}var Eee=(0,H.memo)(function({line:e,focused:t,name:n,playing:r,playable:i,focusable:a,arrived:o,onPlay:s,onFocusLine:c}){lv(),window.yogurt.fake&&(window.__rowRenders=(window.__rowRenders??0)+1);let l=Gv(e),u=fv(e.startMs);return(0,G.jsxs)(`span`,{"data-key":l,"data-testid":`transcript-line`,"data-track":e.track,"data-start":e.startMs,"data-playing":r||void 0,role:i?`button`:void 0,"aria-label":i?U(`Play from {time}, {name}: {text}`,{time:u,name:n,text:e.text}):void 0,tabIndex:i?a?0:-1:void 0,onFocus:e=>{e.target===e.currentTarget&&c(l)},onClick:t=>s(e,t),title:u,"data-hidden":e.hidden||void 0,"data-focused":t||void 0,className:`line ${o===`fade`?`line-in`:o===`settle`?`line-settle`:``} ${i?`line-playable cursor-pointer`:``}`,children:[(0,G.jsx)(`span`,{"data-testid":`transcript-text`,children:e.text}),(0,G.jsx)(`time`,{"data-testid":`transcript-time`,className:`sr-only`,children:u})]})});function Zv({id:e,recording:t,inline:n=!1,active:r=!0,onClose:i,focus:a,toolbar:o}){let{lines:s,live:c,loaded:l}=Yv(e),u=cv(!l),{live:d,previewed:f}=wee(e,t),p=(0,H.useMemo)(()=>uv(hee(s,d)).filter(e=>!e.echo),[s,d]),m=(0,H.useMemo)(()=>uv(s).filter(e=>!e.echo).flatMap(e=>e.lines),[s]),[h,g]=(0,H.useState)(!1),[_,v]=(0,H.useState)(!1);(0,H.useEffect)(()=>{g(!1),v(!1)},[e]);let[y,b]=(0,H.useState)([]);(0,H.useEffect)(()=>{if(b([]),t)return;let n=!0,r=!1,i=window.yogurt.audio.onDeleted(t=>{t===e&&(document.activeElement?.closest(`[data-testid="player"], [data-testid="recording-delete-confirm"]`)&&(F.current?.setAttribute(`tabindex`,`-1`),F.current?.focus({preventScroll:!0})),r=!0,b([]),re(!1),N(null))});return window.yogurt.audio.tracks(e).then(e=>{n&&!r&&b(e)}),()=>{n=!1,i()}},[e,t]);let x=(0,H.useRef)(null),S=y.length>0,C=(0,H.useRef)(null),[w,T]=(0,H.useState)(0),E=(0,H.useRef)(null);(0,H.useLayoutEffect)(()=>{let e=C.current;if(!e){T(0);return}let t=()=>T(e.getBoundingClientRect().height+28);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[S,r]);let[D,O]=(0,H.useState)(),[k,A]=(0,H.useState)(0),j=(0,H.useRef)(0),M=(0,H.useRef)(m);M.current=m;let N=(0,H.useCallback)((e,t=!1)=>{let n=e==null?-1:mv(M.current,e),r=n<0?void 0:Gv(M.current[n]);O(e=>e===r?e:r),t&&A(e=>e+1)},[]),P=`transcript/${e}`,F=Lv(P,r&&l);(0,H.useLayoutEffect)(()=>{let e=F.current,t=C.current;if(!r||!S||!e||!t)return;let n=Mv(e,t);return E.current=n,()=>{n.dispose(),E.current=null}},[e,r,S]);let I=(0,H.useRef)(Fv(P)===void 0),[L,R]=(0,H.useState)(!1),ee=()=>{let e=F.current;e&&(oe.current===null&&(V.current=performance.now(),fe()),I.current=e.scrollHeight-e.scrollTop-e.clientHeight<Kv,R(!I.current))};(0,H.useLayoutEffect)(()=>{let e=F.current;r&&t&&!h&&e&&I.current&&(E.current?.programmatic(),e.scrollTop=e.scrollHeight)},[m,d,t,r,h]);let z=()=>{let e=F.current;e&&(E.current?.programmatic(),I.current=!0,R(!1),e.scrollTo({top:e.scrollHeight,behavior:Af()}))},te=e=>e?F.current?.querySelector(`[data-key="${CSS.escape(e)}"]`)??null:null,[ne,re]=(0,H.useState)(!1),ie=(0,H.useRef)(!0),[B,ae]=(0,H.useState)(null),oe=(0,H.useRef)(null),V=(0,H.useRef)(0),se=(0,H.useRef)(D);se.current=D,(0,H.useEffect)(()=>{ie.current=!0,ae(null)},[e]);let ce=e=>{let t=F.current,n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=r.top-n.top+t.scrollTop;return{row:{top:i,bottom:i+r.height},view:{scrollTop:t.scrollTop,height:Math.max(0,t.clientHeight-w),scrollHeight:t.scrollHeight}}},le=e=>{let t=F.current,n=te(se.current);if(h||!t||!n||!e&&performance.now()-V.current<qv)return;let{row:r,view:i}=ce(n),a=xf(r,i,e);if(!(a===null||!oe.current&&Math.abs(a-t.scrollTop)<2)){if(!oe.current){let e=Mf(t,()=>requestAnimationFrame(()=>{oe.current===e&&!e.active&&(oe.current=null)}));oe.current=e}E.current?.programmatic(),oe.current.to(a)}};(0,H.useEffect)(()=>{k===j.current?ne&&ie.current&&le(!1):(j.current=k,ie.current=!0,ae(null),le(!0))},[D,ne,k]);let ue=(0,H.useCallback)(()=>{ie.current=!0,ae(null)},[]),de=()=>{ue(),le(!0)},fe=()=>{let e=F.current,n=te(se.current);if(t||!e||!n)return;let{row:r,view:i}=ce(n);ie.current=bf(r,i),ae(ie.current?null:r.top<i.scrollTop?`up`:`down`)},pe=()=>{V.current=performance.now(),oe.current?.stop(),oe.current=null};(0,H.useEffect)(()=>()=>{oe.current?.stop(),oe.current=null},[e,r]);let me=(0,H.useRef)(S);me.current=S;let he=(0,H.useCallback)((e,t)=>{!me.current||t.target.closest(`button, input, form`)||window.getSelection()?.toString()||(ue(),x.current?.playFrom(e.startMs))},[ue]),[ge,_e]=(0,H.useState)(),ve=(0,H.useRef)(void 0);(0,H.useEffect)(()=>{if(!r||!a||ve.current===a.seq||!m.length)return;let e=m.filter(e=>!e.hidden),t=(a.match?e[pt(e.map(e=>e.text),a.match,Math.max(0,mv(e,a.ms)))]:void 0)??m[Math.max(0,mv(m,a.ms))];t&&(ve.current=a.seq,I.current=!1,v(!0),_e(Gv(t)),be(Gv(t)),requestAnimationFrame(()=>{E.current?.programmatic(),te(Gv(t))?.scrollIntoView({block:`center`})}))},[a?.seq,m,r]),(0,H.useEffect)(()=>{if(!ge)return;let e=window.setTimeout(()=>_e(void 0),2400);return()=>clearTimeout(e)},[ge,a?.seq]);let[ye,be]=(0,H.useState)(),xe=ye??D??(m[0]&&Gv(m[0])),Se=e=>{let t=e.target.closest(`[data-testid="transcript-line"]`);if(!S||!t||t!==e.target)return;let n=m.findIndex(e=>Gv(e)===t.dataset.key);if(n<0)return;let r=e=>{let t=te(Gv(m[Math.max(0,Math.min(m.length-1,e))]));E.current?.programmatic(),t?.focus({preventScroll:!0}),t?.scrollIntoView({block:`nearest`})};e.key===`ArrowDown`?(e.preventDefault(),r(n+1)):e.key===`ArrowUp`?(e.preventDefault(),r(n-1)):e.key===`Home`?(e.preventDefault(),r(0)):e.key===`End`?(e.preventDefault(),r(m.length-1)):(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),ue(),x.current?.playFrom(m[n].startMs))},Ce=(0,H.useMemo)(()=>p.map(e=>({...e,k:Gv(e.lines[0])})),[p]),we=(0,H.useMemo)(()=>t&&!_?_ee(Ce,Xv,Cee):{runs:Ce,earlier:0},[Ce,t,_]),Te=(0,H.useCallback)(e=>{g(e),e&&(v(!0),I.current=!1,oe.current?.stop(),oe.current=null)},[]);return(0,G.jsxs)(n?`section`:`aside`,{style:{"--playback-inset":`${w}px`},"data-testid":`transcript-panel`,"aria-label":U(`Transcript`),onKeyDown:e=>{!n&&e.key===`Escape`&&(e.stopPropagation(),i?.())},className:n?`transcript-inline`:`chat-in pointer-events-auto absolute inset-x-0 bottom-1 z-20 mx-auto flex h-[min(44vh,480px)] w-[min(720px,calc(100%-48px))] flex-col rounded-xl border border-line bg-float shadow-[var(--shadow)]`,children:[(0,G.jsx)(xee,{lines:m,list:F,active:r,playbackInset:w,beforeScroll:()=>E.current?.programmatic(),onFinding:Te,toolbar:o,onClose:n?void 0:i},e),(0,G.jsxs)(`div`,{className:`transcript-scroll-wrap relative flex min-h-0 flex-1 flex-col`,children:[(0,G.jsx)(qh,{enabled:r&&l,children:(0,G.jsxs)(`ol`,{"data-loaded":l,"data-loading-phase":u,"data-testid":`transcript`,ref:F,onScroll:ee,onWheel:pe,onTouchStart:pe,onPointerDown:pe,onKeyDownCapture:pe,onKeyDown:Se,className:`loading-content transcript-loading-content flex flex-1 flex-col gap-2 overflow-y-auto px-4 pb-4 pt-2 text-sm leading-[1.55]`,children:[u!==`ready`&&(0,G.jsx)(`li`,{className:`loading-placeholder`,children:(0,G.jsx)(sv,{layout:`transcript`})}),l&&s.length===0&&d.length===0&&(0,G.jsx)(`li`,{"data-testid":`transcript-empty`,className:`note-empty empty-state`,children:(0,G.jsxs)(`div`,{className:`empty-state-content`,children:[(0,G.jsx)(`div`,{className:`empty-tile`,children:(0,G.jsx)(dg,{size:28,strokeWidth:1.5,"aria-hidden":`true`})}),U(`Nothing heard yet.`)]})}),we.earlier>0&&(0,G.jsx)(`li`,{className:`flex justify-center`,children:(0,G.jsx)(`button`,{"data-testid":`transcript-earlier`,onClick:()=>{E.current?.programmatic(),I.current=!1,v(!0)},className:`ghost-btn !px-2 !py-1 text-xs text-muted`,children:U(`Show earlier lines`)})}),we.runs.map(e=>(0,G.jsx)(H.Fragment,{children:pv(e.lines).map(e=>{let t=e[0].track===`me`,n=e[0],r=t||!(`speakerColor`in n)?void 0:n.speakerColor,i=e.some(e=>!(`live`in e));return(0,G.jsxs)(`li`,{"data-testid":`transcript-turn`,"data-track":n.track,className:`transcript-turn flex flex-col gap-[5px] ${t?`items-end`:`items-start`}`,children:[(0,G.jsxs)(`p`,{className:t?`sr-only`:`turn-head flex items-baseline gap-2 px-1 text-xs`,children:[(0,G.jsx)(`span`,{"data-testid":`transcript-who`,"data-color":r,"data-folder-color":r===void 0?void 0:Dt[r],className:`line-who font-medium ${t?``:`text-muted`} ${i?`name-in`:`invisible`}`,children:Jv(n)}),(0,G.jsx)(`time`,{className:`turn-time tabular-nums text-muted`,children:fv(n.startMs)})]}),hv(e).map(e=>(0,G.jsx)(`p`,{"data-testid":`transcript-bubble`,"data-track":n.track,dir:`auto`,className:`bubble ${t?`bubble-me`:`bubble-them`}`,children:e.map((e,t)=>{if(`live`in e)return(0,G.jsxs)(H.Fragment,{children:[t>0&&` `,(0,G.jsx)(Tee,{said:e.live})]},`live`);let n=Gv(e);return(0,G.jsxs)(H.Fragment,{children:[t>0&&` `,(0,G.jsx)(Eee,{line:e,focused:n===ge,name:Jv(e),playing:n===D,playable:S,focusable:n===xe,arrived:c.current.has(n)?f(e)?`settle`:`fade`:null,onPlay:he,onFocusLine:be})]},n)})},Gv(e[0])))]},Gv(n))})},e.k))]})}),t&&L&&!h&&(0,G.jsxs)(`button`,{"data-testid":`transcript-latest`,onClick:z,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,G.jsx)(og,{size:12,"aria-hidden":`true`}),U(`Latest`)]}),!t&&ne&&B&&D&&!h&&(0,G.jsxs)(`button`,{"data-testid":`transcript-follow`,onClick:de,className:`absolute bottom-3 start-1/2 flex -translate-x-1/2 items-center gap-1 rounded-md border border-line bg-float px-3 py-1 text-xs shadow-[var(--shadow)] rtl:translate-x-1/2`,children:[(0,G.jsx)(og,{size:12,"aria-hidden":`true`,className:`follow-arrow`,"data-up":B===`up`}),U(`Back to playing`)]})]}),r&&S&&(0,G.jsx)(`div`,{ref:C,className:`transcript-player-dock`,children:(0,G.jsx)(See,{ref:x,id:e,tracks:y,onTime:N,onPlaying:re,onBusy:e=>E.current?.pin(e)})})]})}function Qv(e){this.content=e}Qv.prototype={constructor:Qv,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new Qv(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new Qv(n)},addToStart:function(e,t){return new Qv([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new Qv(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new Qv(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=Qv.from(e),e.size?new Qv(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=Qv.from(e),e.size?new Qv(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=Qv.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},Qv.from=function(e){if(e instanceof Qv)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new Qv(t)};function $v(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&ny(e.charCodeAt(r-1))&&ty(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=$v(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function ey(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&ny(e.charCodeAt(i-1))&&ty(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=ey(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}function ty(e){return e>=56320&&e<57344}function ny(e){return e>=55296&&e<56320}var K=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return $v(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return ey(this,e,t,n)}findIndex(e){if(e==0)return iy(0,e);if(e==this.size)return iy(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?iy(t+1,i):iy(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};K.empty=new K([],0);var ry={index:0,offset:0};function iy(e,t){return ry.index=e,ry.offset=t,ry}function ay(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!ay(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!ay(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var oy=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ay(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);return n.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};oy.none=[];var sy=class extends Error{},q=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=ly(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(cy(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(K.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};q.empty=new q(K.empty,0,0);function cy(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(cy(a.content,t-i-1,n-i-1)))}function ly(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=ly(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function Dee(e,t,n){if(n.openStart>e.depth)throw new sy(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new sy(`Inconsistent open depths`);return uy(e,t,n,0)}function uy(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=uy(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return hy(a,_y(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return hy(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=Oee(n,e);return hy(a,gy(e,i,o,t,r))}}function dy(e,t){if(!t.type.compatibleContent(e.type))throw new sy(`Cannot join `+t.type.name+` onto `+e.type.name)}function fy(e,t,n){let r=e.node(n);return dy(r,t.node(n)),r}function py(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function my(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(py(e.nodeAfter,r),a++));for(let e=a;e<o;e++)py(i.child(e),r);t&&t.depth==n&&t.textOffset&&py(t.nodeBefore,r)}function hy(e,t){if(!e.type.validContent(t))throw new sy(`Invalid content for node `+e.type.name);return e.copy(t)}function gy(e,t,n,r,i){let a=e.depth>i&&fy(e,t,i+1),o=r.depth>i&&fy(n,r,i+1),s=[];return my(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(dy(a,o),py(hy(a,gy(e,t,n,r,i+1)),s)):(a&&py(hy(a,_y(e,t,i+1)),s),my(t,n,i,s),o&&py(hy(o,_y(n,r,i+1)),s)),my(r,null,i,s),new K(s)}function _y(e,t,n){let r=[];return my(null,e,n,r),e.depth>n&&py(hy(fy(e,t,n+1),_y(e,t,n+1)),r),my(t,null,n,r),new K(r)}function Oee(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(K.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var vy=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return oy.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new by(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=yy.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else yy.set(t,r=new kee);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Aee,i}},kee=class{constructor(){this.elts=[],this.i=0}},Aee=12,yy=new WeakMap,by=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},jee=Object.create(null),xy=class e{constructor(e,t,n,r=oy.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||K.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&ay(this.attrs,t||e.defaultAttrs||jee)&&oy.sameSet(this.marks,n||oy.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return q.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new q(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Dee(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return vy.resolveCached(this,e)}resolveNoCache(e){return vy.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Sy(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=K.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),Cy(this.type.attrs,this.attrs,`node`,this.type.name);let e=oy.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];Cy(n.type.attrs,n.attrs,`mark`,n.type.name),e=n.addToSet(e)}if(!oy.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=K.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}};xy.prototype.text=void 0;var Mee=class e extends xy{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Sy(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Sy(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}function Cy(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}var wy=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Nee(t,n);if(r.next==null)return e.empty;let i=Ty(r);r.next&&r.err(`Unexpected trailing text`);let a=Py(jy(i));return Fy(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return K.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
+`)}};wy.empty=new wy(!0);var Nee=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Ty(e){let t=[];do t.push(Pee(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Pee(e){let t=[];do t.push(Ey(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ey(e){let t=Ay(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Oy(e,t);else break;return t}function Dy(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Oy(e,t){let n=Dy(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Dy(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function ky(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Ay(e){if(e.eat(`(`)){let t=Ty(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=ky(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function jy(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function My(e,t){return t-e}function Ny(e,t){let n=[];return r(t),n.sort(My);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function Py(e){let t=Object.create(null);return n(Ny(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);Ny(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new wy(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(My);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function Fy(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function Iy(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function Ly(e,t){let n=Object.create(null);for(let r in e){let i=e[r],a=t&&t[r];if(a===void 0){if(i.hasDefault)a=i.default;else throw RangeError(`No value supplied for attribute `+r)}else i.validate&&i.validate(a);n[r]=a}return n}function Ry(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new Vy(e,r,t[r]);return n}var zy=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=Ry(e,n.attrs),this.defaultAttrs=Iy(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==wy.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Ly(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new xy(this,this.computeAttrs(e),K.from(t),oy.setFrom(n))}createChecked(e=null,t,n){return t=K.from(t),this.checkContent(t),new xy(this,this.computeAttrs(e),t,oy.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=K.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(K.empty,!0);return i?new xy(this,e,t.append(i),oy.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:oy.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function By(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var Vy=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?By(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},Hy=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=Ry(e,r.attrs),this.excluded=null;let i=Iy(this.attrs);this.instance=i?new oy(this,i):null}create(e=null){return!e&&this.instance?this.instance:new oy(this,Ly(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}},Uy=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=Qv.from(e.nodes),t.marks=Qv.from(e.marks||{}),this.nodes=zy.compile(this.spec.nodes,this),this.marks=Hy.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=wy.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?Wy(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:Wy(this,n.split(` `))}this.nodeFromJSON=e=>xy.fromJSON(this,e),this.markFromJSON=e=>oy.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof zy))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Mee(n,n.defaultAttrs,e,oy.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function Wy(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function Gy(e){return e.tag!=null}function Ky(e){return e.style!=null}var qy=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(Gy(e))this.tags.push(e);else if(Ky(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new nb(this,t,!1);return n.addAll(e,oy.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new nb(this,t,!0);return n.addAll(e,oy.none,t.from,t.to),q.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(ib(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=ab(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=ab(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},Jy={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Yy={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Xy={ol:!0,ul:!0},Zy=1,Qy=2,$y=4;function eb(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Zy:0)|(t===`full`?Qy:0)}var tb=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=oy.none,this.match=i||(a&$y?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(K.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Zy)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=K.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(K.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Jy.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},nb=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=eb(null,t.preserveWhitespace,0)|(n?$y:0);i=r?new tb(r.type,r.attrs,oy.none,!0,t.topMatch||r.type.contentMatch,a):n?new tb(null,null,oy.none,!0,null,a):new tb(e.schema.topNodeType,null,oy.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&Qy?`full`:this.localPreserveWS||(r.options&Zy)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
+`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;Xy.hasOwnProperty(a)&&this.parser.normalizeLists&&rb(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:Yy.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(Jy.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
+`),t)}ignoreFallback(e,t){e.nodeName!=`BR`||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node){if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=oy.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):ob(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=eb(e,i,a.options);a.options&$y&&a.content.length==0&&(o|=$y);let s=oy.none;return n=n.filter(t=>!(a.type?a.type.allowsMarkType(t.type):ob(t.type,e))||(s=t.addToSet(s),!1)),this.nodes.push(new tb(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Zy);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function rb(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Xy.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function ib(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ab(e){let t={};for(let n in e)t[n]=e[n];return t}function ob(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var sb=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=lb(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name])a++;else{if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return lb(t).createTextNode(e.text);let{dom:n,contentDOM:r}=pb(lb(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&pb(lb(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:pb(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=cb(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return cb(e.marks)}};function cb(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function lb(e){return e.document||window.document}var ub=new WeakMap;function db(e){let t=ub.get(e);return t===void 0&&ub.set(e,t=fb(e)),t}function fb(e){let t=null;function n(e){if(e&&typeof e==`object`){if(Array.isArray(e)){if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t])}else for(let t in e)n(e[t])}}return n(e),t}function pb(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=db(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=pb(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var mb=65535,hb=2**16;function gb(e,t){return e+t*hb}function _b(e){return e&mb}function vb(e){return(e-(e&mb))/hb}var yb=1,bb=2,xb=4,Sb=8,Cb=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Sb)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&xb)>0}},wb=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=_b(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+vb(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:gb(o/3,e-s),f=0;return c&&(f|=e==s?bb:e==u?yb:xb,(t<0?e!=s:e!=u)&&(f|=Sb)),new Cb(a,f,d)}r+=l-c}return n?e+r:new Cb(e+r,0,null)}touches(e,t){let n=0,r=_b(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};wb.empty=new wb([]);var Tb=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Cb(e,r,null)}},Eb=Object.create(null),Db=class{getMap(){return wb.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Eb[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Eb)throw RangeError(`Duplicate use of step JSON ID `+e);return Eb[e]=t,t.prototype.jsonID=e,t}},Ob=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof sy)return e.fail(t.message);throw t}}};function kb(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(kb(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return K.fromArray(r)}var Ab=class e extends Db{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new q(kb(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Ob.fromReplace(e,this.from,this.to,i)}invert(t){let n=[];return t.nodesBetween(this.from,this.to,(t,r)=>{if(t.isInline&&t.isAtom){let i=this.mark.addToSet(t.marks);if(!oy.sameSet(i,t.marks)){let a=Math.max(this.from,r),o=Math.min(this.to,r+t.nodeSize);Mb(jb,a,o,this.mark,n);for(let r of t.marks)r.isInSet(i)||Mb(e,a,o,r,n)}}}),n.length==1?n[0]:new Nb(n)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Db.jsonID(`addMark`,Ab);var jb=class e extends Db{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new q(kb(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Ob.fromReplace(e,this.from,this.to,n)}invert(e){let t=[];return e.nodesBetween(this.from,this.to,(e,n)=>{e.isInline&&e.isAtom&&this.mark.isInSet(e.marks)&&Mb(Ab,Math.max(this.from,n),Math.min(this.to,n+e.nodeSize),this.mark,t)}),t.length==1?t[0]:new Nb(t)}map(t){let n=t.map(this.from,1),r=t.map(this.to,-1);return n>=r?null:new e(n,r,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};Db.jsonID(`removeMark`,jb);function Mb(e,t,n,r,i){let a=i.length?i[i.length-1]:null;a&&a instanceof e&&a.to==t&&a.mark.eq(r)?i[i.length-1]=new e(a.from,n,r):i.push(new e(t,n,r))}var Nb=class e extends Db{constructor(e){super(),this.steps=e}apply(e){for(let t of this.steps){let n=t.apply(e);if(!n.doc)return n;e=n.doc}return new Ob(e,null)}invert(t){return new e(this.steps.map(e=>e.invert(t)))}map(t){let n=[];for(let e of this.steps){let r=e.map(t);r&&n.push(r)}return n.length?new e(n):null}toJSON(){return{stepType:`markSet`,steps:this.steps.map(e=>e.toJSON())}}static fromJSON(t,n){if(!Array.isArray(n.steps)||!n.steps.every(e=>e.stepType==`addMark`||e.stepType==`removeMark`))throw RangeError(`Invalid JSON for MarkSetStep`);return new e(n.steps.map(e=>Db.fromJSON(t,e)))}};Db.jsonID(`markSet`,Nb);var Pb=class e extends Db{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ob.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Ob.fromReplace(e,this.pos,this.pos+1,new q(K.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Fb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Db.jsonID(`addNodeMark`,Pb);var Fb=class e extends Db{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ob.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Ob.fromReplace(e,this.pos,this.pos+1,new q(K.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Pb(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};Db.jsonID(`removeNodeMark`,Fb);var Ib=class e extends Db{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Rb(e,this.from,this.to)?Ob.fail(`Structure replace would overwrite content`):Ob.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new wb([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?q.empty:new q(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?q.empty:new q(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,q.fromJSON(t,n.slice),!!n.structure)}};Ib.MAP_BIAS=1,Db.jsonID(`replace`,Ib);var Lb=class e extends Db{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(Rb(e,this.from,this.gapFrom)||Rb(e,this.gapTo,this.to)))return Ob.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Ob.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Ob.fromReplace(e,this.from,this.to,n):Ob.fail(`Content does not fit in gap`)}getMap(){return new wb([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,q.fromJSON(t,n.slice),n.insert,!!n.structure)}};Db.jsonID(`replaceAround`,Lb);function Rb(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function zb(e,t,n,r){let i=[];e.doc.nodesBetween(t,n,(e,a,o)=>{if(!e.isInline)return;let s=e.marks;!r.isInSet(s)&&o.type.allowsMarkType(r.type)&&Mb(Ab,Math.max(a,t),Math.min(a+e.nodeSize,n),r,i)}),i.forEach(t=>e.step(t))}function Bb(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline||!e.isAtom)return;a++;let s=null;if(r instanceof Hy){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new jb(t.from,t.to,t.style)))}function Vb(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new Ib(s,l,q.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new jb(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new q(K.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new Ib(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(K.empty,!0);e.replace(s,s,new q(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function Hb(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ub(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!Hb(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function Wb(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=K.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=K.from(r.node(e).copy(u)),d++):c--;let f=K.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=K.from(i.node(e).copy(f)),p++):l++;e.step(new Lb(c,l,o,s,new q(u.append(f),d,p),u.size-d,!0))}function Gb(e,t,n=null,r=e){let i=qb(e,t),a=i&&Jb(r,t);return a?i.map(Kb).concat({type:t,attrs:n}).concat(a.map(Kb)):null}function Kb(e){return{type:e,attrs:null}}function qb(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function Jb(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function Yb(e,t,n){let r=K.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=K.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new Lb(i,a,i,a,new q(r,0,0),n.length,!0))}function Xb(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&$b(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&Qb(e,t,n,a),Vb(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new Lb(c,l,c+1,l-1,new q(K.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&Zb(e,t,n,a),!1}})}function Zb(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function Qb(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
+`))}})}function $b(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function ex(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new Lb(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new q(K.from(o),0,0),1,!0))}function tx(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function nx(e,t,n=1,r){let i=e.doc.resolve(t),a=K.empty,o=K.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=K.from(i.node(e).copy(a));let t=r&&r[s];o=K.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new Ib(t,t,new q(a.append(o),n,n),!0))}function rx(e,t){let n=e.resolve(t),r=n.index();return ax(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function ix(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function ax(e,t){return!!(e&&t&&!e.isLeaf&&ix(e,t))}function ox(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&ax(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function sx(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);Qb(e,r.node(),r.before(),s)}o.inlineContent&&Vb(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new Ib(l,c.map(t+n,-1),q.empty,!0)),r===!0){let t=e.doc.resolve(l);Zb(e,t.node(),t.before(),e.steps.length)}return e}function cx(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function lx(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function ux(e,t,n=t,r=q.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return dx(i,a,r)?new Ib(t,n,r):new fx(i,a,r).fit()}function dx(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var fx=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=K.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=K.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new q(i,a,o);return e>-1?new Lb(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new Ib(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=hx(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(K.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return bx(e,-1)<=t?!1:(this.unplaced.size>1&&bx(e,1)>n&&n++,this.unplaced=new q(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=hx(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new q(px(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new q(px(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(gx(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=mx(this.placed,t,K.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?q.empty:new q(px(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new q(px(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!_x(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=_x(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=_x(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=mx(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=mx(this.placed,this.depth,K.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(K.empty,!0);e.childCount&&(this.placed=mx(this.placed,this.frontier.length,e))}};function px(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(px(e.firstChild.content,t-1,n)))}function mx(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(mx(e.lastChild.content,t-1,n)))}function hx(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function gx(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,gx(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(K.empty,!0)))),e.copy(r)}function _x(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!vx(n,a.content,o)?s:null}function vx(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function yx(e){return e.spec.defining||e.spec.definingForContent}function bx(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function xx(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(dx(i,a,r))return e.step(new Ib(t,n,r));let o=Tx(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=yx(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new q(Sx(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function Sx(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Sx(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(K.empty,!0))}return e}function Cx(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=cx(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new q(K.from(r),0,0))}function wx(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=Tx(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function Tx(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var Ex=class e extends Db{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ob.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return Ob.fromReplace(e,this.pos,this.pos+1,new q(K.from(r),0,+!t.isLeaf))}getMap(){return wb.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};Db.jsonID(`attr`,Ex);var Dx=class e extends Db{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return Ob.ok(n)}getMap(){return wb.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};Db.jsonID(`docAttr`,Dx);var Ox=class extends Error{};Ox=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Ox.prototype=Object.create(Error.prototype),Ox.prototype.constructor=Ox,Ox.prototype.name=`TransformError`;var kx=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Tb}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Ox(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=q.empty){let r=ux(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new q(K.from(n),0,0))}delete(e,t){return this.replace(e,t,q.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return xx(this,e,t,n),this}replaceRangeWith(e,t,n){return Cx(this,e,t,n),this}deleteRange(e,t){return wx(this,e,t),this}lift(e,t){return Wb(this,e,t),this}join(e,t=1){return sx(this,e,t),this}wrap(e,t){return Yb(this,e,t),this}setBlockType(e,t=e,n,r=null){return Xb(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return ex(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Ex(e,t,n)),this}setDocAttribute(e,t){return this.step(new Dx(e,t)),this}addNodeMark(e,t){return this.step(new Pb(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof oy)t.isInSet(n.marks)&&this.step(new Fb(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new Fb(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return nx(this,e,t,n),this}addMark(e,t,n){return zb(this,e,t,n),this}removeMark(e,t,n){return Bb(this,e,t,n),this}clearIncompatible(e,t,n){return Vb(this,e,t,n),this}},Ax=Object.create(null),jx=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Mx(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=q.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?q.empty:t),o==0&&Bx(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),Bx(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new Fx(e):zx(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?zx(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):zx(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Rx(e.node(0))}static atStart(e){return zx(e,e,0,0,1)||new Rx(e)}static atEnd(e){return zx(e,e,e.content.size,e.childCount,-1)||new Rx(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Ax[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Ax)throw RangeError(`Duplicate use of selection JSON ID `+e);return Ax[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Fx.between(this.$anchor,this.$head).getBookmark()}};jx.prototype.visible=!0;var Mx=class{constructor(e,t){this.$from=e,this.$to=t}},Nx=!1;function Px(e){!Nx&&!e.parent.inlineContent&&(Nx=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var Fx=class e extends jx{constructor(e,t=e){Px(e),Px(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return jx.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=q.empty){if(super.replace(e,t),t==q.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Ix(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=jx.findFrom(n,r,!0)||jx.findFrom(n,-r,!0);if(e)n=e.$head;else return jx.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(jx.findFrom(t,-r,!0)||jx.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};jx.jsonID(`text`,Fx);var Ix=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return Fx.between(e.resolve(this.anchor),e.resolve(this.head))}},Lx=class e extends jx{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?jx.near(a):new e(a)}content(){return new q(K.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new Fee(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};Lx.prototype.visible=!1,jx.jsonID(`node`,Lx);var Fee=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Ix(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Lx.isSelectable(n)?new Lx(t):jx.near(t)}},Rx=class e extends jx{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=q.empty){if(t==q.empty){e.delete(0,e.doc.content.size);let t=jx.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Iee}};jx.jsonID(`all`,Rx);var Iee={map(){return this},resolve(e){return new Rx(e)}};function zx(e,t,n,r,i,a=!1){if(t.inlineContent)return Fx.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=zx(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Lx.isSelectable(r))return Lx.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function Bx(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Ib||i instanceof Lb))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(jx.near(e.doc.resolve(o),n))}var Vx=1,Hx=2,Ux=4,Lee=class extends kx{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Vx)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&Vx)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Hx,this}ensureMarks(e){return oy.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Hx)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||oy.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(jx.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Ux,this}get scrolledIntoView(){return(this.updated&Ux)>0}};function Wx(e,t){return!t||!e?e:e.bind(t)}var Gx=class{constructor(e,t,n){this.name=e,this.init=Wx(t.init,n),this.apply=Wx(t.apply,n)}},Ree=[new Gx(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Gx(`selection`,{init(e,t){return e.selection||jx.atStart(t.doc)},apply(e){return e.selection}}),new Gx(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Gx(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],Kx=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Ree.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new Gx(e.key,e.spec.state,e))})}},qx=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new Lee(this)}static create(t){let n=new Kx(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new Kx(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new Kx(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=xy.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=jx.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function Jx(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=Jx(i,t,{})),n[r]=i}return n}var Yx=class{constructor(e){this.spec=e,this.props={},e.props&&Jx(e.props,this,this.props),this.key=e.key?e.key.key:Zx(`plugin`)}getState(e){return e[this.key]}},Xx=Object.create(null);function Zx(e){return e in Xx?e+`$`+ ++Xx[e]:(Xx[e]=0,e+`$`)}var Qx=class{constructor(e=`key`){this.key=Zx(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},zee=o((e=>{var t=Te();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),$x=o(((e,t)=>{t.exports=zee()})),eS=$x(),tS=Object.defineProperty,Bee=(e,t)=>{let n={};for(var r in e)tS(n,r,{get:e[r],enumerable:!0});return t||tS(n,Symbol.toStringTag,{value:`Module`}),n},nS=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function rS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var iS=(e,t,n)=>{let r=rS(e,n);if(!r)return!1;let i=cS(r);if(!i){let n=r.blockRange(),i=n&&Ub(n);return i!=null&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(vS(e,i,t,-1))return!0;if(r.parent.content.size==0&&(oS(a,`end`)||Lx.isSelectable(a)))for(let n=r.depth;;n--){let o=ux(e.doc,r.before(n),r.after(n),q.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(oS(a,`end`)?jx.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):Lx.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},Vee=(e,t,n)=>{let r=rS(e,n);if(!r)return!1;let i=cS(r);return i?aS(e,i,t):!1},Hee=(e,t,n)=>{let r=lS(e,n);if(!r)return!1;let i=fS(r);return i?aS(e,i,t):!1};function aS(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=ux(e.doc,i,o,q.empty);if(!s||s.from!=i||s instanceof Ib&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(Fx.create(t.doc,i)),n(t.scrollIntoView())}return!0}function oS(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var sS=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=cS(r)}let o=a&&a.nodeBefore;return!o||!Lx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Lx.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function cS(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function lS(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var uS=(e,t,n)=>{let r=lS(e,n);if(!r)return!1;let i=fS(r);if(!i)return!1;let a=i.nodeAfter;if(vS(e,i,t,1))return!0;if(r.parent.content.size==0&&(oS(a,`start`)||Lx.isSelectable(a))){let n=ux(e.doc,r.before(),r.after(),q.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(oS(a,`start`)?jx.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):Lx.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},dS=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=fS(r)}let o=a&&a.nodeAfter;return!o||!Lx.isSelectable(o)?!1:(t&&t(e.tr.setSelection(Lx.create(e.doc,a.pos)).scrollIntoView()),!0)};function fS(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var Uee=(e,t)=>{let n=e.selection,r=n instanceof Lx,i;if(r){if(n.node.isTextblock||!rx(e.doc,n.from))return!1;i=n.from}else if(i=ox(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(Lx.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},Wee=(e,t)=>{let n=e.selection,r;if(n instanceof Lx){if(n.node.isTextblock||!rx(e.doc,n.to))return!1;r=n.to}else if(r=ox(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},Gee=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&Ub(i);return a!=null&&(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},pS=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
+`).scrollIntoView()),!0)};function mS(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var hS=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=mS(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(jx.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},gS=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof Rx||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=mS(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(Fx.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},_S=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(tx(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Ub(r);return i!=null&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function Kee(e){return(t,n)=>{if(t.selection instanceof Lx&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!tx(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof Fx||t.selection instanceof Rx)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=mS(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=tx(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,tx(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var qee=Kee(),Jee=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a!=0&&(i=n.before(a),t&&t(e.tr.setSelection(Lx.create(e.doc,i))),!0)},Yee=(e,t)=>(t&&t(e.tr.setSelection(new Rx(e.doc))),!0);function Xee(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||rx(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function vS(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&Xee(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=K.empty;for(let e=o.length-1;e>=0;e--)s=K.from(o[e].create(null,s));s=K.from(i.copy(s));let c=e.tr.step(new Lb(t.pos-1,r,t.pos,r,new q(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&rx(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:jx.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&Ub(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&oS(a,`start`,!0)&&oS(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=K.empty;for(let e=o.length-1;e>=0;e--)r=K.from(o[e].copy(r));n(e.tr.step(new Lb(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new q(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function yS(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(Fx.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var bS=yS(-1),xS=yS(1);function Zee(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&Gb(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function SS(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t)){if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function CS(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var wS=CS(nS,iS,sS),TS=CS(nS,uS,dS),ES={Enter:CS(pS,gS,_S,qee),"Mod-Enter":hS,Backspace:wS,"Mod-Backspace":wS,"Shift-Backspace":wS,Delete:TS,"Mod-Delete":TS,"Mod-a":Yee},Qee={"Ctrl-h":ES.Backspace,"Alt-Backspace":ES[`Mod-Backspace`],"Ctrl-d":ES.Delete,"Ctrl-Alt-Backspace":ES[`Mod-Delete`],"Alt-Delete":ES[`Mod-Delete`],"Alt-d":ES[`Mod-Delete`],"Ctrl-a":bS,"Ctrl-e":xS};for(let e in ES)Qee[e]=ES[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function $ee(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return ete(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function ete(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new by(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new by(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=Gb(a,n,r,t);return s?(e&&tte(e,t,s,i,n),!0):!1}function tte(e,t,n,r,i){let a=K.empty;for(let e=n.length-1;e>=0;e--)a=K.from(n[e].type.create(n[e].attrs,a));e.step(new Lb(t.start-(r?2:0),t.end,t.start,t.end,new q(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&tx(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function nte(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?rte(t,n,e,a):ite(t,n,a):!0:!1}}function rte(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new Lb(a-1,o,a,o,new q(K.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new by(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=Ub(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return rx(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function ite(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?K.empty:K.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new Lb(d-+!!s,f+ +!!c,d+1,f-1,new q((s?K.empty:K.from(i.copy(K.empty))).append(c?K.empty:K.from(i.copy(K.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function ate(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=K.from(r?e.create():null),o=new q(K.from(e.create(null,K.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new Lb(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var DS=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},OS=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},kS=null,AS=function(e,t,n){let r=kS||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},ote=function(){kS=null},jS=function(e,t,n,r){return n&&(MS(e,t,n,r,-1)||MS(e,t,n,r,1))},ste=/^(img|br|input|textarea|hr)$/i;function MS(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:NS(e))){let n=e.parentNode;if(!n||!PS(n)||LS(e)||ste.test(e.nodeName)||e.contentEditable==`false`)return!1;t=DS(e)+(i<0?0:1),e=n}else if(PS(e)){let n=e.childNodes[t+(i<0?-1:0)];if(PS(n)&&n.contentEditable==`false`){if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1}else e=n,t=i<0?NS(e):0}else return!1}}function NS(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function PS(e){return e.nodeType==1}function FS(e){return e.nodeType==3}function IS(e,t){return t?e.contains(PS(t)?t:t.parentNode):!1}function cte(e,t){for(;;){if(FS(e)&&t)return e;if(PS(e)&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=NS(e)}else if(e.parentNode&&!LS(e))t=DS(e),e=e.parentNode;else return null}}function lte(e,t){for(;;){if(FS(e)&&t<e.nodeValue.length)return e;if(PS(e)&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!LS(e))t=DS(e)+1,e=e.parentNode;else return null}}function ute(e,t,n){for(let r=t==0,i=t==NS(e);r||i;){if(e==n)return!0;let t=DS(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==NS(e)}}function LS(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var RS=function(e){return e.focusNode&&jS(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function zS(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function BS(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function VS(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(NS(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(NS(r.startContainer),r.startOffset)}}}var HS=typeof navigator<`u`?navigator:null,US=typeof document<`u`?document:null,WS=HS&&HS.userAgent||``,GS=/Edge\/(\d+)/.exec(WS),KS=/MSIE \d/.exec(WS),qS=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(WS),JS=!!(KS||qS||GS),YS=KS?document.documentMode:qS?+qS[1]:GS?+GS[1]:0,XS=!JS&&/gecko\/(\d+)/i.test(WS);XS&&+(/Firefox\/(\d+)/.exec(WS)||[0,0])[1];var ZS=!JS&&/Chrome\/(\d+)/.exec(WS),QS=!!ZS,$S=ZS?+ZS[1]:0,eC=!JS&&!!HS&&/Apple Computer/.test(HS.vendor),tC=eC&&(/Mobile\/\w+/.test(WS)||!!HS&&HS.maxTouchPoints>2),nC=tC||(HS?/Mac/.test(HS.platform):!1),rC=HS?/Win/.test(HS.platform):!1,iC=/Android \d/.test(WS),aC=!!US&&`webkitFontSmoothing`in US.documentElement.style,oC=aC?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function sC(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function cC(e,t){return typeof e==`number`?e:e[t]}function lC(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function uC(e,t,n){if(!TC(t)&&t.left==0)return;let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(!PS(o)){o=OS(o);continue}let e=o==a.body,n=e?sC(a):lC(o),s=0,c=0;if(t.top<n.top+cC(r,`top`)?c=-(n.top-t.top+cC(i,`top`)):t.bottom>n.bottom-cC(r,`bottom`)&&(c=t.bottom-t.top>n.bottom-n.top?t.top+cC(i,`top`)-n.top:t.bottom-n.bottom+cC(i,`bottom`)),t.left<n.left+cC(r,`left`)?s=-(n.left-t.left+cC(i,`left`)):t.right>n.right-cC(r,`right`)&&(s=t.right-n.right+cC(i,`right`)),s||c){if(e)a.defaultView.scrollBy(s,c);else{let e=o.scrollLeft,n=o.scrollTop;c&&(o.scrollTop+=c),s&&(o.scrollLeft+=s);let r=o.scrollLeft-e,i=o.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}}let l=e?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(l))break;o=l==`absolute`?o.offsetParent:OS(o)}}function dC(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:fC(e.dom)}}function fC(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=OS(r));return t}function pC({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;mC(n,r==0?0:r-t)}function mC(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var hC=null;function gC(e){if(e.setActive)return e.setActive();if(hC)return e.focus(hC);let t=fC(e);e.focus(hC==null?{get preventScroll(){return hC={preventScroll:!0},!0}}:void 0),hC||(hC=!1,mC(t,0))}function _C(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(PS(u))e=u.getClientRects();else if(FS(u))e=AS(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&FS(n)?{left:p.right<t.left?p.right:p.left,top:t.top}:t,PS(u)&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&FS(n)?vC(n,i):!n||r?{node:e,offset:a}:_C(n,i)}function vC(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=EC(r,1);if(n.top!=n.bottom&&yC(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function yC(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function bC(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function xC(e,t,n){let{node:r,offset:i}=_C(t,n),a=-1;if(PS(r)&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function SC(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(PS(t.dom)&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function CC(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(PS(n)){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(yC(t,i))return CC(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function wC(e,t){let n=e.dom.ownerDocument,r,i=0,a=VS(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o)){let n=e.dom.getBoundingClientRect();if(!yC(t,n)||(o=CC(e.dom,t,n),!o))return null}if(eC)for(let e=o;r&&e;e=OS(e))e.draggable&&(r=void 0);if(o=bC(o,t),r){if(XS&&PS(r)&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;aC&&i&&PS(r)&&PS(n=r.childNodes[i-1])&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&PS(r.lastChild)&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:i!=0&&PS(r)&&r.childNodes[i-1].nodeName==`BR`||(s=SC(e,r,i,t))}s??=xC(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function TC(e){return e.top<e.bottom||e.left<e.right}function EC(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(TC(e))return e}return Array.prototype.find.call(n,TC)||e.getBoundingClientRect()}var DC=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function OC(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=aC||XS;if(FS(r)){if(o&&(DC.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=EC(AS(r,i,i),n);if(XS&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=EC(AS(r,i-1,i-1),-1);if(t.top==e.top){let n=EC(AS(r,i,i+1),-1);if(n.top!=e.top)return kC(n,n.left<t.left)}}return e}{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,kC(EC(AS(r,e,t),a),a<0)}}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==NS(r))){let e=r.childNodes[i-1];if(PS(e))return AC(e.getBoundingClientRect(),!1)}if(a==null&&i<NS(r)){let e=r.childNodes[i];if(PS(e))return AC(e.getBoundingClientRect(),!0)}return AC(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==NS(r))){let e=r.childNodes[i-1],t=FS(e)?AS(e,NS(e)-+!o):PS(e)&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return kC(EC(t,1),!1)}if(a==null&&i<NS(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?FS(e)?AS(e,0,+!o):PS(e)?e:null:null;if(t)return kC(EC(t,-1),!0)}return kC(EC(FS(r)?AS(r):r,-n),n>=0)}function kC(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function AC(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function jC(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function MC(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return jC(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=OC(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(PS(e))t=e.getClientRects();else if(FS(e))t=AS(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var NC=/[\u0590-\u08ac]/;function PC(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!NC.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:jC(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!IS(l,u)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var FC=null,IC=null,LC=!1;function RC(e,t,n){return FC==t&&IC==n?LC:(FC=t,IC=n,LC=n==`up`||n==`down`?MC(e,t,n):PC(e,t,n))}var zC=0,BC=1,VC=2,HC=3,UC=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=zC,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&IS(this.contentDOM,e)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>DS(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM)){let n=e.compareDocumentPosition(this.contentDOM);r=n&16?t>Array.from(e.childNodes).findIndex(e=>e.contains(this.contentDOM)):!(n&4)}else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node)){if(n&&(a=i.nodeDOM)&&!(PS(a)?IS(a,e):a==e))n=!1;else return i}}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(;n>0;n--){let e=this.children[n-1];if(e.size||!(e instanceof XC||e instanceof WC&&e.side>=0))break}if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?DS(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?DS(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=DS(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=DS(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(!PS(t)||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((XS||eC)&&e==t){let{node:e,offset:t}=o;if(FS(e)){if(u=!!(t&&e.nodeValue[t-1]==`
+`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:DS(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(XS&&l.focusNode&&l.focusNode!=s.node&&PS(l.focusNode)){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&eC)&&jS(o.node,o.offset,l.anchorNode,l.anchorOffset)&&jS(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&XS)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?VC:BC,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=HC:i.markDirty(e-r,t-r);return}i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?VC:HC}n=a}this.dirty=VC}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?VC:BC;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},WC=class extends UC{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){let e=PS(a)?a:document.createElement(`span`);e!=a&&(e.appendChild(a),a=e),e.hasAttribute(`contenteditable`)||(e.contentEditable=`false`),e.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==zC&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},GC=class extends UC{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},KC=class e extends UC{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return o&&o.dom||(o=sb.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&HC||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=HC&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=zC){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=zC}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=pw(a,n,o,r)),t>0&&(a=pw(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},qC=class e extends UC{constructor(e,t,n,r,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(!FS(u))throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=sb.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=iw(u,r,n),l?c=new ZC(t,n,r,i,u,d||null,f,l):n.isText?new YC(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>PS(t)&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>K.empty}}return t}matchesNode(e,t,n){return this.dirty==zC&&e.eq(this.node)&&aw(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new sw(this,a&&a.node,e),c=this.node.inlineContent,l=c&&this.node.isBlock;uw(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?oy.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,u,d)=>{s.syncToMarks(t.marks,n,e,d),l&&t.isAtom&&!t.isText&&s.addHackNode(`IMG`,s.top);let f;s.findNodeMatch(t,a,u,d)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(f=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,u,f,e)||s.updateNextNode(t,a,u,e,d,r)||s.addNode(t,a,u,e,r),r+=t.nodeSize,c&&(l=t.isAtom&&!t.isText)}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==VC)&&(a&&this.protectLocalComposition(e,a),QC(this.contentDOM,this.children,e),tC&&dw(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Fx)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=fw(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new GC(this,i,t,r);e.input.compositionNodes.push(a),this.children=pw(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==HC||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=zC}updateOuterDeco(e){if(aw(e,this.outerDeco))return;let t=!PS(this.nodeDOM),n=this.dom;this.dom=nw(this.dom,this.nodeDOM,tw(this.outerDeco,this.node,t),tw(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){PS(this.nodeDOM)&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){PS(this.nodeDOM)&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function JC(e,t,n,r,i){iw(r,t,e);let a=new qC(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var YC=class e extends qC{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==HC||this.dirty!=zC&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=zC||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=zC,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=HC)}get domAtom(){return!1}isText(e){return this.node.text==e}},XC=class extends UC{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==zC&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},ZC=class extends qC{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==HC)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function QC(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=ow(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof KC){let t=r?r.previousSibling:e.lastChild;QC(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=ow(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var $C=function(e){e&&(this.nodeName=e)};$C.prototype=Object.create(null);var ew=[new $C];function tw(e,t,n){if(e.length==0)return ew;let r=n?ew[0]:new $C,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new $C(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new $C(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function nw(e,t,n,r){if(n==ew&&r==ew)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName||(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=ew[0]),i=t}rw(i,o||ew[0],a)}return i}function rw(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function iw(e,t,n){return nw(e,e,ew,tw(t,n,!PS(e)))}function aw(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ow(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var sw=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=cw(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=zC,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof KC&&t.dirty!=HC&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=KC.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==HC&&a.dom==a.contentDOM&&(a.dirty=VC),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof qC){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=HC&&aw(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=VC,u.updateChildren(r,a+1),u.dirty=zC),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!aw(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=qC.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=qC.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new WC(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof KC;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof YC)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((eC||QS)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new XC(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||PS(e)&&e.contains(this.lock.parentNode))}};function cw(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof KC)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function lw(e,t){return e.type.side-t.type.side}function uw(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u){if(d){d.sort(lw);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c)}let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function dw(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function fw(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function pw(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function mw(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(RS(n)){for(c=o;i&&!i.node;)i=i.parent;if(i&&i.node.isAtom&&Lx.isSelectable(i.node)&&i.parent&&!(i.node.isInline&&ute(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new Lx(o==e?s:r.resolve(e))}else if(XS&&t==`key`&&o>e.state.selection.to&&PS(n.focusNode)&&n.focusOffset==n.focusNode.childNodes.length&&i&&i.posAtStart>e.state.selection.to)for(let e=n.focusNode;;e=e.parentNode){if(getComputedStyle(e).overflow!=`visible`){l=jx.findFrom(r.resolve(i.posAtStart),1);break}if(e==i.dom||e.nextSibling||!e.parentNode||!PS(e.parentNode))break}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=Tw(e,u,s,n)}return l}function hw(e){return e.editable?e.hasFocus():Dw(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function gw(e,t=!1){let n=e.state.selection;if(Cw(e,n),!hw(e))return;let r=e.input.mouseDown;if(!t&&QS&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&jS(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Sw(e);else{let{anchor:r,head:i}=n,a,o;_w&&!(n instanceof Fx)&&(n.$from.parent.inlineContent||(a=vw(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=vw(e,n.to))),e.docView.setSelection(r,i,e,t),_w&&(a&&bw(a),o&&bw(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&xw(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var _w=eC||QS&&$S<63;function vw(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(eC&&i&&i.contentEditable==`false`)return yw(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return yw(i);if(a)return yw(a)}}function yw(e){return e.contentEditable=`true`,eC&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function bw(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function xw(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!hw(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function Sw(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,DS(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&JS&&YS<=11&&(n.disabled=!0,n.disabled=!1)}function Cw(e,t){if(t instanceof Lx){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(ww(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else ww(e)}function ww(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function Tw(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||Fx.between(t,n,r)}function Ew(e){return e.editable&&!e.hasFocus()?!1:Dw(e)}function Dw(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return IS(e.dom,t.anchorNode)&&(e.editable||IS(e.dom,t.focusNode))}catch{return!1}}function Ow(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return jS(t.node,t.offset,n.anchorNode,n.anchorOffset)}function kw(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&jx.findFrom(a,t)}function Aw(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function jw(e,t,n){let r=e.state.selection;if(r instanceof Fx){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return Aw(e,new Fx(r.$anchor,a))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=kw(e.state,t);return n&&n instanceof Lx?Aw(e,n):!1}if(!nC||n.indexOf(`m`)<0){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?Lx.isSelectable(i)?Aw(e,new Lx(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):Aw(e,new Fx(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1}}else if(r instanceof Lx&&r.node.isInline)return Aw(e,new Fx(t>0?r.$to:r.$from));else{let n=kw(e.state,t);return n?Aw(e,n):!1}}function Mw(e,t){let n=e.pmViewDesc;return n?n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`):PS(e)&&e.contentEditable==`false`}function Nw(e,t){return t<0?Pw(e):Fw(e)}function Pw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(XS&&PS(n)&&r<NS(n)&&Mw(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(!PS(n))break;let e=n.childNodes[r-1];if(Mw(e,-1))i=n,a=--r;else if(FS(e))n=e,r=n.nodeValue.length;else break}else if(Iw(n))break;else{let t=n.previousSibling;for(;t&&Mw(t,-1);)i=n.parentNode,a=DS(t),t=t.previousSibling;if(t)n=t,r=NS(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?zw(e,n,r):i&&zw(e,i,a)}function Fw(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=NS(n),a,o;for(;;)if(r<i){if(!PS(n))break;let e=n.childNodes[r];if(Mw(e,1))a=n,o=++r;else break}else if(Iw(n))break;else{let t=n.nextSibling;for(;t&&Mw(t,1);)a=t.parentNode,o=DS(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=NS(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&zw(e,a,o)}function Iw(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Lw(e,t){for(;e&&t==e.childNodes.length&&!LS(e);)t=DS(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(FS(n))return n;if(PS(n)&&n.contentEditable==`false`)break;e=n,t=0}}function Rw(e,t){for(;e&&!t&&!LS(e);)t=DS(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(FS(n))return n;if(PS(n)&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function zw(e,t,n){if(!FS(t)){let e,r;(r=Lw(t,n))?(t=r,n=0):(e=Rw(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection(),i=e.domSelectionRange();if(!r)return;RS(i)?r.collapse(t,n):r.extend&&(r.collapse(i.anchorNode,i.anchorOffset),r.extend(t,n)),e.domObserver.setCurSelection();let{state:a}=e;setTimeout(()=>{e.state==a&&gw(e)},50)}function Bw(e,t){let n=e.state.doc.resolve(t);if(!(QS||rC)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}let r=e.dom;for(let t=n.depth;t>0;t--)if(n.node(t).isBlock){r=e.nodeDOM(n.before(t))||r;break}return getComputedStyle(r).direction==`rtl`?`rtl`:`ltr`}function Vw(e,t,n){let r=e.state.selection;if(r instanceof Fx&&!r.empty||n.indexOf(`s`)>-1||nC&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=kw(e.state,t);if(n&&n instanceof Lx)return Aw(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof Rx?jx.near(n,t):jx.findFrom(n,t);return o?Aw(e,o):!1}return!1}function Hw(e,t){if(!(e.state.selection instanceof Fx))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function Uw(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Ww(e){if(!eC||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&PS(t)&&n==0&&t.firstChild&&PS(t.firstChild)&&t.firstChild.contentEditable==`false`){let n=t.firstChild;Uw(e,n,`true`),setTimeout(()=>Uw(e,n,`false`),20)}return!1}function Gw(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function Kw(e,t){let n=t.keyCode,r=Gw(t);if(n==8||nC&&n==72&&r==`c`)return Hw(e,-1)||Nw(e,-1);if(n==46&&!t.shiftKey||nC&&n==68&&r==`c`)return Hw(e,1)||Nw(e,1);if(n==13||n==27)return!0;if(n==37||nC&&n==66&&r==`c`){let t=n==37?Bw(e,e.state.selection.from)==`ltr`?-1:1:-1;return jw(e,t,r)||Nw(e,t)}if(n==39||nC&&n==70&&r==`c`){let t=n==39?Bw(e,e.state.selection.from)==`ltr`?1:-1:1;return jw(e,t,r)||Nw(e,t)}return n==38||nC&&n==80&&r==`c`?Vw(e,-1,r)||Nw(e,-1):n==40||nC&&n==78&&r==`c`?Ww(e)||Vw(e,1,r)||Nw(e,1):!(r!=(nC?`m`:`c`)||n!=66&&n!=73&&n!=89&&n!=90)}function qw(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||sb.fromSchema(e.state.schema),s=rT(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&PS(l)&&(u=nT[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&PS(l)&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
+
+`),slice:t}}function Jw(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new q(K.from(e.state.schema.text(t.replace(/\r\n?/g,`
+`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=sb.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=oT(n),aC&&sT(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&!PS(e);)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||qy.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!Yw.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=cT(tT(s,+u[1],+u[2]),u[4]);else if(s=q.maxOpen(Xw(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=tT(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var Yw=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Xw(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&Qw(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=$w(a[a.length-1],i.length));let n=Zw(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return K.from(a)}return e}function Zw(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,K.from(e));return e}function Qw(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=Qw(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(K.from(Zw(n,e,i+1))))}}function $w(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,$w(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(K.empty,!0);return e.copy(n.append(r))}function eT(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=eT(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(K.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function tT(e,t,n){return t<e.openStart&&(e=new q(eT(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new q(eT(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var nT={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function rT(){return document.implementation.createHTMLDocument(`title`)}var iT=null;function aT(e){let t=window.trustedTypes;if(!t)return e;if(!iT){if(iT=t.defaultPolicy)try{return iT.createHTML(e)}catch{}iT=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return iT.createHTML(e)}function oT(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=rT(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&nT[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=aT(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function sT(e){let t=e.querySelectorAll(QS?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function cT(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;try{i=K.from(t.create(r[e+1],i))}catch{break}a++,o++}return new q(i,a,o)}var lT={},uT={},dT={touchstart:!0,touchmove:!0},fT=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function pT(e){for(let t in lT){let n=lT[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{vT(e,t)&&!_T(e,t)&&(e.editable||!(t.type in uT))&&n(e,t)},dT[t]?{passive:!0}:void 0)}eC&&e.dom.addEventListener(`input`,()=>null),gT(e)}function mT(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function hT(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function gT(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>_T(e,t))})}function _T(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function vT(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function yT(e,t){!_T(e,t)&&lT[t.type]&&(e.editable||!(t.type in uT))&&lT[t.type](e,t)}uT.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!IT(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(iC&&QS&&n.keyCode==13))){if(n.keyCode!=229&&e.domObserver.forceFlush(),tC&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,zS(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||Kw(e,n)?n.preventDefault():mT(e,`key`)}},uT.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},uT.keypress=(e,t)=>{let n=t;if(IT(e)||!n.charCode||n.ctrlKey&&!n.altKey||nC&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof Fx)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function bT(e){return{left:e.clientX,top:e.clientY}}function xT(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function ST(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function CT(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta(`pointer`,!0),e.dispatch(r)}function wT(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Lx.isSelectable(r)?(CT(e,new Lx(n)),!0):!1}function TT(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof Lx&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(Lx.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i!=null&&(CT(e,Lx.create(e.state.doc,i)),!0)}function ET(e,t,n,r,i){return ST(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?TT(e,n):wT(e,n))}function DT(e,t,n,r){return ST(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function OT(e,t,n,r){return ST(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||kT(e,n,r)}function kT(e,t,n){if(n.button!=0)return!1;let r=AT(e,t,!0),i=e.state.doc;return r?(CT(e,r),r instanceof Fx&&i.eq(e.state.doc)&&(e.input.mouseDown=new FT(e,r)),!0):!1}function AT(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?Fx.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return Fx.create(r,a+1,a+1+t.content.size);if(n&&Lx.isSelectable(t))return Lx.create(r,a)}return null}function jT(e){return HT(e)}var MT=nC?`metaKey`:`ctrlKey`;lT.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=jT(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&xT(n,e.input.lastClick)&&!n[MT]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(bT(n));o&&(a==`singleClick`?e.input.mouseDown=new PT(e,o,n,!!r):(a==`doubleClick`?DT:OT)(e,o.pos,o.inside,n)?n.preventDefault():mT(e,`pointer`))};var NT=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},PT=class extends NT{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[MT],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&PS(s.nodeDOM)?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof Lx&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!!(this.target&&XS&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),mT(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||gw(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(bT(e))),this.updateAllowDefault(e),this.allowDefault||!t?mT(this.view,`pointer`):ET(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||eC&&this.mightDrag&&!this.mightDrag.node.isAtom||QS&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(CT(this.view,jx.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):mT(this.view,`pointer`)}move(e){this.updateAllowDefault(e),mT(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},FT=class extends NT{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),mT(this.view,`pointer`);let t=this.view.posAtCoords(bT(e)),n=t&&AT(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];CT(this.view,Fx.create(r,a,o))}};lT.touchstart=e=>{e.input.lastTouch=Date.now(),jT(e),mT(e,`pointer`)},lT.touchmove=e=>{e.input.lastTouch=Date.now(),mT(e,`pointer`)},lT.contextmenu=e=>jT(e);function IT(e,t){return e.composing?!0:eC&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var LT=iC?5e3:-1;uT.compositionstart=uT.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Fx&&t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||QS&&rC&&RT(e)))e.markCursor=e.state.storedMarks||n.marks(),HT(e,!0),e.markCursor=null;else if(HT(e,!t.selection.empty),XS&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&PS(n)&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(FS(t)){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}zT(e,LT)};function RT(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||!PS(t)||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return PS(r)&&r.contentEditable==`false`}uT.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,zT(e,20))};function zT(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>HT(e),t))}function BT(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function VT(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=cte(t.focusNode,t.focusOffset),r=lte(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function HT(e,t=!1){if(!(iC&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),BT(e),t||e.docView&&e.docView.dirty){let n=mw(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function UT(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var WT=JS&&YS<15||tC&&oC<604;lT.copy=uT.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=WT?null:n.clipboardData,{dom:o,text:s}=qw(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):UT(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function GT(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function KT(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?qT(e,r.value,null,i,t):qT(e,r.textContent,r.innerHTML,i,t)},50)}function qT(e,t,n,r,i){let a=Jw(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||q.empty)))return!0;if(!a)return!1;let o=GT(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function JT(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}uT.paste=(e,t)=>{let n=t;if(e.composing&&!iC)return;let r=WT?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&qT(e,JT(r),r.getData(`text/html`),i,n)?n.preventDefault():KT(e,n)};var YT=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},XT=nC?`altKey`:`ctrlKey`;function ZT(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[XT]:!n}lT.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(bT(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof Lx?i.to-1:i.to))){if(r&&r.mightDrag)o=Lx.create(e.state.doc,r.mightDrag.pos);else if(n.target&&PS(n.target)){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Lx.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=qw(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!QS||$S>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(WT?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,WT||n.dataTransfer.setData(`text/plain`,c),e.dragging=new YT(l,ZT(e,n),o)},lT.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},uT.dragover=uT.dragenter=(e,t)=>t.preventDefault(),uT.drop=(e,t)=>{try{QT(e,t,e.dragging)}finally{e.dragging=null}};function QT(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(bT(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=Jw(e,JT(t.dataTransfer),WT?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&ZT(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||q.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?lx(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&Lx.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Lx(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(Tw(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}lT.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&gw(e)},20))},lT.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},lT.beforeinput=(e,t)=>{if(iC&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,zS(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in uT)lT[e]=uT[e];function $T(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var eE=class{constructor(e){this.frag=e,this.index=0,this.off=0}nodeAt(e){for(;this.off<=e&&this.index<this.frag.childCount;){let t=this.frag.child(this.index);if(this.off==e)return t;this.off+=t.nodeSize,this.index++}return null}},tE=class e{constructor(e,t){this.toDOM=e,this.spec=t||oE,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new iE(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&$T(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},nE=class e{constructor(e,t){this.attrs=e,this.spec=t||oE}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new iE(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&$T(this.attrs,t.attrs)&&$T(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},rE=class e{constructor(e,t){this.attrs=e,this.spec=t||oE}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new iE(i.pos-n,a.pos-n,this)}valid(e,t,n){let r=n.nodeAt(t.from);return!!r&&!r.isText&&t.from+r.nodeSize==t.to}eq(t){return this==t||t instanceof e&&$T(this.attrs,t.attrs)&&$T(this.spec,t.spec)}destroy(){}},iE=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new tE(n,r))}static inline(t,n,r,i){return new e(t,n,new nE(r,i))}static node(t,n,r,i){return new e(t,n,new rE(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof nE}get widget(){return this.type instanceof tE}},aE=[],oE={},sE=class e{constructor(e,t){this.local=e.length?e:aE,this.children=t.length?t:aE}static create(e,t){return t.length?hE(t,e,0,oE):cE}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==cE||e.maps.length==0?this:this.mapInner(e,t,0,0,n||oE)}mapInner(t,n,r,i,a){let o;if(this.local.length){let e=new eE(n.content);for(let s=0;s<this.local.length;s++){let c=this.local[s].map(t,r,i);c&&c.type.valid(n,c,e)?(o||=[]).push(c):a.onRemove&&a.onRemove(this.local[s].spec)}}return this.children.length?uE(this.children,o||[],t,n,r,i,a):o?new e(o.sort(gE),aE):cE}add(t,n){return n.length?this==cE?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=pE(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,hE(s,e,o+1,oE)),a+=3}});let o=dE(a?mE(n):n,-r);if(o.length){let e=new eE(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||o.splice(n--,1)}return new e(o.length?this.local.concat(o).sort(gE):this.local,i||this.children)}remove(e){return e.length==0||this==cE?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==cE?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):cE}forChild(t,n){if(this==cE)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof nE){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(gE),aE);return r?new lE([t,r]):t}return r||cE}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return _E(this.localsInner(e))}localsInner(e){if(this==cE)return aE;if(e.inlineContent||!this.local.some(nE.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof nE||t.push(this.local[e]);return t}forEachSet(e){e(this)}};sE.empty=new sE([],[]),sE.removeOverlap=_E;var cE=sE.empty,lE=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,oE));return e.from(r)}forChild(t,n){if(n.isLeaf)return sE.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=cE&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length){if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}}return t?_E(n?t:t.sort(gE)):aE}static from(t){switch(t.length){case 0:return cE;case 1:return t[0];default:return new e(t.every(e=>e instanceof sE)?t:t.reduce((e,t)=>e.concat(t instanceof sE?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function uE(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==cE?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=hE(fE(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new sE(t.sort(gE),s)}function dE(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new iE(i.from+t,i.to+t,i.type))}return n}function fE(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function pE(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function mE(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function hE(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=pE(e,t,o+n);if(s){a=!0;let e=hE(s,t,n+o+1,r);e!=cE&&i.push(o,o+t.nodeSize,e)}});let o=dE(a?mE(e):e,-n).sort(gE);if(o.length){let e=new eE(t.content);for(let n=0;n<o.length;n++)o[n].type.valid(t,o[n],e)||(r.onRemove&&r.onRemove(o[n].spec),o.splice(n--,1))}return o.length||i.length?new sE(o,i):cE}function gE(e,t){return e.from-t.from||e.to-t.to}function _E(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from)a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),vE(t,i+1,a.copy(r.to,a.to)));else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),vE(t,i,r.copy(a.from,r.to)));break}}}return t}function vE(e,t,n){for(;t<e.length&&gE(n,e[t])>0;)t++;e.splice(t,0,n)}function yE(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=cE&&t.push(r)}),e.cursorWrapper&&t.push(sE.create(e.state.doc,[e.cursorWrapper.deco])),lE.from(t)}var bE={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},xE=JS&&YS<=11,SE=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},CE=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new SE,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);JS&&YS<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():eC&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),xE&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,bE)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Ew(this.view)){if(this.suppressingSelectionUpdates)return gw(this.view);if(JS&&YS<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&jS(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=OS(n))t.add(n);for(let r=e.anchorNode;r;r=OS(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:FS(n)?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n,r=!1;!this.suppressingSelectionUpdates&&Ew(e)&&(n=e.domSelectionRange(),r=!this.currentSelection.eq(n)&&!this.ignoreSelectionChange(n));let i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||QS&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&PS(t);){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(XS&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||pte(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&RS(n)&&(c=mw(e))&&c.eq(jx.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,gw(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),dte(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,mte(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):n&&!this.currentSelection.eq(n)&&gw(e),n&&this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),FS(r)&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(JS&&YS<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?DS(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?DS(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}return e.type==`attributes`?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}},wE=new WeakMap,TE=!1;function dte(e){if(!wE.has(e)&&(wE.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=XS,TE)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),TE=!0}}function EE(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return jS(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function fte(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return EE(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?EE(e,n):null}function pte(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function mte(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||!PS(e)||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function hte(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&IS(e.dom,d)&&(u=[{node:d,offset:l.anchorOffset}],RS(l)||u.push({node:l.focusNode,offset:l.focusOffset})),QS&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||qy.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace!=`pre`||`full`,findPositions:u,ruleFromNode:gte(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var gte=e=>t=>{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if(eC&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}if(t.parentNode.lastChild==t||eC&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},_te=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function vte(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=mw(e,t);if(n&&!e.state.selection.eq(n)){if(QS&&iC&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,zS(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=hte(e,t,n,i),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=Ste(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(tC&&e.input.lastIOSEnter>Date.now()-225||iC)&&i.some(e=>PS(e)&&!_te.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,zS(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m){if(r&&c instanceof Fx&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=DE(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof Fx&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),JS&&YS<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((tC&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&xte(l.doc,h.pos,g.pos))&&e.someProp(`handleKeyDown`,t=>t(e,zS(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&(v?m.endA>m.start&&m.endB==m.start:bte(u,m.start,m.endA,h,g))&&e.someProp(`handleKeyDown`,t=>t(e,zS(8,`Backspace`)))){iC&&QS&&e.domObserver.suppressSelectionUpdates();return}QS&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),iC&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,zS(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=DE(e,n.doc,l.sel);t&&!(QS&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||JS&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v){if(h.pos==g.pos){JS&&YS<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>gw(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=yte(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x())}else e.dispatch(x())}function DE(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Tw(e,t.resolve(n.anchor),t.resolve(n.head))}function yte(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(K.from(l).eq(e))return{mark:s,type:o}}function bte(e,t,n,r,i){if(n-t<=i.pos-r.pos||OE(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.inlineContent){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(OE(a,!0,!0));return!o.parent.isTextblock||o.pos>n||OE(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function xte(e,t,n){let r=0,i=0;return e.nodesBetween(t,n,(e,a)=>{e.isTextblock&&a>=t&&a<n?r++:(e.isText?/\S/.test(e.text.slice(Math.max(0,t-a),Math.min(e.nodeSize,n-a))):e.isLeaf)&&i++}),i==0&&r==1}function OE(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function Ste(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var kE=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new fT,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(PE),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=ME(this),jE(this),this.nodeViews=NE(this),this.docView=JC(this.state.doc,AE(this),yE(this),this.dom,this),this.domObserver=new CE(this,(e,t,n,r)=>vte(this,e,t,n,r)),this.domObserver.start(),pT(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&gT(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(PE),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(BT(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=NE(this);wte(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&gT(this),this.editable=ME(this),jE(this);let o=yE(this),s=AE(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&dC(this);if(i){this.domObserver.stop();let t=l&&(JS||QS)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Cte(n.selection,e.selection);if(l){let n=QS?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=VT(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=JC(e.doc,s,o,this.dom,this)),!n||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Ow(this)&&i.delaySelUpdate())?gw(this,t):(Cw(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&pC(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&IS(this.dom,e)&&!this.someProp(`handleScrollToSelection`,e=>e(this))){if(this.state.selection instanceof Lx){let t=this.docView.domAfterPos(this.state.selection.from);PS(t)&&uC(this,t.getBoundingClientRect(),e)}else uC(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new YT(e.slice,e.move,r<0?void 0:Lx.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(JS){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&gC(this.dom),gw(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return wC(this,e)}coordsAtPos(e,t=1){return OC(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return RC(this,t||this.state,e)}pasteHTML(e,t){return qT(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return qT(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return qw(this,e)}destroy(){this.docView&&(hT(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],yE(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,ote())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return yT(this,e)}domSelectionRange(){let e=this.dom.isConnected!==!1&&this.domSelection();return e?eC&&this.root.nodeType===11&&BS(this.dom.ownerDocument)==this.dom&&fte(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};kE.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function AE(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[iE.node(0,e.state.doc.content.size,t)]}function jE(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:iE.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function ME(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function Cte(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function NE(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function wte(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function PE(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var FE={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},IE={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},Tte=typeof navigator<`u`&&/Mac/.test(navigator.platform),Ete=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),LE=0;LE<10;LE++)FE[48+LE]=FE[96+LE]=String(LE);for(var LE=1;LE<=24;LE++)FE[LE+111]=`F`+LE;for(var LE=65;LE<=90;LE++)FE[LE]=String.fromCharCode(LE+32),IE[LE]=String.fromCharCode(LE);for(var RE in FE)IE.hasOwnProperty(RE)||(IE[RE]=FE[RE]);function Dte(e){var t=!(Tte&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Ete&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?IE:FE)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var Ote=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),kte=typeof navigator<`u`&&/Win/.test(navigator.platform);function Ate(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))Ote?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function jte(e){let t=Object.create(null);for(let n in e)t[Ate(n)]=e[n];return t}function zE(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function Mte(e){return new Yx({props:{handleKeyDown:BE(e)}})}function BE(e){let t=jte(e);return function(e,n){let r=Dte(n),i,a=t[zE(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[zE(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(kte&&n.ctrlKey&&n.altKey)&&(i=FE[n.keyCode])&&i!=r){let r=t[zE(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var VE=200,HE=function(){};HE.prototype.append=function(e){return e.length?(e=HE.from(e),!this.length&&e||e.length<VE&&this.leafAppend(e)||this.length<VE&&e.leafPrepend(this)||this.appendInner(e)):this},HE.prototype.prepend=function(e){return e.length?HE.from(e).append(this):this},HE.prototype.appendInner=function(e){return new Nte(this,e)},HE.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?HE.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},HE.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},HE.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},HE.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},HE.from=function(e){return e instanceof HE?e:e&&e.length?new UE(e):HE.empty};var UE=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=VE)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=VE)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(HE);HE.empty=new UE([]);var Nte=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(HE),Pte=500,WE=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step)i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);else{if(i){u.push(new GE(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new GE(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1}},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new GE(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>Ite&&(s=Fte(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new Tb;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new GE(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;n=Math.min(this.items.length,n);let r=[],i=this.items.length-n,a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new GE(i,o,l))}else r.push(new GE(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new GE(a.maps[e]));let u=this.items.slice(0,i).append(l).append(r),d=new e(u,s);return d.emptyItemCount()>Pte&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new GE(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(HE.from(i.reverse()),a)}};WE.empty=new WE(HE.empty,0);function Fte(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var GE=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},KE=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},Ite=20;function Lte(e,t,n,r){let i=n.getMeta($E),a;if(i)return i.historyState;n.getMeta(eD)&&(e=new KE(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta($E))return o.getMeta($E).redo?new KE(e.done.addTransform(n,void 0,r,ZE(t)),e.undone,qE(n.mapping.maps),e.prevTime,e.prevComposition):new KE(e.done,e.undone.addTransform(n,void 0,r,ZE(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!Rte(n,e.prevRanges)),s=o?JE(e.prevRanges,n.mapping):qE(n.mapping.maps);return new KE(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,ZE(t)),WE.empty,s,n.time,i??e.prevComposition)}return(a=n.getMeta(`rebased`))?new KE(e.done.rebased(n,a),e.undone.rebased(n,a),JE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new KE(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),JE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function Rte(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function qE(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function JE(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function zte(e,t,n){let r=ZE(t),i=$E.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new KE(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta($E,{redo:n,historyState:c})}var YE=!1,XE=null;function ZE(e){let t=e.plugins;if(XE!=t){YE=!1,XE=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){YE=!0;break}}return YE}function QE(e){return e.setMeta(eD,!0)}var $E=new Qx(`history`),eD=new Qx(`closeHistory`);function Bte(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Yx({key:$E,state:{init(){return new KE(WE.empty,WE.empty,null,0,-1)},apply(t,n,r){return Lte(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?nD:n==`historyRedo`?rD:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function tD(e,t){return(n,r)=>{let i=$E.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=zte(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var nD=tD(!1,!0),rD=tD(!0,!0);function Vte(e){return e.getMeta($E)!=null}function iD(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var aD=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:iD({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},Hte=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),Ute=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),Wte=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=Ub(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},Gte=e=>t=>e(t),Kte=()=>({state:e,dispatch:t})=>gS(e,t),qte=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new Fx(r.doc.resolve(Math.max(o-1,0)))),!0},Jte=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function oD(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Yte=e=>({tr:t,state:n,dispatch:r})=>{let i=oD(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},Xte=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},Zte=e=>e.content?/^text(\*|\+)/.test(e.content):!1,sD=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return Zte(r)?n===`left`?e.start()-1:e.end()+1:e.pos},Qte=(e,t,n)=>({from:sD(e,n,`left`),to:sD(t,n,`right`)}),$te=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=Qte(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(Fx.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},ene=()=>({commands:e})=>e.keyboardShortcut(`Enter`),tne=()=>({state:e,dispatch:t})=>hS(e,t);function cD(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function lD(e,t,n={strict:!0}){let r=Object.keys(t);return!r.length||r.every(r=>n.strict?t[r]===e[r]:cD(t[r])?t[r].test(e[r]):t[r]===e[r])}function uD(e,t,n={}){return e.find(e=>e.type===t&&lD(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function dD(e,t,n={}){return!!uD(e,t,n)}function fD(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if(r.node&&r.node.marks.some(e=>e.type===t)||(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!uD([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&dD([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&dD([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function pD(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var nne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=pD(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=fD(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=Fx.create(o,e.from,e.to);n.setSelection(t)}}return!0},rne=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function mD(e){return e instanceof Fx}function hD(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function gD(e,t=null){if(!t)return null;let n=jx.atStart(e),r=jx.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?Fx.create(e,hD(0,i,a),hD(e.content.size,i,a)):Fx.create(e,hD(t,i,a),hD(t,i,a))}function _D(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function vD(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function ine(){return typeof navigator<`u`&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}var ane=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(vD()||_D())&&r.dom.focus(),ine()&&!vD()&&!_D()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!mD(n.state.selection))return o(),!0;let s=gD(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},one=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),sne=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),yD=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&yD(r)}return e};function bD(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return yD(n)}function xD(e){return typeof e?.nodesBetween==`function`}function SD(e,t,n){if(xD(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return K.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),SD(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new Uy({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?qy.fromSchema(a).parseSlice(bD(e),n.parseOptions):qy.fromSchema(a).parse(bD(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=qy.fromSchema(t);return n.slice?r.parseSlice(bD(e),n.parseOptions).content:r.parse(bD(e),n.parseOptions)}return SD(``,t,n)}function CD(e){return!(`type`in e)}function wD(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof Ib||i instanceof Lb))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(jx.near(e.doc.resolve(o),n))}var cne=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{SD(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=SD(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=CD(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):xD(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=K.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&wD(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function TD(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var lne=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=TD(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=SD(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&wD(t,t.steps.length-1,-1)),!0):!1},une=()=>({state:e,dispatch:t})=>Uee(e,t),dne=()=>({state:e,dispatch:t})=>Wee(e,t),fne=()=>({state:e,dispatch:t})=>iS(e,t),pne=()=>({state:e,dispatch:t})=>uS(e,t),ED=(e,t)=>{let n=e.resolve(t),r=n.nodeBefore,i=n.nodeAfter;return!r||!i?!1:!r.type.spec.isolating&&!i.type.spec.isolating},mne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=ox(e.doc,e.selection.$from.pos,-1);return r==null||!ED(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},hne=()=>({state:e,dispatch:t,tr:n})=>{try{let r=ox(e.doc,e.selection.$from.pos,1);return r==null||!ED(e.doc,r)?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},gne=()=>({state:e,dispatch:t})=>Vee(e,t),_ne=()=>({state:e,dispatch:t})=>Hee(e,t);function DD(){return typeof navigator<`u`&&/Mac/.test(navigator.platform)}function OD(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))vD()||DD()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var vne=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=OD(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function kD(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?oD(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>!o||o.name===e.node.type.name).filter(e=>lD(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var AD=(e,t={})=>({state:n,dispatch:r})=>kD(n,oD(e,n.schema),t)?Gee(n,r):!1,jD=()=>({state:e,dispatch:t})=>_S(e,t),MD=e=>({state:t,dispatch:n})=>nte(oD(e,t.schema))(t,n),ND=()=>({state:e,dispatch:t})=>pS(e,t);function PD(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function FD(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var yne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=PD(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=oD(e,r.schema)),s===`mark`&&(o=pD(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,FD(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(FD(a.attrs,t))))})})}),c},bne=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),xne=()=>({tr:e,dispatch:t})=>{if(t){let t=new Rx(e.doc);e.setSelection(t)}return!0},Sne=()=>({state:e,dispatch:t})=>sS(e,t),ID=()=>({state:e,dispatch:t})=>dS(e,t),LD=()=>({state:e,dispatch:t})=>Jee(e,t),RD=()=>({state:e,dispatch:t})=>xS(e,t),zD=()=>({state:e,dispatch:t})=>bS(e,t);function BD(e,t,n={},r={}){return SD(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var VD=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=BD(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=CD(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function HD(e,t){let n=pD(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function UD(e,t){let n=new kx(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function WD(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function GD(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function KD(e){return t=>GD(t.$from,e)}function qD(e,t,n){return e.config[t]===void 0&&e.parent?qD(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?qD(e.parent,t,n):null}):e.config[t]}function JD(e){return e.map(e=>{let t=qD(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...JD(t())]:e}).flat(10)}function YD(e,t){let n=sb.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function XD(e,t){let n=new Map;for(let t of e){let e=n.get(t.type)??new Map;e.set(t.name,t),n.set(t.type,e)}return[...Object.values(t.nodes),...Object.values(t.marks)].flatMap(e=>Object.entries(e.spec.attrs??{}).map(([t,r])=>{let i=n.get(e.name)?.get(t),a=Object.hasOwn(r,`default`);return{type:e.name,name:t,attribute:{rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,...i?.attribute,default:r.default,isRequired:!a,validate:r.validate}}}))}var Cne={content:`string`,marks:`string`,group:`string`,inline:`boolean`,atom:`boolean`,selectable:`boolean`,draggable:`boolean`,code:`boolean`,whitespace:[`pre`,`normal`],definingAsContext:`boolean`,definingForContent:`boolean`,defining:`boolean`,isolating:`boolean`,linebreakReplacement:`boolean`},wne={inclusive:`boolean`,excludes:`string`,group:`string`,spanning:`boolean`,code:`boolean`};function Tne(e,t,n){return Object.fromEntries(Object.entries(t).flatMap(([t,r])=>{let i=e[t];if(i===void 0)return[];if(!(typeof r==`string`?typeof i===r:typeof i==`string`&&r.includes(i)))throw RangeError(`Invalid schemaSpec field '${n}.${t}'`);return[[t,i]]}))}function ZD(e,t,n,r){return{...Object.fromEntries(Object.entries(t).filter(([e])=>e!==`attrs`&&!Object.hasOwn(r,e))),...Tne(n,r,e),attrs:n.attrs}}function QD(e,t,n){for(let r of Object.keys(t))if(!Object.hasOwn(e,r))throw RangeError(`schemaSpec requires a local ${n} extension named '${r}'`);for(let r of Object.keys(e))if(!Object.hasOwn(t,r))throw RangeError(`Local ${n} extension '${r}' is not in schemaSpec`)}function Ene(e,t){QD(e.nodes,t.nodes,`node`),QD(e.marks,t.marks,`mark`);let n=t.spec.nodes,r=t.spec.marks;return t.spec.nodes.forEach((t,r)=>{n=n.update(t,ZD(t,e.nodes[t],r,Cne))}),t.spec.marks.forEach((t,n)=>{r=r.update(t,ZD(t,e.marks[t],n,wne))}),{topNode:t.topNodeType.name,nodes:n,marks:r}}function $D(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function eO(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function tO(e){let t=[],{nodeExtensions:n,markExtensions:r}=eO(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=qD(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=qD(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function nO(e){return typeof e==`function`}function rO(e,t=void 0,...n){return nO(e)?t?e.bind(t)(...n):e(...n):e}function iO(e={}){return Object.keys(e).length===0&&e.constructor===Object}function aO(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i)r=!r,n+=o;else if(o===`"`&&!r)i=!i,n+=o;else{if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}}return n&&t.push(n),t}function oO(e){let t=[],n=aO(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function sO(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`)Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});else if(!n[e])n[e]=t;else if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...oO(n[e]),...oO(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function cO(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>sO(e,t),{})}function lO(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`||e!==`false`&&e:e}function uO(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):lO(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function dO(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&iO(t)?!1:t!=null))}function fO(e){var t,n;let r={};return!(e!=null&&(t=e.attribute)!=null&&t.isRequired)&&`default`in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function pO(e,t,n=tO(e)){let{nodeExtensions:r,markExtensions:i}=eO(e);return{topNode:r.find(e=>qD(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=dO({...e.reduce((e,t)=>{let n=qD(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:rO(qD(r,`content`,a)),marks:rO(qD(r,`marks`,a)),group:rO(qD(r,`group`,a)),inline:rO(qD(r,`inline`,a)),atom:rO(qD(r,`atom`,a)),selectable:rO(qD(r,`selectable`,a)),draggable:rO(qD(r,`draggable`,a)),code:rO(qD(r,`code`,a)),whitespace:rO(qD(r,`whitespace`,a)),linebreakReplacement:rO(qD(r,`linebreakReplacement`,a)),defining:rO(qD(r,`defining`,a)),isolating:rO(qD(r,`isolating`,a)),attrs:Object.fromEntries(i.map(fO))}),s=rO(qD(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>uO(e,i)));let c=qD(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:cO(e,i)}));let l=qD(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=dO({...e.reduce((e,t)=>{let n=qD(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:rO(qD(r,`inclusive`,a)),excludes:rO(qD(r,`excludes`,a)),group:rO(qD(r,`group`,a)),spanning:rO(qD(r,`spanning`,a)),code:rO(qD(r,`code`,a)),attrs:Object.fromEntries(i.map(fO))}),s=rO(qD(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>uO(e,i)));let c=qD(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:cO(e,i)})),[r.name,o]}))}}function mO(e,t,n){if(n===void 0)return new Uy(pO(e,t));let r=$D(e.filter(e=>e.type!==`extension`).map(e=>e.name));if(r.length)throw RangeError(`Duplicate local schema types: ${r.join(`, `)}`);let i=new Uy(n);return new Uy(Ene(pO(e,t,XD(tO(e),i)),i))}function hO(e){return e.sort((e,t)=>{let n=qD(e,`priority`)||100,r=qD(t,`priority`)||100;return n>r?-1:+(n<r)})}function gO(e){let t=hO(JD(e)),n=$D(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function _O(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
+
+`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function vO(e,t){return _O(e,{from:0,to:e.content.size},t)}function yO(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function bO(e,t){let n=oD(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function xO(e,t){let n=PD(typeof t==`string`?t:t.name,e.schema);return n===`node`?bO(e,t):n===`mark`?HD(e,t):{}}function SO(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function CO(e){let t=SO(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function wO(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),CO(r)}function TO(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=fD(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{e&&e?.nodeSize!==void 0&&r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var EO=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]},DO=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function OO(e,t){return t.nodes[e]||t.marks[e]||null}function kO(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var AO=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function jO(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?pD(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!a||a.name===e.type.name).find(e=>lD(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>!a||a.name===e.mark.type.name).filter(e=>lD(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>!a||e.mark.type!==a&&e.mark.type.excludes(a)).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function MO(e,t,n={}){if(!t)return kD(e,null,n)||jO(e,null,n);let r=PD(t,e.schema);return r===`node`?kD(e,t,n):r===`mark`&&jO(e,t,n)}var Dne=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=KD(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},One=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function NO(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function PO(e,t){let{nodeExtensions:n}=eO(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=rO(qD(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`&&i.split(` `).includes(`list`)}function FO(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(FO(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function IO(e){return e instanceof Lx}function kne(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.apply==`function`&&typeof t.getMap==`function`&&typeof t.invert==`function`&&typeof t.map==`function`&&typeof t.merge==`function`&&typeof t.toJSON==`function`}function Ane(e){if(typeof e!=`object`||!e)return!1;let t=e;if(!kne(t))return!1;let n=t.toJSON();return!(typeof n!=`object`||!n||n.stepType!==`replace`)}var LO=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function jne(e,t){let n=t.mapping.mapResult(e.position);return{position:new LO(n.pos),mapResult:n}}function Mne(e){return new LO(e)}function RO(e,t,n){let r=e.state.doc.content.size,i=hD(t,0,r),a=hD(n,0,r),o=e.coordsAtPos(i),s=e.coordsAtPos(a,-1),c=Math.min(o.top,s.top),l=Math.max(o.bottom,s.bottom),u=Math.min(o.left,s.left),d=Math.max(o.right,s.right),f={top:c,bottom:l,left:u,right:d,width:d-u,height:l-c,x:u,y:c};return{...f,toJSON:()=>f}}function Nne(e,t,n){let{selection:r}=t,i=null;if(mD(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var Pne=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=pD(e,r.schema);if(i){if(o){let e=HD(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})})}return Nne(r,n,c)},Fne=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Ine=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=oD(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>SS(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>SS(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},Lne=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=hD(e,0,n.content.size),i=Lx.create(n,r);t.setSelection(i)}return!0},Rne=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},zne=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=Fx.atStart(n).from,o=Fx.atEnd(n).to,s=hD(r,a,o),c=hD(i,a,o),l=Fx.create(n,s,c);t.setSelection(l)}return!0},Bne=e=>({state:t,dispatch:n})=>ate(oD(e,t.schema))(t,n);function zO(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var Vne=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=kO(l,s.node().type.name,s.node().attrs);if(a instanceof Lx&&a.node.isBlock)return!s.parentOffset||!tx(o,s.pos)?!1:(r&&(e&&zO(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:TD(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=a instanceof Fx&&!a.empty?qx.create({doc:t.doc,selection:a}).tr.deleteSelection():null,h=m?m.doc:t.doc,g=m?m.mapping.map(s.pos):s.pos,_=tx(h,g,1,p);if(!p&&!_&&tx(h,g,1,f?[{type:f}]:void 0)&&(_=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(_){let e=t.steps.length;if(a instanceof Fx&&t.deleteSelection(),t.split(t.mapping.slice(e).map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f){let n=t.mapping.slice(e).map(s.before()),r=t.doc.resolve(n);s.node(-1).canReplaceWith(r.index(),r.index()+1,f)&&t.setNodeMarkup(t.mapping.slice(e).map(s.before()),f)}}e&&zO(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return _},Hne=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=oD(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=K.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=K.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...kO(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(K.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new q(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(Fx.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...kO(d,u.type.name,u.attrs),...t},m={...kO(d,s.node().type.name,s.node().attrs),...t},h=s.parentOffset===0&&s.index(-1)===0,g=s.before(-1);n.delete(s.pos,c.pos);let _=h?u.attrs:p,v=f?[{type:o,attrs:_},{type:f,attrs:m}]:[{type:o,attrs:_}];if(!tx(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,v).scrollIntoView(),h&&n.setNodeMarkup(g,void 0,p),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function BO(e,t,n){if(!e.validContent(t))return null;try{return e.create(n,t)}catch{return null}}function VO(e,t){if(e.pendingContent.length===0)return!0;let n=BO(t,K.from(e.pendingContent));return n?(e.items.push(n),e.pendingContent=[],!0):!1}function Une(e,t,n){return n.validContent(K.from([...t.pendingContent,e]))?(t.pendingContent.push(e),!0):!VO(t,n)||!n.validContent(K.from(e))?!1:(t.pendingContent.push(e),!0)}function Wne(e,t,n,r){let i=r(e,n);if(!i)return!1;let a=BO(n.listType,K.from(i),e.attrs);return a?n.itemType.validContent(K.from([...t.pendingContent,a]))?(t.pendingContent.push(a),!0):VO(t,n.itemType)?(t.items.push(...i),!0):!1:!1}function Gne(e,t,n){let r={items:[],pendingContent:[]};for(let i=0;i<e.childCount;i+=1){let a=e.child(i);if(!(t.isListNode(a)?Wne(a,r,t,n):Une(a,r,t.itemType)))return null}return VO(r,t.itemType)?r.items:null}function HO(e,t){let n=[];for(let r=0;r<e.childCount;r+=1){let i=Gne(e.child(r),t,HO);if(!i)return null;n.push(...i)}return n}function UO(e,t){let n=null;return e.descendants((e,r)=>e!==t||(n=r,!1)),n}function WO(e){return!e||e===`1`?null:e}function GO(e,t){return WO(e)===WO(t)}var KO=(e,t)=>{let n=KD(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&rx(e.doc,n.pos))||!GO(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},qO=(e,t)=>{let n=KD(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&rx(e.doc,r))||!GO(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function Kne(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return Fx.between(r,i)}var qne=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=oD(e,o.schema),m=oD(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=KD(e=>PO(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&PO(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=Kne(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(PO(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>KO(a,p)).command(()=>qO(a,p)).run();if(PO(E.node.type.name,d)){let e=E.node.firstChild?.type;if(e&&e!==m){let e=HO(E.node,{listType:p,itemType:m,isListNode:e=>PO(e.type.name,d)}),t=e?K.from(e):null;return!t||!p.validContent(t)?!1:c().command(()=>{let{$anchor:e,$head:n}=a.selection,i=e.parent,o=n.parent,s=e.parentOffset,c=n.parentOffset,l;try{l=p.create(r,t)}catch{return!1}if(a.replaceWith(E.pos,E.pos+E.node.nodeSize,l),i.inlineContent&&o.inlineContent){let e=UO(l,i),t=UO(l,o);if(e!==null&&t!==null){let n=E.pos+e+2+s,r=E.pos+t+2+c;a.setSelection(Fx.create(a.doc,n,r))}}return!0}).command(()=>KO(a,p)).command(()=>qO(a,p)).run()}}}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>KO(a,p)).command(()=>qO(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>KO(a,p)).command(()=>qO(a,p)).run()},Jne=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=pD(e,r.schema);return jO(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},Yne=(e,t,n={})=>({state:r,commands:i})=>{let a=oD(e,r.schema),o=oD(t,r.schema),s=kD(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},Xne=(e,t={})=>({state:n,commands:r})=>{let i=oD(e,n.schema);return kD(n,i,t)?r.lift(i):r.wrapIn(i,t)},Zne=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},Qne=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},$ne=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=pD(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=fD(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},ere=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},tre=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=PD(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=oD(e,r.schema)),s===`mark`&&(o=pD(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},JO=new Qx(`__tiptap_decorations__`),YO=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(JO,{type:`force`,name:e}),!0),XO=(e,t={})=>({state:n,dispatch:r})=>Zee(oD(e,n.schema),t)(n,r),ZO=(e,t={})=>({state:n,dispatch:r})=>$ee(oD(e,n.schema),t)(n,r),QO=Bee({blur:()=>Hte,clearContent:()=>Ute,clearNodes:()=>Wte,command:()=>Gte,createParagraphNear:()=>Kte,cut:()=>qte,deleteCurrentNode:()=>Jte,deleteNode:()=>Yte,deleteRange:()=>Xte,deleteSelection:()=>$te,enter:()=>ene,exitCode:()=>tne,extendMarkRange:()=>nne,first:()=>rne,focus:()=>ane,forEach:()=>one,insertContent:()=>sne,insertContentAt:()=>cne,insertDefaultBlock:()=>lne,joinBackward:()=>fne,joinDown:()=>dne,joinForward:()=>pne,joinItemBackward:()=>mne,joinItemForward:()=>hne,joinTextblockBackward:()=>gne,joinTextblockForward:()=>_ne,joinUp:()=>une,keyboardShortcut:()=>vne,lift:()=>AD,liftEmptyBlock:()=>jD,liftListItem:()=>MD,newlineInCode:()=>ND,resetAttributes:()=>yne,scrollIntoView:()=>bne,selectAll:()=>xne,selectNodeBackward:()=>Sne,selectNodeForward:()=>ID,selectParentNode:()=>LD,selectTextblockEnd:()=>RD,selectTextblockStart:()=>zD,setContent:()=>VD,setMark:()=>Pne,setMeta:()=>Fne,setNode:()=>Ine,setNodeSelection:()=>Lne,setTextDirection:()=>Rne,setTextSelection:()=>zne,sinkListItem:()=>Bne,splitBlock:()=>Vne,splitListItem:()=>Hne,toggleList:()=>qne,toggleMark:()=>Jne,toggleNode:()=>Yne,toggleWrap:()=>Xne,undoInputRule:()=>Zne,unsetAllMarks:()=>Qne,unsetMark:()=>$ne,unsetTextDirection:()=>ere,updateAttributes:()=>tre,updateDecorations:()=>YO,wrapIn:()=>XO,wrapInList:()=>ZO}),$O=new WeakMap;function ek(e,t){$O.set(e,($O.get(e)??0)+1);try{return t()}finally{let t=($O.get(e)??1)-1;t>0?$O.set(e,t):$O.delete(e)}}function tk(e){return $O.has(e)}var nk=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},rk=typeof process<`u`&&!1;function ik(e){return e.kind===`widget`}function ak(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&ik(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}function ok(e,t,n){let{decorations:r,widgetKeys:i}=ak(t,n);return{set:sE.create(e,r),widgetKeys:i}}function sk({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n||e===n&&n===r}function ck({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>sk({position:e.anchor,from:t,to:n,docSize:r})?!0:(e.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function lk(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function uk(e){let t=new Map,n=new Map;for(let r of e.find()){let e=lk(r);if(!e)continue;let i=r.spec.extensionName??`unknown`,a=t.get(e)??new Set;a.add(i),t.set(e,a),n.set(e,(n.get(e)??0)+1)}return Array.from(t,([e,t])=>({key:e,extensions:t})).filter(({key:e})=>(n.get(e)??0)>1)}function dk(e){return e.jsonID===`attr`}function fk(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||dk(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function pk(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){let o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function mk(e,t){if(e.steps.some(e=>!fk(e)))return{type:`full`};let n=wO(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!dk(t))return;let i=e.mapping.slice(r);n.push({from:i.map(t.pos,-1),to:i.map(t.pos+1)})});let r=[];for(let e of n){let n=pk(t,e);n&&r.push(n)}r.sort((e,t)=>e.from-t.from);let i=[];for(let e of r){let t=i[i.length-1];t&&e.from<=t.to?t.to=Math.max(t.to,e.to):i.push({...e})}return{type:`ranges`,ranges:i}}function hk(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function gk(e,t,n){let r=t.decorationSetsByExtension[e]??sE.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:hk(r,n.mapping,n.doc,i),widgetKeys:i}}function _k(e,t){let n=Object.values(t).flatMap(e=>e.find());return sE.create(e,n)}function vk(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function yk(e,t){switch(t.update??`document`){case`document`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case`changedRanges`:if(!t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case`manual`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function bk(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var xk=new Set,Sk=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=JO.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>yk(e,t)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on(`beforeTransaction`,this.handleBeforeTransaction)}destroy(){this.editor.off(`beforeTransaction`,this.handleBeforeTransaction)}liveWidgetKeys(){return JO.getState(this.editor.state)?.widgetKeys??xk}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){let t=[];for(let{name:n,addDecorations:r}of e){let e=r();e&&t.push({name:n,spec:e})}return t}createPlugin(){let{editor:e,entries:t}=this;return new Yx({key:JO,state:{init:(e,n)=>{let r={},i={};for(let{name:e,spec:a}of t){let{set:t,widgetKeys:o}=this.buildFullSet(e,a,n);r[e]=t,i[e]=o}let a={decorationSetsByExtension:r,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(n.doc,r),widgetKeys:vk(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(JO),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return ek(e,()=>{for(let{name:o,spec:f}of t){let t=s||c===o;if(!bk(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=gk(o,r,n);l[o]=e.set,u[o]=e.widgetKeys}else if(f.update===`changedRanges`&&n.docChanged&&!t){let e=this.applyChangedRangesRecompute(o,f,r,n,a);l[o]=e.set,u[o]=e.widgetKeys,d.add(o)}else{let{set:e,widgetKeys:t}=this.buildFullSet(o,f,a);l[o]=e,u[o]=t,d.add(o)}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:l,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:d}),widgetKeys:vk(u)}}},props:{decorations(e){return JO.getState(e)?.mergedDecorationSet??sE.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=mk(r,i.doc);return a.type===`full`?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){let o=n.decorationSetsByExtension[e]??sE.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=hk(o,r.mapping,r.doc,s),l=i.doc.content.size;for(let{from:n,to:r}of a){let a=c.find(n,r).filter(e=>sk({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=lk(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=ak(ck({decorations:this.runCreate(e,`createInRange`,()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:n,to:r})),from:n,to:r,docSize:l,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,o);for(let e of u)s.add(e)}return{set:c,widgetKeys:s}}buildFullSet(e,t,n){let r=this.runCreate(e,`create`,()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return ok(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(n){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,n),[]}}warnDuplicateWidgetKeys(e){if(!rk)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=uk(e.mergedDecorationSet),n=new Set(t.map(({key:e})=>e));for(let{key:e,extensions:n}of t){if(this.warnedWidgetKeys.has(e))continue;let t=Array.from(n).map(e=>`"${e}"`).join(`, `);console.warn(`[tiptap warn]: Duplicate widget decoration key "${e}" in extension${n.size===1?``:`s`} ${t}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){let n=Object.keys(t);return n.length===1?t[n[0]]:_k(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):_k(n.doc,r)}};function Ck(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof Lx){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}function wk(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}function Tk(e){return typeof e==`number`}function Ek(e){return Object.prototype.toString.call(e).slice(8,-1)}function Dk(e){return Ek(e)===`Object`&&e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Ok(e,t,n){let r=e.split(`
`),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],u=e.match(t.itemPattern);if(!u){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}\n`;continue}return}let d=t.extractItemData(u),{indentLevel:f,mainContent:p}=d;a=`${a}${e}\n`;let m=[p];for(o+=1;o<r.length;){var c;let e=r[o];if(e.trim()===``){var l;let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((((l=r[o+1+t].match(/^(\s*)/))==null||(l=l[1])==null?void 0:l.length)||0)>f){m.push(e),a=`${a}${e}\n`,o+=1;continue}break}if((((c=e.match(/^(\s*)/))==null||(c=c[1])==null?void 0:c.length)||0)>f)m.push(e),a=`${a}${e}\n`,o+=1;else break}let h,g=m.slice(1);if(g.length>0){let e=g.map(e=>e.slice(f+s)).join(`
-`);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var ok=4;function sk(e){let t=0;for(let n of e)t=n===` `?t+ok-t%ok:t+1;return t}function ck(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=sk(a);return(sk(n)>=r?n:` `.repeat(r))+e},o=r.split(`
+`);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var kk=4;function Ak(e){let t=0;for(let n of e)t=n===` `?t+kk-t%kk:t+1;return t}function jk(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>0&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=Ak(a);return(Ak(n)>=r?n:` `.repeat(r))+e},o=r.split(`
`).map(e=>n(e||``)).join(`
-`);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function lk(e,t){let n={...e};return ik(e)&&ik(t)&&Object.keys(t).forEach(r=>{ik(t[r])&&ik(e[r])?n[r]=lk(e[r],t[r]):n[r]=t[r]}),n}function uk(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var dk=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},fk=(e,t)=>{if(HE(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function pk(e){let{editor:t,from:n,to:r,text:i,insertText:a}=e;if(!a)return{inputTransaction:null,tr:t.view.state.tr};let o=t.view.state.tr.insertText(i,n,r);return{inputTransaction:o,tr:Tx.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function mk(e){let{editor:t,from:n,to:r,text:i,rule:a,match:o,plugin:s,insertText:c}=e,{view:l}=t,{inputTransaction:u,tr:d}=pk({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=RE({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new zE({editor:t,state:p});return a.handler({state:p,range:m,match:o,commands:h,chain:g,can:_})===null||!d.steps.length?!1:(u&&(l.dispatch(u),!l.state.doc.eq(u.doc))||(ME(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function hk(e,t,n){let r=t[0].length-n.length;if(r<=0)return!0;let i=e.parentOffset-r;return i>=0&&e.parent.textBetween(i,e.parentOffset)===t[0].slice(0,r)}function gk(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o,insertText:s}=e,{view:c}=t;if(c.composing)return!1;let l=c.state.doc.resolve(n);if(l.parent.type.spec.code||(l.nodeBefore||l.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let u=aO(l)+i;for(let e of a){let a=fk(u,e.find);if(a&&hk(l,a,i)&&mk({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function _k(e){let{editor:t,rules:n}=e,r=new Dx({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:wD(K.from(e),a.schema);let{from:i}=s,o=i+e.length;gk({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return gk({editor:t,from:i,to:a,text:o,rules:n,plugin:r,insertText:!0})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&gk({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?gk({editor:t,from:a.pos,to:a.pos,text:`
-`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var vk=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...ID(SD(this,`addOptions`,{name:this.name}))}}get storage(){return{...ID(SD(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>lk(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},yk=class e extends vk{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},bk=class{constructor(e){this.find=e.find,this.handler=e.handler}},xk=(e,t,n)=>{if(HE(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function Sk(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new zE({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var f;if((f=e.type)!=null&&(f=f.spec)!=null&&f.code||!(e.isText||e.isTextblock||e.isInline))return;let p=e.content?.size??e.nodeSize??0,m=Math.max(r,t),h=Math.min(i,t+p);m>=h||xk(e.isText?e.text||``:e.textBetween(m-t,h-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=m+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var Ck=null,wk=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function Tk(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr,l=RE({state:e,transaction:c});if(Sk({editor:t,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})&&c.steps.length){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return t.on(`destroy`,()=>{Ck===t&&(Ck=null)}),n.map(e=>new Dx({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(Ck=t)},i=()=>{Ck&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=Ck;e?.isEditable&&setTimeout(()=>{if(e.isDestroyed)return;let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:wD(K.from(t),r.schema);let{from:n}=d,i=n+t.length,a=wk(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(nk(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var Ek=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=GD(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=Mne(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=SD(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:rO(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=WD([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:rO(t.name,this.schema)},r=[],i=SD(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&SD(t,`exitable`,n)&&(a.ArrowRight=()=>yk.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=Nte(a);r.push(o);let s=SD(t,`addInputRules`,n);if(uO(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=_k({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=SD(t,`addPasteRules`,n);if(uO(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=Tk({editor:e,rules:t});r.push(...n)}}let l=SD(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;let{editor:t}=this;(e=this.decorationManager)==null||e.destroy();let n=[];return this.extensions.forEach(e=>{let r=SD(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:rO(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new $O({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=PD(this.extensions);return this.hasSchemaSpec?TD(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=ND(this.extensions);return Object.fromEntries(t.filter(e=>!!SD(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=SD(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:BE(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=zD(r,n);return i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}dispatchTransaction(e){let{editor:t}=this;return WD([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:rO(n.name,this.schema)},i=SD(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return WD([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:rO(n.name,this.schema)},i=SD(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=ND(this.extensions);return Object.fromEntries(t.filter(e=>!!SD(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=SD(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:qE(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=zD(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{uk(i,e,t)}})}]:[]}))}destroy(){var e;(e=this.decorationManager)==null||e.destroy(),this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:rO(e.name,this.schema)};e.type===`mark`&&((ID(SD(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(ID(SD(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=SD(e,`onBeforeCreate`,t),r=SD(e,`onCreate`,t),i=SD(e,`onUpdate`,t),a=SD(e,`onSelectionUpdate`,t),o=SD(e,`onTransaction`,t),s=SD(e,`onFocus`,t),c=SD(e,`onBlur`,t),l=SD(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};Ek.resolve=GD,Ek.sort=WD,Ek.flatten=CD;var Dk=class e extends vk{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},Ok=Dk.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Dx({key:new Ax(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=JD(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>KD(r,{from:e.pos,to:t.pos},s)).join(o??`
+`);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function Mk(e,t){let n={...e};return Dk(e)&&Dk(t)&&Object.keys(t).forEach(r=>{Dk(t[r])&&Dk(e[r])?n[r]=Mk(e[r],t[r]):n[r]=t[r]}),n}function Nk(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var Pk=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},Fk=(e,t)=>{if(cD(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function Ik(e){let{editor:t,from:n,to:r,text:i,insertText:a}=e;if(!a)return{inputTransaction:null,tr:t.view.state.tr};let o=t.view.state.tr.insertText(i,n,r);return{inputTransaction:o,tr:qx.create({doc:o.doc,selection:o.selection,storedMarks:o.storedMarks}).tr}}function Lk(e){let{editor:t,from:n,to:r,text:i,rule:a,match:o,plugin:s,insertText:c}=e,{view:l}=t,{inputTransaction:u,tr:d}=Ik({editor:t,from:n,to:r,text:i,insertText:c}),f=u?n+i.length:r,p=iD({state:l.state,transaction:d}),m={from:n-(o[0].length-i.length),to:f},{commands:h,chain:g,can:_}=new aD({editor:t,state:p});return a.handler({state:p,range:m,match:o,commands:h,chain:g,can:_})===null||!d.steps.length?!1:(u&&(l.dispatch(u),!l.state.doc.eq(u.doc))||(QE(d),d.setMeta(`inputRule`,!0),a.undoable&&d.setMeta(s,{transform:d,from:n,to:f,text:i}),l.dispatch(d)),!0)}function Rk(e,t,n){let r=t[0].length-n.length;if(r<=0)return!0;let i=e.parentOffset-r;return i>=0&&e.parent.textBetween(i,e.parentOffset)===t[0].slice(0,r)}function zk(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o,insertText:s}=e,{view:c}=t;if(c.composing)return!1;let l=c.state.doc.resolve(n);if(l.parent.type.spec.code||(l.nodeBefore||l.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let u=AO(l)+i;for(let e of a){let a=Fk(u,e.find);if(a&&Rk(l,a,i)&&Lk({editor:t,from:n,to:r,text:i,rule:e,match:a,plugin:o,insertText:s}))return!0}return!1}function Bk(e){let{editor:t,rules:n}=e,r=new Yx({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:YD(K.from(e),a.schema);let{from:i}=s,o=i+e.length;zk({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return zk({editor:t,from:i,to:a,text:o,rules:n,plugin:r,insertText:!0})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&zk({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?zk({editor:t,from:a.pos,to:a.pos,text:`
+`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var Vk=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...rO(qD(this,`addOptions`,{name:this.name}))}}get storage(){return{...rO(qD(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>Mk(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},Hk=class e extends Vk{constructor(...e){super(...e),this.type=`mark`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},Uk=class{constructor(e){this.find=e.find,this.handler=e.handler}},Wk=(e,t,n)=>{if(cD(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function Gk(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new aD({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var f;if((f=e.type)!=null&&(f=f.spec)!=null&&f.code||!(e.isText||e.isTextblock||e.isInline))return;let p=e.content?.size??e.nodeSize??0,m=Math.max(r,t),h=Math.min(i,t+p);m>=h||Wk(e.isText?e.text||``:e.textBetween(m-t,h-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=m+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var Kk=null,qk=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function Jk(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr,l=iD({state:e,transaction:c});if(Gk({editor:t,state:l,from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})&&c.steps.length){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return t.on(`destroy`,()=>{Kk===t&&(Kk=null)}),n.map(e=>new Yx({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(Kk=t)},i=()=>{Kk&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=Kk;e?.isEditable&&setTimeout(()=>{if(e.isDestroyed)return;let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:YD(K.from(t),r.schema);let{from:n}=d,i=n+t.length,a=qk(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(Tk(p)&&m&&p!==m.b)return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var Yk=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=gO(e),this.hasSchemaSpec=t.options.schemaSpec!==void 0,this.schema=mO(this.extensions,t,t.options.schemaSpec),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=qD(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:OO(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=hO([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:OO(t.name,this.schema)},r=[],i=qD(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&qD(t,`exitable`,n)&&(a.ArrowRight=()=>Hk.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=Mte(a);r.push(o);let s=qD(t,`addInputRules`,n);if(NO(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=Bk({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=qD(t,`addPasteRules`,n);if(NO(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=Jk({editor:e,rules:t});r.push(...n)}}let l=qD(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;let{editor:t}=this;(e=this.decorationManager)==null||e.destroy();let n=[];return this.extensions.forEach(e=>{let r=qD(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:OO(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new Sk({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){let e=tO(this.extensions);return this.hasSchemaSpec?XD(e,this.schema):e}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=eO(this.extensions);return Object.fromEntries(t.filter(e=>!!qD(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=qD(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:oD(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>{let l=cO(r,n);return i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}dispatchTransaction(e){let{editor:t}=this;return hO([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:OO(n.name,this.schema)},i=qD(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return hO([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:OO(n.name,this.schema)},i=qD(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=eO(this.extensions);return Object.fromEntries(t.filter(e=>!!qD(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=qD(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:pD(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=cO(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{Nk(i,e,t)}})}]:[]}))}destroy(){var e;(e=this.decorationManager)==null||e.destroy(),this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:OO(e.name,this.schema)};e.type===`mark`&&((rO(qD(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(rO(qD(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=qD(e,`onBeforeCreate`,t),r=qD(e,`onCreate`,t),i=qD(e,`onUpdate`,t),a=qD(e,`onSelectionUpdate`,t),o=qD(e,`onTransaction`,t),s=qD(e,`onFocus`,t),c=qD(e,`onBlur`,t),l=qD(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};Yk.resolve=gO,Yk.sort=hO,Yk.flatten=JD;var Xk=class e extends Vk{constructor(...e){super(...e),this.type=`extension`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},Zk=Xk.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Yx({key:new Qx(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=yO(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>_O(r,{from:e.pos,to:t.pos},s)).join(o??`
-`)}}})]}}),kk=Dk.create({name:`commands`,addCommands(){return{...Yne}}}),Ak=Dk.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=bD(e.before,[e,...t]);$D(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof ob){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),jk=Dk.create({name:`drop`,addProseMirrorPlugins(){return[new Dx({key:new Ax(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),Mk=Dk.create({name:`editable`,addProseMirrorPlugins(){return[new Dx({key:new Ax(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),Nk=new Ax(`focusEvents`),Pk=Dk.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new Dx({key:Nk,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),Fk=Dk.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:ox.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return QE()||sD()?i:r},addProseMirrorPlugins(){return[new Dx({key:new Ax(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=ox.atStart(t.doc).from,l=ox.atEnd(t.doc).to;if(a||o!==c||s!==l||!fO(n.doc))return;let u=n.tr,d=RE({state:n,transaction:u}),{commands:f}=new zE({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),Ik=Dk.create({name:`paste`,addProseMirrorPlugins(){return[new Dx({key:new Ax(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),Lk=Dk.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Dx({key:new Ax(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),Rk=Dk.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=ND(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Dx({key:new Ax(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),zk=!1;function Bk(e){if(zk)return;zk=!0;let t;try{let n=db.fromJSON(e,{from:0,to:0});if(!hO(n))return;t=n.slice.content}catch{return}t instanceof K||console.warn(`[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.`)}var Vk=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new e(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+ +!a;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let c=this.resolvedPos.doc.resolve(s);if(!i&&!o&&c.depth<=this.depth)return;let l=new e(c,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),t.push(l)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e){if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r}r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),n&&r.length>0||(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},Hk=`.ProseMirror {
+`)}}})]}}),Qk=Xk.create({name:`commands`,addCommands(){return{...QO}}}),$k=Xk.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=UD(e.before,[e,...t]);wO(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof jb){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0&&i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)),u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),eA=Xk.create({name:`drop`,addProseMirrorPlugins(){return[new Yx({key:new Qx(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),tA=Xk.create({name:`editable`,addProseMirrorPlugins(){return[new Yx({key:new Qx(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),nA=new Qx(`focusEvents`),rA=Xk.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new Yx({key:nA,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),iA=Xk.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:jx.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return vD()||DD()?i:r},addProseMirrorPlugins(){return[new Yx({key:new Qx(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=jx.atStart(t.doc).from,l=jx.atEnd(t.doc).to;if(a||o!==c||s!==l||!FO(n.doc))return;let u=n.tr,d=iD({state:n,transaction:u}),{commands:f}=new aD({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),aA=Xk.create({name:`paste`,addProseMirrorPlugins(){return[new Yx({key:new Qx(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),oA=Xk.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Yx({key:new Qx(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),sA=Xk.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=eO(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Yx({key:new Qx(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),cA=!1;function lA(e){if(cA)return;cA=!0;let t;try{let n=Ib.fromJSON(e,{from:0,to:0});if(!Ane(n))return;t=n.slice.content}catch{return}t instanceof K||console.warn(`[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.`)}var uA=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new e(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+ +!a;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let c=this.resolvedPos.doc.resolve(s);if(!i&&!o&&c.depth<=this.depth)return;let l=new e(c,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),t.push(l)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e){if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r}r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),n&&r.length>0||(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},dA=`.ProseMirror {
position: relative;
}
@@ -112,66 +112,66 @@ img.ProseMirror-separator {
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
-}`,Uk=class extends Qne{constructor(e={}){super(),this.css=null,this.className=`tiptap`,this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<`u`?document.createElement(`div`):null,content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:_O,createMappablePosition:vO},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`mount`,this.options.onMount),this.on(`unmount`,this.options.onUnmount),this.on(`contentError`,this.options.onContentError),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),this.on(`delete`,this.options.onDelete);let t=this.createDoc();if(!this.editorState){let e=XE(t,this.options.autofocus);this.editorState=Tx.create({doc:t,schema:this.schema,selection:e||void 0})}Bk(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>`u`)throw Error(`[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.`);this.createView(e),this.emit(`mount`,{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;let e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove==`function`?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn(`Failed to remove CSS element:`,e)}this.css=null,this.emit(`unmount`,{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():zE.createFakeChain()}can(){return this.commandManager?this.commandManager.can():zE.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=tk(Hk,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps({...this.options.editorProps,attributes:this.getEditorViewAttributes()}),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t===`state`)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return VO&&!this.hasWarnedStaleDecorationRead&&Zne(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=FD(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[Mk,Ok.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),kk,Pk,Fk,Lk.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),jk,Ik,Ak,Rk.configure({direction:this.options.textDirection})].filter(e=>typeof this.options.enableCoreExtensions!=`object`||this.options.enableCoreExtensions[e.name]!==!1):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type));this.extensionManager=new Ek(n,this)}createCommandManager(){this.commandManager=new zE({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=_D(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(e.message))throw e;let t=_D(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=Tx.create({doc:t,schema:this.schema,selection:XE(t,this.options.autofocus)||void 0}),this.emit(`contentError`,{editor:this,error:e,disableCollaboration:()=>{`collaboration`in this.storage&&typeof this.storage.collaboration==`object`&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),this.editorState.doc}return e}getEditorViewAttributes(){let e=this.options.editorProps?.attributes;return FD(e)?t=>({role:`textbox`,...e(t)}):{role:`textbox`,...e}}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new lE(e,{...t,attributes:this.getEditorViewAttributes(),dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();let c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let o=n.findLast(e=>e.getMeta(`focus`)||e.getMeta(`blur`)),s=o?.getMeta(`focus`),c=o?.getMeta(`blur`);s&&this.emit(`focus`,{editor:this,event:s.event,transaction:o}),c&&this.emit(`blur`,{editor:this,event:c.event,transaction:o}),e.getMeta(`preventUpdate`)||!n.some(e=>e.docChanged)||a.doc.eq(t.doc)||this.emit(`update`,{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return XD(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return sO(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return wD(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
+}`,fA=class extends nk{constructor(e={}){super(),this.css=null,this.className=`tiptap`,this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<`u`?document.createElement(`div`):null,content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:jne,createMappablePosition:Mne},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`mount`,this.options.onMount),this.on(`unmount`,this.options.onUnmount),this.on(`contentError`,this.options.onContentError),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),this.on(`delete`,this.options.onDelete);let t=this.createDoc();if(!this.editorState){let e=gD(t,this.options.autofocus);this.editorState=qx.create({doc:t,schema:this.schema,selection:e||void 0})}lA(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>`u`)throw Error(`[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.`);this.createView(e),this.emit(`mount`,{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;let e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove==`function`?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn(`Failed to remove CSS element:`,e)}this.css=null,this.emit(`unmount`,{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():aD.createFakeChain()}can(){return this.commandManager?this.commandManager.can():aD.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=wk(dA,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps({...this.options.editorProps,attributes:this.getEditorViewAttributes()}),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t===`state`)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return rk&&!this.hasWarnedStaleDecorationRead&&tk(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=nO(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[tA,Zk.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),Qk,rA,iA,oA.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),eA,aA,$k,sA.configure({direction:this.options.textDirection})].filter(e=>typeof this.options.enableCoreExtensions!=`object`||this.options.enableCoreExtensions[e.name]!==!1):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type));this.extensionManager=new Yk(n,this)}createCommandManager(){this.commandManager=new aD({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=BD(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(e.message))throw e;let t=BD(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=qx.create({doc:t,schema:this.schema,selection:gD(t,this.options.autofocus)||void 0}),this.emit(`contentError`,{editor:this,error:e,disableCollaboration:()=>{`collaboration`in this.storage&&typeof this.storage.collaboration==`object`&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),this.editorState.doc}return e}getEditorViewAttributes(){let e=this.options.editorProps?.attributes;return nO(e)?t=>({role:`textbox`,...e(t)}):{role:`textbox`,...e}}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new kE(e,{...t,attributes:this.getEditorViewAttributes(),dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();let c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let o=n.findLast(e=>e.getMeta(`focus`)||e.getMeta(`blur`)),s=o?.getMeta(`focus`),c=o?.getMeta(`blur`);s&&this.emit(`focus`,{editor:this,event:s.event,transaction:o}),c&&this.emit(`blur`,{editor:this,event:c.event,transaction:o}),e.getMeta(`preventUpdate`)||!n.some(e=>e.docChanged)||a.doc.eq(t.doc)||this.emit(`update`,{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return xO(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return MO(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return YD(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
-`,textSerializers:n={}}=e||{};return qD(this.state.doc,{blockSeparator:t,textSerializers:{...JD(this.schema),...n}})}get isEmpty(){return fO(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit(`destroy`),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){return this.editorView?.isDestroyed??!0}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){let t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new Vk(t,this,!1,n)}get $doc(){return this.$pos(0)}};function Wk(e){return new dk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=ID(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(eO(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function Gk(e){return new dk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=ID(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function Kk(e){return new dk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=ID(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function qk(e){return new dk({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=ID(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&bb(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&Mb(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var Jk=class e extends vk{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function Yk(e){return new bk({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=ID(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(eO(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var{getOwnPropertyNames:Xk,getOwnPropertySymbols:Zk}=Object,{hasOwnProperty:Qk}=Object.prototype;function $k(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function eA(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function tA(e){return e?.[Symbol.toStringTag]}function nA(e){return Xk(e).concat(Zk(e))}var rA=Object.hasOwn||((e,t)=>Qk.call(e,t));function iA(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var aA=`__v`,oA=`__o`,sA=`_owner`,cA=64,{getOwnPropertyDescriptor:lA,keys:uA}=Object,{propertyIsEnumerable:dA}=Object.prototype,fA=lA(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function pA(e,t){return e.byteLength===t.byteLength&&DA(new Uint8Array(e),new Uint8Array(t))}function mA(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-->0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function hA(e,t){return e.byteLength===t.byteLength&&DA(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function gA(e,t){return iA(e.getTime(),t.getTime())}function _A(e,t,n){if(e.name!==t.name||e.message!==t.message||e.stack!==t.stack)return!1;let r=e.cause,i=t.cause;if(r!==i&&!n.equals(r,i,`cause`,`cause`,e,t,n))return!1;let a=e.errors,o=t.errors;if(a!==o&&!n.equals(a,o,`errors`,`errors`,e,t,n))return!1;let s=uA(e),c=uA(t),l=s.length;if(!l&&!c.length)return!0;let u=0,d;for(;l-->0;)if(d=s[l],d!==`cause`&&d!==`errors`){if(d!==c[l]&&!dA.call(t,d)||!n.equals(e[d],t[d],d,d,e,t,n))return!1;++u}let f=c.length-u;return!f||f===+!!dA.call(t,`cause`)+ +!!dA.call(t,`errors`)}function vA(e,t){return e===t}function yA(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&CA(e,t,n)}function bA(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var xA=iA;function SA(e,t,n){let r=uA(e),i=uA(t),a=r.length;if(i.length!==a)return!1;let o=a<=cA,s;for(;a-->0;)if(s=r[a],!jA(e,t,s)&&(s!==i[a]&&!(o?i.includes(s):dA.call(t,s))||!n.equals(e[s],t[s],s,s,e,t,n)))return!1;return!0}function CA(e,t,n){let r=nA(e),i=r.length;if(nA(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!jA(e,t,a)&&(!rA(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))||(o=lA(e,a),s=lA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function wA(e,t){return iA(e.valueOf(),t.valueOf())}function TA(e,t){return e.source===t.source&&e.flags===t.flags}function EA(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function DA(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;let r=fA.call(e);if(r===`Float64Array`||r===`Float32Array`||r===`Float16Array`){for(;n-->0;)if(e[n]!==t[n]&&(e[n]===e[n]||t[n]===t[n]))return!1;return!0}for(;n-->0;)if(e[n]!==t[n])return!1;return!0}function OA(e,t){return e.href===t.href||e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&kA(e.searchParams,t.searchParams)}function kA(e,t){let n=e.toString(),r=t.toString();return n===r||AA(n)===AA(r)}function AA(e){return e.split(`&`).sort().join(`&`)}function jA(e,t,n){return(n===sA||n===oA||n===aA)&&!!(e.$$typeof||t.$$typeof)}var MA=`[object ArrayBuffer]`,NA=`[object Arguments]`,PA=`[object Boolean]`,FA=`[object DataView]`,IA=`[object Date]`,LA=`[object Error]`,RA=`[object Map]`,zA=`[object Number]`,BA=`[object Object]`,VA=`[object RegExp]`,HA=`[object Set]`,UA=`[object String]`,WA={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},GA=`[object URL]`,KA=Object.prototype.toString;function qA({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`&&a(h,g,_);let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);if(y==null)return c(h,g,_);let b=KA.call(h);if(b===IA)return r(h,g,_);if(b===VA)return u(h,g,_);if(b===RA)return o(h,g,_);if(b===HA)return d(h,g,_);if(b===BA)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===GA)return p(h,g,_);if(b===LA)return i(h,g,_);if(b===NA)return c(h,g,_);if(WA[b])return f(h,g,_);if(b===MA)return e(h,g,_);if(b===FA)return n(h,g,_);if(b===PA||b===zA||b===UA)return l(h,g,_);if(m){let e=m[b];if(!e){let t=tA(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function JA({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:pA,areArraysEqual:n?CA:mA,areDataViewsEqual:hA,areDatesEqual:gA,areErrorsEqual:n?yA:_A,areFunctionsEqual:vA,areMapsEqual:n?$k(bA,CA):bA,areNumbersEqual:xA,areObjectsEqual:n?CA:SA,arePrimitiveWrappersEqual:wA,areRegExpsEqual:TA,areSetsEqual:n?$k(EA,CA):EA,areTypedArraysEqual:n?$k(DA,CA):DA,areUrlsEqual:OA,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=eA(r.areArraysEqual),t=eA(r.areErrorsEqual),n=eA(r.areMapsEqual),i=eA(r.areObjectsEqual),a=eA(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function YA(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function XA({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}QA(),QA({strict:!0});var ZA=QA({circular:!0});QA({circular:!0,strict:!0}),QA({createInternalComparator:()=>iA}),QA({strict:!0,createInternalComparator:()=>iA}),QA({circular:!0,createInternalComparator:()=>iA}),QA({circular:!0,createInternalComparator:()=>iA,strict:!0});function QA(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=qA(JA(e));return XA({circular:t,comparator:a,createState:r,equals:n?n(a):YA(a),strict:i})}var $A=o((e=>{var t=Te(),n=jx();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),ej=o(((e,t)=>{t.exports=$A()}))();function tj(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!QE()&&!ZE())return;let n=e.view,r=n.root,i=(r.getSelection?.call(r)??n.dom.ownerDocument.getSelection())?.anchorNode,a=(i?.nodeType===1?i:i?.parentElement)?.closest(`[data-node-view-content-react]`);if(!a||!n.dom.contains(a))return;let o=n.input.lastKeyCode;o===13&&(n.input.lastKeyCode=null),n.domObserver.forceFlush(),n.domObserver.flush();let s=new KeyboardEvent(`keydown`,{key:`Enter`,code:`Enter`,keyCode:13,shiftKey:t.inputType===`insertLineBreak`,bubbles:!0,cancelable:!0});n.someProp(`handleKeyDown`,e=>e(n,s))?(t.preventDefault(),n.input.lastIOSEnter=0,clearTimeout(n.input.lastIOSEnterFallbackTimeout)):o===13&&(n.input.lastKeyCode=o)}var nj=new Ax(`reactMobileEnter`),rj=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},ij=({contentComponent:e})=>{let t=(0,Mx.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,G.jsx)(G.Fragment,{children:Object.values(t)})};function aj(){let e=new Set,t={},n=!1,r=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(e,n){t={...t,[e]:Oe.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}var oj=class extends H.Component{constructor(e){super(e),this.editorContentRef=H.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.view.dom?.parentNode){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t}),e.contentComponent=aj(),e.createNodeViews(),e.registerPlugin(new Dx({key:nj,props:{handleDOMEvents:{beforeinput:(t,n)=>tj(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(nj),e.view.setProps({nodeViews:{}})),e.contentComponent=null;try{if(!e.view.dom?.parentNode)return;let t=document.createElement(`div`);t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:rj(t,this.editorContentRef),...n}),e?.contentComponent&&(0,G.jsx)(ij,{contentComponent:e.contentComponent})]})}},sj=(0,H.forwardRef)((e,t)=>{let n=H.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return H.createElement(oj,{key:n,innerRef:t,...e})}),cj=H.memo(sj),lj=typeof window<`u`?H.useLayoutEffect:H.useEffect,uj=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e,t=t=>{(t?.transaction===void 0||t.transaction!==e)&&(e=t?.transaction,this.transactionNumber+=1,this.subscribers.forEach(e=>e()))},n=this.editor;return n.on(`transaction`,t),n.on(`update`,t),()=>{n.off(`transaction`,t),n.off(`update`,t)}}}};function dj(e){let[t]=(0,H.useState)(()=>new uj(e.editor)),n=(0,ej.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??ZA);return lj(()=>t.watch(e.editor),[e.editor,t]),(0,H.useDebugValue)(n),n}var fj=typeof window>`u`,pj=fj||!!(typeof window<`u`&&window.next),mj=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){let e=this.options.current.immediatelyRender,t=e??!0;return(fj||pj&&e===void 0)&&(t=!1),t?this.createEditor():null}createEditor(){return new Uk({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)},onDelete:(...e)=>{var t;return(t=this.options.current).onDelete?.call(t,...e)},onMount:(...e)=>{var t;return(t=this.options.current).onMount?.call(t,...e)},onUnmount:(...e)=>{var t;return(t=this.options.current).onUnmount?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>e===t.extensions?.[n]):e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function hj(e={},t=[]){let n=(0,H.useRef)(e);n.current=e;let[r]=(0,H.useState)(()=>new mj(n)),i=(0,Mx.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,H.useDebugValue)(i),(0,H.useEffect)(r.onRender(t)),dj({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var gj=(0,H.createContext)({editor:null});gj.Consumer;var _j=()=>(0,H.useContext)(gj),vj=(0,H.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),yj=()=>(0,H.useContext)(vj);H.forwardRef((e,t)=>{let{onDragStart:n}=yj(),r=e.as||`div`;return(0,G.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})}),H.createContext({markViewContentRef:()=>{}});var bj=(0,H.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});bj.displayName=`TiptapContext`;var xj=()=>(0,H.useContext)(bj);function Sj({children:e,...t}){let n=`editor`in t?t.editor:t.instance;if(!n)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let r=(0,H.useMemo)(()=>({editor:n}),[n]),i=(0,H.useMemo)(()=>({editor:n}),[n]);return(0,G.jsx)(gj.Provider,{value:i,children:(0,G.jsx)(bj.Provider,{value:r,children:e})})}Sj.displayName=`Tiptap`;function Cj({...e}){let{editor:t}=xj();return(0,G.jsx)(cj,{editor:t,...e})}Cj.displayName=`Tiptap.Content`,Object.assign(Sj,{Content:Cj});var wj=new WeakSet,Tj=new WeakSet;function Ej(e){let t=e;return wj.add(t),t}function Dj(e){return Array.isArray(e)&&wj.has(e)}function Oj(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&Tj.has(e)&&!Dj(e)?Oj(e):[e])}function ore(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!Dj(n)&&!Tj.has(n)?Ej(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(Dj(n))return Ej([e,r,n]);if(n.length===0)return Ej([e,r]);let t=Oj(n);return t.length===0?Ej([e,r]):Ej([e,r,...t])}return Ej(n==null?[e,r]:[e,r,n])}var kj=(e,t)=>ore(e,t),sre=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new q(n,0,0);return e.replace(l,i.after(),r),e.setSelection(ux.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},cre=/^\s*>\s$/,lre=Jk.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return kj(`blockquote`,{...RD(this.options.HTMLAttributes,e),children:kj(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
+`,textSerializers:n={}}=e||{};return vO(this.state.doc,{blockSeparator:t,textSerializers:{...yO(this.schema),...n}})}get isEmpty(){return FO(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit(`destroy`),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){return this.editorView?.isDestroyed??!0}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){let t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new uA(t,this,!1,n)}get $doc(){return this.$pos(0)}};function pA(e){return new Pk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=rO(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(TO(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function mA(e){return new Pk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=rO(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function hA(e){return new Pk({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=rO(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function gA(e){return new Pk({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=rO(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&Gb(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&rx(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var _A=class e extends Vk{constructor(...e){super(...e),this.type=`node`}static create(t={}){let n=typeof t==`function`?t():t;return new e(n)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function vA(e){return new Uk({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=rO(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(TO(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}var{getOwnPropertyNames:yA,getOwnPropertySymbols:bA}=Object,{hasOwnProperty:xA}=Object.prototype;function SA(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function CA(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function wA(e){return e?.[Symbol.toStringTag]}function TA(e){return yA(e).concat(bA(e))}var EA=Object.hasOwn||((e,t)=>xA.call(e,t));function DA(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var OA=`__v`,kA=`__o`,AA=`_owner`,jA=64,{getOwnPropertyDescriptor:MA,keys:NA}=Object,{propertyIsEnumerable:PA}=Object.prototype,FA=MA(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function IA(e,t){return e.byteLength===t.byteLength&&XA(new Uint8Array(e),new Uint8Array(t))}function LA(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-->0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function RA(e,t){return e.byteLength===t.byteLength&&XA(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function zA(e,t){return DA(e.getTime(),t.getTime())}function BA(e,t,n){if(e.name!==t.name||e.message!==t.message||e.stack!==t.stack)return!1;let r=e.cause,i=t.cause;if(r!==i&&!n.equals(r,i,`cause`,`cause`,e,t,n))return!1;let a=e.errors,o=t.errors;if(a!==o&&!n.equals(a,o,`errors`,`errors`,e,t,n))return!1;let s=NA(e),c=NA(t),l=s.length;if(!l&&!c.length)return!0;let u=0,d;for(;l-->0;)if(d=s[l],d!==`cause`&&d!==`errors`){if(d!==c[l]&&!PA.call(t,d)||!n.equals(e[d],t[d],d,d,e,t,n))return!1;++u}let f=c.length-u;return!f||f===+!!PA.call(t,`cause`)+ +!!PA.call(t,`errors`)}function VA(e,t){return e===t}function HA(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&KA(e,t,n)}function UA(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var WA=DA;function GA(e,t,n){let r=NA(e),i=NA(t),a=r.length;if(i.length!==a)return!1;let o=a<=jA,s;for(;a-->0;)if(s=r[a],!ej(e,t,s)&&(s!==i[a]&&!(o?i.includes(s):PA.call(t,s))||!n.equals(e[s],t[s],s,s,e,t,n)))return!1;return!0}function KA(e,t,n){let r=TA(e),i=r.length;if(TA(t).length!==i)return!1;let a,o,s;for(;i-->0;)if(a=r[i],!ej(e,t,a)&&(!EA(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))||(o=MA(e,a),s=MA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function qA(e,t){return DA(e.valueOf(),t.valueOf())}function JA(e,t){return e.source===t.source&&e.flags===t.flags}function YA(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function XA(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;let r=FA.call(e);if(r===`Float64Array`||r===`Float32Array`||r===`Float16Array`){for(;n-->0;)if(e[n]!==t[n]&&(e[n]===e[n]||t[n]===t[n]))return!1;return!0}for(;n-->0;)if(e[n]!==t[n])return!1;return!0}function ZA(e,t){return e.href===t.href||e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&QA(e.searchParams,t.searchParams)}function QA(e,t){let n=e.toString(),r=t.toString();return n===r||$A(n)===$A(r)}function $A(e){return e.split(`&`).sort().join(`&`)}function ej(e,t,n){return(n===AA||n===kA||n===OA)&&!!(e.$$typeof||t.$$typeof)}var tj=`[object ArrayBuffer]`,nj=`[object Arguments]`,rj=`[object Boolean]`,ij=`[object DataView]`,aj=`[object Date]`,oj=`[object Error]`,sj=`[object Map]`,cj=`[object Number]`,lj=`[object Object]`,uj=`[object RegExp]`,dj=`[object Set]`,fj=`[object String]`,pj={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},mj=`[object URL]`,hj=Object.prototype.toString;function gj({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`&&a(h,g,_);let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);if(y==null)return c(h,g,_);let b=hj.call(h);if(b===aj)return r(h,g,_);if(b===uj)return u(h,g,_);if(b===sj)return o(h,g,_);if(b===dj)return d(h,g,_);if(b===lj)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===mj)return p(h,g,_);if(b===oj)return i(h,g,_);if(b===nj)return c(h,g,_);if(pj[b])return f(h,g,_);if(b===tj)return e(h,g,_);if(b===ij)return n(h,g,_);if(b===rj||b===cj||b===fj)return l(h,g,_);if(m){let e=m[b];if(!e){let t=wA(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function _j({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:IA,areArraysEqual:n?KA:LA,areDataViewsEqual:RA,areDatesEqual:zA,areErrorsEqual:n?HA:BA,areFunctionsEqual:VA,areMapsEqual:n?SA(UA,KA):UA,areNumbersEqual:WA,areObjectsEqual:n?KA:GA,arePrimitiveWrappersEqual:qA,areRegExpsEqual:JA,areSetsEqual:n?SA(YA,KA):YA,areTypedArraysEqual:n?SA(XA,KA):XA,areUrlsEqual:ZA,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=CA(r.areArraysEqual),t=CA(r.areErrorsEqual),n=CA(r.areMapsEqual),i=CA(r.areObjectsEqual),a=CA(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function vj(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function yj({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}xj(),xj({strict:!0});var bj=xj({circular:!0});xj({circular:!0,strict:!0}),xj({createInternalComparator:()=>DA}),xj({strict:!0,createInternalComparator:()=>DA}),xj({circular:!0,createInternalComparator:()=>DA}),xj({circular:!0,createInternalComparator:()=>DA,strict:!0});function xj(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=gj(_j(e));return yj({circular:t,comparator:a,createState:r,equals:n?n(a):vj(a),strict:i})}var Sj=o((e=>{var t=Te(),n=$x();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Cj=o(((e,t)=>{t.exports=Sj()}))();function wj(e,t){if(e.isDestroyed||t.defaultPrevented||!t.cancelable||!e.isEditable||t.inputType!==`insertParagraph`&&t.inputType!==`insertLineBreak`||!vD()&&!_D())return;let n=e.view,r=n.root,i=(r.getSelection?.call(r)??n.dom.ownerDocument.getSelection())?.anchorNode,a=(i?.nodeType===1?i:i?.parentElement)?.closest(`[data-node-view-content-react]`);if(!a||!n.dom.contains(a))return;let o=n.input.lastKeyCode;o===13&&(n.input.lastKeyCode=null),n.domObserver.forceFlush(),n.domObserver.flush();let s=new KeyboardEvent(`keydown`,{key:`Enter`,code:`Enter`,keyCode:13,shiftKey:t.inputType===`insertLineBreak`,bubbles:!0,cancelable:!0});n.someProp(`handleKeyDown`,e=>e(n,s))?(t.preventDefault(),n.input.lastIOSEnter=0,clearTimeout(n.input.lastIOSEnterFallbackTimeout)):o===13&&(n.input.lastKeyCode=o)}var Tj=new Qx(`reactMobileEnter`),nre=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},rre=({contentComponent:e})=>{let t=(0,eS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getServerSnapshot);return(0,G.jsx)(G.Fragment,{children:Object.values(t)})};function ire(){let e=new Set,t={},n=!1,r=()=>{!n&&e.size&&(n=!0,queueMicrotask(()=>{n=!1,e.forEach(e=>e())}))};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(e,n){t={...t,[e]:Oe.createPortal(n.reactElement,n.element,e)},r()},removeRenderer(e){let n={...t};delete n[e],t=n,r()}}}var are=class extends H.Component{constructor(e){super(e),this.editorContentRef=H.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.view.dom?.parentNode){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t}),e.contentComponent=ire(),e.createNodeViews(),e.registerPlugin(new Yx({key:Tj,props:{handleDOMEvents:{beforeinput:(t,n)=>wj(e,n)}}})),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){let e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||(e.unregisterPlugin(Tj),e.view.setProps({nodeViews:{}})),e.contentComponent=null;try{if(!e.view.dom?.parentNode)return;let t=document.createElement(`div`);t.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:t})}catch{}}}render(){let{editor:e,innerRef:t,...n}=this.props;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`div`,{ref:nre(t,this.editorContentRef),...n}),e?.contentComponent&&(0,G.jsx)(rre,{contentComponent:e.contentComponent})]})}},ore=(0,H.forwardRef)((e,t)=>{let n=H.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return H.createElement(are,{key:n,innerRef:t,...e})}),Ej=H.memo(ore),sre=typeof window<`u`?H.useLayoutEffect:H.useEffect,cre=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e,t=t=>{(t?.transaction===void 0||t.transaction!==e)&&(e=t?.transaction,this.transactionNumber+=1,this.subscribers.forEach(e=>e()))},n=this.editor;return n.on(`transaction`,t),n.on(`update`,t),()=>{n.off(`transaction`,t),n.off(`update`,t)}}}};function Dj(e){let[t]=(0,H.useState)(()=>new cre(e.editor)),n=(0,Cj.useSyncExternalStoreWithSelector)(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??bj);return sre(()=>t.watch(e.editor),[e.editor,t]),(0,H.useDebugValue)(n),n}var Oj=typeof window>`u`,lre=Oj||!!(typeof window<`u`&&window.next),ure=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){let e=this.options.current.immediatelyRender,t=e??!0;return(Oj||lre&&e===void 0)&&(t=!1),t?this.createEditor():null}createEditor(){return new fA({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)},onDelete:(...e)=>{var t;return(t=this.options.current).onDelete?.call(t,...e)},onMount:(...e)=>{var t;return(t=this.options.current).onMount?.call(t,...e)},onUnmount:(...e)=>{var t;return(t=this.options.current).onUnmount?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,n)=>e===t.extensions?.[n]):e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function dre(e={},t=[]){let n=(0,H.useRef)(e);n.current=e;let[r]=(0,H.useState)(()=>new ure(n)),i=(0,eS.useSyncExternalStore)(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,H.useDebugValue)(i),(0,H.useEffect)(r.onRender(t)),Dj({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1||e.shouldRerenderOnTransaction===void 0?null:e.immediatelyRender&&t===0?0:t+1}),i}var kj=(0,H.createContext)({editor:null});kj.Consumer;var Aj=()=>(0,H.useContext)(kj),fre=(0,H.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),pre=()=>(0,H.useContext)(fre);H.forwardRef((e,t)=>{let{onDragStart:n}=pre(),r=e.as||`div`;return(0,G.jsx)(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})}),H.createContext({markViewContentRef:()=>{}});var jj=(0,H.createContext)({get editor(){throw Error(`useTiptap must be used within a <Tiptap> provider`)}});jj.displayName=`TiptapContext`;var mre=()=>(0,H.useContext)(jj);function Mj({children:e,...t}){let n=`editor`in t?t.editor:t.instance;if(!n)throw Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");let r=(0,H.useMemo)(()=>({editor:n}),[n]),i=(0,H.useMemo)(()=>({editor:n}),[n]);return(0,G.jsx)(kj.Provider,{value:i,children:(0,G.jsx)(jj.Provider,{value:r,children:e})})}Mj.displayName=`Tiptap`;function Nj({...e}){let{editor:t}=mre();return(0,G.jsx)(Ej,{editor:t,...e})}Nj.displayName=`Tiptap.Content`,Object.assign(Mj,{Content:Nj});var Pj=new WeakSet,Fj=new WeakSet;function Ij(e){let t=e;return Pj.add(t),t}function Lj(e){return Array.isArray(e)&&Pj.has(e)}function Rj(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&Fj.has(e)&&!Lj(e)?Rj(e):[e])}function hre(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!Lj(n)&&!Fj.has(n)?Ij(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(Lj(n))return Ij([e,r,n]);if(n.length===0)return Ij([e,r]);let t=Rj(n);return t.length===0?Ij([e,r]):Ij([e,r,...t])}return Ij(n==null?[e,r]:[e,r,n])}var zj=(e,t)=>hre(e,t),gre=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new q(n,0,0);return e.replace(l,i.after(),r),e.setSelection(Fx.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},_re=/^\s*>\s$/,vre=_A.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return zj(`blockquote`,{...sO(this.options.HTMLAttributes,e),children:zj(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(`
`).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(`
`))}),n.join(`
>
-`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>sre(this.editor,this.type)}},addInputRules(){return[qk({find:cre,type:this.type})]}}),ure=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,dre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,fre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,pre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,mre=yk.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return kj(`strong`,{...RD(this.options.HTMLAttributes,e),children:kj(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Wk({find:ure,type:this.type}),Wk({find:fre,type:this.type})]},addPasteRules(){return[Yk({find:dre,type:this.type}),Yk({find:pre,type:this.type})]}}),hre=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},gre=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function _re(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var vre=yk.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,RD(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return``;let i=typeof(n==null||(r=n.meta)==null?void 0:r.markText)==`string`?n.meta.markText:``,a="`".repeat(_re(i)),o=i.startsWith("`")||i.endsWith("`")?` `:``;return`${a}${o}${t.renderChildren(e.content)}${o}${a}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Wk({find:hre,type:this.type})]},addPasteRules(){return[Yk({find:gre,type:this.type})]}}),Aj=4,yre=/^```([a-z]+)?[\s\n]$/,bre=/^~~~([a-z]+)?[\s\n]$/,xre=Jk.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Aj,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,RD(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
-`):`\`\`\`${r}\n\n\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??Aj,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
+`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>gre(this.editor,this.type)}},addInputRules(){return[gA({find:_re,type:this.type})]}}),yre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,bre=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,xre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Sre=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Cre=Hk.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return zj(`strong`,{...sO(this.options.HTMLAttributes,e),children:zj(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[pA({find:yre,type:this.type}),pA({find:xre,type:this.type})]},addPasteRules(){return[vA({find:bre,type:this.type}),vA({find:Sre,type:this.type})]}}),wre=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},Tre=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n};function Ere(e){let t=new Set((e.match(/`+/g)||[]).map(e=>e.length)),n=1;for(;t.has(n);)n+=1;return n}var Dre=Hk.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,sO(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t,n)=>{var r;if(!e.content)return``;let i=typeof(n==null||(r=n.meta)==null?void 0:r.markText)==`string`?n.meta.markText:``,a="`".repeat(Ere(i)),o=i.startsWith("`")||i.endsWith("`")?` `:``;return`${a}${o}${t.renderChildren(e.content)}${o}${a}`},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[pA({find:wre,type:this.type})]},addPasteRules(){return[vA({find:Tre,type:this.type})]}}),Bj=4,Ore=/^```([a-z]+)?[\s\n]$/,kre=/^~~~([a-z]+)?[\s\n]$/,Are=_A.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:Bj,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,sO(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(`
+`):`\`\`\`${r}\n\n\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??Bj,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,`
`,`
`).split(`
`).map(e=>o+e).join(`
-`);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??Aj,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
+`);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??Bj,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,`
`,`
`).split(`
-`),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(ux.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
+`),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(Fx.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,`
`,`
`).split(`
`).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(`
`);return e.replaceWith(i,a,n.schema.text(o)),!0}):!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(`
-`);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(ox.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[Kk({find:yre,type:this.type,getAttributes:e=>({language:e[1]})}),Kk({find:bre,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Dx({key:new Ax(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
-`));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(ux.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),Sre=Jk.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(jx.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[hA({find:Ore,type:this.type,getAttributes:e=>({language:e[1]})}),hA({find:kre,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Yx({key:new Qx(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,`
+`));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(Fx.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),jre=_A.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``}),Cre=Jk.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,RD(this.options.HTMLAttributes,e)]},renderText(){return`
+`):``}),Mre=_A.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,sO(this.options.HTMLAttributes,e)]},renderText(){return`
`},renderMarkdown:()=>`
-`,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),wre=Jk.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,RD(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>Kk({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),Tre=Jk.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,RD(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!ek(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return pO(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(ux.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(fx.create(t.doc,n.pos)):t.setSelection(ux.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(ux.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Gk({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Ere=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Dre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Ore=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,kre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Are=yk.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,RD(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Wk({find:Ere,type:this.type}),Wk({find:Ore,type:this.type})]},addPasteRules(){return[Yk({find:Dre,type:this.type}),Yk({find:kre,type:this.type})]}}),jre=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,Mre=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,jj=`numeric`,Mj=`ascii`,Nj=`alpha`,Pj=`asciinumeric`,Fj=`alphanumeric`,Ij=`domain`,Lj=`emoji`,Nre=`scheme`,Pre=`slashscheme`,Rj=`whitespace`;function Fre(e,t){return e in t||(t[e]=[]),t[e]}function zj(e,t,n){t[jj]&&(t[Pj]=!0,t[Fj]=!0),t[Mj]&&(t[Pj]=!0,t[Nj]=!0),t[Pj]&&(t[Fj]=!0),t[Nj]&&(t[Fj]=!0),t[Fj]&&(t[Ij]=!0),t[Lj]&&(t[Ij]=!0);for(let r in t){let t=Fre(r,n);t.indexOf(e)<0&&t.push(e)}}function Ire(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Bj(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Bj.groups={},Bj.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=Bj.groups;let i;return t&&t.j?i=t:(i=new Bj(t),n&&r&&zj(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=Bj.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new Bj,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new Bj,a&&(r&&(o.t&&typeof o.t==`string`?zj(a,Object.assign(Ire(o.t,r),n),r):n&&zj(a,n,r)),o.t=a),i.j[e]=o,o}};var Vj=(e,t,n,r,i)=>e.ta(t,n,r,i),Hj=(e,t,n,r,i)=>e.tr(t,n,r,i),Uj=(e,t,n,r,i)=>e.ts(t,n,r,i),J=(e,t,n,r,i)=>e.tt(t,n,r,i),Wj=`WORD`,Gj=`UWORD`,Kj=`ASCIINUMERICAL`,qj=`ALPHANUMERICAL`,Jj=`LOCALHOST`,Yj=`TLD`,Xj=`UTLD`,Zj=`SCHEME`,Qj=`SLASH_SCHEME`,$j=`NUM`,eM=`WS`,tM=`NL`,nM=`OPENBRACE`,rM=`CLOSEBRACE`,iM=`OPENBRACKET`,aM=`CLOSEBRACKET`,oM=`OPENPAREN`,sM=`CLOSEPAREN`,cM=`OPENANGLEBRACKET`,lM=`CLOSEANGLEBRACKET`,uM=`FULLWIDTHLEFTPAREN`,dM=`FULLWIDTHRIGHTPAREN`,fM=`LEFTCORNERBRACKET`,pM=`RIGHTCORNERBRACKET`,mM=`LEFTWHITECORNERBRACKET`,hM=`RIGHTWHITECORNERBRACKET`,gM=`FULLWIDTHLESSTHAN`,_M=`FULLWIDTHGREATERTHAN`,vM=`AMPERSAND`,yM=`APOSTROPHE`,bM=`ASTERISK`,xM=`AT`,SM=`BACKSLASH`,CM=`BACKTICK`,wM=`CARET`,TM=`COLON`,EM=`COMMA`,DM=`DOLLAR`,OM=`DOT`,kM=`EQUALS`,AM=`EXCLAMATION`,jM=`HYPHEN`,MM=`PERCENT`,NM=`PIPE`,PM=`PLUS`,FM=`POUND`,IM=`QUERY`,LM=`QUOTE`,RM=`FULLWIDTHMIDDLEDOT`,zM=`SEMI`,BM=`SLASH`,VM=`TILDE`,HM=`UNDERSCORE`,UM=`EMOJI`,WM=`SYM`,GM=Object.freeze({__proto__:null,ALPHANUMERICAL:qj,AMPERSAND:vM,APOSTROPHE:yM,ASCIINUMERICAL:Kj,ASTERISK:bM,AT:xM,BACKSLASH:SM,BACKTICK:CM,CARET:wM,CLOSEANGLEBRACKET:lM,CLOSEBRACE:rM,CLOSEBRACKET:aM,CLOSEPAREN:sM,COLON:TM,COMMA:EM,DOLLAR:DM,DOT:OM,EMOJI:UM,EQUALS:kM,EXCLAMATION:AM,FULLWIDTHGREATERTHAN:_M,FULLWIDTHLEFTPAREN:uM,FULLWIDTHLESSTHAN:gM,FULLWIDTHMIDDLEDOT:RM,FULLWIDTHRIGHTPAREN:dM,HYPHEN:jM,LEFTCORNERBRACKET:fM,LEFTWHITECORNERBRACKET:mM,LOCALHOST:Jj,NL:tM,NUM:$j,OPENANGLEBRACKET:cM,OPENBRACE:nM,OPENBRACKET:iM,OPENPAREN:oM,PERCENT:MM,PIPE:NM,PLUS:PM,POUND:FM,QUERY:IM,QUOTE:LM,RIGHTCORNERBRACKET:pM,RIGHTWHITECORNERBRACKET:hM,SCHEME:Zj,SEMI:zM,SLASH:BM,SLASH_SCHEME:Qj,SYM:WM,TILDE:VM,TLD:Yj,UNDERSCORE:HM,UTLD:Xj,UWORD:Gj,WORD:Wj,WS:eM}),KM=/[a-z]/,qM=/[a-z]/i,JM=/[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;try{qM=RegExp(`\\p{L}`,`u`),JM=RegExp(`\\p{Emoji}`,`u`)}catch{}var YM=/\d/,XM=/\s/,ZM=`\r`,QM=`
-`,$M=`️`,eN=`‍`,tN=``,nN=null,rN=null;function iN(e=[]){let t={};Bj.groups=t;let n=new Bj;nN??=cN(jre),rN??=cN(Mre),J(n,`'`,yM),J(n,`{`,nM),J(n,`}`,rM),J(n,`[`,iM),J(n,`]`,aM),J(n,`(`,oM),J(n,`)`,sM),J(n,`<`,cM),J(n,`>`,lM),J(n,`(`,uM),J(n,`)`,dM),J(n,`「`,fM),J(n,`」`,pM),J(n,`『`,mM),J(n,`』`,hM),J(n,`<`,gM),J(n,`>`,_M),J(n,`&`,vM),J(n,`*`,bM),J(n,`@`,xM),J(n,"`",CM),J(n,`^`,wM),J(n,`:`,TM),J(n,`,`,EM),J(n,`$`,DM),J(n,`.`,OM),J(n,`=`,kM),J(n,`!`,AM),J(n,`-`,jM),J(n,`%`,MM),J(n,`|`,NM),J(n,`+`,PM),J(n,`#`,FM),J(n,`?`,IM),J(n,`"`,LM),J(n,`/`,BM),J(n,`;`,zM),J(n,`~`,VM),J(n,`_`,HM),J(n,`\\`,SM),J(n,`・`,RM);let r=Hj(n,YM,$j,{[jj]:!0});Hj(r,YM,r);let i=Hj(r,KM,Kj,{[Pj]:!0}),a=Hj(r,qM,qj,{[Fj]:!0}),o=Hj(n,KM,Wj,{[Mj]:!0});Hj(o,YM,i),Hj(o,KM,o),Hj(i,YM,i),Hj(i,KM,i);let s=Hj(n,qM,Gj,{[Nj]:!0});Hj(s,KM),Hj(s,YM,a),Hj(s,qM,s),Hj(a,YM,a),Hj(a,KM),Hj(a,qM,a);let c=J(n,QM,tM,{[Rj]:!0}),l=J(n,ZM,eM,{[Rj]:!0}),u=Hj(n,XM,eM,{[Rj]:!0});J(n,tN,u),J(l,QM,c),J(l,tN,u),Hj(l,XM,u),J(u,ZM),J(u,QM),Hj(u,XM,u),J(u,tN,u);let d=Hj(n,JM,UM,{[Lj]:!0});J(d,`#`),Hj(d,JM,d),J(d,$M,d);let f=J(d,eN);J(f,`#`),Hj(f,JM,d);let p=[[KM,o],[YM,i]],m=[[KM,null],[qM,s],[YM,a]];for(let e=0;e<nN.length;e++)sN(n,nN[e],Yj,Wj,p);for(let e=0;e<rN.length;e++)sN(n,rN[e],Xj,Gj,m);zj(Yj,{tld:!0,ascii:!0},t),zj(Xj,{utld:!0,alpha:!0},t),sN(n,`file`,Zj,Wj,p),sN(n,`mailto`,Zj,Wj,p),sN(n,`http`,Qj,Wj,p),sN(n,`https`,Qj,Wj,p),sN(n,`ftp`,Qj,Wj,p),sN(n,`ftps`,Qj,Wj,p),zj(Zj,{scheme:!0,ascii:!0},t),zj(Qj,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[Nre]:!0}:{[Pre]:!0};r.indexOf(`-`)>=0?i[Ij]=!0:KM.test(r)?YM.test(r)?i[Pj]=!0:i[Mj]=!0:i[jj]=!0,Uj(n,r,r,i)}return Uj(n,`localhost`,Jj,{ascii:!0}),n.jd=new Bj(WM),{start:n,tokens:Object.assign({groups:t},GM)}}function aN(e,t){let n=oN(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function oN(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function sN(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new Bj(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new Bj(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function cN(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var lN={defaultProtocol:`http`,events:null,format:dN,formatHref:dN,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],ignoreClasses:[],render:null};function uN(e,t=null){let n=Object.assign({},lN);e&&(n=Object.assign(n,e instanceof uN?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i,this.ignoreClasses=n.ignoreClasses.slice()}uN.prototype={o:lN,ignoreTags:[],ignoreClasses:[],isIgnoredClass(e){if(typeof e!=`string`||this.ignoreClasses.length===0)return!1;let t=e.split(/\s+/);for(let e=0;e<t.length;e++)if(this.ignoreClasses.indexOf(t[e])>=0)return!0;return!1},defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:lN[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function dN(e){return e}function fN(e,t){this.t=`token`,this.v=e,this.tk=t}fN.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=lN.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function pN(e,t){class n extends fN{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var mN=pN(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),hN=pN(`text`),gN=pN(`nl`),_N=pN(`url`,{isLink:!0,toHref(e=lN.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==Jj&&e[1].t===TM}}),vN=e=>new Bj(e);function yN({groups:e}){let t=e.domain.concat([vM,bM,xM,SM,CM,wM,DM,kM,jM,$j,MM,NM,PM,FM,BM,WM,VM,HM]),n=[yM,TM,EM,OM,AM,MM,IM,LM,zM,cM,lM,nM,rM,aM,iM,oM,sM,uM,dM,fM,pM,mM,hM,gM,_M],r=[vM,yM,bM,SM,CM,wM,DM,kM,jM,nM,rM,MM,NM,PM,FM,IM,BM,WM,VM,HM],i=vN(),a=J(i,VM);Vj(a,r,a),Vj(a,e.domain,a);let o=vN(),s=vN(),c=vN();Vj(i,e.domain,o),Vj(i,e.scheme,s),Vj(i,e.slashscheme,c),Vj(o,r,a),Vj(o,e.domain,o);let l=J(o,xM);J(a,xM,l),J(s,xM,l),J(c,xM,l);let u=J(a,OM);Vj(u,r,a),Vj(u,e.domain,a);let d=vN();Vj(l,e.domain,d),Vj(d,e.domain,d);let f=J(d,OM);Vj(f,e.domain,d);let p=vN(mN);Vj(f,e.tld,p),Vj(f,e.utld,p),J(l,Jj,p);let m=J(d,jM);J(m,jM,m),Vj(m,e.domain,d),Vj(p,e.domain,d),J(p,OM,f),J(p,jM,m);let h=J(o,jM),g=J(o,OM);J(h,jM,h),Vj(h,e.domain,o),Vj(g,r,a),Vj(g,e.domain,o);let _=vN(_N);Vj(g,e.tld,_),Vj(g,e.utld,_),Vj(_,e.domain,o),Vj(_,r,a),J(_,OM,g),J(_,jM,h),J(_,xM,l);let v=J(_,TM),y=vN(_N);Vj(v,e.numeric,y);let b=vN(_N),x=vN();Vj(b,t,b),Vj(b,n,x),Vj(x,t,b),Vj(x,n,x),J(_,BM,b),J(y,BM,b),J(_,IM,x),J(_,FM,b),J(y,IM,x),J(y,FM,b);let S=J(s,TM),C=J(J(J(c,TM),BM),BM);Vj(s,e.domain,o),J(s,OM,g),J(s,jM,h),Vj(c,e.domain,o),J(c,OM,g),J(c,jM,h),Vj(S,e.domain,b),J(S,BM,b),J(S,IM,b),Vj(C,e.domain,b),Vj(C,t,b),J(C,BM,b);let w=[[nM,rM],[iM,aM],[oM,sM],[cM,lM],[uM,dM],[fM,pM],[mM,hM],[gM,_M]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=J(b,r);J(x,r,a);let o=vN(_N);Vj(a,t,o);let s=vN();Vj(a,n,s),J(a,i,b),Vj(o,t,o),Vj(o,n,s),Vj(s,t,o),Vj(s,n,s),J(o,i,b),J(s,i,b)}return J(i,Jj,_),J(i,tM,gN),{start:i,tokens:GM}}function bN(e,t,n){let r=n.length,i=0,a=[],o=[],s=[];for(;i<r;){let c=e,l=null,u=null,d=0,f=null,p=-1,m=[];for(;i<r&&!(l=c.go(n[i].t));)o.push(n[i++]);for(;i<r&&(u=l||c.go(n[i].t));)if(l=null,c=u,i++,d++,c.accepts())p=0,f=c,m=[];else if(p>=0&&p++,m.push(c),s[i]&&s[i].has(c))break;for(let e=0,t=i-m.length+1;e<m.length;e++,t++)(s[t]||(s[t]=new Set)).add(m[e]);if(p<0)i-=d,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(xN(hN,t,o)),o=[]),i-=p,d-=p;let e=f.t,r=n.slice(i-d,i);a.push(xN(e,t,r))}}return o.length>0&&a.push(xN(hN,t,o)),a}function xN(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var SN=typeof console<`u`&&console&&console.warn||(()=>{}),CN=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,wN={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function TN(){return Bj.groups={},wN.scanner=null,wN.parser=null,wN.tokenQueue=[],wN.pluginQueue=[],wN.customSchemes=[],wN.initialized=!1,wN}function EN(e,t=!1){if(wN.initialized&&SN(`linkifyjs: already initialized - will not register custom scheme "${e}" ${CN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
+`,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Nre=_A.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,sO(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>hA({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),Pre=_A.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,sO(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!Ck(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return IO(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(Fx.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(Lx.create(t.doc,n.pos)):t.setSelection(Fx.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(Fx.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[mA({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Fre=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Ire=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Lre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Rre=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,zre=Hk.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,sO(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[pA({find:Fre,type:this.type}),pA({find:Lre,type:this.type})]},addPasteRules(){return[vA({find:Ire,type:this.type}),vA({find:Rre,type:this.type})]}}),Bre=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos6kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12b0cam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,Vre=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,Vj=`numeric`,Hj=`ascii`,Uj=`alpha`,Wj=`asciinumeric`,Gj=`alphanumeric`,Kj=`domain`,qj=`emoji`,Hre=`scheme`,Ure=`slashscheme`,Jj=`whitespace`;function Wre(e,t){return e in t||(t[e]=[]),t[e]}function Yj(e,t,n){t[Vj]&&(t[Wj]=!0,t[Gj]=!0),t[Hj]&&(t[Wj]=!0,t[Uj]=!0),t[Wj]&&(t[Gj]=!0),t[Uj]&&(t[Gj]=!0),t[Gj]&&(t[Kj]=!0),t[qj]&&(t[Kj]=!0);for(let r in t){let t=Wre(r,n);t.indexOf(e)<0&&t.push(e)}}function Gre(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Xj(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Xj.groups={},Xj.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=Xj.groups;let i;return t&&t.j?i=t:(i=new Xj(t),n&&r&&Yj(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=Xj.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new Xj,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new Xj,a&&(r&&(o.t&&typeof o.t==`string`?Yj(a,Object.assign(Gre(o.t,r),n),r):n&&Yj(a,n,r)),o.t=a),i.j[e]=o,o}};var Zj=(e,t,n,r,i)=>e.ta(t,n,r,i),Qj=(e,t,n,r,i)=>e.tr(t,n,r,i),$j=(e,t,n,r,i)=>e.ts(t,n,r,i),J=(e,t,n,r,i)=>e.tt(t,n,r,i),eM=`WORD`,tM=`UWORD`,nM=`ASCIINUMERICAL`,rM=`ALPHANUMERICAL`,iM=`LOCALHOST`,aM=`TLD`,oM=`UTLD`,sM=`SCHEME`,cM=`SLASH_SCHEME`,lM=`NUM`,uM=`WS`,dM=`NL`,fM=`OPENBRACE`,pM=`CLOSEBRACE`,mM=`OPENBRACKET`,hM=`CLOSEBRACKET`,gM=`OPENPAREN`,_M=`CLOSEPAREN`,vM=`OPENANGLEBRACKET`,yM=`CLOSEANGLEBRACKET`,bM=`FULLWIDTHLEFTPAREN`,xM=`FULLWIDTHRIGHTPAREN`,SM=`LEFTCORNERBRACKET`,CM=`RIGHTCORNERBRACKET`,wM=`LEFTWHITECORNERBRACKET`,TM=`RIGHTWHITECORNERBRACKET`,EM=`FULLWIDTHLESSTHAN`,DM=`FULLWIDTHGREATERTHAN`,OM=`AMPERSAND`,kM=`APOSTROPHE`,AM=`ASTERISK`,jM=`AT`,MM=`BACKSLASH`,NM=`BACKTICK`,PM=`CARET`,FM=`COLON`,IM=`COMMA`,LM=`DOLLAR`,RM=`DOT`,zM=`EQUALS`,BM=`EXCLAMATION`,VM=`HYPHEN`,HM=`PERCENT`,UM=`PIPE`,WM=`PLUS`,GM=`POUND`,KM=`QUERY`,qM=`QUOTE`,JM=`FULLWIDTHMIDDLEDOT`,YM=`SEMI`,XM=`SLASH`,ZM=`TILDE`,QM=`UNDERSCORE`,$M=`EMOJI`,eN=`SYM`,tN=Object.freeze({__proto__:null,ALPHANUMERICAL:rM,AMPERSAND:OM,APOSTROPHE:kM,ASCIINUMERICAL:nM,ASTERISK:AM,AT:jM,BACKSLASH:MM,BACKTICK:NM,CARET:PM,CLOSEANGLEBRACKET:yM,CLOSEBRACE:pM,CLOSEBRACKET:hM,CLOSEPAREN:_M,COLON:FM,COMMA:IM,DOLLAR:LM,DOT:RM,EMOJI:$M,EQUALS:zM,EXCLAMATION:BM,FULLWIDTHGREATERTHAN:DM,FULLWIDTHLEFTPAREN:bM,FULLWIDTHLESSTHAN:EM,FULLWIDTHMIDDLEDOT:JM,FULLWIDTHRIGHTPAREN:xM,HYPHEN:VM,LEFTCORNERBRACKET:SM,LEFTWHITECORNERBRACKET:wM,LOCALHOST:iM,NL:dM,NUM:lM,OPENANGLEBRACKET:vM,OPENBRACE:fM,OPENBRACKET:mM,OPENPAREN:gM,PERCENT:HM,PIPE:UM,PLUS:WM,POUND:GM,QUERY:KM,QUOTE:qM,RIGHTCORNERBRACKET:CM,RIGHTWHITECORNERBRACKET:TM,SCHEME:sM,SEMI:YM,SLASH:XM,SLASH_SCHEME:cM,SYM:eN,TILDE:ZM,TLD:aM,UNDERSCORE:QM,UTLD:oM,UWORD:tM,WORD:eM,WS:uM}),nN=/[a-z]/,rN=/[a-z]/i,iN=/[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}]|\u{FE0F}/u;try{rN=RegExp(`\\p{L}`,`u`),iN=RegExp(`\\p{Emoji}`,`u`)}catch{}var aN=/\d/,oN=/\s/,sN=`\r`,cN=`
+`,lN=`️`,uN=`‍`,dN=``,fN=null,pN=null;function mN(e=[]){let t={};Xj.groups=t;let n=new Xj;fN??=vN(Bre),pN??=vN(Vre),J(n,`'`,kM),J(n,`{`,fM),J(n,`}`,pM),J(n,`[`,mM),J(n,`]`,hM),J(n,`(`,gM),J(n,`)`,_M),J(n,`<`,vM),J(n,`>`,yM),J(n,`(`,bM),J(n,`)`,xM),J(n,`「`,SM),J(n,`」`,CM),J(n,`『`,wM),J(n,`』`,TM),J(n,`<`,EM),J(n,`>`,DM),J(n,`&`,OM),J(n,`*`,AM),J(n,`@`,jM),J(n,"`",NM),J(n,`^`,PM),J(n,`:`,FM),J(n,`,`,IM),J(n,`$`,LM),J(n,`.`,RM),J(n,`=`,zM),J(n,`!`,BM),J(n,`-`,VM),J(n,`%`,HM),J(n,`|`,UM),J(n,`+`,WM),J(n,`#`,GM),J(n,`?`,KM),J(n,`"`,qM),J(n,`/`,XM),J(n,`;`,YM),J(n,`~`,ZM),J(n,`_`,QM),J(n,`\\`,MM),J(n,`・`,JM);let r=Qj(n,aN,lM,{[Vj]:!0});Qj(r,aN,r);let i=Qj(r,nN,nM,{[Wj]:!0}),a=Qj(r,rN,rM,{[Gj]:!0}),o=Qj(n,nN,eM,{[Hj]:!0});Qj(o,aN,i),Qj(o,nN,o),Qj(i,aN,i),Qj(i,nN,i);let s=Qj(n,rN,tM,{[Uj]:!0});Qj(s,nN),Qj(s,aN,a),Qj(s,rN,s),Qj(a,aN,a),Qj(a,nN),Qj(a,rN,a);let c=J(n,cN,dM,{[Jj]:!0}),l=J(n,sN,uM,{[Jj]:!0}),u=Qj(n,oN,uM,{[Jj]:!0});J(n,dN,u),J(l,cN,c),J(l,dN,u),Qj(l,oN,u),J(u,sN),J(u,cN),Qj(u,oN,u),J(u,dN,u);let d=Qj(n,iN,$M,{[qj]:!0});J(d,`#`),Qj(d,iN,d),J(d,lN,d);let f=J(d,uN);J(f,`#`),Qj(f,iN,d);let p=[[nN,o],[aN,i]],m=[[nN,null],[rN,s],[aN,a]];for(let e=0;e<fN.length;e++)_N(n,fN[e],aM,eM,p);for(let e=0;e<pN.length;e++)_N(n,pN[e],oM,tM,m);Yj(aM,{tld:!0,ascii:!0},t),Yj(oM,{utld:!0,alpha:!0},t),_N(n,`file`,sM,eM,p),_N(n,`mailto`,sM,eM,p),_N(n,`http`,cM,eM,p),_N(n,`https`,cM,eM,p),_N(n,`ftp`,cM,eM,p),_N(n,`ftps`,cM,eM,p),Yj(sM,{scheme:!0,ascii:!0},t),Yj(cM,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[Hre]:!0}:{[Ure]:!0};r.indexOf(`-`)>=0?i[Kj]=!0:nN.test(r)?aN.test(r)?i[Wj]=!0:i[Hj]=!0:i[Vj]=!0,$j(n,r,r,i)}return $j(n,`localhost`,iM,{ascii:!0}),n.jd=new Xj(eN),{start:n,tokens:Object.assign({groups:t},tN)}}function hN(e,t){let n=gN(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function gN(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function _N(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new Xj(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new Xj(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function vN(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var yN={defaultProtocol:`http`,events:null,format:xN,formatHref:xN,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],ignoreClasses:[],render:null};function bN(e,t=null){let n=Object.assign({},yN);e&&(n=Object.assign(n,e instanceof bN?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i,this.ignoreClasses=n.ignoreClasses.slice()}bN.prototype={o:yN,ignoreTags:[],ignoreClasses:[],isIgnoredClass(e){if(typeof e!=`string`||this.ignoreClasses.length===0)return!1;let t=e.split(/\s+/);for(let e=0;e<t.length;e++)if(this.ignoreClasses.indexOf(t[e])>=0)return!0;return!1},defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:yN[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function xN(e){return e}function SN(e,t){this.t=`token`,this.v=e,this.tk=t}SN.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=yN.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function CN(e,t){class n extends SN{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var wN=CN(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),TN=CN(`text`),EN=CN(`nl`),DN=CN(`url`,{isLink:!0,toHref(e=yN.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==iM&&e[1].t===FM}}),ON=e=>new Xj(e);function kN({groups:e}){let t=e.domain.concat([OM,AM,jM,MM,NM,PM,LM,zM,VM,lM,HM,UM,WM,GM,XM,eN,ZM,QM]),n=[kM,FM,IM,RM,BM,HM,KM,qM,YM,vM,yM,fM,pM,hM,mM,gM,_M,bM,xM,SM,CM,wM,TM,EM,DM],r=[OM,kM,AM,MM,NM,PM,LM,zM,VM,fM,pM,HM,UM,WM,GM,KM,XM,eN,ZM,QM],i=ON(),a=J(i,ZM);Zj(a,r,a),Zj(a,e.domain,a);let o=ON(),s=ON(),c=ON();Zj(i,e.domain,o),Zj(i,e.scheme,s),Zj(i,e.slashscheme,c),Zj(o,r,a),Zj(o,e.domain,o);let l=J(o,jM);J(a,jM,l),J(s,jM,l),J(c,jM,l);let u=J(a,RM);Zj(u,r,a),Zj(u,e.domain,a);let d=ON();Zj(l,e.domain,d),Zj(d,e.domain,d);let f=J(d,RM);Zj(f,e.domain,d);let p=ON(wN);Zj(f,e.tld,p),Zj(f,e.utld,p),J(l,iM,p);let m=J(d,VM);J(m,VM,m),Zj(m,e.domain,d),Zj(p,e.domain,d),J(p,RM,f),J(p,VM,m);let h=J(o,VM),g=J(o,RM);J(h,VM,h),Zj(h,e.domain,o),Zj(g,r,a),Zj(g,e.domain,o);let _=ON(DN);Zj(g,e.tld,_),Zj(g,e.utld,_),Zj(_,e.domain,o),Zj(_,r,a),J(_,RM,g),J(_,VM,h),J(_,jM,l);let v=J(_,FM),y=ON(DN);Zj(v,e.numeric,y);let b=ON(DN),x=ON();Zj(b,t,b),Zj(b,n,x),Zj(x,t,b),Zj(x,n,x),J(_,XM,b),J(y,XM,b),J(_,KM,x),J(_,GM,b),J(y,KM,x),J(y,GM,b);let S=J(s,FM),C=J(J(J(c,FM),XM),XM);Zj(s,e.domain,o),J(s,RM,g),J(s,VM,h),Zj(c,e.domain,o),J(c,RM,g),J(c,VM,h),Zj(S,e.domain,b),J(S,XM,b),J(S,KM,b),Zj(C,e.domain,b),Zj(C,t,b),J(C,XM,b);let w=[[fM,pM],[mM,hM],[gM,_M],[vM,yM],[bM,xM],[SM,CM],[wM,TM],[EM,DM]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=J(b,r);J(x,r,a);let o=ON(DN);Zj(a,t,o);let s=ON();Zj(a,n,s),J(a,i,b),Zj(o,t,o),Zj(o,n,s),Zj(s,t,o),Zj(s,n,s),J(o,i,b),J(s,i,b)}return J(i,iM,_),J(i,dM,EN),{start:i,tokens:tN}}function AN(e,t,n){let r=n.length,i=0,a=[],o=[],s=[];for(;i<r;){let c=e,l=null,u=null,d=0,f=null,p=-1,m=[];for(;i<r&&!(l=c.go(n[i].t));)o.push(n[i++]);for(;i<r&&(u=l||c.go(n[i].t));)if(l=null,c=u,i++,d++,c.accepts())p=0,f=c,m=[];else if(p>=0&&p++,m.push(c),s[i]&&s[i].has(c))break;for(let e=0,t=i-m.length+1;e<m.length;e++,t++)(s[t]||(s[t]=new Set)).add(m[e]);if(p<0)i-=d,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(jN(TN,t,o)),o=[]),i-=p,d-=p;let e=f.t,r=n.slice(i-d,i);a.push(jN(e,t,r))}}return o.length>0&&a.push(jN(TN,t,o)),a}function jN(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var MN=typeof console<`u`&&console&&console.warn||(()=>{}),NN=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,PN={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function FN(){return Xj.groups={},PN.scanner=null,PN.parser=null,PN.tokenQueue=[],PN.pluginQueue=[],PN.customSchemes=[],PN.initialized=!1,PN}function IN(e,t=!1){if(PN.initialized&&MN(`linkifyjs: already initialized - will not register custom scheme "${e}" ${NN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
-3. "-" cannot repeat`);wN.customSchemes.push([e,t])}function DN(){wN.scanner=iN(wN.customSchemes);for(let e=0;e<wN.tokenQueue.length;e++)wN.tokenQueue[e][1]({scanner:wN.scanner});wN.parser=yN(wN.scanner.tokens);for(let e=0;e<wN.pluginQueue.length;e++)wN.pluginQueue[e][1]({scanner:wN.scanner,parser:wN.parser});return wN.initialized=!0,wN}function ON(e){return wN.initialized||DN(),bN(wN.parser.start,e,aN(wN.scanner.start,e))}ON.scan=aN;function kN(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new uN(n),i=ON(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var AN=`[\0- \xA0 ᠎ -\u2029  ]`,jN=new RegExp(AN),MN=RegExp(`${AN}$`),NN=RegExp(`${AN}+$`),PN=new RegExp(AN,`g`);function FN(e,t,n){let r=e.doc.resolve(t.to);if(!r.nodeBefore?.isText)return;let i=e.doc.textBetween(t.from,t.to,``,``).match(NN)?.[0];if(!i)return;let a=t.to-i.length,o=eO(a,t.to,e.doc).filter(e=>e.mark.type===n);if(!o.length)return;let{nodeAfter:s}=r;if(s&&o.some(e=>e.mark.isInSet(s.marks)))return;let c=e.storedMarks;e.removeMark(a,t.to,n),e.setStoredMarks(c),e.selection.empty&&e.selection.from===t.to&&e.removeStoredMark(n)}function IN(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function LN(e){return new Dx({key:new Ax(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r,s=bD(n.doc,[...t]);if(!t.some(Hte)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof db)||!e.slice.size)return;let r=s.mapping.slice(n+1),i=r.map(e.from,1),a=r.map(e.from+e.slice.size,-1);i<a&&t.push({from:i,to:a})}),t.sort((e,t)=>t.to-e.to),t.forEach(t=>FN(o,t,e.type))}if($D(s).forEach(({newRange:t})=>{let n=Dne(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!MN.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(jN).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=ON(n).map(t=>t.toObject(e.defaultProtocol));if(!IN(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{eO(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function RN(e){return new Dx({key:new Ax(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=XD(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var zN=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,BN=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function VN(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function HN(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&VN(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function UN(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||VN(e,t.index??0)||HN(e,t.index??0)?!1:!!r.trim()&&n(i)}function WN(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function GN(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function KN(e){return{href:e.data?.href,title:e.data?.title??null}}function qN(e){let t=Wk({find:t=>{let n=zN.exec(t);return!n||!UN(t,n,e.isAllowedHref)?null:WN(n)},type:e.type,getAttributes:KN});return new dk({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function JN(e){let t=Yk({find:t=>{let n=[];for(let r of t.matchAll(BN))UN(t,r,e.isAllowedHref)&&n.push(WN(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>GN(t,e)));return[...n,...r]},type:e.type,getAttributes:KN});return new bk({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function YN(e){return new Dx({key:new Ax(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=kN(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function XN(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(PN,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var ZN=yk.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{typeof e==`string`?EN(e):EN(e.scheme,e.optionalSlashes)})},onDestroy(){TN()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!XN(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!XN(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!XN(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,RD(this.options.HTMLAttributes,e),0]:[`a`,RD(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!XN(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!XN(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addInputRules(){return this.options.markdownLinks?[qN({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!XN(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;kN(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!XN(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[JN({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!XN(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[Yk({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(LN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!XN(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(RN({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(YN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),QN=`listItem`,$N=`textStyle`,eP=/^\s*([-+*])\s$/,tP=Jk.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,RD(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(QN,this.editor.getAttributes($N)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=qk({find:eP,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=qk({find:eP,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes($N),editor:this.editor})),[e]}}),nP=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},rP=(e,t,n,r)=>{let i=nP(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,K.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},iP=(e,t,n)=>rP(e.state,e.view.dispatch,t,n),aP=(e,t)=>Dk.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>iP(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),oP=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],sP=`abcdefghijklmnopqrstuvwxyz`,cP=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function lP(e){let t=e,n=``;for(let[e,r]of oP)for(;t>=e;)n+=r,t-=e;return n}function uP(e){return lP(e).toUpperCase()}function dP(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of oP)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function fP(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=dP(e);return t<=0?!1:(e===e.toLowerCase()?lP(t):uP(t))===e}function pP(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function mP(e){if(e<=26)return sP[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?sP[n]:sP[t]+sP[n]}function hP(e){if(e&&!/^\d+$/.test(e)){if(fP(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function gP(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=hP(e);if(t===`i`||t===`I`)return dP(e);if(t===`a`||t===`A`){let t=pP(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function _P(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return mP(t);case`A`:return mP(t).toUpperCase();case`i`:return lP(t);case`I`:return uP(t);default:return String(t)}}function vP(e){if(e.length===0)return!1;let t=hP(e[0])??`numeric`,n=gP(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=_P(t,n+r);if(e[r]!==i)return!1}return!0}function yP(e){return{type:hP(e),start:gP(e)}}function bP(e){let{type:t,start:n}=yP(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function xP(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${mP(r)}${n}`;case`A`:return`${mP(r).toUpperCase()}${n}`;case`i`:return`${lP(r)}${n}`;case`I`:return`${uP(r)}${n}`;default:return`${r}${n}`}}function SP(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function CP(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var wP=Jk.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,RD(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(SP(e))return{type:`listItem`,content:[{type:`paragraph`,content:CP(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>ck(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return xP((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[aP(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),TP=(e,t)=>{let{$from:n}=t.selection,r=BE(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},EP=(e,t)=>{let n=TP(e,t);if(!n)return!1;let[,r]=tO(t,e,n.$pos.pos+4);return r},DP=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},OP=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!cD(e.state,t)&&DP(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!cD(e.state,t)||!lO(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},kP=(e,t)=>{let n=EP(e,t),r=TP(e,t);return!r||!n?!1:n>r.depth},AP=(e,t)=>{let n=EP(e,t),r=TP(e,t);return!r||!n?!1:n<r.depth},jP=(e,t)=>{if(!cD(e.state,t)||!cO(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:kP(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():AP(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},MP=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||cD(r,t))return!1;let o=nO(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,K.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,K.from(c)),e.setSelection(ux.create(e.doc,d+1)),e.scrollIntoView()),!0))},NP=Dk.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&jP(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&jP(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&OP(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&OP(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&MP(e,t,n))return!0;return!1}}}}),PP=RegExp(`^(\\s*)(${cP})([.)])\\s+(.*)$`),FP=/^\s/,IP={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function LP(e){return PP.test(e.trimStart())}function RP(e){let t=e.trimStart();return IP.bulletItem.test(t)||LP(t)||IP.heading.test(t)||IP.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||IP.codeFence.test(t)||IP.blockMath.test(t)}function zP(e){return Object.values(IP).some(t=>t.test(e))}function BP(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&RP(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function VP(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(PP);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?hP(s):void 0,p=isNaN(d)?gP(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(PP))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(FP)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||zP(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
+3. "-" cannot repeat`);PN.customSchemes.push([e,t])}function LN(){PN.scanner=mN(PN.customSchemes);for(let e=0;e<PN.tokenQueue.length;e++)PN.tokenQueue[e][1]({scanner:PN.scanner});PN.parser=kN(PN.scanner.tokens);for(let e=0;e<PN.pluginQueue.length;e++)PN.pluginQueue[e][1]({scanner:PN.scanner,parser:PN.parser});return PN.initialized=!0,PN}function RN(e){return PN.initialized||LN(),AN(PN.parser.start,e,hN(PN.scanner.start,e))}RN.scan=hN;function zN(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new bN(n),i=RN(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var BN=`[\0- \xA0 ᠎ -\u2029  ]`,VN=new RegExp(BN),HN=RegExp(`${BN}$`),UN=RegExp(`${BN}+$`),WN=new RegExp(BN,`g`);function GN(e,t,n){let r=e.doc.resolve(t.to);if(!r.nodeBefore?.isText)return;let i=e.doc.textBetween(t.from,t.to,``,``).match(UN)?.[0];if(!i)return;let a=t.to-i.length,o=TO(a,t.to,e.doc).filter(e=>e.mark.type===n);if(!o.length)return;let{nodeAfter:s}=r;if(s&&o.some(e=>e.mark.isInSet(s.marks)))return;let c=e.storedMarks;e.removeMark(a,t.to,n),e.setStoredMarks(c),e.selection.empty&&e.selection.from===t.to&&e.removeStoredMark(n)}function KN(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function qN(e){return new Yx({key:new Qx(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r,s=UD(n.doc,[...t]);if(!t.some(Vte)){let t=[];s.steps.forEach((e,n)=>{if(!(e instanceof Ib)||!e.slice.size)return;let r=s.mapping.slice(n+1),i=r.map(e.from,1),a=r.map(e.from+e.slice.size,-1);i<a&&t.push({from:i,to:a})}),t.sort((e,t)=>t.to-e.to),t.forEach(t=>GN(o,t,e.type))}if(wO(s).forEach(({newRange:t})=>{let n=WD(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!HN.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(VN).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=RN(n).map(t=>t.toObject(e.defaultProtocol));if(!KN(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{TO(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function JN(e){return new Yx({key:new Qx(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=xO(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var YN=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)$/,XN=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|“(.*?)”|‘(.*?)’))?\)/g;function ZN(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function QN(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"||n===0&&ZN(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function $N(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||ZN(e,t.index??0)||QN(e,t.index??0)?!1:!!r.trim()&&n(i)}function eP(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function tP(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function nP(e){return{href:e.data?.href,title:e.data?.title??null}}function rP(e){let t=pA({find:t=>{let n=YN.exec(t);return!n||!$N(t,n,e.isAllowedHref)?null:eP(n)},type:e.type,getAttributes:nP});return new Pk({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function iP(e){let t=vA({find:t=>{let n=[];for(let r of t.matchAll(XN))$N(t,r,e.isAllowedHref)&&n.push(eP(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>tP(t,e)));return[...n,...r]},type:e.type,getAttributes:nP});return new Uk({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function aP(e){return new Yx({key:new Qx(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=zN(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function oP(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(WN,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var sP=Hk.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{typeof e==`string`?IN(e):IN(e.scheme,e.optionalSlashes)})},onDestroy(){FN()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!oP(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!oP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!oP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,sO(this.options.HTMLAttributes,e),0]:[`a`,sO(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!oP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!oP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addInputRules(){return this.options.markdownLinks?[rP({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!oP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;zN(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!oP(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[iP({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!oP(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[vA({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(qN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!oP(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(JN({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(aP({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),cP=`listItem`,lP=`textStyle`,uP=/^\s*([-+*])\s$/,dP=_A.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,sO(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(cP,this.editor.getAttributes(lP)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=gA({find:uP,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=gA({find:uP,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(lP),editor:this.editor})),[e]}}),fP=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},pP=(e,t,n,r)=>{let i=fP(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,K.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},mP=(e,t,n)=>pP(e.state,e.view.dispatch,t,n),hP=(e,t)=>Xk.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>mP(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),gP=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],_P=`abcdefghijklmnopqrstuvwxyz`,vP=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function yP(e){let t=e,n=``;for(let[e,r]of gP)for(;t>=e;)n+=r,t-=e;return n}function bP(e){return yP(e).toUpperCase()}function xP(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of gP)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function SP(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=xP(e);return t<=0?!1:(e===e.toLowerCase()?yP(t):bP(t))===e}function CP(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function wP(e){if(e<=26)return _P[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?_P[n]:_P[t]+_P[n]}function TP(e){if(e&&!/^\d+$/.test(e)){if(SP(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function EP(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=TP(e);if(t===`i`||t===`I`)return xP(e);if(t===`a`||t===`A`){let t=CP(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function DP(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return wP(t);case`A`:return wP(t).toUpperCase();case`i`:return yP(t);case`I`:return bP(t);default:return String(t)}}function OP(e){if(e.length===0)return!1;let t=TP(e[0])??`numeric`,n=EP(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=DP(t,n+r);if(e[r]!==i)return!1}return!0}function kP(e){return{type:TP(e),start:EP(e)}}function AP(e){let{type:t,start:n}=kP(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function jP(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${wP(r)}${n}`;case`A`:return`${wP(r).toUpperCase()}${n}`;case`i`:return`${yP(r)}${n}`;case`I`:return`${bP(r)}${n}`;default:return`${r}${n}`}}function MP(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function NP(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var PP=_A.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,sO(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(MP(e))return{type:`listItem`,content:[{type:`paragraph`,content:NP(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>jk(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return jP((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[hP(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),FP=(e,t)=>{let{$from:n}=t.selection,r=oD(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},IP=(e,t)=>{let n=FP(e,t);if(!n)return!1;let[,r]=EO(t,e,n.$pos.pos+4);return r},LP=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},RP=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!kD(e.state,t)&&LP(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!kD(e.state,t)||!One(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},zP=(e,t)=>{let n=IP(e,t),r=FP(e,t);return!r||!n?!1:n>r.depth},BP=(e,t)=>{let n=IP(e,t),r=FP(e,t);return!r||!n?!1:n<r.depth},VP=(e,t)=>{if(!kD(e.state,t)||!Dne(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:zP(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():BP(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},HP=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||kD(r,t))return!1;let o=DO(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,K.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,K.from(c)),e.setSelection(Fx.create(e.doc,d+1)),e.scrollIntoView()),!0))},UP=Xk.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&VP(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&VP(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&RP(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&RP(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&HP(e,t,n))return!0;return!1}}}}),WP=RegExp(`^(\\s*)(${vP})([.)])\\s+(.*)$`),GP=/^\s/,KP={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function qP(e){return WP.test(e.trimStart())}function JP(e){let t=e.trimStart();return KP.bulletItem.test(t)||qP(t)||KP.heading.test(t)||KP.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||KP.codeFence.test(t)||KP.blockMath.test(t)}function YP(e){return Object.values(KP).some(t=>t.test(e))}function XP(e){let t=[],n=[],r=!1;return e.forEach(e=>{r?n.push(e):e.trim()===``||t.length>0&&JP(e)?(r=!0,n.push(e)):t.push(e)}),{paragraphLines:t,blockLines:n}}function ZP(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(WP);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?TP(s):void 0,p=isNaN(d)?EP(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(WP))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(GP)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||YP(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(`
`).trim(),contentLines:m,raw:g.join(`
-`)}),r=h,n=h}return[t,r]}var HP=RegExp(`^(${cP})([.)])\\s+(.+)$`);function UP(e){let t=e.split(`
-`).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(HP);if(!t)return null;n.push({marker:t[1],content:t[3]})}return vP(n.map(e=>e.marker))?{type:`orderedList`,attrs:bP(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function WP(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=BP(a.contentLines),c=o.join(`
+`)}),r=h,n=h}return[t,r]}var QP=RegExp(`^(${vP})([.)])\\s+(.+)$`);function $P(e){let t=e.split(`
+`).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(QP);if(!t)return null;n.push({marker:t[1],content:t[3]})}return OP(n.map(e=>e.marker))?{type:`orderedList`,attrs:AP(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function eF(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=XP(a.contentLines),c=o.join(`
`).trim(),l=[];c&&l.push({type:`paragraph`,raw:c,tokens:n.inlineTokens(c)});let u=s.join(`
-`).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=WP(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(`
-`)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function GP(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var KP=64;function qP(e,t){let n=[],r=0;for(;n.length<t;){let t=e.indexOf(`
-`,r);if(t===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,t)),r=t+1}return n}function JP(e){let t=e.indexOf(`
-`),n=t===-1?e:e.slice(0,t);if(!PP.test(n))return[[],0,[]];let r=KP,i=qP(e,r),a=VP(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=qP(e,r),a=VP(i);return[a[0],a[1],i]}var YP=`listItem`,XP=`textStyle`,ZP=/^(\d+)\.\s$/;function QP(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var $P=Jk.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=QP(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=QP(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=RD(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?GP(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let[r,i,a]=JP(e);if(r.length===0)return;let o=WP(r,r[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:r[0]?.number||1,typeMarker:r[0]?.type,items:o,raw:a.slice(0,i).join(`
-`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(YP,this.editor.getAttributes(XP)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new Dx({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=UP(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=qk({find:ZP,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=qk({find:ZP,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(XP)}),joinPredicate:e,editor:this.editor})),[t]}}),eF=/^\s*(\[([( |x])?\])\s$/,tF=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,nF=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},rF=Jk.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,RD(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>ck(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[aP(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=tF;let l=e=>{let t=nF(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=zD(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[qk({find:eF,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),iF=Jk.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,RD(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
-`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=ak(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=ak(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Dk.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(tP.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(wP.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(NP.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push($P.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(rF.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(iF.configure(this.options.taskList)),e}});var aF=`&nbsp;`,oF=`\xA0`,sF=Jk.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,RD(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===aF||n[0].text===aF||n[0].raw===oF||n[0].text===oF)&&r.length===1&&r[0].type===`text`&&(r[0].text===aF||r[0].text===oF)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?aF:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),cF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,lF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,uF=yk.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,RD(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Wk({find:cF,type:this.type})]},addPasteRules(){return[Yk({find:lF,type:this.type})]}}),dF=Jk.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),fF=yk.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,RD(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function pF(e={}){return new Dx({view(t){return new mF(t,e)}})}var mF=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.setCursor(null),this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(this.cursorPos!=null&&t.doc!=e.state.doc){if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=Rb(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},hF=class e extends ox{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):ox.near(r)}content(){return q.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new gF(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!vF(e)||!yF(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!fx.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};hF.prototype.visible=!1,hF.findFrom=hF.findGapCursorFrom,ox.jsonID(`gapcursor`,hF);var gF=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return hF.valid(t)?new hF(t):ox.near(t)}};function _F(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function vF(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0}else for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||_F(e.type))return!0;if(e.inlineContent)return!1}}return!0}function yF(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0}else for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||_F(e.type))return!0;if(e.inlineContent)return!1}}return!0}function bF(){return new Dx({props:{decorations:TF,createSelectionBetween(e,t,n){return t.pos==n.pos&&hF.valid(n)?new hF(n):null},handleClick:CF,handleKeyDown:xF,handleDOMEvents:{beforeinput:wF}}})}var xF=bE({ArrowLeft:SF(`horiz`,-1),ArrowRight:SF(`horiz`,1),ArrowUp:SF(`vert`,-1),ArrowDown:SF(`vert`,1)});function SF(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof ux){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=hF.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new hF(c))),!0):!1}}function CF(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!hF.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&fx.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new hF(r))),!0)}function wF(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof hF))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=K.empty;for(let e=r.length-1;e>=0;e--)i=K.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new q(i,0,0));return a.setSelection(ux.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function TF(e){if(!(e.selection instanceof hF))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,LT.create(e.doc,[PT.widget(e.selection.head,t,{key:`gapcursor`})])}Dk.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Dx({key:new Ax(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var EF=Dk.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[pF(this.options)]}});Dk.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new Dx({key:new Ax(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return LT.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(PT.node(t,t+e.nodeSize,{class:this.options.className}))}),LT.create(e,a)}}})]}});var DF=Dk.create({name:`gapCursor`,addProseMirrorPlugins(){return[bF()]},extendNodeSchema(e){return{allowGapCursor:ID(SD(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),OF=`placeholder`,kF=new Ax(`tiptap__placeholder`);function AF(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),PT.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function jF(e,t){return typeof e==`function`?e(t):e}function MF({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&fO(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(AF({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:jF(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function NF({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!e.isEditable&&t.showOnlyWhenEditable)return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&fO(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(AF({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:jF(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...MF({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return LT.create(r,o)}function PF(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function FF(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function IF(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function LF(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function RF(e,t){let n=IF(e,t.from,t.to);return n.push(FF(e,PF(e,t.from))),t.to>t.from?n.push(FF(e,PF(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(FF(e,PF(e,Math.min(t.from+1,e.content.size)))),n}function zF(e,t,n){let r=[];if(e.docChanged){let t=$D(e);for(let e of t)r.push(...RF(n.doc,e.newRange))}return e.selectionSet&&(r.push(FF(n.doc,PF(n.doc,e.mapping.map(t.selection.anchor)))),r.push(FF(n.doc,PF(n.doc,n.selection.anchor)))),LF(r)}function BF(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function VF({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=BF(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=MF({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function HF({editor:e,options:t,dataAttribute:n}){return{init(r,i){return NF({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??LT.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:VF({decorations:i.map(r.mapping,r.doc),ranges:zF(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function UF(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function WF({editor:e,options:t}){let n=t.dataAttribute?`data-${UF(t.dataAttribute)}`:`data-${OF}`,r=t.showOnlyCurrent&&!t.includeChildren;return new Dx({key:kF,...r?{}:{state:HF({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>NF({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?LT.empty:kF.getState(n)??LT.empty}})}var GF=Dk.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:OF,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[WF({editor:this.editor,options:this.options})]}});function KF(e,t){return!e.selection.empty&&!pO(e.selection)&&t.isEditable}function qF(e,t){return KF(e,t)&&!t.isFocused&&!t.view.dragging}function JF(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function YF(e){e.focus()}Dk.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new Dx({key:new Ax(`selection`),props:{decorations(n){return qF(n,e)?LT.create(n.doc,[PT.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return KF(t.state,e)&&JF(),!1},focus(t){return KF(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&YF(t)}),!1}}}})]}});function XF({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var ZF=Dk.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new Ax(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new Dx({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!XF({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!XF({node:r,types:n})}}})]}}),QF=Dk.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>IE(e,t),redo:()=>({state:e,dispatch:t})=>LE(e,t)}},addProseMirrorPlugins(){return[Vte(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),$F=Dk.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(mre.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(lre.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(tP.configure(this.options.bulletList)),this.options.code!==!1&&e.push(vre.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(xre.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(Sre.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(EF.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(DF.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Cre.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(wre.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(QF.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(Tre.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(Are.configure(this.options.italic)),this.options.listItem!==!1&&e.push(wP.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(NP.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(ZN.configure(this.options?.link)),this.options.orderedList!==!1&&e.push($P.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(sF.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(uF.configure(this.options.strike)),this.options.text!==!1&&e.push(dF.configure(this.options.text)),this.options.underline!==!1&&e.push(fF.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(ZF.configure(this.options?.trailingNode)),e}}),eI=GF,tI=[`top`,`right`,`bottom`,`left`],nI=[`start`,`end`],rI=tI.reduce((e,t)=>e.concat(t,t+`-`+nI[0],t+`-`+nI[1]),[]),iI=Math.min,aI=Math.max,oI=Math.round,sI=Math.floor,cI=e=>({x:e,y:e}),lI={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function uI(e,t,n){return aI(e,iI(t,n))}function dI(e,t){return typeof e==`function`?e(t):e}function fI(e){return e.split(`-`)[0]}function pI(e){return e.split(`-`)[1]}function mI(e){return e===`x`?`y`:`x`}function hI(e){return e===`y`?`height`:`width`}function gI(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function _I(e){return mI(gI(e))}function vI(e,t,n){n===void 0&&(n=!1);let r=pI(e),i=_I(e),a=hI(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=DI(o)),[o,DI(o)]}function yI(e){let t=DI(e);return[bI(e),t,bI(t)]}function bI(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var xI=[`left`,`right`],SI=[`right`,`left`],CI=[`top`,`bottom`],wI=[`bottom`,`top`];function TI(e,t,n){switch(e){case`top`:case`bottom`:return n?t?SI:xI:t?xI:SI;case`left`:case`right`:return t?CI:wI;default:return[]}}function EI(e,t,n,r){let i=pI(e),a=TI(fI(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(bI)))),a}function DI(e){let t=fI(e);return lI[t]+e.slice(t.length)}function OI(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function kI(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:OI(e)}function AI(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function jI(e,t,n){let{reference:r,floating:i}=e,a=gI(t),o=_I(t),s=hI(o),c=fI(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=pI(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function MI(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=dI(t,e),p=kI(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=AI(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=AI(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var NI=50,PI=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:MI},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=jI(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<NI&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=jI(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},FI=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=dI(e,t)||{};if(l==null)return{};let d=kI(u),f={x:n,y:r},p=_I(i),m=hI(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=iI(d[_],T),D=iI(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=uI(E,k,O),j=!c.arrow&&pI(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}});function II(e,t,n){return(e?[...n.filter(t=>pI(t)===e),...n.filter(t=>pI(t)!==e)]:n.filter(e=>fI(e)===e)).filter(n=>!e||pI(n)===e||(t?bI(n)!==n:!1))}var LI=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=rI,autoAlignment:u=!0,...d}=dI(e,t),f=c!==void 0||l===rI?II(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=vI(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[fI(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=pI(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,pI(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},RI=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=dI(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=fI(r),_=gI(o),v=fI(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[DI(o)]:yI(o)),x=p!==`none`;!d&&x&&b.push(...EI(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=vI(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===gI(t)||T.every(e=>gI(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=gI(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function zI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function BI(e){return tI.some(t=>e[t]>=0)}var VI=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=dI(e,t);switch(i){case`referenceHidden`:{let e=zI(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:BI(e)}}}case`escaped`:{let e=zI(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:BI(e)}}}default:return{}}}}};function HI(e){let t=iI(...e.map(e=>e.left)),n=iI(...e.map(e=>e.top)),r=aI(...e.map(e=>e.right)),i=aI(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function UI(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>AI(HI(e)))}var WI=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=dI(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=UI(u),f=AI(HI(u)),p=kI(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(gI(n)===`y`){let e=d[0],t=d[d.length-1],r=fI(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return AI({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=fI(n)===`left`,t=aI(...d.map(e=>e.right)),r=iI(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return AI({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},GI=new Set([`left`,`top`]);async function KI(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=fI(n),s=pI(n),c=gI(n)===`y`,l=GI.has(o)?-1:1,u=a&&c?-1:1,d=dI(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var qI=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await KI(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},JI=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=dI(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=gI(i),p=mI(f),m=u[p],h=u[f],g=(e,t)=>uI(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},YI=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=dI(e,t),u={x:n,y:r},d=gI(i),f=mI(d),p=u[f],m=u[d],h=dI(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=GI.has(fI(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},XI=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=dI(e,t),c=await i.detectOverflow(t,s),l=fI(n),u=pI(n),d=gI(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=iI(p-c[m],g),y=iI(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*aI(c.left,c.right):S=p-2*aI(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ZI(){return typeof window<`u`}function QI(e){return tL(e)?(e.nodeName||``).toLowerCase():`#document`}function $I(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eL(e){return((tL(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function tL(e){return ZI()?e instanceof Node||e instanceof $I(e).Node:!1}function nL(e){return ZI()?e instanceof Element||e instanceof $I(e).Element:!1}function rL(e){return ZI()?e instanceof HTMLElement||e instanceof $I(e).HTMLElement:!1}function iL(e){return!ZI()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof $I(e).ShadowRoot}function aL(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=gL(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function oL(e){return/^(table|td|th)$/.test(QI(e))}function sL(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var cL=/transform|translate|scale|rotate|perspective|filter/,lL=/paint|layout|strict|content/,uL=e=>!!e&&e!==`none`,dL;function fL(e){let t=nL(e)?gL(e):e;return uL(t.transform)||uL(t.translate)||uL(t.scale)||uL(t.rotate)||uL(t.perspective)||!mL()&&(uL(t.backdropFilter)||uL(t.filter))||cL.test(t.willChange||``)||lL.test(t.contain||``)}function pL(e){let t=vL(e);for(;rL(t)&&!hL(t);){if(fL(t))return t;if(sL(t))return null;t=vL(t)}return null}function mL(){return dL??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),dL}function hL(e){return/^(html|body|#document)$/.test(QI(e))}function gL(e){return $I(e).getComputedStyle(e)}function _L(e){return nL(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vL(e){if(QI(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||iL(e)&&e.host||eL(e);return iL(t)?t.host:t}function yL(e){let t=vL(e);return hL(t)?(e.ownerDocument||e).body:rL(t)&&aL(t)?t:yL(t)}function bL(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=yL(e),i=r===e.ownerDocument?.body,a=$I(r);if(i){let e=xL(a);return t.concat(a,a.visualViewport||[],aL(r)?r:[],e&&n?bL(e):[])}return t.concat(r,bL(r,[],n))}function xL(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function SL(e){let t=gL(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=rL(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=oI(n)!==a||oI(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function CL(e){return nL(e)?e:e.contextElement}function wL(e){let t=CL(e);if(!rL(t))return cI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=SL(t),o=(a?oI(n.width):n.width)/r,s=(a?oI(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var TL=cI(0);function EL(e){let t=$I(e);return!mL()||!t.visualViewport?TL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DL(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===$I(e)}function OL(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=CL(e),o=cI(1);t&&(r?nL(r)&&(o=wL(r)):o=wL(e));let s=DL(a,n,r)?EL(a):cI(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=$I(a),t=nL(r)?$I(r):r,n=e,i=xL(n);for(;i&&t!==n;){let e=wL(i),t=i.getBoundingClientRect(),r=gL(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=$I(i),i=xL(n)}}return AI({width:u,height:d,x:c,y:l})}function kL(e,t){let n=_L(e).scrollLeft;return t?t.left+n:OL(eL(e)).left+n}function AL(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-kL(e,n),y:n.top+t.scrollTop}}function jL(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=eL(r),s=t?sL(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=cI(1),u=cI(0),d=rL(r);if((d||!a)&&((QI(r)!==`body`||aL(o))&&(c=_L(r)),d)){let e=OL(r);l=wL(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?AL(o,c):cI(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function ML(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function NL(e){let t=_L(e),n=e.ownerDocument.body,r=aI(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=aI(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+kL(e),o=-t.scrollTop;return gL(n).direction===`rtl`&&(a+=aI(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var PL=25;function FL(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=$I(e),a=eL(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!mL()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(kL(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=PL&&(s-=o)}return{width:s,height:c,x:l,y:u}}function IL(e,t){let n=OL(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=wL(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function LL(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=FL(e,n,t);else if(t===`document`)r=NL(eL(e));else if(nL(t))r=IL(t,n);else{let n=EL(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return AI(r)}function RL(e,t){let n=t.get(e);if(n)return n;let r=bL(e,[],!1).filter(e=>nL(e)&&QI(e)!==`body`),i=null,a=gL(e).position===`fixed`,o=a?vL(e):e;for(;nL(o)&&!hL(o);){let e=gL(o),t=fL(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=vL(o)}return t.set(e,r),r}function zL(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?sL(t)?[]:RL(t,this._c):[].concat(n),r],o=LL(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=LL(t,a[e],i);s=aI(n.top,s),c=iI(n.right,c),l=iI(n.bottom,l),u=aI(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function BL(e){let{width:t,height:n}=SL(e);return{width:t,height:n}}function VL(e,t,n){let r=rL(t),i=eL(t),a=n===`fixed`,o=OL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=cI(0);if((r||!a)&&((QI(t)!==`body`||aL(i))&&(s=_L(t)),r)){let e=OL(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=kL(i));let l=i&&!r&&!a?AL(i,s):cI(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function HL(e){return gL(e).position===`static`}function UL(e,t){if(!rL(e)||gL(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return eL(e)===n&&(n=n.ownerDocument.body),n}function WL(e,t){let n=$I(e);if(sL(e))return n;if(!rL(e)){let t=vL(e);for(;t&&!hL(t);){if(nL(t)&&!HL(t))return t;t=vL(t)}return n}let r=UL(e,t);for(;r&&oL(r)&&HL(r);)r=UL(r,t);return r&&hL(r)&&HL(r)&&!fL(r)?n:r||pL(e)||n}var GL=async function(e){let t=this.getOffsetParent||WL,n=this.getDimensions,r=await n(e.floating);return{reference:VL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KL(e){return gL(e).direction===`rtl`}var qL={convertOffsetParentRelativeRectToViewportRelativeRect:jL,getDocumentElement:eL,getClippingRect:zL,getOffsetParent:WL,getElementRects:GL,getClientRects:ML,getDimensions:BL,getScale:wL,isElement:nL,isRTL:KL};function JL(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YL(e,t,n){let r=null,i,a=eL(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=sI(d),h=sI(a.clientWidth-(u+f)),g=sI(a.clientHeight-(d+p)),_=sI(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:aI(0,iI(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!JL(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=$I(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function XL(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=CL(e),u=i||a?[...l?bL(l):[],...t?bL(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?YL(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?OL(e):null;c&&g();function g(){let t=OL(e);h&&!JL(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ZL=qI,QL=LI,$L=JI,eR=RI,tR=XI,nR=VI,rR=FI,iR=WI,aR=YI,oR=(e,t,n)=>{let r=new Map,i=n??{},a={...qL,...i.platform,_c:r};return PI(e,t,{...i,platform:a})},sR,cR;if(typeof WeakMap<`u`){let e=new WeakMap;sR=t=>e.get(t),cR=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;sR=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},cR=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var lR=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o||t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return sR(e)||cR(e,uR(e))}};function uR(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=dR(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new lR(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&fR(s,o,e),s}function dR(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function fR(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r==null||c.colwidth&&c.colwidth[n]==r||((s||=pR(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function pR(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function mR(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new Ax(`selectingCells`);function hR(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function gR(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function _R(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=hR(t.$head)||vR(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function vR(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function yR(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function bR(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function xR(e,t,n){let r=e.node(-1),i=lR.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function SR(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}var CR=class e extends ox{constructor(e,t=e){let n=e.node(-1),r=lR.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new sx(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(yR(r)&&yR(i)&&bR(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return ux.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=lR.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=SR(e,0,l)),u>0&&(e=SR(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(K.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new q(K.from(o),1,1)}replace(e,t=q.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?q.empty:t)}let i=ox.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new q(K.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=lR.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=lR.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=lR.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=lR.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new wR(this.$anchorCell.pos,this.$headCell.pos)}};CR.prototype.visible=!1,ox.jsonID(`cell`,CR);var wR=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&bR(t,n)?new CR(t,n):ox.near(n,1)}};new Ax(`fix-tables`);function TR(e){let t=e.selection,n=_R(e),r=n.node(-1),i=n.start(-1),a=lR.get(r);return{...t instanceof CR?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function ER(e){return function(t,n){if(!gR(t))return!1;if(n){let r=mR(t.schema),i=TR(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function DR(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function OR(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?ER(e):function(t,n){if(!gR(t))return!1;if(n){let r=mR(t.schema),i=TR(t),a=t.tr,o=DR(`row`,i,r),s=DR(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}OR(`row`,{useDeprecatedLogic:!0}),OR(`column`,{useDeprecatedLogic:!0}),OR(`cell`,{useDeprecatedLogic:!0});function kR(e,t){let n=e.selection;if(!(n instanceof CR))return!1;if(t){let r=e.tr,i=mR(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new q(i,0,0))}),r.docChanged&&t(r)}return!0}bE({ArrowLeft:jR(`horiz`,-1),ArrowRight:jR(`horiz`,1),ArrowUp:jR(`vert`,-1),ArrowDown:jR(`vert`,1),"Shift-ArrowLeft":MR(`horiz`,-1),"Shift-ArrowRight":MR(`horiz`,1),"Shift-ArrowUp":MR(`vert`,-1),"Shift-ArrowDown":MR(`vert`,1),Backspace:kR,"Mod-Backspace":kR,Delete:kR,"Mod-Delete":kR});function AR(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function jR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof CR)return AR(n,r,ox.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=NR(i,e,t);if(o==null)return!1;if(e==`horiz`)return AR(n,r,ox.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=xR(i,e,t),s;return s=a?ox.near(a,1):t<0?ox.near(n.doc.resolve(i.before(-1)),-1):ox.near(n.doc.resolve(i.after(-1)),1),AR(n,r,s)}}}function MR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof CR)o=a;else{let r=NR(i,e,t);if(r==null)return!1;o=new CR(n.doc.resolve(r))}let s=xR(o.$headCell,e,t);return s?AR(n,r,new CR(o.$anchorCell,s)):!1}}function NR(e,t,n){if(!(e.state.selection instanceof ux))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}new Ax(`tableColumnResizing`);function PR(e,t){let n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left),a=Math.max(e.right,t.right)-i,o=r-n;return new DOMRect(i,n,a,o)}var Lre=class{get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(eR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push($L(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(ZL(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(rR(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(tR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(QL(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(nR(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(iR(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}get virtualElement(){var e;let{selection:t}=this.editor.state,n=this.getReferencedVirtualElement?.call(this);if(n)return n;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let r=yO(this.view,t.from,t.to),i={getBoundingClientRect:()=>r,getClientRects:()=>[r]};if(t instanceof fx){let e=this.view.nodeDOM(t.from),n=e.dataset.nodeViewWrapper?e:e.querySelector(`[data-node-view-wrapper]`);n&&(e=n),e&&(i={getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>[e.getBoundingClientRect()]})}if(t instanceof CR){let{$anchorCell:e,$headCell:n}=t,r=e?e.pos:n.pos,a=n?n.pos:e.pos,o=this.view.nodeDOM(r),s=this.view.nodeDOM(a);if(!o||!s)return;let c=o===s?o.getBoundingClientRect():PR(o.getBoundingClientRect(),s.getBoundingClientRect());i={getBoundingClientRect:()=>c,getClientRects:()=>[c]}}return i}constructor({editor:e,element:t,view:n,pluginKey:r=`bubbleMenu`,updateDelay:i=250,resizeDelay:a=60,shouldShow:o,appendTo:s,getReferencedVirtualElement:c,options:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:`absolute`,placement:`top`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:e,state:t,from:n,to:r})=>{let{doc:i,selection:a}=t,{empty:o}=a,s=!i.textBetween(n,r).length&&JE(t.selection),c=this.element.contains(document.activeElement);return!(!(e.hasFocus()||c)||o||s||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.editor.isDestroyed?this.destroy():this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(e,t)=>{let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.show(),this.updatePosition()):this.hide())},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=l?.scrollTarget??window,this.getReferencedVirtualElement=c,this.floatingUIOptions={...this.floatingUIOptions,...l},this.element.tabIndex=0,o&&(this.shouldShow=o),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener(`dragstart`,this.dragstartHandler),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;let e=this.virtualElement;e&&oR(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{this.isVisible&&!this.editor.isDestroyed&&this.element.isConnected&&(r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()))})}update(e,t){let{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}let i=!t?.selection.eq(e.state.selection),a=!t?.doc.eq(e.state.doc);this.updateHandler(e,i,a,t)}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,element:this.element,view:this.view,state:t,oldState:e,from:i,to:a})||!1}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener(`dragstart`,this.dragstartHandler),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},FR=e=>new Dx({key:typeof e.pluginKey==`string`?new Ax(e.pluginKey):e.pluginKey,view:t=>new Lre({view:t,...e})});Dk.create({name:`bubbleMenu`,addOptions(){return{element:null,pluginKey:`bubbleMenu`,updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[FR({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var Rre=class{getTextContent(e){return qD(e,{textSerializers:JD(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(eR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push($L(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(ZL(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(rR(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(tR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(QL(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(nR(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(iR(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}constructor({editor:e,element:t,view:n,pluginKey:r=`floatingMenu`,updateDelay:i=250,resizeDelay:a=60,options:o,appendTo:s,shouldShow:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:e,state:t})=>{let{selection:n}=t,{$anchor:r,empty:i}=n,a=r.depth===1,o=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&r.parent.childCount===0&&!this.getTextContent(r.parent);return!(!e.hasFocus()||!i||!a||!o||!this.editor.isEditable)},this.floatingUIOptions={strategy:`absolute`,placement:`right`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.updatePosition(),this.show()):this.hide())},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=o?.scrollTarget??window,this.floatingUIOptions={...this.floatingUIOptions,...o},this.element.tabIndex=0,c&&(this.shouldShow=c),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,view:this.view,state:t,oldState:e,from:i,to:a})}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){var e;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let{selection:t}=this.editor.state,n=yO(this.view,t.from,t.to);oR({getBoundingClientRect:()=>n,getClientRects:()=>[n]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate())})}update(e,t){let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);this.updateHandler(e,n,r,t)}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},IR=e=>new Dx({key:typeof e.pluginKey==`string`?new Ax(e.pluginKey):e.pluginKey,view:t=>new Rre({view:t,...e})});Dk.create({name:`floatingMenu`,addOptions(){return{element:null,options:{},pluginKey:`floatingMenu`,updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:e,dispatch:t})=>(t&&e.setMeta(this.options.pluginKey,`updatePosition`),!0)}},addProseMirrorPlugins(){return this.options.element?[IR({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function LR(e,t){return e??new Ax(t)}var zre=typeof window<`u`?H.useLayoutEffect:H.useEffect,RR=new Set([`left`,`opacity`,`position`,`top`,`visibility`,`width`]),Bre=new Set(`animationIterationCount.aspectRatio.borderImageOutset.borderImageSlice.borderImageWidth.columnCount.columns.fillOpacity.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineClamp.lineHeight.opacity.order.orphans.scale.stopOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeOpacity.strokeWidth.tabSize.widows.zIndex.zoom`.split(`.`)),Vre=new Set([`children`,`className`,`style`]),Hre=new Set([`tabIndex`]),Ure=new Set([`accessKey`,`autoCapitalize`,`contentEditable`,`contextMenu`,`dir`,`draggable`,`enterKeyHint`,`hidden`,`id`,`lang`,`nonce`,`role`,`slot`,`spellCheck`,`tabIndex`,`title`,`translate`]),Wre={Blur:`focusout`,DoubleClick:`dblclick`,Focus:`focusin`,MouseEnter:`mouseenter`,MouseLeave:`mouseleave`};function zR(e,t){return/^on[A-Z]/.test(e)&&typeof t==`function`}function Gre(e){return e.startsWith(`aria-`)||e.startsWith(`data-`),e}function Kre(e){return e.startsWith(`aria-`)||e.startsWith(`data-`)||Ure.has(e)}function BR(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function qre(e){let t=e.endsWith(`Capture`),n=(t?e.slice(0,-7):e).slice(2);return{eventName:Wre[n]??n.toLowerCase(),options:t?{capture:!0}:void 0}}function Jre(e,t){let n=t.defaultPrevented,r=!1,i=Object.create(t);return Object.defineProperties(i,{nativeEvent:{value:t},currentTarget:{value:e},target:{value:t.target},persist:{value:()=>void 0},isDefaultPrevented:{value:()=>n},isPropagationStopped:{value:()=>r},preventDefault:{value:()=>{n=!0,t.preventDefault()}},stopPropagation:{value:()=>{r=!0,t.stopPropagation()}}}),i}function VR(e){return Hre.has(e)}function HR(e,t,n){t===`tabIndex`?e.tabIndex=Number(n):e[t]=n}function Yre(e,t){if(t===`tabIndex`){e.removeAttribute(`tabindex`);return}let n=e[t];e[t]=typeof n==`boolean`?!1:typeof n==`number`?0:``}function Xre(e,t){return typeof t!=`number`||t===0||e.startsWith(`--`)||Bre.has(e)?String(t):`${t}px`}function Zre(e,t){RR.has(t)||e.style.removeProperty(BR(t))}function Qre(e,t,n){RR.has(t)||e.style.setProperty(BR(t),Xre(t,n))}function $re(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(r=>{if(Vre.has(r)||!Kre(r)||zR(r,t[r])||zR(r,n[r]))return;let i=t[r],a=n[r];if(i===a)return;let o=Gre(r);a==null||a===!1?(VR(r)&&Yre(e,r),e.removeAttribute(o)):a===!0?(VR(r)&&HR(e,r,!0),e.setAttribute(o,``)):VR(r)?HR(e,r,a):e.setAttribute(o,String(a))})}function eie(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute(`class`))}function tie(e,t,n){let r=t??{},i=n??{};new Set([...Object.keys(r),...Object.keys(i)]).forEach(t=>{let n=r[t],a=i[t];n!==a&&(a==null?Zre(e,t):Qre(e,t,a))})}function nie(e,t,n){t.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)});let r=[];return Object.entries(n).forEach(([t,n])=>{if(!zR(t,n))return;let{eventName:i,options:a}=qre(t),o=t=>{n(Jre(e,t))};e.addEventListener(i,o,a),r.push({eventName:i,listener:o,options:a})}),r}function UR(e,t){let n=(0,H.useRef)({}),r=(0,H.useRef)([]);zre(()=>{let i=n.current;return eie(e,i.className,t.className),tie(e,i.style,t.style),$re(e,i,t),r.current=nie(e,r.current,t),n.current=t,()=>{r.current.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)}),r.current=[]}},[e,t])}var rie=H.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,getReferencedVirtualElement:o,options:s,children:c,...l},u)=>{let d=(0,H.useRef)(document.createElement(`div`)),f=(0,H.useRef)(LR(e,`bubbleMenu`)).current;UR(d.current,l),typeof u==`function`?u(d.current):u&&(u.current=d.current);let{editor:p}=_j(),m=t||p,h={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:f,shouldShow:a,getReferencedVirtualElement:o,options:s},g=(0,H.useRef)(h);g.current=h;let[_,v]=(0,H.useState)(!1),y=(0,H.useRef)(!0);return(0,H.useEffect)(()=>{if(m?.isDestroyed)return;if(!m){console.warn(`BubbleMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=d.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=FR({...g.current,editor:m,element:e});m.registerPlugin(t);let n=g.current.pluginKey;return y.current=!0,v(!0),()=>{v(!1),m.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[m]),(0,H.useEffect)(()=>{_&&m&&!m.isDestroyed&&(y.current?y.current=!1:m.view.dispatch(m.state.tr.setMeta(f,{type:`updateOptions`,options:g.current})))},[_,m,n,r,a,s,i,o,f]),(0,Oe.createPortal)(c,d.current)});H.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,options:o,children:s,...c},l)=>{let u=(0,H.useRef)(document.createElement(`div`)),d=(0,H.useRef)(LR(e,`floatingMenu`)).current;UR(u.current,c),typeof l==`function`?l(u.current):l&&(l.current=u.current);let{editor:f}=_j(),p=t||f,m={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:d,shouldShow:a,options:o},h=(0,H.useRef)(m);h.current=m;let[g,_]=(0,H.useState)(!1),v=(0,H.useRef)(!0);return(0,H.useEffect)(()=>{if(p?.isDestroyed)return;if(!p){console.warn(`FloatingMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=u.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=IR({...h.current,editor:p,element:e});p.registerPlugin(t);let n=h.current.pluginKey;return v.current=!0,_(!0),()=>{_(!1),p.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[p]),(0,H.useEffect)(()=>{g&&p&&!p.isDestroyed&&(v.current?v.current=!1:p.view.dispatch(p.state.tr.setMeta(d,{type:`updateOptions`,options:h.current})))},[g,p,n,r,a,o,i,d]),(0,Oe.createPortal)(s,u.current)});function iie({editor:e}){let t=cv(),n=(0,H.useRef)(null),r=(0,H.useRef)(null),[i]=(0,H.useState)(()=>document.createElement(`div`)),[a,o]=(0,H.useState)(),s=dj({editor:e,selector:({editor:e})=>({bold:e.isActive(`bold`),italic:e.isActive(`italic`),heading:e.isActive(`heading`,{level:2}),bullets:e.isActive(`bulletList`),numbers:e.isActive(`orderedList`)})}),c=(0,H.useMemo)(()=>({strategy:`fixed`,placement:`top`,offset:8,scrollTarget:a,flip:{padding:8,boundary:a},shift:{padding:8,boundary:a},hide:{boundary:a}}),[a]),l=(0,H.useCallback)(({view:t,state:n,from:i,to:a,element:o})=>(r.current!==`${i}:${a}`&&(r.current=null),!r.current&&e.isEditable&&!n.selection.empty&&!!n.doc.textBetween(i,a).trim()&&(t.hasFocus()||o.contains(document.activeElement))),[e]),u=(0,H.useCallback)(()=>{let{from:t,to:n}=e.state.selection;r.current=`${t}:${n}`,e.view.focus(),e.commands.setMeta(`editorFormatting`,`hide`)},[e]);(0,H.useEffect)(()=>{document.body.append(i),o(e.view.dom.closest(`.note-notes-pane`)??void 0);let t=t=>{t.altKey&&t.key===`F10`&&!e.state.selection.empty?(t.preventDefault(),r.current=null,e.commands.setMeta(`editorFormatting`,`show`),n.current?.querySelector(`button`)?.focus()):t.key===`Escape`&&n.current?.isConnected&&(t.preventDefault(),t.stopPropagation(),u())},a=e.view.dom,s=()=>{r.current=null};return a.addEventListener(`keydown`,t),e.on(`selectionUpdate`,s),()=>{a.removeEventListener(`keydown`,t),e.off(`selectionUpdate`,s),i.remove()}},[e,u,i]);let d=[{label:U(`Bold`),icon:ree,active:s.bold,shortcut:`Meta+B`,run:()=>e.chain().toggleBold().run()},{label:U(`Italic`),icon:c_,active:s.italic,shortcut:`Meta+I`,run:()=>e.chain().toggleItalic().run()},{label:U(`Heading`),icon:e_,active:s.heading,run:()=>e.chain().toggleHeading({level:2}).run()},{label:U(`Bulleted list`),icon:b_,active:s.bullets,run:()=>e.chain().toggleBulletList().run()},{label:U(`Numbered list`),icon:v_,active:s.numbers,run:()=>e.chain().toggleOrderedList().run()}];return a&&(0,G.jsx)(rie,{ref:n,editor:e,pluginKey:`editorFormatting`,appendTo:i,className:`editor-menu`,updateDelay:0,resizeDelay:16,options:c,shouldShow:l,children:(0,G.jsx)(`div`,{role:`toolbar`,className:`editor-toolbar`,"data-testid":`editor-toolbar`,"aria-label":U(`Text formatting`),dir:gt(t),onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),u();return}if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let n=Array.from(e.currentTarget.querySelectorAll(`button`)),r=n.indexOf(document.activeElement),i=(e.key===`ArrowRight`?1:-1)*(gt(t)===`rtl`?-1:1);n[e.key===`Home`?0:e.key===`End`?n.length-1:(r+i+n.length)%n.length]?.focus()},onBlur:t=>{!t.currentTarget.contains(t.relatedTarget)&&t.relatedTarget!==e.view.dom&&e.commands.setMeta(`editorFormatting`,`hide`)},children:d.map(({label:t,icon:n,active:r,shortcut:i,run:a},o)=>(0,G.jsx)(`button`,{type:`button`,tabIndex:o===0?0:-1,"aria-label":t,title:t,"aria-pressed":r,"aria-keyshortcuts":i,onClick:t=>{e.view.dispatch(ME(e.state.tr)),a(),t.detail>0&&e.view.focus()},children:(0,G.jsx)(n,{size:16,"aria-hidden":`true`})},t))})})}var aie=class{text=``;times=[];update(e,t){let n=0,r=0;for(;n<this.text.length&&n<e.length&&this.text[n]===e[n];)n++;for(;r<this.text.length-n&&r<e.length-n&&this.text[this.text.length-1-r]===e[e.length-1-r];)r++;return this.times=[...this.times.slice(0,n),...Array(e.length-n-r).fill(t),...r?this.times.slice(-r):[]],this.text=e,[...e.matchAll(/\S+/g)].map(e=>({from:e.index,to:e.index+e[0].length,born:this.times[e.index]}))}},WR=new Ax(`streamingInk`),GR=e=>Math.max(0,Math.min(1,e)),KR=qt(.18,.8,.25,1),oie=Dk.create({name:`streamingInk`,addProseMirrorPlugins(){let e=new aie;return[new Dx({key:WR,state:{init:()=>({live:!1,reduced:!1,decorations:LT.empty}),apply(t,n){let r=t.getMeta(WR)??n;if(!r.live)return e.update(``,0),{...r,decorations:LT.empty};if(!t.docChanged&&r.live===n.live&&r.reduced===n.reduced)return n;let i=``,a=[];t.doc.descendants((e,t)=>{e.isTextblock&&(i+=`
-`),e.isText&&(a.push({from:i.length,to:i.length+e.text.length,pos:t}),i+=e.text)});let o=performance.now(),s=[],c=0;for(let t of e.update(i,o)){for(;c<a.length&&a[c].to<=t.from;)c++;if(!(r.reduced||o-t.born>=420))for(let e=c;e<a.length&&a[e].from<t.to;e++){let n=a[e];s.push(PT.inline(n.pos+Math.max(0,t.from-n.from),n.pos+Math.min(n.to,t.to)-n.from,{class:`summary-ink`,"data-ink-born":String(t.born)}))}}return{...r,decorations:LT.create(t.doc,s)}}},props:{decorations:e=>WR.getState(e).decorations},view(e){let t=0,n,r=142,i=a=>{cancelAnimationFrame(t);let o=e.dom.closest(`.summary-surface`);if(!o)return;let s=o.querySelector(`.summary-wash`),c=o.querySelector(`.summary-heading-bar`),{live:l,reduced:u}=WR.getState(e.state),d=l&&!e.state.doc.textContent.trim();if(o.dataset.waiting=String(d),s.replaceChildren(),(!l||d)&&(n=void 0),l&&!d&&n===void 0&&(n=a),l&&!d&&a-n<260){let t=e.dom.querySelector(`h1,h2,h3`);if(t){let e=document.createRange();e.selectNodeContents(t),r=e.getBoundingClientRect().width}else r=142}let f=d?0:!l||u?1:GR((a-(n??a))/260),p=1-(1-f)**3;e.dom.style.opacity=String(d||!l||u?1:p),c.hidden=!l||!d&&f===1,c.style.width=`${142+(r-142)*KR(f)}px`,c.style.transform=`scaleY(${1-.72*KR(f)})`,c.style.opacity=String(d?1:1-p);let m=l&&!d&&f<1;if(l&&!u){let t=o.getBoundingClientRect(),n=o.querySelector(`filter`).id;for(let r of e.dom.querySelectorAll(`[data-ink-born]`)){let e=a-Number(r.dataset.inkBorn);if(r.style.setProperty(`--ink-fresh`,`${(1-GR(e/420))*100}%`),e>=420)continue;m=!0;let i=document.createRange();i.selectNodeContents(r);for(let r of i.getClientRects()){let i=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),a=r.width+4,o=KR(GR(e/260));i.setAttribute(`transform`,`translate(${r.left-t.left-2+a*.12*(1-o)} ${r.top-t.top}) scale(${o} 1)`),i.setAttribute(`opacity`,String(.11*(1-GR((e-160)/260))*p)),i.setAttribute(`filter`,`url(#${n})`),i.innerHTML=`<rect y="6" width="${a*.82}" height="12" rx="8"/><circle cx="${a-4}" cy="12" r="4"/>`,s.append(i)}}}m&&(t=requestAnimationFrame(i))};return{update:()=>i(performance.now()),destroy:()=>cancelAnimationFrame(t)}}})]}}),sie=yk.create({name:`mine`,inclusive:!1,parseHTML:()=>[{tag:`span[data-mine]`}],renderHTML:()=>[`span`,{"data-mine":``,class:`mine`},0]});function qR(e){let t=(0,H.useId)(),n=jf(),r=(0,H.useRef)(e.onChange),i=(0,H.useRef)(e.onBlur);r.current=e.onChange,i.current=e.onBlur;let a=(0,H.useRef)(e.markdown),o=hj({extensions:[$F.configure({heading:{levels:[1,2,3]},code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,strike:!1,underline:!1,trailingNode:!1,link:{openOnClick:!1,autolink:!0,defaultProtocol:`https`}}),eI.configure({placeholder:e.placeholder??``}),sie,oie],content:ze(e.markdown,{streaming:e.streaming}),editable:e.editable??!0,shouldRerenderOnTransaction:!1,editorProps:{attributes:{dir:`auto`,"data-testid":e.testId,class:`note-prose outline-none ${e.className??``}`,spellcheck:`true`,role:`textbox`,"aria-label":e.label,"aria-multiline":`true`,"aria-readonly":String(e.editable===!1)}},onUpdate:({editor:e})=>{let t=Ye(e.getJSON());t!==a.current&&(a.current=t,r.current?.(t))},onBlur:()=>i.current?.()});return(0,H.useLayoutEffect)(()=>{if(!o||o.isDestroyed)return;a.current=e.markdown;let t=o.chain().setMeta(WR,{live:!!e.streaming,reduced:n});(Ye(o.getJSON())!==e.markdown||e.streaming)&&t.setContent(ze(e.markdown,{streaming:e.streaming}),{emitUpdate:!1}),t.run()},[o,e.markdown,e.streaming,n]),(0,H.useEffect)(()=>{if(!o||o.isDestroyed||!e.focus?.match)return;let t,n=0,r=requestAnimationFrame(()=>{if(o.isDestroyed)return;let r=Array.from(o.view.dom.querySelectorAll(`p,h1,h2,h3`)),i=r[pt(r.map(e=>e.textContent??``),e.focus.match)];if(!i)return;i.scrollIntoView({block:`center`});let a=document.createRange();a.selectNodeContents(i),t=new Highlight(a),CSS.highlights.set(`citation-target`,t),n=window.setTimeout(()=>CSS.highlights.delete(`citation-target`),2400)});return()=>{cancelAnimationFrame(r),clearTimeout(n),CSS.highlights.get(`citation-target`)===t&&CSS.highlights.delete(`citation-target`)}},[o,e.focus?.seq]),(0,H.useEffect)(()=>{o&&!o.isDestroyed&&o.setEditable(e.editable??!0,!1)},[o,e.editable]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`summary-surface`,"data-streaming":!!e.streaming,children:[(0,G.jsxs)(`svg`,{className:`summary-ink-layer`,"aria-hidden":`true`,children:[(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:t,x:`-30%`,y:`-80%`,width:`160%`,height:`260%`,colorInterpolationFilters:`sRGB`,children:[(0,G.jsx)(`feGaussianBlur`,{stdDeviation:`.9`}),(0,G.jsx)(`feColorMatrix`,{values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})}),(0,G.jsx)(`g`,{className:`summary-wash`})]}),(0,G.jsx)(cj,{editor:o}),(0,G.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`,hidden:!0})]}),o&&e.editable!==!1&&!e.streaming&&(0,G.jsx)(iie,{editor:o})]})}var JR={};function YR(e,t){let n=H.useRef(JR);return n.current===JR&&(n.current=e(t)),n}var XR=[],ZR=void 0;function cie(){return ZR}function lie(e){XR.push(e)}function QR(e){let t=(t,n)=>{let r=YR(uie).current,i;try{ZR=r;for(let e of XR)e.before(r);i=e(t,n);for(let e of XR)e.after(r);r.didInitialize=!0}finally{ZR=void 0}return i};return t.displayName=e.displayName||e.name,t}function $R(e){return H.forwardRef(QR(e))}function uie(){return{didInitialize:!1}}function ez(){}var tz=Object.freeze([]),nz=Object.freeze({});function rz(e){H.useEffect(e,tz)}var iz=0,az=class e{static create(){return new e}currentId=iz;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=iz,t()},e)}isStarted(){return this.currentId!==iz}clear=()=>{this.currentId!==iz&&(clearTimeout(this.currentId),this.currentId=iz)};disposeEffect=()=>this.clear};function oz(){let e=YR(az.create).current;return rz(e.disposeEffect),e}var Y=typeof document<`u`?H.useLayoutEffect:()=>{};function die(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:fie,platform:pie,maxTouchPoints:mie}=die(),sz=fie.toLowerCase(),cz=pie.toLowerCase(),lz=/^i(os$|p)/.test(cz)||cz===`macintel`&&mie>1,uz=`android`,dz=cz===uz||sz.includes(uz),fz=!lz&&cz.startsWith(`mac`);cz.startsWith(`win`),!dz&&/^(linux|chrome os)/.test(cz);var hie=fz||lz,pz=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!pz&&sz.includes(`firefox`),!pz&&sz.includes(`chrom`);var gie=hie,mz=/jsdom|happydom/.test(sz);function hz(e){e.preventDefault(),e.stopPropagation()}function _ie(e){return`nativeEvent`in e}function gz(e){return e.pointerType===``&&e.isTrusted?!0:dz&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function _z(e){return mz?!1:!dz&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(dz||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function vz(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function vie(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function yz(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function bz(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&iL(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function xz(e,t){let n=e;for(;n;){if(nL(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(iL(n)?n.host:null)}return null}function Sz(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var yie=`data-base-ui-focusable`,bie=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Cz=`ArrowLeft`,wz=`ArrowRight`,xie=`ArrowUp`,Sie=`ArrowDown`,Tz=`data-starting-style`,Cie=`data-ending-style`,wie={[Tz]:``},Tie={[Cie]:``},Ez={transitionStatus(e){return e===`starting`?wie:e===`ending`?Tie:null}},Eie=`data-open`,Die=`data-closed`,Oie=`data-anchor-hidden`,Dz=`data-popup-open`,kie=`data-pressed`,Aie={[Dz]:``},jie={[Dz]:``,[kie]:``},Mie={[Eie]:``},Nie={[Die]:``},Pie={[Oie]:``},Oz={open(e){return e?Aie:null}},kz={open(e){return e?jie:null}},Az={open(e){return e?Mie:Nie},anchorHidden(e){return e?Pie:null}},jz={...Az,...Ez},Mz=`data-trigger-disabled`;function Nz(e,t){if(!nL(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Mz);for(let[,e]of t.entries())if(bz(e,n))return!e.hasAttribute(Mz);return!1}function Pz(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Fie(e){return e.matches(`html,body`)}function Fz(e){return rL(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Iie(e){return xz(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${bie}`)!=null}function Iz(e){return e?e.getAttribute(`role`)===`combobox`&&Fz(e):!1}function Lz(e){if(!e||mz)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Rz(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Lie(e,t){return t!=null&&!vz(t)?0:typeof e==`function`?e():e}function zz(e,t,n){let r=Lie(e,n);return typeof r==`number`?r:r?.[t]}function Bz(e){return typeof e==`function`?e():e}function Vz(e,t){return t||e===`click`||e===`mousedown`}function Rie(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Hz(e,t,n,r){let i=!1,a=!1,o=r??nz;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function zie(e,t,n){let r=n??nz;return{reason:e,event:t??new Event(`base-ui`),...r}}var Uz=`none`,Wz=`trigger-press`,Gz=`trigger-hover`,Kz=`trigger-focus`,Bie=`outside-press`,Vie=`item-press`,Hie=`close-press`,qz=`focus-out`,Uie=`escape-key`,Jz=`list-navigation`,Yz=`keyboard`,Wie=`pointer`,Gie=`cancel-open`,Xz=`sibling-open`,Zz=`imperative-action`;function Qz(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function $z(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function eB(e,t,n,r){let i=YR(tB).current;return qie(i,e,t,n,r)&&nB(i,[e,t,n,r]),i.callback}function Kie(e){let t=YR(tB).current;return Jie(t,e)&&nB(t,e),t.callback}function tB(){return{callback:null,cleanup:null,refs:[]}}function qie(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Jie(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function nB(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function rB(e){let t=YR(Yie,e).current;return t.next=e,Y(t.effect),t}function Yie(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var iB={...H},aB=iB.useInsertionEffect,Xie=aB&&aB!==iB.useLayoutEffect?aB:e=>e();function oB(e){let t=YR(Zie).current;return t.next=e,Xie(t.effect),t.trampoline}function Zie(){let e={next:void 0,callback:Qie,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Qie(){}var sB=null;globalThis.requestAnimationFrame;var cB=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},lB=class e{static create(){return new e}static request(e){return cB.request(e)}static cancel(e){return cB.cancel(e)}currentId=sB;request(e){this.cancel(),this.currentId=cB.request(()=>{this.currentId=sB,e()})}cancel=()=>{this.currentId!==sB&&(cB.cancel(this.currentId),this.currentId=sB)};disposeEffect=()=>this.cancel};function uB(){let e=YR(lB.create).current;return rz(e.disposeEffect),e}function dB(e){return e?.ownerDocument||document}var fB={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},pB={...fB,position:`fixed`,margin:0,top:0,left:0};({...fB});var mB=H.forwardRef(function(e,t){let[n,r]=H.useState();Y(()=>{gie&&pz&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:pB,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function hB(e,t){return t<0||t>=e.length}function gB(e,t){return vB(e.current,{disabledIndices:t})}function _B(e,t){return vB(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function $ie(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>vB(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:hB(e,u)?-1:u,wrapped:d}}function vB(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&yB(e,a,r));return a}function yB(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!bB(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function eae(e){return e.visibility===`hidden`||e.visibility===`collapse`}function bB(e,t=e?gL(e):null){return!e||!e.isConnected||!t||eae(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var tae=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function nae(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return iL(n)?n.host:null}function xB(e){for(let t of Array.from(e.children))if(QI(t)===`summary`)return t;return null}function rae(e,t){let n=xB(t);return!!n&&(e===n||bz(n,e))}function SB(e){let t=e?QI(e):``;return e!=null&&e.matches(tae)&&(t!==`summary`||e.parentElement!=null&&QI(e.parentElement)===`details`&&xB(e.parentElement)===e)&&(t!==`details`||xB(e)==null)&&(t!==`input`||e.type!==`hidden`)}function CB(e){if(!SB(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=nae(t)){let n=t!==e,r=QI(t)===`slot`;if(t.hasAttribute(`inert`)||n&&QI(t)===`details`&&!t.open&&!rae(e,t)||t.hasAttribute(`hidden`)||!r&&!iae(t,n))return!1}return!0}function iae(e,t){let n=gL(e);return t?n.display!==`none`:bB(e,n)}function wB(e){let t=e.tabIndex;if(t<0){let t=QI(e);if(t===`details`||t===`audio`||t===`video`||rL(e)&&e.isContentEditable)return 0}return t}function TB(e){if(QI(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function EB(e,t){let n=TB(e);if(!n)return!0;let r=t.find(e=>{let t=TB(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=TB(e);return t?.name===n.name&&t.form===n.form})===n}function DB(e){if(rL(e)&&QI(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return rL(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function OB(e,t){DB(e).forEach(e=>{SB(e)&&t.push(e),OB(e,t)})}function kB(e,t,n){DB(e).forEach(e=>{rL(e)&&e.matches(t)&&n.push(e),kB(e,t,n)})}function AB(e){return CB(e)&&wB(e)>=0}function jB(e){let t=[];return OB(e,t),t.filter(CB)}function MB(e){let t=jB(e);return t.filter(e=>wB(e)>=0&&EB(e,t))}function NB(e,t){let n=MB(e),r=n.length;if(r===0)return;let i=yz(dB(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function PB(e){return NB(dB(e).body,1)||e}function FB(e){return NB(dB(e).body,-1)||e}function aae(e,t,n){if(!e)return null;let r=[];OB(dB(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(CB);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!bz(n,o)&&AB(o)&&EB(o,a))return o}return r[i]}function IB(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!bz(n,r)}function oae(e){MB(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function LB(e){let t=[];kB(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function RB(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...RB(e,t.id,n)])}function zB(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function BB(e){return`data-base-ui-${e}`}var VB=0;function HB(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(VB);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),ez;let o=requestAnimationFrame(a);return VB=o,()=>{VB===o&&(cancelAnimationFrame(o),VB=0)}}var UB=`data-base-ui-inert`,WB=new WeakMap,GB=new WeakSet,KB=new WeakMap,qB=0;function JB(e){return e?iL(e)?e.host:JB(e.parentNode):null}var YB=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=JB(t);return e.contains(n)?n:null}).filter(e=>e!=null),XB=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},ZB=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{QI(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function sae(e,t,n,{mark:r=!0}){let i=YB(t,e),a=r?ZB(t,XB(i),new Set(i)):[],o=[],s=[];if(n){let e=YB(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);ZB(t,XB(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(WB.get(e)||0)+1;WB.set(e,r),o.push(e),r===1&&n&&GB.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(KB.get(e)||0)+1;KB.set(e,t),s.push(e),t===1&&e.setAttribute(UB,``)}),qB+=1,()=>{o.forEach(e=>{let t=(WB.get(e)||0)-1;WB.set(e,t),t||(GB.has(e)||e.removeAttribute(`aria-hidden`),GB.delete(e))}),r&&s.forEach(e=>{let t=(KB.get(e)||0)-1;KB.set(e,t),t||e.removeAttribute(UB)}),--qB,qB||(WB=new WeakMap,GB=new WeakSet,KB=new WeakMap)}}function QB(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=dB(e[0]).body;return sae(e,i,n,{mark:r})}function $B(){let[,e]=H.useState({});return H.useCallback(()=>{e({})},[])}var eV=0;function cae(e,t=`mui`){let n=H.useRef(void 0),r=$B(),i=e??n.current;return H.useEffect(()=>{n.current??(eV+=1,n.current=`${t}-${eV}`,e??r())},[e,t,r]),i}var tV=iB.useId;function nV(e,t){if(tV!==void 0){let n=tV();return e??(t?`${t}-${n}`:n)}return cae(e,t)}var rV=19;function iV(e){return rV>=e}function aV(e){if(!H.isValidElement(e))return null;let t=e,n=t.props;return(iV(19)?n?.ref:t.ref)??null}function oV(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function sV(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function cV(e,t){return typeof e==`function`?e(t):e}function lV(e,t){return typeof e==`function`?e(t):e}var uV={};function dV(e,t,n,r,i){if(!n&&!r&&!i&&!e)return pV(t);let a=pV(e);return t&&(a=mV(a,t)),n&&(a=mV(a,n)),r&&(a=mV(a,r)),i&&(a=mV(a,i)),a}function fV(e){if(e.length===0)return uV;if(e.length===1)return pV(e[0]);let t=pV(e[0]);for(let n=1;n<e.length;n+=1)t=mV(t,e[n]);return t}function pV(e){return vV(e)?{...e(uV)}:hV(e)}function mV(e,t){return vV(t)?t(e):gV(e,t)}function hV(e){let t={...e};for(let e in t){let n=t[e];_V(e,n)&&(t[e]=bV(n))}return t}function gV(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=oV(e.style,r);break;case`className`:e[n]=SV(e.className,r);break;default:e[n]=_V(n,r)?yV(e[n],r):r}}return e}function _V(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function vV(e){return typeof e==`function`}function yV(e,t){return t?e?(...n)=>{let r=n[0];if(CV(r)){let i=r;xV(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:bV(t):e}function bV(e){return e&&((...t)=>{let n=t[0];return CV(n)&&xV(n),e(...t)})}function xV(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function SV(e,t){return t?e?t+` `+e:t:e}function CV(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function wV(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=OV(r));let i=TV(t,n,r);if(n.enabled===!1)return null;let a=n.state??nz;return kV(e,r,i,a)}function TV(e,t,n){let{className:r,style:i}=e,{state:a=nz,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?cV(r,a):void 0,d=l?lV(i,a):void 0,f=l?sV(a,c):nz,p=l&&s?EV(s):void 0,m=l?oV(f,p)??{}:nz;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Kie([m.ref,aV(n),...o]):eB(m.ref,aV(n),o):eB(null,null)),l?(u!==void 0&&(m.className=SV(m.className,u)),d!==void 0&&(m.style=oV(m.style,d)),m):nz}function EV(e){return Array.isArray(e)?fV(e):dV(void 0,e)}var DV=Symbol.for(`react.lazy`);function OV(e){if(e?.$$typeof!==DV)return e;let t=H.Children.toArray(e)[0];return H.isValidElement(t)?t:e}function kV(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=dV(n,t.props);return e.ref=n.ref,H.cloneElement(t,e)}return AV(e,n)}function AV(e,t){return e===`button`?(0,H.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,H.createElement)(`img`,{alt:``,...t,key:t.key}):H.createElement(e,t)}var jV={style:{transition:`none`}},MV=`data-base-ui-click-trigger`,NV=`data-base-ui-swipe-ignore`,PV=`data-swipe-ignore`,FV=`[${NV}]`,IV=`[${PV}]`,LV={fallbackAxisSide:`none`},RV={fallbackAxisSide:`end`},zV={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},BV=H.createContext(null),VV=()=>H.useContext(BV),HV=BB(`portal`);function UV(e={}){let{ref:t,container:n,componentProps:r=nz,elementProps:i}=e,a=nV(),o=VV()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=oB(e=>{e!==null&&u(e)}),f=H.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(tL(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=wV(`div`,r,{ref:[t,d],props:[{id:a,[HV]:``},i]}),m=s&&p?Oe.createPortal(p,s):null;return{node:l,nodeId:H.isValidElement(p)?p.props.id:void 0,subtree:m}}var WV=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=UV({container:o,ref:t,componentProps:e,elementProps:c}),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),h=H.useRef(null),[g,_]=H.useState(null),v=H.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;H.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&IB(e)&&(e.type===`focusin`?v.current&&=(LB(l),!1):(oae(l),v.current=!0))}return $z(Qz(l,`focusin`,e,!0),Qz(l,`focusout`,e,!0))},[l,y]),Y(()=>{l&&b===!0&&v.current&&(LB(l),v.current=!1)},[b,l]);let S=H.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,G.jsxs)(H.Fragment,{children:[d,(0,G.jsxs)(BV.Provider,{value:S,children:[x&&l&&(0,G.jsx)(mB,{"data-type":`outside`,ref:f,onFocus:e=>{IB(e,l)?m.current?.focus():FB(g?g.domReference:null)?.focus()}}),x&&l&&(0,G.jsx)(`span`,{role:s,"aria-owns":u,style:zV}),l&&Oe.createPortal(a,l),x&&l&&(0,G.jsx)(mB,{"data-type":`outside`,ref:p,onFocus:e=>{IB(e,l)?h.current?.focus():(PB(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Hz(`focus-out`,e.nativeEvent)))}})]})]})});function GV(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var KV=class{nodesRef={current:[]};events=GV();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},qV=H.createContext(null),JV=H.createContext(null),YV=()=>H.useContext(qV)?.id||null,XV=e=>{let t=H.useContext(JV);return e??t};function ZV(e){let t=nV(),n=XV(e),r=YV();return Y(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function QV(e){let{children:t,id:n}=e,r=YV();return(0,G.jsx)(qV.Provider,{value:H.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function $V(e){let{children:t,externalTree:n}=e,r=YR(()=>n??new KV).current;return(0,G.jsx)(JV.Provider,{value:r,children:t})}function eH(e){return e==null?e:`current`in e?e.current:e}function tH(e,t){let n=$I(Sz(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(gz(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var nH=20,rH=[];function iH(){rH=rH.filter(e=>e.deref()?.isConnected)}function aH(e){iH(),e&&QI(e)!==`body`&&(rH.push(new WeakRef(e)),rH.length>nH&&(rH=rH.slice(-20)))}function oH(){return iH(),rH[rH.length-1]?.deref()}function sH(e){return e?AB(e)?e:MB(e)[0]||e:null}function cH(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=jB(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return AB(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function lH(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=oB(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Iz(_)&&S,w=rB(i),T=rB(a),E=rB(o),D=rB(u),O=rB(g),k=XV(m),A=VV(),j=H.useRef(!1),M=H.useRef(!1),N=H.useRef(!1),P=H.useRef(null),F=H.useRef(``),I=H.useRef(``),L=H.useRef(null),R=H.useRef(null),ee=eB(L,p,A?.beforeInsideRef),z=eB(R,A?.afterInsideRef),te=oz(),ne=oz(),re=uB(),ie=A!=null,ae=Rz(v),B=oB((e=ae)=>e?MB(e):[]),oe=oB(()=>h?.().filter(e=>e!=null)??[]);H.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&bz(ae,yz(dB(ae)))&&B().length===0&&!C&&hz(e)}return Qz(dB(ae),`keydown`,e)},[r,ae,c,C,B]),H.useEffect(()=>{if(r||!g)return;let e=dB(ae);function t(){N.current=!1}function n(e){let t=Sz(e),n=oe(),r=bz(v,t)||bz(_,t)||bz(A?.portalNode,t)||n.some(e=>e===t||bz(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,xz(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,ne.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return $z(Qz(e,`pointerdown`,n,!0),Qz(e,`pointerup`,t,!0),Qz(e,`pointercancel`,t,!0),Qz(e,`keydown`,i,!0),t)},[r,v,_,ae,g,A,ne,oe]),H.useEffect(()=>{if(r||!l)return;let e=dB(ae);function n(){M.current=!0,ne.start(0,()=>{M.current=!1})}function i(e){let t=Sz(e);AB(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Sz(n);c&&r==null&&a!=null&&bz(v,a)&&aH(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=oe(),p=r?.hasAttribute(BB(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,eH(f),eH(d)].includes(r),m=!(bz(_,r)||bz(v,r)||bz(r,v)||bz(A?.portalNode,r)||u.some(e=>e===r||bz(e,r))||l.hasMatchingElement(e=>bz(e,r))||p||k&&(RB(k.nodesRef.current,o).find(e=>bz(e.context?.elements.floating,r)||bz(e.context?.elements.domReference,r))||zB(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Rz(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&ae&&cH(ae),s&&i!==_&&!bB(a)&&yz(e)===e.body){if(rL(ae)&&(ae.focus(),s===`popup`)){re.request(()=>{ae.focus()});return}let e=B(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||ae;rL(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==oH())&&(j.current=!0,t.setOpen(!1,Hz(qz,n)))})}function o(){N.current||(b.current.insideReactTree=!0,te.start(0,()=>{b.current.insideReactTree=!1}))}let u=rL(_)?_:null;if(v||u)return $z(u&&Qz(u,`focusout`,a),u&&Qz(u,`pointerdown`,n),v&&Qz(v,`focusin`,i),v&&Qz(v,`focusout`,a),v&&A&&Qz(v,`focusout`,o,!0))},[r,_,v,ae,c,k,A,t,l,s,B,C,x,b,te,ne,re,d,f,oe]),H.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${BB(`portal`)}]`)||[]),t=(k?zB(k.nodesRef.current,x()):[]).find(e=>Iz(e.context?.elements.domReference||null))?.context?.elements.domReference,n=QB([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...oe(),t,eH(f),eH(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=QB([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,oe]),Y(()=>{if(!g||r||!rL(ae))return;F.current=``,I.current=``;let e=dB(ae),t=yz(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||bz(ae,t))return;let i=null,a=()=>(i??=B(ae),i[0]||ae),o;o=r===!0||r===null?a():eH(r),o||=a();let s=bz(ae,yz(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&gz(c);HB(o,{sync:l,preventScroll:o===ae,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=yz(e);return!(t!==o&&bz(ae,t))}})})},[r,g,ae,B,w,D,O,b]);let V=H.useRef(null);Y(()=>{if(r||!ae){V.current=null;return}V.current&&=(V.current.cancelled=!0,null);let e=dB(ae),t=yz(e),n=D.current==null;aH(t);function i(e){if(e.open||(F.current=tH(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(BB(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(gz(e.nativeEvent)||_z(e.nativeEvent))j.current=!1;else{let e=!1;dB(ae).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&QI(t)!==`body`?t:null,s=n?o||a:a||o;return s||=oH()||null,typeof i==`boolean`?s:eH(i)||s||null}return()=>{y.off(`openchange`,i);let t=yz(e),n=oe(),r=bz(v,t)||n.some(e=>e===t||bz(e,t))||k&&RB(k.nodesRef.current,x(),!1).some(e=>bz(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};V.current=l,queueMicrotask(()=>{V.current===l&&(V.current=null);let n=sH(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&rL(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,ae,T,E,D,y,k,_,x,oe]),Y(()=>{if(!pz||g||!v)return;let e=yz(dB(v));rL(e)&&Fz(e)&&bz(v,e)&&e.blur()},[g,v]),Y(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),Y(()=>{if(!r&&ae)return cH(ae),()=>{queueMicrotask(iH)}},[r,ae]);let se=!r&&(!c||!C)&&(ie||c);return(0,G.jsxs)(H.Fragment,{children:[se&&(0,G.jsx)(mB,{"data-type":`inside`,ref:ee,onFocus:e=>{if(c){let e=B();HB(e[e.length-1])}else A?.portalNode&&(j.current=!1,IB(e,A.portalNode)?PB(_)?.focus():eH(f??A.beforeOutsideRef)?.focus())}}),n,se&&(0,G.jsx)(mB,{"data-type":`inside`,ref:z,onFocus:e=>{c?HB(B()[0]):A?.portalNode&&(l&&(j.current=!0),IB(e,A.portalNode)?FB(_)?.focus():eH(d??A.afterOutsideRef)?.focus())}})]})}function uH(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Wz}=t,l=e.context.dataRef,u=H.useRef(void 0),d=uB(),f=oz(),p=H.useMemo(()=>{function t(t,n,r,i){let a=Hz(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=vz(e.pointerType,!0)&&_z(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||vz(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=Sz(s),p=Fz(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:vz(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return H.useMemo(()=>n?{reference:p}:nz,[n,p])}function dH(){return!1}function fH(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function pH(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=dH,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=XV(c),m=oB(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=oB(()=>a),{escapeKey:v,outsidePress:y}=fH(s),b=H.useRef(!1),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(!1),T=H.useRef(``),E=H.useRef(null),D=oz(),O=oz(),k=oz(),A=oB(()=>{O.clear(),d.current.insideReactTree=!1}),j=oB(e=>{let t=d.current.floatingContext?.nodeId;return(p?RB(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=oB(t=>Pz(t,e.select(`floatingElement`))||Pz(t,e.select(`domReferenceElement`))),N=oB(t=>{o()&&e.setOpen(!1,Hz(Wz,t.nativeEvent))}),P=oB(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=_ie(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=Hz(Uie,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=oB(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=oB(t=>{if(!l||!n||t.button!==0)return;let r=Sz(t.nativeEvent);bz(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=oB(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});H.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),H.useEffect(()=>A,[A]),H.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new az,i=dB(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(pz?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&RB(p.nodesRef.current,t).some(t=>Pz(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=Sz(n),i=`[${BB(`inert`)}]`,a=nL(r)?r.getRootNode():null,o=Array.from((iL(a)?a:dB(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>bz(e,r))))return;let c=nL(r)?r:null;for(;c&&!hL(c);){let e=vL(c);if(hL(e)||!nL(e))break;c=e}if(!(o.length&&nL(r)&&!Fie(r)&&!bz(r,e.select(`floatingElement`))&&o.every(e=>!bz(c,e)))){if(rL(r)&&!(`touches`in n)){let e=hL(r),t=gL(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!gz(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,Hz(Bie,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=Sz(e);if(!n)return;let r=Qz(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function ee(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function z(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function te(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function ne(e){L(e,te)}function re(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ie(e){L(e,re)}let ae=$z(r&&$z(Qz(i,`keydown`,P),Qz(i,`compositionstart`,a),Qz(i,`compositionend`,o)),g&&$z(Qz(i,`click`,ee,!0),Qz(i,`pointerdown`,ee,!0),Qz(i,`pointerup`,z,!0),Qz(i,`pointercancel`,z,!0),Qz(i,`mousedown`,ee,!0),Qz(i,`mouseup`,z,!0),Qz(i,`touchstart`,R,{capture:!0,passive:!0}),Qz(i,`touchmove`,ne,{capture:!0,passive:!0}),Qz(i,`touchend`,ie,{capture:!0,passive:!0})));return()=>{ae(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let R=H.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),ee=H.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return H.useMemo(()=>n?{reference:R,floating:ee,trigger:R}:{},[n,R,ee])}function mH(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var hH=mH(`https://base-ui.com/production-error`,`Base UI`),gH=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,t,n=!0){this.fallbackStore=e,this.componentName=t,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let t=this.attachedStores.lastIndexOf(e);t!==-1&&this.attachedStores.splice(t,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(e=>{e()}))}openByTrigger(e){let t=this.attachedStore;if(t===null)return;let n;if(e){for(let t=this.attachedStores.length-1;t>=0&&!n;--t)n=this.attachedStores[t].context.triggerElements.getById(e);n??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!n&&this.throwOnMissingTrigger)throw Error(hH(99,this.componentName,e,this.componentName));t.setOpen(!0,Hz(Zz,void 0,n))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,Hz(Zz))}};function _H(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};nL(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function vH(e,t=!1,n=!1,r=!1){let[i,a]=H.useState(e&&t?`idle`:void 0),[o,s]=H.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Y(()=>{if(!e&&o&&i!==`ending`&&n){let e=lB.request(()=>{a(`ending`)});return()=>{lB.cancel(e)}}},[e,o,i,n]),Y(()=>{if(!e||t||i===void 0)return;let n=lB.request(()=>{a(void 0)});return()=>{lB.cancel(n)}},[t,e,i]),Y(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=lB.request(()=>{a(`idle`)});return()=>{lB.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function yH(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var bH=null;function xH(e){if(!bH){let e=[];bH=e,queueMicrotask(()=>{bH=null,Oe.flushSync(()=>{for(let t of e)t()})})}bH.push(e)}function SH(e,t=!1,n=!1){let r=uB();return oB((i,a=null)=>{r.cancel();let o=eH(e);if(o==null)return;let s=o,c=()=>{n?xH(()=>{a?.aborted||i()}):Oe.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(yH(s).map(e=>e.finished.then(ez))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(yH(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Tz;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function CH(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=oB(a),s=SH(r,n,i);H.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function wH(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=oB(i),{mounted:c,setMounted:l,transitionStatus:u}=vH(t,!1,!1,o),d=!t&&r;Y(()=>{t&&s(!1)},[t,s]);let f=H.useRef(c),p=H.useRef(!1),m=$B(),h=()=>{f.current=!1,l(!1),a()};Y(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=oB(()=>{f.current&&(t?(p.current=!0,m()):h())});return CH({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var TH={tabIndex:-1,[yie]:``};function EH(e){return t=>t!==`touch`||e.current}function DH(e,t=!1){let n=nV(),r=YV()!=null,i=YR(()=>e(n,r)).current;return _H({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function OH({handle:e,store:t}){return Y(()=>e.attachStore(t),[e,t]),null}function kH(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function AH(e,t){let n=H.useRef(null);return oB(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),kH(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),kH(t))})}function jH(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function MH(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function NH(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=AH(e,n),o=oB(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=oB(e=>{a(e),e&&o(e)});return Y(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Y(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function PH(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=H.useRef(null),i=e.useState(`open`);Y(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Hz(Uz);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function FH(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=wH({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return YR(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function IH(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:nz,inactiveTriggerProps:nz,popupProps:nz})},[e])}function LH(e,t){Y(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Y(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var RH=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},zH=iV(19)?HH:UH;function BH(e,t,n,r,i){return zH(e,t,n,r,i)}function VH(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Mx.useSyncExternalStore)(e.subscribe,a,a)}lie({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Mx.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function HH(e,t,n,r,i){let a=cie();if(!a)return VH(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function UH(e,t,n,r,i){return(0,ej.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var WH=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return BH(this,e,t,n,r)}},GH=class extends WH{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),BH(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=oB(t??ez);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},KH={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},qH=class extends GH{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:GV(),nested:n,triggerElements:i},KH),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&vie(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function JH(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new qH({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:nz,inactiveTriggerProps:nz,popupProps:nz}}var YH=e=>e.triggerIdProp??e.activeTriggerId,XH=e=>e.openProp??e.open,ZH=e=>(e.popupElement?.id??e.floatingId)||void 0;function QH(e,t){return t!==void 0&&XH(e)&&YH(e)===t}function $H(e,t){return QH(e,t)?!0:t!==void 0&&XH(e)&&YH(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var eU={open:XH,mounted:e=>e.mounted,transitionStatus:e=>XH(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:YH,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:ZH,isTriggerActive:(e,t)=>t!==void 0&&YH(e)===t,isOpenedByTrigger:(e,t)=>QH(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&YH(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>$H(e,t)?ZH(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function tU(e){let t=H.useCallback(t=>e===void 0?ez:e.subscribeStore(t),[e]),n=H.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Mx.useSyncExternalStore)(t,n,()=>e?.serverStore)}function nU(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=nV(),a=YV()!=null,o=YR(()=>new qH({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new RH,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=nL(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var rU=fz&&pz;function iU(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=H.useRef(!1),s=H.useRef(null),c=H.useRef(!0),l=oz();H.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=$I(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&rL(t)&&t===yz(dB(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return $z(Qz(r,`blur`,i),rU&&Qz(r,`keydown`,a,!0),rU&&Qz(r,`pointerdown`,l,!0))},[e,n]),H.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);nL(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=H.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=Sz(n.nativeEvent);if(nL(a)){if(rU&&!n.relatedTarget){if(!c.current&&!Fz(a))return}else if(!Lz(a))return}let u=Nz(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,Hz(Kz,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,Hz(Kz,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=nL(r)&&r.hasAttribute(BB(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=yz(dB(t));!r&&n===t||bz(a.current.floatingContext?.refs.floating.current,n)||bz(t,n)||o||Nz(r??n,e.context.triggerElements)||e.setOpen(!1,Hz(Kz,i))})}}},[a,r,e,l]);return H.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var aU=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new az;restTimeout=new az;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},oU=new WeakMap;function sU(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&oU.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),oU.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function cU(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=oU.get(n);a&&a!==e&&sU(a),sU(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,oU.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function lU(e){let t=e.context.dataRef.current,n=YR(()=>t.hoverInteractionState??aU.create()).current;return t.hoverInteractionState||=n,rz(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function uU(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=XV(),u=YV(),d=lU(e),f=oz(),p=oB(()=>Vz(c.current.openEvent?.type,d.interactedInside)),m=oB(()=>Rie(c.current.openEvent?.type)),h=oB(()=>{sU(d)});Y(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),H.useEffect(()=>h,[h]),Y(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&nL(s)&&o){let e=s,t=o,n=dB(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??xz(e,`[data-rootownerid]`)??n.body;return cU(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),H.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&RB(l.nodesRef.current,u).length>0)}function a(t){let n=zz(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,Hz(Gz,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=Sz(e);Iie(t)?d.interactedInside=xz(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(Nz(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&nL(o)&&RB(l.nodesRef.current,r,!1).some(e=>bz(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,Hz(Gz,n)),l.events.emit(`floating.closed`,n)})}let y=o;return $z(y&&Qz(y,`mouseenter`,g),y&&Qz(y,`mouseleave`,_),y&&Qz(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var dU={current:null};function fU(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=dU,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=XV(l),v=lU(e),y=H.useRef(!1),b=rB(i),x=rB(r),S=rB(o),C=rB(n),w=rB(p),T=rB(f),E=oB(()=>Vz(h.current.openEvent?.type,v.interactedInside)),D=oB(()=>w.current?.()!==!1),O=oB((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!bz(t,n);if(!nL(r))return!1;let a=r;return i.hasMatchingElement(e=>bz(e,a))&&(!t||!bz(t,a))}),k=oB(()=>{v.handler&&=(dB(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=oB(()=>{sU(v)});return u&&(v.handleCloseOptions=i?.__options),H.useEffect(()=>k,[k]),H.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Gz,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),H.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=zz(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,Hz(Gz,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,Hz(Gz,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!nL(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!vz(v.pointerType))return;let n=Bz(S.current),r=zz(x.current,`open`,v.pointerType),i=Sz(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(nL(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(bz(t,i)){c=t;break}}nL(o)&&nL(s)&&!e.context.triggerElements.hasElement(o)&&bz(o,s)&&(c=s);let l=c!=null&&O(s,c,i),u=e.select(`open`),d=T.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&y.current,p=!l&&nL(c)&&nL(s)&&bz(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,Hz(Gz,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,Hz(Gz,t,c))}):g&&D()&&e.setOpen(!0,Hz(Gz,t,c)))}function o(n){if(E()){A();return}k();let r=dB(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Nz(n.relatedTarget,e.context.triggerElements)){if(b.current&&i){e.select(`open`)||v.openChangeTimeout.clear();let a=c.current;v.handler=b.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),k(),C.current&&!E()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&bz(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){bz(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?Qz(r,`mouseout`,l):void 0;return s?$z(Qz(r,`mousemove`,i,{once:!0}),Qz(r,`mouseenter`,i),Qz(r,`mouseleave`,o),f):$z(Qz(r,`mouseenter`,i),Qz(r,`mouseleave`,o),f)},[k,A,h,x,e,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D,m]),H.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=O(i,r,t.target);if(a&&!vz(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;cU(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=Bz(S.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,E())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&D()&&e.setOpen(!0,Hz(Gz,n,r))}v.pointerType===`touch`?Oe.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function pU(e){return pz&&e.movementX===0&&e.movementY===0}function mU(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function hU(e,t){return mU(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function gU(e,t,n){return mU(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function _U(e,t,n){return mU(t,n?e===Cz:e===wz,e===Sie)}function vU(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:mU(t,n?e===wz:e===Cz,e===xie)}function yU(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=Rz(E),A=Iz(D),j=rB(k),M=YV(),N=XV(x),P=H.useRef(f),F=H.useRef(o??-1),I=H.useRef(null),L=H.useRef(!0),R=oB(e=>{i(F.current===-1?null:F.current,e)}),ee=H.useRef(!!E),z=H.useRef(T),te=H.useRef(!1),ne=H.useRef(!1),re=H.useRef(null),ie=rB(h),ae=rB(T),B=rB(o),oe=rB(b),V=uB(),se=uB(),ce=oB(()=>{V.cancel();function e(e){d||(re.current=HB(e,{sync:te.current,preventScroll:!0}))}let t=n.current[F.current],r=ne.current;t&&e(t),(te.current?e=>e():e=>V.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),me&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Y(()=>{O.current.orientation=g},[O,g]),Y(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Y(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(ne.current=!0,R())):ee.current&&(F.current=-1,R()))},[a,T,E,o,R]),Y(()=>{if(a){if(!T)te.current=!1;else if(E){if(r==null){if(te.current=!1,B.current!=null)return;if(ee.current&&(F.current=-1,ce()),(!z.current||!ee.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>se.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||gU(I.current,_,u)||l?gB(n):_B(n),I.current=null,R())};t()}}else hB(n.current,r)||(F.current=r,ce(),ne.current=!1)}}},[a,T,E,r,B,l,n,_,u,R,ce,se]),Y(()=>{if(!a||E||!N||d||!ee.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=yz(dB(D??t??null)),r=e.some(e=>e.context&&bz(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Y(()=>{z.current=T,ee.current=!!E});let le=r!=null,ue=oB(e=>{if(!ae.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),de=oB(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),fe=oB(()=>gB(n,ie.current)),pe=oB(t=>{if(L.current=!1,te.current=!0,t.which===229||!ae.current&&t.currentTarget===j.current)return;if(l&&vU(t.key,g,u,w)){hU(t.key,de())||hz(t),e.setOpen(!1,Hz(Jz,t.nativeEvent));let n=S?.current??D;rL(n)&&n.focus();return}r!=null&&r!==F.current&&!hB(n.current,r)&&(F.current=r);let i=F.current,a=gB(n,h),o=_B(n,h);if(A||(t.key===`Home`&&(hz(t),F.current=a,R(t)),t.key===`End`&&(hz(t),F.current=o,R(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,R(t)),g===`both`)return}if(hU(t.key,g)){hz(t);let e=yz(t.currentTarget.ownerDocument);if(T&&!d&&bz(t.currentTarget,e)&&!n.current.some(t=>t!=null&&bz(t,e))){F.current=gU(t.key,g,u)?a:o,R(t),r===F.current&&ce();return}let{index:l,wrapped:f}=$ie(n.current,i,{decrement:!gU(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(te.current=!1),F.current=l,R(t)}}),me=H.useMemo(()=>({onFocus(e){te.current=!0,ue(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){pU(e)||(te.current=!0,ne.current=!1,p&&ue(e))},onPointerLeave(e){if(!ae.current||!L.current||e.pointerType===`touch`)return;te.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&oe.current&&(re.current?.(),re.current=null,F.current=-1,R(e),!d)){let e=j.current,t=yz(dB(e));e&&bz(e,t)&&e.focus({preventScroll:!0})}}}),[ue,ae,j,p,n,R,oe,d]),he=H.useMemo(()=>d&&T&&le&&{"aria-activedescendant":`${y}-${r}`},[d,T,le,y,r]),ge=H.useMemo(()=>({...A?{}:he,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=Sz(t.nativeEvent);if(n&&!bz(j.current,n))return;hz(t);let r=Hz(qz,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&rL(i)&&i.focus()}else pe(t)},onPointerMove(e){pU(e)||(L.current=!0)}}),[he,pe,j,A,e,T,d,D,S]),_e=H.useMemo(()=>{function t(t){e.setOpen(!0,Hz(Jz,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&gz(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&_z(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=_U(n.key,de(),u),o=hU(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Fz(n.currentTarget)))return pe(n);if(r||m||!i){if(s){let e=hU(n.key,de());I.current=l&&e?null:n.key}l?a&&(hz(n),r?(F.current=fe(),R(n),d&&j.current?.focus()):t(n)):o&&(B.current!=null&&(F.current=B.current),hz(n),!r&&m?t(n):pe(n),r&&R(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,R(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[pe,f,fe,l,R,e,m,g,_,de,u,B,d,j]),ve=H.useMemo(()=>({...he,..._e}),[he,_e]);return H.useMemo(()=>a?{reference:ve,floating:ge,item:me,trigger:_e}:{},[a,ve,ge,_e,me])}function bU(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=oB(s),f=e.useState(`open`),p=oz(),m=H.useRef(``),h=H.useRef(u??i??-1),g=H.useRef(null),_=oB(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!bB(n)||n?.matches(`:disabled`)?!1:o==null||!yB(tz,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(hz(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(hz(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=oB(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);bz(r,n)||bz(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Y(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=H.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return H.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var xU=.1,SU=xU*xU,CU=.5;function wU(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function TU(e,t,n,r,i,a,o,s,c,l){let u=!1;return wU(e,t,n,r,i,a)&&(u=!u),wU(e,t,i,a,o,s)&&(u=!u),wU(e,t,o,s,c,l)&&(u=!u),wU(e,t,c,l,n,r)&&(u=!u),u}function EU(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function DU(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function OU(e={}){let{blockPointerEvents:t=!1}=e,n=new az,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*SU;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Sz(r),g=r.type===`mouseleave`,_=bz(u,h),v=bz(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&nL(r.relatedTarget)&&bz(u,r.relatedTarget))return;function y(){return!!(s&&RB(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=DU(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=DU(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=DU(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=DU(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!EU(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?CU/2:CU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+CU+1,o=C||T?S.bottom-CU:S.top,s=C?T?S.bottom-CU:S.top:S.bottom-CU;M=TU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?CU/2:CU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-CU,o=C||T?S.top+CU:S.bottom,s=C?T?S.top+CU:S.bottom:S.top+CU;M=TU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?CU/2:CU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+CU+1,o=w||E?S.right-CU:S.left,s=w?E?S.right-CU:S.left:S.right-CU;M=TU(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?CU/2:CU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-CU,o=w||E?S.left+CU:S.right,s=w?E?S.left+CU:S.right:S.left+CU;M=TU(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var kU=typeof document<`u`?H.useLayoutEffect:function(){};function AU(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!AU(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!AU(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function jU(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function MU(e,t){let n=jU(e);return Math.round(t*n)/n}function NU(e){let t=H.useRef(e);return kU(()=>{t.current=e}),t}function PU(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);AU(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=NU(c),D=NU(i),O=NU(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),oR(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!AU(w.current,t)&&(w.current=t,Oe.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);kU(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);kU(()=>(A.current=!0,()=>{A.current=!1}),[]),kU(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),N=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=MU(M.floating,u.x),r=MU(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...jU(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var FU=(e,t)=>{let n=ZL(e);return{name:n.name,fn:n.fn,options:[e,t]}},IU=(e,t)=>{let n=$L(e);return{name:n.name,fn:n.fn,options:[e,t]}},LU=(e,t)=>({fn:aR(e).fn,options:[e,t]}),RU=(e,t)=>{let n=eR(e);return{name:n.name,fn:n.fn,options:[e,t]}},zU=(e,t)=>{let n=tR(e);return{name:n.name,fn:n.fn,options:[e,t]}},BU=H.createContext(void 0);function VU(e){let t=H.useContext(BU);if(t===void 0&&!e)throw Error(hH(47));return t}var HU=class extends GH{setState(e){}update(e){}set(e,t){}notifyAll(){}},UU={...eU,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!eU.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&eU.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>eU.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},WU=class extends GH{constructor(e,t,n){let r=new RH;super(GU(e,r,t,n),KU(r),UU)}setOpen=(e,t)=>{let n=t.reason===Gz,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=MH(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=jH(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Oe.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function GU(e,t,n,r=!1){let i={...JH(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function KU(e){return{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:H.createRef(),beforeTriggerFocusGuardRef:H.createRef(),beforeContentFocusGuardRef:H.createRef(),stickIfOpenTimeout:new az,stickIfOpen:!0,triggerElements:e}}var qU=QR(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=YU(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),LH(u,d),PH(u);let{forceUnmount:m}=FH(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),H.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),H.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,Hz(Zz))}),[m,u]);let h=d||f||s!=null;return(0,G.jsxs)(BU.Provider,{value:u,children:[s&&(0,G.jsx)(OH,{handle:s,store:u}),h&&(0,G.jsx)(XU,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function JU(e){return VU(!0)?(0,G.jsx)(qU,{props:e}):(0,G.jsx)($V,{children:(0,G.jsx)(qU,{props:e})})}function YU(e,t){let n=DH((e,n)=>new WU(t,e,n));return H.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function XU({store:e,modal:t}){let n=pH(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return IH(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var ZU=H.createContext(void 0);function QU(e=!1){let t=H.useContext(ZU);if(t===void 0&&!e)throw Error(hH(16));return t}function $U(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:H.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function eW(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new($I(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function tW(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=H.useRef(null),s=QU(!0),c=a??s!==void 0,{props:l}=$U({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=H.useCallback(()=>{let e=o.current;nW(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:H.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return dV({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(xV(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=nW(r),s=!i&&rW(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),eW(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),eW(r,e)))},onKeyUp(e){t||(xV(e),a?.(e),e.target===e.currentTarget&&i&&c&&nW(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),eW(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:oB(e=>{o.current=e,u()})}}function nW(e){return rL(e)&&e.tagName===`BUTTON`}function rW(e){return rL(e)&&e.tagName===`A`&&!!e.href}function iW(e){return nV(e,`base-ui`)}function aW(e,t){function n(n,r,i){let a=n.currentTarget;Oe.flushSync(()=>{e.setOpen(!1,Hz(qz,n.nativeEvent,a))}),aae(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&IB(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function oW(e){let t=H.useRef(``),n=H.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:H.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function sW(e,t){let n=H.useRef(e),r=oB(t);Y(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function cW(e,t){let{onClick:n,onPointerDown:r}=oW(oB((n,r)=>{(typeof e==`function`?e():e)||t(r||(lz?`touch`:``))}));return H.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function lW(e){let[t,n]=H.useState(null),r=cW(e,n);return sW(e,t=>{t&&!e&&n(null)}),H.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var uW=$R(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=VU(!0),h=tU(s)??m;if(!h)throw Error(hH(74));let g=iW(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=H.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=NH(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=fU(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:OU(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=uH(v,{stickIfOpen:oB(()=>h.context.stickIfOpen)}),k=cW(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=tW({disabled:a,native:o}),N={open(e){return w?kz.open(e):Oz.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=aW(h,x),I=wV(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[MV]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,G.jsx)(H.Fragment,{children:I},g);return E?(0,G.jsxs)(H.Fragment,{children:[(0,G.jsx)(mB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,G.jsx)(mB,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),dW=H.createContext(void 0);function fW(){let e=H.useContext(dW);if(e===void 0)throw Error(hH(45));return e}var pW=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return VU().useState(`mounted`)||n?(0,G.jsx)(dW.Provider,{value:n,children:(0,G.jsx)(WV,{ref:t,...r})}):null});function mW(e){return iV(19)?e:e?`true`:void 0}var hW=H.createContext(void 0);function gW(){let e=H.useContext(hW);if(!e)throw Error(hH(46));return e}function _W(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=H.useState(null),d=H.useRef(null),f=XV(n),p=H.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=PU({...e,elements:{...p,...l&&{reference:l}}}),h=H.useCallback(e=>{let t=nL(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=H.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=H.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=H.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Y(()=>{o&&(d.current=o)},[o]),Y(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),H.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var vW=H.createContext(void 0);function yW(){return H.useContext(vW)?.direction??`ltr`}var bW=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=dI(e,t)||{};if(l==null)return{};let d=kI(u),f={x:n,y:r},p=_I(i),m=hI(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=uI(D,k,O),j=!c.arrow&&pI(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),xW=(e,t)=>{let{name:n,fn:r}=bW(e);return{name:n,fn:r,options:[e,t]}},SW={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},CW={sideX:`left`,sideY:`top`},wW=`--available-width`,TW=`--available-height`,EW=`--anchor-width`,DW=`--anchor-height`,OW=`--transform-origin`,kW=wW,AW=TW;function jW(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function MW(e,t,n){let{rects:r,placement:i}=e;return{side:jW(t,fI(i),n),align:pI(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function NW(e){return PW(e,_W)}function PW(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=oB(O),A=O?k:n,j=rB(n),M=rB(g),N=yW()===`rtl`,[P,F]=H.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?fI(P):null,R=P&&I?pI(P)||`center`:null,ee=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],z=R||o,te=z===`center`?ee:`${ee}-${z}`,ne=l;typeof ne==`number`?ne={top:ne,right:ne,bottom:ne,left:ne}:ne&&={top:ne.top||0,right:ne.right||0,bottom:ne.bottom||0,left:ne.left||0};let re=+(i===`bottom`),ie=+(i===`top`),ae=+(i===`right`),B=+(i===`left`),oe={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:ne},V=H.useRef(null),se=rB(a),ce=rB(s),le=typeof a==`function`?0:a,ue=typeof s==`function`?0:s,de=[];p&&de.push(p),de.push(FU(e=>{let t=MW(e,i,N),n=typeof se.current==`function`?se.current(t):se.current,r=typeof ce.current==`function`?ce.current(t):ce.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[le,ue,N,i]));let fe=w===`none`&&C!==`shift`,pe=!fe&&(u||E||C===`shift`),me=C===`none`?null:RU({...oe,padding:{top:ne.top+1+re,right:ne.right+1+B,bottom:ne.bottom+1+ie,left:ne.left+1+ae},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),he=fe?null:IU({...oe,rootBoundary:D,mainAxis:w!==`none`,crossAxis:pe,limiter:u||E?void 0:LU(e=>{if(!V.current)return{};let{width:t,height:n}=V.current.getBoundingClientRect(),r=gI(fI(e.placement)),i=r===`y`?t:n,a=r===`y`?ne.left+ne.right:ne.top+ne.bottom;return{offset:i/2+a/2}})},[oe,u,E,D,ne,w]);C===`shift`||w===`shift`||z===`center`?de.push(he,me):de.push(me,he),de.push(zU({...oe,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(kW,`${t}px`),i.setProperty(AW,`${n}px`);let a=$I(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(EW,`${u}px`),i.setProperty(DW,`${d}px`)}}),xW(e=>({element:V.current||dB(e.elements.floating).createElement(`div`),padding:V.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=fI(r),u=pI(r),d=gI(l)===`y`,f=V.current,p=typeof a==`function`?a(MW(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return pe&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(OW,d?`${m} ${h}`:`${h} ${m}`),{}}},SW,b),Y(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ge=H.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:_e,elements:ve,x:ye,y:be,middlewareData:xe,update:Se,placement:Ce,context:we,isPositioned:Te,floatingStyles:Ee}=t({rootContext:h,open:m?g:void 0,placement:te,middleware:de,strategy:r,whileElementsMounted:m?void 0:(...e)=>XL(...e,ge),nodeId:y,externalTree:S}),{sideX:De,sideY:Oe}=xe.adaptiveOrigin||CW,ke=Te?r:`fixed`,Ae=H.useMemo(()=>{let e;return e=Te?b?{position:ke,[De]:ye,[Oe]:be}:{...Ee,position:ke}:{position:ke,top:0,left:0},e[kW]=`100vw`,e[AW]=`100vh`,Te||(e.opacity=0),e},[b,ke,De,ye,Oe,be,Ee,Te]),je=H.useRef(null);Y(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(FW(t)?t.current:t)||null;n!==je.current&&(_e.setPositionReference(n),je.current=n)},[g,_e,A,j]),H.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&FW(e)&&e.current!==je.current&&(_e.setPositionReference(e.current),je.current=e.current)},[g,_e,A,j]),H.useEffect(()=>{if(m&&g&&ve.reference&&ve.floating)return XL(ve.reference,ve.floating,Se,ge)},[m,g,ve,Se,ge]);let Me=fI(Ce),Ne=jW(i,Me,N),Pe=pI(Ce)||`center`,Fe=!!xe.hide?.referenceHidden;Y(()=>{x&&g&&Te&&(Me!==ee||I&&Pe!==z)&&F(Ce)},[x,I,g,Te,Ce,Me,Pe,ee,z]);let Ie=H.useMemo(()=>({position:`absolute`,top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Le=xe.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:Ae,arrowStyles:Ie,arrowRef:V,arrowUncentered:Le,side:Ne,align:Pe,physicalSide:Me,anchorHidden:Fe,refs:_e,context:we,isPositioned:Te,update:Se}),[Ae,Ie,V,Le,Ne,Pe,Me,Fe,_e,we,Te,Se])}function FW(e){return e!=null&&`current`in e}var IW=H.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,G.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function LW(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=H.useRef(null),o=H.useRef(null),s=SH(r);Y(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Y(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}function RW(e){return e===`starting`?jV:nz}function zW(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),wV(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},RW(r),i],stateAttributesMapping:Az})}var BW={},VW={},HW=``;function UW(e,t){return aL(e)?e:t}function WW(e,t,n){return/hidden|clip/.test(e.getComputedStyle(UW(t,n)).overflowY)}function GW(e){if(typeof document>`u`)return!1;let t=dB(e);return $I(t).innerWidth-t.documentElement.clientWidth>0}function KW(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=dB(e),n=t.documentElement,r=t.body,i=UW(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function qW(e){let t=dB(e),n=t.documentElement,r=t.body,i=UW(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function JW(e){let t=dB(e),n=t.documentElement,r=t.body,i=$I(n),a=0,o=0,s=!1,c=lB.create();if(pz&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,BW={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},HW=n.style.scrollBehavior,VW={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=UW(n,r);s=KW(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,BW),Object.assign(r.style,VW),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=HW)}function d(){u(),c.request(l)}l();let f=Qz(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var YW=new class{lockCount=0;restore=null;timeoutLock=az.create();timeoutUnlock=az.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=dB(e),n=t.documentElement,r=t.body,i=$I(n);if(WW(i,n,r)){let t=new i.MutationObserver(()=>{WW(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=lz||!GW(e);this.restore=a?qW(e):JW(e)}};function XW(e=!0,t=null){Y(()=>{if(e)return YW.acquire(t)},[e,t])}var ZW=20;function QW(e,t,n,r){let[i,a]=H.useState(!1);Y(()=>{if(!e||!t||n==null){a(!1);return}let r=dB(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-ZW)},[e,t,n]),XW(e&&(!t||i),r)}var $W=H.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=RV,..._}=e,v=VU(),y=fW(),b=ZV(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=NW({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});LW({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;QW(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=zW(e,{open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:k},{styles:j.positionerStyles,transitionStatus:A,props:_,refs:[t,N],hidden:!S,inert:!C});return(0,G.jsxs)(hW.Provider,{value:j,children:[S&&M&&(0,G.jsx)(IW,{inert:mW(!C),cutout:T}),(0,G.jsx)(QV,{id:b,children:P})]})}),eG=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),tG=H.createContext(void 0);function nG(e){let t=H.useContext(tG);if(t===void 0&&!e)throw Error(hH(69));return t}var rG=H.createContext(void 0);function iG(){let[e,t]=H.useState(0),n=oB(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:H.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var aG=H.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=VU(),l=gW(),u=nG(!0)!=null,{context:d,hasClosePart:f}=iG(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);CH({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),uU(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?EH(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=wV(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...TH,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&eG.has(e.key)&&e.stopPropagation()}},RW(g),s],stateAttributesMapping:jz});return(0,G.jsx)(lH,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:rL(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,G.jsx)(rG.Provider,{value:d,children:M})})}),oG=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=VU(),s=iW(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),wV(`h2`,e,{ref:t,props:[{id:s},a]})}),sG=function(e){let{direction:t=`ltr`}=e,n=H.useMemo(()=>({direction:t}),[t]);return(0,G.jsx)(vW.Provider,{value:n,children:e.children})};function cG(e,t){let n=new Set;return[...e,...t].filter(e=>{let t=`${e.kind}:${e.id}`;return!n.has(t)&&(n.add(t),!0)})}function lG(e){return e.startsWith(`/note/`)?{panel:!0,fresh:!1,chips:[{kind:`meeting`,id:e.slice(6)}]}:e.startsWith(`/folder/`)?{panel:!1,fresh:!1,chips:[{kind:`folder`,id:e.slice(8)}]}:{panel:!1,fresh:e===`/chat`||e.startsWith(`/chat/`),chips:[]}}function uG(e,t){let n=/(?:^|\s)@([^@\n]{0,80})$/.exec(e.slice(0,t));return n?{start:t-n[1].length-1,end:t,query:n[1]}:void 0}var dG=4e3;function fG(e,t){let n=pG(e);return n[Math.min(Math.max(0,t),n.length-1)]}function pG(e){if(!e||e.kind===`loading`)return[U(`Thinking…`),U(`Still thinking…`)];if(e.kind===`searching`)return[U(`Searching your meetings…`),U(`Still searching your meetings…`)];let t=U(`Still reading. Your answer comes next.`),n=e.title?.trim()||U(`Untitled meeting`);return e.meetings&&e.meetings>1?[U(`Reading {title} {others}…`,{title:n,others:U(`and {count} others`,{count:e.meetings-1})}),t]:[U(`Reading {title}…`,{title:n}),U(`Still reading {title}…`,{title:n}),t]}var mG=864e5,hG=(e,t=Date.now())=>Math.round((new Date(new Date(t).toDateString()).getTime()-new Date(new Date(e).toDateString()).getTime())/mG);function gG(e,t={}){let n=new Date(e),r=hG(e);if(r===0)return U(`Today`);if(r===1)return U(`Yesterday`);if(r===-1)return U(`Tomorrow`);if(t.weekday&&r>1&&r<7)return n.toLocaleDateString(xt(),{weekday:`long`});let i=n.getFullYear()===new Date().getFullYear();return n.toLocaleDateString(xt(),{...t.weekday?{weekday:`short`}:{},month:`short`,day:`numeric`,...i?{}:{year:`numeric`}})}function _G(e){let t=hG(e);if(t===0||t===1)return gG(e);let n=new Date(e);return n.toLocaleDateString(xt(),{weekday:`short`,month:`short`,day:`numeric`,...n.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}})}var vG=e=>new Date(e).toLocaleTimeString(xt(),{hour:`numeric`,minute:`2-digit`}),yG=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n},bG=(e,t)=>{let n=e.charCodeAt(t-1);return n>=55296&&n<=56319&&t<e.length?t+1:t},xG=(e,t)=>t.startsWith(e)?e:t.slice(0,bG(t,yG(e,t))),SG=class{shown;target;since=0;constructor(e,t){this.target=e,this.shown=t?``:e}get settled(){return this.shown===this.target}update(e,t,n,r=!1){let i=this.settled;this.target=e,!t||r?this.shown=e:(this.shown=xG(this.shown,e),i&&(this.since=n))}tick(e){let t=this.target.length-this.shown.length;if(t<=0){this.since=e;return}let n=Math.min(5,250/t),r=Math.min(t,Math.floor((e-this.since)/n));r<=0||(this.shown=this.target.slice(0,bG(this.target,this.shown.length+r)),this.since=this.settled?e:this.since+r*n)}};function CG(e,t,n={}){let r=jf(),i=t&&!r,[a]=(0,H.useState)(()=>new SG(e,i&&!n.startShown)),[o,s]=(0,H.useState)(a.shown),c=(0,H.useRef)(n.minCommitMs??0);return c.current=n.minCommitMs??0,(0,H.useEffect)(()=>{if(a.update(e,i,performance.now()),s(a.shown),a.settled)return;let t=0,n=performance.now(),r=e=>{a.tick(e),(a.settled||e-n>=c.current)&&(n=e,s(a.shown)),a.settled||(t=requestAnimationFrame(r))};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[a,e,i]),i?xG(o,e):e}function wG(e,t){for(let n of at(e)){let e=n.map(e=>e.text??``).join(``).indexOf(t);if(e<0||!t)continue;let r=0;return n.flatMap(n=>{let i=n.text??``,a=Math.max(0,e-r),o=Math.min(i.length,e+t.length-r);return r+=i.length,o>a?[{...n,text:i.slice(a,o)}]:[]})}return[{type:`text`,text:t}]}function TG(e,t){let n=new Set,r=i=>{if(i.type===`paragraph`||i.type===`heading`){let r=(i.content??[]).map(e=>e.text??``).join(``);return[`before`,`match`,`after`].flatMap(i=>!t[i]||n.has(i)||!r.includes(t[i])?[]:(n.add(i),[{type:`citationPart`,attrs:{part:i},content:wG(e,t[i])}]))}let a=(i.content??[]).map((e,t)=>r(e).map(e=>i.type===`orderedList`?{...e,attrs:{...e.attrs,value:Number(i.attrs?.start??1)+t}}:e)),o=a.flat();return o.length?[{...i,content:o,...i.type===`orderedList`?{attrs:{...i.attrs,start:Number(i.attrs?.start??1)+a.findIndex(e=>e.length)}}:{}}]:[]};return r(ze(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}))[0]?.content??[]}function EG(e,t){let n=e.atMs===null?`notes`:`transcript`,r=e.transcript?.lines??[],i=e.excerpt??``;n===`transcript`&&(i=ot(i).split(`
+`).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=eF(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(`
+`)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function tF(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var nF=64;function rF(e,t){let n=[],r=0;for(;n.length<t;){let t=e.indexOf(`
+`,r);if(t===-1)return n.push(e.slice(r)),n;n.push(e.slice(r,t)),r=t+1}return n}function iF(e){let t=e.indexOf(`
+`),n=t===-1?e:e.slice(0,t);if(!WP.test(n))return[[],0,[]];let r=nF,i=rF(e,r),a=ZP(i);for(;a[1]===i.length&&i.length===r;)r*=2,i=rF(e,r),a=ZP(i);return[a[0],a[1],i]}var aF=`listItem`,oF=`textStyle`,sF=/^(\d+)\.\s$/;function cF(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var lF=_A.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=cF(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=cF(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=sO(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?tF(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let[r,i,a]=iF(e);if(r.length===0)return;let o=eF(r,r[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:r[0]?.number||1,typeMarker:r[0]?.type,items:o,raw:a.slice(0,i).join(`
+`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(aF,this.editor.getAttributes(oF)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new Yx({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=$P(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=gA({find:sF,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=gA({find:sF,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(oF)}),joinPredicate:e,editor:this.editor})),[t]}}),uF=/^\s*(\[([( |x])?\])\s$/,dF=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,fF=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},pF=_A.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,sO(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>jk(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[hP(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=dF;let l=e=>{let t=fF(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=cO(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[gA({find:uF,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),mF=_A.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,sO(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
+`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=Ok(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=Ok(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Xk.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(dP.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(PP.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(UP.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(lF.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(pF.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(mF.configure(this.options.taskList)),e}});var hF=`&nbsp;`,gF=`\xA0`,_F=_A.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,sO(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===hF||n[0].text===hF||n[0].raw===gF||n[0].text===gF)&&r.length===1&&r[0].type===`text`&&(r[0].text===hF||r[0].text===gF)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?hF:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),vF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,yF=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,bF=Hk.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,sO(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[pA({find:vF,type:this.type})]},addPasteRules(){return[vA({find:yF,type:this.type})]}}),xF=_A.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),SF=Hk.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,sO(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function CF(e={}){return new Yx({view(t){return new wF(t,e)}})}var wF=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.setCursor(null),this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(this.cursorPos!=null&&t.doc!=e.state.doc){if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=lx(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},TF=class e extends jx{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):jx.near(r)}content(){return q.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new EF(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!OF(e)||!kF(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!Lx.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};TF.prototype.visible=!1,TF.findFrom=TF.findGapCursorFrom,jx.jsonID(`gapcursor`,TF);var EF=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return TF.valid(t)?new TF(t):jx.near(t)}};function DF(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function OF(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0}else for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||DF(e.type))return!0;if(e.inlineContent)return!1}}return!0}function kF(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0}else for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||DF(e.type))return!0;if(e.inlineContent)return!1}}return!0}function AF(){return new Yx({props:{decorations:FF,createSelectionBetween(e,t,n){return t.pos==n.pos&&TF.valid(n)?new TF(n):null},handleClick:NF,handleKeyDown:jF,handleDOMEvents:{beforeinput:PF}}})}var jF=BE({ArrowLeft:MF(`horiz`,-1),ArrowRight:MF(`horiz`,1),ArrowUp:MF(`vert`,-1),ArrowDown:MF(`vert`,1)});function MF(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof Fx){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=TF.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new TF(c))),!0):!1}}function NF(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!TF.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&Lx.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new TF(r))),!0)}function PF(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof TF))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=K.empty;for(let e=r.length-1;e>=0;e--)i=K.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new q(i,0,0));return a.setSelection(Fx.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function FF(e){if(!(e.selection instanceof TF))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,sE.create(e.doc,[iE.widget(e.selection.head,t,{key:`gapcursor`})])}Xk.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new Yx({key:new Qx(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}});var IF=Xk.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[CF(this.options)]}});Xk.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new Yx({key:new Qx(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return sE.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(iE.node(t,t+e.nodeSize,{class:this.options.className}))}),sE.create(e,a)}}})]}});var LF=Xk.create({name:`gapCursor`,addProseMirrorPlugins(){return[AF()]},extendNodeSchema(e){return{allowGapCursor:rO(qD(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),RF=`placeholder`,zF=new Qx(`tiptap__placeholder`);function BF(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),iE.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function VF(e,t){return typeof e==`function`?e(t):e}function HF({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&FO(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(BF({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:VF(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function UF({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!e.isEditable&&t.showOnlyWhenEditable)return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&FO(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(BF({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:VF(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...HF({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return sE.create(r,o)}function WF(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function GF(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function KF(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function qF(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function JF(e,t){let n=KF(e,t.from,t.to);return n.push(GF(e,WF(e,t.from))),t.to>t.from?n.push(GF(e,WF(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(GF(e,WF(e,Math.min(t.from+1,e.content.size)))),n}function YF(e,t,n){let r=[];if(e.docChanged){let t=wO(e);for(let e of t)r.push(...JF(n.doc,e.newRange))}return e.selectionSet&&(r.push(GF(n.doc,WF(n.doc,e.mapping.map(t.selection.anchor)))),r.push(GF(n.doc,WF(n.doc,n.selection.anchor)))),qF(r)}function XF(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function ZF({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=XF(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=HF({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function QF({editor:e,options:t,dataAttribute:n}){return{init(r,i){return UF({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??sE.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:ZF({decorations:i.map(r.mapping,r.doc),ranges:YF(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function $F(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function eI({editor:e,options:t}){let n=t.dataAttribute?`data-${$F(t.dataAttribute)}`:`data-${RF}`,r=t.showOnlyCurrent&&!t.includeChildren;return new Yx({key:zF,...r?{}:{state:QF({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>UF({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?sE.empty:zF.getState(n)??sE.empty}})}var tI=Xk.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:RF,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[eI({editor:this.editor,options:this.options})]}});function nI(e,t){return!e.selection.empty&&!IO(e.selection)&&t.isEditable}function rI(e,t){return nI(e,t)&&!t.isFocused&&!t.view.dragging}function iI(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function aI(e){e.focus()}Xk.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new Yx({key:new Qx(`selection`),props:{decorations(n){return rI(n,e)?sE.create(n.doc,[iE.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return nI(t.state,e)&&iI(),!1},focus(t){return nI(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&aI(t)}),!1}}}})]}});function oI({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var sI=Xk.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new Qx(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new Yx({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!oI({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!oI({node:r,types:n})}}})]}}),cI=Xk.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>nD(e,t),redo:()=>({state:e,dispatch:t})=>rD(e,t)}},addProseMirrorPlugins(){return[Bte(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),lI=Xk.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(Cre.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(vre.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(dP.configure(this.options.bulletList)),this.options.code!==!1&&e.push(Dre.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(Are.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(jre.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(IF.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(LF.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Mre.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(Nre.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(cI.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(Pre.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(zre.configure(this.options.italic)),this.options.listItem!==!1&&e.push(PP.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(UP.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(sP.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(lF.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(_F.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(bF.configure(this.options.strike)),this.options.text!==!1&&e.push(xF.configure(this.options.text)),this.options.underline!==!1&&e.push(SF.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(sI.configure(this.options?.trailingNode)),e}}),uI=tI,dI=[`top`,`right`,`bottom`,`left`],fI=[`start`,`end`],pI=dI.reduce((e,t)=>e.concat(t,t+`-`+fI[0],t+`-`+fI[1]),[]),mI=Math.min,hI=Math.max,gI=Math.round,_I=Math.floor,vI=e=>({x:e,y:e}),yI={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function bI(e,t,n){return hI(e,mI(t,n))}function xI(e,t){return typeof e==`function`?e(t):e}function SI(e){return e.split(`-`)[0]}function CI(e){return e.split(`-`)[1]}function wI(e){return e===`x`?`y`:`x`}function TI(e){return e===`y`?`height`:`width`}function EI(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function DI(e){return wI(EI(e))}function OI(e,t,n){n===void 0&&(n=!1);let r=CI(e),i=DI(e),a=TI(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=LI(o)),[o,LI(o)]}function kI(e){let t=LI(e);return[AI(e),t,AI(t)]}function AI(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var jI=[`left`,`right`],MI=[`right`,`left`],NI=[`top`,`bottom`],PI=[`bottom`,`top`];function FI(e,t,n){switch(e){case`top`:case`bottom`:return n?t?MI:jI:t?jI:MI;case`left`:case`right`:return t?NI:PI;default:return[]}}function II(e,t,n,r){let i=CI(e),a=FI(SI(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(AI)))),a}function LI(e){let t=SI(e);return yI[t]+e.slice(t.length)}function RI(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function zI(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:RI(e)}function BI(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function VI(e,t,n){let{reference:r,floating:i}=e,a=EI(t),o=DI(t),s=TI(o),c=SI(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=CI(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function HI(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=xI(t,e),p=zI(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=BI(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=BI(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var UI=50,WI=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:HI},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=VI(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<UI&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=VI(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},GI=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xI(e,t)||{};if(l==null)return{};let d=zI(u),f={x:n,y:r},p=DI(i),m=TI(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=mI(d[_],T),D=mI(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=bI(E,k,O),j=!c.arrow&&CI(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}});function KI(e,t,n){return(e?[...n.filter(t=>CI(t)===e),...n.filter(t=>CI(t)!==e)]:n.filter(e=>SI(e)===e)).filter(n=>!e||CI(n)===e||(t?AI(n)!==n:!1))}var qI=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=pI,autoAlignment:u=!0,...d}=xI(e,t),f=c!==void 0||l===pI?KI(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=OI(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[SI(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=CI(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,CI(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},JI=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=xI(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=SI(r),_=EI(o),v=SI(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[LI(o)]:kI(o)),x=p!==`none`;!d&&x&&b.push(...II(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=OI(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===EI(t)||T.every(e=>EI(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=EI(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function YI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function XI(e){return dI.some(t=>e[t]>=0)}var ZI=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=xI(e,t);switch(i){case`referenceHidden`:{let e=YI(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:XI(e)}}}case`escaped`:{let e=YI(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:XI(e)}}}default:return{}}}}};function QI(e){let t=mI(...e.map(e=>e.left)),n=mI(...e.map(e=>e.top)),r=hI(...e.map(e=>e.right)),i=hI(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function $I(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>BI(QI(e)))}var eL=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=xI(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=$I(u),f=BI(QI(u)),p=zI(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(EI(n)===`y`){let e=d[0],t=d[d.length-1],r=SI(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return BI({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=SI(n)===`left`,t=hI(...d.map(e=>e.right)),r=mI(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return BI({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},tL=new Set([`left`,`top`]);async function nL(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=SI(n),s=CI(n),c=EI(n)===`y`,l=tL.has(o)?-1:1,u=a&&c?-1:1,d=xI(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var rL=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await nL(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},iL=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=xI(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=EI(i),p=wI(f),m=u[p],h=u[f],g=(e,t)=>bI(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},aL=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=xI(e,t),u={x:n,y:r},d=EI(i),f=wI(d),p=u[f],m=u[d],h=xI(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=tL.has(SI(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},oL=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=xI(e,t),c=await i.detectOverflow(t,s),l=SI(n),u=CI(n),d=EI(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=mI(p-c[m],g),y=mI(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*hI(c.left,c.right):S=p-2*hI(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function sL(){return typeof window<`u`}function cL(e){return dL(e)?(e.nodeName||``).toLowerCase():`#document`}function lL(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function uL(e){return((dL(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function dL(e){return sL()?e instanceof Node||e instanceof lL(e).Node:!1}function fL(e){return sL()?e instanceof Element||e instanceof lL(e).Element:!1}function pL(e){return sL()?e instanceof HTMLElement||e instanceof lL(e).HTMLElement:!1}function mL(e){return!sL()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof lL(e).ShadowRoot}function hL(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=EL(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function gL(e){return/^(table|td|th)$/.test(cL(e))}function _L(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var vL=/transform|translate|scale|rotate|perspective|filter/,yL=/paint|layout|strict|content/,bL=e=>!!e&&e!==`none`,xL;function SL(e){let t=fL(e)?EL(e):e;return bL(t.transform)||bL(t.translate)||bL(t.scale)||bL(t.rotate)||bL(t.perspective)||!wL()&&(bL(t.backdropFilter)||bL(t.filter))||vL.test(t.willChange||``)||yL.test(t.contain||``)}function CL(e){let t=OL(e);for(;pL(t)&&!TL(t);){if(SL(t))return t;if(_L(t))return null;t=OL(t)}return null}function wL(){return xL??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),xL}function TL(e){return/^(html|body|#document)$/.test(cL(e))}function EL(e){return lL(e).getComputedStyle(e)}function DL(e){return fL(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function OL(e){if(cL(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||mL(e)&&e.host||uL(e);return mL(t)?t.host:t}function kL(e){let t=OL(e);return TL(t)?(e.ownerDocument||e).body:pL(t)&&hL(t)?t:kL(t)}function AL(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=kL(e),i=r===e.ownerDocument?.body,a=lL(r);if(i){let e=jL(a);return t.concat(a,a.visualViewport||[],hL(r)?r:[],e&&n?AL(e):[])}return t.concat(r,AL(r,[],n))}function jL(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ML(e){let t=EL(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=pL(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gI(n)!==a||gI(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function NL(e){return fL(e)?e:e.contextElement}function PL(e){let t=NL(e);if(!pL(t))return vI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ML(t),o=(a?gI(n.width):n.width)/r,s=(a?gI(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}var FL=vI(0);function IL(e){let t=lL(e);return!wL()||!t.visualViewport?FL:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LL(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===lL(e)}function RL(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=NL(e),o=vI(1);t&&(r?fL(r)&&(o=PL(r)):o=PL(e));let s=LL(a,n,r)?IL(a):vI(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=lL(a),t=fL(r)?lL(r):r,n=e,i=jL(n);for(;i&&t!==n;){let e=PL(i),t=i.getBoundingClientRect(),r=EL(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=lL(i),i=jL(n)}}return BI({width:u,height:d,x:c,y:l})}function zL(e,t){let n=DL(e).scrollLeft;return t?t.left+n:RL(uL(e)).left+n}function BL(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-zL(e,n),y:n.top+t.scrollTop}}function VL(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=uL(r),s=t?_L(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vI(1),u=vI(0),d=pL(r);if((d||!a)&&((cL(r)!==`body`||hL(o))&&(c=DL(r)),d)){let e=RL(r);l=PL(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?BL(o,c):vI(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function HL(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function UL(e){let t=DL(e),n=e.ownerDocument.body,r=hI(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=hI(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+zL(e),o=-t.scrollTop;return EL(n).direction===`rtl`&&(a+=hI(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var WL=25;function GL(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=lL(e),a=uL(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!wL()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(zL(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=WL&&(s-=o)}return{width:s,height:c,x:l,y:u}}function KL(e,t){let n=RL(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=PL(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function qL(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=GL(e,n,t);else if(t===`document`)r=UL(uL(e));else if(fL(t))r=KL(t,n);else{let n=IL(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return BI(r)}function JL(e,t){let n=t.get(e);if(n)return n;let r=AL(e,[],!1).filter(e=>fL(e)&&cL(e)!==`body`),i=null,a=EL(e).position===`fixed`,o=a?OL(e):e;for(;fL(o)&&!TL(o);){let e=EL(o),t=SL(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=OL(o)}return t.set(e,r),r}function YL(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?_L(t)?[]:JL(t,this._c):[].concat(n),r],o=qL(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=qL(t,a[e],i);s=hI(n.top,s),c=mI(n.right,c),l=mI(n.bottom,l),u=hI(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function XL(e){let{width:t,height:n}=ML(e);return{width:t,height:n}}function ZL(e,t,n){let r=pL(t),i=uL(t),a=n===`fixed`,o=RL(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vI(0);if((r||!a)&&((cL(t)!==`body`||hL(i))&&(s=DL(t)),r)){let e=RL(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=zL(i));let l=i&&!r&&!a?BL(i,s):vI(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function QL(e){return EL(e).position===`static`}function $L(e,t){if(!pL(e)||EL(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return uL(e)===n&&(n=n.ownerDocument.body),n}function eR(e,t){let n=lL(e);if(_L(e))return n;if(!pL(e)){let t=OL(e);for(;t&&!TL(t);){if(fL(t)&&!QL(t))return t;t=OL(t)}return n}let r=$L(e,t);for(;r&&gL(r)&&QL(r);)r=$L(r,t);return r&&TL(r)&&QL(r)&&!SL(r)?n:r||CL(e)||n}var tR=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:ZL(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nR(e){return EL(e).direction===`rtl`}var rR={convertOffsetParentRelativeRectToViewportRelativeRect:VL,getDocumentElement:uL,getClippingRect:YL,getOffsetParent:eR,getElementRects:tR,getClientRects:HL,getDimensions:XL,getScale:PL,isElement:fL,isRTL:nR};function iR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aR(e,t,n){let r=null,i,a=uL(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=_I(d),h=_I(a.clientWidth-(u+f)),g=_I(a.clientHeight-(d+p)),_=_I(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:hI(0,mI(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!iR(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=lL(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function oR(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=NL(e),u=i||a?[...l?AL(l):[],...t?AL(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?aR(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?RL(e):null;c&&g();function g(){let t=RL(e);h&&!iR(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var sR=rL,cR=qI,lR=iL,uR=JI,dR=oL,fR=ZI,pR=GI,mR=eL,hR=aL,gR=(e,t,n)=>{let r=new Map,i=n??{},a={...rR,...i.platform,_c:r};return WI(e,t,{...i,platform:a})},_R,vR;if(typeof WeakMap<`u`){let e=new WeakMap;_R=t=>e.get(t),vR=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;_R=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},vR=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var yR=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o||t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return _R(e)||vR(e,bR(e))}};function bR(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=xR(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new yR(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&SR(s,o,e),s}function xR(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function SR(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r==null||c.colwidth&&c.colwidth[n]==r||((s||=CR(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function CR(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function wR(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new Qx(`selectingCells`);function TR(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function ER(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function Kre(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=TR(t.$head)||qre(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function qre(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function DR(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function OR(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function kR(e,t,n){let r=e.node(-1),i=yR.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function AR(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}var jR=class e extends jx{constructor(e,t=e){let n=e.node(-1),r=yR.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new Mx(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(DR(r)&&DR(i)&&OR(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return Fx.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=yR.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=AR(e,0,l)),u>0&&(e=AR(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(K.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new q(K.from(o),1,1)}replace(e,t=q.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?q.empty:t)}let i=jx.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new q(K.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=yR.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=yR.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=yR.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=yR.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new Jre(this.$anchorCell.pos,this.$headCell.pos)}};jR.prototype.visible=!1,jx.jsonID(`cell`,jR);var Jre=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&OR(t,n)?new jR(t,n):jx.near(n,1)}};new Qx(`fix-tables`);function MR(e){let t=e.selection,n=Kre(e),r=n.node(-1),i=n.start(-1),a=yR.get(r);return{...t instanceof jR?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function Yre(e){return function(t,n){if(!ER(t))return!1;if(n){let r=wR(t.schema),i=MR(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function NR(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function PR(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?Yre(e):function(t,n){if(!ER(t))return!1;if(n){let r=wR(t.schema),i=MR(t),a=t.tr,o=NR(`row`,i,r),s=NR(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}PR(`row`,{useDeprecatedLogic:!0}),PR(`column`,{useDeprecatedLogic:!0}),PR(`cell`,{useDeprecatedLogic:!0});function FR(e,t){let n=e.selection;if(!(n instanceof jR))return!1;if(t){let r=e.tr,i=wR(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new q(i,0,0))}),r.docChanged&&t(r)}return!0}BE({ArrowLeft:LR(`horiz`,-1),ArrowRight:LR(`horiz`,1),ArrowUp:LR(`vert`,-1),ArrowDown:LR(`vert`,1),"Shift-ArrowLeft":RR(`horiz`,-1),"Shift-ArrowRight":RR(`horiz`,1),"Shift-ArrowUp":RR(`vert`,-1),"Shift-ArrowDown":RR(`vert`,1),Backspace:FR,"Mod-Backspace":FR,Delete:FR,"Mod-Delete":FR});function IR(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function LR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof jR)return IR(n,r,jx.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=zR(i,e,t);if(o==null)return!1;if(e==`horiz`)return IR(n,r,jx.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=kR(i,e,t),s;return s=a?jx.near(a,1):t<0?jx.near(n.doc.resolve(i.before(-1)),-1):jx.near(n.doc.resolve(i.after(-1)),1),IR(n,r,s)}}}function RR(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof jR)o=a;else{let r=zR(i,e,t);if(r==null)return!1;o=new jR(n.doc.resolve(r))}let s=kR(o.$headCell,e,t);return s?IR(n,r,new jR(o.$anchorCell,s)):!1}}function zR(e,t,n){if(!(e.state.selection instanceof Fx))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}new Qx(`tableColumnResizing`);function Xre(e,t){let n=Math.min(e.top,t.top),r=Math.max(e.bottom,t.bottom),i=Math.min(e.left,t.left),a=Math.max(e.right,t.right)-i,o=r-n;return new DOMRect(i,n,a,o)}var Zre=class{get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(uR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(lR(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(sR(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(pR(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(dR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(cR(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(fR(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(mR(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}get virtualElement(){var e;let{selection:t}=this.editor.state,n=this.getReferencedVirtualElement?.call(this);if(n)return n;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let r=RO(this.view,t.from,t.to),i={getBoundingClientRect:()=>r,getClientRects:()=>[r]};if(t instanceof Lx){let e=this.view.nodeDOM(t.from),n=e.dataset.nodeViewWrapper?e:e.querySelector(`[data-node-view-wrapper]`);n&&(e=n),e&&(i={getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>[e.getBoundingClientRect()]})}if(t instanceof jR){let{$anchorCell:e,$headCell:n}=t,r=e?e.pos:n.pos,a=n?n.pos:e.pos,o=this.view.nodeDOM(r),s=this.view.nodeDOM(a);if(!o||!s)return;let c=o===s?o.getBoundingClientRect():Xre(o.getBoundingClientRect(),s.getBoundingClientRect());i={getBoundingClientRect:()=>c,getClientRects:()=>[c]}}return i}constructor({editor:e,element:t,view:n,pluginKey:r=`bubbleMenu`,updateDelay:i=250,resizeDelay:a=60,shouldShow:o,appendTo:s,getReferencedVirtualElement:c,options:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:`absolute`,placement:`top`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:e,state:t,from:n,to:r})=>{let{doc:i,selection:a}=t,{empty:o}=a,s=!i.textBetween(n,r).length&&mD(t.selection),c=this.element.contains(document.activeElement);return!(!(e.hasFocus()||c)||o||s||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.editor.isDestroyed?this.destroy():this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(e,t)=>{let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);(n||r)&&(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(e,n,r,t)},this.updateDelay))},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.show(),this.updatePosition()):this.hide())},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=l?.scrollTarget??window,this.getReferencedVirtualElement=c,this.floatingUIOptions={...this.floatingUIOptions,...l},this.element.tabIndex=0,o&&(this.shouldShow=o),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener(`dragstart`,this.dragstartHandler),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;let e=this.virtualElement;e&&gR(e,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{this.isVisible&&!this.editor.isDestroyed&&this.element.isConnected&&(r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()))})}update(e,t){let{state:n}=e,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(e,t);return}let i=!t?.selection.eq(e.state.selection),a=!t?.doc.eq(e.state.doc);this.updateHandler(e,i,a,t)}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,element:this.element,view:this.view,state:t,oldState:e,from:i,to:a})||!1}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=e.getReferencedVirtualElement),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener(`dragstart`,this.dragstartHandler),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},BR=e=>new Yx({key:typeof e.pluginKey==`string`?new Qx(e.pluginKey):e.pluginKey,view:t=>new Zre({view:t,...e})});Xk.create({name:`bubbleMenu`,addOptions(){return{element:null,pluginKey:`bubbleMenu`,updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[BR({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var Qre=class{getTextContent(e){return vO(e,{textSerializers:yO(this.editor.schema)})}get middlewares(){let e=[];return this.floatingUIOptions.flip&&e.push(uR(typeof this.floatingUIOptions.flip==`boolean`?void 0:this.floatingUIOptions.flip)),this.floatingUIOptions.shift&&e.push(lR(typeof this.floatingUIOptions.shift==`boolean`?void 0:this.floatingUIOptions.shift)),this.floatingUIOptions.offset&&e.push(sR(typeof this.floatingUIOptions.offset==`boolean`?void 0:this.floatingUIOptions.offset)),this.floatingUIOptions.arrow&&e.push(pR(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&e.push(dR(typeof this.floatingUIOptions.size==`boolean`?void 0:this.floatingUIOptions.size)),this.floatingUIOptions.autoPlacement&&e.push(cR(typeof this.floatingUIOptions.autoPlacement==`boolean`?void 0:this.floatingUIOptions.autoPlacement)),this.floatingUIOptions.hide&&e.push(fR(typeof this.floatingUIOptions.hide==`boolean`?void 0:this.floatingUIOptions.hide)),this.floatingUIOptions.inline&&e.push(mR(typeof this.floatingUIOptions.inline==`boolean`?void 0:this.floatingUIOptions.inline)),e}constructor({editor:e,element:t,view:n,pluginKey:r=`floatingMenu`,updateDelay:i=250,resizeDelay:a=60,options:o,appendTo:s,shouldShow:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:e,state:t})=>{let{selection:n}=t,{$anchor:r,empty:i}=n,a=r.depth===1,o=r.parent.isTextblock&&!r.parent.type.spec.code&&!r.parent.textContent&&r.parent.childCount===0&&!this.getTextContent(r.parent);return!(!e.hasFocus()||!i||!a||!o||!this.editor.isEditable)},this.floatingUIOptions={strategy:`absolute`,placement:`right`,offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(e,t,n,r)=>{let{composing:i}=e;i||!t&&!n||(this.getShouldShow(r)?(this.updatePosition(),this.show()):this.hide())},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:e})=>{this.preventHide?this.preventHide=!1:e?.relatedTarget&&this.element.parentNode?.contains(e.relatedTarget)||e?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:e})=>{let t=e.getMeta(this.pluginKey);t===`updatePosition`?this.updatePosition():t&&typeof t==`object`&&t.type===`updateOptions`?this.updateOptions(t.options):t===`hide`?this.hide():t===`show`&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=e,this.element=t,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=a,this.appendTo=s,this.scrollTarget=o?.scrollTarget??window,this.floatingUIOptions={...this.floatingUIOptions,...o},this.element.tabIndex=0,c&&(this.shouldShow=c),this.element.addEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),this.editor.on(`focus`,this.focusHandler),this.editor.on(`blur`,this.blurHandler),this.editor.on(`transaction`,this.transactionHandler),window.addEventListener(`resize`,this.resizeHandler),this.scrollTarget.addEventListener(`scroll`,this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(e){let{state:t}=this.view,{selection:n}=t,{ranges:r}=n,i=Math.min(...r.map(e=>e.$from.pos)),a=Math.max(...r.map(e=>e.$to.pos));return this.shouldShow?.call(this,{editor:this.editor,view:this.view,state:t,oldState:e,from:i,to:a})}updateOptions(e){if(e.updateDelay!==void 0&&(this.updateDelay=e.updateDelay),e.resizeDelay!==void 0&&(this.resizeDelay=e.resizeDelay),e.appendTo!==void 0&&(this.appendTo=e.appendTo),e.shouldShow!==void 0&&e.shouldShow&&(this.shouldShow=e.shouldShow),e.options!==void 0){let t=e.options.scrollTarget??window;t!==this.scrollTarget&&(this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.scrollTarget=t,this.scrollTarget.addEventListener(`scroll`,this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...e.options}}}updatePosition(){var e;if(!((e=this.view)!=null&&(e=e.dom)!=null&&e.parentNode))return;let{selection:t}=this.editor.state,n=RO(this.view,t.from,t.to);gR({getBoundingClientRect:()=>n,getClientRects:()=>[n]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:t,strategy:n,middlewareData:r})=>{r.hide?.referenceHidden||r.hide?.escaped?this.element.style.visibility=`hidden`:(this.element.style.visibility=`visible`,this.element.style.width=`max-content`,this.element.style.position=n,this.element.style.left=`${e}px`,this.element.style.top=`${t}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate())})}update(e,t){let n=!t?.selection.eq(e.state.selection),r=!t?.doc.eq(e.state.doc);this.updateHandler(e,n,r,t)}show(){var e;this.isVisible||=(this.element.style.visibility=`visible`,this.element.style.opacity=`1`,(e=(typeof this.appendTo==`function`?this.appendTo():this.appendTo)??this.view.dom.parentElement)==null||e.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),!0)}hide(){this.isVisible&&=(this.element.style.visibility=`hidden`,this.element.style.opacity=`0`,this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),!1)}destroy(){this.hide(),this.element.removeEventListener(`mousedown`,this.mousedownHandler,{capture:!0}),window.removeEventListener(`resize`,this.resizeHandler),this.scrollTarget.removeEventListener(`scroll`,this.resizeHandler),this.editor.off(`focus`,this.focusHandler),this.editor.off(`blur`,this.blurHandler),this.editor.off(`transaction`,this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},VR=e=>new Yx({key:typeof e.pluginKey==`string`?new Qx(e.pluginKey):e.pluginKey,view:t=>new Qre({view:t,...e})});Xk.create({name:`floatingMenu`,addOptions(){return{element:null,options:{},pluginKey:`floatingMenu`,updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:e,dispatch:t})=>(t&&e.setMeta(this.options.pluginKey,`updatePosition`),!0)}},addProseMirrorPlugins(){return this.options.element?[VR({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function HR(e,t){return e??new Qx(t)}var $re=typeof window<`u`?H.useLayoutEffect:H.useEffect,UR=new Set([`left`,`opacity`,`position`,`top`,`visibility`,`width`]),eie=new Set(`animationIterationCount.aspectRatio.borderImageOutset.borderImageSlice.borderImageWidth.columnCount.columns.fillOpacity.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineClamp.lineHeight.opacity.order.orphans.scale.stopOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeOpacity.strokeWidth.tabSize.widows.zIndex.zoom`.split(`.`)),tie=new Set([`children`,`className`,`style`]),nie=new Set([`tabIndex`]),rie=new Set([`accessKey`,`autoCapitalize`,`contentEditable`,`contextMenu`,`dir`,`draggable`,`enterKeyHint`,`hidden`,`id`,`lang`,`nonce`,`role`,`slot`,`spellCheck`,`tabIndex`,`title`,`translate`]),iie={Blur:`focusout`,DoubleClick:`dblclick`,Focus:`focusin`,MouseEnter:`mouseenter`,MouseLeave:`mouseleave`};function WR(e,t){return/^on[A-Z]/.test(e)&&typeof t==`function`}function aie(e){return e.startsWith(`aria-`)||e.startsWith(`data-`),e}function oie(e){return e.startsWith(`aria-`)||e.startsWith(`data-`)||rie.has(e)}function GR(e){return e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function sie(e){let t=e.endsWith(`Capture`),n=(t?e.slice(0,-7):e).slice(2);return{eventName:iie[n]??n.toLowerCase(),options:t?{capture:!0}:void 0}}function cie(e,t){let n=t.defaultPrevented,r=!1,i=Object.create(t);return Object.defineProperties(i,{nativeEvent:{value:t},currentTarget:{value:e},target:{value:t.target},persist:{value:()=>void 0},isDefaultPrevented:{value:()=>n},isPropagationStopped:{value:()=>r},preventDefault:{value:()=>{n=!0,t.preventDefault()}},stopPropagation:{value:()=>{r=!0,t.stopPropagation()}}}),i}function KR(e){return nie.has(e)}function qR(e,t,n){t===`tabIndex`?e.tabIndex=Number(n):e[t]=n}function lie(e,t){if(t===`tabIndex`){e.removeAttribute(`tabindex`);return}let n=e[t];e[t]=typeof n==`boolean`?!1:typeof n==`number`?0:``}function uie(e,t){return typeof t!=`number`||t===0||e.startsWith(`--`)||eie.has(e)?String(t):`${t}px`}function die(e,t){UR.has(t)||e.style.removeProperty(GR(t))}function fie(e,t,n){UR.has(t)||e.style.setProperty(GR(t),uie(t,n))}function pie(e,t,n){new Set([...Object.keys(t),...Object.keys(n)]).forEach(r=>{if(tie.has(r)||!oie(r)||WR(r,t[r])||WR(r,n[r]))return;let i=t[r],a=n[r];if(i===a)return;let o=aie(r);a==null||a===!1?(KR(r)&&lie(e,r),e.removeAttribute(o)):a===!0?(KR(r)&&qR(e,r,!0),e.setAttribute(o,``)):KR(r)?qR(e,r,a):e.setAttribute(o,String(a))})}function mie(e,t,n){t!==n&&(n?e.className=n:e.removeAttribute(`class`))}function hie(e,t,n){let r=t??{},i=n??{};new Set([...Object.keys(r),...Object.keys(i)]).forEach(t=>{let n=r[t],a=i[t];n!==a&&(a==null?die(e,t):fie(e,t,a))})}function gie(e,t,n){t.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)});let r=[];return Object.entries(n).forEach(([t,n])=>{if(!WR(t,n))return;let{eventName:i,options:a}=sie(t),o=t=>{n(cie(e,t))};e.addEventListener(i,o,a),r.push({eventName:i,listener:o,options:a})}),r}function JR(e,t){let n=(0,H.useRef)({}),r=(0,H.useRef)([]);$re(()=>{let i=n.current;return mie(e,i.className,t.className),hie(e,i.style,t.style),pie(e,i,t),r.current=gie(e,r.current,t),n.current=t,()=>{r.current.forEach(({eventName:t,listener:n,options:r})=>{e.removeEventListener(t,n,r)}),r.current=[]}},[e,t])}var _ie=H.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,getReferencedVirtualElement:o,options:s,children:c,...l},u)=>{let d=(0,H.useRef)(document.createElement(`div`)),f=(0,H.useRef)(HR(e,`bubbleMenu`)).current;JR(d.current,l),typeof u==`function`?u(d.current):u&&(u.current=d.current);let{editor:p}=Aj(),m=t||p,h={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:f,shouldShow:a,getReferencedVirtualElement:o,options:s},g=(0,H.useRef)(h);g.current=h;let[_,v]=(0,H.useState)(!1),y=(0,H.useRef)(!0);return(0,H.useEffect)(()=>{if(m?.isDestroyed)return;if(!m){console.warn(`BubbleMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=d.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=BR({...g.current,editor:m,element:e});m.registerPlugin(t);let n=g.current.pluginKey;return y.current=!0,v(!0),()=>{v(!1),m.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[m]),(0,H.useEffect)(()=>{_&&m&&!m.isDestroyed&&(y.current?y.current=!1:m.view.dispatch(m.state.tr.setMeta(f,{type:`updateOptions`,options:g.current})))},[_,m,n,r,a,s,i,o,f]),(0,Oe.createPortal)(c,d.current)});H.forwardRef(({pluginKey:e,editor:t,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:a=null,options:o,children:s,...c},l)=>{let u=(0,H.useRef)(document.createElement(`div`)),d=(0,H.useRef)(HR(e,`floatingMenu`)).current;JR(u.current,c),typeof l==`function`?l(u.current):l&&(l.current=u.current);let{editor:f}=Aj(),p=t||f,m={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:d,shouldShow:a,options:o},h=(0,H.useRef)(m);h.current=m;let[g,_]=(0,H.useState)(!1),v=(0,H.useRef)(!0);return(0,H.useEffect)(()=>{if(p?.isDestroyed)return;if(!p){console.warn(`FloatingMenu component is not rendered inside of an editor component or does not have editor prop.`);return}let e=u.current;e.style.visibility=`hidden`,e.style.position=`absolute`;let t=VR({...h.current,editor:p,element:e});p.registerPlugin(t);let n=h.current.pluginKey;return v.current=!0,_(!0),()=>{_(!1),p.unregisterPlugin(n),window.requestAnimationFrame(()=>{e.parentNode&&e.parentNode.removeChild(e)})}},[p]),(0,H.useEffect)(()=>{g&&p&&!p.isDestroyed&&(v.current?v.current=!1:p.view.dispatch(p.state.tr.setMeta(d,{type:`updateOptions`,options:h.current})))},[g,p,n,r,a,o,i,d]),(0,Oe.createPortal)(s,u.current)});function vie({editor:e}){let t=lv(),n=(0,H.useRef)(null),r=(0,H.useRef)(null),[i]=(0,H.useState)(()=>document.createElement(`div`)),[a,o]=(0,H.useState)(),s=Dj({editor:e,selector:({editor:e})=>({bold:e.isActive(`bold`),italic:e.isActive(`italic`),heading:e.isActive(`heading`,{level:2}),bullets:e.isActive(`bulletList`),numbers:e.isActive(`orderedList`)})}),c=(0,H.useMemo)(()=>({strategy:`fixed`,placement:`top`,offset:8,scrollTarget:a,flip:{padding:8,boundary:a},shift:{padding:8,boundary:a},hide:{boundary:a}}),[a]),l=(0,H.useCallback)(({view:t,state:n,from:i,to:a,element:o})=>(r.current!==`${i}:${a}`&&(r.current=null),!r.current&&e.isEditable&&!n.selection.empty&&!!n.doc.textBetween(i,a).trim()&&(t.hasFocus()||o.contains(document.activeElement))),[e]),u=(0,H.useCallback)(()=>{let{from:t,to:n}=e.state.selection;r.current=`${t}:${n}`,e.view.focus(),e.commands.setMeta(`editorFormatting`,`hide`)},[e]);(0,H.useEffect)(()=>{document.body.append(i),o(e.view.dom.closest(`.note-notes-pane`)??void 0);let t=t=>{t.altKey&&t.key===`F10`&&!e.state.selection.empty?(t.preventDefault(),r.current=null,e.commands.setMeta(`editorFormatting`,`show`),n.current?.querySelector(`button`)?.focus()):t.key===`Escape`&&n.current?.isConnected&&(t.preventDefault(),t.stopPropagation(),u())},a=e.view.dom,s=()=>{r.current=null};return a.addEventListener(`keydown`,t),e.on(`selectionUpdate`,s),()=>{a.removeEventListener(`keydown`,t),e.off(`selectionUpdate`,s),i.remove()}},[e,u,i]);let d=[{label:U(`Bold`),icon:iee,active:s.bold,shortcut:`Meta+B`,run:()=>e.chain().toggleBold().run()},{label:U(`Italic`),icon:l_,active:s.italic,shortcut:`Meta+I`,run:()=>e.chain().toggleItalic().run()},{label:U(`Heading`),icon:t_,active:s.heading,run:()=>e.chain().toggleHeading({level:2}).run()},{label:U(`Bulleted list`),icon:y_,active:s.bullets,run:()=>e.chain().toggleBulletList().run()},{label:U(`Numbered list`),icon:__,active:s.numbers,run:()=>e.chain().toggleOrderedList().run()}];return a&&(0,G.jsx)(_ie,{ref:n,editor:e,pluginKey:`editorFormatting`,appendTo:i,className:`editor-menu`,updateDelay:0,resizeDelay:16,options:c,shouldShow:l,children:(0,G.jsx)(`div`,{role:`toolbar`,className:`editor-toolbar`,"data-testid":`editor-toolbar`,"aria-label":U(`Text formatting`),dir:gt(t),onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),u();return}if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let n=Array.from(e.currentTarget.querySelectorAll(`button`)),r=n.indexOf(document.activeElement),i=(e.key===`ArrowRight`?1:-1)*(gt(t)===`rtl`?-1:1);n[e.key===`Home`?0:e.key===`End`?n.length-1:(r+i+n.length)%n.length]?.focus()},onBlur:t=>{!t.currentTarget.contains(t.relatedTarget)&&t.relatedTarget!==e.view.dom&&e.commands.setMeta(`editorFormatting`,`hide`)},children:d.map(({label:t,icon:n,active:r,shortcut:i,run:a},o)=>(0,G.jsx)(`button`,{type:`button`,tabIndex:o===0?0:-1,"aria-label":t,title:t,"aria-pressed":r,"aria-keyshortcuts":i,onClick:t=>{e.view.dispatch(QE(e.state.tr)),a(),t.detail>0&&e.view.focus()},children:(0,G.jsx)(n,{size:16,"aria-hidden":`true`})},t))})})}var yie=class{text=``;times=[];update(e,t){let n=0,r=0;for(;n<this.text.length&&n<e.length&&this.text[n]===e[n];)n++;for(;r<this.text.length-n&&r<e.length-n&&this.text[this.text.length-1-r]===e[e.length-1-r];)r++;return this.times=[...this.times.slice(0,n),...Array(e.length-n-r).fill(t),...r?this.times.slice(-r):[]],this.text=e,[...e.matchAll(/\S+/g)].map(e=>({from:e.index,to:e.index+e[0].length,born:this.times[e.index]}))}},YR=new Qx(`streamingInk`),XR=e=>Math.max(0,Math.min(1,e)),ZR=qt(.18,.8,.25,1),bie=Xk.create({name:`streamingInk`,addProseMirrorPlugins(){let e=new yie;return[new Yx({key:YR,state:{init:()=>({live:!1,reduced:!1,decorations:sE.empty}),apply(t,n){let r=t.getMeta(YR)??n;if(!r.live)return e.update(``,0),{...r,decorations:sE.empty};if(!t.docChanged&&r.live===n.live&&r.reduced===n.reduced)return n;let i=``,a=[];t.doc.descendants((e,t)=>{e.isTextblock&&(i+=`
+`),e.isText&&(a.push({from:i.length,to:i.length+e.text.length,pos:t}),i+=e.text)});let o=performance.now(),s=[],c=0;for(let t of e.update(i,o)){for(;c<a.length&&a[c].to<=t.from;)c++;if(!(r.reduced||o-t.born>=420))for(let e=c;e<a.length&&a[e].from<t.to;e++){let n=a[e];s.push(iE.inline(n.pos+Math.max(0,t.from-n.from),n.pos+Math.min(n.to,t.to)-n.from,{class:`summary-ink`,"data-ink-born":String(t.born)}))}}return{...r,decorations:sE.create(t.doc,s)}}},props:{decorations:e=>YR.getState(e).decorations},view(e){let t=0,n,r=142,i=a=>{cancelAnimationFrame(t);let o=e.dom.closest(`.summary-surface`);if(!o)return;let s=o.querySelector(`.summary-wash`),c=o.querySelector(`.summary-heading-bar`),{live:l,reduced:u}=YR.getState(e.state),d=l&&!e.state.doc.textContent.trim();if(o.dataset.waiting=String(d),s.replaceChildren(),(!l||d)&&(n=void 0),l&&!d&&n===void 0&&(n=a),l&&!d&&a-n<260){let t=e.dom.querySelector(`h1,h2,h3`);if(t){let e=document.createRange();e.selectNodeContents(t),r=e.getBoundingClientRect().width}else r=142}let f=d?0:!l||u?1:XR((a-(n??a))/260),p=1-(1-f)**3;e.dom.style.opacity=String(d||!l||u?1:p),c.hidden=!l||!d&&f===1,c.style.width=`${142+(r-142)*ZR(f)}px`,c.style.transform=`scaleY(${1-.72*ZR(f)})`,c.style.opacity=String(d?1:1-p);let m=l&&!d&&f<1;if(l&&!u){let t=o.getBoundingClientRect(),n=o.querySelector(`filter`).id;for(let r of e.dom.querySelectorAll(`[data-ink-born]`)){let e=a-Number(r.dataset.inkBorn);if(r.style.setProperty(`--ink-fresh`,`${(1-XR(e/420))*100}%`),e>=420)continue;m=!0;let i=document.createRange();i.selectNodeContents(r);for(let r of i.getClientRects()){let i=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),a=r.width+4,o=ZR(XR(e/260));i.setAttribute(`transform`,`translate(${r.left-t.left-2+a*.12*(1-o)} ${r.top-t.top}) scale(${o} 1)`),i.setAttribute(`opacity`,String(.11*(1-XR((e-160)/260))*p)),i.setAttribute(`filter`,`url(#${n})`),i.innerHTML=`<rect y="6" width="${a*.82}" height="12" rx="8"/><circle cx="${a-4}" cy="12" r="4"/>`,s.append(i)}}}m&&(t=requestAnimationFrame(i))};return{update:()=>i(performance.now()),destroy:()=>cancelAnimationFrame(t)}}})]}}),xie=Hk.create({name:`mine`,inclusive:!1,parseHTML:()=>[{tag:`span[data-mine]`}],renderHTML:()=>[`span`,{"data-mine":``,class:`mine`},0]});function QR(e){let t=(0,H.useId)(),n=jf(),r=(0,H.useRef)(e.onChange),i=(0,H.useRef)(e.onBlur);r.current=e.onChange,i.current=e.onBlur;let a=(0,H.useRef)(e.markdown),o=dre({extensions:[lI.configure({heading:{levels:[1,2,3]},code:!1,codeBlock:!1,blockquote:!1,horizontalRule:!1,strike:!1,underline:!1,trailingNode:!1,link:{openOnClick:!1,autolink:!0,defaultProtocol:`https`}}),uI.configure({placeholder:e.placeholder??``}),xie,bie],content:ze(e.markdown,{streaming:e.streaming}),editable:e.editable??!0,shouldRerenderOnTransaction:!1,editorProps:{attributes:{dir:`auto`,"data-testid":e.testId,class:`note-prose outline-none ${e.className??``}`,spellcheck:`true`,role:`textbox`,"aria-label":e.label,"aria-multiline":`true`,"aria-readonly":String(e.editable===!1)}},onUpdate:({editor:e})=>{let t=Ye(e.getJSON());t!==a.current&&(a.current=t,r.current?.(t))},onBlur:()=>i.current?.()});return(0,H.useLayoutEffect)(()=>{if(!o||o.isDestroyed)return;a.current=e.markdown;let t=o.chain().setMeta(YR,{live:!!e.streaming,reduced:n});(Ye(o.getJSON())!==e.markdown||e.streaming)&&t.setContent(ze(e.markdown,{streaming:e.streaming}),{emitUpdate:!1}),t.run()},[o,e.markdown,e.streaming,n]),(0,H.useEffect)(()=>{if(!o||o.isDestroyed||!e.focus?.match)return;let t,n=0,r=requestAnimationFrame(()=>{if(o.isDestroyed)return;let r=Array.from(o.view.dom.querySelectorAll(`p,h1,h2,h3`)),i=r[pt(r.map(e=>e.textContent??``),e.focus.match)];if(!i)return;i.scrollIntoView({block:`center`});let a=document.createRange();a.selectNodeContents(i),t=new Highlight(a),CSS.highlights.set(`citation-target`,t),n=window.setTimeout(()=>CSS.highlights.delete(`citation-target`),2400)});return()=>{cancelAnimationFrame(r),clearTimeout(n),CSS.highlights.get(`citation-target`)===t&&CSS.highlights.delete(`citation-target`)}},[o,e.focus?.seq]),(0,H.useEffect)(()=>{o&&!o.isDestroyed&&o.setEditable(e.editable??!0,!1)},[o,e.editable]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`summary-surface`,"data-streaming":!!e.streaming,children:[(0,G.jsxs)(`svg`,{className:`summary-ink-layer`,"aria-hidden":`true`,children:[(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:t,x:`-30%`,y:`-80%`,width:`160%`,height:`260%`,colorInterpolationFilters:`sRGB`,children:[(0,G.jsx)(`feGaussianBlur`,{stdDeviation:`.9`}),(0,G.jsx)(`feColorMatrix`,{values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})}),(0,G.jsx)(`g`,{className:`summary-wash`})]}),(0,G.jsx)(Ej,{editor:o}),(0,G.jsx)(`i`,{className:`summary-heading-bar`,"aria-hidden":`true`,hidden:!0})]}),o&&e.editable!==!1&&!e.streaming&&(0,G.jsx)(vie,{editor:o})]})}var $R={};function ez(e,t){let n=H.useRef($R);return n.current===$R&&(n.current=e(t)),n}var tz=[],nz=void 0;function Sie(){return nz}function Cie(e){tz.push(e)}function rz(e){let t=(t,n)=>{let r=ez(wie).current,i;try{nz=r;for(let e of tz)e.before(r);i=e(t,n);for(let e of tz)e.after(r);r.didInitialize=!0}finally{nz=void 0}return i};return t.displayName=e.displayName||e.name,t}function iz(e){return H.forwardRef(rz(e))}function wie(){return{didInitialize:!1}}function az(){}var oz=Object.freeze([]),sz=Object.freeze({});function cz(e){H.useEffect(e,oz)}var lz=0,uz=class e{static create(){return new e}currentId=lz;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=lz,t()},e)}isStarted(){return this.currentId!==lz}clear=()=>{this.currentId!==lz&&(clearTimeout(this.currentId),this.currentId=lz)};disposeEffect=()=>this.clear};function dz(){let e=ez(uz.create).current;return cz(e.disposeEffect),e}var Y=typeof document<`u`?H.useLayoutEffect:()=>{};function Tie(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Eie,platform:Die,maxTouchPoints:Oie}=Tie(),fz=Eie.toLowerCase(),pz=Die.toLowerCase(),mz=/^i(os$|p)/.test(pz)||pz===`macintel`&&Oie>1,hz=`android`,gz=pz===hz||fz.includes(hz),_z=!mz&&pz.startsWith(`mac`);pz.startsWith(`win`),!gz&&/^(linux|chrome os)/.test(pz);var kie=_z||mz,vz=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!vz&&fz.includes(`firefox`),!vz&&fz.includes(`chrom`);var Aie=kie,yz=/jsdom|happydom/.test(fz);function bz(e){e.preventDefault(),e.stopPropagation()}function jie(e){return`nativeEvent`in e}function xz(e){return e.pointerType===``&&e.isTrusted?!0:gz&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Sz(e){return yz?!1:!gz&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(gz||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Cz(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Mie(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function wz(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Tz(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&mL(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ez(e,t){let n=e;for(;n;){if(fL(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(mL(n)?n.host:null)}return null}function Dz(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var Nie=`data-base-ui-focusable`,Pie=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,Oz=`ArrowLeft`,kz=`ArrowRight`,Fie=`ArrowUp`,Iie=`ArrowDown`,Az=`data-starting-style`,Lie=`data-ending-style`,Rie={[Az]:``},zie={[Lie]:``},jz={transitionStatus(e){return e===`starting`?Rie:e===`ending`?zie:null}},Bie=`data-open`,Vie=`data-closed`,Hie=`data-anchor-hidden`,Mz=`data-popup-open`,Uie=`data-pressed`,Wie={[Mz]:``},Gie={[Mz]:``,[Uie]:``},Kie={[Bie]:``},qie={[Vie]:``},Jie={[Hie]:``},Nz={open(e){return e?Wie:null}},Pz={open(e){return e?Gie:null}},Fz={open(e){return e?Kie:qie},anchorHidden(e){return e?Jie:null}},Iz={...Fz,...jz},Lz=`data-trigger-disabled`;function Rz(e,t){if(!fL(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(Lz);for(let[,e]of t.entries())if(Tz(e,n))return!e.hasAttribute(Lz);return!1}function zz(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Yie(e){return e.matches(`html,body`)}function Bz(e){return pL(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Xie(e){return Ez(e,`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${Pie}`)!=null}function Vz(e){return e?e.getAttribute(`role`)===`combobox`&&Bz(e):!1}function Hz(e){if(!e||yz)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Uz(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Zie(e,t){return t!=null&&!Cz(t)?0:typeof e==`function`?e():e}function Wz(e,t,n){let r=Zie(e,n);return typeof r==`number`?r:r?.[t]}function Gz(e){return typeof e==`function`?e():e}function Kz(e,t){return t||e===`click`||e===`mousedown`}function Qie(e){return e?.includes(`mouse`)&&e!==`mousedown`}function qz(e,t,n,r){let i=!1,a=!1,o=r??sz;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function $ie(e,t,n){let r=n??sz;return{reason:e,event:t??new Event(`base-ui`),...r}}var Jz=`none`,Yz=`trigger-press`,Xz=`trigger-hover`,Zz=`trigger-focus`,eae=`outside-press`,tae=`item-press`,nae=`close-press`,Qz=`focus-out`,rae=`escape-key`,$z=`list-navigation`,eB=`keyboard`,iae=`pointer`,aae=`cancel-open`,tB=`sibling-open`,oae=`disabled`,nB=`imperative-action`,sae=H.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new uz,currentIdRef:{current:null},currentContextRef:{current:null}});function cae(e,t){e.current=t.current}function lae(e,t={open:!1}){let{open:n}=t,r=e.useState(`floatingId`),{currentIdRef:i,delayRef:a,timeoutMs:o,initialDelayRef:s,currentContextRef:c,hasProvider:l,timeout:u}=H.useContext(sae),[d,f]=H.useState(!1),p=H.useRef(n);return Y(()=>{p.current=n},[n]),Y(()=>{function t(){c.current?.setIsInstantPhase(!1),i.current=null,c.current=null,a.current=s.current,u.clear()}if(i.current&&!n&&i.current===r){if(f(!1),o){let n=r;return u.start(o,()=>{e.select(`open`)||i.current&&i.current!==n||t()}),()=>{(p.current||i.current!==n)&&u.clear()}}t()}},[n,r,i,a,o,s,c,u,e]),Y(()=>{if(!n)return;let t=c.current,o=i.current;u.clear(),c.current={onOpenChange:e.setOpen,setIsInstantPhase:f},i.current=r,a.current={open:0,close:Wz(s.current,`close`)},o!==null&&o!==r?(f(!0),t?.setIsInstantPhase(!0),t?.onOpenChange(!1,qz(Jz))):(f(!1),t?.setIsInstantPhase(!1))},[n,r,e,i,a,s,c,u]),Y(()=>()=>{if(i.current===r){if(c.current=null,!p.current)return;i.current=null,cae(a,s),u.clear()}},[c,i,a,r,s,u]),H.useMemo(()=>({activeIdRef:i,hasProvider:l,delayRef:a,isInstantPhase:d}),[i,l,a,d])}function rB(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function iB(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function aB(e,t,n,r){let i=ez(oB).current;return dae(i,e,t,n,r)&&sB(i,[e,t,n,r]),i.callback}function uae(e){let t=ez(oB).current;return fae(t,e)&&sB(t,e),t.callback}function oB(){return{callback:null,cleanup:null,refs:[]}}function dae(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function fae(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function sB(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function cB(e){let t=ez(pae,e).current;return t.next=e,Y(t.effect),t}function pae(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var lB={...H},uB=lB.useInsertionEffect,mae=uB&&uB!==lB.useLayoutEffect?uB:e=>e();function dB(e){let t=ez(hae).current;return t.next=e,mae(t.effect),t.trampoline}function hae(){let e={next:void 0,callback:gae,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function gae(){}var fB=null;globalThis.requestAnimationFrame;var pB=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},mB=class e{static create(){return new e}static request(e){return pB.request(e)}static cancel(e){return pB.cancel(e)}currentId=fB;request(e){this.cancel(),this.currentId=pB.request(()=>{this.currentId=fB,e()})}cancel=()=>{this.currentId!==fB&&(pB.cancel(this.currentId),this.currentId=fB)};disposeEffect=()=>this.cancel};function hB(){let e=ez(mB.create).current;return cz(e.disposeEffect),e}function gB(e){return e?.ownerDocument||document}var _B={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},vB={..._B,position:`fixed`,margin:0,top:0,left:0};({..._B});var yB=H.forwardRef(function(e,t){let[n,r]=H.useState();Y(()=>{Aie&&vz&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:vB,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function bB(e,t){return t<0||t>=e.length}function xB(e,t){return CB(e.current,{disabledIndices:t})}function SB(e,t){return CB(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function _ae(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>CB(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:bB(e,u)?-1:u,wrapped:d}}function CB(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&wB(e,a,r));return a}function wB(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!TB(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function vae(e){return e.visibility===`hidden`||e.visibility===`collapse`}function TB(e,t=e?EL(e):null){return!e||!e.isConnected||!t||vae(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var yae=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function bae(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return mL(n)?n.host:null}function EB(e){for(let t of Array.from(e.children))if(cL(t)===`summary`)return t;return null}function xae(e,t){let n=EB(t);return!!n&&(e===n||Tz(n,e))}function DB(e){let t=e?cL(e):``;return e!=null&&e.matches(yae)&&(t!==`summary`||e.parentElement!=null&&cL(e.parentElement)===`details`&&EB(e.parentElement)===e)&&(t!==`details`||EB(e)==null)&&(t!==`input`||e.type!==`hidden`)}function OB(e){if(!DB(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=bae(t)){let n=t!==e,r=cL(t)===`slot`;if(t.hasAttribute(`inert`)||n&&cL(t)===`details`&&!t.open&&!xae(e,t)||t.hasAttribute(`hidden`)||!r&&!Sae(t,n))return!1}return!0}function Sae(e,t){let n=EL(e);return t?n.display!==`none`:TB(e,n)}function kB(e){let t=e.tabIndex;if(t<0){let t=cL(e);if(t===`details`||t===`audio`||t===`video`||pL(e)&&e.isContentEditable)return 0}return t}function AB(e){if(cL(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function jB(e,t){let n=AB(e);if(!n)return!0;let r=t.find(e=>{let t=AB(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=AB(e);return t?.name===n.name&&t.form===n.form})===n}function MB(e){if(pL(e)&&cL(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return pL(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function NB(e,t){MB(e).forEach(e=>{DB(e)&&t.push(e),NB(e,t)})}function PB(e,t,n){MB(e).forEach(e=>{pL(e)&&e.matches(t)&&n.push(e),PB(e,t,n)})}function FB(e){return OB(e)&&kB(e)>=0}function IB(e){let t=[];return NB(e,t),t.filter(OB)}function LB(e){let t=IB(e);return t.filter(e=>kB(e)>=0&&jB(e,t))}function RB(e,t){let n=LB(e),r=n.length;if(r===0)return;let i=wz(gB(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function zB(e){return RB(gB(e).body,1)||e}function BB(e){return RB(gB(e).body,-1)||e}function Cae(e,t,n){if(!e)return null;let r=[];NB(gB(e).body,r);let i=r.indexOf(e);if(i===-1)return null;let a=r.filter(OB);for(let e=1;e<r.length;e+=1){let o=r[(i+t*e+r.length)%r.length];if(!Tz(n,o)&&FB(o)&&jB(o,a))return o}return r[i]}function VB(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Tz(n,r)}function wae(e){LB(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function HB(e){let t=[];PB(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function UB(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...UB(e,t.id,n)])}function WB(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function GB(e){return`data-base-ui-${e}`}var KB=0;function qB(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(KB);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),az;let o=requestAnimationFrame(a);return KB=o,()=>{KB===o&&(cancelAnimationFrame(o),KB=0)}}var JB=`data-base-ui-inert`,YB=new WeakMap,XB=new WeakSet,ZB=new WeakMap,QB=0;function $B(e){return e?mL(e)?e.host:$B(e.parentNode):null}var eV=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=$B(t);return e.contains(n)?n:null}).filter(e=>e!=null),tV=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},nV=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{cL(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function rV(e,t,n,{mark:r=!0}){let i=eV(t,e),a=r?nV(t,tV(i),new Set(i)):[],o=[],s=[];if(n){let e=eV(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);nV(t,tV(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(YB.get(e)||0)+1;YB.set(e,r),o.push(e),r===1&&n&&XB.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(ZB.get(e)||0)+1;ZB.set(e,t),s.push(e),t===1&&e.setAttribute(JB,``)}),QB+=1,()=>{o.forEach(e=>{let t=(YB.get(e)||0)-1;YB.set(e,t),t||(XB.has(e)||e.removeAttribute(`aria-hidden`),XB.delete(e))}),r&&s.forEach(e=>{let t=(ZB.get(e)||0)-1;ZB.set(e,t),t||e.removeAttribute(JB)}),--QB,QB||(YB=new WeakMap,XB=new WeakSet,ZB=new WeakMap)}}function iV(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=gB(e[0]).body;return rV(e,i,n,{mark:r})}function aV(){let[,e]=H.useState({});return H.useCallback(()=>{e({})},[])}var oV=0;function sV(e,t=`mui`){let n=H.useRef(void 0),r=aV(),i=e??n.current;return H.useEffect(()=>{n.current??(oV+=1,n.current=`${t}-${oV}`,e??r())},[e,t,r]),i}var cV=lB.useId;function lV(e,t){if(cV!==void 0){let n=cV();return e??(t?`${t}-${n}`:n)}return sV(e,t)}var uV=19;function dV(e){return uV>=e}function fV(e){if(!H.isValidElement(e))return null;let t=e,n=t.props;return(dV(19)?n?.ref:t.ref)??null}function pV(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function mV(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function hV(e,t){return typeof e==`function`?e(t):e}function gV(e,t){return typeof e==`function`?e(t):e}var _V={};function vV(e,t,n,r,i){if(!n&&!r&&!i&&!e)return bV(t);let a=bV(e);return t&&(a=xV(a,t)),n&&(a=xV(a,n)),r&&(a=xV(a,r)),i&&(a=xV(a,i)),a}function yV(e){if(e.length===0)return _V;if(e.length===1)return bV(e[0]);let t=bV(e[0]);for(let n=1;n<e.length;n+=1)t=xV(t,e[n]);return t}function bV(e){return TV(e)?{...e(_V)}:SV(e)}function xV(e,t){return TV(t)?t(e):CV(e,t)}function SV(e){let t={...e};for(let e in t){let n=t[e];wV(e,n)&&(t[e]=DV(n))}return t}function CV(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=pV(e.style,r);break;case`className`:e[n]=kV(e.className,r);break;default:e[n]=wV(n,r)?EV(e[n],r):r}}return e}function wV(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function TV(e){return typeof e==`function`}function EV(e,t){return t?e?(...n)=>{let r=n[0];if(AV(r)){let i=r;OV(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:DV(t):e}function DV(e){return e&&((...t)=>{let n=t[0];return AV(n)&&OV(n),e(...t)})}function OV(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function kV(e,t){return t?e?t+` `+e:t:e}function AV(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function jV(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=FV(r));let i=MV(t,n,r);if(n.enabled===!1)return null;let a=n.state??sz;return IV(e,r,i,a)}function MV(e,t,n){let{className:r,style:i}=e,{state:a=sz,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?hV(r,a):void 0,d=l?gV(i,a):void 0,f=l?mV(a,c):sz,p=l&&s?NV(s):void 0,m=l?pV(f,p)??{}:sz;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?uae([m.ref,fV(n),...o]):aB(m.ref,fV(n),o):aB(null,null)),l?(u!==void 0&&(m.className=kV(m.className,u)),d!==void 0&&(m.style=pV(m.style,d)),m):sz}function NV(e){return Array.isArray(e)?yV(e):vV(void 0,e)}var PV=Symbol.for(`react.lazy`);function FV(e){if(e?.$$typeof!==PV)return e;let t=H.Children.toArray(e)[0];return H.isValidElement(t)?t:e}function IV(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=vV(n,t.props);return e.ref=n.ref,H.cloneElement(t,e)}return LV(e,n)}function LV(e,t){return e===`button`?(0,H.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,H.createElement)(`img`,{alt:``,...t,key:t.key}):H.createElement(e,t)}var RV={style:{transition:`none`}},zV=`data-base-ui-click-trigger`,BV=`data-base-ui-swipe-ignore`,VV=`data-swipe-ignore`,HV=`[${BV}]`,UV=`[${VV}]`,WV={fallbackAxisSide:`none`},GV={fallbackAxisSide:`end`},KV={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},qV=H.createContext(null),JV=()=>H.useContext(qV),YV=GB(`portal`);function XV(e={}){let{ref:t,container:n,componentProps:r=sz,elementProps:i}=e,a=lV(),o=JV()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=dB(e=>{e!==null&&u(e)}),f=H.useRef(null);Y(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(dL(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=jV(`div`,r,{ref:[t,d],props:[{id:a,[YV]:``},i]}),m=s&&p?Oe.createPortal(p,s):null;return{node:l,nodeId:H.isValidElement(p)?p.props.id:void 0,subtree:m}}var ZV=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=XV({container:o,ref:t,componentProps:e,elementProps:c}),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),h=H.useRef(null),[g,_]=H.useState(null),v=H.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;H.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&VB(e)&&(e.type===`focusin`?v.current&&=(HB(l),!1):(wae(l),v.current=!0))}return iB(rB(l,`focusin`,e,!0),rB(l,`focusout`,e,!0))},[l,y]),Y(()=>{l&&b===!0&&v.current&&(HB(l),v.current=!1)},[b,l]);let S=H.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,G.jsxs)(H.Fragment,{children:[d,(0,G.jsxs)(qV.Provider,{value:S,children:[x&&l&&(0,G.jsx)(yB,{"data-type":`outside`,ref:f,onFocus:e=>{VB(e,l)?m.current?.focus():BB(g?g.domReference:null)?.focus()}}),x&&l&&(0,G.jsx)(`span`,{role:s,"aria-owns":u,style:KV}),l&&Oe.createPortal(a,l),x&&l&&(0,G.jsx)(yB,{"data-type":`outside`,ref:p,onFocus:e=>{VB(e,l)?h.current?.focus():(zB(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,qz(`focus-out`,e.nativeEvent)))}})]})]})});function QV(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var $V=class{nodesRef={current:[]};events=QV();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},eH=H.createContext(null),tH=H.createContext(null),nH=()=>H.useContext(eH)?.id||null,rH=e=>{let t=H.useContext(tH);return e??t};function iH(e){let t=lV(),n=rH(e),r=nH();return Y(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function aH(e){let{children:t,id:n}=e,r=nH();return(0,G.jsx)(eH.Provider,{value:H.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function oH(e){let{children:t,externalTree:n}=e,r=ez(()=>n??new $V).current;return(0,G.jsx)(tH.Provider,{value:r,children:t})}function sH(e){return e==null?e:`current`in e?e.current:e}function cH(e,t){let n=lL(Dz(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(xz(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var lH=20,uH=[];function dH(){uH=uH.filter(e=>e.deref()?.isConnected)}function fH(e){dH(),e&&cL(e)!==`body`&&(uH.push(new WeakRef(e)),uH.length>lH&&(uH=uH.slice(-20)))}function pH(){return dH(),uH[uH.length-1]?.deref()}function mH(e){return e?FB(e)?e:LB(e)[0]||e:null}function hH(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=IB(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return FB(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function gH(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=dB(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Vz(_)&&S,w=cB(i),T=cB(a),E=cB(o),D=cB(u),O=cB(g),k=rH(m),A=JV(),j=H.useRef(!1),M=H.useRef(!1),N=H.useRef(!1),P=H.useRef(null),F=H.useRef(``),I=H.useRef(``),L=H.useRef(null),R=H.useRef(null),ee=aB(L,p,A?.beforeInsideRef),z=aB(R,A?.afterInsideRef),te=dz(),ne=dz(),re=hB(),ie=A!=null,B=Uz(v),ae=dB((e=B)=>e?LB(e):[]),oe=dB(()=>h?.().filter(e=>e!=null)??[]);H.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&Tz(B,wz(gB(B)))&&ae().length===0&&!C&&bz(e)}return rB(gB(B),`keydown`,e)},[r,B,c,C,ae]),H.useEffect(()=>{if(r||!g)return;let e=gB(B);function t(){N.current=!1}function n(e){let t=Dz(e),n=oe(),r=Tz(v,t)||Tz(_,t)||Tz(A?.portalNode,t)||n.some(e=>e===t||Tz(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,Ez(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,ne.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return iB(rB(e,`pointerdown`,n,!0),rB(e,`pointerup`,t,!0),rB(e,`pointercancel`,t,!0),rB(e,`keydown`,i,!0),t)},[r,v,_,B,g,A,ne,oe]),H.useEffect(()=>{if(r||!l)return;let e=gB(B);function n(){M.current=!0,ne.start(0,()=>{M.current=!1})}function i(e){let t=Dz(e);FB(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=Dz(n);c&&r==null&&a!=null&&Tz(v,a)&&fH(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=oe(),p=r?.hasAttribute(GB(`focus-guard`))&&[L.current,R.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,sH(f),sH(d)].includes(r),m=!(Tz(_,r)||Tz(v,r)||Tz(r,v)||Tz(A?.portalNode,r)||u.some(e=>e===r||Tz(e,r))||l.hasMatchingElement(e=>Tz(e,r))||p||k&&(UB(k.nodesRef.current,o).find(e=>Tz(e.context?.elements.floating,r)||Tz(e.context?.elements.domReference,r))||WB(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Uz(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&B&&hH(B),s&&i!==_&&!TB(a)&&wz(e)===e.body){if(pL(B)&&(B.focus(),s===`popup`)){re.request(()=>{B.focus()});return}let e=ae(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;pL(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==pH())&&(j.current=!0,t.setOpen(!1,qz(Qz,n)))})}function o(){N.current||(b.current.insideReactTree=!0,te.start(0,()=>{b.current.insideReactTree=!1}))}let u=pL(_)?_:null;if(v||u)return iB(u&&rB(u,`focusout`,a),u&&rB(u,`pointerdown`,n),v&&rB(v,`focusin`,i),v&&rB(v,`focusout`,a),v&&A&&rB(v,`focusout`,o,!0))},[r,_,v,B,c,k,A,t,l,s,ae,C,x,b,te,ne,re,d,f,oe]),H.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${GB(`portal`)}]`)||[]),t=(k?WB(k.nodesRef.current,x()):[]).find(e=>Vz(e.context?.elements.domReference||null))?.context?.elements.domReference,n=iV([v,...e,L.current,R.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...oe(),t,sH(f),sH(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=iV([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,oe]),Y(()=>{if(!g||r||!pL(B))return;F.current=``,I.current=``;let e=gB(B),t=wz(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||Tz(B,t))return;let i=null,a=()=>(i??=ae(B),i[0]||B),o;o=r===!0||r===null?a():sH(r),o||=a();let s=Tz(B,wz(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&xz(c);qB(o,{sync:l,preventScroll:o===B,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=wz(e);return!(t!==o&&Tz(B,t))}})})},[r,g,B,ae,w,D,O,b]);let V=H.useRef(null);Y(()=>{if(r||!B){V.current=null;return}V.current&&=(V.current.cancelled=!0,null);let e=gB(B),t=wz(e),n=D.current==null;fH(t);function i(e){if(e.open||(F.current=cH(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(GB(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(xz(e.nativeEvent)||Sz(e.nativeEvent))j.current=!1;else{let e=!1;gB(B).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&cL(t)!==`body`?t:null,s=n?o||a:a||o;return s||=pH()||null,typeof i==`boolean`?s:sH(i)||s||null}return()=>{y.off(`openchange`,i);let t=wz(e),n=oe(),r=Tz(v,t)||n.some(e=>e===t||Tz(e,t))||k&&UB(k.nodesRef.current,x(),!1).some(e=>Tz(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};V.current=l,queueMicrotask(()=>{V.current===l&&(V.current=null);let n=mH(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&pL(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,B,T,E,D,y,k,_,x,oe]),Y(()=>{if(!vz||g||!v)return;let e=wz(gB(v));pL(e)&&Bz(e)&&Tz(v,e)&&e.blur()},[g,v]),Y(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),Y(()=>{if(!r&&B)return hH(B),()=>{queueMicrotask(dH)}},[r,B]);let se=!r&&(!c||!C)&&(ie||c);return(0,G.jsxs)(H.Fragment,{children:[se&&(0,G.jsx)(yB,{"data-type":`inside`,ref:ee,onFocus:e=>{if(c){let e=ae();qB(e[e.length-1])}else A?.portalNode&&(j.current=!1,VB(e,A.portalNode)?zB(_)?.focus():sH(f??A.beforeOutsideRef)?.focus())}}),n,se&&(0,G.jsx)(yB,{"data-type":`inside`,ref:z,onFocus:e=>{c?qB(ae()[0]):A?.portalNode&&(l&&(j.current=!0),VB(e,A.portalNode)?BB(_)?.focus():sH(d??A.afterOutsideRef)?.focus())}})]})}function _H(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Yz}=t,l=e.context.dataRef,u=H.useRef(void 0),d=hB(),f=dz(),p=H.useMemo(()=>{function t(t,n,r,i){let a=qz(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=Cz(e.pointerType,!0)&&Sz(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||Cz(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=Dz(s),p=Bz(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:Cz(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return H.useMemo(()=>n?{reference:p}:sz,[n,p])}function vH(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,(!i||c)&&(d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function yH(e){return e!=null&&e.clientX!=null}function bH(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=e.useState(`open`),a=e.useState(`floatingElement`),o=e.useState(`domReferenceElement`),s=e.context.dataRef,c=H.useRef(!1),l=H.useRef(null),[u,d]=H.useState(),[f,p]=H.useState([]),m=dB(t=>{e.set(`positionReference`,t)}),h=dB((t,n,i)=>{c.current||(!s.current.openEvent||yH(s.current.openEvent))&&e.set(`positionReference`,vH(i??o,{x:t,y:n,axis:r,dataRef:s,pointerType:u}))}),g=dB(e=>{i?l.current||(h(e.clientX,e.clientY,e.currentTarget),p([])):h(e.clientX,e.clientY,e.currentTarget)}),_=Cz(u)?a:i;H.useEffect(()=>{if(!n){m(o);return}if(!_)return;function e(){l.current?.(),l.current=null}let t=lL(a);function r(t){let n=Dz(t);Tz(a,n)?e():h(t.clientX,t.clientY)}return!s.current.openEvent||yH(s.current.openEvent)?l.current=rB(t,`mousemove`,r):m(o),e},[_,n,a,s,o,e,h,m,f]),H.useEffect(()=>()=>{e.set(`positionReference`,null)},[e]),H.useEffect(()=>{n&&!a&&(c.current=!1)},[n,a]),H.useEffect(()=>{!n&&i&&(c.current=!0)},[n,i]);let v=H.useMemo(()=>{function e(e){d(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:g,onMouseEnter:g}},[g]);return H.useMemo(()=>n?{reference:v,trigger:v}:{},[n,v])}function xH(){return!1}function SH(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function CH(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=xH,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=rH(c),m=dB(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=dB(()=>a),{escapeKey:v,outsidePress:y}=SH(s),b=H.useRef(!1),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(!1),T=H.useRef(``),E=H.useRef(null),D=dz(),O=dz(),k=dz(),A=dB(()=>{O.clear(),d.current.insideReactTree=!1}),j=dB(e=>{let t=d.current.floatingContext?.nodeId;return(p?UB(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=dB(t=>zz(t,e.select(`floatingElement`))||zz(t,e.select(`domReferenceElement`))),N=dB(t=>{o()&&e.setOpen(!1,qz(Yz,t.nativeEvent))}),P=dB(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=jie(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=qz(rae,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=dB(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=dB(t=>{if(!l||!n||t.button!==0)return;let r=Dz(t.nativeEvent);Tz(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),L=dB(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});H.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),H.useEffect(()=>A,[A]),H.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new uz,i=gB(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(vz?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&UB(p.nodesRef.current,t).some(t=>zz(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=Dz(n),i=`[${GB(`inert`)}]`,a=fL(r)?r.getRootNode():null,o=Array.from((mL(a)?a:gB(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>Tz(e,r))))return;let c=fL(r)?r:null;for(;c&&!TL(c);){let e=OL(c);if(TL(e)||!fL(e))break;c=e}if(!(o.length&&fL(r)&&!Yie(r)&&!Tz(r,e.select(`floatingElement`))&&o.every(e=>!Tz(c,e)))){if(pL(r)&&!(`touches`in n)){let e=TL(r),t=EL(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!xz(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}typeof h==`function`&&!h(n)||j(`__outsidePressBubbles`)||(e.setOpen(!1,qz(eae,n)),A())}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function L(e,t){let n=Dz(e);if(!n)return;let r=rB(n,e.type,()=>{t(e),r()})}function R(e){T.current=`touch`,L(e,I)}function ee(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&L(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function z(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function te(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function ne(e){L(e,te)}function re(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ie(e){L(e,re)}let B=iB(r&&iB(rB(i,`keydown`,P),rB(i,`compositionstart`,a),rB(i,`compositionend`,o)),g&&iB(rB(i,`click`,ee,!0),rB(i,`pointerdown`,ee,!0),rB(i,`pointerup`,z,!0),rB(i,`pointercancel`,z,!0),rB(i,`mousedown`,ee,!0),rB(i,`mouseup`,z,!0),rB(i,`touchstart`,R,{capture:!0,passive:!0}),rB(i,`touchmove`,ne,{capture:!0,passive:!0}),rB(i,`touchend`,ie,{capture:!0,passive:!0})));return()=>{B(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let R=H.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),ee=H.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return H.useMemo(()=>n?{reference:R,floating:ee,trigger:R}:{},[n,R,ee])}function wH(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var TH=wH(`https://base-ui.com/production-error`,`Base UI`),EH=class{attachedStores=[];attachedStoreValue=null;storeListeners=new Set;constructor(e,t,n=!0){this.fallbackStore=e,this.componentName=t,this.throwOnMissingTrigger=n}get attachedStore(){return this.attachedStoreValue}get store(){return this.attachedStoreValue??this.fallbackStore}get serverStore(){return this.fallbackStore}subscribeStore(e){return this.storeListeners.add(e),()=>{this.storeListeners.delete(e)}}attachStore(e){return this.attachedStores.push(e),this.setActiveStore(e),()=>{let t=this.attachedStores.lastIndexOf(e);t!==-1&&this.attachedStores.splice(t,1),this.setActiveStore(this.attachedStores[this.attachedStores.length-1]??null)}}setActiveStore(e){this.attachedStoreValue!==e&&(this.attachedStoreValue=e,this.storeListeners.forEach(e=>{e()}))}openByTrigger(e){let t=this.attachedStore;if(t===null)return;let n;if(e){for(let t=this.attachedStores.length-1;t>=0&&!n;--t)n=this.attachedStores[t].context.triggerElements.getById(e);n??=this.fallbackStore.context.triggerElements.getById(e)}if(e&&!n&&this.throwOnMissingTrigger)throw Error(TH(99,this.componentName,e,this.componentName));t.setOpen(!0,qz(nB,void 0,n))}closePopup(){let e=this.attachedStore;e!==null&&e.setOpen(!1,qz(nB))}};function DH(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=o;return t.useSyncedValue(`floatingId`,i),Y(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};fL(c)&&(e.domReferenceElement=c),r.state.positionReference===r.state.referenceElement&&(e.positionReference=c),r.update(e)},[s,i,c,l,r]),r.context.onOpenChange=u,r.context.nested=a,r}function OH(e,t=!1,n=!1,r=!1){let[i,a]=H.useState(e&&t?`idle`:void 0),[o,s]=H.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),Y(()=>{if(!e&&o&&i!==`ending`&&n){let e=mB.request(()=>{a(`ending`)});return()=>{mB.cancel(e)}}},[e,o,i,n]),Y(()=>{if(!e||t||i===void 0)return;let n=mB.request(()=>{a(void 0)});return()=>{mB.cancel(n)}},[t,e,i]),Y(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=mB.request(()=>{a(`idle`)});return()=>{mB.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function kH(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var AH=null;function jH(e){if(!AH){let e=[];AH=e,queueMicrotask(()=>{AH=null,Oe.flushSync(()=>{for(let t of e)t()})})}AH.push(e)}function MH(e,t=!1,n=!1){let r=hB();return dB((i,a=null)=>{r.cancel();let o=sH(e);if(o==null)return;let s=o,c=()=>{n?jH(()=>{a?.aborted||i()}):Oe.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(kH(s).map(e=>e.finished.then(az))).then(()=>{a?.aborted||c()},()=>{a?.aborted||(kH(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Az;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function NH(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=dB(a),s=MH(r,n,i);H.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function PH(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=dB(i),{mounted:c,setMounted:l,transitionStatus:u}=OH(t,!1,!1,o),d=!t&&r;Y(()=>{t&&s(!1)},[t,s]);let f=H.useRef(c),p=H.useRef(!1),m=aV(),h=()=>{f.current=!1,l(!1),a()};Y(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=dB(()=>{f.current&&(t?(p.current=!0,m()):h())});return NH({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var FH={tabIndex:-1,[Nie]:``};function IH(e){return t=>t!==`touch`||e.current}function LH(e,t=!1){let n=lV(),r=nH()!=null,i=ez(()=>e(n,r)).current;return DH({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function RH({handle:e,store:t}){return Y(()=>e.attachStore(t),[e,t]),null}function zH(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function BH(e,t){let n=H.useRef(null);return dB(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),zH(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),zH(t))})}function VH(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s,openedWithoutTrigger:t?n==null:e.openedWithoutTrigger}}function HH(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function UH(e,t,n,r={}){let i=n.reason,a=i===Xz,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=HH(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=VH(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Oe.flushSync(l):l()}function WH(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=BH(e,n),o=dB(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i&&!n.state.openedWithoutTrigger){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=dB(e=>{a(e),e&&o(e)});return Y(()=>(s(t.current),()=>s(null)),[s,t,n,e]),Y(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function GH(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=H.useRef(null),i=e.useState(`open`);Y(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0),e.state.openedWithoutTrigger&&e.set(`openedWithoutTrigger`,!1);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&!e.state.openedWithoutTrigger&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=qz(Jz);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function KH(e,t,n,r){let{mounted:i,transitionStatus:a,forceUnmount:o}=PH({open:e,ref:t.context.popupRef,preventUnmountOnClose:t.useState(`preventUnmountingOnClose`),setPreventUnmountOnClose:e=>t.set(`preventUnmountingOnClose`,e),animateInitialOpen:r,onUnmount(){t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}});return ez(()=>(t.set(`mounted`,i),null)),t.useSyncedValues({mounted:i,transitionStatus:a}),{forceUnmount:o,transitionStatus:a}}function qH(e,t){e.useSyncedValues(t),Y(()=>()=>{e.update({activeTriggerProps:sz,inactiveTriggerProps:sz,popupProps:sz})},[e])}function JH(e,t){Y(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),Y(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var YH=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},XH=dV(19)?$H:eU;function ZH(e,t,n,r,i){return XH(e,t,n,r,i)}function QH(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,eS.useSyncExternalStore)(e.subscribe,a,a)}Cie({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,eS.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function $H(e,t,n,r,i){let a=Sie();if(!a)return QH(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],s.store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,i)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function eU(e,t,n,r,i){return(0,Cj.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var tU=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return ZH(this,e,t,n,r)}},nU=class extends tU{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;Y(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;Y(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;Y(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;Y(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),ZH(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=dB(t??az);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},rU={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},iU=class extends nU{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:QV(),nested:n,triggerElements:i},rU),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Mie(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function aU(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new iU({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,openedWithoutTrigger:!1,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:sz,inactiveTriggerProps:sz,popupProps:sz}}var oU=e=>e.triggerIdProp??e.activeTriggerId,sU=e=>e.openProp??e.open,cU=e=>(e.popupElement?.id??e.floatingId)||void 0;function lU(e,t){return t!==void 0&&sU(e)&&oU(e)===t}function uU(e,t){return lU(e,t)?!0:t!==void 0&&sU(e)&&oU(e)==null&&!e.openedWithoutTrigger&&e.triggerCount===1}var dU={open:sU,mounted:e=>e.mounted,transitionStatus:e=>sU(e)&&!e.mounted?`starting`:e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:oU,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:cU,isTriggerActive:(e,t)=>t!==void 0&&oU(e)===t,isOpenedByTrigger:(e,t)=>lU(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&oU(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>uU(e,t)?cU(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function fU(e){let t=H.useCallback(t=>e===void 0?az:e.subscribeStore(t),[e]),n=H.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,eS.useSyncExternalStore)(t,n,()=>e?.serverStore)}function pU(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=lV(),a=nH()!=null,o=ez(()=>new iU({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new YH,floatingId:i,syncOnly:!1,nested:a})).current;return Y(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=fL(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}var mU=_z&&vz;function hU(e,t={}){let{enabled:n=!0,delay:r}=t,{events:i,dataRef:a}=e.context,o=H.useRef(!1),s=H.useRef(null),c=H.useRef(!0),l=dz();H.useEffect(()=>{let t=e.select(`domReferenceElement`);if(!n)return;let r=lL(t);function i(){let t=e.select(`domReferenceElement`);!e.select(`open`)&&pL(t)&&t===wz(gB(t))&&(o.current=!0,s.current=t)}function a(){c.current=!0}function l(){c.current=!1}return iB(rB(r,`blur`,i),mU&&rB(r,`keydown`,a,!0),mU&&rB(r,`pointerdown`,l,!0))},[e,n]),H.useEffect(()=>{if(!n)return;function t(t){if(t.reason===`trigger-press`||t.reason===`escape-key`){let t=e.select(`domReferenceElement`);fL(t)&&(s.current=t,o.current=!0)}}return i.on(`openchange`,t),()=>{i.off(`openchange`,t)}},[i,n,e]);let u=H.useMemo(()=>{function t(){o.current=!1,s.current=null}return{onMouseLeave(){t()},onFocus(n){let i=n.currentTarget;if(o.current){if(s.current===i)return;t()}let a=Dz(n.nativeEvent);if(fL(a)){if(mU&&!n.relatedTarget){if(!c.current&&!Bz(a))return}else if(!Hz(a))return}let u=Rz(n.relatedTarget,e.context.triggerElements),{nativeEvent:d,currentTarget:f}=n;e.select(`open`)&&u||!r?e.setOpen(!0,qz(Zz,d,f)):l.start(r,()=>{o.current||e.setOpen(!0,qz(Zz,d,f))})},onBlur(n){t();let r=n.relatedTarget,i=n.nativeEvent,o=fL(r)&&r.hasAttribute(GB(`focus-guard`))&&r.getAttribute(`data-type`)===`outside`;l.start(0,()=>{let t=e.select(`domReferenceElement`),n=wz(gB(t));!r&&n===t||Tz(a.current.floatingContext?.refs.floating.current,n)||Tz(t,n)||o||Rz(r??n,e.context.triggerElements)||e.setOpen(!1,qz(Zz,i))})}}},[a,r,e,l]);return H.useMemo(()=>n?{reference:u,trigger:u}:{},[n,u])}var gU=class e{pointerType=void 0;interactedInside=!1;handler=void 0;blockMouseMove=!0;performedPointerEventsMutation=!1;pointerEventsScopeElement=null;pointerEventsReferenceElement=null;pointerEventsFloatingElement=null;restTimeoutPending=!1;openChangeTimeout=new uz;restTimeout=new uz;handleCloseOptions=void 0;static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},_U=new WeakMap;function vU(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&_U.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),_U.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function yU(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=_U.get(n);a&&a!==e&&vU(a),vU(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,_U.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function bU(e){let t=e.context.dataRef.current,n=ez(()=>t.hoverInteractionState??gU.create()).current;return t.hoverInteractionState||=n,cz(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function xU(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=e.useState(`open`),o=e.useState(`floatingElement`),s=e.useState(`domReferenceElement`),{dataRef:c}=e.context,l=rH(),u=nH(),d=bU(e),f=dz(),p=dB(()=>Kz(c.current.openEvent?.type,d.interactedInside)),m=dB(()=>Qie(c.current.openEvent?.type)),h=dB(()=>{vU(d)});Y(()=>{a||(d.pointerType=void 0,d.restTimeoutPending=!1,d.interactedInside=!1,h())},[a,d,h]),H.useEffect(()=>h,[h]),Y(()=>{if(n&&a&&d.handleCloseOptions?.blockPointerEvents&&m()&&fL(s)&&o){let e=s,t=o,n=gB(o),r=l?.nodesRef.current.find(e=>e.id===u)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=d.pointerEventsScopeElement===t?null:d.pointerEventsScopeElement,a=r===t?null:r,c=d.handleCloseOptions?.getScope?.()??i??a??Ez(e,`[data-rootownerid]`)??n.body;return yU(d,{scopeElement:c,referenceElement:e,floatingElement:t}),()=>{h()}}},[n,a,s,o,d,m,l,u,h]),H.useEffect(()=>{if(!n)return;function t(){return!!(l&&u&&UB(l.nodesRef.current,u).length>0)}function a(t){let n=Wz(r,`close`,d.pointerType),i=()=>{e.setOpen(!1,qz(Xz,t)),l?.events.emit(`floating.closed`,t)};n?d.openChangeTimeout.start(n,i):(d.openChangeTimeout.clear(),i())}function s(e){let t=Dz(e);Xie(t)?d.interactedInside=Ez(t,`[aria-haspopup]`)!=null:d.interactedInside=!1}function g(){d.openChangeTimeout.clear(),f.clear(),l?.events.off(`floating.closed`,v),h()}function _(n){if(t()&&l){l.events.on(`floating.closed`,v);return}if(Rz(n.relatedTarget,e.context.triggerElements))return;let r=c.current.floatingContext?.nodeId??i,o=n.relatedTarget;l&&r&&fL(o)&&UB(l.nodesRef.current,r,!1).some(e=>Tz(e.context?.elements.floating,o))||(d.handler?d.handler(n):(h(),m()&&!p()&&a(n)))}function v(n){l&&u&&!t()&&f.start(0,()=>{l.events.off(`floating.closed`,v),e.setOpen(!1,qz(Xz,n)),l.events.emit(`floating.closed`,n)})}let y=o;return iB(y&&rB(y,`mouseenter`,g),y&&rB(y,`mouseleave`,_),y&&rB(y,`pointerdown`,s,!0),()=>{l?.events.off(`floating.closed`,v)})},[n,o,e,c,r,i,m,p,h,d,l,u,f])}var SU={current:null};function CU(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=SU,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,{dataRef:h,events:g}=e.context,_=rH(l),v=bU(e),y=H.useRef(!1),b=cB(i),x=cB(r),S=cB(o),C=cB(n),w=cB(p),T=cB(f),E=dB(()=>Kz(h.current.openEvent?.type,v.interactedInside)),D=dB(()=>w.current?.()!==!1),O=dB((t,n,r)=>{let i=e.context.triggerElements;if(i.hasElement(n))return!t||!Tz(t,n);if(!fL(r))return!1;let a=r;return i.hasMatchingElement(e=>Tz(e,a))&&(!t||!Tz(t,a))}),k=dB(()=>{v.handler&&=(gB(e.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),A=dB(()=>{vU(v)});return u&&(v.handleCloseOptions=i?.__options),H.useEffect(()=>k,[k]),H.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===Xz,k(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,k]),H.useEffect(()=>{if(!n)return;function t(t,n=!0){let r=Wz(x.current,`close`,v.pointerType);r?v.openChangeTimeout.start(r,()=>{e.setOpen(!1,qz(Xz,t)),_?.events.emit(`floating.closed`,t)}):n&&(v.openChangeTimeout.clear(),e.setOpen(!1,qz(Xz,t)),_?.events.emit(`floating.closed`,t))}let r=c.current??(u?e.select(`domReferenceElement`):null);if(!fL(r))return;function i(t){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!Cz(v.pointerType))return;let n=Gz(S.current),r=Wz(x.current,`open`,v.pointerType),i=Dz(t),o=t.currentTarget??null,s=e.select(`domReferenceElement`),c=o;if(fL(i)&&!e.context.triggerElements.hasElement(i)){for(let t of e.context.triggerElements.elements())if(Tz(t,i)){c=t;break}}fL(o)&&fL(s)&&!e.context.triggerElements.hasElement(o)&&Tz(o,s)&&(c=s);let l=c!=null&&O(s,c,i),u=e.select(`open`),d=T.current?.()??e.select(`transitionStatus`)===`ending`,f=!u&&d&&y.current,p=!l&&fL(c)&&fL(s)&&Tz(s,c)&&f,m=n>0&&!r,h=l&&(u||f)||p,g=!u||l;h?D()&&e.setOpen(!0,qz(Xz,t,c)):m||(r?v.openChangeTimeout.start(r,()=>{g&&D()&&e.setOpen(!0,qz(Xz,t,c))}):g&&D()&&e.setOpen(!0,qz(Xz,t,c)))}function o(n){if(E()){A();return}k();let r=gB(e.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let i=h.current.floatingContext??d?.();if(!Rz(n.relatedTarget,e.context.triggerElements)){if(b.current&&i){e.select(`open`)||v.openChangeTimeout.clear();let a=c.current;v.handler=b.current({...i,tree:_,x:n.clientX,y:n.clientY,onClose(){A(),k(),C.current&&!E()&&a===e.select(`domReferenceElement`)&&t(n,!0)}}),r.addEventListener(`mousemove`,v.handler),v.handler(n)}else v.pointerType===`touch`&&Tz(e.select(`floatingElement`),n.relatedTarget)||t(n)}}function l(e){Tz(r,e.relatedTarget)||(v.openChangeTimeout.clear(),v.restTimeout.clear(),v.restTimeoutPending=!1)}let f=m?rB(r,`mouseout`,l):void 0;return s?iB(rB(r,`mousemove`,i,{once:!0}),rB(r,`mouseenter`,i),rB(r,`mouseleave`,o),f):iB(rB(r,`mouseenter`,i),rB(r,`mouseleave`,o),f)},[k,A,h,x,e,n,b,v,u,O,E,a,s,S,c,_,C,d,T,D,m]),H.useMemo(()=>{if(!n)return;function t(e){v.pointerType=e.pointerType}return{onPointerDown:t,onPointerEnter:t,onMouseMove(t){let{nativeEvent:n}=t,r=t.currentTarget,i=e.select(`domReferenceElement`),o=e.select(`open`),s=O(i,r,t.target);if(a&&!Cz(v.pointerType))return;if(o&&s&&v.handleCloseOptions?.blockPointerEvents){let t=e.select(`floatingElement`);if(t){let e=v.handleCloseOptions?.getScope?.()??r.ownerDocument.body;yU(v,{scopeElement:e,referenceElement:r,floatingElement:t})}}let c=Gz(S.current);if(o&&!s||c===0||!s&&v.restTimeoutPending&&t.movementX**2+t.movementY**2<2)return;v.restTimeout.clear();function l(){if(v.restTimeoutPending=!1,E())return;let t=e.select(`open`);!v.blockMouseMove&&(!t||s)&&D()&&e.setOpen(!0,qz(Xz,n,r))}v.pointerType===`touch`?Oe.flushSync(()=>{l()}):s&&o?l():(v.restTimeoutPending=!0,v.restTimeout.start(c,l))}}},[n,v,E,O,a,e,S,D])}function wU(e){return vz&&e.movementX===0&&e.movementY===0}function TU(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function EU(e,t){return TU(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function DU(e,t,n){return TU(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function OU(e,t,n){return TU(t,n?e===Oz:e===kz,e===Iie)}function kU(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:TU(t,n?e===kz:e===Oz,e===Fie)}function AU(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=Uz(E),A=Vz(D),j=cB(k),M=nH(),N=rH(x),P=H.useRef(f),F=H.useRef(o??-1),I=H.useRef(null),L=H.useRef(!0),R=dB(e=>{i(F.current===-1?null:F.current,e)}),ee=H.useRef(!!E),z=H.useRef(T),te=H.useRef(!1),ne=H.useRef(!1),re=H.useRef(null),ie=cB(h),B=cB(T),ae=cB(o),oe=cB(b),V=hB(),se=hB(),ce=dB(()=>{V.cancel();function e(e){d||(re.current=qB(e,{sync:te.current,preventScroll:!0}))}let t=n.current[F.current],r=ne.current;t&&e(t),(te.current?e=>e():e=>V.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),me&&(r||!L.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});Y(()=>{O.current.orientation=g},[O,g]),Y(()=>{T||(I.current=null),T&&f===`auto`||(P.current=f)},[T,f]),Y(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(ne.current=!0,R())):ee.current&&(F.current=-1,R()))},[a,T,E,o,R]),Y(()=>{if(a){if(!T)te.current=!1;else if(E){if(r==null){if(te.current=!1,ae.current!=null)return;if(ee.current&&(F.current=-1,ce()),(!z.current||!ee.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>se.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||DU(I.current,_,u)||l?xB(n):SB(n),I.current=null,R())};t()}}else bB(n.current,r)||(F.current=r,ce(),ne.current=!1)}}},[a,T,E,r,ae,l,n,_,u,R,ce,se]),Y(()=>{if(!a||E||!N||d||!ee.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=wz(gB(D??t??null)),r=e.some(e=>e.context&&Tz(e.context.elements.floating,n));t&&!r&&L.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),Y(()=>{z.current=T,ee.current=!!E});let le=r!=null,ue=dB(e=>{if(!B.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,R(e))}),de=dB(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),fe=dB(()=>xB(n,ie.current)),pe=dB(t=>{if(L.current=!1,te.current=!0,t.which===229||!B.current&&t.currentTarget===j.current)return;if(l&&kU(t.key,g,u,w)){EU(t.key,de())||bz(t),e.setOpen(!1,qz($z,t.nativeEvent));let n=S?.current??D;pL(n)&&n.focus();return}r!=null&&r!==F.current&&!bB(n.current,r)&&(F.current=r);let i=F.current,a=xB(n,h),o=SB(n,h);if(A||(t.key===`Home`&&(bz(t),F.current=a,R(t)),t.key===`End`&&(bz(t),F.current=o,R(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,R(t)),g===`both`)return}if(EU(t.key,g)){bz(t);let e=wz(t.currentTarget.ownerDocument);if(T&&!d&&Tz(t.currentTarget,e)&&!n.current.some(t=>t!=null&&Tz(t,e))){F.current=DU(t.key,g,u)?a:o,R(t),r===F.current&&ce();return}let{index:l,wrapped:f}=_ae(n.current,i,{decrement:!DU(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(te.current=!1),F.current=l,R(t)}}),me=H.useMemo(()=>({onFocus(e){te.current=!0,ue(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){wU(e)||(te.current=!0,ne.current=!1,p&&ue(e))},onPointerLeave(e){if(!B.current||!L.current||e.pointerType===`touch`)return;te.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&oe.current&&(re.current?.(),re.current=null,F.current=-1,R(e),!d)){let e=j.current,t=wz(gB(e));e&&Tz(e,t)&&e.focus({preventScroll:!0})}}}),[ue,B,j,p,n,R,oe,d]),he=H.useMemo(()=>d&&T&&le&&{"aria-activedescendant":`${y}-${r}`},[d,T,le,y,r]),ge=H.useMemo(()=>({...A?{}:he,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=Dz(t.nativeEvent);if(n&&!Tz(j.current,n))return;bz(t);let r=qz(Qz,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&pL(i)&&i.focus()}else pe(t)},onPointerMove(e){wU(e)||(L.current=!0)}}),[he,pe,j,A,e,T,d,D,S]),_e=H.useMemo(()=>{function t(t){e.setOpen(!0,qz($z,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&xz(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&Sz(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);L.current=!1;let i=n.key.startsWith(`Arrow`),a=OU(n.key,de(),u),o=EU(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Bz(n.currentTarget)))return pe(n);if(r||m||!i){if(s){let e=EU(n.key,de());I.current=l&&e?null:n.key}l?a&&(bz(n),r?(F.current=fe(),R(n),d&&j.current?.focus()):t(n)):o&&(ae.current!=null&&(F.current=ae.current),bz(n),!r&&m?t(n):pe(n),r&&R(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,R(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[pe,f,fe,l,R,e,m,g,_,de,u,ae,d,j]),ve=H.useMemo(()=>({...he,..._e}),[he,_e]);return H.useMemo(()=>a?{reference:ve,floating:ge,item:me,trigger:_e}:{},[a,ve,ge,_e,me])}function jU(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=dB(s),f=e.useState(`open`),p=dz(),m=H.useRef(``),h=H.useRef(u??i??-1),g=H.useRef(null),_=dB(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!TB(n)||n?.matches(`:disabled`)?!1:o==null||!wB(oz,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(bz(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(bz(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=dB(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);Tz(r,n)||Tz(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});Y(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=H.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return H.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var MU=.1,NU=MU*MU,PU=.5;function FU(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function IU(e,t,n,r,i,a,o,s,c,l){let u=!1;return FU(e,t,n,r,i,a)&&(u=!u),FU(e,t,i,a,o,s)&&(u=!u),FU(e,t,o,s,c,l)&&(u=!u),FU(e,t,c,l,n,r)&&(u=!u),u}function LU(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function RU(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function zU(e={}){let{blockPointerEvents:t=!1}=e,n=new uz,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*NU;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Dz(r),g=r.type===`mouseleave`,_=Tz(u,h),v=Tz(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&fL(r.relatedTarget)&&Tz(u,r.relatedTarget))return;function y(){return!!(s&&UB(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=RU(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=RU(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=RU(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=RU(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!LU(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?PU/2:PU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+PU+1,o=C||T?S.bottom-PU:S.top,s=C?T?S.bottom-PU:S.top:S.bottom-PU;M=IU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?PU/2:PU*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-PU,o=C||T?S.top+PU:S.bottom,s=C?T?S.top+PU:S.bottom:S.top+PU;M=IU(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?PU/2:PU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+PU+1,o=w||E?S.right-PU:S.left,s=w?E?S.right-PU:S.left:S.right-PU;M=IU(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?PU/2:PU*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-PU,o=w||E?S.left+PU:S.right,s=w?E?S.left+PU:S.right:S.left+PU;M=IU(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var BU=typeof document<`u`?H.useLayoutEffect:function(){};function VU(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!VU(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!VU(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function HU(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function UU(e,t){let n=HU(e);return Math.round(t*n)/n}function WU(e){let t=H.useRef(e);return BU(()=>{t.current=e}),t}function GU(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);VU(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=WU(c),D=WU(i),O=WU(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),gR(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!VU(w.current,t)&&(w.current=t,Oe.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);BU(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);BU(()=>(A.current=!0,()=>{A.current=!1}),[]),BU(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),N=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=UU(M.floating,u.x),r=UU(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...HU(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var KU=(e,t)=>{let n=sR(e);return{name:n.name,fn:n.fn,options:[e,t]}},qU=(e,t)=>{let n=lR(e);return{name:n.name,fn:n.fn,options:[e,t]}},JU=(e,t)=>({fn:hR(e).fn,options:[e,t]}),YU=(e,t)=>{let n=uR(e);return{name:n.name,fn:n.fn,options:[e,t]}},XU=(e,t)=>{let n=dR(e);return{name:n.name,fn:n.fn,options:[e,t]}},ZU=H.createContext(void 0);function QU(e){let t=H.useContext(ZU);if(t===void 0&&!e)throw Error(TH(47));return t}var $U=class extends nU{setState(e){}update(e){}set(e,t){}notifyAll(){}},eW={...dU,disabled:e=>e.disabled,instantType:e=>e.instantType===`trigger-change`&&!dU.open(e)?void 0:e.instantType,openMethod:e=>e.openMethod,openChangeReason:e=>e.openChangeReason,isPressOpenedByTrigger:(e,t)=>e.openChangeReason===`trigger-press`&&dU.isOpenedByTrigger(e,t),isTouchPressOpen:(e,t)=>t&&e.openMethod===`touch`&&e.openChangeReason===`trigger-press`,hasTriggerFocusGuards:(e,t)=>dU.isOpenedByTrigger(e,t)&&!e.focusManagerModal,modal:e=>e.modal,titleElementId:e=>e.titleElementId,descriptionElementId:e=>e.descriptionElementId,openOnHover:e=>e.openOnHover,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},tW=class extends nU{constructor(e,t,n){let r=new YH;super(nW(e,r,t,n),rW(r),eW)}setOpen=(e,t)=>{let n=t.reason===Xz,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null),a=HH(t),o=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&o!=null&&(t.trigger=this.context.triggerElements.getById(o)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let n=VH(this.state,e,t.trigger,a());n.openChangeReason=t.reason,this.update(n)};n?(this.context.stickIfOpen=!0,this.context.stickIfOpenTimeout.start(500,()=>{this.context.stickIfOpen=!1}),Oe.flushSync(s)):s();let c;r?c=`click`:i?c=`dismiss`:t.reason===`focus-out`&&(c=`focus`),this.set(`instantType`,c)}};function nW(e,t,n,r=!1){let i={...aU(t,n,r),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,openOnHover:!1,closeDelay:0,adaptiveOrigin:void 0,...e};return i.open&&e?.mounted===void 0&&(i.mounted=!0),i}function rW(e){return{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:H.createRef(),beforeTriggerFocusGuardRef:H.createRef(),beforeContentFocusGuardRef:H.createRef(),stickIfOpenTimeout:new uz,stickIfOpen:!0,triggerElements:e}}var iW=rz(function({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:l=null}=e,u=oW(s,{modal:o,open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});u.useControlledProp(`openProp`,n),u.useControlledProp(`triggerIdProp`,c);let d=u.useState(`open`),f=u.useState(`mounted`),p=u.useState(`payload`);u.useContextCallback(`onOpenChange`,i),u.useContextCallback(`onOpenChangeComplete`,a),JH(u,d),GH(u);let{forceUnmount:m}=KH(d,u,()=>{u.context.stickIfOpen=!0,u.set(`openChangeReason`,null)});u.useSyncedValues({modal:o}),H.useEffect(()=>{d||u.context.stickIfOpenTimeout.clear()},[u,d]),H.useImperativeHandle(e.actionsRef,()=>({unmount:m,close:()=>u.setOpen(!1,qz(nB))}),[m,u]);let h=d||f||s!=null;return(0,G.jsxs)(ZU.Provider,{value:u,children:[s&&(0,G.jsx)(RH,{handle:s,store:u}),h&&(0,G.jsx)(sW,{store:u,modal:o}),typeof t==`function`?t({payload:p}):t]})});function aW(e){return QU(!0)?(0,G.jsx)(iW,{props:e}):(0,G.jsx)(oH,{children:(0,G.jsx)(iW,{props:e})})}function oW(e,t){let n=LH((e,n)=>new tW(t,e,n));return H.useEffect(()=>n.context.stickIfOpenTimeout.disposeEffect(),[n]),n}function sW({store:e,modal:t}){let n=CH(e.useState(`floatingRootContext`),{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),r=n.reference,i=n.floating;return qH(e,{activeTriggerProps:r,inactiveTriggerProps:r,popupProps:i}),null}var cW=H.createContext(void 0);function lW(e=!1){let t=H.useContext(cW);if(t===void 0&&!e)throw Error(TH(16));return t}function uW(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:H.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function dW(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(lL(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function fW(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=H.useRef(null),s=lW(!0),c=a??s!==void 0,{props:l}=uW({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=H.useCallback(()=>{let e=o.current;pW(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Y(u,[u]),{getButtonProps:H.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return vV({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(OV(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=pW(r),s=!i&&mW(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),dW(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),dW(r,e)))},onKeyUp(e){t||(OV(e),a?.(e),e.target===e.currentTarget&&i&&c&&pW(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),dW(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:dB(e=>{o.current=e,u()})}}function pW(e){return pL(e)&&e.tagName===`BUTTON`}function mW(e){return pL(e)&&e.tagName===`A`&&!!e.href}function hW(e){return lV(e,`base-ui`)}function gW(e,t){function n(n,r,i){let a=n.currentTarget;Oe.flushSync(()=>{e.setOpen(!1,qz(Qz,n.nativeEvent,a))}),Cae(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&VB(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function _W(e){let t=H.useRef(``),n=H.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:H.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function vW(e,t){let n=H.useRef(e),r=dB(t);Y(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function yW(e,t){let{onClick:n,onPointerDown:r}=_W(dB((n,r)=>{(typeof e==`function`?e():e)||t(r||(mz?`touch`:``))}));return H.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function bW(e){let[t,n]=H.useState(null),r=yW(e,n);return vW(e,t=>{t&&!e&&n(null)}),H.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var xW=iz(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,handle:s,payload:c,openOnHover:l=!1,delay:u=300,closeDelay:d=0,id:f,...p}=e,m=QU(!0),h=fU(s)??m;if(!h)throw Error(TH(74));let g=hW(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=H.useRef(null),{registerTrigger:S,isMountedByThisTrigger:C}=WH(g,x,h,{payload:c,disabled:a,openOnHover:l,closeDelay:d}),w=h.useState(`isPressOpenedByTrigger`,g),T=h.useState(`isTouchPressOpen`,l),E=h.useState(`hasTriggerFocusGuards`,g),D=CU(v,{enabled:!a&&l&&!T,mouseOnly:!0,move:!1,handleClose:zU(),restMs:u,delay:{close:d},triggerElementRef:x,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),O=_H(v,{stickIfOpen:dB(()=>h.context.stickIfOpen)}),k=yW(()=>h.select(`open`),e=>{h.set(`openMethod`,e)}),A=h.useState(`triggerProps`,C),{getButtonProps:j,buttonRef:M}=fW({disabled:a,native:o}),N={open(e){return w?Pz.open(e):Nz.open(e)}},{handlePreFocusGuardFocus:P,handleFocusTargetFocus:F}=gW(h,x),I=jV(`button`,e,{state:{disabled:a,open:y},ref:[M,t,S,x],props:[O.reference,D,A,k,{[zV]:``,id:g,"aria-haspopup":`dialog`,"aria-expanded":y,"aria-controls":b},p,j],stateAttributesMapping:N}),L=(0,G.jsx)(H.Fragment,{children:I},g);return E?(0,G.jsxs)(H.Fragment,{children:[(0,G.jsx)(yB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:P}),L,(0,G.jsx)(yB,{ref:h.context.triggerFocusTargetRef,onFocus:F})]}):L}),SW=H.createContext(void 0);function CW(){let e=H.useContext(SW);if(e===void 0)throw Error(TH(45));return e}var wW=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return QU().useState(`mounted`)||n?(0,G.jsx)(SW.Provider,{value:n,children:(0,G.jsx)(ZV,{ref:t,...r})}):null});function TW(e){return dV(19)?e:e?`true`:void 0}var EW=H.createContext(void 0);function DW(){let e=H.useContext(EW);if(!e)throw Error(TH(46));return e}function OW(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=H.useState(null),d=H.useRef(null),f=rH(n),p=H.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=GU({...e,elements:{...p,...l&&{reference:l}}}),h=H.useCallback(e=>{let t=fL(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=H.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=H.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=H.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return Y(()=>{o&&(d.current=o)},[o]),Y(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),H.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var kW=H.createContext(void 0);function AW(){return H.useContext(kW)?.direction??`ltr`}var jW=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=xI(e,t)||{};if(l==null)return{};let d=zI(u),f={x:n,y:r},p=DI(i),m=TI(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=bI(D,k,O),j=!c.arrow&&CI(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),MW=(e,t)=>{let{name:n,fn:r}=jW(e);return{name:n,fn:r,options:[e,t]}},NW={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},PW={sideX:`left`,sideY:`top`},FW=`--available-width`,IW=`--available-height`,LW=`--anchor-width`,RW=`--anchor-height`,zW=`--transform-origin`,BW=FW,VW=IW;function HW(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function UW(e,t,n){let{rects:r,placement:i}=e;return{side:HW(t,SI(i),n),align:CI(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function WW(e){return GW(e,OW)}function GW(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=dB(O),A=O?k:n,j=cB(n),M=cB(g),N=AW()===`rtl`,[P,F]=H.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,L=P?SI(P):null,R=P&&I?CI(P)||`center`:null,ee=L||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],z=R||o,te=z===`center`?ee:`${ee}-${z}`,ne=l;typeof ne==`number`?ne={top:ne,right:ne,bottom:ne,left:ne}:ne&&={top:ne.top||0,right:ne.right||0,bottom:ne.bottom||0,left:ne.left||0};let re=+(i===`bottom`),ie=+(i===`top`),B=+(i===`right`),ae=+(i===`left`),oe={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:ne},V=H.useRef(null),se=cB(a),ce=cB(s),le=typeof a==`function`?0:a,ue=typeof s==`function`?0:s,de=[];p&&de.push(p),de.push(KU(e=>{let t=UW(e,i,N),n=typeof se.current==`function`?se.current(t):se.current,r=typeof ce.current==`function`?ce.current(t):ce.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[le,ue,N,i]));let fe=w===`none`&&C!==`shift`,pe=!fe&&(u||E||C===`shift`),me=C===`none`?null:YU({...oe,padding:{top:ne.top+1+re,right:ne.right+1+ae,bottom:ne.bottom+1+ie,left:ne.left+1+B},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),he=fe?null:qU({...oe,rootBoundary:D,mainAxis:w!==`none`,crossAxis:pe,limiter:u||E?void 0:JU(e=>{if(!V.current)return{};let{width:t,height:n}=V.current.getBoundingClientRect(),r=EI(SI(e.placement)),i=r===`y`?t:n,a=r===`y`?ne.left+ne.right:ne.top+ne.bottom;return{offset:i/2+a/2}})},[oe,u,E,D,ne,w]);C===`shift`||w===`shift`||z===`center`?de.push(he,me):de.push(me,he),de.push(XU({...oe,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(BW,`${t}px`),i.setProperty(VW,`${n}px`);let a=lL(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(LW,`${u}px`),i.setProperty(RW,`${d}px`)}}),MW(e=>({element:V.current||gB(e.elements.floating).createElement(`div`),padding:V.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=SI(r),u=CI(r),d=EI(l)===`y`,f=V.current,p=typeof a==`function`?a(UW(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return pe&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(zW,d?`${m} ${h}`:`${h} ${m}`),{}}},NW,b),Y(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ge=H.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:_e,elements:ve,x:ye,y:be,middlewareData:xe,update:Se,placement:Ce,context:we,isPositioned:Te,floatingStyles:Ee}=t({rootContext:h,open:m?g:void 0,placement:te,middleware:de,strategy:r,whileElementsMounted:m?void 0:(...e)=>oR(...e,ge),nodeId:y,externalTree:S}),{sideX:De,sideY:Oe}=xe.adaptiveOrigin||PW,ke=Te?r:`fixed`,Ae=H.useMemo(()=>{let e;return e=Te?b?{position:ke,[De]:ye,[Oe]:be}:{...Ee,position:ke}:{position:ke,top:0,left:0},e[BW]=`100vw`,e[VW]=`100vh`,Te||(e.opacity=0),e},[b,ke,De,ye,Oe,be,Ee,Te]),je=H.useRef(null);Y(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(KW(t)?t.current:t)||null;n!==je.current&&(_e.setPositionReference(n),je.current=n)},[g,_e,A,j]),H.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&KW(e)&&e.current!==je.current&&(_e.setPositionReference(e.current),je.current=e.current)},[g,_e,A,j]),H.useEffect(()=>{if(m&&g&&ve.reference&&ve.floating)return oR(ve.reference,ve.floating,Se,ge)},[m,g,ve,Se,ge]);let Me=SI(Ce),Ne=HW(i,Me,N),Pe=CI(Ce)||`center`,Fe=!!xe.hide?.referenceHidden;Y(()=>{x&&g&&Te&&(Me!==ee||I&&Pe!==z)&&F(Ce)},[x,I,g,Te,Ce,Me,Pe,ee,z]);let Ie=H.useMemo(()=>({position:`absolute`,top:xe.arrow?.y,left:xe.arrow?.x}),[xe.arrow]),Le=xe.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:Ae,arrowStyles:Ie,arrowRef:V,arrowUncentered:Le,side:Ne,align:Pe,physicalSide:Me,anchorHidden:Fe,refs:_e,context:we,isPositioned:Te,update:Se}),[Ae,Ie,V,Le,Ne,Pe,Me,Fe,_e,we,Te,Se])}function KW(e){return e!=null&&`current`in e}var qW=H.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,G.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function JW(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=H.useRef(null),o=H.useRef(null),s=MH(r);Y(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),Y(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}function YW(e){return e===`starting`?RV:sz}function XW(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),jV(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},YW(r),i],stateAttributesMapping:Fz})}var ZW={},QW={},$W=``;function eG(e,t){return hL(e)?e:t}function tG(e,t,n){return/hidden|clip/.test(e.getComputedStyle(eG(t,n)).overflowY)}function nG(e){if(typeof document>`u`)return!1;let t=gB(e);return lL(t).innerWidth-t.documentElement.clientWidth>0}function rG(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=gB(e),n=t.documentElement,r=t.body,i=eG(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function iG(e){let t=gB(e),n=t.documentElement,r=t.body,i=eG(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function aG(e){let t=gB(e),n=t.documentElement,r=t.body,i=lL(n),a=0,o=0,s=!1,c=mB.create();if(vz&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,ZW={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},$W=n.style.scrollBehavior,QW={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=eG(n,r);s=rG(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,ZW),Object.assign(r.style,QW),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=$W)}function d(){u(),c.request(l)}l();let f=rB(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var oG=new class{lockCount=0;restore=null;timeoutLock=uz.create();timeoutUnlock=uz.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=gB(e),n=t.documentElement,r=t.body,i=lL(n);if(tG(i,n,r)){let t=new i.MutationObserver(()=>{tG(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=mz||!nG(e);this.restore=a?iG(e):aG(e)}};function sG(e=!0,t=null){Y(()=>{if(e)return oG.acquire(t)},[e,t])}var cG=20;function lG(e,t,n,r){let[i,a]=H.useState(!1);Y(()=>{if(!e||!t||n==null){a(!1);return}let r=gB(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-cG)},[e,t,n]),sG(e&&(!t||i),r)}var uG=H.forwardRef(function(e,t){let{render:n,className:r,style:i,anchor:a,positionMethod:o,side:s,align:c,sideOffset:l,alignOffset:u,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:p,sticky:m,disableAnchorTracking:h=!1,collisionAvoidance:g=GV,..._}=e,v=QU(),y=CW(),b=iH(),x=v.useState(`floatingRootContext`),S=v.useState(`mounted`),C=v.useState(`open`),w=v.useState(`openChangeReason`),T=v.useState(`activeTriggerElement`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`positionerElement`),k=v.useState(`instantType`),A=v.useState(`transitionStatus`),j=WW({anchor:a,floatingRootContext:x,positionMethod:o,mounted:S,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:m,disableAnchorTracking:h,keepMounted:y,nodeId:b,collisionAvoidance:g,adaptiveOrigin:v.useState(`adaptiveOrigin`)});JW({store:v,domReference:x.useState(`domReferenceElement`),positionerElement:O,open:C});let M=E===!0&&w!==`trigger-hover`;lG(C&&M,D===`touch`,O,T);let N=v.useStateSetter(`positionerElement`),P=XW(e,{open:C,side:j.side,align:j.align,anchorHidden:j.anchorHidden,instant:k},{styles:j.positionerStyles,transitionStatus:A,props:_,refs:[t,N],hidden:!S,inert:!C});return(0,G.jsxs)(EW.Provider,{value:j,children:[S&&M&&(0,G.jsx)(qW,{inert:TW(!C),cutout:T}),(0,G.jsx)(aH,{id:b,children:P})]})}),dG=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),fG=H.createContext(void 0);function pG(e){let t=H.useContext(fG);if(t===void 0&&!e)throw Error(TH(69));return t}var mG=H.createContext(void 0);function hG(){let[e,t]=H.useState(0),n=dB(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:H.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}var gG=H.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=QU(),l=DW(),u=pG(!0)!=null,{context:d,hasClosePart:f}=hG(),p=c.useState(`open`),m=c.useState(`openMethod`),h=c.useState(`instantType`),g=c.useState(`transitionStatus`),_=c.useState(`popupProps`),v=c.useState(`titleElementId`),y=c.useState(`descriptionElementId`),b=c.useState(`modal`),x=c.useState(`mounted`),S=c.useState(`openChangeReason`),C=c.useState(`activeTriggerElement`),w=c.useState(`floatingRootContext`),T=w.useState(`floatingId`),E=c.useState(`disabled`),D=c.useState(`openOnHover`),O=c.useState(`closeDelay`);NH({open:p,ref:c.context.popupRef,onComplete(){p&&c.context.onOpenChangeComplete?.(!0)}}),xU(w,{enabled:D&&!E,closeDelay:O});let k=a===void 0?IH(c.context.popupRef):a,A=b!==!1&&f;c.useSyncedValue(`focusManagerModal`,A);let j=c.useStateSetter(`popupElement`),M=jV(`div`,e,{state:{open:p,side:l.side,align:l.align,instant:h,transitionStatus:g},ref:[t,c.context.popupRef,j],props:[_,{id:T,role:`dialog`,...FH,"aria-labelledby":v,"aria-describedby":y,onKeyDown(e){u&&dG.has(e.key)&&e.stopPropagation()}},YW(g),s],stateAttributesMapping:Iz});return(0,G.jsx)(gH,{context:w,openInteractionType:m,modal:A,disabled:!x||S===`trigger-hover`,initialFocus:k,returnFocus:o,restoreFocus:`popup`,getInsideElements:()=>[c.context.beforeTriggerFocusGuardRef.current],previousFocusableElement:pL(C)?C:void 0,nextFocusableElement:c.context.triggerFocusTargetRef,beforeContentFocusGuardRef:c.context.beforeContentFocusGuardRef,children:(0,G.jsx)(mG.Provider,{value:d,children:M})})}),_G=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=QU(),s=hW(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),jV(`h2`,e,{ref:t,props:[{id:s},a]})}),vG=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=QU(),s=hW(a.id);return o.useSyncedValueWithCleanup(`descriptionElementId`,s),jV(`p`,e,{ref:t,props:[{id:s},a]})}),yG=function(e){let{direction:t=`ltr`}=e,n=H.useMemo(()=>({direction:t}),[t]);return(0,G.jsx)(kW.Provider,{value:n,children:e.children})};function bG(e,t){let n=new Set;return[...e,...t].filter(e=>{let t=`${e.kind}:${e.id}`;return!n.has(t)&&(n.add(t),!0)})}function xG(e){return e.startsWith(`/note/`)?{panel:!0,fresh:!1,chips:[{kind:`meeting`,id:e.slice(6)}]}:e.startsWith(`/folder/`)?{panel:!1,fresh:!1,chips:[{kind:`folder`,id:e.slice(8)}]}:{panel:!1,fresh:e===`/chat`||e.startsWith(`/chat/`),chips:[]}}function SG(e,t){let n=/(?:^|\s)@([^@\n]{0,80})$/.exec(e.slice(0,t));return n?{start:t-n[1].length-1,end:t,query:n[1]}:void 0}var CG=4e3;function wG(e,t){let n=TG(e);return n[Math.min(Math.max(0,t),n.length-1)]}function TG(e){if(!e||e.kind===`loading`)return[U(`Thinking…`),U(`Still thinking…`)];if(e.kind===`searching`)return[U(`Searching your meetings…`),U(`Still searching your meetings…`)];let t=U(`Still reading…`),n=e.title?.trim()||U(`Untitled meeting`);return e.meetings&&e.meetings>1?[U(`Reading {title} {others}…`,{title:n,others:U(`and {count} others`,{count:e.meetings-1})}),t]:[U(`Reading {title}…`,{title:n}),U(`Still reading {title}…`,{title:n}),t]}var EG=864e5,DG=(e,t=Date.now())=>Math.round((new Date(new Date(t).toDateString()).getTime()-new Date(new Date(e).toDateString()).getTime())/EG);function OG(e,t={}){let n=new Date(e),r=DG(e);if(r===0)return U(`Today`);if(r===1)return U(`Yesterday`);if(r===-1)return U(`Tomorrow`);if(t.weekday&&r>1&&r<7)return n.toLocaleDateString(xt(),{weekday:`long`});let i=n.getFullYear()===new Date().getFullYear();return n.toLocaleDateString(xt(),{...t.weekday?{weekday:`short`}:{},month:`short`,day:`numeric`,...i?{}:{year:`numeric`}})}function kG(e){let t=DG(e);if(t===0||t===1)return OG(e);let n=new Date(e);return n.toLocaleDateString(xt(),{weekday:`short`,month:`short`,day:`numeric`,...n.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}})}var AG=e=>new Date(e).toLocaleTimeString(xt(),{hour:`numeric`,minute:`2-digit`});function jG(e,t,n=xt()){let r=new Intl.DateTimeFormat(n,{hour:`numeric`,minute:`2-digit`});if(t==null)return r.format(e);let i=e=>r.formatToParts(e).find(e=>e.type===`dayPeriod`)?.value,a=i(e);return t>=e&&a&&a===i(t)&&new Date(e).toDateString()===new Date(t).toDateString()?r.formatRange(e,t):`${r.format(e)} – ${r.format(t)}`}var MG=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n++;return n},NG=(e,t)=>{let n=e.charCodeAt(t-1);return n>=55296&&n<=56319&&t<e.length?t+1:t},PG=(e,t)=>t.startsWith(e)?e:t.slice(0,NG(t,MG(e,t))),FG=class{shown;target;since=0;constructor(e,t){this.target=e,this.shown=t?``:e}get settled(){return this.shown===this.target}update(e,t,n,r=!1){let i=this.settled;this.target=e,!t||r?this.shown=e:(this.shown=PG(this.shown,e),i&&(this.since=n))}tick(e){let t=this.target.length-this.shown.length;if(t<=0){this.since=e;return}let n=Math.min(5,250/t),r=Math.min(t,Math.floor((e-this.since)/n));r<=0||(this.shown=this.target.slice(0,NG(this.target,this.shown.length+r)),this.since=this.settled?e:this.since+r*n)}};function IG(e,t,n={}){let r=jf(),i=t&&!r,[a]=(0,H.useState)(()=>new FG(e,i&&!n.startShown)),[o,s]=(0,H.useState)(a.shown),c=(0,H.useRef)(n.minCommitMs??0);return c.current=n.minCommitMs??0,(0,H.useEffect)(()=>{if(a.update(e,i,performance.now()),s(a.shown),a.settled)return;let t=0,n=performance.now(),r=e=>{a.tick(e),(a.settled||e-n>=c.current)&&(n=e,s(a.shown)),a.settled||(t=requestAnimationFrame(r))};return t=requestAnimationFrame(r),()=>cancelAnimationFrame(t)},[a,e,i]),i?PG(o,e):e}function LG(e,t){for(let n of at(e)){let e=n.map(e=>e.text??``).join(``).indexOf(t);if(e<0||!t)continue;let r=0;return n.flatMap(n=>{let i=n.text??``,a=Math.max(0,e-r),o=Math.min(i.length,e+t.length-r);return r+=i.length,o>a?[{...n,text:i.slice(a,o)}]:[]})}return[{type:`text`,text:t}]}function RG(e,t){let n=new Set,r=i=>{if(i.type===`paragraph`||i.type===`heading`){let r=(i.content??[]).map(e=>e.text??``).join(``);return[`before`,`match`,`after`].flatMap(i=>!t[i]||n.has(i)||!r.includes(t[i])?[]:(n.add(i),[{type:`citationPart`,attrs:{part:i},content:LG(e,t[i])}]))}let a=(i.content??[]).map((e,t)=>r(e).map(e=>i.type===`orderedList`?{...e,attrs:{...e.attrs,value:Number(i.attrs?.start??1)+t}}:e)),o=a.flat();return o.length?[{...i,content:o,...i.type===`orderedList`?{attrs:{...i.attrs,start:Number(i.attrs?.start??1)+a.findIndex(e=>e.length)}}:{}}]:[]};return r(ze(e.replace(/^[\t ]*#{4,6}[\t ]+/gm,`### `),{inlineCode:!0}))[0]?.content??[]}function zG(e,t){let n=e.atMs===null?`notes`:`transcript`,r=e.transcript?.lines??[],i=e.excerpt??``;n===`transcript`&&(i=ot(i).split(`
`).map(e=>{for(let t of r){let n=`${t.track===`me`?`You`:t.speaker||`Them`}: `;if(e.startsWith(n)&&(e.slice(n.length).startsWith(ot(t.text))||ot(t.text).startsWith(e.slice(n.length))))return e.slice(n.length)}return e}).join(`
-`));let a=dt(i,t),o=Math.max(0,r.findIndex(t=>t.startMs===e.atMs)),s=t=>{let a=n===`transcript`?r[pt(r.map(e=>e.text),t,o)]:void 0,s=Ot(a?.track??`them`,a?.speaker,e.transcript?.speakers??[]);return{text:t,nodes:n===`notes`?wG(i,t):[],track:a?.track??`them`,speaker:a?.speaker,color:s===void 0?void 0:Dt[s],atMs:a?.startMs}},c=s(a.match),l=n===`transcript`?r.flatMap(e=>{let t=ot(e.text);if(t&&i.includes(t))return[{...e,text:t}];if(t&&i.endsWith(`
+`));let a=dt(i,t),o=Math.max(0,r.findIndex(t=>t.startMs===e.atMs)),s=t=>{let a=n===`transcript`?r[pt(r.map(e=>e.text),t,o)]:void 0,s=Ot(a?.track??`them`,a?.speaker,e.transcript?.speakers??[]);return{text:t,nodes:n===`notes`?LG(i,t):[],track:a?.track??`them`,speaker:a?.speaker,color:s===void 0?void 0:Dt[s],atMs:a?.startMs}},c=s(a.match),l=n===`transcript`?r.flatMap(e=>{let t=ot(e.text);if(t&&i.includes(t))return[{...e,text:t}];if(t&&i.endsWith(`
…`)){let n=i.slice(0,-2),r=n.lastIndexOf(t.split(/\s/)[0]),a=r<0?``:n.slice(r);if(a&&t.startsWith(a))return[{...e,text:a+`…`}]}return[]}):[],u=l.length?l:n===`transcript`?i.split(`
-`).filter(e=>e.trim()).map(t=>({text:t,track:`them`,speaker:null,startMs:e.atMs})):[],d=Math.max(0,pt(u.map(e=>e.text),c.text,Math.max(0,u.findIndex(e=>e.startMs===c.atMs))));return{kind:n,before:s(a.before),match:c,after:s(a.after),notes:n===`notes`?TG(i,a):[],lines:u.map((t,n)=>{let r=Ot(t.track,t.speaker,e.transcript?.speakers??[]);return{...t,index:n,color:r===void 0?void 0:Dt[r]}}),matchedLine:d}}function DG(e,t){let n=0,r=e.length,i=e.reduce((e,t)=>e+t,0);for(;i>6&&r-n>1;)t-n>r-1-t?i-=e[n++]:i-=e[--r];return{start:n,end:r}}function OG({marks:e=[],children:t}){let n=t;for(let t of e)t.type===`bold`?n=(0,G.jsx)(`strong`,{children:n}):t.type===`italic`?n=(0,G.jsx)(`em`,{children:n}):t.type===`code`&&(n=(0,G.jsx)(`code`,{children:n}));return n}function kG({source:e,sentence:t,triggerId:n,animate:r,onOpen:i}){let a=(0,H.useId)().replace(/:/g,``),o=(0,H.useRef)(null);dt(e.excerpt??``,t);let s=EG(e,t),c=jf(),l=n?document.getElementById(n):null,u=e.title||U(`Untitled`),d=new Date(e.startedAt),f=d.toLocaleDateString(xt(),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`});return(0,H.useLayoutEffect)(()=>{if(!r||c)return;let e=0,t=requestAnimationFrame(()=>{let t=o.current;if(!t||!l)return;let n=l.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.left+n.width/2-r.left,a=n.top+n.height/2-r.top,s={"from-x":`${i-9}px`,"from-y":`${a>r.height/2?a-n.height/2-18:a+n.height/2}px`,"from-sx":18/r.width,"from-sy":18/r.height};for(let[e,n]of Object.entries(s))t.style.setProperty(`--${e}`,String(n));t.dataset.morph=`true`,e=window.setTimeout(()=>{delete t.dataset.morph},kf.settleMs)});return()=>{cancelAnimationFrame(t),clearTimeout(e),o.current&&delete o.current.dataset.morph}},[l,r,c]),(0,G.jsx)(pW,{container:l?.closest(`dialog`)??void 0,children:(0,G.jsx)($W,{side:`top`,align:`center`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`citation-positioner`,children:(0,G.jsxs)(aG,{ref:o,className:`citation-card`,"data-testid":`citation-card`,"data-animate":r&&!c,initialFocus:!1,finalFocus:!1,"aria-label":u,children:[(0,G.jsx)(`svg`,{width:`0`,height:`0`,className:`citation-filter`,"aria-hidden":`true`,children:(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:a,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,colorInterpolationFilters:`sRGB`,children:[(0,G.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`2.4`}),(0,G.jsx)(`feColorMatrix`,{type:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})})}),(0,G.jsx)(`div`,{className:`citation-liquid`,style:{"--citation-filter":`url(#${a})`},"aria-hidden":`true`,children:(0,G.jsx)(`div`,{className:`citation-mass`})}),(0,G.jsx)(`div`,{className:`citation-edge`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{className:`citation-content`,children:[(0,G.jsxs)(`div`,{className:`citation-heading`,children:[(0,G.jsx)(oG,{className:`citation-title`,title:u,children:u}),(0,G.jsx)(`time`,{className:`citation-date`,dateTime:d.toISOString(),title:f,children:d.toLocaleDateString(xt(),{month:`short`,day:`numeric`})})]}),s.match.text&&(s.kind===`transcript`?(0,G.jsx)(AG,{preview:s},JSON.stringify(s.lines)+s.matchedLine):(0,G.jsx)(jG,{preview:s})),(0,G.jsxs)(`div`,{className:`citation-footer`,children:[(0,G.jsx)(`span`,{children:e.atMs===null?U(`Notes`):(0,G.jsxs)(G.Fragment,{children:[U(`Transcript`),` · `,uv(s.match.atMs??e.atMs)]})}),(0,G.jsxs)(`button`,{className:`citation-open`,"data-testid":`citation-open`,"aria-label":U(`Open {source}`,{source:u}),onClick:()=>i(s.match.text),children:[U(`Open`),(0,G.jsx)(nee,{size:12,"aria-hidden":`true`})]})]})]})]})})})}function AG({preview:e}){let t=(0,H.useRef)(null),[n,r]=(0,H.useState)({start:0,end:e.lines.length}),[i,a]=(0,H.useState)(0);return(0,H.useLayoutEffect)(()=>{let i=t.current;(()=>{let t=[];for(let e of i.querySelectorAll(`[data-citation-line]`)){let n=e.querySelector(`.citation-lines`);t.push(Math.ceil(n.scrollHeight/parseFloat(getComputedStyle(n).lineHeight)))}let a=DG(t,e.matchedLine-n.start),o={start:n.start+a.start,end:n.start+a.end};r(e=>e.start===o.start&&e.end===o.end?e:o)})()},[i,n.start,n.end]),(0,H.useLayoutEffect)(()=>{let n=t.current,i=n.clientWidth,o=new ResizeObserver(()=>{n.clientWidth!==i&&(i=n.clientWidth,r({start:0,end:e.lines.length}),a(i))});return o.observe(n),()=>o.disconnect()},[]),(0,G.jsx)(`div`,{ref:t,className:`citation-passage citation-transcript`,"data-testid":`citation-excerpt`,children:dv(e.lines.slice(n.start,n.end)).map(t=>{let r=t[0],i=r.track===`me`,a=i||!!r.speaker;return(0,G.jsxs)(`div`,{className:`transcript-turn`,"data-track":r.track,children:[a&&(0,G.jsx)(`span`,{className:`line-who citation-speaker`,"data-folder-color":r.color,children:i?U(`You`):r.speaker}),t.map((t,r)=>(0,G.jsx)(`p`,{"data-citation-line":t.index,"data-citation-part":t.index===e.matchedLine?`match`:`context`,"data-track":t.track,dir:`auto`,className:`bubble bubble-${t.track}`,"data-continuation":!a||r>0||void 0,children:(0,G.jsxs)(`span`,{className:`citation-lines`,style:{WebkitLineClamp:6},children:[t.index===n.start&&n.start>0&&`… `,t.text,t.index===n.end-1&&n.end<e.lines.length&&` …`]})},t.index))]},r.index)})})}function jG({preview:e}){let t=(0,H.useRef)(null);(0,H.useLayoutEffect)(()=>{let e=t.current,n=()=>{let t=[...e.querySelectorAll(`[data-citation-part]`)],n=new Map(t.map(e=>{e.hidden=!1;let t=e.querySelector(`.citation-lines`);return t.style.webkitLineClamp=`unset`,[e.dataset.citationPart,Math.ceil(t.scrollHeight/parseFloat(getComputedStyle(t).lineHeight))]})),r=Math.min(6,n.get(`match`)??0),i=6-r,a=Math.min(2,n.get(`before`)??0,Math.floor(i/(n.has(`after`)?2:1))),o=Math.min(2,n.get(`after`)??0,i-a);for(let e of t){let t=e.dataset.citationPart===`match`?r:e.dataset.citationPart===`before`?a:o;e.hidden=t===0,e.querySelector(`.citation-lines`).style.webkitLineClamp=String(t)}};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[e]);let n=(e,t)=>{if(e.type===`citationPart`)return(0,G.jsx)(`div`,{"data-citation-part":String(e.attrs.part),children:(0,G.jsx)(`p`,{className:`citation-lines`,children:(0,G.jsx)(`span`,{className:e.attrs.part===`match`?`citation-match`:void 0,children:e.content?.map((e,t)=>(0,G.jsx)(OG,{marks:e.marks,children:e.text},t))})})},t);let r=e.content?.map(n);return e.type===`bulletList`?(0,G.jsx)(`ul`,{children:r},t):e.type===`orderedList`?(0,G.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},t):(0,G.jsx)(`li`,{value:e.attrs?.value,children:r},t)};return(0,G.jsx)(`div`,{ref:t,className:`citation-passage citation-notes`,"data-testid":`citation-excerpt`,children:e.notes.map(n)})}function MG({md:e,live:t,sources:n,onSource:r}){let i=(0,H.useId)(),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(!1),d=(0,H.useRef)(null),f=(0,H.useMemo)(()=>{let r=it(e,n,t),i=e=>{e.type===`citation`&&(e.attrs.payloads=e.attrs.marks.map(t=>({source:n.find(e=>e.n===t.source),sentence:String(e.attrs.sentence??``)}))),e.content?.forEach(i)};return i(r),r},[e,n,t]),p={live:t,at:{n:0},id:i,sources:n,focus:e=>{e.matches(`:focus-visible`)&&(d.current===e.id?d.current=null:(u(!1),c(e.id),o(!0)))},blur:()=>{d.current=null},activate:e=>{d.current=null,u(!1),c(e.id),o(!0)},dismiss:e=>!a||s!==e.id?!1:(o(!1),!0)};return(0,G.jsx)(JU,{open:a,triggerId:s,onOpenChange:(e,t)=>{!e&&t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail===0?t.cancel():(t.reason===`escape-key`&&document.activeElement?.closest(`.citation-card`)&&(d.current=s,s&&document.getElementById(s)?.focus({preventScroll:!0})),e&&(a&&t.trigger?.id===s||u(t.reason===`trigger-hover`||t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail>0),c(t.trigger?.id??s)),o(e))},children:({payload:e})=>(p.at.n=0,(0,G.jsxs)(G.Fragment,{children:[(f.content??[]).map(e=>NG(e,p)),e&&(0,G.jsx)(kG,{source:e.source,sentence:e.sentence,triggerId:s,animate:l,onOpen:t=>{o(!1),r(e.source,t)}},s)]}))})}function NG(e,t){let n=`${e.type}-${t.at.n}`;if(e.type===`citation`)return t.at.n+=Number(e.attrs?.length??0),(0,G.jsx)(`span`,{className:`citation-group`,"data-gap":e.attrs.gap||void 0,"data-single":e.attrs.marks.length===1||void 0,children:e.attrs.marks.map((r,i)=>{let a=t.sources.find(e=>e.n===r.source),o=a.title||U(`Untitled`);return(0,G.jsx)(uW,{id:`${t.id}-${n}-${r.source}`,payload:e.attrs.payloads[i],openOnHover:!0,delay:100,closeDelay:180,className:`source-citation`,"data-testid":`source-citation`,"data-meeting":a.meetingId,"data-at":a.atMs??void 0,"aria-label":`${r.number}: ${o} · ${gG(a.startedAt)}`,onFocus:e=>t.focus(e.currentTarget),onBlur:t.blur,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),t.activate(e.currentTarget)),e.key===`Escape`&&t.dismiss(e.currentTarget)&&(e.preventDefault(),e.stopPropagation())},children:r.number},r.source)})},n);if(e.type===`citationAnchor`)return(0,G.jsx)(`span`,{className:`citation-anchor`,children:e.content.map(e=>NG(e,t))},n);if(e.type===`text`){let r=e.text??``,i=PG(r,t.at.n,t.live);return t.at.n+=r.length,(0,G.jsx)(OG,{marks:e.marks,children:i},n)}let r=(e.content??[]).map(e=>NG(e,t));switch(t.at.n+=1,e.type){case`heading`:return(0,G.jsx)(`h3`,{children:r},n);case`bulletList`:return(0,G.jsx)(`ul`,{children:r},n);case`orderedList`:return(0,G.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},n);case`listItem`:return(0,G.jsx)(`li`,{children:r},n);case`paragraph`:return e.content?(0,G.jsx)(`p`,{children:r},n):null;default:return(0,G.jsx)(H.Fragment,{children:r},n)}}function PG(e,t,n){if(!n)return e?[e]:[];let r=[],i=t;for(let t of e.split(/(\s+)/))t&&r.push(/^\s+$/.test(t)?t:(0,G.jsx)(`span`,{className:`fw`,children:t},i)),i+=t.length;return r}function FG(e,t){return function({size:n=16,...r}){return(0,G.jsx)(`svg`,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,"data-icon":e,...r,children:t.map(([e,t])=>(0,H.createElement)(e,t))})}}var IG=FG(`MessageCircle`,[[`path`,{d:`M21.9598 12.9919C21.6856 17.2342 18.3536 20.6134 14.1706 20.8915C13.4574 20.9389 12.7285 21.001 12 21.001C10.4054 21.001 8.95127 20.8637 7.44544 20.2902C7.44544 20.2902 5.56108 21.7589 3.69962 21.4587C3.31009 21.3959 3.11532 21.3644 3.00091 21.1343C2.8865 20.9042 3.00788 20.6756 3.25063 20.2185C3.65964 19.4483 3.92248 18.6737 3.80076 17.8306C3.73703 17.3892 3.50433 16.9974 3.27644 16.6136L3.26529 16.5948C2.62637 15.5188 2.12462 14.2975 2.04024 12.9919C1.98659 12.1617 1.98659 11.3019 2.04024 10.4717C2.31441 6.22935 5.64639 2.85011 9.8294 2.57205C11.2536 2.47738 12.7435 2.47719 14.1706 2.57205C18.3536 2.85011 21.6856 6.22935 21.9598 10.4717C22.0134 11.3019 22.0134 12.1617 21.9598 12.9919Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8.75 9.50098H12.25`,pathLength:`1`,stroke:`currentColor`,key:`1`}],[`path`,{d:`M8.75 14.501H15.25`,pathLength:`1`,stroke:`currentColor`,key:`2`}]]),LG=FG(`Search`,[[`circle`,{cx:`10.5`,cy:`10.5`,r:`7`,key:`lens`}],[`path`,{d:`M15.5 15.5 20.5 20.5`,key:`handle`}]]),RG=FG(`SidebarToggle`,[[`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`4`,key:`frame`}],[`rect`,{x:`6.5`,y:`7.5`,width:`6`,height:`9`,rx:`1`,fill:`currentColor`,stroke:`none`,className:`sidebar-toggle-pane`,key:`pane`}]]),zG=FG(`FileText`,[[`path`,{d:`M8 17H16`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8 13H12`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`2`}]]),BG=FG(`Settings`,[[`path`,{d:`M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}]]),VG=FG(`Mic`,[[`path`,{d:`M7 6.5C7 4.01472 9.01472 2 11.5 2C13.9853 2 16 4.01472 16 6.5V11.5C16 13.9853 13.9853 16 11.5 16C9.01472 16 7 13.9853 7 11.5V6.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M11.5 19H11.0828C7.57267 19 4.57706 16.4623 4 13M11.5 19H11.9172C15.4273 19 18.4229 16.4623 19 13M11.5 19V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),HG=FG(`Pause`,[[`path`,{d:`M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z`,stroke:`currentColor`,key:`1`}]]),UG=FG(`Play`,[[`path`,{d:`M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}]]),WG=FG(`Sparkles`,[[`path`,{d:`M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`1`}]]),GG=FG(`Copy`,[[`path`,{d:`M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),KG=FG(`Loader`,[[`path`,{d:`M12 3V6`,stroke:`currentColor`,strokeLinecap:`round`,key:`0`}],[`path`,{d:`M12 18V21`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}],[`path`,{d:`M21 12L18 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`2`}],[`path`,{d:`M6 12L3 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`3`}],[`path`,{d:`M18.3635 5.63672L16.2422 7.75804`,stroke:`currentColor`,strokeLinecap:`round`,key:`4`}],[`path`,{d:`M7.75804 16.2422L5.63672 18.3635`,stroke:`currentColor`,strokeLinecap:`round`,key:`5`}],[`path`,{d:`M18.3635 18.3635L16.2422 16.2422`,stroke:`currentColor`,strokeLinecap:`round`,key:`6`}],[`path`,{d:`M7.75804 7.75804L5.63672 5.63672`,stroke:`currentColor`,strokeLinecap:`round`,key:`7`}]]);function qG(e){return H.Children.map(e,e=>{if(!(0,H.isValidElement)(e))return e;let t=e;return(0,H.cloneElement)(t,{ref:null,...typeof e.type==`string`?{id:void 0,"data-testid":void 0}:{}},t.props.children===void 0?void 0:qG(t.props.children))})}function JG({pending:e,children:t,skeleton:n,testId:r,className:i=``,onReady:a}){let o=sv(e),s=(0,H.useRef)(void 0);e&&(s.current=n??qG(t));let c=o===`waiting`||o===`skeleton`,l=(0,H.useRef)(a);return l.current=a,(0,H.useLayoutEffect)(()=>{c||l.current?.()},[c]),(0,G.jsxs)(`div`,{className:`loading-content ${i}`,"data-loading-phase":o,"aria-busy":c,children:[o!==`ready`&&(0,G.jsxs)(`div`,{className:`loading-placeholder`,"data-testid":r,children:[c&&(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,children:U(`Loading…`)}),(0,G.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,inert:!0,ref:e=>{n===void 0&&e?.querySelectorAll(`[id],[data-testid]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`)})},children:s.current})]}),!e&&(0,G.jsx)(`div`,{className:`loading-result`,children:t})]})}var YG=e=>new Intl.NumberFormat(xt(),{style:`percent`,maximumFractionDigits:0}).format(Math.floor(Math.max(0,Math.min(1,e))*100)/100),XG=e=>!e.notesDownloading&&!e.notesError&&!!(e.notesUpgradePending||e.notesUpgradeDownloading||e.notesUpgradeError),ZG=e=>!!e&&!!(e.notesDownloading||e.notesError||XG(e));function QG(e){let t=e.notesRestoreFraction!==void 0,n=XG(e),r=t?e.notesRestoreTotalBytes:n?e.notesUpgradeTotalBytes:e.notesTotalBytes,i=t?e.notesRestoreFraction:n?e.notesUpgradeFraction:e.notesFraction,a=t?e.notesRestoreEtaSec:n?e.notesUpgradeEtaSec:e.notesEtaSec,o=U(n?`Upgrading AI`:`Downloading AI`);if(!r||!Number.isFinite(r)||r<0||i===void 0||!Number.isFinite(i))return{progress:``,eta:``,detail:o};let s=new Intl.NumberFormat(xt(),{minimumFractionDigits:1,maximumFractionDigits:1}),c=U(`{done} of {total} GB`,{done:s.format(r*Math.max(0,Math.min(1,i))/1e9),total:s.format(r/1e9)}),l=!e.notesError&&!e.notesUpgradeError&&i<1&&a!==void 0&&Number.isFinite(a)&&a>0?new Intl.NumberFormat(xt()).format(Math.max(1,Math.round(a/60))):void 0;return{progress:c,eta:l?U(`about {minutes} min left`,{minutes:l}):``,detail:l?U(`{progress} · about {minutes} min left`,{progress:c,minutes:l}):c}}function $G({children:e,downloading:t}){let[n,r]=(0,H.useState)(),[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(!1);(0,H.useEffect)(()=>{let e=window.yogurt.setup.onState(e=>{r(e),e.notesError||s(!1)});return window.yogurt.setup.state().then(e=>r(t=>t??e)),e},[]);let c=async()=>{a(!0),s(!1);try{await window.yogurt.setup.retry()}catch{s(!0)}finally{a(!1)}};return n?.notesError?(0,G.jsxs)(`div`,{"data-testid":`notes-model-error`,role:`status`,className:`flex flex-col items-start gap-2 text-[14px] text-muted`,children:[(0,G.jsx)(`p`,{className:`font-medium text-ink`,children:U(`The notes model couldn't download.`)}),(0,G.jsx)(`p`,{children:n.notesError}),(0,G.jsx)(`button`,{"data-testid":`notes-model-retry`,onClick:()=>void c(),disabled:i,className:`rounded px-1 font-medium text-accent underline underline-offset-2 disabled:opacity-50`,children:U(i?`Retrying…`:`Retry download`)}),o&&(0,G.jsx)(`p`,{className:`text-danger`,children:U(`Couldn't restart the download. Try again.`)})]}):t&&n&&(n.notesFraction!==void 0||n.notesDownloading)?t(YG(n.notesFraction??0)):e}function eK(e,t,n){let r=(1-Math.cos(n*Math.PI*2))/2,i=4.7-3.7*r,a=0;for(let o of[-1,1]){let s=(e-9-o*i)/(1+r*.12),c=(t-10-o*Math.sin(n*Math.PI*2)*.65)/(1-r*.08);a+=2.75**2/Math.max(.01,s*s+c*c)}return Math.max(0,Math.min(255,(a-.98)*1700))}function tK(){let e=(0,H.useRef)(null),t=jf();return(0,H.useEffect)(()=>{let n=e.current,r=n?.getContext(`2d`);if(!n||!r||t)return;let i=r.createImageData(72,80),a=0,o=-1/0,s=!1,c=e=>{if(n.isConnected){if(e-o>=1e3/30){o=e;let t=getComputedStyle(n).color.match(/[\d.]+/g).map(Number);for(let n=0;n<80;n++)for(let r=0;r<72;r++){let a=(n*72+r)*4;i.data[a]=t[0],i.data[a+1]=t[1],i.data[a+2]=t[2],i.data[a+3]=eK((r+.5)/4,(n+.5)/4,e%2800/2800)}r.putImageData(i,0,0)}a=requestAnimationFrame(c)}},l=()=>{cancelAnimationFrame(a),s&&!document.hidden&&(a=requestAnimationFrame(c))},u=new IntersectionObserver(([e])=>{s=e.isIntersecting,l()});return u.observe(n),document.addEventListener(`visibilitychange`,l),()=>{u.disconnect(),cancelAnimationFrame(a),document.removeEventListener(`visibilitychange`,l)}},[t]),t?(0,G.jsxs)(`span`,{className:`thinking-dots thinking-dots-static`,"data-testid":`thinking-dots`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]}):(0,G.jsx)(`canvas`,{ref:e,width:72,height:80,className:`thinking-dots`,"data-testid":`thinking-dots`,"aria-hidden":`true`})}var nK=H.createContext(void 0);function rK(e){let t=H.useContext(nK);if(t===void 0&&!e)throw Error(hH(33));return t}var iK=H.createContext(void 0);function aK(e){let t=H.useContext(iK);if(t===void 0&&!e)throw Error(hH(36));return t}var oK=H.createContext(void 0);function sK(e=!0){let t=H.useContext(oK);if(t===void 0&&!e)throw Error(hH(25));return t}var cK=H.createContext(null);function lK(e=`root`){let t=H.useContext(cK),n=H.useContext(iK);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var uK={visible:!0,ref:null};function dK(){return uK}function fK(e,t,n=`root`){let r=lK(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??dK)({label:e.label,children:e.children,render:e.render}),a=eB(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function pK(e){e.preventDefault()}function mK(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=aK(),u=sK(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return H.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?pK:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:Vie})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!fz&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&eW(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var hK={type:`regular-item`};function gK(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=H.useRef(null),{getButtonProps:d,buttonRef:f}=tW({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=mK({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=H.useCallback(e=>dV(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=eB(u,f);return H.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var _K=H.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function vK(){return H.useContext(_K)}function yK(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=vK(),u=H.useRef(-1),[d,f]=H.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=H.useRef(null),h=H.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Y(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var bK=H.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=aK(),f=yK({guess:!0,label:a}),p=iW(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=gK({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:hK});return wV(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),xK=H.forwardRef(function(e,t){let n=fK(e,t);return n.visible?(0,G.jsx)(bK,{...e,ref:n.ref}):null}),SK=H.createContext(void 0);function CK(){return H.useContext(SK)}function wK(e,t){let n=OV(e.render);if(H.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function TK(e,t,n){let r=wK(e,t),i=r===t?void 0:r;return[r,H.useCallback(e=>n?.(e?i:void 0),[i,n])]}function EK(e,t,n){let r=OV(e.render),i=H.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var DK=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=aK(),m=CK(),{side:h,align:g}=rK(),_=nG(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),j=l.useState(`disabled`),M=l.useState(`openMethod`),N=l.useState(`activeTriggerId`),P=l.useState(`listElement`),[F,I]=TK(e,u,d),L=EK(e,C,N),R=w.type===`menu`?m:void 0,ee=w.type===`context-menu`,z=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(z=()=>l.state.activeIndex===null&&P),CH({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),H.useEffect(()=>{function e(e){l.setOpen(!1,Hz(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),uU(D,{enabled:A&&!j&&!ee&&w.type!==`menubar`,closeDelay:k});let te=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:ne,handleFocus:re}=(H.useContext(cK)?.useParentHandoff??kK)(l,w,v,f),ie=wV(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,te,I],stateAttributesMapping:jz,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&eG.has(e.key)&&e.stopPropagation()},onFocus:re},RW(y),c,{"data-rootownerid":E}]}),ae=w.type===void 0||ee;(C||w.type===`menubar`&&T!==`outside-press`)&&(ae=!0);let B=R?.getReturnElement??ne;return(0,G.jsx)(lH,{context:D,openInteractionType:M,modal:ee,disabled:!x,returnFocus:a??B??ae,explicitReturnFocus:a===void 0&&B?!1:void 0,initialFocus:z,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:ie})}),OK={parentVirtualFocusRef:void 0,handleFocus:void 0};function kK(){return OK}var AK=H.forwardRef(function(e,t){let n=lK()?.Popup??DK;return(0,G.jsx)(n,{...e,ref:t})}),jK=H.createContext(void 0);function MK(){let e=H.useContext(jK);if(e===void 0)throw Error(hH(32));return e}var NK=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=aK();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,G.jsx)(jK.Provider,{value:n,children:(0,G.jsx)(WV,{ref:t,...r,portalOwnerRole:o})})});function PK(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=oB(i),[,o]=H.useState(0),s=YR(IK).current,c=YR(FK).current,l=H.useRef(0),u=H.useRef(!0),d=H.useRef(null),f=H.useRef(null),p=oB(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=oB((e,t)=>{c.set(e,t),p()}),h=oB(e=>{c.delete(e),p()}),g=oB(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!zK(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&BK(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=RK(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=oB(()=>{let[e,t]=LK(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Y(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Y(()=>{u.current&&v()}),Y(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=oB(e=>(s.add(e),()=>{s.delete(e)})),b=H.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,G.jsx)(_K.Provider,{value:b,children:t})}function FK(){return new Map}function IK(){return new Set}function LK(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>BK(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function RK(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function zK(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function BK(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var VK=H.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=LV,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=aK(),x=MK(),S=sK(!0),C=v.useState(`parent`),w=v.useState(`floatingRootContext`),T=v.useState(`floatingTreeRoot`),E=v.useState(`mounted`),D=v.useState(`open`),O=v.useState(`modal`),k=v.useState(`openMethod`),A=v.useState(`activeTriggerElement`),j=v.useState(`transitionStatus`),M=v.useState(`positionerElement`),N=v.useState(`instantType`),P=v.useState(`adaptiveOrigin`),F=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),L=v.useState(`floatingParentNodeId`),R=w.useState(`domReferenceElement`),ee=n,z=c,te=l,ne=s,re=h;C.type===`context-menu`&&(ee=n??C.context?.anchor,ne??=`start`,!o&&ne!==`center`&&(te=e.alignOffset??2,z=e.sideOffset??-5));let ie=o,ae=ne;C.type===`menu`?(ie??=`inline-end`,ae??=`start`,re=e.collisionAvoidance??RV):C.type===`menubar`&&(ie??=C.context.orientation===`vertical`?`inline-end`:`bottom`,ae??=`start`);let B=C.type===`context-menu`,oe=NW({anchor:ee,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:ie,sideOffset:z,align:ae,alignOffset:te,arrowPadding:B?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:re,shift:B?{crossAxis:!(`side`in re&&re.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:P,lazyFlip:y?`placement`:!1});H.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,Hz(Xz)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[v,T.events,I]),H.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,Hz(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let V=oz();H.useEffect(()=>{D||V.clear()},[D,V]),H.useEffect(()=>{function e(e){if(D&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&A&&A!==e.target){let e=v.select(`closeDelay`);e>0?V.isStarted()||V.start(e,()=>{v.setOpen(!1,Hz(Xz))}):v.setOpen(!1,Hz(Xz))}else V.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,V]),H.useEffect(()=>{let e={open:D,nodeId:I,parentNodeId:L,reason:v.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,v,I,L]),LW({store:v,domReference:R,positionerElement:M,open:D});let se={open:D,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,nested:C.type===`menu`,instant:N},ce=C.type===`menubar`&&C.context.modal;QW(D&&(ce||O&&F!==`trigger-hover`),k===`touch`,M,A);let le=zW(e,se,{styles:oe.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),ue=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),de=null;return C.type===`menubar`?de=C.context.contentElement:C.type===void 0&&(de=A),(0,G.jsxs)(nK.Provider,{value:oe,children:[ue&&(0,G.jsx)(IW,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:mW(!D),cutout:de}),(0,G.jsx)(QV,{id:I,children:(0,G.jsx)(PK,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:le})})]})}),HK=H.createContext(null);function UK(e){let t=H.useContext(HK);if(t===null&&!e)throw Error(hH(5));return t}function WK(e){return e==null?Uz:e.type.startsWith(`key`)?Yz:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?Wie:Uz}var GK={...eU,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=eU.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>pz&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!eU.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},KK=class extends GH{constructor(e,t,n=!1){let r=new RH,i=JK(r,t,n,e);super(i,qK(r),GK),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function qK(e){return{positionerRef:H.createRef(),popupRef:H.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:H.createRef(),beforeTriggerFocusGuardRef:H.createRef(),beforeContentFocusGuardRef:H.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function JK(e,t,n=!1,r){return{...JH(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:nz,inputProps:nz,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new KV,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:nz,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var YK=H.createContext(null);function XK(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function ZK(e,t){return e===`list-navigation`||XK(e,t)}var QK=QR(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0,isSubmenu:_=!1,virtualFocus:v=!1,virtualFocusRef:y,allowEscape:b=!0,resetOnPointerLeave:x=!0}=e,S=sK(!0),C=aK(!0),w=UK(!0),T=C?.store,E=C?.virtualFocus??!1,D=H.useMemo(()=>_&&T?{type:`menu`,store:T}:w?{type:`menubar`,context:w}:S&&!T?{type:`context-menu`,context:S}:{type:void 0},[S,T,w,_]),O=iW(),k=iW(),[A,j]=H.useState(void 0),M=(A??k)||void 0,N=YV(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=YR(()=>F?P?.state.instantType:void 0).current,L=YR(()=>{let e=new KK({open:o,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:D,disabled:s,highlightItemOnHover:g,modal:D.type===void 0?c:void 0,rootId:O,instantType:I},M,N!=null);return e.context.virtualFocusRef=y,e}).current;L.useControlledProp(`openProp`,n),L.useControlledProp(`triggerIdProp`,m),L.useContextCallback(`onOpenChangeComplete`,i);let R=L.useState(`floatingTreeRoot`),ee=ZV(R),z=L.useState(`open`),te=L.useState(`activeTriggerElement`),ne=L.useState(`positionerElement`),re=L.useState(`hoverEnabled`),ie=L.useState(`disabled`),ae=L.useState(`lastOpenChangeReason`),B=L.useState(`parent`),oe=L.useState(`activeIndex`),V=L.useState(`keyboardOpen`),se=L.useState(`payload`),ce=L.useState(`floatingParentNodeId`),le=H.useRef(null),ue=H.useRef(B.type!==`context-menu`),de=oz(),fe=H.useRef(!0),pe=oz(),me=ce!=null,{openMethod:he,triggerProps:ge}=lW(z);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:B.type===void 0?c:void 0,openMethod:he,rootId:O}),PH(L);let{forceUnmount:_e,transitionStatus:ve}=FH(z,L,()=>{L.set(`allowMouseEnter`,!1)},F),ye=SH(L.context.popupRef);H.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!z){e();return}if(ve!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return ye(e,t.signal),()=>{t.abort()}},[I,z,ve,ye,L]),Y(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:ee,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:ee,floatingParentNodeId:N})},[S,C,ee,N,te,L]),H.useEffect(()=>{z||(le.current=null),B.type===`context-menu`&&(z?de.start(500,()=>{ue.current=!0}):(de.clear(),ue.current=!1))},[de,z,B.type]),Y(()=>{!z&&!re&&L.set(`hoverEnabled`,!0)},[z,re,L]);let be=oB((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||z===e&&t.trigger===te&&ae===n)return;let i=MH(t);if(!e&&t.trigger==null&&(t.trigger=te??void 0),r?.(e,t),t.isCanceled)return;L.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!fe.current)return;e&&n===`trigger-focus`?(fe.current=!1,pe.start(300,()=>{fe.current=!0})):(fe.current=!0,pe.clear());let o=!e&&(n===`escape-key`||n==null);le.current=t.event;let s=jH(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&ZK(n,a),s.instantType=B.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:XK(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),xe=_H({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:be}),Se=xe.context.events;Y(()=>{let e=({open:e,eventDetails:t})=>be(e,t);return Se.on(`setOpen`,e),()=>{Se?.off(`setOpen`,e)}},[Se,be]),Y(()=>L.subscribeToParentMenu(),[L]);let Ce=H.useCallback(()=>{L.setOpen(!1,Hz(Zz))},[L]);H.useImperativeHandle(d,()=>({unmount:_e,close:Ce}),[_e,Ce]);let we;B.type===`context-menu`&&(we=B.context),H.useImperativeHandle(we?.positionerRef,()=>ne,[ne]),H.useImperativeHandle(we?.actionsRef,()=>({setOpen:be}),[be]);let Te=pH(xe,{enabled:!ie,bubbles:{escapeKey:f&&B.type===`menu`},outsidePress(){return B.type!==`context-menu`||le.current?.type===`contextmenu`||ue.current},externalTree:me?R:void 0}),Ee=yW(),De=yU(xe,{enabled:!ie,listRef:L.context.itemDomElements,activeIndex:oe,virtual:v,nested:B.type===`menubar`||!v&&B.type!==void 0,parentOrientation:B.type===`menubar`?B.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?V:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:Ee===`rtl`,disabledIndices:tz,onNavigate(e,t){L.setActiveIndex(e,WK(t),t?.nativeEvent)},openOnArrowKeyDown:B.type!==`context-menu`&&!(v&&_),externalTree:!v&&me?R:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),Oe=H.useCallback(e=>{L.context.typingRef.current=e},[L]),ke=bU(xe,{enabled:!ie&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:oe,resetMs:500,onMatch:(e,t)=>{z&&e!==oe&&L.setActiveIndex(e,Yz,t.nativeEvent)},onTyping:Oe}),Ae=oB(a),je=H.useRef(-1),Me=oB(()=>{let e=L.state.activeIndex,t=e===null?void 0:L.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(je.current===n&&L.context.reportedItem===t)return;je.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=Uz,L.context.highlightEvent=void 0,a&&Ae(t,zie(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Y(()=>{Me()},[oe,Me]);let Ne=H.useMemo(()=>{if(!v)return De.reference;if(!De.trigger)return nz;let{onFocus:e,...t}=De.trigger;return t},[v,De.reference,De.trigger]);L.useSyncedValue(`inputProps`,v?De.reference??nz:nz);let Pe=H.useMemo(()=>{let e=dV(ke.reference,Ne,Te.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},ge);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=z,e},[L,ke.reference,Ne,Te.reference,ge,z]),Fe=H.useMemo(()=>{let e=dV(De.trigger,Te.trigger,ge);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[De.trigger,Te.trigger,ge]);YR(()=>(L.update({inactiveTriggerProps:Fe}),null)),IH(L,{floatingRootContext:xe,activeTriggerProps:Pe,inactiveTriggerProps:Fe,popupProps:H.useMemo(()=>dV(TH,{onMouseMove(){L.set(`allowMouseEnter`,!0),B.type===`menu`&&L.set(`hoverEnabled`,!1)},onClick(){L.select(`hoverEnabled`)&&L.set(`hoverEnabled`,!1)},onKeyDown(e){let t=L.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},ke.floating,De.floating,Te.floating),[B.type,L,ke.floating,De.floating,Te.floating]),itemProps:De.item??nz});let Ie=H.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:Me}),[L,D,u,l,b,k,v,E,Me]),Le=typeof t==`function`?t({payload:se}):t,Re=(0,G.jsxs)(iK.Provider,{value:Ie,children:[p&&(0,G.jsx)(OH,{handle:p,store:L}),Le]});return(B.type===void 0||B.type===`context-menu`)&&(Re=(0,G.jsx)($V,{externalTree:R,children:Re})),Re});function $K(e){let t=H.useContext(YK);if(t===null)return(0,G.jsx)(QK,{...e});let n=t.Root;return(0,G.jsx)(YK.Provider,{value:null,children:(0,G.jsx)(n,{...t.options,...e})})}var eq=5;function tq(e,t){let n=nq(t);return e.clientX>=n.left-eq&&e.clientX<=n.right+eq&&e.clientY>=n.top-eq&&e.clientY<=n.bottom+eq}function nq(e){let t=e.getBoundingClientRect(),n=$I(e);if(mz)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function rq(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=QU(),{ref:i,index:a}=yK(e),o=n===a,s=H.useRef(null),c=eB(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function iq(e){let{render:t,className:n,style:r,state:i=nz,props:a=tz,refs:o=tz,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=rq({metadata:s});return wV(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function aq(e){if(rL(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!hL(e))return aq(vL(e))}function oq(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=H.useRef(!1);return H.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,dB(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:nz,[t,n,r])}var sq=$R(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=aK(!0),h=tU(d)??m?.store;if(!h)throw Error(hH(85));let g=iW(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=H.useRef(null),S=lq(),C=QU(!0),w=XV(),T=H.useMemo(()=>w??new KV,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=NH(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:ZV(T),floatingParentNodeId:YV(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=tW({disabled:A,native:o});H.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=H.useRef(null),P=oz(),F=oB(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;bz(N.current,t)||bz(h.select(`positionerElement`),t)||t===N.current||t!=null&&aq(t)===h.select(`rootId`)||tq(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:Gie})});H.useEffect(()=>{let e=dB(N.current);if(y&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,F,{once:!0}),()=>{e.removeEventListener(`mouseup`,F)}},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=fU(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:OU({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),R=cq(y,h.select(`lastOpenChangeReason`)),ee=uH(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),z=iU(v,{enabled:!A&&I}),te=oq({open:y,enabled:O,mouseDownAction:`open`}),ne=H.useMemo(()=>dV(z.reference,ee.reference),[z.reference,ee.reference]),re=h.useState(`triggerProps`,D),ie=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:ae,handleFocusTargetFocus:B}=aW(h,x),oe={disabled:A,open:y},V=[N,t,M,E,x],se=[ne,L??nz,re,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),dB(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},ie,O?{role:`menuitem`}:{},te,p,j],ce=wV(`button`,e,{enabled:!O,stateAttributesMapping:kz,state:oe,ref:V,props:se});return O?(0,G.jsx)(iq,{tag:`button`,render:n,className:r,style:i,state:oe,refs:V,props:se,stateAttributesMapping:kz}):y?(0,G.jsxs)(H.Fragment,{children:[(0,G.jsx)(mB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:ae},`${g}-pre-focus-guard`),(0,G.jsx)(H.Fragment,{children:ce},g),(0,G.jsx)(mB,{ref:h.context.triggerFocusTargetRef,onFocus:B},`${g}-post-focus-guard`)]}):(0,G.jsx)(H.Fragment,{children:ce},g)});function cq(e,t){let n=oz(),[r,i]=H.useState(!1);return Y(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function lq(){let e=UK(!0);return H.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var uq={"⌃⌘S":`Ctrl+Shift+S`,"⌃⌘F":`F11`,"⌥⇧⌘V":`Ctrl+Shift+V`};function dq(e,t){if(t===`darwin`)return e;if(uq[e])return uq[e];let n=e.replace(/[⌃⇧⌥⌘]/g,``);return n===e?e:[...[e.includes(`⌘`)||e.includes(`⌃`)?`Ctrl`:``,e.includes(`⇧`)?`Shift`:``,e.includes(`⌥`)?`Alt`:``].filter(Boolean),n].join(`+`)}var fq=(e,t)=>t===`darwin`?e.metaKey:e.ctrlKey&&!e.metaKey;function pq(e,t){return t===`darwin`?e.mac:`other`in e?e.other:t===`win32`?e.windows:e.linux}var mq=()=>globalThis.window?.yogurt?.os??`darwin`,hq=e=>dq(e,mq()),gq=e=>fq(e,mq()),_q=()=>mq()===`darwin`,vq=e=>pq(e,mq()),yq=Object.defineProperty,bq=(e,t)=>{let n={};for(var r in e)yq(n,r,{get:e[r],enumerable:!0});return t||yq(n,Symbol.toStringTag,{value:`Module`}),n};function xq(e){let t=H.createContext(void 0);return[({value:e,children:n})=>(0,G.jsx)(t.Provider,{value:e,children:n}),()=>{let n=H.useContext(t);if(n===void 0)throw Error(`useContext must be used within ${e??`a Provider`}`);return n}]}var Sq=sh.transition.overlay,Cq=sh.spring.dialog,wq=sh.transition.dismiss;sh.transition.drawerOut;var Tq=sh.transition.dialogFade,Eq=sh.spring.toast;sh.transition.drawer;var Dq=sh.transition.sheet;function Oq(e,t,n,r){return{enter:dh(e??n),exit:dh(t??r??e??n)}}function kq(e,t){return Oq(e,t,Sq)}function Aq(e,t,n){let{enter:r,exit:i}=Oq(t,n,e?Dq:Cq,wq),a=dh(Tq);return{enter:e||t?r:{...r,opacity:a},exit:i}}var jq=[`top`,`right`,`bottom`,`left`];function Mq(e){return typeof e==`string`&&jq.includes(e)?e:void 0}var Nq={top:`translateY(-100%)`,right:`translateX(100%)`,bottom:`translateY(100%)`,left:`translateX(-100%)`};function Pq(e){let t=e===`top`||e===`bottom`?`rotateX`:`rotateY`;return{tipped:`perspective(500px) ${t}(${e===`bottom`||e===`left`?`20deg`:`-20deg`}) scale(${sh.scale.dialog})`,upright:`perspective(500px) ${t}(0deg) scale(1)`}}function Fq({side:e,from:t=`top`,reduce:n,enter:r,exit:i}){if(e){let t=e===`left`||e===`right`?`translateX(0%)`:`translateY(0%)`,a={opacity:0,transform:n?t:Nq[e]};return{initial:a,animate:{opacity:1,transform:t,transition:r},exit:{...a,transition:i}}}let{tipped:a,upright:o}=Pq(t),s={opacity:0,filter:sh.blur.surface,transform:n?o:a};return{initial:s,animate:{opacity:1,filter:`blur(0px)`,transform:o,transition:r},exit:{...s,transition:i}}}function Iq(){let[e,t]=H.useState(!1);return H.useLayoutEffect(()=>{let e=requestAnimationFrame(()=>t(!0));return()=>cancelAnimationFrame(e)},[]),e}function Lq(e,t,n){return n&&!t?e.exit:e.animate}function Rq(e,t){let[n,r]=H.useState(!e);return e&&n&&r(!1),{hidden:t&&!e&&n,onAnimationComplete:()=>{e||r(!0)}}}var zq={backgroundColor:`transparent`,backdropFilter:`none`,opacity:`0`};function Bq(e){let t=getComputedStyle(e);return{backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,opacity:t.opacity,hasImage:t.backgroundImage!==`none`}}function Vq(e,t,n){let r=t=>({backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,...e.hasImage?{opacity:t.opacity}:{}});return[r(t),r(n)]}function Hq(e){let{visible:t}=e,n=H.useRef(null),r=H.useRef(e);H.useLayoutEffect(()=>{r.current=e});let i=H.useRef(null),a=H.useRef(!1);return H.useLayoutEffect(()=>{let{animated:e=!0,enter:o,exit:s,onFadedOut:c}=r.current,l=n.current,u=!a.current;if(a.current=!0,u&&!t)return;if(!l||!e||typeof l.animate!=`function`){t||c?.();return}let d=i.current,f=d?Bq(l):null;d?.cancel();let p=Bq(l),{duration:m,easing:h}=gh(t?o:s),g=l.animate(Vq(p,f??(t?zq:p),t?p:zq),{duration:m,easing:h,fill:t?`backwards`:`forwards`});i.current=g,g.finished.then(()=>{i.current===g&&(t?i.current=null:r.current.onFadedOut?.())}).catch(()=>{})},[t]),H.useCallback(e=>{n.current=e},[])}var Uq=new WeakMap;function Wq(e){if(typeof e==`string`)return Zm[e];let t=Uq.get(e);return t||(t=Zm.create(e),Uq.set(e,t)),t}function Gq(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Kq(e,t){let n=e.props;return H.createElement(Wq(e.type),{...n,...t,ref:Gq(n.ref,t.ref),style:{...n.style,...t.style}})}function qq(e,t){return typeof e==`function`?((n,r)=>Kq(e(n,r),t)):e?Kq(e,t):H.createElement(Wq(`div`),t)}var Jq=H.createContext(void 0);function Yq(e){let t=H.useContext(Jq);if(!e&&t===void 0)throw Error(hH(27));return t}var Xq=H.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=Yq(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return wV(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:jz,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Zq=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=Yq(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=tW({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Hz(Hie,e.nativeEvent))}return wV(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),Qq=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Yq(),c=iW(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),wV(`p`,e,{ref:t,props:[{id:c},o]})}),$q=H.createContext(void 0);function eJ(){let e=H.useContext($q);if(e===void 0)throw Error(hH(26));return e}var tJ=`--nested-dialogs`,nJ=`data-nested-dialog-open`,rJ={...Az,...Ez,nestedDialogOpen(e){return e?{[nJ]:``}:null}},iJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=Yq(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);eJ(),CH({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?EH(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=wV(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...TH,hidden:!m,onKeyDown(e){eG.has(e.key)&&e.stopPropagation()},style:{[tJ]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:rJ});return(0,G.jsx)(lH,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),aJ=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=Yq(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,G.jsx)($q.Provider,{value:n,children:(0,G.jsxs)(WV,{ref:t,...r,children:[a&&o===!0&&(0,G.jsx)(IW,{ref:i.context.internalBackdropRef,inert:mW(!s)}),e.children]})}):null});function oJ({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=H.useState(0),[d,f]=H.useState(0),p=l===0,m=pH(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=Sz(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||bz(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return XW(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),Y(()=>{!r&&!i&&(u(0),f(0))},[r,i]),Y(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),IH(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var sJ={...eU,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},cJ=class extends GH{constructor(e,t,n){let r=new RH,i=uJ(e,r,t,n);super(i,dJ(r),sJ)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(jH(this.state,e,t.trigger)))}};function lJ(){let e=new RH;return new HU(Object.freeze(uJ(void 0,e)),Object.freeze(dJ(e)),sJ)}function uJ(e,t,n,r=!1){return{...JH(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function dJ(e){return{popupRef:H.createRef(),backdropRef:H.createRef(),internalBackdropRef:H.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function fJ(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=Yq(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=DH((e,t)=>new cJ({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);LH(b,x),PH(b);let{forceUnmount:w}=FH(x,b);H.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Hz(Zz))}),[w,b]);let T=x||S||u!=null;return(0,G.jsxs)(Jq.Provider,{value:b,children:[u&&(0,G.jsx)(OH,{handle:u,store:b}),T&&(0,G.jsx)(oJ,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var pJ=QR(function(e){return fJ(`dialog`,e)}),mJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=eJ(),c=Yq(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`transitionStatus`),f=c.useState(`nestedOpenDialogCount`),p=c.useState(`mounted`),m=c.useStateSetter(`viewportElement`);return wV(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:rJ,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})}),hJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=Yq(),c=iW(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),wV(`h2`,e,{ref:t,props:[{id:c},o]})}),gJ=$R(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=Yq(!0),f=tU(l)??d;if(!f)throw Error(hH(79));let p=iW(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),_=H.useRef(null),{registerTrigger:v,isMountedByThisTrigger:y}=NH(p,_,f,{payload:c}),{getButtonProps:b,buttonRef:x}=tW({disabled:a,native:o}),S=uH(m),C=cW(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),w={disabled:a,open:h},T=f.useState(`triggerProps`,y);return wV(`button`,e,{state:w,ref:[x,t,v,_],props:[S.reference,T,C,{[MV]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,b],stateAttributesMapping:Oz})}),_J=class extends gH{constructor(){super(lJ(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;t!==null&&(t.set(`payload`,e),t.setOpen(!0,Hz(Zz)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function vJ(){return new _J}var[yJ,bJ]=xq(`Dialog.Root`),xJ=H.createContext({keepMounted:!1});function SJ(e){return function({defaultOpen:t,...n}){let r=n.open!==void 0,[i,a]=H.useState(t??!1),o=r?!!n.open:i,s=(e,t)=>{n.onOpenChange?.(e,t),t?.isCanceled||r||a(e)};return(0,G.jsx)(yJ,{value:{open:o},children:(0,G.jsx)(e,{...n,open:o,onOpenChange:s})})}}function CJ({keepMounted:e,children:t,...n}){let{open:r}=bJ();return(0,G.jsx)($f,{children:(r||e)&&(0,G.jsx)(aJ,{...n,keepMounted:!0,children:(0,G.jsx)(xJ,{value:{keepMounted:!!e},children:(0,G.jsx)(yh,{children:t})})},`portal`)})}function wJ(e){let{open:t}=bJ(),{keepMounted:n}=H.use(xJ),r=Yf(),{hidden:i,onAnimationComplete:a}=Rq(t,n),o=!r||n&&!t&&!i,s=Iq();return{initial:e.initial,animate:s?Lq(e,t,n):e.initial,exit:e.exit,onAnimationComplete:a,...o?{hidden:!1}:{},...t?{}:{style:{pointerEvents:`none`}}}}function TJ({transition:e,exitTransition:t,render:n,...r}){let{open:i}=bJ(),{keepMounted:a}=H.use(xJ),[o,s]=Jf(),{hidden:c,onAnimationComplete:l}=Rq(i,a),u=Hq({visible:i&&o,...kq(e,t),onFadedOut:()=>{l(),s?.()}}),d=!o||a&&!i&&!c;return(0,G.jsx)(Xq,{...r,render:qq(n,{ref:u,...d?{hidden:!1}:{},...i?{}:{style:{pointerEvents:`none`}}})})}function EJ({from:e,transition:t,exitTransition:n,render:r,...i}){let a=Ch(),o=Mq(i[`data-side`]),{enter:s,exit:c}=Aq(o,t,n),l=wJ(Fq({side:o,from:e,reduce:a,enter:s,exit:c}));return(0,G.jsx)(iJ,{...i,render:qq(r,l)})}var DJ=bq({Backdrop:()=>jJ,Close:()=>PJ,Description:()=>IJ,Handle:()=>RJ,Popup:()=>MJ,Portal:()=>AJ,Root:()=>kJ,Title:()=>FJ,Trigger:()=>NJ,Viewport:()=>LJ,createHandle:()=>zJ}),OJ=SJ(pJ);function kJ(e){return(0,G.jsx)(OJ,{...e})}function AJ(e){return(0,G.jsx)(CJ,{...e})}function jJ(e){return(0,G.jsx)(TJ,{...e})}function MJ(e){return(0,G.jsx)(EJ,{...e})}var NJ=gJ,PJ=Zq,FJ=hJ,IJ=Qq,LJ=mJ,RJ=_J,zJ=vJ,BJ=(0,H.forwardRef)(function({className:e,...t},n){return(0,G.jsx)(iJ,{...t,ref:n,className:t=>`${typeof e==`function`?e(t):e??``} dialog-motion`})}),VJ=DJ.Close;function HJ({title:e,description:t,children:n,onCancel:r,busy:i=!1,role:a=`dialog`,testId:o,container:s}){let[c,l]=(0,H.useState)(!0),u=jf(),d=(0,H.useRef)(null),f=(0,H.useRef)(document.activeElement instanceof HTMLElement?document.activeElement:null),p=(0,H.useRef)(r);return p.current=r,(0,H.useEffect)(()=>{if(c)return;let e=setTimeout(()=>p.current(),u?Of.micro:Of.base);return()=>clearTimeout(e)},[c,u]),(0,G.jsx)(DJ.Root,{open:c,onOpenChange:(e,t)=>{!e&&i?t.cancel():l(e)},children:(0,G.jsxs)(DJ.Portal,{keepMounted:!0,container:s,children:[(0,G.jsx)(DJ.Backdrop,{className:`app-modal-backdrop no-drag`,transition:{ease:Of.out,duration:(u?Of.micro:Of.surface)/1e3},exitTransition:{ease:Of.out,duration:(u?Of.micro:Of.base)/1e3}}),(0,G.jsxs)(BJ,{ref:d,"data-testid":o,role:a,"aria-modal":`true`,"aria-busy":i||void 0,className:`app-modal no-drag`,finalFocus:f,initialFocus:()=>{let e=d.current?.querySelector(`[data-dialog-focus], [data-dialog-cancel]`);return e instanceof HTMLInputElement&&e.select(),e??d.current},children:[(0,G.jsxs)(`div`,{className:`modal-copy`,children:[(0,G.jsx)(DJ.Title,{children:e}),t&&(0,G.jsx)(DJ.Description,{children:t})]}),n]})]})})}function UJ({id:e,title:t,onNew:n,onDeleted:r,onEdit:i,className:a=``}){let o=(0,H.useRef)(null),s=(0,H.useRef)(null),c=(0,H.useCallback)(e=>{o.current=e,s.current=e?.closest(`dialog`)??null},[]),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)(),p=e=>{o.current?.focus(),f(e),i?.(e)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)($K,{modal:!1,onOpenChange:(e,t)=>{e&&u(t.event instanceof MouseEvent&&t.event.detail>0)},children:[(0,G.jsx)(sq,{ref:c,"data-testid":`chat-menu`,className:`chat-icon ask-menu-trigger ${a}`,"aria-label":U(`More`),title:U(`More`),children:(0,G.jsx)(Ig,{size:17,"aria-hidden":`true`})}),(0,G.jsx)(NK,{container:s,children:(0,G.jsx)(VK,{side:`bottom`,align:`end`,sideOffset:6,className:`ask-menu-positioner`,children:(0,G.jsxs)(AK,{"data-pointer":l,className:`menu-entry ask-actions-menu`,"aria-label":U(`More`),finalFocus:!d&&o,onKeyDown:e=>{e.key===`Escape`&&e.stopPropagation()},children:[(0,G.jsxs)(xK,{"data-testid":`chat-rename`,onClick:()=>p(`rename`),children:[(0,G.jsx)(I_,{size:14,"aria-hidden":`true`}),U(`Rename`)]}),n&&(0,G.jsxs)(xK,{"data-testid":`chat-new`,onClick:n,children:[(0,G.jsx)(z_,{size:14,"aria-hidden":`true`}),U(`New chat`)]}),(0,G.jsxs)(xK,{"data-testid":`chat-delete`,className:`text-danger`,onClick:()=>p(`delete`),children:[(0,G.jsx)(X_,{size:14,"aria-hidden":`true`}),U(`Delete`)]})]})})})]}),d&&!i&&(0,G.jsx)(WJ,{id:e,title:t,kind:d,container:s.current??void 0,onClose:()=>{f(void 0),o.current?.focus({preventScroll:!0})},onDeleted:r})]})}function WJ({id:e,title:t,kind:n,container:r,onClose:i,onDeleted:a}){let[o,s]=(0,H.useState)(t),[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(!1),f=async()=>{if(!(c||n===`rename`&&!o.trim())){l(!0),d(!1);try{n===`delete`?await window.yogurt.conversations.delete(e):await window.yogurt.conversations.rename(e,o.trim()),i(),n===`delete`&&a()}catch{d(!0)}finally{l(!1)}}};return(0,G.jsx)(HJ,{container:r,busy:c,testId:n===`delete`?`chat-delete-confirm`:`chat-rename-dialog`,role:n===`delete`?`alertdialog`:`dialog`,onCancel:i,title:U(n===`delete`?`Delete “{title}”?`:`Rename “{title}”`,{title:t||U(`New chat`)}),description:n===`delete`?vq({mac:U(`This conversation is removed from this Mac for good. Your meetings stay as they are.`),other:U(`This conversation is removed from this computer for good. Your meetings stay as they are.`)}):void 0,children:(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},children:[n===`rename`&&(0,G.jsx)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,G.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`chat-rename-input`,"aria-label":U(`Conversation name`),value:o,maxLength:200,className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`,disabled:c,onChange:e=>s(e.target.value)})}),u&&(0,G.jsx)(`p`,{className:`chat-error`,role:`alert`,children:U(`Couldn't save your changes`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{type:`submit`,"data-testid":n===`delete`?`chat-delete-yes`:`chat-rename-save`,disabled:c||n===`rename`&&!o.trim(),className:`modal-button ${n===`delete`?`danger`:`primary`}`,children:U(n===`delete`?`Delete`:`Save`)}),(0,G.jsx)(VJ,{type:`button`,"data-dialog-cancel":!0,"data-testid":`chat-delete-cancel`,className:`modal-button`,disabled:c,children:U(`Cancel`)})]})]})})}var GJ=e=>e.title.trim()||(e.kind===`meeting`?U(`Untitled meeting`):U(`Folder`)),KJ=e=>({name:e.length?GJ(e[0]):U(`All meetings`),others:e.length>1?U(`and {count} others`,{count:e.length-1}):``});function qJ({chips:e}){let t=KJ(e),n=e[0]?.kind===`folder`?Jg:Hg;return(0,G.jsxs)(G.Fragment,{children:[!!e.length&&(0,G.jsx)(n,{size:14,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,G.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,G.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]}),(0,G.jsx)(Sg,{size:12,"aria-hidden":`true`})]})}function JJ({chips:e}){let t=KJ(e);return(0,G.jsx)(`span`,{className:`chat-answer-scope`,title:e.length?e.map(GJ).join(`
-`):t.name,children:e.length?hee(`Searched {name}`,{name:(0,G.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,G.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,G.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]})}):U(`Searched all meetings`)})}function YJ(e,t,n,r){let i,a=e.scrollTop,o=()=>{i?.stop(),i=void 0},s=()=>r(e.scrollHeight-e.scrollTop-e.clientHeight>=24),c=()=>{!document.hidden&&e.clientHeight&&(n.current&&(i?.active?i.to(Math.max(0,e.scrollHeight-e.clientHeight)):(e.scrollTop=e.scrollHeight,a=e.scrollTop)),s())},l=()=>{let t=e.scrollTop<a;if(a=e.scrollTop,i?.active)return;let r=e.scrollHeight-e.scrollTop-e.clientHeight<24;(t||r)&&(n.current=r),s()},u=()=>{o()},d=e=>{o(),e.deltaY<0&&(n.current=!1,s())},f=e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&o()},p=()=>{document.hidden?o():c()},m=new ResizeObserver(c);m.observe(t),m.observe(e),e.addEventListener(`scroll`,l,{passive:!0}),e.addEventListener(`wheel`,d,{passive:!0});for(let t of[`touchstart`,`pointerdown`])e.addEventListener(t,u,{passive:!0});return e.addEventListener(`keydown`,f),document.addEventListener(`visibilitychange`,p),c(),{latest(){n.current=!0,r(!1),!document.hidden&&e.clientHeight&&(o(),i=Mf(e,()=>{}),i.to(Math.max(0,e.scrollHeight-e.clientHeight)))},dispose(){o(),m.disconnect(),e.removeEventListener(`scroll`,l),e.removeEventListener(`wheel`,d);for(let t of[`touchstart`,`pointerdown`])e.removeEventListener(t,u);e.removeEventListener(`keydown`,f),document.removeEventListener(`visibilitychange`,p)}}}function XJ(e,t,n,r=!0){let i=(0,H.useRef)(r),a=(0,H.useRef)(null),[o,s]=(0,H.useState)(!1);return(0,H.useLayoutEffect)(()=>{let r=e.current,o=t.current;if(!n||!r||!o)return;let c=YJ(r,o,i,s);return a.current=c,()=>{c.dispose(),a.current=null}},[n,e,t]),{behind:n&&o,resume:()=>{i.current=!0,s(!1)},latest:()=>a.current?.latest()}}function ZJ({show:e,options:t,className:n}){return(0,G.jsx)(`span`,{className:`swap ${n??``}`,"aria-hidden":`true`,children:Object.keys(t).map(n=>(0,G.jsx)(`span`,{"data-on":n===e,children:t[n]},n))})}function QJ({text:e,widest:t}){let n=(0,H.useRef)(!1);return(0,H.useEffect)(()=>{n.current=!0},[]),(0,G.jsx)(`span`,{className:`swap-text`,"data-widest":t,children:(0,G.jsx)(`span`,{className:n.current?`swap-in`:void 0,children:e},e)})}var $J=1200,eY=8e3;function tY(e,t,n){let r=e,i=!0,a=!1,o,s=()=>!r.hovered&&!r.hasText&&!r.reduced&&!r.hidden&&(i||!r.focused),c=()=>{clearTimeout(o),o=void 0,n()},l=e=>{o=setTimeout(()=>{t(),o=setTimeout(()=>{n(),o=void 0,i=!1,s()&&l(6800)},$J)},e)},u=e=>{a||(r=e,s()?o===void 0&&l(i?300:eY):(i=!1,c()))};return u(e),{update:u,dispose(){a=!0,c()}}}var nY=`cubic-bezier(.37,0,.63,1)`;function rY(e){let t=e.querySelector(`textarea`),n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.setAttribute(`class`,`ask-tracer`),r.setAttribute(`aria-hidden`,`true`);let i=Array.from({length:20},(e,t)=>{let n=document.createElementNS(r.namespaceURI,`rect`);for(let[e,t]of Object.entries({x:1,y:1,rx:11,pathLength:100}))n.setAttribute(e,String(t));return n.style.strokeDashoffset=String(-t),n.style.opacity=String(Math.sin(Math.PI*(t+.5)/20)**2),r.append(n),n});e.append(r);let a=()=>{let{width:t,height:n}=e.getBoundingClientRect();r.setAttribute(`viewBox`,`0 0 ${t} ${n}`);for(let e of i)e.setAttribute(`width`,String(Math.max(0,t-2))),e.setAttribute(`height`,String(Math.max(0,n-2)))};a();let o=new ResizeObserver(a);o.observe(e);let s=[],c=()=>{s.forEach(e=>e.cancel()),s=[]},l=()=>{c();let e={duration:$J,easing:`linear`};s=[r.animate([{opacity:0},{opacity:1,offset:.2},{opacity:1,offset:.8},{opacity:0}],e),...i.map((t,n)=>t.animate([{strokeDashoffset:String(-n),easing:nY},{strokeDashoffset:String(-n-100)}],e))]},u=!1,d=()=>({focused:e.contains(document.activeElement),hovered:u,hasText:!!t.value,reduced:n.matches,hidden:document.hidden}),f=tY(d(),l,c),p=()=>f.update(d()),m=()=>queueMicrotask(p),h=()=>{u||(u=!0,p())},g=()=>{u=!1,p()};for(let t of[`input`,`focusin`])e.addEventListener(t,p);return e.addEventListener(`pointermove`,h),e.addEventListener(`pointerleave`,g),e.addEventListener(`focusout`,m),document.addEventListener(`visibilitychange`,p),n.addEventListener(`change`,p),{update:p,dispose(){f.dispose(),o.disconnect(),r.remove();for(let t of[`input`,`focusin`])e.removeEventListener(t,p);e.removeEventListener(`pointermove`,h),e.removeEventListener(`pointerleave`,g),e.removeEventListener(`focusout`,m),document.removeEventListener(`visibilitychange`,p),n.removeEventListener(`change`,p)}}}function iY(e,t,n){let r=Math.max(0,n.height-16-e.bottom-4),i=Math.max(0,e.top-4-16),a=t.height>r&&i>r,o=Math.min(t.height,a?i:r);return{left:Math.max(16,Math.min(e.left,n.width-16-t.width)),top:Math.max(16,Math.min(a?e.top-4-o:e.bottom+4,n.height-16-o)),maxHeight:o}}function aY(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),i=document.createElement(`div`),a=document.createElement(`span`);for(let e of`font-family.font-size.font-weight.font-style.font-variant.font-stretch.line-height.letter-spacing.word-spacing.text-indent.text-align.text-transform.direction.tab-size.padding-top.padding-right.padding-bottom.padding-left.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.white-space.overflow-wrap.word-break`.split(`.`))i.style.setProperty(e,n.getPropertyValue(e));Object.assign(i.style,{position:`fixed`,visibility:`hidden`,pointerEvents:`none`,left:`0`,top:`0`,boxSizing:`border-box`,width:`${e.clientWidth+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}px`}),i.setAttribute(`aria-hidden`,`true`),i.textContent=e.value.slice(0,t),a.textContent=e.value.slice(t,t+1),i.append(a,document.createTextNode(e.value.slice(t+1))),document.body.append(i);try{let t=a.getBoundingClientRect(),i=parseFloat(n.lineHeight),o=r.top+t.top-(i-t.height)/2-e.scrollTop;return{left:r.left+t.left-e.scrollLeft,top:o,bottom:o+i}}finally{i.remove()}}var oY=new Map,sY=(e,t)=>e.length===1&&e[0].kind===`meeting`?t?[U(`What did I just miss?`),U(`Sum up the meeting so far`),U(`What should I ask next?`)]:[U(`What was decided?`),U(`What are my next steps?`),U(`What questions are still open?`)]:e.length?[U(`What was decided?`),U(`What are my next steps?`),U(`What questions are still open?`)]:[U(`What are my next steps this week?`),U(`What did we decide last week?`),U(`Catch me up on yesterday`)];function cY({id:e,pendingDraftKey:t,initial:n,loadError:r=!1,home:i=!1,panel:a=!1,recording:o=!1,onSelect:s,onSource:c,onDeleted:l,onClose:u,onExpand:d}){let[f,p]=(0,H.useState)(n),[m,h]=(0,H.useState)((t?oY.get(t):void 0)??oY.get(e)??n?.draft??``),g=(0,H.useRef)(!1),[_,v]=(0,H.useState)(!1),[y,b]=(0,H.useState)(!1),x=(0,H.useRef)(void 0),[S,C]=(0,H.useState)(!1),[w,T]=(0,H.useState)(),[E,D]=(0,H.useState)(),O=(0,H.useRef)(!1),k=E?.query??w?.query,[A,j]=(0,H.useState)(),M=(0,H.useRef)(void 0),N=()=>{M.current||window.yogurt.conversations.targets(``).then(e=>{M.current=e}).catch(()=>{})},[P,F]=(0,H.useState)(!1),[I,L]=(0,H.useState)(!1),R=f?cG(f.chips,f.draftChips):[],ee=e=>R.some(t=>t.kind===e.kind&&t.id===e.id),z=(A?.items??[]).filter(e=>k?!0:!ee(e)),te=z.filter(e=>e.kind===`meeting`),ne=z.filter(e=>e.kind===`folder`),re=ne.slice(0,A?.query?4:2),ie=te.slice(0,A?.query?10-re.length:ne.length?3:5),ae=[...te,...ne],B=P?ae:[...ie,...re],oe=ae.length-B.length,V=E&&!k?R.slice(0,I?void 0:3):[],se=E&&!k?R.length-V.length:0,ce=E&&!k?V.length+ +!!se:0,le=ce+B.length+ +!!oe,[ue,de]=(0,H.useState)(0),fe=(0,H.useRef)(null),pe=(0,H.useRef)(null),me=(0,H.useRef)(void 0),he=a||!!f||!!_;(0,H.useEffect)(()=>{if(he&&pe.current)return me.current=rY(pe.current),()=>{me.current?.dispose(),me.current=void 0}},[he]),(0,H.useEffect)(()=>{me.current?.update()},[m]);let ge=(0,H.useRef)(null),_e=(0,H.useRef)(null),ve=(0,H.useRef)({start:0,end:0}),ye=`conversation/${e}`,be=Sv(ye,!!f),xe=(0,H.useRef)(null),Se=XJ(be,xe,!!f,bv(ye)===void 0),Ce=a?`chat`:`chat-page`;(0,H.useEffect)(()=>{if(!e)return;let r=!0,i=0;v(!1);let a=t?oY.get(t):void 0;a!==void 0&&(g.current=!0,oY.set(e,a),oY.delete(t),window.yogurt.conversations.draft(e,a).then(()=>{oY.get(e)===a&&oY.delete(e)}).catch(()=>{r&&v(!0)}));let o=window.yogurt.conversations.onChange(t=>{t.id===e&&(i++,p(t))}),s=(t=!1)=>{let a=++i;window.yogurt.conversations.get(e).then(o=>{if(r){if(!o)throw Error(`Conversation not found`);a===i&&p(o),t&&!n&&!g.current&&h(oY.get(e)??o.draft)}}).catch(()=>{r&&a===i&&(v(!0),x.current!==void 0&&(x.current=void 0,b(!1)))})},c=window.yogurt.meetings.onChange(()=>s()),l=window.yogurt.folders.onChange(()=>s());return s(!0),()=>{r=!1,o(),c(),l()}},[e]),(0,H.useEffect)(()=>{let e=!0;if(k===void 0)j(void 0),de(0),F(!1);else return window.yogurt.conversations.targets(k).then(t=>{e&&(k||(M.current=t),j({query:k,items:t}),de(0),F(!1))}).catch(()=>{e&&v(!0)}),()=>{e=!1}},[k,!!E,f?.chips,f?.draftChips]);let we=R.length===1&&R[0].kind===`meeting`?R[0].id:void 0,Te=()=>{we&&window.yogurt.conversations.warm(e)};(0,H.useEffect)(Te,[e,we]),(0,H.useEffect)(()=>{document.getElementById(`${Ce}-context-${ue}`)?.scrollIntoView({block:`nearest`})},[ue,B]),(0,H.useLayoutEffect)(()=>{let e=fe.current,t=_e.current;if(!w||!e||!t)return;let n=()=>{let n=iY(aY(e,w.start),{width:t.offsetWidth,height:Math.min(340,innerHeight/2,t.scrollHeight+t.offsetHeight-t.clientHeight)},{width:innerWidth,height:innerHeight});Object.assign(t.style,{left:`${n.left}px`,top:`${n.top}px`,maxHeight:`${n.maxHeight}px`})};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),pe.current&&r.observe(pe.current),window.addEventListener(`resize`,n),document.addEventListener(`scroll`,n,!0),()=>{r.disconnect(),window.removeEventListener(`resize`,n),document.removeEventListener(`scroll`,n,!0)}},[w,m,A,P,f]);let Ee=f?.turns??[],De=Ee.at(-1),ke=De?.status===`waiting`||De?.status===`answering`,Ae=!f||y||S||ke,je=(f?f.firstChips===null:i||a)&&!Ee.length,Me=i||!a&&je,Ne=n=>{g.current=!0,h(n),(e||t)&&oY.set(e||t,n),e&&window.yogurt.conversations.draft(e,n).then(()=>{oY.get(e)===n&&oY.delete(e)}).catch(()=>v(!0))},Pe=(e,t)=>{let n=e.slice(0,t)!==m.slice(0,t);n&&e[t-1]===`@`&&(O.current=!1),n&&e[t-1]===` `&&w&&A?.query===w.query&&!B.length&&(O.current=!0),T(O.current?void 0:uG(e,t))},Fe=async t=>{C(!0),v(!1);try{await window.yogurt.conversations.context(e,t)}catch{throw v(!0),Error(`Context was not saved`)}finally{C(!1)}},Ie=e=>{(w||E)&&!Ae&&f&&(ee(e)?Promise.resolve():Fe(cG(f.firstChips===null?R:f.draftChips,[e]))).then(()=>{w&&Ne(m.slice(0,w.start)+m.slice(w.end)),w&&(T(void 0),requestAnimationFrame(()=>{fe.current?.focus(),fe.current?.setSelectionRange(w.start,w.start)}))}).catch(()=>{})},Le=async t=>{if(!Ae){C(!0),v(!1);try{for(let n of t)await window.yogurt.conversations.removeContext(e,n)}catch{v(!0)}finally{C(!1)}}},Re=e=>{E&&ee(e)?Le([e]):Ie(e)},ze=()=>(fe.current?.focus({preventScroll:!0}),fe.current?.setSelectionRange(ve.current.start,ve.current.end),!1),Be=()=>{let e=document.activeElement;(e===document.body||e?.closest(`.ask-box, .ask-starters`))&&fe.current?.focus({preventScroll:!0})},Ve=t=>{window.yogurt.conversations.ask(e,t).then(t=>{if(!t)throw Error(`Question was not saved`);h(``),oY.delete(e),i&&s(t)}).catch(()=>{Ne(t),v(!0)}).finally(()=>b(!1))},He=e=>{!e.trim()||y||S||ke||r||!f&&(!a||_)||(Be(),Se.resume(),b(!0),v(!1),T(void 0),D(void 0),f?Ve(e):x.current=e)};(0,H.useEffect)(()=>{if(r){x.current=void 0,b(!1);return}if(!f||x.current===void 0)return;let e=x.current;x.current=void 0,Ve(e)},[f,r]);let Ue=()=>{de(ce+ae.findIndex(e=>!B.includes(e))),F(!0)},We=e=>{if(!e.nativeEvent.isComposing){if((w||E)&&[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key)){if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`)O.current=!0,T(void 0),D(void 0);else if(e.key===`Enter`){let e=ue<V.length?V[ue]:se&&ue===ce-1?`scope-more`:oe&&ue===ce+B.length?`more`:B[ue-ce];e===`scope-more`?L(!0):e===`more`?Ue():e&&(Re(e),E&&D(void 0))}else de(t=>(t+(e.key===`ArrowDown`?1:-1)+le)%(le||1))}else e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),He(m))}},Ge=()=>{f&&!S&&window.yogurt.conversations.current(cG(f.chips,f.draftChips),!0).then(s).catch(()=>v(!0))},Ke=!a&&(!!m||!!E),qe=je&&(Me||a)&&(!a||!m)&&(0,G.jsx)(`div`,{"data-testid":a?`chat-suggestions`:`chat-starters`,"aria-hidden":Ke||void 0,"data-instant":!!E||void 0,inert:Ke,className:`ask-starters${a?``:` ask-home-starters`}`,children:sY(R,o).map(e=>(0,G.jsx)(`button`,{type:`button`,title:e,"data-testid":a?`chat-suggestion`:`chat-starter`,disabled:Ae||Ke,onClick:()=>He(e),children:e},e))}),Je=(e,t)=>(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:Ae,"aria-selected":E?ee(e):ue===t,"data-active":ue===t||void 0,id:`${Ce}-context-${t}`,onMouseDown:e=>e.preventDefault(),onClick:()=>Re(e),children:[e.kind===`meeting`?(0,G.jsx)(Hg,{size:14,"aria-hidden":`true`}):(0,G.jsx)(Jg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:GJ(e)}),ee(e)?(0,G.jsx)(bg,{size:14,"aria-hidden":`true`}):e.startedAt&&(0,G.jsx)(`small`,{children:gG(e.startedAt)})]},`${e.kind}:${e.id}`),Ye=(0,G.jsxs)(G.Fragment,{children:[!!ce&&(0,G.jsx)(G.Fragment,{children:!!V.length&&(0,G.jsxs)(`div`,{role:`group`,"aria-label":U(`In this chat`),children:[(0,G.jsxs)(`h3`,{children:[U(`In this chat`),(0,G.jsx)(`button`,{type:`button`,className:`ask-picker-clear`,disabled:Ae,onMouseDown:e=>e.preventDefault(),onClick:()=>void Le(R),children:U(`Clear`)})]}),V.map((e,t)=>Je(e,t)),!!se&&(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,"aria-selected":!1,"data-active":ue===ce-1||void 0,id:`${Ce}-context-${ce-1}`,onMouseDown:e=>e.preventDefault(),onClick:()=>L(!0),children:[(0,G.jsx)(Ig,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`{count} more`,{count:se})})]})]})}),[`meeting`,`folder`].map(e=>B.some(t=>t.kind===e)&&(0,G.jsxs)(`div`,{role:`group`,"aria-label":U(e===`meeting`?`Meetings`:`Folders`),children:[(0,G.jsx)(`h3`,{children:U(e===`meeting`?`Meetings`:`Folders`)}),B.map((t,n)=>t.kind===e&&Je(t,ce+n))]},e)),!!oe&&(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:Ae,className:`text-muted`,"aria-selected":!E&&ue===ce+B.length,"data-active":ue===ce+B.length||void 0,id:`${Ce}-context-${ce+B.length}`,onMouseDown:e=>e.preventDefault(),onClick:Ue,children:[(0,G.jsx)(Ig,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`{count} more results`,{count:oe})})]}),!A&&!_&&(0,G.jsx)(`p`,{role:`status`,children:U(`Loading…`)}),A&&!B.length&&!ce&&(0,G.jsx)(`p`,{children:U(`Nothing found for “{query}”.`,{query:A.query})})]});return(0,G.jsxs)(`div`,{"data-testid":Me?`chat-empty`:void 0,"aria-busy":De?.status===`answering`,className:`ask-conversation${Me?` ask-landing`:``}`,children:[Me?(0,G.jsx)(`h1`,{className:`ask-home-title`,children:U(`Ask about your meetings`)}):(0,G.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,G.jsx)(`h2`,{id:a?`meeting-chat-title`:void 0,title:[f?.title||U(`New chat`),...f?.chips.map(GJ)??[]].join(`
-`),children:f?.title||U(`New chat`)}),(0,G.jsxs)(`div`,{className:`ask-header-actions`,children:[f&&(0,G.jsx)(UJ,{id:e,title:f.title,onNew:Ge,onDeleted:l}),d&&(0,G.jsx)(`button`,{type:`button`,"data-testid":`chat-expand`,className:`chat-icon`,onClick:d,"aria-label":U(`Open in Ask`),title:U(`Open in Ask`),children:(0,G.jsx)(w_,{size:15,"aria-hidden":`true`})}),u&&(0,G.jsx)(`button`,{type:`button`,"data-testid":`chat-close`,className:`chat-icon`,onClick:u,"aria-label":U(`Close`),title:U(`Close`),children:(0,G.jsx)(iv,{size:16,"aria-hidden":`true`})})]})]}),(0,G.jsxs)(`div`,{className:`ask-thread-wrap`,children:[(0,G.jsx)(qh,{children:(0,G.jsx)(`div`,{className:`ask-thread${a?` chat-history`:``}${je?` ask-thread-empty`:``}`,ref:be,children:(0,G.jsx)(`div`,{ref:xe,className:`ask-thread-content`,children:(0,G.jsxs)(JG,{pending:!f&&!_,skeleton:(0,G.jsx)(ov,{layout:`chat`,testId:`chat-thread-loading`}),children:[!Me&&Ee.map(e=>(0,G.jsx)(lY,{showCopy:e===De,turn:e,chat:f,panel:a,onSource:c,onRetry:()=>He(e.question)},e.id)),a&&qe]})})})}),Se.behind&&(0,G.jsx)(`button`,{className:`chat-latest`,"data-testid":`chat-latest`,"aria-label":U(`Back to latest`),onClick:Se.latest,children:(0,G.jsx)(sg,{size:15})})]}),(0,G.jsxs)(`div`,{className:`ask-composer${a?` chat-composer`:``}`,children:[_&&(0,G.jsx)(`p`,{"data-testid":a?`chat-send-error`:`chat-page-error`,role:`alert`,className:`chat-error`,children:U(`Couldn't save your changes`)}),(0,G.jsx)(JG,{pending:!a&&!f&&!_,onReady:()=>{f&&fe.current?.focus({preventScroll:!0})},testId:Me?`chat-loading`:void 0,children:(0,G.jsxs)(`form`,{ref:pe,className:`ask-box`,"data-busy":Ae||void 0,"data-testid":`${Ce}-box`,onSubmit:e=>{e.preventDefault(),He(m)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||T(void 0)},children:[(0,G.jsxs)(`div`,{className:`ask-field`,children:[(0,G.jsx)(`textarea`,{autoFocus:a,ref:fe,id:a?`meeting-question`:`library-question`,"data-testid":`${Ce}-input`,rows:1,maxLength:4e3,placeholder:U(a?`Ask anything`:`Ask about your meetings`),"aria-label":U(a?`Ask anything`:`Ask about your meetings`),value:m,disabled:!a&&!f,readOnly:y||S,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!w,"aria-controls":w?`${Ce}-contexts`:void 0,"aria-activedescendant":w&&ue<le?`${Ce}-context-${ue}`:void 0,onChange:e=>{Ne(e.target.value),Pe(e.target.value,e.target.selectionStart)},onClick:e=>Pe(e.currentTarget.value,e.currentTarget.selectionStart),onSelect:e=>Pe(e.currentTarget.value,e.currentTarget.selectionStart),onFocus:Te,onKeyDown:We}),(0,G.jsxs)(`div`,{className:`ask-box-actions`,children:[(0,G.jsxs)(JU,{open:!!E,onOpenChange:e=>{T(void 0),j(e&&M.current?{query:``,items:M.current}:void 0),de(0),F(!1),L(!1),e||requestAnimationFrame(()=>{let e=document.activeElement;(!e||e===document.body||e.closest(`.ask-scope, .ask-selector`))&&fe.current?.focus({preventScroll:!0})}),e&&(ve.current={start:fe.current?.selectionStart??m.length,end:fe.current?.selectionEnd??m.length}),D(e?{query:``}:void 0)},children:[(0,G.jsxs)(`span`,{className:`ask-scope-group`,children:[(0,G.jsx)(uW,{type:`button`,className:`ask-scope`,"data-testid":`ask-scope`,onPointerEnter:N,onFocus:N,disabled:Ae,"aria-label":U(`Choose meetings or folders`),title:U(`Choose meetings or folders`),children:(0,G.jsx)(qJ,{chips:R})}),!!R.length&&(0,G.jsx)(`button`,{type:`button`,className:`ask-scope-clear`,"data-testid":`ask-scope-clear`,disabled:Ae,"aria-label":U(`Clear`),title:U(`Clear`),onClick:()=>{Le(R),fe.current?.focus({preventScroll:!0})},children:(0,G.jsx)(iv,{size:12,"aria-hidden":`true`})})]}),(0,G.jsx)(pW,{container:fe.current?.closest(`dialog`)??void 0,children:(0,G.jsx)($W,{anchor:pe,side:Me?`bottom`:`top`,align:`start`,collisionAvoidance:{fallbackAxisSide:`none`},sideOffset:6,collisionPadding:16,positionMethod:`fixed`,className:`ask-selector-positioner`,children:(0,G.jsxs)(aG,{className:`ask-picker ask-selector`,"aria-label":U(`Choose meetings or folders`),initialFocus:ge,finalFocus:ze,children:[(0,G.jsx)(`input`,{ref:ge,className:`ask-picker-search`,placeholder:U(`Search…`),"aria-label":U(`Search meetings and folders`),role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!E,"aria-controls":`${Ce}-contexts`,"aria-activedescendant":ue<le?`${Ce}-context-${ue}`:void 0,value:E?.query??``,maxLength:200,readOnly:S,onChange:e=>D(t=>t&&{...t,query:e.target.value}),onKeyDown:We}),(0,G.jsx)(`div`,{className:`ask-picker-results`,id:`${Ce}-contexts`,role:`listbox`,"aria-multiselectable":`true`,"aria-label":U(`Add context`),children:Ye})]})})})]}),ke?(0,G.jsx)(`button`,{type:`button`,"data-testid":`${Ce}-stop`,className:`ask-toolbar-button ask-stop`,"aria-label":f?.waitsForModel?U(`Cancel question`):U(`Stop`),title:f?.waitsForModel?U(`Cancel question`):U(`Stop`),onClick:()=>{Be(),window.yogurt.conversations.stop(e)},children:(0,G.jsx)(uee,{size:10,fill:`currentColor`})}):(0,G.jsxs)(`button`,{type:`submit`,"data-testid":`${Ce}-send`,className:`ask-toolbar-button ask-send`,disabled:Ae||!m.trim(),"aria-label":U(`Ask`),children:[(0,G.jsx)(`span`,{className:`orb-material`,"aria-hidden":`true`}),(0,G.jsx)(ug,{size:16})]})]})]}),w&&(0,Oe.createPortal)((0,G.jsx)(`div`,{ref:_e,className:`ask-picker ask-mention`,id:`${Ce}-contexts`,role:`listbox`,"aria-label":U(`Add context`),children:Ye}),fe.current?.closest(`dialog`)??document.body)]})})]}),!a&&qe,(0,G.jsx)(`p`,{"data-testid":`${Ce}-announce`,className:`sr-only`,"aria-live":`polite`,children:De?.status===`done`?De.answer:``})]})}function lY({turn:e,chat:t,panel:n,showCopy:r,onSource:i,onRetry:a}){let o=e.status===`answering`,s=CG(e.answer,o),[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(!1),f=n?`chat`:`chat-page`;return(0,H.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>l(!1),1800);return()=>clearTimeout(e)},[c]),(0,G.jsxs)(`div`,{"data-testid":`${f}-turn`,"data-status":e.status,"data-show-copy":r||void 0,className:`ask-turn`,children:[(0,G.jsx)(`p`,{className:`ask-question`,"data-testid":`${f}-question`,children:e.question}),(e.status===`waiting`||o&&!s)&&(t.waitsForModel&&e.status===`waiting`?(0,G.jsx)($G,{downloading:e=>(0,G.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:U(`Waiting for Yogurt's AI to finish downloading ({percent}). Your answer comes as soon as it's ready.`,{percent:e})}),children:(0,G.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:U(`Getting ready to answer. Yogurt is still setting up.`)})}):(0,G.jsx)(`p`,{className:`chat-progress`,role:`status`,children:t.waitsForMeeting&&e.status===`waiting`?U(`Yogurt will answer once the meeting ends.`):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(tK,{}),(0,G.jsx)(uY,{step:e.status===`waiting`?void 0:e.step})]})})),s&&(0,G.jsx)(`div`,{"data-testid":`${f}-answer`,dir:`auto`,"data-streaming":o||void 0,className:`note-prose chat-answer${o?` stream-caret`:``}`,children:(0,G.jsx)(MG,{md:s,live:o,sources:e.sources,onSource:i})}),s&&!o&&(0,G.jsxs)(`div`,{className:`chat-answer-actions`,children:[(0,G.jsxs)(`button`,{className:`chat-copy-action`,"data-testid":`chat-copy-answer`,"aria-label":U(c?`Copied`:`Copy answer`),onClick:()=>{navigator.clipboard.writeText(e.answer).then(()=>{l(!0),d(!1)}).catch(()=>d(!0))},children:[(0,G.jsx)(ZJ,{show:c?`done`:`copy`,options:{copy:(0,G.jsx)(GG,{size:13}),done:(0,G.jsx)(bg,{size:13})}}),(0,G.jsx)(QJ,{text:U(c?`Copied`:`Copy`),widest:U(`Copied`)})]}),e.scope&&(0,G.jsx)(JJ,{chips:e.scope}),(0,G.jsx)(`span`,{role:`status`,className:u?`text-danger`:`sr-only`,children:u?U(`Couldn't copy. Try again.`):c?U(`Copied`):``})]}),e.status===`stopped`&&(0,G.jsx)(`p`,{className:`text-xs text-muted`,children:U(s?`Stopped`:`Stopped before answering`)}),e.status===`failed`&&(0,G.jsxs)(`p`,{role:`alert`,children:[U(`Yogurt couldn't answer that.`),` `,(0,G.jsx)(`button`,{className:`ghost-btn`,onClick:a,children:U(`Try again`)})]})]})}function uY({step:e}){let[t,n]=(0,H.useState)(0),r=JSON.stringify(e??null);(0,H.useEffect)(()=>{n(0);let e=setInterval(()=>n(e=>e+1),dG);return()=>clearInterval(e)},[r]);let i=fG(e,t);return(0,G.jsx)(`span`,{"data-testid":`chat-step`,className:`chat-step`,children:i},i)}var dY=`M21.528 8.111Q25.000 7.278 30.000 7.278L30.000 7.278Q35.000 7.278 45.833 7.833L56.667 8.389L56.667 8.389L56.111 20.056Q55.556 31.722 54.861 34.222L54.861 34.222Q54.167 36.722 53.472 37.556L53.472 37.556Q52.778 38.389 51.528 39.083L51.528 39.083Q50.278 39.778 44.028 40.889L44.028 40.889Q37.778 42.000 36.111 43.250L36.111 43.250Q34.444 44.500 33.889 45.750L33.889 45.750Q33.333 47.000 33.472 48.806L33.472 48.806Q33.611 50.611 34.583 52.417L34.583 52.417Q35.556 54.222 37.361 55.889L37.361 55.889Q39.167 57.556 40.694 58.250L42.222 58.944L42.222 58.944L42.361 59.778Q42.500 60.611 42.500 62.278L42.500 63.944L42.500 63.944L41.250 63.944Q40.000 63.944 35.139 62.972L35.139 62.972Q30.278 62.000 25.556 60.056L25.556 60.056Q20.833 58.111 18.194 56.306L18.194 56.306Q15.556 54.500 13.611 52.556L13.611 52.556Q11.667 50.611 10.278 48.667L10.278 48.667Q8.889 46.722 7.500 43.389L7.500 43.389Q6.111 40.056 5.556 36.861L5.556 36.861Q5.000 33.667 5.000 31.167L5.000 31.167Q5.000 28.667 5.417 26.028L5.417 26.028Q5.833 23.389 6.944 20.611L6.944 20.611Q8.056 17.833 9.444 15.889L9.444 15.889Q10.833 13.944 12.639 12.417L12.639 12.417Q14.444 10.889 16.250 9.917L16.250 9.917Q18.056 8.944 21.528 8.111L21.528 8.111Z M66.250 33.944Q68.611 33.667 72.639 33.667L72.639 33.667Q76.667 33.667 79.028 34.083L79.028 34.083Q81.389 34.500 83.889 35.611L83.889 35.611Q86.389 36.722 88.611 38.667L88.611 38.667Q90.833 40.611 92.083 42.694L92.083 42.694Q93.333 44.778 93.889 46.444L93.889 46.444Q94.444 48.111 94.861 51.306L94.861 51.306Q95.278 54.500 95.139 57.972L95.139 57.972Q95.000 61.444 94.444 64.222L94.444 64.222Q93.889 67.000 92.083 71.306L92.083 71.306Q90.278 75.611 89.028 77.278L89.028 77.278Q87.778 78.944 85.694 81.028L85.694 81.028Q83.611 83.111 80.694 85.194L80.694 85.194Q77.778 87.278 75.556 88.389L75.556 88.389Q73.333 89.500 71.111 90.333L71.111 90.333Q68.889 91.167 65.833 91.861L65.833 91.861Q62.778 92.556 59.028 92.833L55.278 93.111L55.278 93.111L55.278 89.222L55.278 89.222L56.944 88.528Q58.611 87.833 60.972 85.889L60.972 85.889Q63.333 83.944 64.444 81.722L64.444 81.722Q65.556 79.500 65.417 77.417L65.417 77.417Q65.278 75.333 64.722 74.639L64.722 74.639Q64.167 73.944 63.194 73.528L63.194 73.528Q62.222 73.111 56.667 72.972L56.667 72.972Q51.111 72.833 50.139 72.556L50.139 72.556Q49.167 72.278 48.472 71.583L48.472 71.583Q47.778 70.889 47.361 66.861L47.361 66.861Q46.944 62.833 46.944 57.833L46.944 57.833Q46.944 52.833 47.222 51.167L47.222 51.167Q47.500 49.500 48.611 46.722L48.611 46.722Q49.722 43.944 51.944 41.306L51.944 41.306Q54.167 38.667 56.667 37.139L56.667 37.139Q59.167 35.611 61.528 34.917L61.528 34.917Q63.889 34.222 66.250 33.944L66.250 33.944Z`,fY=`M265 -179Q225 -179 184.0 -171.0Q143 -163 107.5 -146.5Q72 -130 48 -104L91 0Q120 -33 166.0 -50.0Q212 -67 259 -67Q314 -67 350.0 -44.5Q386 -22 405.0 25.0Q424 72 426 142L433 237H412Q402 169 379.0 126.5Q356 84 321.5 64.5Q287 45 241 45Q184 45 145.0 74.0Q106 103 86.5 160.0Q67 217 67 301V523H194V330Q194 236 217.0 193.5Q240 151 287 151Q312 151 333.0 164.5Q354 178 368.5 203.5Q383 229 391.5 267.0Q400 305 401 354V523H528V137Q528 74 517.5 23.5Q507 -27 486.0 -64.5Q465 -102 433.5 -128.0Q402 -154 360.0 -166.5Q318 -179 265 -179ZM875 -13Q798 -13 739.0 18.5Q680 50 646.5 111.5Q613 173 613 263Q613 355 647.5 415.5Q682 476 741.0 506.0Q800 536 874 536Q951 536 1010.0 505.0Q1069 474 1103.0 412.5Q1137 351 1137 260Q1137 168 1103.0 107.0Q1069 46 1009.5 16.5Q950 -13 875 -13ZM880 83Q922 83 951.0 102.5Q980 122 995.5 161.0Q1011 200 1011 254Q1011 311 994.5 351.5Q978 392 947.5 414.0Q917 436 871 436Q831 436 801.0 416.5Q771 397 755.5 359.0Q740 321 740 265Q740 177 777.5 130.0Q815 83 880 83ZM1428 -180Q1343 -180 1288.5 -167.0Q1234 -154 1208.0 -128.0Q1182 -102 1182 -64Q1182 -18 1218.5 11.5Q1255 41 1327 48V68Q1273 67 1245.0 79.5Q1217 92 1217 120Q1217 147 1244.5 168.0Q1272 189 1336 203V223Q1275 226 1241.0 261.5Q1207 297 1207 354Q1207 405 1235.0 444.0Q1263 483 1317.5 505.5Q1372 528 1450 528H1709V428L1545 452V430Q1607 420 1636.5 395.0Q1666 370 1666 327Q1666 286 1640.0 254.5Q1614 223 1564.5 205.5Q1515 188 1445 188Q1432 188 1417.0 189.0Q1402 190 1370 194Q1349 179 1336.0 167.5Q1323 156 1323 146Q1323 138 1333.0 132.5Q1343 127 1359.0 125.0Q1375 123 1390 123H1529Q1549 123 1580.5 120.0Q1612 117 1643.5 104.0Q1675 91 1696.5 63.0Q1718 35 1718 -16Q1718 -73 1685.5 -109.5Q1653 -146 1588.5 -163.0Q1524 -180 1428 -180ZM1439 -78Q1501 -78 1538.0 -71.0Q1575 -64 1591.0 -48.5Q1607 -33 1607 -9Q1607 13 1597.0 25.5Q1587 38 1571.5 43.0Q1556 48 1540.0 49.0Q1524 50 1513 50H1390Q1342 43 1322.5 23.0Q1303 3 1303 -21Q1303 -45 1319.0 -57.5Q1335 -70 1365.5 -74.0Q1396 -78 1439 -78ZM1442 257Q1494 257 1521.0 281.5Q1548 306 1548 346Q1548 389 1520.5 416.5Q1493 444 1441 444Q1389 444 1360.5 417.0Q1332 390 1332 348Q1332 321 1344.5 300.5Q1357 280 1381.5 268.5Q1406 257 1442 257ZM1968 -13Q1878 -13 1832.5 48.5Q1787 110 1787 235V523H1914V249Q1914 170 1938.0 131.0Q1962 92 2012 92Q2041 92 2063.0 106.5Q2085 121 2101.0 147.5Q2117 174 2126.5 209.0Q2136 244 2138 286V523H2264V215V0H2160L2162 165H2144Q2131 102 2107.5 63.0Q2084 24 2050.0 5.5Q2016 -13 1968 -13ZM2381 0V262V523H2487L2485 343H2503Q2512 407 2531.0 449.5Q2550 492 2584.0 513.5Q2618 535 2668 535Q2678 535 2689.5 534.0Q2701 533 2715 529L2710 396Q2694 402 2677.5 404.5Q2661 407 2647 407Q2608 407 2579.5 387.0Q2551 367 2533.5 330.5Q2516 294 2507 244V0ZM2961 -12Q2878 -12 2839.0 32.5Q2800 77 2800 171V422H2723L2725 522H2776Q2805 522 2819.0 531.0Q2833 540 2836 563L2848 639H2921V523H3059V418H2921V176Q2921 139 2938.5 122.0Q2956 105 2991 105Q3010 105 3028.5 109.5Q3047 114 3063 125V5Q3032 -5 3006.5 -8.5Q2981 -12 2961 -12Z`;function pY({size:e=28,className:t=`text-accent`}){return(0,G.jsx)(`svg`,{"data-testid":`logo`,role:`img`,"aria-label":`Yogurt`,width:e,height:e,viewBox:`0 0 100 100`,className:`shrink-0 ${t}`,children:(0,G.jsx)(`path`,{fill:`currentColor`,d:dY})})}function mY({height:e=32}){return(0,G.jsxs)(`svg`,{"data-testid":`wordmark`,role:`img`,"aria-label":`Yogurt`,height:e,width:e*286/80,viewBox:`0 0 286 80`,className:`shrink-0`,children:[(0,G.jsx)(`path`,{style:{fill:`color-mix(in srgb, var(--primary), var(--accent))`},transform:`translate(0 5) scale(.65)`,d:dY}),(0,G.jsx)(`path`,{className:`text-ink`,fill:`currentColor`,transform:`translate(82 55) scale(.068 -.068)`,d:fY})]})}var hY=[{speaker:`Kara`,text:`The launch page is ready for review.`,track:`them`,speakerColor:0},{speaker:`Ray`,text:`We can publish Tuesday.`,track:`them`,speakerColor:1},{text:`I'll send Ray the asset list by Friday.`,track:`me`}].map((e,t)=>({...e,id:t+1,meetingId:`sample-meeting`,startMs:1e4+t*1e4,endMs:14e3+t*1e4,hidden:!1})),gY=[.8,2.65,4.05],_Y=[2.35,3.8,5.95];function vY(e){let t=hY.map((t,n)=>({...t,hidden:e<_Y[n]})),n=gY.findIndex((t,n)=>e>=t&&e<_Y[n]);if(n<0)return{lines:t,partial:{track:`them`,startMs:0,text:``,words:[]}};let r=hY[n],i=r.text.split(` `),a=Math.min(i.length,1+Math.floor((e-gY[n])/(_Y[n]-gY[n])*(i.length-1))),o=i.slice(0,a).map((e,t)=>({text:e,startMs:r.startMs+t*350,endMs:r.startMs+(t+1)*350}));return{lines:t,partial:{track:r.track,startMs:r.startMs,text:o.map(e=>e.text).join(` `),words:o}}}var yY=[`## Tuesday launch`,`- Publish the page Tuesday.`,`- Announce it Wednesday morning.`,`## Next steps`,`- **Kara:** Release notes by Friday.`,`- **You:** Send Ray the asset list by Friday.`],bY=yY.join(`
-`),xY=[.95,1.55,2.6,3.6,4,5.3].map(e=>.95+(e-.95)*.8);function SY(e){return yY.flatMap((t,n)=>{let[,r,i]=t.match(/^(## |- )(.*)$/),a=i.split(` `),o=(n<3?.16:.14)*.8,s=Math.max(0,Math.min(a.length,Math.floor((e-xY[n])/o)+1));return s?[r+a.slice(0,s).join(` `)]:[]}).join(`
-`)}var CY=()=>{},wY=new URLSearchParams(location.search).has(`animate`);M===`transcript`&&Ce(hY,{track:`them`,startMs:0,text:``,words:[]}),M===`ask`&&Se({question:_,answer:v+`[1]`,status:wY?`waiting`:`done`});function TY(e){let t=[],n=(e,n,r=.28)=>{e&&t.push({element:e,start:n,duration:r})},r=(e,t,r)=>{let i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=[];for(;i.nextNode();)i.currentNode.textContent?.trim()&&!i.currentNode.parentElement?.closest(`button,time,.sr-only`)&&a.push(i.currentNode);let o=0;for(let e of a){let i=document.createDocumentFragment();for(let a of e.data.split(/(\s+)/)){if(!a.trim()){i.append(a);continue}let e=document.createElement(`span`);e.className=`fragment-word`,e.textContent=a,i.append(e),n(e,t+o++*r)}e.replaceWith(i)}};if(M===`ask`){let t=e.querySelector(`.ask-question`);n(t,1),r(t,1,.045),n(e.querySelector(`.fragment-byline`),2.05);let i=4.45;e.querySelectorAll(`.chat-answer>p`).forEach(e=>{r(e,i,1.5/v.split(` `).length),i+=e.textContent.replace(/1$/,``).trim().split(/\s+/).length*1.5/v.split(` `).length}),n(e.querySelector(`.source-citation`),5.95)}return t}function EY(){let[e,t]=(0,H.useState)(wY?0:99),[n,r]=(0,H.useState)(null),[i,a]=(0,H.useState)(0);return(0,H.useEffect)(()=>{let e=!1,n=[],i=``,o=null,s=e=>{if(e.source!==parent||e.origin!==location.origin||e.data?.type!==`yogurt-fragment-time`||!Number.isFinite(e.data.seconds))return;let r=Math.max(0,Math.min(99,e.data.seconds));if(M===`summary`&&t(r),M===`transcript`){let e=vY(r),t=JSON.stringify(e);t!==i&&(i=t,Ce(e.lines,e.partial))}for(let{element:e,start:t,duration:i}of n){let n=Math.max(0,Math.min(1,(r-t)/i));e.style.opacity=String(1-(1-n)**3)}let a=document.querySelector(`.fragment-ask .chat-progress`);a&&(a.style.visibility=r>=2.05&&r<4.45?`visible`:`hidden`),document.documentElement.dataset.fragmentPlaying=String(r<20)};window.addEventListener(`message`,s);let c=()=>{if(e||o?.isConnected)return;let t=document.querySelector(`.ask-turn`);t&&r(t),document.querySelector(`[data-testid="transcript"][data-loaded=true], [data-testid="fragment-plan"], [data-testid="chat-answer"]`)&&(M!==`ask`||document.querySelector(`.fragment-byline`))&&(e=!0,document.fonts.ready.then(()=>requestAnimationFrame(()=>{if(M===`transcript`&&wY&&!o){o=document.querySelector(`[data-testid=transcript]`);let t=[...o.querySelectorAll(`.transcript-turn`)],n=document.createElement(`style`);n.textContent=`.fragment-transcript [data-testid=transcript]{height:${o.getBoundingClientRect().height}px;display:grid;grid-template-rows:${t.map(e=>e.getBoundingClientRect().height+`px`).join(` `)};gap:20px}`+t.map((e,t)=>{let n=e.querySelector(`.bubble`).getBoundingClientRect();return`.fragment-transcript .transcript-turn:nth-child(${t+1} of .transcript-turn) .bubble{width:${n.width}px;height:${n.height}px;flex:none}`}).join(``),document.head.append(n),Ce([],{track:`them`,startMs:0,text:``,words:[]}),e=!1,a(1)}else{if(M===`ask`){let e=document.querySelector(`.chat-answer`),t=e.closest(`.ask-turn`);t.style.setProperty(`--fragment-answer-top`,`${e.getBoundingClientRect().top-t.getBoundingClientRect().top}px`)}if(n=TY(document.querySelector(`.marketing-fragment`)),wY)for(let{element:e}of n)e.style.opacity=`0`;document.documentElement.dataset.ready=`true`,parent.postMessage({type:`yogurt-fragment-ready`},location.origin)}})))},l=new MutationObserver(c);return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-loaded`]}),c(),()=>{l.disconnect(),window.removeEventListener(`message`,s)}},[]),(0,G.jsxs)(`div`,{className:`marketing-fragment fragment-${M}`,children:[M===`transcript`&&(0,G.jsx)(Rv,{id:E.id,recording:!0,inline:!0},i),M===`summary`&&(0,G.jsxs)(`div`,{className:`fragment-plan`,children:[(0,G.jsx)(`div`,{className:`fragment-plan-size`,"aria-hidden":`true`,children:(0,G.jsx)(qR,{markdown:bY,editable:!1,label:`Tuesday launch`,testId:`fragment-plan-size`,className:`enhanced`})}),(0,G.jsx)(`div`,{className:`fragment-plan-live`,children:(0,G.jsx)(qR,{markdown:SY(e),streaming:wY&&e<5.75,editable:!1,label:`Tuesday launch`,testId:`fragment-plan`,className:`enhanced`})})]}),M===`ask`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(cY,{id:j.id,initial:j,panel:!0,onSelect:CY,onSource:CY,onDeleted:CY}),n&&(0,Oe.createPortal)((0,G.jsxs)(`div`,{className:`fragment-byline`,children:[(0,G.jsx)(pY,{size:20}),(0,G.jsx)(`span`,{children:`Yogurt`})]}),n)]})]})}var DY=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),OY=o(((e,t)=>{t.exports=DY()})),kY=o((e=>{var t=OY(),n=Te(),r=De();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),ee=Symbol.for(`react.legacy_hidden`),z=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.for(`react.view_transition`),ne=Symbol.for(`react.recoverable`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function B(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case F:return`SuspenseList`;case R:return`Activity`;case te:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case I:return t=e.displayName||null,t===null?B(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return B(e(t))}catch{}}return null}var oe=Array.isArray,V=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function fe(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function pe(e,t){ue++,le[ue]=e.current,e.current=t}var me=de(null),he=de(null),ge=de(null),_e=de(null);function ve(e,t){switch(pe(ge,t),pe(he,e),pe(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vp(t),e=yp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}fe(me),pe(me,e)}function ye(){fe(me),fe(he),fe(ge)}function be(e){var t=e.memoizedState;t!==null&&(hh._currentValue=t.memoizedState,pe(_e,e)),t=me.current;var n=yp(t,e.type);t!==n&&(pe(he,e),pe(me,n))}function xe(e){he.current===e&&(fe(me),fe(he)),_e.current===e&&(fe(_e),hh._currentValue=ce)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(`
+`).filter(e=>e.trim()).map(t=>({text:t,track:`them`,speaker:null,startMs:e.atMs})):[],d=Math.max(0,pt(u.map(e=>e.text),c.text,Math.max(0,u.findIndex(e=>e.startMs===c.atMs))));return{kind:n,before:s(a.before),match:c,after:s(a.after),notes:n===`notes`?RG(i,a):[],lines:u.map((t,n)=>{let r=Ot(t.track,t.speaker,e.transcript?.speakers??[]);return{...t,index:n,color:r===void 0?void 0:Dt[r]}}),matchedLine:d}}function BG(e,t){let n=0,r=e.length,i=e.reduce((e,t)=>e+t,0);for(;i>6&&r-n>1;)t-n>r-1-t?i-=e[n++]:i-=e[--r];return{start:n,end:r}}function VG({marks:e=[],children:t}){let n=t;for(let t of e)t.type===`bold`?n=(0,G.jsx)(`strong`,{children:n}):t.type===`italic`?n=(0,G.jsx)(`em`,{children:n}):t.type===`code`&&(n=(0,G.jsx)(`code`,{children:n}));return n}function HG({source:e,sentence:t,triggerId:n,animate:r,onOpen:i}){let a=(0,H.useId)().replace(/:/g,``),o=(0,H.useRef)(null);dt(e.excerpt??``,t);let s=zG(e,t),c=jf(),l=n?document.getElementById(n):null,u=e.title||U(`Untitled`),d=new Date(e.startedAt),f=d.toLocaleDateString(xt(),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`});return(0,H.useLayoutEffect)(()=>{if(!r||c)return;let e=0,t=requestAnimationFrame(()=>{let t=o.current;if(!t||!l)return;let n=l.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.left+n.width/2-r.left,a=n.top+n.height/2-r.top,s={"from-x":`${i-9}px`,"from-y":`${a>r.height/2?a-n.height/2-18:a+n.height/2}px`,"from-sx":18/r.width,"from-sy":18/r.height};for(let[e,n]of Object.entries(s))t.style.setProperty(`--${e}`,String(n));t.dataset.morph=`true`,e=window.setTimeout(()=>{delete t.dataset.morph},kf.settleMs)});return()=>{cancelAnimationFrame(t),clearTimeout(e),o.current&&delete o.current.dataset.morph}},[l,r,c]),(0,G.jsx)(wW,{container:l?.closest(`dialog`)??void 0,children:(0,G.jsx)(uG,{side:`top`,align:`center`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`citation-positioner`,children:(0,G.jsxs)(gG,{ref:o,className:`citation-card`,"data-testid":`citation-card`,"data-animate":r&&!c,initialFocus:!1,finalFocus:!1,"aria-label":u,children:[(0,G.jsx)(`svg`,{width:`0`,height:`0`,className:`citation-filter`,"aria-hidden":`true`,children:(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:a,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,colorInterpolationFilters:`sRGB`,children:[(0,G.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`2.4`}),(0,G.jsx)(`feColorMatrix`,{type:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8.5`})]})})}),(0,G.jsx)(`div`,{className:`citation-liquid`,style:{"--citation-filter":`url(#${a})`},"aria-hidden":`true`,children:(0,G.jsx)(`div`,{className:`citation-mass`})}),(0,G.jsx)(`div`,{className:`citation-edge`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{className:`citation-content`,children:[(0,G.jsxs)(`div`,{className:`citation-heading`,children:[(0,G.jsx)(_G,{className:`citation-title`,title:u,children:u}),(0,G.jsx)(`time`,{className:`citation-date`,dateTime:d.toISOString(),title:f,children:d.toLocaleDateString(xt(),{month:`short`,day:`numeric`})})]}),s.match.text&&(s.kind===`transcript`?(0,G.jsx)(UG,{preview:s},JSON.stringify(s.lines)+s.matchedLine):(0,G.jsx)(WG,{preview:s})),(0,G.jsxs)(`div`,{className:`citation-footer`,children:[(0,G.jsx)(`span`,{children:e.atMs===null?U(`Notes`):(0,G.jsxs)(G.Fragment,{children:[U(`Transcript`),` · `,fv(s.match.atMs??e.atMs)]})}),(0,G.jsxs)(`button`,{className:`citation-open`,"data-testid":`citation-open`,"aria-label":U(`Open {source}`,{source:u}),onClick:()=>i(s.match.text),children:[U(`Open`),(0,G.jsx)(ree,{size:12,"aria-hidden":`true`})]})]})]})]})})})}function UG({preview:e}){let t=(0,H.useRef)(null),[n,r]=(0,H.useState)({start:0,end:e.lines.length}),[i,a]=(0,H.useState)(0);return(0,H.useLayoutEffect)(()=>{let i=t.current;(()=>{let t=[];for(let e of i.querySelectorAll(`[data-citation-line]`)){let n=e.querySelector(`.citation-lines`);t.push(Math.ceil(n.scrollHeight/parseFloat(getComputedStyle(n).lineHeight)))}let a=BG(t,e.matchedLine-n.start),o={start:n.start+a.start,end:n.start+a.end};r(e=>e.start===o.start&&e.end===o.end?e:o)})()},[i,n.start,n.end]),(0,H.useLayoutEffect)(()=>{let n=t.current,i=n.clientWidth,o=new ResizeObserver(()=>{n.clientWidth!==i&&(i=n.clientWidth,r({start:0,end:e.lines.length}),a(i))});return o.observe(n),()=>o.disconnect()},[]),(0,G.jsx)(`div`,{ref:t,className:`citation-passage citation-transcript`,"data-testid":`citation-excerpt`,children:pv(e.lines.slice(n.start,n.end)).map(t=>{let r=t[0],i=r.track===`me`,a=i||!!r.speaker;return(0,G.jsxs)(`div`,{className:`transcript-turn`,"data-track":r.track,children:[a&&(0,G.jsx)(`span`,{className:`line-who citation-speaker`,"data-folder-color":r.color,children:i?U(`You`):r.speaker}),t.map((t,r)=>(0,G.jsx)(`p`,{"data-citation-line":t.index,"data-citation-part":t.index===e.matchedLine?`match`:`context`,"data-track":t.track,dir:`auto`,className:`bubble bubble-${t.track}`,"data-continuation":!a||r>0||void 0,children:(0,G.jsxs)(`span`,{className:`citation-lines`,style:{WebkitLineClamp:6},children:[t.index===n.start&&n.start>0&&`… `,t.text,t.index===n.end-1&&n.end<e.lines.length&&` …`]})},t.index))]},r.index)})})}function WG({preview:e}){let t=(0,H.useRef)(null);(0,H.useLayoutEffect)(()=>{let e=t.current,n=()=>{let t=[...e.querySelectorAll(`[data-citation-part]`)],n=new Map(t.map(e=>{e.hidden=!1;let t=e.querySelector(`.citation-lines`);return t.style.webkitLineClamp=`unset`,[e.dataset.citationPart,Math.ceil(t.scrollHeight/parseFloat(getComputedStyle(t).lineHeight))]})),r=Math.min(6,n.get(`match`)??0),i=6-r,a=Math.min(2,n.get(`before`)??0,Math.floor(i/(n.has(`after`)?2:1))),o=Math.min(2,n.get(`after`)??0,i-a);for(let e of t){let t=e.dataset.citationPart===`match`?r:e.dataset.citationPart===`before`?a:o;e.hidden=t===0,e.querySelector(`.citation-lines`).style.webkitLineClamp=String(t)}};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[e]);let n=(e,t)=>{if(e.type===`citationPart`)return(0,G.jsx)(`div`,{"data-citation-part":String(e.attrs.part),children:(0,G.jsx)(`p`,{className:`citation-lines`,children:(0,G.jsx)(`span`,{className:e.attrs.part===`match`?`citation-match`:void 0,children:e.content?.map((e,t)=>(0,G.jsx)(VG,{marks:e.marks,children:e.text},t))})})},t);let r=e.content?.map(n);return e.type===`bulletList`?(0,G.jsx)(`ul`,{children:r},t):e.type===`orderedList`?(0,G.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},t):(0,G.jsx)(`li`,{value:e.attrs?.value,children:r},t)};return(0,G.jsx)(`div`,{ref:t,className:`citation-passage citation-notes`,"data-testid":`citation-excerpt`,children:e.notes.map(n)})}function GG({md:e,live:t,sources:n,onSource:r}){let i=(0,H.useId)(),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(!1),d=(0,H.useRef)(null),f=(0,H.useMemo)(()=>{let r=it(e,n,t),i=e=>{e.type===`citation`&&(e.attrs.payloads=e.attrs.marks.map(t=>({source:n.find(e=>e.n===t.source),sentence:String(e.attrs.sentence??``)}))),e.content?.forEach(i)};return i(r),r},[e,n,t]),p={live:t,at:{n:0},id:i,sources:n,focus:e=>{e.matches(`:focus-visible`)&&(d.current===e.id?d.current=null:(u(!1),c(e.id),o(!0)))},blur:()=>{d.current=null},activate:e=>{d.current=null,u(!1),c(e.id),o(!0)},dismiss:e=>!a||s!==e.id?!1:(o(!1),!0)};return(0,G.jsx)(aW,{open:a,triggerId:s,onOpenChange:(e,t)=>{!e&&t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail===0?t.cancel():(t.reason===`escape-key`&&document.activeElement?.closest(`.citation-card`)&&(d.current=s,s&&document.getElementById(s)?.focus({preventScroll:!0})),e&&(a&&t.trigger?.id===s||u(t.reason===`trigger-hover`||t.reason===`trigger-press`&&`detail`in t.event&&t.event.detail>0),c(t.trigger?.id??s)),o(e))},children:({payload:e})=>(p.at.n=0,(0,G.jsxs)(G.Fragment,{children:[(f.content??[]).map(e=>KG(e,p)),e&&(0,G.jsx)(HG,{source:e.source,sentence:e.sentence,triggerId:s,animate:l,onOpen:t=>{o(!1),r(e.source,t)}},s)]}))})}function KG(e,t){let n=`${e.type}-${t.at.n}`;if(e.type===`citation`)return t.at.n+=Number(e.attrs?.length??0),(0,G.jsx)(`span`,{className:`citation-group`,"data-gap":e.attrs.gap||void 0,"data-single":e.attrs.marks.length===1||void 0,children:e.attrs.marks.map((r,i)=>{let a=t.sources.find(e=>e.n===r.source),o=a.title||U(`Untitled`);return(0,G.jsx)(xW,{id:`${t.id}-${n}-${r.source}`,payload:e.attrs.payloads[i],openOnHover:!0,delay:100,closeDelay:180,className:`source-citation`,"data-testid":`source-citation`,"data-meeting":a.meetingId,"data-at":a.atMs??void 0,"aria-label":`${r.number}: ${o} · ${OG(a.startedAt)}`,onFocus:e=>t.focus(e.currentTarget),onBlur:t.blur,onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),t.activate(e.currentTarget)),e.key===`Escape`&&t.dismiss(e.currentTarget)&&(e.preventDefault(),e.stopPropagation())},children:r.number},r.source)})},n);if(e.type===`citationAnchor`)return(0,G.jsx)(`span`,{className:`citation-anchor`,children:e.content.map(e=>KG(e,t))},n);if(e.type===`text`){let r=e.text??``,i=qG(r,t.at.n,t.live);return t.at.n+=r.length,(0,G.jsx)(VG,{marks:e.marks,children:i},n)}let r=(e.content??[]).map(e=>KG(e,t));switch(t.at.n+=1,e.type){case`heading`:return(0,G.jsx)(`h3`,{children:r},n);case`bulletList`:return(0,G.jsx)(`ul`,{children:r},n);case`orderedList`:return(0,G.jsx)(`ol`,{start:Number(e.attrs?.start??1),children:r},n);case`listItem`:return(0,G.jsx)(`li`,{children:r},n);case`paragraph`:return e.content?(0,G.jsx)(`p`,{children:r},n):null;default:return(0,G.jsx)(H.Fragment,{children:r},n)}}function qG(e,t,n){if(!n)return e?[e]:[];let r=[],i=t;for(let t of e.split(/(\s+)/))t&&r.push(/^\s+$/.test(t)?t:(0,G.jsx)(`span`,{className:`fw`,children:t},i)),i+=t.length;return r}function JG(e,t){return function({size:n=16,...r}){return(0,G.jsx)(`svg`,{width:n,height:n,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,"data-icon":e,...r,children:t.map(([e,t])=>(0,H.createElement)(e,t))})}}var YG=JG(`MessageCircle`,[[`path`,{d:`M21.9598 12.9919C21.6856 17.2342 18.3536 20.6134 14.1706 20.8915C13.4574 20.9389 12.7285 21.001 12 21.001C10.4054 21.001 8.95127 20.8637 7.44544 20.2902C7.44544 20.2902 5.56108 21.7589 3.69962 21.4587C3.31009 21.3959 3.11532 21.3644 3.00091 21.1343C2.8865 20.9042 3.00788 20.6756 3.25063 20.2185C3.65964 19.4483 3.92248 18.6737 3.80076 17.8306C3.73703 17.3892 3.50433 16.9974 3.27644 16.6136L3.26529 16.5948C2.62637 15.5188 2.12462 14.2975 2.04024 12.9919C1.98659 12.1617 1.98659 11.3019 2.04024 10.4717C2.31441 6.22935 5.64639 2.85011 9.8294 2.57205C11.2536 2.47738 12.7435 2.47719 14.1706 2.57205C18.3536 2.85011 21.6856 6.22935 21.9598 10.4717C22.0134 11.3019 22.0134 12.1617 21.9598 12.9919Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8.75 9.50098H12.25`,pathLength:`1`,stroke:`currentColor`,key:`1`}],[`path`,{d:`M8.75 14.501H15.25`,pathLength:`1`,stroke:`currentColor`,key:`2`}]]),XG=JG(`Search`,[[`circle`,{cx:`10.5`,cy:`10.5`,r:`7`,key:`lens`}],[`path`,{d:`M15.5 15.5 20.5 20.5`,key:`handle`}]]),ZG=JG(`SidebarToggle`,[[`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`4`,key:`frame`}],[`rect`,{x:`6.5`,y:`7.5`,width:`6`,height:`9`,rx:`1`,fill:`currentColor`,stroke:`none`,className:`sidebar-toggle-pane`,key:`pane`}]]),QG=JG(`FileText`,[[`path`,{d:`M8 17H16`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M8 13H12`,pathLength:`1`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`2`}]]),$G=JG(`Settings`,[[`path`,{d:`M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}]]),eK=JG(`Mic`,[[`path`,{d:`M7 6.5C7 4.01472 9.01472 2 11.5 2C13.9853 2 16 4.01472 16 6.5V11.5C16 13.9853 13.9853 16 11.5 16C9.01472 16 7 13.9853 7 11.5V6.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M11.5 19H11.0828C7.57267 19 4.57706 16.4623 4 13M11.5 19H11.9172C15.4273 19 18.4229 16.4623 19 13M11.5 19V22`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),tK=JG(`Pause`,[[`path`,{d:`M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z`,stroke:`currentColor`,key:`0`}],[`path`,{d:`M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z`,stroke:`currentColor`,key:`1`}]]),nK=JG(`Play`,[[`path`,{d:`M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}]]),rK=JG(`Sparkles`,[[`path`,{d:`M15 2L15.5387 4.39157C15.9957 6.42015 17.5798 8.00431 19.6084 8.46127L22 9L19.6084 9.53873C17.5798 9.99569 15.9957 11.5798 15.5387 13.6084L15 16L14.4613 13.6084C14.0043 11.5798 12.4202 9.99569 10.3916 9.53873L8 9L10.3916 8.46127C12.4201 8.00431 14.0043 6.42015 14.4613 4.39158L15 2Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7 12L7.38481 13.7083C7.71121 15.1572 8.84275 16.2888 10.2917 16.6152L12 17L10.2917 17.3848C8.84275 17.7112 7.71121 18.8427 7.38481 20.2917L7 22L6.61519 20.2917C6.28879 18.8427 5.15725 17.7112 3.70827 17.3848L2 17L3.70827 16.6152C5.15725 16.2888 6.28879 15.1573 6.61519 13.7083L7 12Z`,stroke:`currentColor`,strokeLinejoin:`round`,key:`1`}]]),iK=JG(`Copy`,[[`path`,{d:`M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`0`}],[`path`,{d:`M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,key:`1`}]]),aK=JG(`Loader`,[[`path`,{d:`M12 3V6`,stroke:`currentColor`,strokeLinecap:`round`,key:`0`}],[`path`,{d:`M12 18V21`,stroke:`currentColor`,strokeLinecap:`round`,key:`1`}],[`path`,{d:`M21 12L18 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`2`}],[`path`,{d:`M6 12L3 12`,stroke:`currentColor`,strokeLinecap:`round`,key:`3`}],[`path`,{d:`M18.3635 5.63672L16.2422 7.75804`,stroke:`currentColor`,strokeLinecap:`round`,key:`4`}],[`path`,{d:`M7.75804 16.2422L5.63672 18.3635`,stroke:`currentColor`,strokeLinecap:`round`,key:`5`}],[`path`,{d:`M18.3635 18.3635L16.2422 16.2422`,stroke:`currentColor`,strokeLinecap:`round`,key:`6`}],[`path`,{d:`M7.75804 7.75804L5.63672 5.63672`,stroke:`currentColor`,strokeLinecap:`round`,key:`7`}]]);function oK(e){return H.Children.map(e,e=>{if(!(0,H.isValidElement)(e))return e;let t=e;return(0,H.cloneElement)(t,{ref:null,...typeof e.type==`string`?{id:void 0,"data-testid":void 0}:{}},t.props.children===void 0?void 0:oK(t.props.children))})}function sK({pending:e,children:t,skeleton:n,testId:r,className:i=``,onReady:a}){let o=cv(e),s=(0,H.useRef)(void 0);e&&(s.current=n??oK(t));let c=o===`waiting`||o===`skeleton`,l=(0,H.useRef)(a);return l.current=a,(0,H.useLayoutEffect)(()=>{c||l.current?.()},[c]),(0,G.jsxs)(`div`,{className:`loading-content ${i}`,"data-loading-phase":o,"aria-busy":c,children:[o!==`ready`&&(0,G.jsxs)(`div`,{className:`loading-placeholder`,"data-testid":r,children:[c&&(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,children:U(`Loading…`)}),(0,G.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,inert:!0,ref:e=>{n===void 0&&e?.querySelectorAll(`[id],[data-testid]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`)})},children:s.current})]}),!e&&(0,G.jsx)(`div`,{className:`loading-result`,children:t})]})}var cK=e=>new Intl.NumberFormat(xt(),{style:`percent`,maximumFractionDigits:0}).format(Math.floor(Math.max(0,Math.min(1,e))*100)/100),lK=e=>!e.notesDownloading&&!e.notesError&&!!(e.notesUpgradePending||e.notesUpgradeDownloading||e.notesUpgradeError),uK=e=>!!e&&!!(e.notesDownloading||e.notesError||lK(e));function dK(e){let t=e.notesRestoreFraction!==void 0,n=lK(e),r=t?e.notesRestoreTotalBytes:n?e.notesUpgradeTotalBytes:e.notesTotalBytes,i=t?e.notesRestoreFraction:n?e.notesUpgradeFraction:e.notesFraction,a=t?e.notesRestoreEtaSec:n?e.notesUpgradeEtaSec:e.notesEtaSec,o=U(n?`Upgrading AI`:`Downloading AI`);if(!r||!Number.isFinite(r)||r<0||i===void 0||!Number.isFinite(i))return{progress:``,eta:``,detail:o};let s=new Intl.NumberFormat(xt(),{minimumFractionDigits:1,maximumFractionDigits:1}),c=U(`{done} of {total} GB`,{done:s.format(r*Math.max(0,Math.min(1,i))/1e9),total:s.format(r/1e9)}),l=!e.notesError&&!e.notesUpgradeError&&i<1&&a!==void 0&&Number.isFinite(a)&&a>0?new Intl.NumberFormat(xt()).format(Math.max(1,Math.round(a/60))):void 0;return{progress:c,eta:l?U(`about {minutes} min left`,{minutes:l}):``,detail:l?U(`{progress} · about {minutes} min left`,{progress:c,minutes:l}):c}}function fK({children:e,downloading:t}){let[n,r]=(0,H.useState)(),[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(!1);(0,H.useEffect)(()=>{let e=window.yogurt.setup.onState(e=>{r(e),e.notesError||s(!1)});return window.yogurt.setup.state().then(e=>r(t=>t??e)),e},[]);let c=async()=>{a(!0),s(!1);try{await window.yogurt.setup.retry()}catch{s(!0)}finally{a(!1)}};return n?.notesError?(0,G.jsxs)(`div`,{"data-testid":`notes-model-error`,role:`status`,className:`flex flex-col items-start gap-2 text-[14px] text-muted`,children:[(0,G.jsx)(`p`,{className:`font-medium text-ink`,children:U(`The notes model couldn't download.`)}),(0,G.jsx)(`p`,{children:n.notesError}),(0,G.jsx)(`button`,{"data-testid":`notes-model-retry`,onClick:()=>void c(),disabled:i,className:`rounded px-1 font-medium text-accent underline underline-offset-2 disabled:opacity-50`,children:U(i?`Retrying…`:`Retry download`)}),o&&(0,G.jsx)(`p`,{className:`text-danger`,children:U(`Yogurt couldn't restart the download.`)})]}):t&&n&&(n.notesFraction!==void 0||n.notesDownloading)?t(cK(n.notesFraction??0)):e}function pK(e,t,n){let r=(1-Math.cos(n*Math.PI*2))/2,i=4.7-3.7*r,a=0;for(let o of[-1,1]){let s=(e-9-o*i)/(1+r*.12),c=(t-10-o*Math.sin(n*Math.PI*2)*.65)/(1-r*.08);a+=2.75**2/Math.max(.01,s*s+c*c)}return Math.max(0,Math.min(255,(a-.98)*1700))}function mK(){let e=(0,H.useRef)(null),t=jf();return(0,H.useEffect)(()=>{let n=e.current,r=n?.getContext(`2d`);if(!n||!r||t)return;let i=r.createImageData(72,80),a=0,o=-1/0,s=!1,c=e=>{if(n.isConnected){if(e-o>=1e3/30){o=e;let t=getComputedStyle(n).color.match(/[\d.]+/g).map(Number);for(let n=0;n<80;n++)for(let r=0;r<72;r++){let a=(n*72+r)*4;i.data[a]=t[0],i.data[a+1]=t[1],i.data[a+2]=t[2],i.data[a+3]=pK((r+.5)/4,(n+.5)/4,e%2800/2800)}r.putImageData(i,0,0)}a=requestAnimationFrame(c)}},l=()=>{cancelAnimationFrame(a),s&&!document.hidden&&(a=requestAnimationFrame(c))},u=new IntersectionObserver(([e])=>{s=e.isIntersecting,l()});return u.observe(n),document.addEventListener(`visibilitychange`,l),()=>{u.disconnect(),cancelAnimationFrame(a),document.removeEventListener(`visibilitychange`,l)}},[t]),t?(0,G.jsxs)(`span`,{className:`thinking-dots thinking-dots-static`,"data-testid":`thinking-dots`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]}):(0,G.jsx)(`canvas`,{ref:e,width:72,height:80,className:`thinking-dots`,"data-testid":`thinking-dots`,"aria-hidden":`true`})}var hK=H.createContext(void 0);function gK(e){let t=H.useContext(hK);if(t===void 0&&!e)throw Error(TH(33));return t}var _K=H.createContext(void 0);function vK(e){let t=H.useContext(_K);if(t===void 0&&!e)throw Error(TH(36));return t}var yK=H.createContext(void 0);function bK(e=!0){let t=H.useContext(yK);if(t===void 0&&!e)throw Error(TH(25));return t}var xK=H.createContext(null);function SK(e=`root`){let t=H.useContext(xK),n=H.useContext(_K);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var CK={visible:!0,ref:null};function wK(){return CK}function TK(e,t,n=`root`){let r=SK(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??wK)({label:e.label,children:e.children,render:e.render}),a=aB(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}function EK(e){e.preventDefault()}function DK(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=vK(),u=bK(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return H.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?EK:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:tae})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!_z&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&dW(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var OK={type:`regular-item`};function kK(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=H.useRef(null),{getButtonProps:d,buttonRef:f}=fW({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=DK({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=H.useCallback(e=>vV(p,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,d),[p,d,c]),h=aB(u,f);return H.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var AK=H.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function jK(){return H.useContext(AK)}function MK(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=jK(),u=H.useRef(-1),[d,f]=H.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=H.useRef(null),h=H.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return Y(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var NK=H.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=vK(),f=MK({guess:!0,label:a}),p=hW(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=kK({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:OK});return jV(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),PK=H.forwardRef(function(e,t){let n=TK(e,t);return n.visible?(0,G.jsx)(NK,{...e,ref:n.ref}):null}),FK=H.createContext(void 0);function IK(){return H.useContext(FK)}function LK(e,t){let n=FV(e.render);if(H.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function RK(e,t,n){let r=LK(e,t),i=r===t?void 0:r;return[r,H.useCallback(e=>n?.(e?i:void 0),[i,n])]}function zK(e,t,n){let r=FV(e.render),i=H.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var BK=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=vK(),m=IK(),{side:h,align:g}=gK(),_=pG(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),j=l.useState(`disabled`),M=l.useState(`openMethod`),N=l.useState(`activeTriggerId`),P=l.useState(`listElement`),[F,I]=RK(e,u,d),L=zK(e,C,N),R=w.type===`menu`?m:void 0,ee=w.type===`context-menu`,z=s??w.type!==`menu`;s===void 0&&P&&w.type!==`menu`&&(z=()=>l.state.activeIndex===null&&P),NH({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),H.useEffect(()=>{function e(e){l.setOpen(!1,qz(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),xU(D,{enabled:A&&!j&&!ee&&w.type!==`menubar`,closeDelay:k});let te=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:ne,handleFocus:re}=(H.useContext(xK)?.useParentHandoff??HK)(l,w,v,f),ie=jV(`div`,e,{state:{transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},ref:[t,l.context.popupRef,te,I],stateAttributesMapping:Iz,props:[b,{id:F,...P?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":L},onKeyDown(e){R?.onPopupKeyDown?.(e),_&&dG.has(e.key)&&e.stopPropagation()},onFocus:re},YW(y),c,{"data-rootownerid":E}]}),B=w.type===void 0||ee;(C||w.type===`menubar`&&T!==`outside-press`)&&(B=!0);let ae=R?.getReturnElement??ne;return(0,G.jsx)(gH,{context:D,openInteractionType:M,modal:ee,disabled:!x,returnFocus:a??ae??B,explicitReturnFocus:a===void 0&&ae?!1:void 0,initialFocus:z,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:ie})}),VK={parentVirtualFocusRef:void 0,handleFocus:void 0};function HK(){return VK}var UK=H.forwardRef(function(e,t){let n=SK()?.Popup??BK;return(0,G.jsx)(n,{...e,ref:t})}),WK=H.createContext(void 0);function GK(){let e=H.useContext(WK);if(e===void 0)throw Error(TH(32));return e}var KK=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=vK();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,G.jsx)(WK.Provider,{value:n,children:(0,G.jsx)(ZV,{ref:t,...r,portalOwnerRole:o})})});function qK(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=dB(i),[,o]=H.useState(0),s=ez(YK).current,c=ez(JK).current,l=H.useRef(0),u=H.useRef(!0),d=H.useRef(null),f=H.useRef(null),p=dB(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=dB((e,t)=>{c.set(e,t),p()}),h=dB(e=>{c.delete(e),p()}),g=dB(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!QK(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&$K(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=ZK(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=dB(()=>{let[e,t]=XK(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});Y(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),Y(()=>{u.current&&v()}),Y(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=dB(e=>(s.add(e),()=>{s.delete(e)})),b=H.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,G.jsx)(AK.Provider,{value:b,children:t})}function JK(){return new Map}function YK(){return new Set}function XK(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>$K(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function ZK(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function QK(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function $K(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var eq=H.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=WV,style:g,..._}=e,{store:v,virtualFocus:y,syncHighlightedItem:b}=vK(),x=GK(),S=bK(!0),C=v.useState(`parent`),w=v.useState(`floatingRootContext`),T=v.useState(`floatingTreeRoot`),E=v.useState(`mounted`),D=v.useState(`open`),O=v.useState(`modal`),k=v.useState(`openMethod`),A=v.useState(`activeTriggerElement`),j=v.useState(`transitionStatus`),M=v.useState(`positionerElement`),N=v.useState(`instantType`),P=v.useState(`adaptiveOrigin`),F=v.useState(`lastOpenChangeReason`),I=v.useState(`floatingNodeId`),L=v.useState(`floatingParentNodeId`),R=w.useState(`domReferenceElement`),ee=n,z=c,te=l,ne=s,re=h;C.type===`context-menu`&&(ee=n??C.context?.anchor,ne??=`start`,!o&&ne!==`center`&&(te=e.alignOffset??2,z=e.sideOffset??-5));let ie=o,B=ne;C.type===`menu`?(ie??=`inline-end`,B??=`start`,re=e.collisionAvoidance??GV):C.type===`menubar`&&(ie??=C.context.orientation===`vertical`?`inline-end`:`bottom`,B??=`start`);let ae=C.type===`context-menu`,oe=WW({anchor:ee,floatingRootContext:w,positionMethod:S?`fixed`:r,mounted:E,side:ie,sideOffset:z,align:B,alignOffset:te,arrowPadding:ae?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:I,keepMounted:x,disableAnchorTracking:m,collisionAvoidance:re,shift:ae?{crossAxis:!(`side`in re&&re.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:T,adaptiveOrigin:P,lazyFlip:y?`placement`:!1});H.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===I&&v.set(`hoverEnabled`,!1),e.nodeId!==I&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,qz(tB)))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[v,T.events,I]),H.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,qz(t))}return T.events.on(`menuopenchange`,e),()=>{T.events.off(`menuopenchange`,e)}},[T.events,v]);let V=dz();H.useEffect(()=>{D||V.clear()},[D,V]),H.useEffect(()=>{function e(e){if(D&&e.nodeId===v.select(`floatingParentNodeId`)){if(e.target&&A&&A!==e.target){let e=v.select(`closeDelay`);e>0?V.isStarted()||V.start(e,()=>{v.setOpen(!1,qz(tB))}):v.setOpen(!1,qz(tB))}else V.clear()}}return T.events.on(`itemhover`,e),()=>{T.events.off(`itemhover`,e)}},[T.events,D,A,v,V]),H.useEffect(()=>{let e={open:D,nodeId:I,parentNodeId:L,reason:v.select(`lastOpenChangeReason`)};T.events.emit(`menuopenchange`,e)},[T.events,D,v,I,L]),JW({store:v,domReference:R,positionerElement:M,open:D});let se={open:D,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,nested:C.type===`menu`,instant:N},ce=C.type===`menubar`&&C.context.modal;lG(D&&(ce||O&&F!==`trigger-hover`),k===`touch`,M,A);let le=XW(e,se,{styles:oe.positionerStyles,transitionStatus:j,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!E,inert:!D}),ue=E&&C.type!==`menu`&&(C.type!==`menubar`&&O&&F!==`trigger-hover`||C.type===`menubar`&&C.context.modal),de=null;return C.type===`menubar`?de=C.context.contentElement:C.type===void 0&&(de=A),(0,G.jsxs)(hK.Provider,{value:oe,children:[ue&&(0,G.jsx)(qW,{ref:C.type===`context-menu`||C.type===`nested-context-menu`?C.context.internalBackdropRef:null,inert:TW(!D),cutout:de}),(0,G.jsx)(aH,{id:I,children:(0,G.jsx)(qK,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,onMapChange:b,children:le})})]})}),tq=H.createContext(null);function nq(e){let t=H.useContext(tq);if(t===null&&!e)throw Error(TH(5));return t}function rq(e){return e==null?Jz:e.type.startsWith(`key`)?eB:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?iae:Jz}var iq={...dU,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=dU.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>vz&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!dU.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},aq=class extends nU{constructor(e,t,n=!1){let r=new YH,i=sq(r,t,n,e);super(i,oq(r),iq),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function oq(e){return{positionerRef:H.createRef(),popupRef:H.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:H.createRef(),beforeTriggerFocusGuardRef:H.createRef(),beforeContentFocusGuardRef:H.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function sq(e,t,n=!1,r){return{...aU(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:sz,inputProps:sz,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new $V,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:sz,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var cq=H.createContext(null);function lq(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function uq(e,t){return e===`list-navigation`||lq(e,t)}var dq=rz(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:p,triggerId:m,defaultTriggerId:h=null,highlightItemOnHover:g=!0,isSubmenu:_=!1,virtualFocus:v=!1,virtualFocusRef:y,allowEscape:b=!0,resetOnPointerLeave:x=!0}=e,S=bK(!0),C=vK(!0),w=nq(!0),T=C?.store,E=C?.virtualFocus??!1,D=H.useMemo(()=>_&&T?{type:`menu`,store:T}:w?{type:`menubar`,context:w}:S&&!T?{type:`context-menu`,context:S}:{type:void 0},[S,T,w,_]),O=hW(),k=hW(),[A,j]=H.useState(void 0),M=(A??k)||void 0,N=nH(),P=D.type===`menu`?D.store:void 0,F=(n??o)&&P?.state.transitionStatus===`starting`,I=ez(()=>F?P?.state.instantType:void 0).current,L=ez(()=>{let e=new aq({open:o,openProp:n,activeTriggerId:h,triggerIdProp:m,parent:D,disabled:s,highlightItemOnHover:g,modal:D.type===void 0?c:void 0,rootId:O,instantType:I},M,N!=null);return e.context.virtualFocusRef=y,e}).current;L.useControlledProp(`openProp`,n),L.useControlledProp(`triggerIdProp`,m),L.useContextCallback(`onOpenChangeComplete`,i);let R=L.useState(`floatingTreeRoot`),ee=iH(R),z=L.useState(`open`),te=L.useState(`activeTriggerElement`),ne=L.useState(`positionerElement`),re=L.useState(`hoverEnabled`),ie=L.useState(`disabled`),B=L.useState(`lastOpenChangeReason`),ae=L.useState(`parent`),oe=L.useState(`activeIndex`),V=L.useState(`keyboardOpen`),se=L.useState(`payload`),ce=L.useState(`floatingParentNodeId`),le=H.useRef(null),ue=H.useRef(ae.type!==`context-menu`),de=dz(),fe=H.useRef(!0),pe=dz(),me=ce!=null,{openMethod:he,triggerProps:ge}=bW(z);L.useSyncedValues({disabled:s,highlightItemOnHover:g,modal:ae.type===void 0?c:void 0,openMethod:he,rootId:O}),GH(L);let{forceUnmount:_e,transitionStatus:ve}=KH(z,L,()=>{L.set(`allowMouseEnter`,!1)},F),ye=MH(L.context.popupRef);H.useEffect(()=>{if(I===void 0)return;let e=()=>{L.state.instantType===I&&L.set(`instantType`,void 0)};if(!z){e();return}if(ve!==void 0)return;if(L.context.popupRef.current==null){e();return}let t=new AbortController;return ye(e,t.signal),()=>{t.abort()}},[I,z,ve,ye,L]),Y(()=>{S&&!C?L.update({parent:{type:`context-menu`,context:S},floatingNodeId:ee,floatingParentNodeId:N}):(C||!L.select(`activeTriggerElement`))&&L.update({floatingNodeId:ee,floatingParentNodeId:N})},[S,C,ee,N,te,L]),H.useEffect(()=>{z||(le.current=null),ae.type===`context-menu`&&(z?de.start(500,()=>{ue.current=!0}):(de.clear(),ue.current=!1))},[de,z,ae.type]),Y(()=>{!z&&!re&&L.set(`hoverEnabled`,!0)},[z,re,L]);let be=dB((e,t)=>{let n=t.reason;if(!e&&!L.select(`open`)||z===e&&t.trigger===te&&B===n)return;let i=HH(t);if(!e&&t.trigger==null&&(t.trigger=te??void 0),r?.(e,t),t.isCanceled)return;L.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!fe.current)return;e&&n===`trigger-focus`?(fe.current=!1,pe.start(300,()=>{fe.current=!0})):(fe.current=!0,pe.clear());let o=!e&&(n===`escape-key`||n==null);le.current=t.event;let s=VH(L.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&uq(n,a),s.instantType=ae.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:lq(n,a)?`click`:o?`dismiss`:void 0,L.update(s)}),xe=DH({popupStore:L,floatingRootContext:L.state.floatingRootContext,floatingId:M,nested:N!=null,onOpenChange:be}),Se=xe.context.events;Y(()=>{let e=({open:e,eventDetails:t})=>be(e,t);return Se.on(`setOpen`,e),()=>{Se?.off(`setOpen`,e)}},[Se,be]),Y(()=>L.subscribeToParentMenu(),[L]);let Ce=H.useCallback(()=>{L.setOpen(!1,qz(nB))},[L]);H.useImperativeHandle(d,()=>({unmount:_e,close:Ce}),[_e,Ce]);let we;ae.type===`context-menu`&&(we=ae.context),H.useImperativeHandle(we?.positionerRef,()=>ne,[ne]),H.useImperativeHandle(we?.actionsRef,()=>({setOpen:be}),[be]);let Te=CH(xe,{enabled:!ie,bubbles:{escapeKey:f&&ae.type===`menu`},outsidePress(){return ae.type!==`context-menu`||le.current?.type===`contextmenu`||ue.current},externalTree:me?R:void 0}),Ee=AW(),De=AU(xe,{enabled:!ie,listRef:L.context.itemDomElements,activeIndex:oe,virtual:v,nested:ae.type===`menubar`||!v&&ae.type!==void 0,parentOrientation:ae.type===`menubar`?ae.context.orientation:void 0,loopFocus:l,focusItemOnOpen:v?V:void 0,allowEscape:v&&l&&b,orientation:u,triggerOrientation:v?`vertical`:u,rtl:Ee===`rtl`,disabledIndices:oz,onNavigate(e,t){L.setActiveIndex(e,rq(t),t?.nativeEvent)},openOnArrowKeyDown:ae.type!==`context-menu`&&!(v&&_),externalTree:!v&&me?R:void 0,nestedReturnFocusRef:P?.context.virtualFocusRef,focusItemOnHover:g,resetOnPointerLeave:x}),Oe=H.useCallback(e=>{L.context.typingRef.current=e},[L]),ke=jU(xe,{enabled:!ie&&!v,listRef:L.context.itemLabels,elementsRef:L.context.itemDomElements,activeIndex:oe,resetMs:500,onMatch:(e,t)=>{z&&e!==oe&&L.setActiveIndex(e,eB,t.nativeEvent)},onTyping:Oe}),Ae=dB(a),je=H.useRef(-1),Me=dB(()=>{let e=L.state.activeIndex,t=e===null?void 0:L.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(je.current===n&&L.context.reportedItem===t)return;je.current=n,L.context.reportedItem=t,v&&L.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=L.context;L.context.highlightReason=Jz,L.context.highlightEvent=void 0,a&&Ae(t,$ie(r,i,{label:t===void 0?void 0:L.context.itemLabels.current[n]??void 0}))});Y(()=>{Me()},[oe,Me]);let Ne=H.useMemo(()=>{if(!v)return De.reference;if(!De.trigger)return sz;let{onFocus:e,...t}=De.trigger;return t},[v,De.reference,De.trigger]);L.useSyncedValue(`inputProps`,v?De.reference??sz:sz);let Pe=H.useMemo(()=>{let e=vV(ke.reference,Ne,Te.reference,{onMouseMove(){L.set(`allowMouseEnter`,!0)}},ge);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=z,e},[L,ke.reference,Ne,Te.reference,ge,z]),Fe=H.useMemo(()=>{let e=vV(De.trigger,Te.trigger,ge);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[De.trigger,Te.trigger,ge]);ez(()=>(L.update({inactiveTriggerProps:Fe}),null)),qH(L,{floatingRootContext:xe,activeTriggerProps:Pe,inactiveTriggerProps:Fe,popupProps:H.useMemo(()=>vV(FH,{onMouseMove(){L.set(`allowMouseEnter`,!0),ae.type===`menu`&&L.set(`hoverEnabled`,!1)},onClick(){L.select(`hoverEnabled`)&&L.set(`hoverEnabled`,!1)},onKeyDown(e){let t=L.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},ke.floating,De.floating,Te.floating),[ae.type,L,ke.floating,De.floating,Te.floating]),itemProps:De.item??sz});let Ie=H.useMemo(()=>({store:L,parent:D,orientation:u,loopFocus:l,allowEscape:b,defaultFloatingId:k,setRenderedFloatingId:j,virtualFocus:v,parentVirtualFocus:E,syncHighlightedItem:Me}),[L,D,u,l,b,k,v,E,Me]),Le=typeof t==`function`?t({payload:se}):t,Re=(0,G.jsxs)(_K.Provider,{value:Ie,children:[p&&(0,G.jsx)(RH,{handle:p,store:L}),Le]});return(ae.type===void 0||ae.type===`context-menu`)&&(Re=(0,G.jsx)(oH,{externalTree:R,children:Re})),Re});function fq(e){let t=H.useContext(cq);if(t===null)return(0,G.jsx)(dq,{...e});let n=t.Root;return(0,G.jsx)(cq.Provider,{value:null,children:(0,G.jsx)(n,{...t.options,...e})})}var pq=5;function mq(e,t){let n=hq(t);return e.clientX>=n.left-pq&&e.clientX<=n.right+pq&&e.clientY>=n.top-pq&&e.clientY<=n.bottom+pq}function hq(e){let t=e.getBoundingClientRect(),n=lL(e);if(yz)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function gq(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=lW(),{ref:i,index:a}=MK(e),o=n===a,s=H.useRef(null),c=aB(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function _q(e){let{render:t,className:n,style:r,state:i=sz,props:a=oz,refs:o=oz,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=gq({metadata:s});return jV(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function vq(e){if(pL(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!TL(e))return vq(OL(e))}function yq(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=H.useRef(!1);return H.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,gB(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:sz,[t,n,r])}var bq=iz(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=vK(!0),h=fU(d)??m?.store;if(!h)throw Error(TH(85));let g=hW(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerControlsId`,g),x=H.useRef(null),S=Sq(),C=lW(!0),w=rH(),T=H.useMemo(()=>w??new $V,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=WH(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:iH(T),floatingParentNodeId:nH(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=fW({disabled:A,native:o});H.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=H.useRef(null),P=dz(),F=dB(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;Tz(N.current,t)||Tz(h.select(`positionerElement`),t)||t===N.current||t!=null&&vq(t)===h.select(`rootId`)||mq(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:aae})});H.useEffect(()=>{let e=gB(N.current);if(y&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,F,{once:!0}),()=>{e.removeEventListener(`mouseup`,F)}},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=CU(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:zU({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),R=xq(y,h.select(`lastOpenChangeReason`)),ee=_H(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),z=hU(v,{enabled:!A&&I}),te=yq({open:y,enabled:O,mouseDownAction:`open`}),ne=H.useMemo(()=>vV(z.reference,ee.reference),[z.reference,ee.reference]),re=h.useState(`triggerProps`,D),ie=h.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:B,handleFocusTargetFocus:ae}=gW(h,x),oe={disabled:A,open:y},V=[N,t,M,E,x],se=[ne,L??sz,re,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),gB(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},ie,O?{role:`menuitem`}:{},te,p,j],ce=jV(`button`,e,{enabled:!O,stateAttributesMapping:Pz,state:oe,ref:V,props:se});return O?(0,G.jsx)(_q,{tag:`button`,render:n,className:r,style:i,state:oe,refs:V,props:se,stateAttributesMapping:Pz}):y?(0,G.jsxs)(H.Fragment,{children:[(0,G.jsx)(yB,{ref:h.context.beforeTriggerFocusGuardRef,onFocus:B},`${g}-pre-focus-guard`),(0,G.jsx)(H.Fragment,{children:ce},g),(0,G.jsx)(yB,{ref:h.context.triggerFocusTargetRef,onFocus:ae},`${g}-post-focus-guard`)]}):(0,G.jsx)(H.Fragment,{children:ce},g)});function xq(e,t){let n=dz(),[r,i]=H.useState(!1);return Y(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function Sq(){let e=nq(!0);return H.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}var Cq=Object.defineProperty,wq=(e,t)=>{let n={};for(var r in e)Cq(n,r,{get:e[r],enumerable:!0});return t||Cq(n,Symbol.toStringTag,{value:`Module`}),n};function Tq(e){let t=H.createContext(void 0);return[({value:e,children:n})=>(0,G.jsx)(t.Provider,{value:e,children:n}),()=>{let n=H.useContext(t);if(n===void 0)throw Error(`useContext must be used within ${e??`a Provider`}`);return n}]}var Eq=sh.transition.overlay,Dq=sh.spring.dialog,Oq=sh.transition.dismiss;sh.transition.drawerOut;var kq=sh.transition.dialogFade,Aq=sh.spring.toast;sh.transition.drawer;var jq=sh.transition.sheet;function Mq(e,t,n,r){return{enter:dh(e??n),exit:dh(t??r??e??n)}}function Nq(e,t){return Mq(e,t,Eq)}function Pq(e,t,n){let{enter:r,exit:i}=Mq(t,n,e?jq:Dq,Oq),a=dh(kq);return{enter:e||t?r:{...r,opacity:a},exit:i}}var Fq=[`top`,`right`,`bottom`,`left`];function Iq(e){return typeof e==`string`&&Fq.includes(e)?e:void 0}var Lq={top:`translateY(-100%)`,right:`translateX(100%)`,bottom:`translateY(100%)`,left:`translateX(-100%)`};function Rq(e){let t=e===`top`||e===`bottom`?`rotateX`:`rotateY`;return{tipped:`perspective(500px) ${t}(${e===`bottom`||e===`left`?`20deg`:`-20deg`}) scale(${sh.scale.dialog})`,upright:`perspective(500px) ${t}(0deg) scale(1)`}}function zq({side:e,from:t=`top`,reduce:n,enter:r,exit:i}){if(e){let t=e===`left`||e===`right`?`translateX(0%)`:`translateY(0%)`,a={opacity:0,transform:n?t:Lq[e]};return{initial:a,animate:{opacity:1,transform:t,transition:r},exit:{...a,transition:i}}}let{tipped:a,upright:o}=Rq(t),s={opacity:0,filter:sh.blur.surface,transform:n?o:a};return{initial:s,animate:{opacity:1,filter:`blur(0px)`,transform:o,transition:r},exit:{...s,transition:i}}}function Bq(){let[e,t]=H.useState(!1);return H.useLayoutEffect(()=>{let e=requestAnimationFrame(()=>t(!0));return()=>cancelAnimationFrame(e)},[]),e}function Vq(e,t,n){return n&&!t?e.exit:e.animate}function Hq(e,t){let[n,r]=H.useState(!e);return e&&n&&r(!1),{hidden:t&&!e&&n,onAnimationComplete:()=>{e||r(!0)}}}var Uq={backgroundColor:`transparent`,backdropFilter:`none`,opacity:`0`};function Wq(e){let t=getComputedStyle(e);return{backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,opacity:t.opacity,hasImage:t.backgroundImage!==`none`}}function Gq(e,t,n){let r=t=>({backgroundColor:t.backgroundColor,backdropFilter:t.backdropFilter,...e.hasImage?{opacity:t.opacity}:{}});return[r(t),r(n)]}function Kq(e){let{visible:t}=e,n=H.useRef(null),r=H.useRef(e);H.useLayoutEffect(()=>{r.current=e});let i=H.useRef(null),a=H.useRef(!1);return H.useLayoutEffect(()=>{let{animated:e=!0,enter:o,exit:s,onFadedOut:c}=r.current,l=n.current,u=!a.current;if(a.current=!0,u&&!t)return;if(!l||!e||typeof l.animate!=`function`){t||c?.();return}let d=i.current,f=d?Wq(l):null;d?.cancel();let p=Wq(l),{duration:m,easing:h}=gh(t?o:s),g=l.animate(Gq(p,f??(t?Uq:p),t?p:Uq),{duration:m,easing:h,fill:t?`backwards`:`forwards`});i.current=g,g.finished.then(()=>{i.current===g&&(t?i.current=null:r.current.onFadedOut?.())}).catch(()=>{})},[t]),H.useCallback(e=>{n.current=e},[])}var qq=new WeakMap;function Jq(e){if(typeof e==`string`)return Zm[e];let t=qq.get(e);return t||(t=Zm.create(e),qq.set(e,t)),t}function Yq(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n&&(n.current=t)}}function Xq(e,t){let n=e.props;return H.createElement(Jq(e.type),{...n,...t,ref:Yq(n.ref,t.ref),style:{...n.style,...t.style}})}function Zq(e,t){return typeof e==`function`?((n,r)=>Xq(e(n,r),t)):e?Xq(e,t):H.createElement(Jq(`div`),t)}var Qq=H.createContext(void 0);function $q(e){let t=H.useContext(Qq);if(!e&&t===void 0)throw Error(TH(27));return t}var eJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=$q(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return jV(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:Iz,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),tJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=$q(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=fW({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,qz(nae,e.nativeEvent))}return jV(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})}),nJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=$q(),c=hW(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),jV(`p`,e,{ref:t,props:[{id:c},o]})}),rJ=H.createContext(void 0);function iJ(){let e=H.useContext(rJ);if(e===void 0)throw Error(TH(26));return e}var aJ=`--nested-dialogs`,oJ=`data-nested-dialog-open`,sJ={...Fz,...jz,nestedDialogOpen(e){return e?{[oJ]:``}:null}},cJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=$q(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);iJ(),NH({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?IH(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=jV(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...FH,hidden:!m,onKeyDown(e){dG.has(e.key)&&e.stopPropagation()},style:{[aJ]:g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:sJ});return(0,G.jsx)(gH,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})}),lJ=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=$q(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,G.jsx)(rJ.Provider,{value:n,children:(0,G.jsxs)(ZV,{ref:t,...r,children:[a&&o===!0&&(0,G.jsx)(qW,{ref:i.context.internalBackdropRef,inert:TW(!s)}),e.children]})}):null});function uJ({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),c=e.useState(`floatingRootContext`),[l,u]=H.useState(0),[d,f]=H.useState(0),p=l===0,m=CH(c,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=Dz(t);if(p&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Tz(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:p});return sG(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(u(t),f(n))}),Y(()=>{!r&&!i&&(u(0),f(0))},[r,i]),Y(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(l+1,d+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,l,d,t]),qH(e,{activeTriggerProps:m.reference,inactiveTriggerProps:m.trigger,popupProps:m.floating,nestedOpenDialogCount:l,nestedOpenDrawerCount:d}),null}var dJ={...dU,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},fJ=class extends nU{constructor(e,t,n){let r=new YH,i=mJ(e,r,t,n);super(i,hJ(r),dJ)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled||(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(VH(this.state,e,t.trigger)))}};function pJ(){let e=new YH;return new $U(Object.freeze(mJ(void 0,e)),Object.freeze(hJ(e)),dJ)}function mJ(e,t,n,r=!1){return{...aU(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function hJ(e){return{popupRef:H.createRef(),backdropRef:H.createRef(),internalBackdropRef:H.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function gJ(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=$q(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=LH((e,t)=>new fJ({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);JH(b,x),GH(b);let{forceUnmount:w}=KH(x,b);H.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,qz(nB))}),[w,b]);let T=x||S||u!=null;return(0,G.jsxs)(Qq.Provider,{value:b,children:[u&&(0,G.jsx)(RH,{handle:u,store:b}),T&&(0,G.jsx)(uJ,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}var _J=rz(function(e){return gJ(`dialog`,e)}),vJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=iJ(),c=$q(),l=c.useState(`open`),u=c.useState(`nested`),d=c.useState(`transitionStatus`),f=c.useState(`nestedOpenDialogCount`),p=c.useState(`mounted`),m=c.useStateSetter(`viewportElement`);return jV(`div`,e,{enabled:s||p,state:{open:l,nested:u,transitionStatus:d,nestedDialogOpen:f>0},ref:[t,m],stateAttributesMapping:sJ,props:[{role:`presentation`,hidden:!p,style:{pointerEvents:l?void 0:`none`},children:a},o]})}),yJ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=$q(),c=hW(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),jV(`h2`,e,{ref:t,props:[{id:c},o]})}),bJ=iz(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,payload:c,handle:l,...u}=e,d=$q(!0),f=fU(l)??d;if(!f)throw Error(TH(79));let p=hW(s),m=f.useState(`floatingRootContext`),h=f.useState(`isOpenedByTrigger`,p),g=f.useState(`triggerPopupId`,p),_=H.useRef(null),{registerTrigger:v,isMountedByThisTrigger:y}=WH(p,_,f,{payload:c}),{getButtonProps:b,buttonRef:x}=fW({disabled:a,native:o}),S=_H(m),C=yW(()=>f.select(`open`),e=>{f.set(`openMethod`,e)}),w={disabled:a,open:h},T=f.useState(`triggerProps`,y);return jV(`button`,e,{state:w,ref:[x,t,v,_],props:[S.reference,T,C,{[zV]:``,id:p,"aria-haspopup":`dialog`,"aria-expanded":h,"aria-controls":g},u,b],stateAttributesMapping:Nz})}),xJ=class extends EH{constructor(){super(pJ(),`Dialog`,!1)}open(e){this.openByTrigger(e)}openWithPayload(e){let t=this.attachedStore;t!==null&&(t.set(`payload`,e),t.setOpen(!0,qz(nB)))}close(){this.closePopup()}get isOpen(){return this.attachedStore?.select(`open`)??!1}};function SJ(){return new xJ}var[CJ,wJ]=Tq(`Dialog.Root`),TJ=H.createContext({keepMounted:!1});function EJ(e){return function({defaultOpen:t,...n}){let r=n.open!==void 0,[i,a]=H.useState(t??!1),o=r?!!n.open:i,s=(e,t)=>{n.onOpenChange?.(e,t),t?.isCanceled||r||a(e)};return(0,G.jsx)(CJ,{value:{open:o},children:(0,G.jsx)(e,{...n,open:o,onOpenChange:s})})}}function DJ({keepMounted:e,children:t,...n}){let{open:r}=wJ();return(0,G.jsx)($f,{children:(r||e)&&(0,G.jsx)(lJ,{...n,keepMounted:!0,children:(0,G.jsx)(TJ,{value:{keepMounted:!!e},children:(0,G.jsx)(yh,{children:t})})},`portal`)})}function OJ(e){let{open:t}=wJ(),{keepMounted:n}=H.use(TJ),r=Yf(),{hidden:i,onAnimationComplete:a}=Hq(t,n),o=!r||n&&!t&&!i,s=Bq();return{initial:e.initial,animate:s?Vq(e,t,n):e.initial,exit:e.exit,onAnimationComplete:a,...o?{hidden:!1}:{},...t?{}:{style:{pointerEvents:`none`}}}}function kJ({transition:e,exitTransition:t,render:n,...r}){let{open:i}=wJ(),{keepMounted:a}=H.use(TJ),[o,s]=Jf(),{hidden:c,onAnimationComplete:l}=Hq(i,a),u=Kq({visible:i&&o,...Nq(e,t),onFadedOut:()=>{l(),s?.()}}),d=!o||a&&!i&&!c;return(0,G.jsx)(eJ,{...r,render:Zq(n,{ref:u,...d?{hidden:!1}:{},...i?{}:{style:{pointerEvents:`none`}}})})}function AJ({from:e,transition:t,exitTransition:n,render:r,...i}){let a=Ch(),o=Iq(i[`data-side`]),{enter:s,exit:c}=Pq(o,t,n),l=OJ(zq({side:o,from:e,reduce:a,enter:s,exit:c}));return(0,G.jsx)(cJ,{...i,render:Zq(r,l)})}var jJ=wq({Backdrop:()=>FJ,Close:()=>RJ,Description:()=>BJ,Handle:()=>HJ,Popup:()=>IJ,Portal:()=>PJ,Root:()=>NJ,Title:()=>zJ,Trigger:()=>LJ,Viewport:()=>VJ,createHandle:()=>UJ}),MJ=EJ(_J);function NJ(e){return(0,G.jsx)(MJ,{...e})}function PJ(e){return(0,G.jsx)(DJ,{...e})}function FJ(e){return(0,G.jsx)(kJ,{...e})}function IJ(e){return(0,G.jsx)(AJ,{...e})}var LJ=bJ,RJ=tJ,zJ=yJ,BJ=nJ,VJ=vJ,HJ=xJ,UJ=SJ,WJ=(0,H.forwardRef)(function({className:e,...t},n){return(0,G.jsx)(cJ,{...t,ref:n,className:t=>`${typeof e==`function`?e(t):e??``} dialog-motion`})}),GJ=jJ.Close;function KJ({title:e,description:t,children:n,onCancel:r,busy:i=!1,role:a=`dialog`,testId:o,container:s}){let[c,l]=(0,H.useState)(!0),u=jf(),d=(0,H.useRef)(null),f=(0,H.useRef)(document.activeElement instanceof HTMLElement?document.activeElement:null),p=(0,H.useRef)(r);return p.current=r,(0,H.useEffect)(()=>{if(c)return;let e=setTimeout(()=>p.current(),u?Of.micro:Of.base);return()=>clearTimeout(e)},[c,u]),(0,G.jsx)(jJ.Root,{open:c,onOpenChange:(e,t)=>{!e&&i?t.cancel():l(e)},children:(0,G.jsxs)(jJ.Portal,{keepMounted:!0,container:s,children:[(0,G.jsx)(jJ.Backdrop,{className:`app-modal-backdrop no-drag`,transition:{ease:Of.out,duration:(u?Of.micro:Of.surface)/1e3},exitTransition:{ease:Of.out,duration:(u?Of.micro:Of.base)/1e3}}),(0,G.jsxs)(WJ,{ref:d,"data-testid":o,role:a,"aria-modal":`true`,"aria-busy":i||void 0,className:`app-modal no-drag`,finalFocus:f,initialFocus:()=>{let e=d.current?.querySelector(`[data-dialog-focus], [data-dialog-cancel]`);return e instanceof HTMLInputElement&&e.select(),e??d.current},children:[(0,G.jsxs)(`div`,{className:`modal-copy`,children:[(0,G.jsx)(jJ.Title,{children:e}),t&&(0,G.jsx)(jJ.Description,{children:t})]}),n]})]})})}function qJ({id:e,title:t,onNew:n,onDeleted:r,onEdit:i,className:a=``}){let o=(0,H.useRef)(null),s=(0,H.useRef)(null),c=(0,H.useCallback)(e=>{o.current=e,s.current=e?.closest(`dialog`)??null},[]),[l,u]=(0,H.useState)(),d=e=>{o.current?.focus(),u(e),i?.(e)};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(fq,{modal:!1,children:[(0,G.jsx)(bq,{ref:c,"data-testid":`chat-menu`,className:`chat-icon ask-menu-trigger ${a}`,"aria-label":U(`More`),title:U(`More`),children:(0,G.jsx)(Lg,{size:17,"aria-hidden":`true`})}),(0,G.jsx)(KK,{container:s,children:(0,G.jsx)(eq,{side:`bottom`,align:`end`,sideOffset:6,className:`ask-menu-positioner`,children:(0,G.jsxs)(UK,{className:`menu-entry ask-actions-menu`,"aria-label":U(`More`),finalFocus:!l&&o,onKeyDown:e=>{e.key===`Escape`&&e.stopPropagation()},children:[(0,G.jsxs)(PK,{"data-testid":`chat-rename`,onClick:()=>d(`rename`),children:[(0,G.jsx)(F_,{size:14,"aria-hidden":`true`}),U(`Rename`)]}),n&&(0,G.jsxs)(PK,{"data-testid":`chat-new`,onClick:n,children:[(0,G.jsx)(z_,{size:14,"aria-hidden":`true`}),U(`New chat`)]}),(0,G.jsxs)(PK,{"data-testid":`chat-delete`,className:`text-danger`,onClick:()=>d(`delete`),children:[(0,G.jsx)(Z_,{size:14,"aria-hidden":`true`}),U(`Delete`)]})]})})})]}),l&&!i&&(0,G.jsx)(JJ,{id:e,title:t,kind:l,container:s.current??void 0,onClose:()=>{u(void 0),o.current?.focus({preventScroll:!0})},onDeleted:r})]})}function JJ({id:e,title:t,kind:n,container:r,onClose:i,onDeleted:a}){let[o,s]=(0,H.useState)(t),[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(!1),f=async()=>{if(!(c||n===`rename`&&!o.trim())){l(!0),d(!1);try{n===`delete`?await window.yogurt.conversations.delete(e):await window.yogurt.conversations.rename(e,o.trim()),i(),n===`delete`&&a()}catch{d(!0)}finally{l(!1)}}};return(0,G.jsx)(KJ,{container:r,busy:c,testId:n===`delete`?`chat-delete-confirm`:`chat-rename-dialog`,role:n===`delete`?`alertdialog`:`dialog`,onCancel:i,title:U(n===`delete`?`Delete “{title}”?`:`Rename “{title}”`,{title:t||U(`New chat`)}),description:n===`delete`?Ev({mac:U(`This conversation is removed from this Mac for good. Your meetings stay as they are.`),other:U(`This conversation is removed from this computer for good. Your meetings stay as they are.`)}):void 0,children:(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),f()},children:[n===`rename`&&(0,G.jsx)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,G.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`chat-rename-input`,"aria-label":U(`Conversation name`),value:o,maxLength:200,className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`,disabled:c,onChange:e=>s(e.target.value)})}),u&&(0,G.jsx)(`p`,{className:`chat-error`,role:`alert`,children:U(`Couldn't save your changes`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{type:`submit`,"data-testid":n===`delete`?`chat-delete-yes`:`chat-rename-save`,disabled:c||n===`rename`&&!o.trim(),className:`modal-button ${n===`delete`?`danger`:`primary`}`,children:U(n===`delete`?`Delete`:`Save`)}),(0,G.jsx)(GJ,{type:`button`,"data-dialog-cancel":!0,"data-testid":`chat-delete-cancel`,className:`modal-button`,disabled:c,children:U(`Cancel`)})]})]})})}var YJ=e=>e.title.trim()||(e.kind===`meeting`?U(`Untitled meeting`):U(`Folder`)),XJ=e=>({name:e.length?YJ(e[0]):U(`All meetings`),others:e.length>1?U(`and {count} others`,{count:e.length-1}):``});function ZJ({chips:e}){let t=XJ(e),n=e[0]?.kind===`folder`?Yg:Ug;return(0,G.jsxs)(G.Fragment,{children:[!!e.length&&(0,G.jsx)(n,{size:14,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,G.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,G.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]}),(0,G.jsx)(xg,{size:12,"aria-hidden":`true`})]})}function QJ({chips:e}){let t=XJ(e);return(0,G.jsx)(`span`,{className:`chat-answer-scope`,title:e.length?e.map(YJ).join(`
+`):t.name,children:e.length?mee(`Searched {name}`,{name:(0,G.jsxs)(`span`,{className:`ask-scope-label`,children:[(0,G.jsx)(`span`,{className:`ask-scope-name`,children:t.name}),t.others&&(0,G.jsx)(`span`,{className:`ask-scope-others`,children:` ${t.others}`})]})}):U(`Searched all meetings`)})}function $J(e,t,n,r){let i,a=e.scrollTop,o=()=>{i?.stop(),i=void 0},s=()=>r(e.scrollHeight-e.scrollTop-e.clientHeight>=24),c=()=>{document.hidden||!e.clientHeight||e.scrollHeight<=e.clientHeight||(n.current&&(i?.active?i.to(Math.max(0,e.scrollHeight-e.clientHeight)):(e.scrollTop=e.scrollHeight,a=e.scrollTop)),s())},l=()=>{let t=e.scrollTop<a;if(a=e.scrollTop,i?.active)return;let r=e.scrollHeight-e.scrollTop-e.clientHeight<24;(t||r)&&(n.current=r),s()},u=()=>{o()},d=e=>{o(),e.deltaY<0&&(n.current=!1,s())},f=e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&o()},p=()=>{document.hidden?o():c()},m=new ResizeObserver(c);m.observe(t),m.observe(e),e.addEventListener(`scroll`,l,{passive:!0}),e.addEventListener(`wheel`,d,{passive:!0});for(let t of[`touchstart`,`pointerdown`])e.addEventListener(t,u,{passive:!0});return e.addEventListener(`keydown`,f),document.addEventListener(`visibilitychange`,p),c(),{latest(){n.current=!0,r(!1),document.hidden||!e.clientHeight||e.scrollHeight<=e.clientHeight||(o(),i=Mf(e,()=>{a=e.scrollTop,s()}),i.to(Math.max(0,e.scrollHeight-e.clientHeight)))},dispose(){o(),m.disconnect(),e.removeEventListener(`scroll`,l),e.removeEventListener(`wheel`,d);for(let t of[`touchstart`,`pointerdown`])e.removeEventListener(t,u);e.removeEventListener(`keydown`,f),document.removeEventListener(`visibilitychange`,p)}}}function eY(e,t,n,r=!0){let i=(0,H.useRef)(r),a=(0,H.useRef)(null),[o,s]=(0,H.useState)(!1);return(0,H.useLayoutEffect)(()=>{let r=e.current,o=t.current;if(!n||!r||!o)return;let c=$J(r,o,i,s);return a.current=c,()=>{c.dispose(),a.current=null}},[n,e,t]),{behind:n&&o,resume:()=>{i.current=!0,s(!1)},latest:()=>a.current?.latest()}}function tY({show:e,options:t,className:n}){return(0,G.jsx)(`span`,{className:`swap ${n??``}`,"aria-hidden":`true`,children:Object.keys(t).map(n=>(0,G.jsx)(`span`,{"data-on":n===e,children:t[n]},n))})}function nY({text:e,widest:t}){let n=(0,H.useRef)(!1);return(0,H.useEffect)(()=>{n.current=!0},[]),(0,G.jsx)(`span`,{className:`swap-text`,"data-widest":t,children:(0,G.jsx)(`span`,{className:n.current?`swap-in`:void 0,children:e},e)})}var rY=1200,iY=8e3;function aY(e,t,n){let r=e,i=!0,a=!1,o=!1,s,c=()=>!r.hasText&&!r.reduced&&!r.hidden&&(i||!r.focused&&!r.hovered),l=()=>{clearTimeout(s),s=void 0,a=!1,n()},u=e=>{s=setTimeout(()=>{a=!0,t(),s=setTimeout(()=>{n(),s=void 0,a=!1,i=!1,c()&&u(6800)},rY)},e)},d=e=>{o||(r=e,(!a||r.reduced||r.hidden)&&(c()?s===void 0&&u(i?300:iY):(i=!1,l())))};return d(e),{update:d,dispose(){o=!0,l()}}}var oY=`cubic-bezier(.37,0,.63,1)`;function sY(e){let t=e.querySelector(`textarea`),n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.setAttribute(`class`,`ask-tracer`),r.setAttribute(`aria-hidden`,`true`);let i=Array.from({length:20},(e,t)=>{let n=document.createElementNS(r.namespaceURI,`rect`);for(let[e,t]of Object.entries({x:1,y:1,rx:11,pathLength:100}))n.setAttribute(e,String(t));return n.style.strokeDashoffset=String(-t),n.style.opacity=String(Math.sin(Math.PI*(t+.5)/20)**2),r.append(n),n});e.append(r);let a=()=>{let{width:t,height:n}=e.getBoundingClientRect();r.setAttribute(`viewBox`,`0 0 ${t} ${n}`);for(let e of i)e.setAttribute(`width`,String(Math.max(0,t-2))),e.setAttribute(`height`,String(Math.max(0,n-2)))};a();let o=new ResizeObserver(a);o.observe(e);let s=[],c=()=>{s.forEach(e=>e.cancel()),s=[]},l=()=>{c();let e={duration:rY,easing:`linear`};s=[r.animate([{opacity:0},{opacity:1,offset:.2},{opacity:1,offset:.8},{opacity:0}],e),...i.map((t,n)=>t.animate([{strokeDashoffset:String(-n),easing:oY},{strokeDashoffset:String(-n-100)}],e))]},u=!1,d=()=>({focused:e.contains(document.activeElement),hovered:u,hasText:!!t.value,reduced:n.matches,hidden:document.hidden}),f=aY(d(),l,c),p=()=>f.update(d()),m=()=>queueMicrotask(p),h=()=>{u||(u=!0,p())},g=()=>{u=!1,p()};for(let t of[`input`,`focusin`])e.addEventListener(t,p);return e.addEventListener(`pointermove`,h),e.addEventListener(`pointerleave`,g),e.addEventListener(`focusout`,m),document.addEventListener(`visibilitychange`,p),n.addEventListener(`change`,p),{update:p,dispose(){f.dispose(),o.disconnect(),r.remove();for(let t of[`input`,`focusin`])e.removeEventListener(t,p);e.removeEventListener(`pointermove`,h),e.removeEventListener(`pointerleave`,g),e.removeEventListener(`focusout`,m),document.removeEventListener(`visibilitychange`,p),n.removeEventListener(`change`,p)}}}function cY(e,t,n){let r=Math.max(0,n.height-16-e.bottom-4),i=Math.max(0,e.top-4-16),a=t.height>r&&i>r,o=Math.min(t.height,a?i:r);return{left:Math.max(16,Math.min(e.left,n.width-16-t.width)),top:Math.max(16,Math.min(a?e.top-4-o:e.bottom+4,n.height-16-o)),maxHeight:o}}function lY(e,t){let n=getComputedStyle(e),r=e.getBoundingClientRect(),i=document.createElement(`div`),a=document.createElement(`span`);for(let e of`font-family.font-size.font-weight.font-style.font-variant.font-stretch.line-height.letter-spacing.word-spacing.text-indent.text-align.text-transform.direction.tab-size.padding-top.padding-right.padding-bottom.padding-left.border-top-width.border-right-width.border-bottom-width.border-left-width.border-style.white-space.overflow-wrap.word-break`.split(`.`))i.style.setProperty(e,n.getPropertyValue(e));Object.assign(i.style,{position:`fixed`,visibility:`hidden`,pointerEvents:`none`,left:`0`,top:`0`,boxSizing:`border-box`,width:`${e.clientWidth+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)}px`}),i.setAttribute(`aria-hidden`,`true`),i.textContent=e.value.slice(0,t),a.textContent=e.value.slice(t,t+1),i.append(a,document.createTextNode(e.value.slice(t+1))),document.body.append(i);try{let t=a.getBoundingClientRect(),i=parseFloat(n.lineHeight),o=r.top+t.top-(i-t.height)/2-e.scrollTop;return{left:r.left+t.left-e.scrollLeft,top:o,bottom:o+i}}finally{i.remove()}}var uY=new Map,dY=(e,t)=>e.length===1&&e[0].kind===`meeting`?t?[U(`What did I just miss?`),U(`Sum up the meeting so far`),U(`What should I ask next?`)]:[U(`What was decided?`),U(`What are my next steps?`),U(`What questions are still open?`)]:e.length?[U(`What was decided?`),U(`What are my next steps?`),U(`What questions are still open?`)]:[U(`What are my next steps this week?`),U(`What did we decide last week?`),U(`Catch me up on yesterday`)];function fY({id:e,pendingDraftKey:t,initial:n,loadError:r=!1,home:i=!1,panel:a=!1,recording:o=!1,onSelect:s,onSource:c,onDeleted:l,onClose:u,onExpand:d}){let[f,p]=(0,H.useState)(n),[m,h]=(0,H.useState)((t?uY.get(t):void 0)??uY.get(e)??n?.draft??``),g=(0,H.useRef)(!1),[_,v]=(0,H.useState)(!1),[y,b]=(0,H.useState)(!1),x=(0,H.useRef)(void 0),[S,C]=(0,H.useState)(!1),[w,T]=(0,H.useState)(),[E,D]=(0,H.useState)(),O=(0,H.useRef)(!1),k=E?.query??w?.query,[A,j]=(0,H.useState)(),M=(0,H.useRef)(void 0),N=()=>{M.current||window.yogurt.conversations.targets(``).then(e=>{M.current=e}).catch(()=>{})},[P,F]=(0,H.useState)(!1),[I,L]=(0,H.useState)(!1),R=f?bG(f.chips,f.draftChips):[],ee=e=>R.some(t=>t.kind===e.kind&&t.id===e.id),z=(A?.items??[]).filter(e=>k?!0:!ee(e)),te=z.filter(e=>e.kind===`meeting`),ne=z.filter(e=>e.kind===`folder`),re=ne.slice(0,A?.query?4:2),ie=te.slice(0,A?.query?10-re.length:ne.length?3:5),B=[...te,...ne],ae=P?B:[...ie,...re],oe=B.length-ae.length,V=E&&!k?R.slice(0,I?void 0:3):[],se=E&&!k?R.length-V.length:0,ce=E&&!k?V.length+ +!!se:0,le=ce+ae.length+ +!!oe,[ue,de]=(0,H.useState)(0),fe=(0,H.useRef)(null),pe=(0,H.useRef)(null),me=(0,H.useRef)(void 0),he=a||!!f||!!_;(0,H.useEffect)(()=>{if(he&&pe.current)return me.current=sY(pe.current),()=>{me.current?.dispose(),me.current=void 0}},[he]),(0,H.useEffect)(()=>{me.current?.update()},[m]);let ge=(0,H.useRef)(null),_e=(0,H.useRef)(null),ve=(0,H.useRef)({start:0,end:0}),ye=`conversation/${e}`,be=Lv(ye,!!f),xe=(0,H.useRef)(null),Se=eY(be,xe,!!f,Fv(ye)===void 0),Ce=a?`chat`:`chat-page`;(0,H.useEffect)(()=>{if(!e)return;let r=!0,i=0;v(!1);let a=t?uY.get(t):void 0;a!==void 0&&(g.current=!0,uY.set(e,a),uY.delete(t),window.yogurt.conversations.draft(e,a).then(()=>{uY.get(e)===a&&uY.delete(e)}).catch(()=>{r&&v(!0)}));let o=window.yogurt.conversations.onChange(t=>{t.id===e&&(i++,p(t))}),s=(t=!1)=>{let a=++i;window.yogurt.conversations.get(e).then(o=>{if(r){if(!o)throw Error(`Conversation not found`);a===i&&p(o),t&&!n&&!g.current&&h(uY.get(e)??o.draft)}}).catch(()=>{r&&a===i&&(v(!0),x.current!==void 0&&(x.current=void 0,b(!1)))})},c=window.yogurt.meetings.onChange(()=>s()),l=window.yogurt.folders.onChange(()=>s());return s(!0),()=>{r=!1,o(),c(),l()}},[e]),(0,H.useEffect)(()=>{let e=!0;if(k===void 0)j(void 0),de(0),F(!1);else return window.yogurt.conversations.targets(k).then(t=>{e&&(k||(M.current=t),j({query:k,items:t}),de(0),F(!1))}).catch(()=>{e&&v(!0)}),()=>{e=!1}},[k,!!E,f?.chips,f?.draftChips]);let we=R.length===1&&R[0].kind===`meeting`?R[0].id:void 0,Te=()=>{we&&window.yogurt.conversations.warm(e)};(0,H.useEffect)(Te,[e,we]),(0,H.useEffect)(()=>{document.getElementById(`${Ce}-context-${ue}`)?.scrollIntoView({block:`nearest`})},[ue,ae]),(0,H.useLayoutEffect)(()=>{let e=fe.current,t=_e.current;if(!w||!e||!t)return;let n=()=>{let n=cY(lY(e,w.start),{width:t.offsetWidth,height:Math.min(340,innerHeight/2,t.scrollHeight+t.offsetHeight-t.clientHeight)},{width:innerWidth,height:innerHeight});Object.assign(t.style,{left:`${n.left}px`,top:`${n.top}px`,maxHeight:`${n.maxHeight}px`})};n();let r=new ResizeObserver(n);return r.observe(e),r.observe(t),pe.current&&r.observe(pe.current),window.addEventListener(`resize`,n),document.addEventListener(`scroll`,n,!0),()=>{r.disconnect(),window.removeEventListener(`resize`,n),document.removeEventListener(`scroll`,n,!0)}},[w,m,A,P,f]);let Ee=f?.turns??[],De=Ee.at(-1),ke=De?.status===`waiting`||De?.status===`answering`,Ae=!f||y||S||ke,je=(f?f.firstChips===null:i||a)&&!Ee.length,Me=i||!a&&je,Ne=n=>{g.current=!0,h(n),(e||t)&&uY.set(e||t,n),e&&window.yogurt.conversations.draft(e,n).then(()=>{uY.get(e)===n&&uY.delete(e)}).catch(()=>v(!0))},Pe=(e,t)=>{let n=e.slice(0,t)!==m.slice(0,t);n&&e[t-1]===`@`&&(O.current=!1),n&&e[t-1]===` `&&w&&A?.query===w.query&&!ae.length&&(O.current=!0),T(O.current?void 0:SG(e,t))},Fe=async t=>{C(!0),v(!1);try{await window.yogurt.conversations.context(e,t)}catch{throw v(!0),Error(`Context was not saved`)}finally{C(!1)}},Ie=e=>{(w||E)&&!Ae&&f&&(ee(e)?Promise.resolve():Fe(bG(f.firstChips===null?R:f.draftChips,[e]))).then(()=>{w&&Ne(m.slice(0,w.start)+m.slice(w.end)),w&&(T(void 0),requestAnimationFrame(()=>{fe.current?.focus(),fe.current?.setSelectionRange(w.start,w.start)}))}).catch(()=>{})},Le=async t=>{if(!Ae){C(!0),v(!1);try{for(let n of t)await window.yogurt.conversations.removeContext(e,n)}catch{v(!0)}finally{C(!1)}}},Re=e=>{E&&ee(e)?Le([e]):Ie(e)},ze=()=>(fe.current?.focus({preventScroll:!0}),fe.current?.setSelectionRange(ve.current.start,ve.current.end),!1),Be=()=>{let e=document.activeElement;(e===document.body||e?.closest(`.ask-box, .ask-starters`))&&fe.current?.focus({preventScroll:!0})},Ve=t=>{window.yogurt.conversations.ask(e,t).then(t=>{if(!t)throw Error(`Question was not saved`);h(``),uY.delete(e),i&&s(t)}).catch(()=>{Ne(t),v(!0)}).finally(()=>b(!1))},He=e=>{!e.trim()||y||S||ke||r||!f&&(!a||_)||(Be(),Se.resume(),b(!0),v(!1),T(void 0),D(void 0),f?Ve(e):x.current=e)};(0,H.useEffect)(()=>{if(r){x.current=void 0,b(!1);return}if(!f||x.current===void 0)return;let e=x.current;x.current=void 0,Ve(e)},[f,r]);let Ue=()=>{de(ce+B.findIndex(e=>!ae.includes(e))),F(!0)},We=e=>{if(!e.nativeEvent.isComposing){if((w||E)&&[`ArrowDown`,`ArrowUp`,`Enter`,`Escape`].includes(e.key)){if(e.preventDefault(),e.stopPropagation(),e.key===`Escape`)O.current=!0,T(void 0),D(void 0);else if(e.key===`Enter`){let e=ue<V.length?V[ue]:se&&ue===ce-1?`scope-more`:oe&&ue===ce+ae.length?`more`:ae[ue-ce];e===`scope-more`?L(!0):e===`more`?Ue():e&&(Re(e),E&&D(void 0))}else de(t=>(t+(e.key===`ArrowDown`?1:-1)+le)%(le||1))}else e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),He(m))}},Ge=()=>{f&&!S&&window.yogurt.conversations.current(bG(f.chips,f.draftChips),!0).then(s).catch(()=>v(!0))},Ke=!a&&(!!m||!!E),qe=je&&(Me||a)&&(!a||!m)&&(0,G.jsx)(`div`,{"data-testid":a?`chat-suggestions`:`chat-starters`,"aria-hidden":Ke||void 0,"data-instant":!!E||void 0,inert:Ke,className:`ask-starters${a?``:` ask-home-starters`}`,children:dY(R,o).map(e=>(0,G.jsx)(`button`,{type:`button`,title:e,"data-testid":a?`chat-suggestion`:`chat-starter`,disabled:Ae||Ke,onClick:()=>He(e),children:e},e))}),Je=(e,t)=>(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:Ae,"aria-selected":E?ee(e):ue===t,"data-active":ue===t||void 0,id:`${Ce}-context-${t}`,onMouseDown:e=>e.preventDefault(),onClick:()=>Re(e),children:[e.kind===`meeting`?(0,G.jsx)(Ug,{size:14,"aria-hidden":`true`}):(0,G.jsx)(Yg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:YJ(e)}),ee(e)?(0,G.jsx)(yg,{size:14,"aria-hidden":`true`}):e.startedAt&&(0,G.jsx)(`small`,{children:OG(e.startedAt)})]},`${e.kind}:${e.id}`),Ye=(0,G.jsxs)(G.Fragment,{children:[!!ce&&(0,G.jsx)(G.Fragment,{children:!!V.length&&(0,G.jsxs)(`div`,{role:`group`,"aria-label":U(`In this chat`),children:[(0,G.jsxs)(`h3`,{children:[U(`In this chat`),(0,G.jsx)(`button`,{type:`button`,className:`ask-picker-clear`,disabled:Ae,onMouseDown:e=>e.preventDefault(),onClick:()=>void Le(R),children:U(`Clear`)})]}),V.map((e,t)=>Je(e,t)),!!se&&(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,"aria-selected":!1,"data-active":ue===ce-1||void 0,id:`${Ce}-context-${ce-1}`,onMouseDown:e=>e.preventDefault(),onClick:()=>L(!0),children:[(0,G.jsx)(Lg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`{count} more`,{count:se})})]})]})}),[`meeting`,`folder`].map(e=>ae.some(t=>t.kind===e)&&(0,G.jsxs)(`div`,{role:`group`,"aria-label":U(e===`meeting`?`Meetings`:`Folders`),children:[(0,G.jsx)(`h3`,{children:U(e===`meeting`?`Meetings`:`Folders`)}),ae.map((t,n)=>t.kind===e&&Je(t,ce+n))]},e)),!!oe&&(0,G.jsxs)(`button`,{type:`button`,role:`option`,tabIndex:-1,disabled:Ae,className:`text-muted`,"aria-selected":!E&&ue===ce+ae.length,"data-active":ue===ce+ae.length||void 0,id:`${Ce}-context-${ce+ae.length}`,onMouseDown:e=>e.preventDefault(),onClick:Ue,children:[(0,G.jsx)(Lg,{size:14,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`{count} more results`,{count:oe})})]}),!A&&!_&&(0,G.jsx)(`p`,{role:`status`,children:U(`Loading…`)}),A&&!ae.length&&!ce&&(0,G.jsx)(`p`,{children:U(`Nothing found for “{query}”.`,{query:A.query})})]});return(0,G.jsxs)(`div`,{"data-testid":Me?`chat-empty`:void 0,"aria-busy":De?.status===`answering`,className:`ask-conversation${Me?` ask-landing`:``}`,children:[Me?(0,G.jsx)(`h1`,{className:`ask-home-title`,children:U(`Ask about your meetings`)}):(0,G.jsxs)(`header`,{className:`ask-conversation-head`,children:[(0,G.jsx)(`h2`,{id:a?`meeting-chat-title`:void 0,title:[f?.title||U(`New chat`),...f?.chips.map(YJ)??[]].join(`
+`),children:f?.title||U(`New chat`)}),(0,G.jsxs)(`div`,{className:`ask-header-actions`,children:[f&&(0,G.jsx)(qJ,{id:e,title:f.title,onNew:Ge,onDeleted:l}),d&&(0,G.jsx)(`button`,{type:`button`,"data-testid":`chat-expand`,className:`chat-icon`,onClick:d,"aria-label":U(`Open in Ask`),title:U(`Open in Ask`),children:(0,G.jsx)(C_,{size:15,"aria-hidden":`true`})}),u&&(0,G.jsx)(`button`,{type:`button`,"data-testid":`chat-close`,className:`chat-icon`,onClick:u,"aria-label":U(`Close`),title:U(`Close`),children:(0,G.jsx)(av,{size:16,"aria-hidden":`true`})})]})]}),(0,G.jsxs)(`div`,{className:`ask-thread-wrap`,children:[(0,G.jsx)(qh,{children:(0,G.jsx)(`div`,{className:`ask-thread${a?` chat-history`:``}${je?` ask-thread-empty`:``}`,ref:be,children:(0,G.jsx)(`div`,{ref:xe,className:`ask-thread-content`,children:(0,G.jsxs)(sK,{pending:!f&&!_,skeleton:(0,G.jsx)(sv,{layout:`chat`,testId:`chat-thread-loading`}),children:[!Me&&Ee.map(e=>(0,G.jsx)(pY,{showCopy:e===De,turn:e,chat:f,panel:a,onSource:c,onRetry:()=>He(e.question)},e.id)),a&&qe]})})})}),Se.behind&&(0,G.jsx)(`button`,{className:`chat-latest`,"data-testid":`chat-latest`,"aria-label":U(`Back to latest`),onClick:Se.latest,children:(0,G.jsx)(og,{size:15})})]}),(0,G.jsxs)(`div`,{className:`ask-composer${a?` chat-composer`:``}`,children:[_&&(0,G.jsx)(`p`,{"data-testid":a?`chat-send-error`:`chat-page-error`,role:`alert`,className:`chat-error`,children:U(`Couldn't save your changes`)}),(0,G.jsx)(sK,{pending:!a&&!f&&!_,onReady:()=>{f&&fe.current?.focus({preventScroll:!0})},testId:Me?`chat-loading`:void 0,children:(0,G.jsxs)(`form`,{ref:pe,className:`ask-box`,"data-busy":Ae||void 0,"data-testid":`${Ce}-box`,onSubmit:e=>{e.preventDefault(),He(m)},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||T(void 0)},children:[(0,G.jsxs)(`div`,{className:`ask-field`,children:[(0,G.jsx)(`textarea`,{autoFocus:a,ref:fe,id:a?`meeting-question`:`library-question`,"data-testid":`${Ce}-input`,rows:1,maxLength:4e3,placeholder:Me?void 0:U(a?`Ask anything`:`Ask about your meetings`),"aria-label":U(a?`Ask anything`:`Ask about your meetings`),value:m,disabled:!a&&!f,readOnly:y||S,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!w,"aria-controls":w?`${Ce}-contexts`:void 0,"aria-activedescendant":w&&ue<le?`${Ce}-context-${ue}`:void 0,onChange:e=>{Ne(e.target.value),Pe(e.target.value,e.target.selectionStart)},onClick:e=>Pe(e.currentTarget.value,e.currentTarget.selectionStart),onSelect:e=>Pe(e.currentTarget.value,e.currentTarget.selectionStart),onFocus:Te,onKeyDown:We}),(0,G.jsxs)(`div`,{className:`ask-box-actions`,children:[(0,G.jsxs)(aW,{open:!!E,onOpenChange:e=>{T(void 0),j(e&&M.current?{query:``,items:M.current}:void 0),de(0),F(!1),L(!1),e||requestAnimationFrame(()=>{let e=document.activeElement;(!e||e===document.body||e.closest(`.ask-scope, .ask-selector`))&&fe.current?.focus({preventScroll:!0})}),e&&(ve.current={start:fe.current?.selectionStart??m.length,end:fe.current?.selectionEnd??m.length}),D(e?{query:``}:void 0)},children:[(0,G.jsxs)(`span`,{className:`ask-scope-group`,children:[(0,G.jsx)(xW,{type:`button`,className:`ask-scope`,"data-testid":`ask-scope`,onPointerEnter:N,onFocus:N,disabled:Ae,"aria-label":U(`Choose meetings or folders`),title:U(`Choose meetings or folders`),children:(0,G.jsx)(ZJ,{chips:R})}),!!R.length&&(0,G.jsx)(`button`,{type:`button`,className:`ask-scope-clear`,"data-testid":`ask-scope-clear`,disabled:Ae,"aria-label":U(`Clear`),title:U(`Clear`),onClick:()=>{Le(R),fe.current?.focus({preventScroll:!0})},children:(0,G.jsx)(av,{size:12,"aria-hidden":`true`})})]}),(0,G.jsx)(wW,{container:fe.current?.closest(`dialog`)??void 0,children:(0,G.jsx)(uG,{anchor:pe,side:Me?`bottom`:`top`,align:`start`,collisionAvoidance:{fallbackAxisSide:`none`},sideOffset:6,collisionPadding:16,positionMethod:`fixed`,className:`ask-selector-positioner`,children:(0,G.jsxs)(gG,{className:`ask-picker ask-selector`,"aria-label":U(`Choose meetings or folders`),initialFocus:ge,finalFocus:ze,children:[(0,G.jsx)(`input`,{ref:ge,className:`ask-picker-search`,placeholder:U(`Search…`),"aria-label":U(`Search meetings and folders`),role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":!!E,"aria-controls":`${Ce}-contexts`,"aria-activedescendant":ue<le?`${Ce}-context-${ue}`:void 0,value:E?.query??``,maxLength:200,readOnly:S,onChange:e=>D(t=>t&&{...t,query:e.target.value}),onKeyDown:We}),(0,G.jsx)(`div`,{className:`ask-picker-results`,id:`${Ce}-contexts`,role:`listbox`,"aria-multiselectable":`true`,"aria-label":U(`Add context`),children:Ye})]})})})]}),ke?(0,G.jsx)(`button`,{type:`button`,"data-testid":`${Ce}-stop`,className:`ask-toolbar-button ask-stop`,"aria-label":f?.waitsForModel?U(`Cancel question`):U(`Stop`),title:f?.waitsForModel?U(`Cancel question`):U(`Stop`),onClick:()=>{Be(),window.yogurt.conversations.stop(e)},children:(0,G.jsx)(lee,{size:10,fill:`currentColor`})}):(0,G.jsxs)(`button`,{type:`submit`,"data-testid":`${Ce}-send`,className:`ask-toolbar-button ask-send`,disabled:Ae||!m.trim(),"aria-label":U(`Ask`),children:[(0,G.jsx)(`span`,{className:`orb-material`,"aria-hidden":`true`}),(0,G.jsx)(lg,{size:16})]})]})]}),w&&(0,Oe.createPortal)((0,G.jsx)(`div`,{ref:_e,className:`ask-picker ask-mention`,id:`${Ce}-contexts`,role:`listbox`,"aria-label":U(`Add context`),children:Ye}),fe.current?.closest(`dialog`)??document.body)]})})]}),!a&&qe,(0,G.jsx)(`p`,{"data-testid":`${Ce}-announce`,className:`sr-only`,"aria-live":`polite`,children:De?.status===`done`?De.answer:``})]})}function pY({turn:e,chat:t,panel:n,showCopy:r,onSource:i,onRetry:a}){let o=e.status===`answering`,s=IG(e.answer,o),[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(!1),f=n?`chat`:`chat-page`;return(0,H.useEffect)(()=>{if(!c)return;let e=setTimeout(()=>l(!1),1800);return()=>clearTimeout(e)},[c]),(0,G.jsxs)(`div`,{"data-testid":`${f}-turn`,"data-status":e.status,"data-show-copy":r||void 0,className:`ask-turn`,children:[(0,G.jsx)(`p`,{className:`ask-question`,"data-testid":`${f}-question`,children:e.question}),(e.status===`waiting`||o&&!s)&&(t.waitsForModel&&e.status===`waiting`?(0,G.jsx)(fK,{downloading:e=>(0,G.jsxs)(`p`,{role:`status`,className:`text-sm text-muted`,children:[U(`Your question is waiting for Yogurt's AI to download.`),` `,(0,G.jsx)(`span`,{className:`whitespace-nowrap`,children:e})]}),children:(0,G.jsx)(`p`,{role:`status`,className:`text-sm text-muted`,children:U(`Getting ready to answer. Yogurt is still setting up.`)})}):(0,G.jsx)(`p`,{className:`chat-progress`,role:`status`,children:t.waitsForMeeting&&e.status===`waiting`?U(`Yogurt will answer once the meeting ends.`):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(mK,{}),(0,G.jsx)(mY,{step:e.status===`waiting`?void 0:e.step})]})})),s&&(0,G.jsx)(`div`,{"data-testid":`${f}-answer`,dir:`auto`,"data-streaming":o||void 0,className:`note-prose chat-answer${o?` stream-caret`:``}`,children:(0,G.jsx)(GG,{md:s,live:o,sources:e.sources,onSource:i})}),s&&!o&&(0,G.jsxs)(`div`,{className:`chat-answer-actions`,children:[(0,G.jsxs)(`button`,{className:`chat-copy-action`,"data-testid":`chat-copy-answer`,"aria-label":U(c?`Copied`:`Copy answer`),onClick:()=>{navigator.clipboard.writeText(e.answer).then(()=>{l(!0),d(!1)}).catch(()=>d(!0))},children:[(0,G.jsx)(tY,{show:c?`done`:`copy`,options:{copy:(0,G.jsx)(iK,{size:13}),done:(0,G.jsx)(yg,{size:13})}}),(0,G.jsx)(nY,{text:U(c?`Copied`:`Copy`),widest:U(`Copied`)})]}),e.scope&&(0,G.jsx)(QJ,{chips:e.scope}),(0,G.jsx)(`span`,{role:`status`,className:u?`text-danger`:`sr-only`,children:u?U(`Yogurt couldn't copy.`):c?U(`Copied`):``})]}),e.status===`stopped`&&(0,G.jsx)(`p`,{className:`text-xs text-muted`,children:U(s?`Stopped`:`Stopped before answering`)}),e.status===`failed`&&(0,G.jsxs)(`p`,{role:`alert`,children:[U(`Yogurt couldn't answer that.`),` `,(0,G.jsx)(`button`,{className:`ghost-btn`,onClick:a,children:U(`Try again`)})]})]})}function mY({step:e}){let[t,n]=(0,H.useState)(0),r=JSON.stringify(e??null);(0,H.useEffect)(()=>{n(0);let e=setInterval(()=>n(e=>e+1),CG);return()=>clearInterval(e)},[r]);let i=wG(e,t);return(0,G.jsx)(`span`,{"data-testid":`chat-step`,className:`chat-step`,children:i},i)}var hY=`M21.528 8.111Q25.000 7.278 30.000 7.278L30.000 7.278Q35.000 7.278 45.833 7.833L56.667 8.389L56.667 8.389L56.111 20.056Q55.556 31.722 54.861 34.222L54.861 34.222Q54.167 36.722 53.472 37.556L53.472 37.556Q52.778 38.389 51.528 39.083L51.528 39.083Q50.278 39.778 44.028 40.889L44.028 40.889Q37.778 42.000 36.111 43.250L36.111 43.250Q34.444 44.500 33.889 45.750L33.889 45.750Q33.333 47.000 33.472 48.806L33.472 48.806Q33.611 50.611 34.583 52.417L34.583 52.417Q35.556 54.222 37.361 55.889L37.361 55.889Q39.167 57.556 40.694 58.250L42.222 58.944L42.222 58.944L42.361 59.778Q42.500 60.611 42.500 62.278L42.500 63.944L42.500 63.944L41.250 63.944Q40.000 63.944 35.139 62.972L35.139 62.972Q30.278 62.000 25.556 60.056L25.556 60.056Q20.833 58.111 18.194 56.306L18.194 56.306Q15.556 54.500 13.611 52.556L13.611 52.556Q11.667 50.611 10.278 48.667L10.278 48.667Q8.889 46.722 7.500 43.389L7.500 43.389Q6.111 40.056 5.556 36.861L5.556 36.861Q5.000 33.667 5.000 31.167L5.000 31.167Q5.000 28.667 5.417 26.028L5.417 26.028Q5.833 23.389 6.944 20.611L6.944 20.611Q8.056 17.833 9.444 15.889L9.444 15.889Q10.833 13.944 12.639 12.417L12.639 12.417Q14.444 10.889 16.250 9.917L16.250 9.917Q18.056 8.944 21.528 8.111L21.528 8.111Z M66.250 33.944Q68.611 33.667 72.639 33.667L72.639 33.667Q76.667 33.667 79.028 34.083L79.028 34.083Q81.389 34.500 83.889 35.611L83.889 35.611Q86.389 36.722 88.611 38.667L88.611 38.667Q90.833 40.611 92.083 42.694L92.083 42.694Q93.333 44.778 93.889 46.444L93.889 46.444Q94.444 48.111 94.861 51.306L94.861 51.306Q95.278 54.500 95.139 57.972L95.139 57.972Q95.000 61.444 94.444 64.222L94.444 64.222Q93.889 67.000 92.083 71.306L92.083 71.306Q90.278 75.611 89.028 77.278L89.028 77.278Q87.778 78.944 85.694 81.028L85.694 81.028Q83.611 83.111 80.694 85.194L80.694 85.194Q77.778 87.278 75.556 88.389L75.556 88.389Q73.333 89.500 71.111 90.333L71.111 90.333Q68.889 91.167 65.833 91.861L65.833 91.861Q62.778 92.556 59.028 92.833L55.278 93.111L55.278 93.111L55.278 89.222L55.278 89.222L56.944 88.528Q58.611 87.833 60.972 85.889L60.972 85.889Q63.333 83.944 64.444 81.722L64.444 81.722Q65.556 79.500 65.417 77.417L65.417 77.417Q65.278 75.333 64.722 74.639L64.722 74.639Q64.167 73.944 63.194 73.528L63.194 73.528Q62.222 73.111 56.667 72.972L56.667 72.972Q51.111 72.833 50.139 72.556L50.139 72.556Q49.167 72.278 48.472 71.583L48.472 71.583Q47.778 70.889 47.361 66.861L47.361 66.861Q46.944 62.833 46.944 57.833L46.944 57.833Q46.944 52.833 47.222 51.167L47.222 51.167Q47.500 49.500 48.611 46.722L48.611 46.722Q49.722 43.944 51.944 41.306L51.944 41.306Q54.167 38.667 56.667 37.139L56.667 37.139Q59.167 35.611 61.528 34.917L61.528 34.917Q63.889 34.222 66.250 33.944L66.250 33.944Z`,gY=`M265 -179Q225 -179 184.0 -171.0Q143 -163 107.5 -146.5Q72 -130 48 -104L91 0Q120 -33 166.0 -50.0Q212 -67 259 -67Q314 -67 350.0 -44.5Q386 -22 405.0 25.0Q424 72 426 142L433 237H412Q402 169 379.0 126.5Q356 84 321.5 64.5Q287 45 241 45Q184 45 145.0 74.0Q106 103 86.5 160.0Q67 217 67 301V523H194V330Q194 236 217.0 193.5Q240 151 287 151Q312 151 333.0 164.5Q354 178 368.5 203.5Q383 229 391.5 267.0Q400 305 401 354V523H528V137Q528 74 517.5 23.5Q507 -27 486.0 -64.5Q465 -102 433.5 -128.0Q402 -154 360.0 -166.5Q318 -179 265 -179ZM875 -13Q798 -13 739.0 18.5Q680 50 646.5 111.5Q613 173 613 263Q613 355 647.5 415.5Q682 476 741.0 506.0Q800 536 874 536Q951 536 1010.0 505.0Q1069 474 1103.0 412.5Q1137 351 1137 260Q1137 168 1103.0 107.0Q1069 46 1009.5 16.5Q950 -13 875 -13ZM880 83Q922 83 951.0 102.5Q980 122 995.5 161.0Q1011 200 1011 254Q1011 311 994.5 351.5Q978 392 947.5 414.0Q917 436 871 436Q831 436 801.0 416.5Q771 397 755.5 359.0Q740 321 740 265Q740 177 777.5 130.0Q815 83 880 83ZM1428 -180Q1343 -180 1288.5 -167.0Q1234 -154 1208.0 -128.0Q1182 -102 1182 -64Q1182 -18 1218.5 11.5Q1255 41 1327 48V68Q1273 67 1245.0 79.5Q1217 92 1217 120Q1217 147 1244.5 168.0Q1272 189 1336 203V223Q1275 226 1241.0 261.5Q1207 297 1207 354Q1207 405 1235.0 444.0Q1263 483 1317.5 505.5Q1372 528 1450 528H1709V428L1545 452V430Q1607 420 1636.5 395.0Q1666 370 1666 327Q1666 286 1640.0 254.5Q1614 223 1564.5 205.5Q1515 188 1445 188Q1432 188 1417.0 189.0Q1402 190 1370 194Q1349 179 1336.0 167.5Q1323 156 1323 146Q1323 138 1333.0 132.5Q1343 127 1359.0 125.0Q1375 123 1390 123H1529Q1549 123 1580.5 120.0Q1612 117 1643.5 104.0Q1675 91 1696.5 63.0Q1718 35 1718 -16Q1718 -73 1685.5 -109.5Q1653 -146 1588.5 -163.0Q1524 -180 1428 -180ZM1439 -78Q1501 -78 1538.0 -71.0Q1575 -64 1591.0 -48.5Q1607 -33 1607 -9Q1607 13 1597.0 25.5Q1587 38 1571.5 43.0Q1556 48 1540.0 49.0Q1524 50 1513 50H1390Q1342 43 1322.5 23.0Q1303 3 1303 -21Q1303 -45 1319.0 -57.5Q1335 -70 1365.5 -74.0Q1396 -78 1439 -78ZM1442 257Q1494 257 1521.0 281.5Q1548 306 1548 346Q1548 389 1520.5 416.5Q1493 444 1441 444Q1389 444 1360.5 417.0Q1332 390 1332 348Q1332 321 1344.5 300.5Q1357 280 1381.5 268.5Q1406 257 1442 257ZM1968 -13Q1878 -13 1832.5 48.5Q1787 110 1787 235V523H1914V249Q1914 170 1938.0 131.0Q1962 92 2012 92Q2041 92 2063.0 106.5Q2085 121 2101.0 147.5Q2117 174 2126.5 209.0Q2136 244 2138 286V523H2264V215V0H2160L2162 165H2144Q2131 102 2107.5 63.0Q2084 24 2050.0 5.5Q2016 -13 1968 -13ZM2381 0V262V523H2487L2485 343H2503Q2512 407 2531.0 449.5Q2550 492 2584.0 513.5Q2618 535 2668 535Q2678 535 2689.5 534.0Q2701 533 2715 529L2710 396Q2694 402 2677.5 404.5Q2661 407 2647 407Q2608 407 2579.5 387.0Q2551 367 2533.5 330.5Q2516 294 2507 244V0ZM2961 -12Q2878 -12 2839.0 32.5Q2800 77 2800 171V422H2723L2725 522H2776Q2805 522 2819.0 531.0Q2833 540 2836 563L2848 639H2921V523H3059V418H2921V176Q2921 139 2938.5 122.0Q2956 105 2991 105Q3010 105 3028.5 109.5Q3047 114 3063 125V5Q3032 -5 3006.5 -8.5Q2981 -12 2961 -12Z`;function _Y({size:e=28,className:t=`text-accent`}){return(0,G.jsx)(`svg`,{"data-testid":`logo`,role:`img`,"aria-label":`Yogurt`,width:e,height:e,viewBox:`0 0 100 100`,className:`shrink-0 ${t}`,children:(0,G.jsx)(`path`,{fill:`currentColor`,d:hY})})}function vY({height:e=32}){return(0,G.jsxs)(`svg`,{"data-testid":`wordmark`,role:`img`,"aria-label":`Yogurt`,height:e,width:e*286/80,viewBox:`0 0 286 80`,className:`shrink-0`,children:[(0,G.jsx)(`path`,{style:{fill:`color-mix(in srgb, var(--primary), var(--accent))`},transform:`translate(0 5) scale(.65)`,d:hY}),(0,G.jsx)(`path`,{className:`text-ink`,fill:`currentColor`,transform:`translate(82 55) scale(.068 -.068)`,d:gY})]})}var yY=[{speaker:`Kara`,text:`The launch page is ready for review.`,track:`them`,speakerColor:0},{speaker:`Ray`,text:`We can publish Tuesday.`,track:`them`,speakerColor:1},{text:`I'll send Ray the asset list by Friday.`,track:`me`}].map((e,t)=>({...e,id:t+1,meetingId:`sample-meeting`,startMs:1e4+t*1e4,endMs:14e3+t*1e4,hidden:!1})),bY=[.8,2.65,4.05],xY=[2.35,3.8,5.95];function SY(e){let t=yY.map((t,n)=>({...t,hidden:e<xY[n]})),n=bY.findIndex((t,n)=>e>=t&&e<xY[n]);if(n<0)return{lines:t,partial:{track:`them`,startMs:0,text:``,words:[]}};let r=yY[n],i=r.text.split(` `),a=Math.min(i.length,1+Math.floor((e-bY[n])/(xY[n]-bY[n])*(i.length-1))),o=i.slice(0,a).map((e,t)=>({text:e,startMs:r.startMs+t*350,endMs:r.startMs+(t+1)*350}));return{lines:t,partial:{track:r.track,startMs:r.startMs,text:o.map(e=>e.text).join(` `),words:o}}}var CY=[`## Tuesday launch`,`- Publish the page Tuesday.`,`- Announce it Wednesday morning.`,`## Next steps`,`- **Kara:** Release notes by Friday.`,`- **You:** Send Ray the asset list by Friday.`],wY=CY.join(`
+`),TY=[.95,1.55,2.6,3.6,4,5.3].map(e=>.95+(e-.95)*.8);function EY(e){return CY.flatMap((t,n)=>{let[,r,i]=t.match(/^(## |- )(.*)$/),a=i.split(` `),o=(n<3?.16:.14)*.8,s=Math.max(0,Math.min(a.length,Math.floor((e-TY[n])/o)+1));return s?[r+a.slice(0,s).join(` `)]:[]}).join(`
+`)}var DY=()=>{},OY=new URLSearchParams(location.search).has(`animate`);M===`transcript`&&Ce(yY,{track:`them`,startMs:0,text:``,words:[]}),M===`ask`&&Se({question:_,answer:v+`[1]`,status:OY?`waiting`:`done`});function kY(e){let t=[],n=(e,n,r=.28)=>{e&&t.push({element:e,start:n,duration:r})},r=(e,t,r)=>{let i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),a=[];for(;i.nextNode();)i.currentNode.textContent?.trim()&&!i.currentNode.parentElement?.closest(`button,time,.sr-only`)&&a.push(i.currentNode);let o=0;for(let e of a){let i=document.createDocumentFragment();for(let a of e.data.split(/(\s+)/)){if(!a.trim()){i.append(a);continue}let e=document.createElement(`span`);e.className=`fragment-word`,e.textContent=a,i.append(e),n(e,t+o++*r)}e.replaceWith(i)}};if(M===`ask`){let t=e.querySelector(`.ask-question`);n(t,1),r(t,1,.045),n(e.querySelector(`.fragment-byline`),2.05);let i=4.45;e.querySelectorAll(`.chat-answer>p`).forEach(e=>{r(e,i,1.5/v.split(` `).length),i+=e.textContent.replace(/1$/,``).trim().split(/\s+/).length*1.5/v.split(` `).length}),n(e.querySelector(`.source-citation`),5.95)}return t}function AY(){let[e,t]=(0,H.useState)(OY?0:99),[n,r]=(0,H.useState)(null),[i,a]=(0,H.useState)(0);return(0,H.useEffect)(()=>{let e=!1,n=[],i=``,o=null,s=e=>{if(e.source!==parent||e.origin!==location.origin||e.data?.type!==`yogurt-fragment-time`||!Number.isFinite(e.data.seconds))return;let r=Math.max(0,Math.min(99,e.data.seconds));if(M===`summary`&&t(r),M===`transcript`){let e=SY(r),t=JSON.stringify(e);t!==i&&(i=t,Ce(e.lines,e.partial))}for(let{element:e,start:t,duration:i}of n){let n=Math.max(0,Math.min(1,(r-t)/i));e.style.opacity=String(1-(1-n)**3)}let a=document.querySelector(`.fragment-ask .chat-progress`);a&&(a.style.visibility=r>=2.05&&r<4.45?`visible`:`hidden`),document.documentElement.dataset.fragmentPlaying=String(r<20)};window.addEventListener(`message`,s);let c=()=>{if(e||o?.isConnected)return;let t=document.querySelector(`.ask-turn`);t&&r(t),document.querySelector(`[data-testid="transcript"][data-loaded=true], [data-testid="fragment-plan"], [data-testid="chat-answer"]`)&&(M!==`ask`||document.querySelector(`.fragment-byline`))&&(e=!0,document.fonts.ready.then(()=>requestAnimationFrame(()=>{if(M===`transcript`&&OY&&!o){o=document.querySelector(`[data-testid=transcript]`);let t=[...o.querySelectorAll(`.transcript-turn`)],n=document.createElement(`style`);n.textContent=`.fragment-transcript [data-testid=transcript]{height:${o.getBoundingClientRect().height}px;display:grid;grid-template-rows:${t.map(e=>e.getBoundingClientRect().height+`px`).join(` `)};gap:20px}`+t.map((e,t)=>{let n=e.querySelector(`.bubble`).getBoundingClientRect();return`.fragment-transcript .transcript-turn:nth-child(${t+1} of .transcript-turn) .bubble{width:${n.width}px;height:${n.height}px;flex:none}`}).join(``),document.head.append(n),Ce([],{track:`them`,startMs:0,text:``,words:[]}),e=!1,a(1)}else{if(M===`ask`){let e=document.querySelector(`.chat-answer`),t=e.closest(`.ask-turn`);t.style.setProperty(`--fragment-answer-top`,`${e.getBoundingClientRect().top-t.getBoundingClientRect().top}px`)}if(n=kY(document.querySelector(`.marketing-fragment`)),OY)for(let{element:e}of n)e.style.opacity=`0`;document.documentElement.dataset.ready=`true`,parent.postMessage({type:`yogurt-fragment-ready`},location.origin)}})))},l=new MutationObserver(c);return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`data-loaded`]}),c(),()=>{l.disconnect(),window.removeEventListener(`message`,s)}},[]),(0,G.jsxs)(`div`,{className:`marketing-fragment fragment-${M}`,children:[M===`transcript`&&(0,G.jsx)(Zv,{id:E.id,recording:!0,inline:!0},i),M===`summary`&&(0,G.jsxs)(`div`,{className:`fragment-plan`,children:[(0,G.jsx)(`div`,{className:`fragment-plan-size`,"aria-hidden":`true`,children:(0,G.jsx)(QR,{markdown:wY,editable:!1,label:`Tuesday launch`,testId:`fragment-plan-size`,className:`enhanced`})}),(0,G.jsx)(`div`,{className:`fragment-plan-live`,children:(0,G.jsx)(QR,{markdown:EY(e),streaming:OY&&e<5.75,editable:!1,label:`Tuesday launch`,testId:`fragment-plan`,className:`enhanced`})})]}),M===`ask`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(fY,{id:j.id,initial:j,panel:!0,onSelect:DY,onSource:DY,onDeleted:DY}),n&&(0,Oe.createPortal)((0,G.jsxs)(`div`,{className:`fragment-byline`,children:[(0,G.jsx)(_Y,{size:20}),(0,G.jsx)(`span`,{children:`Yogurt`})]}),n)]})]})}var jY=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),MY=o(((e,t)=>{t.exports=jY()})),NY=o((e=>{var t=MY(),n=Te(),r=De();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),A=Symbol.for(`react.profiler`),j=Symbol.for(`react.consumer`),M=Symbol.for(`react.context`),N=Symbol.for(`react.forward_ref`),P=Symbol.for(`react.suspense`),F=Symbol.for(`react.suspense_list`),I=Symbol.for(`react.memo`),L=Symbol.for(`react.lazy`),R=Symbol.for(`react.activity`),ee=Symbol.for(`react.legacy_hidden`),z=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.for(`react.view_transition`),ne=Symbol.for(`react.recoverable`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var B=Symbol.for(`react.client.reference`);function ae(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===B?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case A:return`Profiler`;case k:return`StrictMode`;case P:return`Suspense`;case F:return`SuspenseList`;case R:return`Activity`;case te:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case M:return e.displayName||`Context`;case j:return(e._context.displayName||`Context`)+`.Consumer`;case N:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case I:return t=e.displayName||null,t===null?ae(e.type)||`Memo`:t;case L:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var oe=Array.isArray,V=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function fe(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function pe(e,t){ue++,le[ue]=e.current,e.current=t}var me=de(null),he=de(null),ge=de(null),_e=de(null);function ve(e,t){switch(pe(ge,t),pe(he,e),pe(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vp(t),e=yp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}fe(me),pe(me,e)}function ye(){fe(me),fe(he),fe(ge)}function be(e){var t=e.memoizedState;t!==null&&(hh._currentValue=t.memoizedState,pe(_e,e)),t=me.current;var n=yp(t,e.type);t!==n&&(pe(he,e),pe(me,n))}function xe(e){he.current===e&&(fe(me),fe(he)),_e.current===e&&(fe(_e),hh._currentValue=ce)}var Se,Ce;function we(e){if(Se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||``,Ce=-1<e.stack.indexOf(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+Se+e+Ce}var Ee=!1;function H(e,t){if(!e||Ee)return``;Ee=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return H(e.type,!1);case 11:return H(e.type.render,!1);case 1:return H(e.type,!0);case 31:return we(`Activity`);case 30:return we(`ViewTransition`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
-`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-qe(n),i=1<<r;t|=e[r],n&=~i}return t}function it(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function at(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function ot(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ct(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&lt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function lt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=se.p;return e===0?(e=window.event,e===void 0?32:jh(e.type)):e}function ht(e,t){var n=se.p;try{return se.p=e,t()}finally{se.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,St=`__reactHandles$`+gt,U=`__reactResources$`+gt,Ct=`__reactMarker$`+gt,wt=`__reactLoad$`+gt;function Tt(e){delete e[_t],delete e[vt],delete e[xt],delete e[St]}function Et(e){var t;if(t=e[_t])return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bm(e);e!==null;){if(n=e[_t])return n;e=bm(e)}return t}e=n,n=e.parentNode}return null}function Dt(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function kt(e){var t=e[U];return t||=e[U]={hoistableStyles:new Map,hoistableScripts:new Map},t}function At(e){e[Ct]=!0}function jt(e){e[wt]=void 0}var Mt=new Set,Nt={};function Pt(e,t){Ft(e,t),Ft(e+`Capture`,t)}function Ft(e,t){for(Nt[e]=t,e=0;e<t.length;e++)Mt.add(t[e])}var It=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Lt={},Rt={};function zt(e){return Ae.call(Rt,e)?!0:Ae.call(Lt,e)?!1:It.test(e)?Rt[e]=!0:(Lt[e]=!0,!1)}var Bt=!1;function Vt(){var e=Bt;return Bt=!1,e}function Ht(e,t,n){if(zt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Ut(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Gt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function qt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jt(e){if(!e._valueTracker){var t=Kt(e)?`checked`:`value`;e._valueTracker=qt(e,t,``+e[t])}}function Yt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Xt=/[\n"\\]/g;function Zt(e){return e.replace(Xt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Gt(t)):e.value!==``+Gt(t)&&(e.value=``+Gt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):en(e,Gt(n)):o===`number`&&e.value==t?en(e,Gt(e.value)):en(e,Gt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Gt(s):e.removeAttribute(`name`)}function $t(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Jt(e);return}n=n==null?``:``+Gt(n),t=t==null?n:``+Gt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Jt(e)}function en(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function tn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Gt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function nn(e,t,n){t!=null&&(t=``+Gt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Gt(n)}function rn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Gt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Jt(e)}function an(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var on=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function sn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||on.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function cn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Bt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(sn(e,a,r),Bt=!0)}else for(var o in t)t.hasOwnProperty(o)&&sn(e,o,t[o])}function ln(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var un=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),dn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fn(e){return dn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function pn(){}var mn=null;function hn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gn=null,_n=null;function vn(e){var t=Dt(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[vt]||null;if(!a)throw Error(i(90));Qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Yt(r)}break a;case`textarea`:nn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var yn=!1;function bn(e,t,n){if(yn)return e(t,n);yn=!0;try{return e(t)}finally{if(yn=!1,(gn!==null||_n!==null)&&(Gd(),gn&&(t=gn,e=_n,_n=gn=null,vn(t),e)))for(t=0;t<e.length;t++)vn(e[t])}}function xn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Sn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Cn=!1;if(Sn)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){Cn=!0}}),window.addEventListener(`test`,wn,wn),window.removeEventListener(`test`,wn,wn)}catch{Cn=!1}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=w({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,W=w({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Bn=Mn(W),Vn=Mn(w({},W,{dataTransfer:0})),Hn=Mn(w({},Fn,{relatedTarget:0})),Un=Mn(w({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=Mn(w({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=Mn(w({},Nn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=Mn(w({},Fn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=Mn(w({},W,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=Mn(w({},Nn,{submitter:0})),er=Mn(w({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=Mn(w({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(w({},W,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=Mn(w({},Nn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=Sn&&`CompositionEvent`in window,or=null;Sn&&`documentMode`in document&&(or=document.documentMode);var sr=Sn&&`TextEvent`in window&&!or,cr=Sn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=On(),Dn=En=Tn=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){gn?_n?_n.push(r):_n=[r]:gn=r,t=tp(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){qf(e,0)}function Sr(e){if(Yt(Ot(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(Sn){var Tr;if(Sn){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,hn(e)),bn(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ae.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function Lr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=Sn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Ir(Kr,r)||(Kr=r,r=tp(Gr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};Sn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Pt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Ed.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Pd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Fd)throw Fd=0,Id=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ki(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=th(e,n,me.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Ei(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return ji(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Ei(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Ei(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Ei(19,n,t,a),e.elementType=F,e.lanes=o,e;case ee:case te:return e=a|32,e=Ei(30,n,t,e),e.elementType=te,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case I:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-qe(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=r,n){case`dialog`:Jf(`cancel`,t),Jf(`close`,t);break;case`iframe`:case`object`:case`embed`:Jf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)Jf(Gf[n],t);break;case`source`:Jf(`error`,t);break;case`img`:case`image`:case`link`:Jf(`error`,t),Jf(`load`,t);break;case`details`:Jf(`toggle`,t);break;case`input`:Jf(`invalid`,t),$t(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Jf(`invalid`,t);break;case`textarea`:Jf(`invalid`,t),rn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||sp(t.textContent,n)?(r.popover!=null&&(Jf(`beforetoggle`,t),Jf(`toggle`,t)),r.onScroll!=null&&Jf(`scroll`,t),r.onScrollEnd!=null&&Jf(`scrollend`,t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||xp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=ym(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=ym(e)}else t===27?(t=Qi,Ap(e.type)?(e=vm,vm=null,Qi=e):Qi=t):Qi=Zi?_m(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(vd===null?vd=e:vd.push.apply(vd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=de(null),da=null,fa=null;function pa(e,t,n){pe(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,fe(ua)}function ha(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ga(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ha(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ha(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function _a(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Fr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===_e.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[hh]:e.push(hh))}a=a.return}return e!==null&&ga(t,e,n,r),t.flags|=262144,e!==null}function va(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Sa(da,e)}function xa(e,t){return da===null&&ya(e),Sa(e,t)}function Sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},wa=t.unstable_scheduleCallback,Ta=t.unstable_NormalPriority,Ea={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ca,data:new Map,refCount:0}}function Oa(e){e.refCount--,e.refCount===0&&wa(Ta,function(){e.controller.abort()})}function ka(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Aa=null;function ja(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ma=null,Na=0,Pa=0,Fa=null;function Ia(e,t){if(Ma===null){var n=Ma=[];Na=0,Pa=Vf(),Fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Na++,t.then(La,La),t}function La(){if(--Na===0&&(Aa=null,Ma!==null)){Fa!==null&&(Fa.status=`fulfilled`);var e=Ma;Ma=null,Pa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ra(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var za=V.S;V.S=function(e,t){if(xd=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ia(e,t),Aa!==null)for(var n=Df;n!==null;)ka(n,Aa),n=n.next;if(n=e.types,n!==null){for(var r=Df;r!==null;)ka(r,n),r=r.next;if(Pa!==0){r=Aa,r===null&&(r=Aa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}za!==null&&za(e,t)};var Ba=de(null);function Va(){var e=Ba.current;return e===null?nd.pooledCache:e}function Ha(e,t){t===null?pe(Ba,Ba.current):pe(Ba,t.pool)}function Ua(){var e=Va();return e===null?null:{parent:Ea._currentValue,pool:e}}var Wa=Error(i(460)),Ga=Error(i(474)),Ka=Error(i(542)),qa={then:function(){}};function Ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(pn,pn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(pn,pn);else{if(e=nd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e}throw Za=t,Wa}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Za=e,Wa):e}}var Za=null;function Qa(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function $a(e){if(e===Wa||e===Ka)throw Error(i(483))}var eo=null,to=0;function no(e){var t=to;return to+=1,eo===null&&(eo=[]),Ya(eo,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ao(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Xa(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),ro(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Ai(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case D:return t=Pi(t,e.mode,n),t.return=e,t;case L:return t=Xa(t),f(e,t,n)}if(oe(t)||ie(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===M)return f(e,xa(e,t),n);io(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case L:return n=Xa(n),p(e,t,n,r)}if(oe(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===M)return p(e,t,xa(e,n),r);io(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=Xa(r),m(e,t,n,r,i)}if(oe(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===M)return m(e,t,n,xa(t,r),i);io(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=ji(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),ro(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Xa(o),_(e,r,o,c)}if(oe(o))return h(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,no(o),c);if(o.$$typeof===M)return _(e,r,xa(e,o),c);io(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{to=0;var i=_(e,t,n,r);return eo=null,i}catch(t){if(t===Wa||t===Ka)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}function ho(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var go=!1;function _o(){if(go){var e=Fa;if(e!==null)throw e}}function vo(e,t,n,r){go=!1;var i=e.updateQueue;co=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(id&f)===f:(r&f)===f){f!==0&&f===Pa&&(go=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:co=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),fd|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function bo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yo(n[e],t)}var xo=de(null),So=de(0);function Co(e,t){e=ud,pe(So,e),pe(xo,t),ud=e|t.baseLanes}function wo(){pe(So,ud),pe(xo,xo.current)}function To(){ud=So.current,fe(xo),fe(So)}var Eo=de(null),Do=null;function Oo(e){var t=e.alternate;pe(No,No.current&1),pe(Eo,e),Do===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Do=e)}function ko(e){pe(No,No.current),pe(Eo,e),Do===null&&(Do=e)}function Ao(e){e.tag===22?(pe(No,No.current),pe(Eo,e),Do===null&&(Do=e)):jo()}function jo(){pe(No,No.current),pe(Eo,Eo.current)}function Mo(e){fe(Eo),Do===e&&(Do=null),fe(No)}var No=de(0);function Po(e,t){pe(Eo,Eo.current),pe(No,t)}function Fo(e){fe(No),fe(Eo),Do===e&&(Do=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mm(n)||hm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lo=0,Ro=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Lo=a,Ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?mc:hc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){V.H=pc;var t=zo!==null&&zo.next!==null;if(Lo=0,Bo=zo=Ro=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||Mc||(e=e.dependencies,e!==null&&va(e)&&(Mc=!0))}function Qo(e,t,n,r){Ro=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=gc,o=t(n,r)}while(Ho);return o}function $o(){var e=V.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(Ro.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Lo=0,Bo=zo=Ro=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=Ro.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?Ro.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw Ro.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Ya(Ko,e,t),t=Ro,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?mc:hc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===ne)return;if(e.$$typeof===M)return ba(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=Ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=as(),Ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=z;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(is(),zo,e)}function fs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Lo&f)===f:(id&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Pa&&(d=!0);else if((Lo&p)===p){u=u.next,p===Pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Ro.lanes|=p,fd|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Ro.lanes|=f,fd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(Mc=!0,d&&(n=Fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ps(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(Mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=Ro,a=is(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Fr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,Mc=!0),a=a.queue,zs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Lo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ro.updateQueue,t===null?(t=as(),Ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function ys(e){var t=xi(e,2);t!==null&&Bd(t,e,2)}function bs(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,zo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(uc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};V.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=V.T,o={};o.types=a===null?null:a.types,V.T=o;try{var s=n(i,r),c=V.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),V.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if($i){var n=nd.formState;if(n!==null){a:{var r=Ro;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;)if(!a||(i=_m(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=_m(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=sc.bind(null,Ro,r),r.dispatch=n,r=bs(!1),a=lc.bind(null,Ro,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,Ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(is(),zo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===Wa?Ka:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ro.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=is(),n=zo;if(n!==null)return js(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ro.updateQueue,t===null&&(t=as(),Ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return is().memoizedState}function Is(e,t,n,r){var i=rs();Ro.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(Ro.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){Ro.flags|=4;var t=Ro.updateQueue;if(t===null)t=as(),Ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=is().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||Lo&1073741824&&!(id&261930)?e.memoizedState=t:(e.memoizedState=n,e=Rd(),Ro.lanes|=e,fd|=e,n)}function Xs(e,t,n,r){return Fr(n,t)?n:xo.current===null?!(Lo&106)||Lo&1073741824&&!(id&261930)?(Mc=!0,e.memoizedState=n):(e=Rd(),Ro.lanes|=e,fd|=e,t):(e=Ys(e,n,r),Fr(e,t)||(Mc=!0),e)}function Zs(e,t,n,r,i){var a=se.p;se.p=a!==0&&8>a?a:8;var o=V.T,s={};s.types=o===null?null:o.types,V.T=s,lc(e,!1,t,n);try{var c=i(),l=V.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,Ra(c,r),Ld(e)):cc(e,t,r,Ld(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},Ld())}finally{se.p=a,o!==null&&s.types!==null&&(o.types=s.types),V.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ec(e).queue;Zs(e,a,t,ce,n===null?Qs:function(){return tc(e),n(r)})}function ec(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},Ld())}function nc(){return ba(hh)}function rc(){return is().memoizedState}function ic(){return is().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ld();e=fo(n);var r=po(t,e,n);r!==null&&(Bd(r,t,n),mo(r,t,n)),t={cache:Da()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=Ld();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=bi(e,t,n,r),n!==null&&(Bd(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,Ld())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o))return yi(e,t,i,0),nd===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Bd(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:Vf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Bd(t,e,2)}function uc(e){var t=e.alternate;return e===Ro||t!==null&&t===Ro}function dc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var pc={readContext:ba,use:cs,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},mc={readContext:ba,use:cs,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oc.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=sc.bind(null,Ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(rs(),e,t)},useTransition:function(){var e=bs(!1);return e=Zs.bind(null,Ro,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ro,a=rs();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));id&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=nd.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,Ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return rs().memoizedState=ac.bind(null,Ro)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:ba,use:cs,useCallback:qs,useContext:ba,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(is(),zo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=is().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(is(),zo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:ba,use:cs,useCallback:qs,useContext:ba,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=is();return zo===null?Ys(n,e,t):Xs(n,zo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=is().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,zo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs};function _c(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=fo(r);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Bd(t,e,r),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=fo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Bd(t,e,r),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ld(),r=fo(n);r.tag=2,t!=null&&(r.callback=t),t=po(e,r,n),t!==null&&(Bd(t,e,n),mo(t,e,n))}};function yc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ir(n,r)||!Ir(i,a):!0}function bc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function xc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Sc(e){mi(e)}function Cc(e){console.error(e)}function wc(e){mi(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){return n=fo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=fo(e),e.tag=3,e}function kc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(wd===null?wd=new Set([this]):wd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_a(t,n,a,!0),n=Eo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Do===null?Qd():n.alternate===null&&dd===0&&(dd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),xf(e,r,a)),!1;case 22:return n.flags|=65536,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),xf(e,r,a)),!1}throw Error(i(435,n.tag))}return xf(e,r,a),Qd(),!1}if($i)return t=Eo.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=Dc(e.stateNode,r,a),ho(e,a),dd!==4&&(dd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),_d===null?_d=[o]:_d.push(o),dd!==4&&(dd=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Dc(n.stateNode,r,e),ho(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(wd===null||!wd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Oc(a),kc(a,e,n,r),ho(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(i(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Pc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ya(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!Mc?(ts(e,t,i),cl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ha(t,a===null?null:a.cachePool),a===null?wo():Co(t,a),Ao(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ha(t,null),wo(),jo()):(Ha(t,a.cachePool),Co(t,a),jo(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Va();return a=a===null?null:{parent:Ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ha(t,null),wo(),Ao(t),e!==null&&_a(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return oo(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(ko(t),(e=Qi)?(e=pm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ko(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Mc||_a(e,t,n,!1),a=(n&e.childLanes)!==0,Mc||a){if(xo.current===null){if(r=nd,r!==null&&(s=dt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Bd(r,e,s),jc;Qd()}t=Vc(e,t,n)}else e=o.treeContext,Qi=_m(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return ya(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!Mc?(ts(e,t,i),cl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return ya(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!Mc?(ts(e,t,a),cl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(ya(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ba(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},lo(t),o=n.contextType,a.context=typeof o==`object`&&o?ba(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&vc.enqueueReplaceState(a,a.state,null),vo(t,r,a,i),_o(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ba(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&bc(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,vo(t,r,a,i),_o(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=co||yc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,uo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ba(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&bc(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,vo(t,r,a,i),_o();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&va(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=co||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&va(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Uc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return sa(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ua()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Oo(t):jo(),(e=Qi)?(e=pm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=hm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(Oo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ua():(s=Ea._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(Oo(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function el(e,t,n){return oo(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Oo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(Oo(t),hm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),el(e,t,c)}if(Mc||_a(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(xo.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=dt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Bd(r,e,a),jc;return mm(o)||Qd(),el(e,t,c)}return mm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=_m(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(n)===null&&(t=e),e=e.sibling}return t}function il(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function al(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_a(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&va(e)))}function ul(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),pa(t,Ea,e.memoizedState.cache),sa();break;case 27:case 5:be(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Oo(t),t.flags|=128,null;r=_a(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(Oo(t),e=cl(e,t,n),e===null?null:e.sibling)}Oo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_a(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:pa(t,Ea,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=B(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=xc(r,t.pendingProps),Kc(e,t,r,a,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,uo(e,t),vo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ea,r),r!==o.cache&&ga(t,[Ea],n,!0),_o(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=_m(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Vm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=bp(t.type,t.pendingProps,ge.current,t)):t.memoizedState=Vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&$i&&(r=t.stateNode=Cm(t.type,t.pendingProps,ge.current),Zi=t,ta=!0,a=Qi,Ap(t.type)?(vm=a,Qi=_m(r.firstChild)):Qi=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=dm(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=_m(r.firstChild),ta=!1,a=!0)),a||ra(t)),be(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,xp(a,o)?r=null:s!==null&&xp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),hh._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=fm(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Zc(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ya(t),a=ba(a),r=r(a),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return ya(t),r=ba(Ea),e===null?(a=Va(),a===null&&(a=nd,o=Da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},lo(t),pa(t,Ea,a)):((e.lanes&n)!==0&&(uo(e,t),vo(t,null,null,n),_o()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ea,r),r!==a.cache&&ga(t,[Ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ea,r))),Nc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?nh(t,r):nh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Yd())e.flags|=8192;else throw Za=qa,Ga}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rh(t)){if(Yd())e.flags|=8192;else throw Za=qa,Ga}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:at(),e.lanes|=t,gd|=t)}function gl(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _l(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vl(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ea),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(xe(t),n=ge.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=me.current,oa(t)?ia(t,e):(e=Cm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(xe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=me.current,oa(t))ia(t,o);else{var s=_p(ge.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[_t]=t,o[vt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(up(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||sp(e.nodeValue,n)),e||ra(t,!0)}else e=_p(e).createTextNode(r),e[_t]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[_t]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[_t]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return ye(),e===null&&Zf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return ma(t.type),_l(t),null;case 19:if(Fo(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(dd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return Po(t,No.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>Sd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return _l(t),null}else 2*Fe()-r.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,o=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?Po(t,o):(n=o,pe(Eo,t),pe(No,n),Do===null&&(Do=t)),$i&&Ki(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Mo(t),To(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(Ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ea),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ea),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ye(),null;case 10:return ma(t.type),null;case 22:case 23:return Mo(t),To(),e!==null&&fe(Ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ea),null;case 25:return null;default:return null}}function bl(e,t){switch(Yi(t),t.tag){case 3:ma(Ea),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:ma(t.type);break;case 22:case 23:Mo(t),To(),e!==null&&fe(Ba);break;case 24:ma(Ea)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){bf(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){bf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){bf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bo(t,n)}catch(t){bf(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){bf(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Hp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Up(e);f(e.child,!1,om,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){bf(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){bf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){bf(e,t,n)}else n.current=null}}function Dl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)cm(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&cm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&lm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){bf(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;fp(r,e.type,n,t),r[vt]=t}catch(t){bf(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ap(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ap(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pn)),Dl(e,r),Bt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),Bt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);up(t,r,n),t[_t]=e,t[vt]=n}catch(t){bf(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ip(o);r.push(s),s.view&&(a=!0)}else a||Ip(o).view&&(a=!0);zl=!0,Np(o,Wl===0?t:t+`_`+Wl,n),Wl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Pp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||ql(e.child,t),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||zd(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,zd(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?zd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),zd(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Ip(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Np(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Lp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||zd(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,hp=wh,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(gp={focusedElem:e,selectionRange:r},wh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=xc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){bf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)um(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:um(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Gl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){bf(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){bf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{bo(e,t)}catch(e){bf(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wf.bind(null,n),gm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){bf(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Bt=!0}catch(t){bf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Mp(s,!0):Mp(e.stateNode,!1)}catch(t){bf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Ap(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),wm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),Bt=!0}catch(e){bf(n,t,e)}else try{xu.removeChild(n.stateNode),Bt=!0}catch(e){bf(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,jp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Xh(e)):jp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xh(e)}catch(e){bf(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xh(e)}catch(e){bf(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Tf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Ap(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(iu)e.stateNode=bp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ct]||r[_t]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),up(r,t,n),r[_t]=e,At(r),t=r;break a;case`link`:if(o=$m(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),up(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=$m(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),up(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[_t]=e,At(r),t=r}e.stateNode=t}}else iu||eh(o,e.type,e.stateNode)}else e.stateNode=Jm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||eh(o,e.type,e.stateNode):Jm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{an(t,``),Bt=!0}catch(t){bf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Bt=!0}catch(t){bf(e,e.return,t)}}break;case 3:if(Bt=!1,Qm=null,o=Au,Au=Om(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Xh(t.containerInfo)}catch(t){bf(e,e.return,t)}su&&(su=!1,Nu(e)),Bt=!1;break;case 4:a=ou,ou=iu,r=Vt(),o=Au,Au=Om(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,Bt&&du&&(fu=!0),Bt=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(bd=Fe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Vt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&pi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&Bt&&(e.flags|=4),du=o,Bt=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(an(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){bf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,wh=!0,t.reset(),wh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Pp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(zd(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&wm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){bf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)yo(l[i],c)}catch(e){bf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||eh(Om(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Oa(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oa(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Oa(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){bf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ah(n,e)):oh(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&ah(n,e));break;case 3:case 4:var r=Au;Au=Om(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=ba(Ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ba(Ea).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,rd=null,id=0,ad=0,od=null,sd=!1,cd=!1,ld=!1,ud=0,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=null,vd=null,yd=!1,bd=0,xd=0,Sd=1/0,Cd=null,wd=null,Td=0,Ed=null,Dd=null,Od=0,kd=0,Ad=null,jd=null,Md=null,Nd=null,Pd=null,Fd=0,Id=null;function Ld(){return td&2&&id!==0?id&-id:V.T===null?mt():Vf()}function Rd(){if(hd===0){if(!(id&536870912)||$i){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),hd=e}else hd=536870912}return e=Eo.current,e!==null&&(e.flags|=32),hd}function zd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Hp(di(e.memoizedProps,n))),Nd===null&&(Nd=[]),Nd.push(t.bind(null,r))}}function Bd(e,t,n){(e===nd&&(ad===2||ad===9)||e.cancelPendingCommit!==null)&&(qd(e,0),Wd(e,id,hd,!1)),st(e,n),td&2&&e===nd||(e===nd&&(!(td&2)&&(pd|=n),dd===4&&Wd(e,id,hd,!1)),Nf(e))}function Vd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||nt(e,t),a=r?tf(e,t):$d(e,t,!0),o=r;do{if(a===0){cd&&!r&&Wd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ud(n))a=$d(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=_d;var l=c.current.memoizedState.isDehydrated;if(l&&(qd(c,s).flags|=256),s=$d(c,s,!1),s!==2&&s!==6){if(ld&&!l){c.errorRecoveryDisabledLanes|=o,pd|=o,a=4;break a}o=vd,vd=a,o!==null&&(vd===null?vd=o:vd.push.apply(vd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){qd(e,0),Wd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Wd(r,t,hd,!sd);break a;case 2:vd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=bd+300-Fe(),10<a)){if(Wd(r,t,hd,!sd),tt(r,0,!0)!==0)break a;Od=t,r.timeoutHandle=wp(Hd.bind(null,r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,`Throttled`,-0,0),a);break a}Hd(r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,null,-0,0)}break}}while(1);Nf(e)}function Hd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},Bl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=uh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?bd-Fe():(a&4194048)===a?xd-Fe():0,m=ch(d,m),m!==null)?(Od=a,e.cancelPendingCommit=m(lf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Wd(e,a,o,!l)):lf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ud(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wd(e,t,n,r){t=rt(e,t),t&=~md,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&lt(e,n,t)}function Gd(){return td&6?!0:(Pf(0,!1),!1)}function Kd(){if(rd!==null){if(ad===0)var e=rd.return;else e=rd,fa=da=null,ns(e),eo=null,to=0,e=rd;for(;e!==null;)bl(e.alternate,e),e=e.return;rd=null}}function qd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Tp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Od=0,Kd(),nd=e,rd=n=Oi(e.current,null),id=t,ad=0,od=null,sd=!1,cd=nt(e,t),ld=!1,gd=hd=md=pd=fd=dd=0,vd=_d=null,yd=!1,ud=rt(e,t),vi(),n}function Jd(e,t){Ro=null,V.H=pc,t===Wa||t===Ka?(t=Qa(),ad=3):t===Ga?(t=Qa(),ad=4):ad=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,od=t,rd===null&&(dd=1,Tc(e,Ii(t,e.current)))}function Yd(){var e=Eo.current;return e===null?!0:(id&4194048)===id?Do===null:(id&62914560)===id||id&536870912?e===Do:!1}function Xd(){var e=V.H;return V.H=pc,e===null?pc:e}function Zd(){var e=V.A;return V.A=$u,e}function Qd(){dd=4,sd||(id&4194048)!==id&&Eo.current!==null||(cd=!0),!(fd&134217727)&&!(pd&134217727)||nd===null||Wd(nd,id,hd,!1)}function $d(e,t,n){var r=td;td|=2;var i=Xd(),a=Zd();(nd!==e||id!==t)&&(Cd=null,qd(e,t)),t=!1;var o=dd;a:do try{if(ad!==0&&rd!==null){var s=rd,c=od;switch(ad){case 8:Kd(),o=6;break a;case 3:case 2:case 9:case 6:Eo.current===null&&(t=!0);var l=ad;if(ad=0,od=null,of(e,s,c,l),n&&cd){o=0;break a}break;default:l=ad,ad=0,od=null,of(e,s,c,l)}}ef(),o=dd;break}catch(t){Jd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,td=r,V.H=i,V.A=a,rd===null&&(nd=null,id=0,vi()),o}function ef(){for(;rd!==null;)rf(rd)}function tf(e,t){var n=td;td|=2;var r=Xd(),a=Zd();nd!==e||id!==t?(Cd=null,Sd=Fe()+500,qd(e,t)):cd=nt(e,t);a:do try{if(ad!==0&&rd!==null){t=rd;var o=od;b:switch(ad){case 1:ad=0,od=null,of(e,t,o,1);break;case 2:case 9:if(Ja(o)){ad=0,od=null,af(t);break}t=function(){ad!==2&&ad!==9||nd!==e||(ad=7),Nf(e)},o.then(t,t);break a;case 3:ad=7;break a;case 4:ad=5;break a;case 7:Ja(o)?(ad=0,od=null,af(t)):(ad=0,od=null,of(e,t,o,7));break;case 5:var s=null;switch(rd.tag){case 26:s=rd.memoizedState;case 5:case 27:var c=rd;if(s?rh(s):c.stateNode.complete){ad=0,od=null;var l=c.sibling;if(l!==null)rd=l;else{var u=c.return;u===null?rd=null:(rd=u,sf(u))}break b}}ad=0,od=null,of(e,t,o,5);break;case 6:ad=0,od=null,of(e,t,o,6);break;case 8:Kd(),dd=6;break a;default:throw Error(i(462))}}nf();break}catch(t){Jd(e,t)}while(1);return fa=da=null,V.H=r,V.A=a,td=n,rd===null?(nd=null,id=0,vi(),dd):0}function nf(){for(;rd!==null&&!Ne();)rf(rd)}function rf(e){var t=dl(e.alternate,e,ud);e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,id);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,id);break;case 5:ns(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:bl(n,t),t=rd=ki(t,ud),t=dl(n,t,ud)}e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function of(e,t,n,r){fa=da=null,ns(t),eo=null,to=0;var i=t.return;try{if(Ac(e,i,t,n,id)){dd=1,Tc(e,Ii(n,e.current)),rd=null;return}}catch(t){if(i!==null)throw rd=i,t;dd=1,Tc(e,Ii(n,e.current)),rd=null;return}t.flags&32768?($i||r===1?e=!0:cd||id&536870912?e=!1:(sd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),cf(t,e)):sf(t)}function sf(e){var t=e;do{if(t.flags&32768){cf(t,sd);return}e=t.return;var n=vl(t.alternate,t,ud);if(n!==null){rd=n;return}if(t=t.sibling,t!==null){rd=t;return}rd=t=e}while(t!==null);dd===0&&(dd=5)}function cf(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,rd=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){rd=e;return}rd=e=n}while(e!==null);dd=6,rd=null}function lf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do _f();while(Td!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(rd=nd=null,id=0),Dd=t,Ed=e,Od=n,Ad=a,jd=r,uf(e,t,n,s,c,l,f)}}function uf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(kd=s,s|=_i,ct(e,n,s,r,i,a),Nd=null,(n&335544064)===n?(Pd=ja(e),r=10262):(Pd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Ef(ze,function(){return vf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=V.T,V.T=null,i=se.p,se.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,se.p=i,V.T=r}}Td=1,zl?Md=Bp(o,e.containerInfo,Pd,pf,mf,ff,hf,vf,df,null,null):(pf(),mf(),hf())}function df(e){if(Td!==0){var t=Ed.onRecoverableError;t(e,{componentStack:null})}}function ff(){Td===3&&(Td=0,Fu(Dd,Ed),Td=4)}function pf(){if(Td===1){Td=0;var e=Ed,t=Dd,n=Od,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=V.T,V.T=null;var i=se.p;se.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=gp;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=zr(s,h),v=zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}wh=!!hp,gp=hp=null}finally{td=a,se.p=i,V.T=r}}e.current=t,Td=2}}function mf(){if(Td===2){Td=0;var e=Ed,t=Dd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=V.T,V.T=null;var r=se.p;se.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,se.p=r,V.T=n}}Td=3}}function hf(){if(Td===4||Td===3){Td=0;var e=Md;Md=null,Pe();var t=Ed,n=Dd,r=Od,i=jd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Td=5:(Td=0,Dd=Ed=null,gf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(wd=null),pt(r),n=n.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=V.T,a=se.p,se.p=2,V.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{V.T=n,se.p=a}}if(i=Nd,o=Pd,Pd=null,i!==null&&(Nd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Od&3&&_f(),Nf(t),a=t.pendingLanes,r&261930&&a&42?t===Id?Fd++:(Fd=0,Id=t):(Fd=0,Id=null),Pf(0,!1)}}function gf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oa(t)))}function _f(){return Md!==null&&(Md.skipTransition(),Md=null),pf(),mf(),hf(),vf()}function vf(){if(Td!==5)return!1;var e=Ed,t=kd;kd=0;var n=pt(Od),r=V.T,a=se.p;try{se.p=32>n?32:n,V.T=null,n=Ad,Ad=null;var o=Ed,s=Od;if(Td=0,Dd=Ed=null,Od=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Pf(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{se.p=a,V.T=r,gf(e,t)}}function yf(e,t,n){t=Ii(n,t),t=Dc(e.stateNode,t,2),e=po(e,t,2),e!==null&&(st(e,2),Nf(e))}function bf(e,t,n){if(e.tag===3)yf(e,e,n);else for(;t!==null;){if(t.tag===3){yf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(wd===null||!wd.has(r))){e=Ii(n,e),n=Oc(2),r=po(t,n,2),r!==null&&(kc(n,r,t,e),st(r,2),Nf(r));break}}t=t.return}}function xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ld=!0,i.add(n),e=Sf.bind(null,e,t,n),t.then(e,e))}function Sf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(id&n)===n&&(dd===4||dd===3&&(id&62914560)===id&&300>Fe()-bd?td&2?md|=n:qd(e,0):md|=n,gd===id&&(gd=0)),Nf(e)}function Cf(e,t){t===0&&(t=at()),e=xi(e,t),e!==null&&(st(e,t),Nf(e))}function wf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cf(e,n)}function Tf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Cf(e,n)}function Ef(e,t){return je(e,t)}var Df=null,Of=null,kf=!1,Af=!1,jf=!1,Mf=0;function Nf(e){e!==Of&&e.next===null&&(Of===null?Df=Of=e:Of=Of.next=e),Af=!0,kf||(kf=!0,Bf())}function Pf(e,t){if(!jf&&Af){jf=!0;do for(var n=!1,r=Df;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,zf(r,a))}else a=id,a=tt(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,zf(r,a))}r=r.next}while(n);jf=!1}}function Ff(){If()}function If(){Af=kf=!1;var e=0;Mf!==0&&Cp()&&(e=Mf);for(var t=Fe(),n=null,r=Df;r!==null;){var i=r.next,a=Lf(r,t);a===0?(r.next=null,n===null?Df=i:n.next=i,i===null&&(Of=n)):(n=r,(e!==0||a&3)&&(Af=!0)),r=i}Td!==0&&Td!==5||Pf(e,!1),Mf!==0&&(Mf=0)}function Lf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=it(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=id,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ad===2||ad===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),pt(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=Rf.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function Rf(e,t){if(Td!==0&&Td!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_f()&&e.callbackNode!==n)return null;var r=id;return r=tt(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Vd(e,r,t),Lf(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Rf.bind(null,e):null)}function zf(e,t){if(_f())return null;Vd(e,t,!0)}function Bf(){Op(function(){td&6?je(Le,Ff):If()})}function Vf(){if(Mf===0){var e=Pa;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),Mf=e}return Mf}function Hf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:fn(e)}function Uf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Hf((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?Hf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Mf!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var G=0;G<ci.length;G++){var Wf=ci[G];li(Wf.toLowerCase(),`on`+(Wf[0].toUpperCase()+Wf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),Ft(`onMouseEnter`,[`mouseout`,`mouseover`]),Ft(`onMouseLeave`,[`mouseout`,`mouseover`]),Ft(`onPointerEnter`,[`pointerout`,`pointerover`]),Ft(`onPointerLeave`,[`pointerout`,`pointerover`]),Pt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Pt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Pt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Pt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Gf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}}}}function Jf(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(Qf(t,e,2,!1),n.add(r))}function Yf(e,t,n){var r=0;t&&(r|=4),Qf(n,e,r,t)}var Xf=`_reactListening`+Math.random().toString(36).slice(2);function Zf(e){if(!e[Xf]){e[Xf]=!0,Mt.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Yf(t,!1,e),Yf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xf]||(t[Xf]=!0,Yf(`selectionchange`,!1,t))}}function Qf(e,t,n,r){switch(jh(t)){case 2:var i=Th;break;case 8:i=Eh;break;default:i=Dh}n=i.bind(null,t,n,e),i=void 0,!Cn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function $f(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Et(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}bn(function(){var r=a,i=hn(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=Pn,u=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Hn;break;case`focusout`:u=`blur`,l=Hn;break;case`beforeblur`:case`afterblur`:l=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=er;break;case ei:case ti:case ni:l=Un;break;case oi:l=tr;break;case`scroll`:case`scrollend`:l=In;break;case`wheel`:l=nr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=xn(m,p),g!=null&&d.push(ep(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==mn&&(u=n.relatedTarget||n.fromElement)&&(Et(u)||u[yt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Et(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Ot(c),h=l==null?u:Ot(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Et(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,np):null,c!==null&&rp(s,u,c,d,!1),l!==null&&f!==null&&rp(s,f,l,d,!0)))}a:{if(c=r?Ot(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Cr;else if(_r(c)){if(wr)_=Nr;else{_=jr;var v=Ar}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&ln(r.elementType)&&(_=Cr):_=Mr;if(_&&=_(e,r)){vr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Ot(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(ar)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,pr=!0)),v=tp(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=tp(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Uf(s,e,r,n,i)}qf(s,t)})}function ep(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tp(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=xn(e,n),i!=null&&r.unshift(ep(e,i,a)),i=xn(e,t),i!=null&&r.push(ep(e,i,a))),e.tag===3)return r;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=xn(n,a),l!=null&&o.unshift(ep(n,l,c))):i||(l=xn(n,a),l!=null&&o.push(ep(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,ap=/\u0000|\uFFFD/g;function op(e){return(typeof e==`string`?e:``+e).replace(ip,`
-`).replace(ap,``)}function sp(e,t){return t=op(t),op(e)===t}function cp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||an(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&an(e,``+r);else return;break;case`className`:Ut(e,`class`,r);break;case`tabIndex`:Ut(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ut(e,n,r);break;case`style`:cn(e,r,o);return;case`data`:if(t!==`object`){Ut(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&cp(e,t,`name`,a.name,a,null),cp(e,t,`formEncType`,a.formEncType,a,null),cp(e,t,`formMethod`,a.formMethod,a,null),cp(e,t,`formTarget`,a.formTarget,a,null)):(cp(e,t,`encType`,a.encType,a,null),cp(e,t,`method`,a.method,a,null),cp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=pn);return;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=fn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Ht(e,`popover`,r);break;case`xlinkActuate`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ht(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=un.get(n)||n,Ht(e,n,r);else return}Bt=!0}function lp(e,t,n,r,a,o){switch(n){case`style`:cn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)an(e,r);else if(typeof r==`number`||typeof r==`bigint`)an(e,``+r);else return;break;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=pn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Nt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[vt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Bt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ht(e,n,r)}return}Bt=!0}function up(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Jf(`error`,e),Jf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:cp(e,t,o,s,n,null)}}a&&cp(e,t,`srcSet`,n.srcSet,n,null),r&&cp(e,t,`src`,n.src,n,null);return;case`input`:Jf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:cp(e,t,r,d,n,null)}}$t(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Jf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:cp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&tn(e,!!r,n,!0):tn(e,!!r,t,!1);return;case`textarea`:for(s in Jf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:cp(e,t,s,c,n,null)}rn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:cp(e,t,l,r,n,null)}return;case`dialog`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Jf(`cancel`,e),Jf(`close`,e);break;case`iframe`:case`object`:Jf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)Jf(Gf[r],e);break;case`image`:Jf(`error`,e),Jf(`load`,e);break;case`details`:Jf(`toggle`,e);break;case`embed`:case`source`:case`link`:Jf(`error`,e),Jf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:cp(e,t,u,r,n,null)}return;default:if(ln(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&lp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&cp(e,t,c,r,n,null))}var dp={};function fp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||cp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Bt=!0),o=m;break;case`name`:m!==f&&(Bt=!0),a=m;break;case`checked`:m!==f&&(Bt=!0),u=m;break;case`defaultChecked`:m!==f&&(Bt=!0),d=m;break;case`value`:m!==f&&(Bt=!0),s=m;break;case`defaultValue`:m!==f&&(Bt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&cp(e,t,p,m,r,f)}}Qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||cp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Bt=!0),p=o;break;case`defaultValue`:o!==l&&(Bt=!0),c=o;break;case`multiple`:o!==l&&(Bt=!0),s=o;default:o!==l&&cp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?tn(e,!!n,n?[]:``,!1):tn(e,!!n,t,!0)):tn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:cp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Bt=!0),p=a;break;case`defaultValue`:a!==o&&(Bt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&cp(e,t,s,a,r,o)}nn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:cp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Bt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:cp(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&cp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:cp(e,t,u,p,r,m)}return;default:if(ln(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&lp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||lp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&cp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||cp(e,t,f,p,r,m)}function pp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function mp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&pp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&pp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var hp=null,gp=null;function _p(e){return e.nodeType===9?e:e.ownerDocument}function vp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function yp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function bp(e,t,n,r){return n=_p(n).createElement(e),n[_t]=r,n[vt]=t,up(n,e,t),At(n),n}function xp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sp=null;function Cp(){var e=window.event;return e&&e.type===`popstate`?e!==Sp&&(Sp=e,!0):(Sp=null,!1)}var wp=typeof setTimeout==`function`?setTimeout:void 0,Tp=typeof clearTimeout==`function`?clearTimeout:void 0,Ep=typeof Promise==`function`?Promise:void 0,Dp=typeof requestAnimationFrame==`function`?requestAnimationFrame:wp,Op=typeof queueMicrotask==`function`?queueMicrotask:Ep===void 0?wp:function(e){return Ep.resolve(null).then(e).catch(kp)};function kp(e){setTimeout(function(){throw e})}function Ap(e){return e===`head`}function jp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Xh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tm(e.ownerDocument.body)}n=i}while(n);Xh(t)}function Mp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Np(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Pp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Fp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ip(e){return Fp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Lp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Fp(t,n,e)}function Rp(e){return e.documentElement.clientHeight}function zp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Bp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Rp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=ih(f),u>sh){s.length=o;break}f=new Promise(zp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Vp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Vp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Vp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Vp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hp(e){return{name:e,group:new Vp(`group`,e),imagePair:new Vp(`image-pair`,e),old:new Vp(`old`,e),new:new Vp(`new`,e)}}function Up(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Up.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Jp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Kp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Wp,e,s,r)}this._eventListeners=a}};function Wp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Up.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Jp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Kp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Gp,e,n,i),r.splice(t,1),a!==null&&a()}};function Gp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Kp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Jp(e,t,n,r){if(e.length===0)return-1;r=qp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&qp(a.optionsOrUseCapture)===r)return i}return-1}Up.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Kp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Kp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Up.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=_(e),xm(e,t))}Up.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Xp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yp(t[n],e);n--);};function Xp(e,t){return t.push(e),!1}Up.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=_p(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Zp,e,void 0,void 0))};function Zp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Up.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0)};function Qp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Up.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,$p,e,void 0,void 0);for(var n=t=0;n<em.length;n++){var r=em[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):em[t++]=r}em.length=t}};function $p(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var em=[],tm=!1;function nm(e,t,n){em.push({fragmentInstance:e,observer:t,instance:n}),tm||(tm=!0,Sm(function(){tm=!1;var e=em;em=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Up.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,rm,e,void 0,void 0),e};function rm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Up.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Up.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Xp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||im(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function im(e,t,n,r,i){var a=Et(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function am(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Up.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Xp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),am(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),am(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function om(e,t){return e=_(e),sm(e,t),!1}function sm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function cm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<em.length;i++){var a=em[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(em[r++]=a)}em.length=r,n.observe(e)}),sm(e,t))}function lm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?nm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function um(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:um(n),Tt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function dm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=_m(e.nextSibling),e===null)break}return null}function fm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_m(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_m(e.nextSibling),e===null))return null;return e}function mm(e){return e.data===`$?`||e.data===`$~`}function hm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function _m(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var vm=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _m(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function xm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function Sm(e){Dp(function(){Dp(function(t){return e(t)})})}function Cm(e,t,n){switch(t=_p(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function wm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&cp(e,t,r,null,dp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===pn&&(e.onclick=null),Tt(e)}function Tm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tt(e)}var Em=new Map,Dm=new Set;function Om(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var km=se.d;se.d={f:Am,r:jm,D:Pm,C:Fm,L:Im,m:Lm,X:zm,S:Rm,M:Bm};function Am(){var e=km.f(),t=Gd();return e||t}function jm(e){var t=Dt(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):km.r(e)}var Mm=typeof document>`u`?null:document;function Nm(e,t,n){var r=Mm;if(r&&typeof t==`string`&&t){var i=Zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Dm.has(i)||(Dm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),up(t,`link`,e),At(t),r.head.appendChild(t)))}}function Pm(e){km.D(e),Nm(`dns-prefetch`,e,null)}function Fm(e,t){km.C(e,t),Nm(`preconnect`,e,t)}function Im(e,t,n){km.L(e,t,n);var r=Mm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Zt(n.imageSizes)+`"]`)):i+=`[href="`+Zt(e)+`"]`;var a=i;switch(t){case`style`:a=Hm(e);break;case`script`:a=Km(e)}if(!(Em.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Em.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Um(a))||t===`script`&&r.querySelector(qm(a))))){var o=r.createElement(`link`);up(o,`link`,e),t===`style`&&(o[wt]=!0,o.onload=o.onerror=function(){jt(o)}),At(o),r.head.appendChild(o)}}}function Lm(e,t){km.m(e,t);var n=Mm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Zt(r)+`"][href="`+Zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Km(e)}if(!Em.has(a)&&(e=w({rel:`modulepreload`,href:e},t),Em.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(qm(a)))return}r=n.createElement(`link`),up(r,`link`,e),At(r),n.head.appendChild(r)}}}function Rm(e,t,n){km.S(e,t,n);var r=Mm;if(r&&e){var i=kt(r).hoistableStyles,a=Hm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Um(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Em.get(a))&&Xm(e,n);var c=o=r.createElement(`link`);At(c),up(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Ym(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function zm(e,t){km.X(e,t);var n=Mm;if(n&&e){var r=kt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=w({src:e,async:!0},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),At(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t){km.M(e,t);var n=Mm;if(n&&e){var r=kt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),At(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vm(e,t,n,r){var a=(a=ge.current)?Om(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Hm(n.href),t=kt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Hm(n.href);var o=kt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Um(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Em.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Em.set(e,o)),Gm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Km(n),t=kt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Hm(e){return`href="`+Zt(e)+`"`}function Um(e){return`link[rel="stylesheet"][`+e+`]`}function Wm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Gm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[wt]){r.loading=1;return}}else t=e.createElement(`link`),t[wt]=!0,t.onload=t.onerror=jt.bind(null,t),up(t,`link`,n),At(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Km(e){return`[src="`+Zt(e)+`"]`}function qm(e){return`script[async]`+e}function Jm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Zt(n.href)+`"]`);if(r)return t.instance=r,At(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),At(r),up(r,`style`,a),Ym(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Hm(n.href);var o=e.querySelector(Um(a));if(o)return t.state.loading|=4,t.instance=o,At(o),o;r=Wm(n),(a=Em.get(a))&&Xm(r,a),o=(e.ownerDocument||e).createElement(`link`),At(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),up(o,`link`,r),t.state.loading|=4,Ym(o,n.precedence,e),t.instance=o;case`script`:return o=Km(n.src),(a=e.querySelector(qm(o)))?(t.instance=a,At(a),a):(r=n,(a=Em.get(o))&&(r=w({},n),Zm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),At(a),up(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Ym(r,n.precedence,e));return t.instance}function Ym(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Qm=null;function $m(e,t,n){if(Qm===null){var r=new Map,i=Qm=new Map;i.set(n,r)}else i=Qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ct]||a[_t]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function eh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function th(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function nh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function rh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ih(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ah(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ih(t),e.suspenseyImages.push(t)),e=dh.bind(e),t.decode().then(e,e))}function oh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Hm(r.href),a=t.querySelector(Um(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=uh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,At(a);return}a=t.ownerDocument||t,r=Wm(r),(i=Em.get(i))&&Xm(r,i),a=a.createElement(`link`),At(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),up(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=uh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sh=0;function ch(e,t){return e.stylesheets&&e.count===0&&ph(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&sh===0&&(sh=62500*mp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ph(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function uh(){this.count--,lh(this)}function dh(){this.imgCount--,lh(this)}var fh=null;function ph(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fh=new Map,t.forEach(mh,e),fh=null,uh.call(e))}function mh(e,t){if(!(t.state.loading&4)){var n=fh.get(e);if(n)var r=n.get(null);else{n=new Map,fh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=uh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var hh={$$typeof:M,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function gh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function _h(e,t,n,r,i,a,o,s,c,l,u,d){return e=new gh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},lo(a),e}function vh(e){return e?(e=wi,e):wi}function yh(e,t,n,r,i,a){i=vh(i),r.context===null?r.context=i:r.pendingContext=i,r=fo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=po(e,r,t),n!==null&&(Bd(n,e,t),mo(n,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xh(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Bd(t,e,67108864),xh(e,67108864)}}function Ch(e){if(e.tag===13||e.tag===31){var t=Ld();t=ft(t);var n=xi(e,t);n!==null&&Bd(n,e,t),xh(e,t)}}var wh=!0;function Th(e,t,n,r){var i=V.T;V.T=null;var a=se.p;try{se.p=2,Dh(e,t,n,r)}finally{se.p=a,V.T=i}}function Eh(e,t,n,r){var i=V.T;V.T=null;var a=se.p;try{se.p=8,Dh(e,t,n,r)}finally{se.p=a,V.T=i}}function Dh(e,t,n,r){if(wh){var i=Oh(r);if(i===null)$f(e,t,r,kh,n),Bh(e,r);else if(Hh(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<zh.indexOf(e)){for(;i!==null;){var a=Dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}Nf(a),!(td&6)&&(Sd=Fe()+500,Pf(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Bd(s,a,2),Gd(),xh(a,2)}if(a=Oh(r),a===null&&$f(e,t,r,kh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else $f(e,t,r,null,n)}}function Oh(e){return e=hn(e),Ah(e)}var kh=null;function Ah(e){if(kh=null,e=Et(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kh=e,null}function jh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Mh=!1,Nh=null,Ph=null,Fh=null,Ih=new Map,Lh=new Map,Rh=[],zh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Bh(e,t){switch(e){case`focusin`:case`focusout`:Nh=null;break;case`dragenter`:case`dragleave`:Ph=null;break;case`mouseover`:case`mouseout`:Fh=null;break;case`pointerover`:case`pointerout`:Ih.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lh.delete(t.pointerId)}}function Vh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Dt(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hh(e,t,n,r,i){switch(t){case`focusin`:return Nh=Vh(Nh,e,t,n,r,i),!0;case`dragenter`:return Ph=Vh(Ph,e,t,n,r,i),!0;case`mouseover`:return Fh=Vh(Fh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ih.set(a,Vh(Ih.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lh.set(a,Vh(Lh.get(a)||null,e,t,n,r,i)),!0}return!1}function Uh(e){var t=Et(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ch(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ch(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mn=r,n.target.dispatchEvent(r),mn=null}else return t=Dt(n),t!==null&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function Gh(e,t,n){Wh(e)&&n.delete(t)}function Kh(){Mh=!1,Nh!==null&&Wh(Nh)&&(Nh=null),Ph!==null&&Wh(Ph)&&(Ph=null),Fh!==null&&Wh(Fh)&&(Fh=null),Ih.forEach(Gh),Lh.forEach(Gh)}function qh(e,n){e.blockedOn===n&&(e.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Kh)))}var Jh=null;function Yh(e){Jh!==e&&(Jh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jh===e&&(Jh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ah(r||n)===null)continue;break}var a=Dt(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Xh(e){function t(t){return qh(t,e)}Nh!==null&&qh(Nh,e),Ph!==null&&qh(Ph,e),Fh!==null&&qh(Fh,e),Ih.forEach(t),Lh.forEach(t);for(var n=0;n<Rh.length;n++){var r=Rh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rh.length&&(n=Rh[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&Rh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[vt]||null;if(typeof a==`function`)o||Yh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(Ah(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Yh(n)}}}function Zh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Qh(e){this._internalRoot=e}$h.prototype.render=Qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;yh(n,Ld(),e,t,null,null)},$h.prototype.unmount=Qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),Gd(),t[yt]=null}};function $h(e){this._internalRoot=e}$h.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rh.length&&t!==0&&t<Rh[n].priority;n++);Rh.splice(n,0,e),n===0&&Uh(e)}};var eg=n.version;if(eg!==`19.3.0`)throw Error(i(527,eg,`19.3.0`));se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var tg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:V,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{We=ng.inject(tg),Ge=ng}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Sc,s=Cc,c=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=_h(e,1,!1,null,null,n,r,null,o,s,c,Zh),e[yt]=t.current,Zf(e),new Qh(t)}})),AY=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=kY()}))();function jY({active:e,summary:t,hasSummary:n,generating:r,writing:i,scroll:a,children:o}){let s=(0,H.useRef)(null),c=(0,H.useRef)(null),[l,u]=(0,H.useState)(!1);(0,H.useEffect)(()=>{if(!e||!r||!s.current){u(!1);return}let t=!1,n=()=>u(t&&!document.hidden),i=new IntersectionObserver(([e])=>{t=e.isIntersecting,n()});return i.observe(s.current),document.addEventListener(`visibilitychange`,n),()=>{i.disconnect(),document.removeEventListener(`visibilitychange`,n)}},[e,r]);let d=XJ(a,c,e&&r&&l);return(0,H.useLayoutEffect)(()=>{i&&d.resume()},[i]),(0,G.jsxs)(`div`,{ref:s,className:`note-reading-frame`,hidden:!e,"data-has-summary":t&&n,"data-generating":r,"data-active":e&&r&&l,children:[(0,G.jsx)(`div`,{className:`note-reading-clip`,children:(0,G.jsx)(qh,{enabled:e,children:(0,G.jsx)(`section`,{ref:a,id:`note-notes-panel`,role:`tabpanel`,"aria-labelledby":t?`note-summary-tab`:`note-notes-tab`,className:`note-content note-notes-pane`,children:(0,G.jsx)(`div`,{ref:c,className:`note-page-width note-notes-body`,children:o})})})}),i&&!d.behind&&(0,G.jsx)(`span`,{className:`note-summary-status`,"aria-hidden":`true`,children:(0,G.jsx)(`span`,{className:`summary-status-text`,children:U(`Generating notes…`)})}),d.behind&&(0,G.jsxs)(`button`,{type:`button`,className:`note-latest`,"data-testid":`note-summary-latest`,onClick:d.latest,children:[(0,G.jsx)(sg,{size:12,"aria-hidden":`true`}),U(`Latest`)]})]})}function MY({part:e,outline:t=!0,writing:n=!1}){let r=(0,H.useRef)(null),[i,a]=(0,H.useState)(null);(0,H.useLayoutEffect)(()=>{t||a(r.current?.closest(`.note-reading-frame`)??null)},[t]);let o=(0,G.jsxs)(`div`,{"data-testid":`note-enhanced-waiting`,className:`summary-waiting`,"aria-live":`polite`,children:[t&&(0,G.jsx)(`div`,{className:`summary-outline`,"aria-hidden":`true`,children:[0,1].map(e=>(0,G.jsxs)(`div`,{className:`summary-outline-block`,children:[(0,G.jsx)(`div`,{className:`summary-outline-bar summary-outline-heading`}),[0,1].map(e=>(0,G.jsx)(`div`,{className:`summary-outline-bullet`,children:(0,G.jsx)(`div`,{className:`summary-outline-bar`})},e))]},e))}),(0,G.jsx)(`span`,{className:`note-summary-status`,children:(0,G.jsx)(`span`,{className:`summary-status-text`,children:n?U(`Generating notes…`):e?U(`Reading a long meeting, part {part} of {of}…`,{part:e.part,of:e.of}):U(`Reading the transcript…`)})})]});return t?o:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{ref:r,hidden:!0}),i?(0,Oe.createPortal)(o,i):o]})}function NY(e,t){return e?e.status!==t.status||e.status!==`done`&&(e.status!==`failed`||e.enhanced==null)||t.rewrittenFrom!==void 0&&(e.enhanced??``)===t.rewrittenFrom?{view:{...t,mine:e.mine}}:{view:{...t,mine:e.mine,enhanced:e.enhanced},...t.rewrittenFrom===void 0?{}:{keptEdits:!0}}:{view:t}}sh.transition.check,sh.transition.uncheck,{...sh.spring.checkPop},sh.transition.check.delay,sh.transition.popOut,sh.spring.bounce;var PY=sh.scale.icon,FY=2,IY=`path, line, polyline, polygon, circle, ellipse, rect`,LY=new WeakMap,RY=[`pathLength`,`stroke-dasharray`,`stroke-dashoffset`];function zY(e,t,n){let r=n===1;if(t.mode===`stroke`&&(r||t.reduce?RY.forEach((n,r)=>{let i=t.dash[r];i==null?e.removeAttribute(n):e.setAttribute(n,i)}):(e.setAttribute(`pathLength`,`1`),e.setAttribute(`stroke-dasharray`,`${Math.min(1,Math.max(0,n))} 1`),e.setAttribute(`stroke-dashoffset`,`0`))),t.mode===`pop`){let i=r||t.reduce||n===0&&t.blur>0;e.style.transform=i?t.inlineTransform:`scale(${t.from+(1-t.from)*n})`,t.blur&&(e.style.filter=i?t.inlineFilter:`blur(${t.blur*(1-Math.min(1,Math.max(0,n)))}px)`)}e.style.opacity=r?t.inlineOpacity:String(t.opacity*Math.min(1,Math.max(0,n)))}var BY=({kind:e,animation:t})=>e===`dot`||t===`pop`;function VY(e,t){return BY(t)?e:e.flatMap(e=>{let t=e.matches(IY)?[e]:Array.from(e.querySelectorAll(IY));return t.length>0?t:[e]})}function HY(e,t,n){let r=LY.get(e);if(!r){let i=BY(t);i&&t.kind===`check`&&e instanceof HTMLElement&&getComputedStyle(e).display===`inline`&&(e.style.display=`inline-block`),r={mode:i?`pop`:e instanceof SVGGeometryElement?`stroke`:`fade`,from:t.kind===`dot`?0:PY,blur:t.kind===`dot`?0:FY,progress:go(1),opacity:Number(getComputedStyle(e).opacity),inlineOpacity:e.style.opacity,inlineTransform:e.style.transform,inlineFilter:e.style.filter,dash:RY.map(t=>e.getAttribute(t)),reduce:n,controls:null,unsubscribe:()=>{}};let a=r;r.unsubscribe=r.progress.on(`change`,t=>zY(e,a,t)),LY.set(e,r)}return r.reduce=n,r}function UY(e){for(let t of e)for(let e of[t,...Array.from(t.querySelectorAll(IY))]){let t=LY.get(e);t&&(t.controls?.stop(),t.unsubscribe(),zY(e,t,1),LY.delete(e))}}function WY(e,t,n,r,i){let a=e.map(e=>{let a=!LY.has(e),o=HY(e,t,i);o.controls?.stop(),a&&n&&o.progress.jump(0);let s=gf(o.progress,+!!n,r);return o.controls=s,s});return Promise.all(a).then(()=>void 0)}function GY(...e){return t=>{let n=e.map(e=>{if(typeof e==`function`)return e(t);e&&(e.current=t)});return()=>{n.forEach((t,n)=>{let r=e[n];typeof t==`function`?t():typeof r==`function`?r(null):r&&(r.current=null)})}}}var KY=`[data-slot="toast-icon"]`;function qY(e){return e.querySelector(KY)?.firstElementChild??null}function JY(e,t){let n=e.getAttribute(t);return n?e.ownerDocument.getElementById(n):null}var YY=[`font`,`letterSpacing`,`lineHeight`,`textAlign`,`whiteSpace`,`overflowWrap`,`wordBreak`];function XY(e){if(!e||!e.isConnected)return null;let t=e.getBoundingClientRect();if(t.width===0&&t.height===0)return null;let n=getComputedStyle(e),r=e.cloneNode(!0);for(let e of[r,...r.querySelectorAll(`[id], [data-slot]`)])e.removeAttribute(`id`),e.removeAttribute(`data-slot`);if(r instanceof HTMLElement)for(let e of YY)r.style[e]=n[e];let i=e.getAnimations().find(e=>e instanceof CSSAnimation)?.currentTime;return{element:r,rect:t,text:e.textContent??``,opacity:Number(n.opacity),filter:n.filter,color:n.color,time:typeof i==`number`?i:null}}function ZY(e){if(!e)return null;let t=e.getBoundingClientRect();return{root:t,height:e.offsetHeight,scale:e.offsetWidth?t.width/e.offsetWidth:1,icon:XY(qY(e)),title:XY(JY(e,`aria-labelledby`)),description:XY(JY(e,`aria-describedby`))}}var QY=class extends H.Component{getSnapshotBeforeUpdate(e){return this.props.watch.some((t,n)=>!Object.is(t,e.watch[n]))?this.props.take():null}componentDidUpdate(e,t,n){n&&this.props.onUpdate(n)}render(){return this.props.children}},$Y=[`success`,`error`];function eX(e,t,n,r,i){UY([e]);let a=$Y.includes(t??``),o={kind:`check`,animation:a?`draw`:`pop`},s=a?{...r.transition.check,delay:n}:{...r.spring.checkPop,delay:n};if(WY(VY([e],o),o,!0,s,i),t===`error`&&!i){let t=r.transition.check;tX(e,(n+t.duration/2)*1e3,r)}}function tX(e,t,n){let{duration:r,ease:i}=n.transition.shake,a=`cubic-bezier(${i.join(`, `)})`;e.animate([0,-1,1,-.66,.66,-.33,0].map(e=>({transform:`translateX(${e*n.shift.shake}px)`,easing:a})),{duration:r*1e3,delay:t})}function nX(e,t,n){let{element:r,rect:i}=t,a=n.scale||1,o=e.ownerDocument.createElement(`div`);if(o.setAttribute(`aria-hidden`,`true`),o.inert=!0,Object.assign(o.style,{position:`absolute`,left:`${(i.left-n.root.left)/a-e.clientLeft}px`,top:`${(i.top-n.root.top)/a-e.clientTop}px`,width:`${i.width/a}px`,height:`${i.height/a}px`,margin:`0`,pointerEvents:`none`,color:t.color,opacity:String(t.opacity),filter:t.filter}),r instanceof SVGElement&&(r.setAttribute(`width`,`100%`),r.setAttribute(`height`,`100%`),r.style.display=`block`),r instanceof HTMLElement&&(r.style.margin=`0`,r.style.width=`100%`),o.append(r),e.append(o),t.time!==null)for(let e of r.getAnimations())e.currentTime=t.time;return o}var rX=e=>gh(e);function iX(e,t,n,r){let{duration:i,easing:a}=rX(n.transition.swap),o={opacity:e.style.opacity},s={opacity:0};o.filter=e.style.filter===`none`?`blur(0px)`:e.style.filter,s.filter=n.blur.icon,t&&!r&&(o.transform=`scale(1)`,s.transform=`scale(${n.scale.icon})`),e.animate([o,s],{duration:i,easing:a,fill:`forwards`}).finished.then(()=>e.remove(),()=>e.remove())}function aX(e,t){let{duration:n,easing:r}=rX(t.transition.swap);e.animate([{opacity:0,filter:t.blur.icon},{opacity:1,filter:`blur(0px)`}],{duration:n,easing:r})}function oX(e,t,n){let r=e.style.height;e.style.height=`auto`;let i=e.offsetHeight;e.style.height=r,Math.abs(i-t)<1||e.animate([{height:`${t}px`},{height:`${i}px`}],{duration:n.duration,easing:n.easing})}function sX(e,t,n,r,i,a,o){if(!e)return;o||oX(e,t.height,a);let s=getComputedStyle(e).position!==`static`,c=[[t.title,JY(e,`aria-labelledby`)],[t.description,JY(e,`aria-describedby`)]];for(let[n,r]of c){let a=r?.textContent??``;n&&n.text===a&&r||(n&&s&&iX(nX(e,n,t),!1,i,o),r&&a&&aX(r,i))}if(!n)return;t.icon&&s&&iX(nX(e,t.icon,t),!0,i,o);let l=qY(e);l&&eX(l,r,t.icon?i.transition.swap.duration/2:0,i,o)}var cX=.5,lX=48,uX=360,dX=80,fX=100;function pX(e){let t=cX*Math.abs(e);return Math.sign(e)*(t*lX/(lX+t))}function mX(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function hX(e){let t=e.currentTarget,n=new DOMMatrix(getComputedStyle(t).transform.replace(`none`,``));return{pointerId:e.pointerId,start:{x:e.clientX,y:e.clientY},first:!0,axis:null,initial:{x:n.m41,y:n.m42,scale:Math.hypot(n.a,n.b)},width:t.offsetWidth,height:t.offsetHeight,points:[{t:e.timeStamp,x:e.clientX,y:e.clientY}],releasedAt:null}}function gX(e,t,n){if(t.pointerId!==e.pointerId||e.releasedAt!==null)return;e.first&&=(e.start={x:t.clientX,y:t.clientY},!1);let r=t.clientX-e.start.x,i=t.clientY-e.start.y,a=n.some(e=>e===`left`||e===`right`),o=n.some(e=>e===`up`||e===`down`);e.axis===null&&a&&o&&Math.hypot(r,i)>=1&&(e.axis=Math.abs(r)>Math.abs(i)?`x`:`y`),e.points.push({t:t.timeStamp,x:t.clientX,y:t.clientY}),e.points.length>32&&e.points.shift()}function _X(e,t){let n=e.points.at(-1),r=e.first?0:n.x-e.start.x,i=e.first?0:n.y-e.start.y,a=t.some(e=>e===`left`||e===`right`),o=t.some(e=>e===`up`||e===`down`),s=(e,n,r)=>e>0&&t.includes(n)||e<0&&t.includes(r)?e:pX(e);return{x:a&&e.axis!==`y`?s(r,`right`,`left`):0,y:o&&e.axis!==`x`?s(i,`down`,`up`):0}}function vX(e,t){let{x:n,y:r}=_X(e,t),i=Math.max(0,...t.map(t=>mX(t,n,r)/((t===`left`||t===`right`?e.width:e.height)||1))),{initial:a}=e;return{transform:`translateX(${a.x+n}px) translateY(${a.y+r}px) scale(${a.scale})`,opacity:1-Math.min(1,i)}}function yX(e,t){let n=e.releasedAt??e.points.at(-1).t,r=e.points.filter(e=>n-e.t<=fX),i=r[0],a=r.at(-1),o=i&&a&&a!==i&&n>i.t?mX(t,a.x-i.x,a.y-i.y)/(n-i.t):0,s=t===`left`||t===`right`?e.width:e.height,c=o>0?Math.min(uX,Math.max(dX,s/o)):uX;return{duration:Math.round(c),easing:`linear`}}var bX=`data-animate-ui-toast-progress`,xX=`data-animate-ui-toast-progress-bar`,SX=`
-:where([${bX}]) {
+`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-qe(n),i=1<<r;t|=e[r],n&=~i}return t}function it(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function at(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function ot(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ct(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-qe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&lt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function lt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=se.p;return e===0?(e=window.event,e===void 0?32:jh(e.type)):e}function ht(e,t){var n=se.p;try{return se.p=e,t()}finally{se.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,St=`__reactHandles$`+gt,U=`__reactResources$`+gt,Ct=`__reactMarker$`+gt,wt=`__reactLoad$`+gt;function Tt(e){delete e[_t],delete e[vt],delete e[xt],delete e[St]}function Et(e){var t;if(t=e[_t])return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bm(e);e!==null;){if(n=e[_t])return n;e=bm(e)}return t}e=n,n=e.parentNode}return null}function Dt(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ot(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function kt(e){var t=e[U];return t||=e[U]={hoistableStyles:new Map,hoistableScripts:new Map},t}function At(e){e[Ct]=!0}function jt(e){e[wt]=void 0}var Mt=new Set,Nt={};function Pt(e,t){Ft(e,t),Ft(e+`Capture`,t)}function Ft(e,t){for(Nt[e]=t,e=0;e<t.length;e++)Mt.add(t[e])}var It=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Lt={},Rt={};function zt(e){return Ae.call(Rt,e)?!0:Ae.call(Lt,e)?!1:It.test(e)?Rt[e]=!0:(Lt[e]=!0,!1)}var Bt=!1;function Vt(){var e=Bt;return Bt=!1,e}function Ht(e,t,n){if(zt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Ut(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Gt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function qt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jt(e){if(!e._valueTracker){var t=Kt(e)?`checked`:`value`;e._valueTracker=qt(e,t,``+e[t])}}function Yt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Xt=/[\n"\\]/g;function Zt(e){return e.replace(Xt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Qt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Gt(t)):e.value!==``+Gt(t)&&(e.value=``+Gt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):en(e,Gt(n)):o===`number`&&e.value==t?en(e,Gt(e.value)):en(e,Gt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Gt(s):e.removeAttribute(`name`)}function $t(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Jt(e);return}n=n==null?``:``+Gt(n),t=t==null?n:``+Gt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Jt(e)}function en(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function tn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Gt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function nn(e,t,n){t!=null&&(t=``+Gt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Gt(n)}function rn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Gt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Jt(e)}function an(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var on=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function sn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||on.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function cn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Bt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(sn(e,a,r),Bt=!0)}else for(var o in t)t.hasOwnProperty(o)&&sn(e,o,t[o])}function ln(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var un=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),dn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fn(e){return dn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function pn(){}var mn=null;function hn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gn=null,_n=null;function vn(e){var t=Dt(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Qt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[vt]||null;if(!a)throw Error(i(90));Qt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Yt(r)}break a;case`textarea`:nn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&tn(e,!!n.multiple,t,!1)}}}var yn=!1;function bn(e,t,n){if(yn)return e(t,n);yn=!0;try{return e(t)}finally{if(yn=!1,(gn!==null||_n!==null)&&(Gd(),gn&&(t=gn,e=_n,_n=gn=null,vn(t),e)))for(t=0;t<e.length;t++)vn(e[t])}}function xn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Sn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Cn=!1;if(Sn)try{var wn={};Object.defineProperty(wn,"passive",{get:function(){Cn=!0}}),window.addEventListener(`test`,wn,wn),window.removeEventListener(`test`,wn,wn)}catch{Cn=!1}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function jn(){return!1}function Mn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:jn,this.isPropagationStopped=jn,this}return w(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Mn(Nn),Fn=w({},Nn,{view:0,detail:0}),In=Mn(Fn),Ln,Rn,zn,W=w({},Fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==zn&&(zn&&e.type===`mousemove`?(Ln=e.screenX-zn.screenX,Rn=e.screenY-zn.screenY):Rn=Ln=0,zn=e),Ln)},movementY:function(e){return`movementY`in e?e.movementY:Rn}}),Bn=Mn(W),Vn=Mn(w({},W,{dataTransfer:0})),Hn=Mn(w({},Fn,{relatedTarget:0})),Un=Mn(w({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=Mn(w({},Nn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=Mn(w({},Nn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=Mn(w({},Fn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=Mn(w({},W,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=Mn(w({},Nn,{submitter:0})),er=Mn(w({},Fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),tr=Mn(w({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0})),nr=Mn(w({},W,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),rr=Mn(w({},Nn,{newState:0,oldState:0,source:0})),ir=[9,13,27,32],ar=Sn&&`CompositionEvent`in window,or=null;Sn&&`documentMode`in document&&(or=document.documentMode);var sr=Sn&&`TextEvent`in window&&!or,cr=Sn&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=On(),Dn=En=Tn=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){gn?_n?_n.push(r):_n=[r]:gn=r,t=tp(t,`onChange`),0<t.length&&(n=new Pn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){qf(e,0)}function Sr(e){if(Yt(Ot(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(Sn){var Tr;if(Sn){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];vr(t,br,e,hn(e)),bn(xr,t)}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr;function Ir(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ae.call(t,i)||!Fr(e[i],t[i]))return!1}return!0}function Lr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=Sn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Lr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Ir(Kr,r)||(Kr=r,r=tp(Gr,`onSelect`),0<r.length&&(t=new Pn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};Sn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Pt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Ed.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Pd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Fd)throw Fd=0,Id=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ki(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=th(e,n,me.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case R:return e=Ei(31,n,t,a),e.elementType=R,e.lanes=o,e;case O:return ji(n.children,a,o,t);case k:s=8,a|=24;break;case A:return e=Ei(12,n,t,a|2),e.elementType=A,e.lanes=o,e;case P:return e=Ei(13,n,t,a),e.elementType=P,e.lanes=o,e;case F:return e=Ei(19,n,t,a),e.elementType=F,e.lanes=o,e;case ee:case te:return e=a|32,e=Ei(30,n,t,e),e.elementType=te,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case M:s=10;break a;case j:s=9;break a;case N:s=11;break a;case I:s=14;break a;case L:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-qe(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=r,n){case`dialog`:Jf(`cancel`,t),Jf(`close`,t);break;case`iframe`:case`object`:case`embed`:Jf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)Jf(Gf[n],t);break;case`source`:Jf(`error`,t);break;case`img`:case`image`:case`link`:Jf(`error`,t),Jf(`load`,t);break;case`details`:Jf(`toggle`,t);break;case`input`:Jf(`invalid`,t),$t(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Jf(`invalid`,t);break;case`textarea`:Jf(`invalid`,t),rn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||sp(t.textContent,n)?(r.popover!=null&&(Jf(`beforetoggle`,t),Jf(`toggle`,t)),r.onScroll!=null&&Jf(`scroll`,t),r.onScrollEnd!=null&&Jf(`scrollend`,t),r.onClick!=null&&(t.onclick=pn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||xp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=ym(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=ym(e)}else t===27?(t=Qi,Ap(e.type)?(e=vm,vm=null,Qi=e):Qi=t):Qi=Zi?_m(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(vd===null?vd=e:vd.push.apply(vd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=de(null),da=null,fa=null;function pa(e,t,n){pe(ua,t._currentValue),t._currentValue=n}function ma(e){e._currentValue=ua.current,fe(ua)}function ha(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ga(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ha(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ha(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ha(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function _a(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Fr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===_e.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[hh]:e.push(hh))}a=a.return}return e!==null&&ga(t,e,n,r),t.flags|=262144,e!==null}function va(e){for(e=e.firstContext;e!==null;){if(!Fr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ba(e){return Sa(da,e)}function xa(e,t){return da===null&&ya(e),Sa(e,t)}function Sa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Ca=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},wa=t.unstable_scheduleCallback,Ta=t.unstable_NormalPriority,Ea={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Da(){return{controller:new Ca,data:new Map,refCount:0}}function Oa(e){e.refCount--,e.refCount===0&&wa(Ta,function(){e.controller.abort()})}function ka(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Aa=null;function ja(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ma=null,Na=0,Pa=0,Fa=null;function Ia(e,t){if(Ma===null){var n=Ma=[];Na=0,Pa=Vf(),Fa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Na++,t.then(La,La),t}function La(){if(--Na===0&&(Aa=null,Ma!==null)){Fa!==null&&(Fa.status=`fulfilled`);var e=Ma;Ma=null,Pa=0,Fa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ra(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var za=V.S;V.S=function(e,t){if(xd=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&Ia(e,t),Aa!==null)for(var n=Df;n!==null;)ka(n,Aa),n=n.next;if(n=e.types,n!==null){for(var r=Df;r!==null;)ka(r,n),r=r.next;if(Pa!==0){r=Aa,r===null&&(r=Aa=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}za!==null&&za(e,t)};var Ba=de(null);function Va(){var e=Ba.current;return e===null?nd.pooledCache:e}function Ha(e,t){t===null?pe(Ba,Ba.current):pe(Ba,t.pool)}function Ua(){var e=Va();return e===null?null:{parent:Ea._currentValue,pool:e}}var Wa=Error(i(460)),Ga=Error(i(474)),Ka=Error(i(542)),qa={then:function(){}};function Ja(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ya(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(pn,pn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(pn,pn);else{if(e=nd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,$a(e),e}throw Za=t,Wa}}function Xa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Za=e,Wa):e}}var Za=null;function Qa(){if(Za===null)throw Error(i(459));var e=Za;return Za=null,e}function $a(e){if(e===Wa||e===Ka)throw Error(i(483))}var eo=null,to=0;function no(e){var t=to;return to+=1,eo===null&&(eo=[]),Ya(eo,e,t)}function ro(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function io(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ao(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),ro(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===L&&Xa(i)===t.type)?(t=a(t,n.props),ro(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),ro(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Ai(t.type,t.key,t.props,null,e.mode,n),ro(n,t),n.return=e,n;case D:return t=Pi(t,e.mode,n),t.return=e,t;case L:return t=Xa(t),f(e,t,n)}if(oe(t)||ie(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,no(t),n);if(t.$$typeof===M)return f(e,xa(e,t),n);io(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case L:return n=Xa(n),p(e,t,n,r)}if(oe(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,no(n),r);if(n.$$typeof===M)return p(e,t,xa(e,n),r);io(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case L:return r=Xa(r),m(e,t,n,r,i)}if(oe(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,no(r),i);if(r.$$typeof===M)return m(e,t,n,xa(t,r),i);io(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ro(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===L&&Xa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ro(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=ji(o.props.children,e.mode,c,o.key),ro(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),ro(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case L:return o=Xa(o),_(e,r,o,c)}if(oe(o))return h(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,no(o),c);if(o.$$typeof===M)return _(e,r,xa(e,o),c);io(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{to=0;var i=_(e,t,n,r);return eo=null,i}catch(t){if(t===Wa||t===Ka)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var oo=ao(!0),so=ao(!1),co=!1;function lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}function ho(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var go=!1;function _o(){if(go){var e=Fa;if(e!==null)throw e}}function vo(e,t,n,r){go=!1;var i=e.updateQueue;co=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(id&f)===f:(r&f)===f){f!==0&&f===Pa&&(go=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:co=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),fd|=o,e.lanes=o,e.memoizedState=d}}function yo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function bo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)yo(n[e],t)}var xo=de(null),So=de(0);function Co(e,t){e=ud,pe(So,e),pe(xo,t),ud=e|t.baseLanes}function wo(){pe(So,ud),pe(xo,xo.current)}function To(){ud=So.current,fe(xo),fe(So)}var Eo=de(null),Do=null;function Oo(e){var t=e.alternate;pe(No,No.current&1),pe(Eo,e),Do===null&&(t===null||xo.current!==null||t.memoizedState!==null)&&(Do=e)}function ko(e){pe(No,No.current),pe(Eo,e),Do===null&&(Do=e)}function Ao(e){e.tag===22?(pe(No,No.current),pe(Eo,e),Do===null&&(Do=e)):jo()}function jo(){pe(No,No.current),pe(Eo,Eo.current)}function Mo(e){fe(Eo),Do===e&&(Do=null),fe(No)}var No=de(0);function Po(e,t){pe(Eo,Eo.current),pe(No,t)}function Fo(e){fe(No),fe(Eo),Do===e&&(Do=null)}function Io(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mm(n)||hm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lo=0,Ro=null,zo=null,Bo=null,Vo=!1,Ho=!1,Uo=!1,Wo=0,Go=0,Ko=null,qo=0;function Jo(){throw Error(i(321))}function Yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,a){return Lo=a,Ro=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?mc:hc,Uo=!1,a=n(r,i),Uo=!1,Ho&&(a=Qo(t,n,r,i)),Zo(e),a}function Zo(e){V.H=pc;var t=zo!==null&&zo.next!==null;if(Lo=0,Bo=zo=Ro=null,Vo=!1,Go=0,Ko=null,t)throw Error(i(300));e===null||Mc||(e=e.dependencies,e!==null&&va(e)&&(Mc=!0))}function Qo(e,t,n,r){Ro=e;var a=0;do{if(Ho&&(Ko=null),Go=0,Ho=!1,25<=a)throw Error(i(301));if(a+=1,Bo=zo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=gc,o=t(n,r)}while(Ho);return o}function $o(){var e=V.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(zo===null?null:zo.memoizedState)!==e&&(Ro.flags|=1024),t}function es(){var e=Wo!==0;return Wo=0,e}function ts(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ns(e){if(Vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vo=!1}Lo=0,Bo=zo=Ro=null,Ho=!1,Go=Wo=0,Ko=null}function rs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e,Bo}function is(){if(zo===null){var e=Ro.alternate;e=e===null?null:e.memoizedState}else e=zo.next;var t=Bo===null?Ro.memoizedState:Bo.next;if(t!==null)Bo=t,zo=e;else{if(e===null)throw Ro.alternate===null?Error(i(467)):Error(i(310));zo=e,e={memoizedState:zo.memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},Bo===null?Ro.memoizedState=Bo=e:Bo=Bo.next=e}return Bo}function as(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Go;return Go+=1,Ko===null&&(Ko=[]),e=Ya(Ko,e,t),t=Ro,(Bo===null?t.memoizedState:Bo.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?mc:hc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===ne)return;if(e.$$typeof===M)return ba(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=Ro.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ro.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=as(),Ro.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=z;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(is(),zo,e)}function fs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Lo&f)===f:(id&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Pa&&(d=!0);else if((Lo&p)===p){u=u.next,p===Pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Ro.lanes|=p,fd|=p;f=u.action,Uo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Ro.lanes|=f,fd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fr(o,e.memoizedState)&&(Mc=!0,d&&(n=Fa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ps(e){var t=is(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(Mc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=Ro,a=is(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Fr((zo||a).memoizedState,n);if(s&&(a.memoizedState=n,Mc=!0),a=a.queue,zs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Bo!==null&&!!(Bo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Lo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ro.updateQueue,t===null?(t=as(),Ro.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fr(e,n)}catch{return!0}}function ys(e){var t=xi(e,2);t!==null&&Bd(t,e,2)}function bs(e){var t=rs();if(typeof e==`function`){var n=e;if(e=n(),Uo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,zo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(uc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};V.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=V.T,o={};o.types=a===null?null:a.types,V.T=o;try{var s=n(i,r),c=V.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),V.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if($i){var n=nd.formState;if(n!==null){a:{var r=Ro;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;)if(!a||(i=_m(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=_m(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=rs(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=sc.bind(null,Ro,r),r.dispatch=n,r=bs(!1),a=lc.bind(null,Ro,!1,r.queue),r=rs(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,Ro,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(is(),zo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===Wa?Ka:e}else r=t;t=is();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ro.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=is(),n=zo;if(n!==null)return js(t,n,e);is(),t=t.memoizedState,n=is();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ro.updateQueue,t===null&&(t=as(),Ro.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return is().memoizedState}function Is(e,t,n,r){var i=rs();Ro.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=is();r=r===void 0?null:r;var a=i.memoizedState.inst;zo!==null&&r!==null&&Yo(r,zo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(Ro.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){Ro.flags|=4;var t=Ro.updateQueue;if(t===null)t=as(),Ro.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=is().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=is();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yo(t,r[1]))return r[0];if(r=e(),Uo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||Lo&1073741824&&!(id&261930)?e.memoizedState=t:(e.memoizedState=n,e=Rd(),Ro.lanes|=e,fd|=e,n)}function Xs(e,t,n,r){return Fr(n,t)?n:xo.current===null?!(Lo&106)||Lo&1073741824&&!(id&261930)?(Mc=!0,e.memoizedState=n):(e=Rd(),Ro.lanes|=e,fd|=e,t):(e=Ys(e,n,r),Fr(e,t)||(Mc=!0),e)}function Zs(e,t,n,r,i){var a=se.p;se.p=a!==0&&8>a?a:8;var o=V.T,s={};s.types=o===null?null:o.types,V.T=s,lc(e,!1,t,n);try{var c=i(),l=V.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,Ra(c,r),Ld(e)):cc(e,t,r,Ld(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},Ld())}finally{se.p=a,o!==null&&s.types!==null&&(o.types=s.types),V.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ec(e).queue;Zs(e,a,t,ce,n===null?Qs:function(){return tc(e),n(r)})}function ec(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},Ld())}function nc(){return ba(hh)}function rc(){return is().memoizedState}function ic(){return is().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ld();e=fo(n);var r=po(t,e,n);r!==null&&(Bd(r,t,n),mo(r,t,n)),t={cache:Da()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=Ld();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=bi(e,t,n,r),n!==null&&(Bd(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,Ld())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fr(s,o))return yi(e,t,i,0),nd===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Bd(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:Vf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Bd(t,e,2)}function uc(e){var t=e.alternate;return e===Ro||t!==null&&t===Ro}function dc(e,t){Ho=Vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var pc={readContext:ba,use:cs,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo,useEffectEvent:Jo},mc={readContext:ba,use:cs,useCallback:function(e,t){return rs().memoizedState=[e,t===void 0?null:t],e},useContext:ba,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=rs();t=t===void 0?null:t;var r=e();if(Uo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=rs();if(n!==void 0){var i=n(t);if(Uo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oc.bind(null,Ro,e),[r.memoizedState,e]},useRef:function(e){var t=rs();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=sc.bind(null,Ro,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(rs(),e,t)},useTransition:function(){var e=bs(!1);return e=Zs.bind(null,Ro,e.queue,!0,!1),rs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ro,a=rs();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));id&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=rs(),t=nd.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Wo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=qo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=rs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,Ro,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return rs().memoizedState=ac.bind(null,Ro)},useEffectEvent:function(e){var t=rs(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:ba,use:cs,useCallback:qs,useContext:ba,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(is(),zo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=is().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(is(),zo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:ba,use:cs,useCallback:qs,useContext:ba,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=is();return zo===null?Ys(n,e,t):Xs(n,zo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=is().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:rc,useHostTransitionStatus:nc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=is();return zo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,zo,e,t)},useMemoCache:ls,useCacheRefresh:ic,useEffectEvent:Vs};function _c(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=fo(r);i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Bd(t,e,r),mo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=fo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=po(e,i,r),t!==null&&(Bd(t,e,r),mo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ld(),r=fo(n);r.tag=2,t!=null&&(r.callback=t),t=po(e,r,n),t!==null&&(Bd(t,e,n),mo(t,e,n))}};function yc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ir(n,r)||!Ir(i,a):!0}function bc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function xc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Sc(e){mi(e)}function Cc(e){console.error(e)}function wc(e){mi(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){return n=fo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=fo(e),e.tag=3,e}function kc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(wd===null?wd=new Set([this]):wd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&_a(t,n,a,!0),n=Eo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Do===null?Qd():n.alternate===null&&dd===0&&(dd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),xf(e,r,a)),!1;case 22:return n.flags|=65536,r===qa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),xf(e,r,a)),!1}throw Error(i(435,n.tag))}return xf(e,r,a),Qd(),!1}if($i)return t=Eo.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=Dc(e.stateNode,r,a),ho(e,a),dd!==4&&(dd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),_d===null?_d=[o]:_d.push(o),dd!==4&&(dd=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Dc(n.stateNode,r,e),ho(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(wd===null||!wd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Oc(a),kc(a,e,n,r),ho(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(i(461)),Mc=!1;function Nc(e,t,n,r){t.child=e===null?so(t,null,n,r):oo(t,e.child,n,r)}function Pc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ya(t),r=Xo(e,t,n,o,a,i),s=es(),e!==null&&!Mc?(ts(e,t,i),cl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ir:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ir(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ha(t,a===null?null:a.cachePool),a===null?wo():Co(t,a),Ao(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ha(t,null),wo(),jo()):(Ha(t,a.cachePool),Co(t,a),jo(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Va();return a=a===null?null:{parent:Ea._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ha(t,null),wo(),Ao(t),e!==null&&_a(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return oo(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(ko(t),(e=Qi)?(e=pm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ko(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Mc||_a(e,t,n,!1),a=(n&e.childLanes)!==0,Mc||a){if(xo.current===null){if(r=nd,r!==null&&(s=dt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Bd(r,e,s),jc;Qd()}t=Vc(e,t,n)}else e=o.treeContext,Qi=_m(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Wc(e,t,n,r,i){return ya(t),n=Xo(e,t,n,r,void 0,i),r=es(),e!==null&&!Mc?(ts(e,t,i),cl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return ya(t),t.updateQueue=null,n=Qo(t,r,n,i),Zo(e),r=es(),e!==null&&!Mc?(ts(e,t,a),cl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(ya(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ba(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},lo(t),o=n.contextType,a.context=typeof o==`object`&&o?ba(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&vc.enqueueReplaceState(a,a.state,null),vo(t,r,a,i),_o(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ba(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&bc(t,a,r,o),co=!1;var f=t.memoizedState;a.state=f,vo(t,r,a,i),_o(),l=t.memoizedState,s||f!==l||co?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=co||yc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,uo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ba(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&bc(t,a,r,c),co=!1,f=t.memoizedState,a.state=f,vo(t,r,a,i),_o();var p=t.memoizedState;o!==d||f!==p||co||e!==null&&e.dependencies!==null&&va(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=co||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&va(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Uc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=oo(t,e.child,null,i),t.child=oo(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return sa(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ua()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(No.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Oo(t):jo(),(e=Qi)?(e=pm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=hm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(jo(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(Oo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(jo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ua():(s=Ea._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(Oo(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function el(e,t,n){return oo(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Oo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(jo(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,oo(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(jo(),t.child=e.child,t.flags|=128,null);if(Oo(t),hm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),el(e,t,c)}if(Mc||_a(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(xo.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=dt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Bd(r,e,a),jc;return mm(o)||Qd(),el(e,t,c)}return mm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=_m(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ha(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Io(n)===null&&(t=e),e=e.sibling}return t}function il(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function al(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=No.current;if(t.flags&128)return Po(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Po(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Io(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return pa(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(_a(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&va(e)))}function ul(e,t,n){switch(t.tag){case 3:ve(t,t.stateNode.containerInfo),pa(t,Ea,e.memoizedState.cache),sa();break;case 27:case 5:be(t);break;case 4:ve(t,t.stateNode.containerInfo);break;case 10:pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ko(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Oo(t),t.flags|=128,null;r=_a(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(Oo(t),e=cl(e,t,n),e===null?null:e.sibling)}Oo(t);break;case 19:if(t.flags&128)return ol(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(_a(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Po(t,No.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:pa(t,Ea,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!ll(e,n)&&!(t.flags&128))return Mc=!1,ul(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Xa(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=xc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===N){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===I){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===M){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=ae(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=xc(r,t.pendingProps),Kc(e,t,r,a,n);case 3:a:{if(ve(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,uo(e,t),vo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,pa(t,Ea,r),r!==o.cache&&ga(t,[Ea],n,!0),_o(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=qc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=qc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=_m(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=so(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Vm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=bp(t.type,t.pendingProps,ge.current,t)):t.memoizedState=Vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&$i&&(r=t.stateNode=Cm(t.type,t.pendingProps,ge.current),Zi=t,ta=!0,a=Qi,Ap(t.type)?(vm=a,Qi=_m(r.firstChild)):Qi=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=dm(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=_m(r.firstChild),ta=!1,a=!0)),a||ra(t)),be(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,xp(a,o)?r=null:s!==null&&xp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Xo(e,t,$o,null,null,n),hh._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=fm(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Zc(e,t,n);case 4:return ve(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,ya(t),a=ba(a),r=r(a),t.flags|=1,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return ya(t),r=ba(Ea),e===null?(a=Va(),a===null&&(a=nd,o=Da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},lo(t),pa(t,Ea,a)):((e.lanes&n)!==0&&(uo(e,t),vo(t,null,null,n),_o()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,pa(t,Ea,r),r!==a.cache&&ga(t,[Ea],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pa(t,Ea,r))),Nc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?nh(t,r):nh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Yd())e.flags|=8192;else throw Za=qa,Ga}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rh(t)){if(Yd())e.flags|=8192;else throw Za=qa,Ga}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:at(),e.lanes|=t,gd|=t)}function gl(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function _l(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vl(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ma(Ea),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(xe(t),n=ge.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=me.current,oa(t)?ia(t,e):(e=Cm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(xe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=me.current,oa(t))ia(t,o);else{var s=_p(ge.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[_t]=t,o[vt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(up(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||sp(e.nodeValue,n)),e||ra(t,!0)}else e=_p(e).createTextNode(r),e[_t]=t,t.stateNode=e}return _l(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[_t]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mo(t),t):(Mo(t),null);if(t.flags&128)throw Error(i(558))}return _l(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[_t]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Mo(t),t):(Mo(t),null)}return Mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),hl(t,t.updateQueue),_l(t),null);case 4:return ye(),e===null&&Zf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return ma(t.type),_l(t),null;case 19:if(Fo(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(dd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Io(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return Po(t,No.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>Sd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Io(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return _l(t),null}else 2*Fe()-r.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,o=No.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?Po(t,o):(n=o,pe(Eo,t),pe(No,n),Do===null&&(Do=t)),$i&&Ki(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Mo(t),To(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(Ba),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ma(Ea),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(Ea),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ye(),null;case 10:return ma(t.type),null;case 22:case 23:return Mo(t),To(),e!==null&&fe(Ba),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(Ea),null;case 25:return null;default:return null}}function bl(e,t){switch(Yi(t),t.tag){case 3:ma(Ea),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:Fo(t);break;case 10:ma(t.type);break;case 22:case 23:Mo(t),To(),e!==null&&fe(Ba);break;case 24:ma(Ea)}}function xl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){bf(t,t.return,e)}}function Sl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){bf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){bf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{bo(t,n)}catch(t){bf(e,e.return,t)}}}function wl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){bf(e,t,n)}}function Tl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Hp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Up(e);f(e.child,!1,om,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){bf(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){bf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){bf(e,t,n)}else n.current=null}}function Dl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)cm(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&cm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&lm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){bf(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;fp(r,e.type,n,t),r[vt]=t}catch(t){bf(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ap(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ap(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pn)),Dl(e,r),Bt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),Bt=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);up(t,r,n),t[_t]=e,t[vt]=n}catch(t){bf(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ip(o);r.push(s),s.view&&(a=!0)}else a||Ip(o).view&&(a=!0);zl=!0,Np(o,Wl===0?t:t+`_`+Wl,n),Wl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Pp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||ql(e.child,t),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||zd(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,zd(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?zd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),zd(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Ip(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Np(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Lp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||zd(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,hp=wh,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(gp={focusedElem:e,selectionRange:r},wh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=xc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){bf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)um(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:um(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Gl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){bf(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){bf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{bo(e,t)}catch(e){bf(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wf.bind(null,n),gm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){bf(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Bt=!0}catch(t){bf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Mp(s,!0):Mp(e.stateNode,!1)}catch(t){bf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Ap(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),wm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),Bt=!0}catch(e){bf(n,t,e)}else try{xu.removeChild(n.stateNode),Bt=!0}catch(e){bf(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,jp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Xh(e)):jp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xh(e)}catch(e){bf(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xh(e)}catch(e){bf(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Tf.bind(null,e,t);t.then(r,r)}})}function ku(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Ap(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(iu)e.stateNode=bp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ct]||r[_t]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),up(r,t,n),r[_t]=e,At(r),t=r;break a;case`link`:if(o=$m(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),up(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=$m(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),up(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[_t]=e,At(r),t=r}e.stateNode=t}}else iu||eh(o,e.type,e.stateNode)}else e.stateNode=Jm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||eh(o,e.type,e.stateNode):Jm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{an(t,``),Bt=!0}catch(t){bf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Bt=!0}catch(t){bf(e,e.return,t)}}break;case 3:if(Bt=!1,Qm=null,o=Au,Au=Om(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Xh(t.containerInfo)}catch(t){bf(e,e.return,t)}su&&(su=!1,Nu(e)),Bt=!1;break;case 4:a=ou,ou=iu,r=Vt(),o=Au,Au=Om(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,Bt&&du&&(fu=!0),Bt=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(bd=Fe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Vt(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&pi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&Bt&&(e.flags|=4),du=o,Bt=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(an(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){bf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,wh=!0,t.reset(),wh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Pp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(zd(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&wm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){bf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)yo(l[i],c)}catch(e){bf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||eh(Om(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Oa(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oa(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Oa(a)));break;case 12:if(a&2048){Vu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){bf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ah(n,e)):oh(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&ah(n,e));break;case 3:case 4:var r=Au;Au=Om(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Oa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=ba(Ea),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ba(Ea).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,rd=null,id=0,ad=0,od=null,sd=!1,cd=!1,ld=!1,ud=0,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=null,vd=null,yd=!1,bd=0,xd=0,Sd=1/0,Cd=null,wd=null,Td=0,Ed=null,Dd=null,Od=0,kd=0,Ad=null,jd=null,Md=null,Nd=null,Pd=null,Fd=0,Id=null;function Ld(){return td&2&&id!==0?id&-id:V.T===null?mt():Vf()}function Rd(){if(hd===0){if(!(id&536870912)||$i){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),hd=e}else hd=536870912}return e=Eo.current,e!==null&&(e.flags|=32),hd}function zd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Hp(di(e.memoizedProps,n))),Nd===null&&(Nd=[]),Nd.push(t.bind(null,r))}}function Bd(e,t,n){(e===nd&&(ad===2||ad===9)||e.cancelPendingCommit!==null)&&(qd(e,0),Wd(e,id,hd,!1)),st(e,n),td&2&&e===nd||(e===nd&&(!(td&2)&&(pd|=n),dd===4&&Wd(e,id,hd,!1)),Nf(e))}function Vd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||nt(e,t),a=r?tf(e,t):$d(e,t,!0),o=r;do{if(a===0){cd&&!r&&Wd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ud(n))a=$d(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=_d;var l=c.current.memoizedState.isDehydrated;if(l&&(qd(c,s).flags|=256),s=$d(c,s,!1),s!==2&&s!==6){if(ld&&!l){c.errorRecoveryDisabledLanes|=o,pd|=o,a=4;break a}o=vd,vd=a,o!==null&&(vd===null?vd=o:vd.push.apply(vd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){qd(e,0),Wd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Wd(r,t,hd,!sd);break a;case 2:vd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=bd+300-Fe(),10<a)){if(Wd(r,t,hd,!sd),tt(r,0,!0)!==0)break a;Od=t,r.timeoutHandle=wp(Hd.bind(null,r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,`Throttled`,-0,0),a);break a}Hd(r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,null,-0,0)}break}}while(1);Nf(e)}function Hd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:pn},Bl=null,qu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=uh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?bd-Fe():(a&4194048)===a?xd-Fe():0,m=ch(d,m),m!==null)?(Od=a,e.cancelPendingCommit=m(lf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Wd(e,a,o,!l)):lf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ud(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wd(e,t,n,r){t=rt(e,t),t&=~md,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&lt(e,n,t)}function Gd(){return td&6?!0:(Pf(0,!1),!1)}function Kd(){if(rd!==null){if(ad===0)var e=rd.return;else e=rd,fa=da=null,ns(e),eo=null,to=0,e=rd;for(;e!==null;)bl(e.alternate,e),e=e.return;rd=null}}function qd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Tp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Od=0,Kd(),nd=e,rd=n=Oi(e.current,null),id=t,ad=0,od=null,sd=!1,cd=nt(e,t),ld=!1,gd=hd=md=pd=fd=dd=0,vd=_d=null,yd=!1,ud=rt(e,t),vi(),n}function Jd(e,t){Ro=null,V.H=pc,t===Wa||t===Ka?(t=Qa(),ad=3):t===Ga?(t=Qa(),ad=4):ad=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,od=t,rd===null&&(dd=1,Tc(e,Ii(t,e.current)))}function Yd(){var e=Eo.current;return e===null?!0:(id&4194048)===id?Do===null:(id&62914560)===id||id&536870912?e===Do:!1}function Xd(){var e=V.H;return V.H=pc,e===null?pc:e}function Zd(){var e=V.A;return V.A=$u,e}function Qd(){dd=4,sd||(id&4194048)!==id&&Eo.current!==null||(cd=!0),!(fd&134217727)&&!(pd&134217727)||nd===null||Wd(nd,id,hd,!1)}function $d(e,t,n){var r=td;td|=2;var i=Xd(),a=Zd();(nd!==e||id!==t)&&(Cd=null,qd(e,t)),t=!1;var o=dd;a:do try{if(ad!==0&&rd!==null){var s=rd,c=od;switch(ad){case 8:Kd(),o=6;break a;case 3:case 2:case 9:case 6:Eo.current===null&&(t=!0);var l=ad;if(ad=0,od=null,of(e,s,c,l),n&&cd){o=0;break a}break;default:l=ad,ad=0,od=null,of(e,s,c,l)}}ef(),o=dd;break}catch(t){Jd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,td=r,V.H=i,V.A=a,rd===null&&(nd=null,id=0,vi()),o}function ef(){for(;rd!==null;)rf(rd)}function tf(e,t){var n=td;td|=2;var r=Xd(),a=Zd();nd!==e||id!==t?(Cd=null,Sd=Fe()+500,qd(e,t)):cd=nt(e,t);a:do try{if(ad!==0&&rd!==null){t=rd;var o=od;b:switch(ad){case 1:ad=0,od=null,of(e,t,o,1);break;case 2:case 9:if(Ja(o)){ad=0,od=null,af(t);break}t=function(){ad!==2&&ad!==9||nd!==e||(ad=7),Nf(e)},o.then(t,t);break a;case 3:ad=7;break a;case 4:ad=5;break a;case 7:Ja(o)?(ad=0,od=null,af(t)):(ad=0,od=null,of(e,t,o,7));break;case 5:var s=null;switch(rd.tag){case 26:s=rd.memoizedState;case 5:case 27:var c=rd;if(s?rh(s):c.stateNode.complete){ad=0,od=null;var l=c.sibling;if(l!==null)rd=l;else{var u=c.return;u===null?rd=null:(rd=u,sf(u))}break b}}ad=0,od=null,of(e,t,o,5);break;case 6:ad=0,od=null,of(e,t,o,6);break;case 8:Kd(),dd=6;break a;default:throw Error(i(462))}}nf();break}catch(t){Jd(e,t)}while(1);return fa=da=null,V.H=r,V.A=a,td=n,rd===null?(nd=null,id=0,vi(),dd):0}function nf(){for(;rd!==null&&!Ne();)rf(rd)}function rf(e){var t=dl(e.alternate,e,ud);e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,id);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,id);break;case 5:ns(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:bl(n,t),t=rd=ki(t,ud),t=dl(n,t,ud)}e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function of(e,t,n,r){fa=da=null,ns(t),eo=null,to=0;var i=t.return;try{if(Ac(e,i,t,n,id)){dd=1,Tc(e,Ii(n,e.current)),rd=null;return}}catch(t){if(i!==null)throw rd=i,t;dd=1,Tc(e,Ii(n,e.current)),rd=null;return}t.flags&32768?($i||r===1?e=!0:cd||id&536870912?e=!1:(sd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Eo.current,r!==null&&r.tag===13&&(r.flags|=16384))),cf(t,e)):sf(t)}function sf(e){var t=e;do{if(t.flags&32768){cf(t,sd);return}e=t.return;var n=vl(t.alternate,t,ud);if(n!==null){rd=n;return}if(t=t.sibling,t!==null){rd=t;return}rd=t=e}while(t!==null);dd===0&&(dd=5)}function cf(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,rd=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){rd=e;return}rd=e=n}while(e!==null);dd=6,rd=null}function lf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do _f();while(Td!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(rd=nd=null,id=0),Dd=t,Ed=e,Od=n,Ad=a,jd=r,uf(e,t,n,s,c,l,f)}}function uf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(kd=s,s|=_i,ct(e,n,s,r,i,a),Nd=null,(n&335544064)===n?(Pd=ja(e),r=10262):(Pd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Ef(ze,function(){return vf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=V.T,V.T=null,i=se.p,se.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,se.p=i,V.T=r}}Td=1,zl?Md=Bp(o,e.containerInfo,Pd,pf,mf,ff,hf,vf,df,null,null):(pf(),mf(),hf())}function df(e){if(Td!==0){var t=Ed.onRecoverableError;t(e,{componentStack:null})}}function ff(){Td===3&&(Td=0,Fu(Dd,Ed),Td=4)}function pf(){if(Td===1){Td=0;var e=Ed,t=Dd,n=Od,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=V.T,V.T=null;var i=se.p;se.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=gp;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=zr(s,h),v=zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}wh=!!hp,gp=hp=null}finally{td=a,se.p=i,V.T=r}}e.current=t,Td=2}}function mf(){if(Td===2){Td=0;var e=Ed,t=Dd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=V.T,V.T=null;var r=se.p;se.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,se.p=r,V.T=n}}Td=3}}function hf(){if(Td===4||Td===3){Td=0;var e=Md;Md=null,Pe();var t=Ed,n=Dd,r=Od,i=jd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Td=5:(Td=0,Dd=Ed=null,gf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(wd=null),pt(r),n=n.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=V.T,a=se.p,se.p=2,V.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{V.T=n,se.p=a}}if(i=Nd,o=Pd,Pd=null,i!==null&&(Nd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Od&3&&_f(),Nf(t),a=t.pendingLanes,r&261930&&a&42?t===Id?Fd++:(Fd=0,Id=t):(Fd=0,Id=null),Pf(0,!1)}}function gf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oa(t)))}function _f(){return Md!==null&&(Md.skipTransition(),Md=null),pf(),mf(),hf(),vf()}function vf(){if(Td!==5)return!1;var e=Ed,t=kd;kd=0;var n=pt(Od),r=V.T,a=se.p;try{se.p=32>n?32:n,V.T=null,n=Ad,Ad=null;var o=Ed,s=Od;if(Td=0,Dd=Ed=null,Od=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Pf(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{se.p=a,V.T=r,gf(e,t)}}function yf(e,t,n){t=Ii(n,t),t=Dc(e.stateNode,t,2),e=po(e,t,2),e!==null&&(st(e,2),Nf(e))}function bf(e,t,n){if(e.tag===3)yf(e,e,n);else for(;t!==null;){if(t.tag===3){yf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(wd===null||!wd.has(r))){e=Ii(n,e),n=Oc(2),r=po(t,n,2),r!==null&&(kc(n,r,t,e),st(r,2),Nf(r));break}}t=t.return}}function xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ld=!0,i.add(n),e=Sf.bind(null,e,t,n),t.then(e,e))}function Sf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(id&n)===n&&(dd===4||dd===3&&(id&62914560)===id&&300>Fe()-bd?td&2?md|=n:qd(e,0):md|=n,gd===id&&(gd=0)),Nf(e)}function Cf(e,t){t===0&&(t=at()),e=xi(e,t),e!==null&&(st(e,t),Nf(e))}function wf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cf(e,n)}function Tf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Cf(e,n)}function Ef(e,t){return je(e,t)}var Df=null,Of=null,kf=!1,Af=!1,jf=!1,Mf=0;function Nf(e){e!==Of&&e.next===null&&(Of===null?Df=Of=e:Of=Of.next=e),Af=!0,kf||(kf=!0,Bf())}function Pf(e,t){if(!jf&&Af){jf=!0;do for(var n=!1,r=Df;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,zf(r,a))}else a=id,a=tt(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,zf(r,a))}r=r.next}while(n);jf=!1}}function Ff(){If()}function If(){Af=kf=!1;var e=0;Mf!==0&&Cp()&&(e=Mf);for(var t=Fe(),n=null,r=Df;r!==null;){var i=r.next,a=Lf(r,t);a===0?(r.next=null,n===null?Df=i:n.next=i,i===null&&(Of=n)):(n=r,(e!==0||a&3)&&(Af=!0)),r=i}Td!==0&&Td!==5||Pf(e,!1),Mf!==0&&(Mf=0)}function Lf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=it(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=id,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ad===2||ad===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),pt(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=Rf.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function Rf(e,t){if(Td!==0&&Td!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_f()&&e.callbackNode!==n)return null;var r=id;return r=tt(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Vd(e,r,t),Lf(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Rf.bind(null,e):null)}function zf(e,t){if(_f())return null;Vd(e,t,!0)}function Bf(){Op(function(){td&6?je(Le,Ff):If()})}function Vf(){if(Mf===0){var e=Pa;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),Mf=e}return Mf}function Hf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:fn(e)}function Uf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Hf((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?Hf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Pn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Mf!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var G=0;G<ci.length;G++){var Wf=ci[G];li(Wf.toLowerCase(),`on`+(Wf[0].toUpperCase()+Wf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),Ft(`onMouseEnter`,[`mouseout`,`mouseover`]),Ft(`onMouseLeave`,[`mouseout`,`mouseover`]),Ft(`onPointerEnter`,[`pointerout`,`pointerover`]),Ft(`onPointerLeave`,[`pointerout`,`pointerover`]),Pt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Pt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Pt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Pt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Pt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Gf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}}}}function Jf(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(Qf(t,e,2,!1),n.add(r))}function Yf(e,t,n){var r=0;t&&(r|=4),Qf(n,e,r,t)}var Xf=`_reactListening`+Math.random().toString(36).slice(2);function Zf(e){if(!e[Xf]){e[Xf]=!0,Mt.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Yf(t,!1,e),Yf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xf]||(t[Xf]=!0,Yf(`selectionchange`,!1,t))}}function Qf(e,t,n,r){switch(jh(t)){case 2:var i=Th;break;case 8:i=Eh;break;default:i=Dh}n=i.bind(null,t,n,e),i=void 0,!Cn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function $f(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Et(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}bn(function(){var r=a,i=hn(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=Pn,u=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:l=Zn;break;case`focusin`:u=`focus`,l=Hn;break;case`focusout`:u=`blur`,l=Hn;break;case`beforeblur`:case`afterblur`:l=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=er;break;case ei:case ti:case ni:l=Un;break;case oi:l=tr;break;case`scroll`:case`scrollend`:l=In;break;case`wheel`:l=nr;break;case`copy`:case`cut`:case`paste`:l=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Qn;break;case`submit`:l=$n;break;case`toggle`:case`beforetoggle`:l=rr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=xn(m,p),g!=null&&d.push(ep(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==mn&&(u=n.relatedTarget||n.fromElement)&&(Et(u)||u[yt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Et(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Bn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Qn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Ot(c),h=l==null?u:Ot(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Et(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,np):null,c!==null&&rp(s,u,c,d,!1),l!==null&&f!==null&&rp(s,f,l,d,!0)))}a:{if(c=r?Ot(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Cr;else if(_r(c)){if(wr)_=Nr;else{_=jr;var v=Ar}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&ln(r.elementType)&&(_=Cr):_=Mr;if(_&&=_(e,r)){vr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Ot(r):window,e){case`focusin`:(_r(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(ar)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else pr?dr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(cr&&n.locale!==`ko`&&(pr||b!==`onCompositionStart`?b===`onCompositionEnd`&&pr&&(y=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,pr=!0)),v=tp(r,b),0<v.length&&(b=new Gn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=fr(n),y!==null&&(b.data=y)))),(y=sr?mr(e,n):hr(e,n))&&(b=tp(r,`onBeforeInput`),0<b.length&&(v=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Uf(s,e,r,n,i)}qf(s,t)})}function ep(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tp(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=xn(e,n),i!=null&&r.unshift(ep(e,i,a)),i=xn(e,t),i!=null&&r.push(ep(e,i,a))),e.tag===3)return r;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=xn(n,a),l!=null&&o.unshift(ep(n,l,c))):i||(l=xn(n,a),l!=null&&o.push(ep(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,ap=/\u0000|\uFFFD/g;function op(e){return(typeof e==`string`?e:``+e).replace(ip,`
+`).replace(ap,``)}function sp(e,t){return t=op(t),op(e)===t}function cp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||an(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&an(e,``+r);else return;break;case`className`:Ut(e,`class`,r);break;case`tabIndex`:Ut(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ut(e,n,r);break;case`style`:cn(e,r,o);return;case`data`:if(t!==`object`){Ut(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&cp(e,t,`name`,a.name,a,null),cp(e,t,`formEncType`,a.formEncType,a,null),cp(e,t,`formMethod`,a.formMethod,a,null),cp(e,t,`formTarget`,a.formTarget,a,null)):(cp(e,t,`encType`,a.encType,a,null),cp(e,t,`method`,a.method,a,null),cp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=fn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=pn);return;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=fn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Ht(e,`popover`,r);break;case`xlinkActuate`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ht(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=un.get(n)||n,Ht(e,n,r);else return}Bt=!0}function lp(e,t,n,r,a,o){switch(n){case`style`:cn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)an(e,r);else if(typeof r==`number`||typeof r==`bigint`)an(e,``+r);else return;break;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=pn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Nt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[vt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Bt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ht(e,n,r)}return}Bt=!0}function up(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Jf(`error`,e),Jf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:cp(e,t,o,s,n,null)}}a&&cp(e,t,`srcSet`,n.srcSet,n,null),r&&cp(e,t,`src`,n.src,n,null);return;case`input`:Jf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:cp(e,t,r,d,n,null)}}$t(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Jf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:cp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&tn(e,!!r,n,!0):tn(e,!!r,t,!1);return;case`textarea`:for(s in Jf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:cp(e,t,s,c,n,null)}rn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:cp(e,t,l,r,n,null)}return;case`dialog`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Jf(`cancel`,e),Jf(`close`,e);break;case`iframe`:case`object`:Jf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)Jf(Gf[r],e);break;case`image`:Jf(`error`,e),Jf(`load`,e);break;case`details`:Jf(`toggle`,e);break;case`embed`:case`source`:case`link`:Jf(`error`,e),Jf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:cp(e,t,u,r,n,null)}return;default:if(ln(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&lp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&cp(e,t,c,r,n,null))}var dp={};function fp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||cp(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Bt=!0),o=m;break;case`name`:m!==f&&(Bt=!0),a=m;break;case`checked`:m!==f&&(Bt=!0),u=m;break;case`defaultChecked`:m!==f&&(Bt=!0),d=m;break;case`value`:m!==f&&(Bt=!0),s=m;break;case`defaultValue`:m!==f&&(Bt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&cp(e,t,p,m,r,f)}}Qt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||cp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Bt=!0),p=o;break;case`defaultValue`:o!==l&&(Bt=!0),c=o;break;case`multiple`:o!==l&&(Bt=!0),s=o;default:o!==l&&cp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?tn(e,!!n,n?[]:``,!1):tn(e,!!n,t,!0)):tn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:cp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Bt=!0),p=a;break;case`defaultValue`:a!==o&&(Bt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&cp(e,t,s,a,r,o)}nn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:cp(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Bt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:cp(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&cp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:cp(e,t,u,p,r,m)}return;default:if(ln(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&lp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||lp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&cp(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||cp(e,t,f,p,r,m)}function pp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function mp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&pp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&pp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var hp=null,gp=null;function _p(e){return e.nodeType===9?e:e.ownerDocument}function vp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function yp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function bp(e,t,n,r){return n=_p(n).createElement(e),n[_t]=r,n[vt]=t,up(n,e,t),At(n),n}function xp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sp=null;function Cp(){var e=window.event;return e&&e.type===`popstate`?e!==Sp&&(Sp=e,!0):(Sp=null,!1)}var wp=typeof setTimeout==`function`?setTimeout:void 0,Tp=typeof clearTimeout==`function`?clearTimeout:void 0,Ep=typeof Promise==`function`?Promise:void 0,Dp=typeof requestAnimationFrame==`function`?requestAnimationFrame:wp,Op=typeof queueMicrotask==`function`?queueMicrotask:Ep===void 0?wp:function(e){return Ep.resolve(null).then(e).catch(kp)};function kp(e){setTimeout(function(){throw e})}function Ap(e){return e===`head`}function jp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Xh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tm(e.ownerDocument.body)}n=i}while(n);Xh(t)}function Mp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Np(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Pp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Fp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ip(e){return Fp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Lp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Fp(t,n,e)}function Rp(e){return e.documentElement.clientHeight}function zp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Bp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Rp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=ih(f),u>sh){s.length=o;break}f=new Promise(zp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Vp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Vp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Vp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Vp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hp(e){return{name:e,group:new Vp(`group`,e),imagePair:new Vp(`image-pair`,e),old:new Vp(`old`,e),new:new Vp(`new`,e)}}function Up(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Up.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Jp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Kp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Wp,e,s,r)}this._eventListeners=a}};function Wp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Up.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Jp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Kp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Gp,e,n,i),r.splice(t,1),a!==null&&a()}};function Gp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function Kp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Jp(e,t,n,r){if(e.length===0)return-1;r=qp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&qp(a.optionsOrUseCapture)===r)return i}return-1}Up.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Kp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Kp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Up.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=_(e),xm(e,t))}Up.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Xp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yp(t[n],e);n--);};function Xp(e,t){return t.push(e),!1}Up.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=_p(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Zp,e,void 0,void 0))};function Zp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Up.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Qp,e,void 0,void 0)};function Qp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Up.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,$p,e,void 0,void 0);for(var n=t=0;n<em.length;n++){var r=em[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):em[t++]=r}em.length=t}};function $p(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var em=[],tm=!1;function nm(e,t,n){em.push({fragmentInstance:e,observer:t,instance:n}),tm||(tm=!0,Sm(function(){tm=!1;var e=em;em=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Up.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,rm,e,void 0,void 0),e};function rm(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Up.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Up.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Xp,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||im(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function im(e,t,n,r,i){var a=Et(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function am(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Up.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Xp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),am(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),am(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function om(e,t){return e=_(e),sm(e,t),!1}function sm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function cm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<em.length;i++){var a=em[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(em[r++]=a)}em.length=r,n.observe(e)}),sm(e,t))}function lm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?nm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function um(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:um(n),Tt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function dm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=_m(e.nextSibling),e===null)break}return null}function fm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_m(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_m(e.nextSibling),e===null))return null;return e}function mm(e){return e.data===`$?`||e.data===`$~`}function hm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function _m(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var vm=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _m(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function xm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function Sm(e){Dp(function(){Dp(function(t){return e(t)})})}function Cm(e,t,n){switch(t=_p(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function wm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&cp(e,t,r,null,dp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===pn&&(e.onclick=null),Tt(e)}function Tm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tt(e)}var Em=new Map,Dm=new Set;function Om(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var km=se.d;se.d={f:Am,r:jm,D:Pm,C:Fm,L:Im,m:Lm,X:zm,S:Rm,M:Bm};function Am(){var e=km.f(),t=Gd();return e||t}function jm(e){var t=Dt(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):km.r(e)}var Mm=typeof document>`u`?null:document;function Nm(e,t,n){var r=Mm;if(r&&typeof t==`string`&&t){var i=Zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Dm.has(i)||(Dm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),up(t,`link`,e),At(t),r.head.appendChild(t)))}}function Pm(e){km.D(e),Nm(`dns-prefetch`,e,null)}function Fm(e,t){km.C(e,t),Nm(`preconnect`,e,t)}function Im(e,t,n){km.L(e,t,n);var r=Mm;if(r&&e&&t){var i=`link[rel="preload"][as="`+Zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Zt(n.imageSizes)+`"]`)):i+=`[href="`+Zt(e)+`"]`;var a=i;switch(t){case`style`:a=Hm(e);break;case`script`:a=Km(e)}if(!(Em.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Em.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Um(a))||t===`script`&&r.querySelector(qm(a))))){var o=r.createElement(`link`);up(o,`link`,e),t===`style`&&(o[wt]=!0,o.onload=o.onerror=function(){jt(o)}),At(o),r.head.appendChild(o)}}}function Lm(e,t){km.m(e,t);var n=Mm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Zt(r)+`"][href="`+Zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Km(e)}if(!Em.has(a)&&(e=w({rel:`modulepreload`,href:e},t),Em.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(qm(a)))return}r=n.createElement(`link`),up(r,`link`,e),At(r),n.head.appendChild(r)}}}function Rm(e,t,n){km.S(e,t,n);var r=Mm;if(r&&e){var i=kt(r).hoistableStyles,a=Hm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Um(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Em.get(a))&&Xm(e,n);var c=o=r.createElement(`link`);At(c),up(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Ym(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function zm(e,t){km.X(e,t);var n=Mm;if(n&&e){var r=kt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=w({src:e,async:!0},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),At(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t){km.M(e,t);var n=Mm;if(n&&e){var r=kt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),At(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vm(e,t,n,r){var a=(a=ge.current)?Om(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Hm(n.href),t=kt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Hm(n.href);var o=kt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Um(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Em.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Em.set(e,o)),Gm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Km(n),t=kt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Hm(e){return`href="`+Zt(e)+`"`}function Um(e){return`link[rel="stylesheet"][`+e+`]`}function Wm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Gm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[wt]){r.loading=1;return}}else t=e.createElement(`link`),t[wt]=!0,t.onload=t.onerror=jt.bind(null,t),up(t,`link`,n),At(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Km(e){return`[src="`+Zt(e)+`"]`}function qm(e){return`script[async]`+e}function Jm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Zt(n.href)+`"]`);if(r)return t.instance=r,At(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),At(r),up(r,`style`,a),Ym(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Hm(n.href);var o=e.querySelector(Um(a));if(o)return t.state.loading|=4,t.instance=o,At(o),o;r=Wm(n),(a=Em.get(a))&&Xm(r,a),o=(e.ownerDocument||e).createElement(`link`),At(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),up(o,`link`,r),t.state.loading|=4,Ym(o,n.precedence,e),t.instance=o;case`script`:return o=Km(n.src),(a=e.querySelector(qm(o)))?(t.instance=a,At(a),a):(r=n,(a=Em.get(o))&&(r=w({},n),Zm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),At(a),up(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Ym(r,n.precedence,e));return t.instance}function Ym(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Qm=null;function $m(e,t,n){if(Qm===null){var r=new Map,i=Qm=new Map;i.set(n,r)}else i=Qm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Ct]||a[_t]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function eh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function th(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function nh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function rh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ih(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ah(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ih(t),e.suspenseyImages.push(t)),e=dh.bind(e),t.decode().then(e,e))}function oh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Hm(r.href),a=t.querySelector(Um(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=uh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,At(a);return}a=t.ownerDocument||t,r=Wm(r),(i=Em.get(i))&&Xm(r,i),a=a.createElement(`link`),At(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),up(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=uh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sh=0;function ch(e,t){return e.stylesheets&&e.count===0&&ph(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&sh===0&&(sh=62500*mp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ph(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function uh(){this.count--,lh(this)}function dh(){this.imgCount--,lh(this)}var fh=null;function ph(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fh=new Map,t.forEach(mh,e),fh=null,uh.call(e))}function mh(e,t){if(!(t.state.loading&4)){var n=fh.get(e);if(n)var r=n.get(null);else{n=new Map,fh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=uh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var hh={$$typeof:M,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function gh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function _h(e,t,n,r,i,a,o,s,c,l,u,d){return e=new gh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},lo(a),e}function vh(e){return e?(e=wi,e):wi}function yh(e,t,n,r,i,a){i=vh(i),r.context===null?r.context=i:r.pendingContext=i,r=fo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=po(e,r,t),n!==null&&(Bd(n,e,t),mo(n,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xh(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Bd(t,e,67108864),xh(e,67108864)}}function Ch(e){if(e.tag===13||e.tag===31){var t=Ld();t=ft(t);var n=xi(e,t);n!==null&&Bd(n,e,t),xh(e,t)}}var wh=!0;function Th(e,t,n,r){var i=V.T;V.T=null;var a=se.p;try{se.p=2,Dh(e,t,n,r)}finally{se.p=a,V.T=i}}function Eh(e,t,n,r){var i=V.T;V.T=null;var a=se.p;try{se.p=8,Dh(e,t,n,r)}finally{se.p=a,V.T=i}}function Dh(e,t,n,r){if(wh){var i=Oh(r);if(i===null)$f(e,t,r,kh,n),Bh(e,r);else if(Hh(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<zh.indexOf(e)){for(;i!==null;){var a=Dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}Nf(a),!(td&6)&&(Sd=Fe()+500,Pf(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Bd(s,a,2),Gd(),xh(a,2)}if(a=Oh(r),a===null&&$f(e,t,r,kh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else $f(e,t,r,null,n)}}function Oh(e){return e=hn(e),Ah(e)}var kh=null;function Ah(e){if(kh=null,e=Et(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kh=e,null}function jh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Mh=!1,Nh=null,Ph=null,Fh=null,Ih=new Map,Lh=new Map,Rh=[],zh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Bh(e,t){switch(e){case`focusin`:case`focusout`:Nh=null;break;case`dragenter`:case`dragleave`:Ph=null;break;case`mouseover`:case`mouseout`:Fh=null;break;case`pointerover`:case`pointerout`:Ih.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lh.delete(t.pointerId)}}function Vh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Dt(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hh(e,t,n,r,i){switch(t){case`focusin`:return Nh=Vh(Nh,e,t,n,r,i),!0;case`dragenter`:return Ph=Vh(Ph,e,t,n,r,i),!0;case`mouseover`:return Fh=Vh(Fh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ih.set(a,Vh(Ih.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lh.set(a,Vh(Lh.get(a)||null,e,t,n,r,i)),!0}return!1}function Uh(e){var t=Et(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ch(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ht(e.priority,function(){Ch(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mn=r,n.target.dispatchEvent(r),mn=null}else return t=Dt(n),t!==null&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function Gh(e,t,n){Wh(e)&&n.delete(t)}function Kh(){Mh=!1,Nh!==null&&Wh(Nh)&&(Nh=null),Ph!==null&&Wh(Ph)&&(Ph=null),Fh!==null&&Wh(Fh)&&(Fh=null),Ih.forEach(Gh),Lh.forEach(Gh)}function qh(e,n){e.blockedOn===n&&(e.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Kh)))}var Jh=null;function Yh(e){Jh!==e&&(Jh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jh===e&&(Jh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ah(r||n)===null)continue;break}var a=Dt(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Xh(e){function t(t){return qh(t,e)}Nh!==null&&qh(Nh,e),Ph!==null&&qh(Ph,e),Fh!==null&&qh(Fh,e),Ih.forEach(t),Lh.forEach(t);for(var n=0;n<Rh.length;n++){var r=Rh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rh.length&&(n=Rh[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&Rh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[vt]||null;if(typeof a==`function`)o||Yh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(Ah(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Yh(n)}}}function Zh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Qh(e){this._internalRoot=e}$h.prototype.render=Qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;yh(n,Ld(),e,t,null,null)},$h.prototype.unmount=Qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),Gd(),t[yt]=null}};function $h(e){this._internalRoot=e}$h.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rh.length&&t!==0&&t<Rh[n].priority;n++);Rh.splice(n,0,e),n===0&&Uh(e)}};var eg=n.version;if(eg!==`19.3.0`)throw Error(i(527,eg,`19.3.0`));se.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var tg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:V,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{We=ng.inject(tg),Ge=ng}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Sc,s=Cc,c=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=_h(e,1,!1,null,null,n,r,null,o,s,c,Zh),e[yt]=t.current,Zf(e),new Qh(t)}})),PY=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=NY()}))();function FY({active:e,summary:t,generating:n,writing:r,resetting:i=!1,scroll:a,children:o}){let s=(0,H.useRef)(null),c=(0,H.useRef)(null),[l,u]=(0,H.useState)(!1);(0,H.useEffect)(()=>{if(!e||!n||!s.current){u(!1);return}let t=!1,r=()=>u(t&&!document.hidden),i=new IntersectionObserver(([e])=>{t=e.isIntersecting,r()});return i.observe(s.current),document.addEventListener(`visibilitychange`,r),()=>{i.disconnect(),document.removeEventListener(`visibilitychange`,r)}},[e,n]);let d=eY(a,c,e&&r&&l);return(0,H.useLayoutEffect)(()=>{r&&d.resume()},[r]),(0,H.useLayoutEffect)(()=>{i&&a.current&&(a.current.scrollTop=0)},[i,a]),(0,G.jsxs)(`div`,{ref:s,className:`note-reading-frame`,hidden:!e,"data-resetting":i,"data-generating":n,"data-active":e&&n&&l,children:[(0,G.jsx)(`div`,{className:`note-reading-clip`,children:(0,G.jsx)(qh,{enabled:e,children:(0,G.jsx)(`section`,{ref:a,id:`note-notes-panel`,role:`tabpanel`,"aria-labelledby":t?`note-summary-tab`:`note-notes-tab`,className:`note-content note-notes-pane`,children:(0,G.jsx)(`div`,{ref:c,className:`note-page-width note-notes-body`,children:o})})})}),d.behind&&(0,G.jsxs)(`button`,{type:`button`,className:`note-latest`,"data-testid":`note-summary-latest`,onClick:d.latest,children:[(0,G.jsx)(og,{size:12,"aria-hidden":`true`}),U(`Latest`)]})]})}function IY({part:e,outline:t=!0}){return(0,G.jsxs)(`div`,{"data-testid":`note-enhanced-waiting`,className:`summary-waiting`,"aria-live":`polite`,children:[t&&(0,G.jsx)(`div`,{className:`summary-outline`,"aria-hidden":`true`,children:[0,1].map(e=>(0,G.jsxs)(`div`,{className:`summary-outline-block`,children:[(0,G.jsx)(`div`,{className:`summary-outline-bar summary-outline-heading`}),[0,1].map(e=>(0,G.jsx)(`div`,{className:`summary-outline-bullet`,children:(0,G.jsx)(`div`,{className:`summary-outline-bar`})},e))]},e))}),(0,G.jsx)(`span`,{className:`sr-only`,children:e?U(`Reading a long meeting, part {part} of {of}…`,{part:e.part,of:e.of}):U(`Reading the transcript…`)})]})}function LY(e,t){return e?e.status!==t.status||e.status!==`done`&&(e.status!==`failed`&&e.status!==`stopped`||e.enhanced==null)||t.rewrittenFrom!==void 0&&(e.enhanced??``)===t.rewrittenFrom?{view:{...t,mine:e.mine}}:{view:{...t,mine:e.mine,enhanced:e.enhanced},...t.rewrittenFrom===void 0?{}:{keptEdits:!0}}:{view:t}}sh.transition.check,sh.transition.uncheck,{...sh.spring.checkPop},sh.transition.check.delay,sh.transition.popOut,sh.spring.bounce;var RY=sh.scale.icon,zY=2,BY=`path, line, polyline, polygon, circle, ellipse, rect`,VY=new WeakMap,HY=[`pathLength`,`stroke-dasharray`,`stroke-dashoffset`];function UY(e,t,n){let r=n===1;if(t.mode===`stroke`&&(r||t.reduce?HY.forEach((n,r)=>{let i=t.dash[r];i==null?e.removeAttribute(n):e.setAttribute(n,i)}):(e.setAttribute(`pathLength`,`1`),e.setAttribute(`stroke-dasharray`,`${Math.min(1,Math.max(0,n))} 1`),e.setAttribute(`stroke-dashoffset`,`0`))),t.mode===`pop`){let i=r||t.reduce||n===0&&t.blur>0;e.style.transform=i?t.inlineTransform:`scale(${t.from+(1-t.from)*n})`,t.blur&&(e.style.filter=i?t.inlineFilter:`blur(${t.blur*(1-Math.min(1,Math.max(0,n)))}px)`)}e.style.opacity=r?t.inlineOpacity:String(t.opacity*Math.min(1,Math.max(0,n)))}var WY=({kind:e,animation:t})=>e===`dot`||t===`pop`;function GY(e,t){return WY(t)?e:e.flatMap(e=>{let t=e.matches(BY)?[e]:Array.from(e.querySelectorAll(BY));return t.length>0?t:[e]})}function KY(e,t,n){let r=VY.get(e);if(!r){let i=WY(t);i&&t.kind===`check`&&e instanceof HTMLElement&&getComputedStyle(e).display===`inline`&&(e.style.display=`inline-block`),r={mode:i?`pop`:e instanceof SVGGeometryElement?`stroke`:`fade`,from:t.kind===`dot`?0:RY,blur:t.kind===`dot`?0:zY,progress:go(1),opacity:Number(getComputedStyle(e).opacity),inlineOpacity:e.style.opacity,inlineTransform:e.style.transform,inlineFilter:e.style.filter,dash:HY.map(t=>e.getAttribute(t)),reduce:n,controls:null,unsubscribe:()=>{}};let a=r;r.unsubscribe=r.progress.on(`change`,t=>UY(e,a,t)),VY.set(e,r)}return r.reduce=n,r}function qY(e){for(let t of e)for(let e of[t,...Array.from(t.querySelectorAll(BY))]){let t=VY.get(e);t&&(t.controls?.stop(),t.unsubscribe(),UY(e,t,1),VY.delete(e))}}function JY(e,t,n,r,i){let a=e.map(e=>{let a=!VY.has(e),o=KY(e,t,i);o.controls?.stop(),a&&n&&o.progress.jump(0);let s=gf(o.progress,+!!n,r);return o.controls=s,s});return Promise.all(a).then(()=>void 0)}function YY(...e){return t=>{let n=e.map(e=>{if(typeof e==`function`)return e(t);e&&(e.current=t)});return()=>{n.forEach((t,n)=>{let r=e[n];typeof t==`function`?t():typeof r==`function`?r(null):r&&(r.current=null)})}}}var XY=`[data-slot="toast-icon"]`;function ZY(e){return e.querySelector(XY)?.firstElementChild??null}function QY(e,t){let n=e.getAttribute(t);return n?e.ownerDocument.getElementById(n):null}var $Y=[`font`,`letterSpacing`,`lineHeight`,`textAlign`,`whiteSpace`,`overflowWrap`,`wordBreak`];function eX(e){if(!e||!e.isConnected)return null;let t=e.getBoundingClientRect();if(t.width===0&&t.height===0)return null;let n=getComputedStyle(e),r=e.cloneNode(!0);for(let e of[r,...r.querySelectorAll(`[id], [data-slot]`)])e.removeAttribute(`id`),e.removeAttribute(`data-slot`);if(r instanceof HTMLElement)for(let e of $Y)r.style[e]=n[e];let i=e.getAnimations().find(e=>e instanceof CSSAnimation)?.currentTime;return{element:r,rect:t,text:e.textContent??``,opacity:Number(n.opacity),filter:n.filter,color:n.color,time:typeof i==`number`?i:null}}function tX(e){if(!e)return null;let t=e.getBoundingClientRect();return{root:t,height:e.offsetHeight,scale:e.offsetWidth?t.width/e.offsetWidth:1,icon:eX(ZY(e)),title:eX(QY(e,`aria-labelledby`)),description:eX(QY(e,`aria-describedby`))}}var nX=class extends H.Component{getSnapshotBeforeUpdate(e){return this.props.watch.some((t,n)=>!Object.is(t,e.watch[n]))?this.props.take():null}componentDidUpdate(e,t,n){n&&this.props.onUpdate(n)}render(){return this.props.children}},rX=[`success`,`error`];function iX(e,t,n,r,i){qY([e]);let a=rX.includes(t??``),o={kind:`check`,animation:a?`draw`:`pop`},s=a?{...r.transition.check,delay:n}:{...r.spring.checkPop,delay:n};if(JY(GY([e],o),o,!0,s,i),t===`error`&&!i){let t=r.transition.check;aX(e,(n+t.duration/2)*1e3,r)}}function aX(e,t,n){let{duration:r,ease:i}=n.transition.shake,a=`cubic-bezier(${i.join(`, `)})`;e.animate([0,-1,1,-.66,.66,-.33,0].map(e=>({transform:`translateX(${e*n.shift.shake}px)`,easing:a})),{duration:r*1e3,delay:t})}function oX(e,t,n){let{element:r,rect:i}=t,a=n.scale||1,o=e.ownerDocument.createElement(`div`);if(o.setAttribute(`aria-hidden`,`true`),o.inert=!0,Object.assign(o.style,{position:`absolute`,left:`${(i.left-n.root.left)/a-e.clientLeft}px`,top:`${(i.top-n.root.top)/a-e.clientTop}px`,width:`${i.width/a}px`,height:`${i.height/a}px`,margin:`0`,pointerEvents:`none`,color:t.color,opacity:String(t.opacity),filter:t.filter}),r instanceof SVGElement&&(r.setAttribute(`width`,`100%`),r.setAttribute(`height`,`100%`),r.style.display=`block`),r instanceof HTMLElement&&(r.style.margin=`0`,r.style.width=`100%`),o.append(r),e.append(o),t.time!==null)for(let e of r.getAnimations())e.currentTime=t.time;return o}var sX=e=>gh(e);function cX(e,t,n,r){let{duration:i,easing:a}=sX(n.transition.swap),o={opacity:e.style.opacity},s={opacity:0};o.filter=e.style.filter===`none`?`blur(0px)`:e.style.filter,s.filter=n.blur.icon,t&&!r&&(o.transform=`scale(1)`,s.transform=`scale(${n.scale.icon})`),e.animate([o,s],{duration:i,easing:a,fill:`forwards`}).finished.then(()=>e.remove(),()=>e.remove())}function lX(e,t){let{duration:n,easing:r}=sX(t.transition.swap);e.animate([{opacity:0,filter:t.blur.icon},{opacity:1,filter:`blur(0px)`}],{duration:n,easing:r})}function uX(e,t,n){let r=e.style.height;e.style.height=`auto`;let i=e.offsetHeight;e.style.height=r,Math.abs(i-t)<1||e.animate([{height:`${t}px`},{height:`${i}px`}],{duration:n.duration,easing:n.easing})}function dX(e,t,n,r,i,a,o){if(!e)return;o||uX(e,t.height,a);let s=getComputedStyle(e).position!==`static`,c=[[t.title,QY(e,`aria-labelledby`)],[t.description,QY(e,`aria-describedby`)]];for(let[n,r]of c){let a=r?.textContent??``;n&&n.text===a&&r||(n&&s&&cX(oX(e,n,t),!1,i,o),r&&a&&lX(r,i))}if(!n)return;t.icon&&s&&cX(oX(e,t.icon,t),!0,i,o);let l=ZY(e);l&&iX(l,r,t.icon?i.transition.swap.duration/2:0,i,o)}var fX=.5,pX=48,mX=360,hX=80,gX=100;function _X(e){let t=fX*Math.abs(e);return Math.sign(e)*(t*pX/(pX+t))}function vX(e,t,n){return e===`up`?-n:e===`down`?n:e===`left`?-t:t}function yX(e){let t=e.currentTarget,n=new DOMMatrix(getComputedStyle(t).transform.replace(`none`,``));return{pointerId:e.pointerId,start:{x:e.clientX,y:e.clientY},first:!0,axis:null,initial:{x:n.m41,y:n.m42,scale:Math.hypot(n.a,n.b)},width:t.offsetWidth,height:t.offsetHeight,points:[{t:e.timeStamp,x:e.clientX,y:e.clientY}],releasedAt:null}}function bX(e,t,n){if(t.pointerId!==e.pointerId||e.releasedAt!==null)return;e.first&&=(e.start={x:t.clientX,y:t.clientY},!1);let r=t.clientX-e.start.x,i=t.clientY-e.start.y,a=n.some(e=>e===`left`||e===`right`),o=n.some(e=>e===`up`||e===`down`);e.axis===null&&a&&o&&Math.hypot(r,i)>=1&&(e.axis=Math.abs(r)>Math.abs(i)?`x`:`y`),e.points.push({t:t.timeStamp,x:t.clientX,y:t.clientY}),e.points.length>32&&e.points.shift()}function xX(e,t){let n=e.points.at(-1),r=e.first?0:n.x-e.start.x,i=e.first?0:n.y-e.start.y,a=t.some(e=>e===`left`||e===`right`),o=t.some(e=>e===`up`||e===`down`),s=(e,n,r)=>e>0&&t.includes(n)||e<0&&t.includes(r)?e:_X(e);return{x:a&&e.axis!==`y`?s(r,`right`,`left`):0,y:o&&e.axis!==`x`?s(i,`down`,`up`):0}}function SX(e,t){let{x:n,y:r}=xX(e,t),i=Math.max(0,...t.map(t=>vX(t,n,r)/((t===`left`||t===`right`?e.width:e.height)||1))),{initial:a}=e;return{transform:`translateX(${a.x+n}px) translateY(${a.y+r}px) scale(${a.scale})`,opacity:1-Math.min(1,i)}}function CX(e,t){let n=e.releasedAt??e.points.at(-1).t,r=e.points.filter(e=>n-e.t<=gX),i=r[0],a=r.at(-1),o=i&&a&&a!==i&&n>i.t?vX(t,a.x-i.x,a.y-i.y)/(n-i.t):0,s=t===`left`||t===`right`?e.width:e.height,c=o>0?Math.min(mX,Math.max(hX,s/o)):mX;return{duration:Math.round(c),easing:`linear`}}var wX=`data-animate-ui-toast-progress`,TX=`data-animate-ui-toast-progress-bar`,EX=`
+:where([${wX}]) {
position: absolute;
inset: 0;
border-radius: inherit;
@@ -183,8 +183,8 @@ Error generating stack: `+e.message+`
transition-timing-function: var(--animate-ui-toast-fade-ease, ease-out);
transition-delay: var(--animate-ui-toast-cascade, 0ms);
}
-:where([data-expanded] > [${bX}]) { opacity: 1; }
-:where([${xX}]) {
+:where([data-expanded] > [${wX}]) { opacity: 1; }
+:where([${TX}]) {
position: absolute;
inset-inline: 0;
bottom: 0;
@@ -193,10 +193,10 @@ Error generating stack: `+e.message+`
opacity: 0.25;
transform-origin: left;
}
-:where([${xX}][data-tinted]) { opacity: 0.8; }
-:where([${xX}]:dir(rtl)) { transform-origin: right; }
-`,CX=H.createContext(void 0);function wX(){let e=H.useContext(CX);if(!e)throw Error(hH(73));return e}var TX=0;function EX(e){return TX+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${TX}`}function DX(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function OX(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function kX(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var AX={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},jX=class extends GH{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:OX(e.toasts)},{},AX)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=kX(this.state.toasts,t);r.toasts=e,r.toastMetadata=OX(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=AX.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||EX(`toast`);if(e.id){let t=AX.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(kX(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),AX.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=AX.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=AX.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),AX.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=AX.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=kX(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=DX(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=DX(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=DX(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=az.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=Sz(e);bz(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=AX.expandedOrOutOfFocus(this.state)?void 0:az.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:OX(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=yz(dB(this.state.viewport));if(!this.state.viewport||!bz(this.state.viewport,t)||!Lz(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=AX.toasts(this.state),r=AX.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},MX=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=YR(()=>new jX({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return rz(a.disposeEffect),H.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,G.jsxs)(CX.Provider,{value:a,children:[(0,G.jsx)(NX,{store:a,timeout:n,limit:r}),t]})};function NX(e){let{store:t,timeout:n,limit:r}=e;return Y(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var PX=`--toast-frontmost-height`,FX=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=wX(),c=oz(),l=H.useRef(!1),u=H.useRef(!1),d=H.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);H.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=$I(e),n=dB(e);function r(t){t.key===`F6`&&Sz(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,yz(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){Sz(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=Sz(n),i=yz(dB(e));r!==t&&bz(e,r)&&Lz(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return $z(Qz(t,`keydown`,r),Qz(t,`blur`,i,!0),Qz(t,`focus`,a,!0),Qz(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&Sz(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}H.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function E(e){e.pointerType===`touch`&&(d.current=!1,S())}function D(){l.current?l.current=!1:m||Lz(yz(dB(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!bz(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let k={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:D,onBlur:O,onKeyDown:x,onClick:D,onPointerDown:T,onPointerUp:E,onPointerCancel:E,style:{[PX]:_?`${_}px`:void 0}},A={expanded:h},j=!f&&g&&(0,G.jsx)(mB,{onFocus:b}),M=wV(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,o,{children:(0,G.jsxs)(H.Fragment,{children:[j,a,j]})}]});return(0,G.jsxs)(H.Fragment,{children:[j,M,!m&&y.length>0&&(0,G.jsx)(`div`,{style:pB,children:y.map(e=>(0,G.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,G.jsx)(`div`,{children:e.title}),(0,G.jsx)(`div`,{children:e.description})]},e.id))})]})}),IX=H.createContext(void 0);function LX(){let e=H.useContext(IX);if(!e)throw Error(hH(66));return e}function RX(e,t){let n=(t??$I(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function zX(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var BX=`--toast-index`,VX=`--toast-offset-y`,HX=`--toast-height`,UX=`--toast-swipe-movement-x`,WX=`--toast-swipe-movement-y`,GX=`data-swipe-direction`,KX={...Ez,swipeDirection(e){return e?{[GX]:e}:null}},qX=40,JX=10,YX=.5,XX=1,ZX=`${FV},${IV}`,QX=H.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=wX(),[f,p]=H.useState(void 0),[m,h]=H.useState(!1),[g,_]=H.useState(!1),[v,y]=H.useState({x:0,y:0}),[b,x]=H.useState({x:0,y:0,scale:1}),[S,C]=H.useState(),[w,T]=H.useState(),[E,D]=H.useState(null),O=H.useRef(null),k=H.useRef(void 0),A=H.useRef({x:0,y:0}),j=H.useRef({x:0,y:0,scale:1}),M=H.useRef(void 0),N=H.useRef(0),P=H.useRef(!1),F=H.useRef({x:0,y:0}),I=H.useRef(!1),L=H.useRef({x:0,y:0}),R=H.useRef(null),ee=H.useRef(null),z=d.useState(`toastIndex`,n.id),te=d.useState(`toastVisibleIndex`,n.id),ne=d.useState(`toastOffsetY`,n.id),re=d.useState(`focused`),ie=d.useState(`expanded`);CH({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let ae=oB((e=!1)=>{let t=O.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:O,height:i,transitionStatus:void 0})}e?Oe.flushSync(a):a()});Y(()=>{let e=k.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),B({x:0,y:0})),k.current=n.id,ae())},[ae,n.id,n.transitionStatus]);function B(e){L.current=e,y(e)}Y(()=>()=>{ee.current?.abort()},[]);function oe(e,t){let n=e=>e>0?e**YX:-(Math.abs(e)**YX),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let V=oB(e=>{if(e.pointerId!==R.current)return;R.current=null,ee.current?.abort(),ee.current=null,h(!1),_(!1),D(null);let t=j.current;if(e.type===`pointercancel`||P.current){B({x:t.x,y:t.y}),p(void 0);return}let r=L.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(zX(e,i,a)>qX){o=e;break}o?(p(o),d.closeToast(n.id)):(B({x:t.x,y:t.y}),p(void 0))});function se(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),xz(Sz(e.nativeEvent),`button,a,input,textarea,[role="button"],${ZX}`)))return;P.current=!1,M.current=void 0,N.current=0,R.current=e.pointerId,A.current={x:e.clientX,y:e.clientY},F.current=A.current;let t=e.currentTarget,n=RX(t);j.current=n,x(n),B({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),I.current=!0,ee.current?.abort();let r=new AbortController;ee.current=r;let i=dB(t);i.addEventListener(`pointerup`,V,{signal:r.signal}),i.addEventListener(`pointercancel`,V,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function ce(e){if(e.pointerId!==R.current)return;e.preventDefault(),I.current&&=(A.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>F.current.y||i>0&&t<F.current.y)&&(F.current={x:F.current.x,y:t}),(r<0&&n>F.current.x||r>0&&n<F.current.x)&&(F.current={x:n,y:F.current.y});let a=n-A.current.x,o=t-A.current.y,s=t-F.current.y,c=n-F.current.x,u=E;if(!g&&Math.sqrt(a*a+o*o)>=XX){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,D(u))}let d;if(!M.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(M.current=d,N.current=zX(d,a,o),p(d));else{let e=M.current,t=zX(e,c,s);t>qX?(P.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&N.current-t>=JX&&(P.current=!0)}let f=oe(a,o),m=j.current.x,h=j.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),B({x:m,y:h})}function le(e){if(e.key===`Escape`){if(!O.current||!bz(O.current,yz(dB(O.current))))return;d.closeToast(n.id)}}H.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){R.current!==null&&bz(e,Sz(t))&&t.preventDefault()}return Qz(e,`touchmove`,t,{passive:!1})},[u]);function ue(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[UX]:`${e}px`,[WX]:`${t}px`}}let de=n.priority===`high`,fe={role:de?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":de&&!re?!0:void 0,onPointerDown:u?se:void 0,onPointerMove:u?ce:void 0,onPointerUp:u?V:void 0,onPointerCancel:u?V:void 0,onKeyDown:le,inert:mW(n.limited),style:{...ue(),[BX]:n.transitionStatus===`ending`?z:te,[VX]:`${ne}px`,[HX]:n.height?`${n.height}px`:void 0}},pe=H.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:ae,visibleIndex:te,expanded:ie}),[n,C,T,ae,te,ie]),me={transitionStatus:n.transitionStatus,expanded:ie,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},he=wV(`div`,e,{ref:[t,O],state:me,stateAttributesMapping:KX,props:[fe,s]});return(0,G.jsx)(IX.Provider,{value:pe,children:he})}),$X=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=LX(),l=H.useRef(null);return Y(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),wV(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function eZ(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(eZ)}function tZ(e){return H.isValidElement(e)&&eZ(e.props.children)}function nZ(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=LX(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:nV(e),children:s,type:r.type,setId:o}}function rZ(e,t,n){let r=tZ(e);return Y(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var iZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=nZ(a,o,`description`);return rZ(wV(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),aZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=nZ(a,o,`title`);return rZ(wV(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),oZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=wX(),{toast:l,expanded:u}=LX(),[d,f]=H.useState(!1),{getButtonProps:p,buttonRef:m}=tW({disabled:a,native:o}),h={type:l.type};return wV(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),sZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=LX(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=tW({disabled:a,native:o}),f={type:c.type},p=wV(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return tZ(p)?p:null}),cZ=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=UV({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(H.Fragment,{children:[l,c&&Oe.createPortal(n,c)]})}),lZ=H.forwardRef(function(e,t){return(0,G.jsx)(cZ,{ref:t,...e})}),uZ=H.createContext(void 0);function dZ(){let e=H.useContext(uZ);if(e===void 0)throw Error(hH(84));return e}var fZ=H.forwardRef(function(e,t){let{toast:n,...r}=e,i=wX(),a=n.positionerProps??nz,{render:o,className:s,anchor:c=a.anchor,positionMethod:l=a.positionMethod??`absolute`,side:u=a.side??`top`,align:d=a.align??`center`,sideOffset:f=a.sideOffset??0,alignOffset:p=a.alignOffset??0,collisionBoundary:m=a.collisionBoundary??`clipping-ancestors`,collisionPadding:h=a.collisionPadding??5,arrowPadding:g=a.arrowPadding??5,sticky:_=a.sticky??!1,disableAnchorTracking:v=a.disableAnchorTracking??!1,collisionAvoidance:y=a.collisionAvoidance??RV,style:b,...x}=r,[S,C]=H.useState(null),w=i.useState(`toastIndex`,n.id),T=i.useState(`toastVisibleIndex`,n.id),E=nL(c)?c:null,D=NW({anchor:E,positionMethod:l,floatingRootContext:nU({open:!0,onOpenChange:ez,elements:{floating:S,reference:E}}),mounted:!0,side:u,sideOffset:f,align:d,alignOffset:p,collisionBoundary:m,collisionPadding:h,sticky:_,arrowPadding:g,disableAnchorTracking:v,keepMounted:!0,collisionAvoidance:y}),O=zW(e,{side:D.side,align:D.align,anchorHidden:D.anchorHidden},{styles:{...D.positionerStyles,[BX]:n.transitionStatus===`ending`?w:T},transitionStatus:n.transitionStatus,props:x,refs:[t,C]});return(0,G.jsx)(uZ.Provider,{value:D,children:O})}),pZ=H.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=dZ();return wV(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function mZ(){let e=wX(),t=e.useState(`toasts`);return H.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function hZ(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||EX(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var gZ=bq({Action:()=>GZ,Arrow:()=>JZ,Close:()=>WZ,Content:()=>VZ,Description:()=>HZ,Portal:()=>KZ,Positioner:()=>qZ,Provider:()=>NZ,Root:()=>FZ,Title:()=>UZ,Viewport:()=>PZ,createToastManager:()=>XZ,useToastManager:()=>YZ}),_Z=`0.75rem`,vZ=`0.75rem`,yZ=Th.tooltip,bZ=sh.scale.toast,xZ=sh.blur.surface,SZ=sh.transition.fade,CZ=5e3,wZ=150,TZ=`animate-ui-base-ui-toast`,EZ=H.createContext({timeout:CZ,progressBar:!0});function DZ(e,t,n){return{transitionProperty:e.join(`, `),transitionDuration:`${t.duration}ms`,transitionTimingFunction:t.easing,transitionDelay:n??`0ms`}}function OZ(e){return Array.isArray(e)?e:e?[e]:[`down`,`right`]}function kZ(e){return e.includes(`up`)&&!e.includes(`down`)?`top`:`bottom`}function AZ(){let e=H.useRef({at:-1/0});return t=>{let n=e.current;return n.expanded!==void 0&&n.expanded!==t&&(n.at=performance.now()),n.expanded=t,performance.now()-n.at<wZ}}function jZ(e,{side:t,reduce:n,anchored:r,enter:i,exit:a,cascade:o,swipe:s,thrown:c}){let l=e.transitionStatus===`ending`,u=e.transitionStatus===`starting`,d=u||l||e.limited;if(e.swiping)return s??{opacity:+!d};if(r)return{opacity:+!d,...DZ(n?[`opacity`]:[`transform`,`opacity`,`height`],l?a:i),transform:`scale(${d&&!n?yZ:1})`,transformOrigin:`var(--transform-origin)`};let f=l?e.swipeDirection:void 0,p={opacity:+!d,...DZ(n?f?[`transform`,`opacity`]:[`opacity`,`filter`]:[`transform`,`opacity`,`height`,`filter`],f&&c?c:l?a:i,l?void 0:o)},m=t===`top`?-1:1,h=`max(0.9, calc(1 - var(--toast-index) * 0.05))`,g=e.expanded?`1`:h,_=e.expanded?`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-offset-y, 0px) + var(--toast-index, 0) * ${_Z}))`:`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-index, 0) * ${vZ} + (1 - ${h}) * var(--toast-frontmost-height, var(--toast-height, 0px))))`,v=`0px`,y=`0px`,b=g;return(u||l)&&!f&&(p.filter=xZ,n||(y=`${m*100}%`,b=`calc(${g} * ${bZ})`)),f===`down`&&(y=`100%`),f===`up`&&(y=`-100%`),f===`right`&&(v=`100%`),f===`left`&&(v=`-100%`),p.transform=`translateX(calc(var(--toast-swipe-movement-x, 0px) + ${v})) translateY(calc(${_} + ${y})) scale(${b})`,p.transformOrigin=t===`top`?`top`:`bottom`,p}function MZ(e,t){return typeof e==`function`?e(t):e}function NZ({progressBar:e=!0,...t}){let n=t.timeout??CZ,r=H.useMemo(()=>({timeout:n,progressBar:e}),[n,e]);return(0,G.jsx)(EZ,{value:r,children:(0,G.jsx)(MX,{...t})})}var PZ=FX;function FZ(e){return(0,G.jsx)(yh,{children:(0,G.jsx)(IZ,{...e})})}function IZ({ref:e,style:t,transition:n,exitTransition:r,progressBar:i,children:a,onPointerDown:o,onPointerMove:s,onPointerUp:c,onPointerCancel:l,...u}){let{toast:d}=u,f=Ch(),p=fh(),m=H.use(EZ),h=d.positionerProps!=null,g=gh(dh(n??(h?wh:Eq))),_=gh(dh(r??(h?n??wh:wq))),v=gh(dh(SZ)),y=OZ(u.swipeDirection),b=kZ(y),x=AZ(),S=p.stagger.stack*1e3,C=H.useRef(null),w=H.useRef(null);H.useLayoutEffect(()=>{let e=C.current,t=e&&qY(e);t&&eX(t,d.type,p.transition.check.delay,p,f)},[]);let T=H.useRef(d.type),E=e=>{let t=T.current!==d.type;T.current=d.type,sX(C.current,e,t,d.type,p,g,f)},D=i??m.progressBar,O=d.timeout??m.timeout;return(0,G.jsx)(QY,{watch:[d.type,d.title,d.description],take:()=>ZY(C.current),onUpdate:E,children:(0,G.jsxs)(QX,{...u,ref:GY(e,C),onPointerDown:e=>{o?.(e),e.button===0&&(w.current=hX(e))},onPointerMove:e=>{s?.(e),w.current&&gX(w.current,e,y)},onPointerUp:e=>{c?.(e);let t=w.current;t?.pointerId===e.pointerId&&(t.releasedAt=e.timeStamp)},onPointerCancel:e=>{l?.(e),w.current=null},style:e=>{let n=x(e.expanded)&&!f?`calc(var(--toast-index, 0) * ${S}ms)`:void 0,r=w.current;return{...jZ(e,{side:b,reduce:f,anchored:h,enter:g,exit:_,cascade:n,swipe:e.swiping&&r?vX(r,y):null,thrown:e.transitionStatus===`ending`&&e.swipeDirection&&r?yX(r,e.swipeDirection):null}),...D&&{"--animate-ui-toast-fade-duration":`${v.duration}ms`,"--animate-ui-toast-fade-ease":v.easing,"--animate-ui-toast-cascade":n??`0ms`},...MZ(t,e)}},children:[a,D&&!h&&(0,G.jsx)(BZ,{duration:O,running:d.type!==`loading`&&O>0,ending:d.transitionStatus===`ending`})]})})}function LZ(e){return window.addEventListener(`focus`,e,!0),window.addEventListener(`blur`,e,!0),()=>{window.removeEventListener(`focus`,e,!0),window.removeEventListener(`blur`,e,!0)}}var RZ=`--animate-ui-toast-progress-color`,zZ=`data-tinted`;function BZ({duration:e,running:t,ending:n}){let r=H.useRef(null),i=H.useRef(null),a=H.useSyncExternalStore(LZ,()=>document.hasFocus(),()=>!0),o=H.useRef({ending:n,windowFocused:a}),s=()=>r.current?.parentElement?.parentElement??null,c=H.useCallback(()=>{let e=i.current,t=s();if(!e||!t)return;let n=o.current.ending||!o.current.windowFocused||t.hasAttribute(`data-expanded`);n&&e.playState===`running`&&e.pause(),!n&&e.playState===`paused`&&e.play()},[]);return H.useLayoutEffect(()=>{let n=r.current;if(!t||!n)return;let a=n.animate([{transform:`scaleX(1)`},{transform:`scaleX(0)`}],{duration:e,easing:`linear`,fill:`forwards`});i.current=a;let o=s(),l=o?.querySelector(`[data-slot="toast-icon"] > *`),u=l&&o?getComputedStyle(l).color:null;return u&&u!==getComputedStyle(o).color?(n.style.setProperty(RZ,u),n.setAttribute(zZ,``)):(n.style.removeProperty(RZ),n.removeAttribute(zZ)),c(),()=>{a.cancel(),i.current=null}},[t,e,c]),H.useLayoutEffect(()=>{let e=s();if(!t||!e)return;let n=new MutationObserver(c);return n.observe(e,{attributeFilter:[`data-expanded`]}),()=>n.disconnect()},[t,c]),H.useLayoutEffect(()=>{o.current={ending:n,windowFocused:a},c()},[c,n,a]),t?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`style`,{href:TZ,precedence:`animate-ui`,children:SX}),(0,G.jsx)(`div`,{[bX]:``,"aria-hidden":`true`,children:(0,G.jsx)(`div`,{ref:r,[xX]:``})})]}):null}function VZ({style:e,transition:t,...n}){let r=Ch(),i=AZ(),a=fh().stagger.stack*1e3,o=gh(dh(t??SZ));return(0,G.jsx)($X,{...n,style:t=>({...DZ([`opacity`],o,i(t.expanded)&&!r?`calc(var(--toast-index, 0) * ${a}ms)`:void 0),...MZ(e,t)})})}var HZ=iZ,UZ=aZ,WZ=oZ,GZ=sZ,KZ=lZ,qZ=fZ,JZ=pZ,YZ=mZ,XZ=hZ;async function ZZ(e,t){let n=[],r=[],i;for(let a of new Set(e)){let e=await t(a).catch(()=>`failed`);e===`trashed`&&n.push(a),e===`trashed`||e===`missing`?r.push(a):i??=e}return{trashed:n,done:r,error:i}}var QZ;function $Z(e){QZ&&(e??document.body).append(QZ)}var eQ,tQ=gZ.createToastManager();async function nQ(e,t){return(await rQ([e],t,!1)).includes(e)}async function rQ(e,t,n=!0){let r=await ZZ(e,e=>window.yogurt.meetings.trash(e)),i=r.error===`recording`?U(`Stop the recording first, then try again.`):r.error===`save-pending`?U(`Open this note and finish saving before deleting it.`):r.error?U(`Yogurt couldn't move this note to the Trash. Try again.`):void 0;return(r.trashed.length||i)&&eQ?.({ids:r.trashed,from:t,bulk:n,error:i}),r.done}function iQ({id:e,recording:t,anchor:n,onSource:r}){let[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(),[c,l]=(0,H.useState)(0),[u,d]=(0,H.useState)(!1),[f,p]=(0,H.useState)(()=>window.matchMedia(`(max-width: 999px)`).matches),m=(0,H.useRef)(null),h=(0,H.useRef)(null),g=(0,H.useRef)(null),_=(0,H.useRef)(null),v=(0,H.useRef)([]),y=(0,H.useRef)(!1),b=(0,H.useRef)(!1);(0,H.useEffect)(()=>{a(!1),s(void 0),d(!1),b.current=!1},[e]),(0,H.useEffect)(()=>{let e=window.matchMedia(`(max-width: 999px)`),t=()=>p(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,H.useEffect)(()=>{if(!i||o)return;let t=!0;return window.yogurt.conversations.current([{kind:`meeting`,id:e}]).then(e=>{t&&s(e)}).catch(()=>{t&&d(!0)}),()=>{t=!1}},[i,e,o]);let x=(e,t=!0)=>{let n=g.current,r=_.current,i=h.current,a=m.current;if(!n||!r||!i||!a)return;let o=v.current.some(e=>e.playState===`running`),s=getComputedStyle(n),c={left:s.left,top:s.top,width:s.width,height:s.height,borderRadius:s.borderRadius,shell:s.opacity,dialog:getComputedStyle(i).opacity,body:getComputedStyle(r).opacity,clip:getComputedStyle(r).clipPath,button:getComputedStyle(a).opacity};if(v.current.forEach(e=>e.cancel()),v.current=[],!t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){let t=i.animate([{opacity:o?c.dialog:+!e},{opacity:+!!e}],{duration:Of.micro,easing:Of.ease,fill:`both`});return v.current=[t],t}let l=a.getBoundingClientRect(),u=i.getBoundingClientRect(),d=r.getBoundingClientRect(),f=parseFloat(getComputedStyle(a).borderRadius),p={left:`${l.x-u.x-1}px`,top:`${l.y-u.y-1}px`,width:`${l.width}px`,height:`${l.height}px`,borderRadius:`${f}px`},y={left:`-1px`,top:`-1px`,width:`calc(100% + 2px)`,height:`calc(100% + 2px)`,borderRadius:`12px`},b=`inset(${l.top+1-d.top}px ${d.right-l.right+1}px ${d.bottom-l.bottom+1}px ${l.left+1-d.left}px round ${Math.max(0,f-1)}px)`,x=`inset(0px round 11px)`,S=e?Of.base:Of.askExit,C=Of.ease,w=Of.micro,T=n.animate([o?{left:c.left,top:c.top,width:c.width,height:c.height,borderRadius:c.borderRadius}:e?p:y,e?y:p],{duration:S,easing:C,fill:`both`}),E=r.animate([{clipPath:o&&c.clip!==`none`?c.clip:e?b:x},{clipPath:e?x:b}],{duration:S,easing:C,fill:e?`backwards`:`forwards`}),D=r.animate([{opacity:o?c.body:+!e},{opacity:+!!e}],{duration:Of.micro,easing:C,fill:`both`}),O={duration:w,delay:e?0:S-w,easing:C,fill:`both`},k=n.animate([{opacity:o?c.shell:+!e},{opacity:+!!e}],O),A=a.animate([{opacity:o?c.button:+!!e},{opacity:+!e}],O);return v.current=[T,E,D,k,A],T};(0,H.useEffect)(()=>()=>v.current.forEach(e=>e.cancel()),[]),(0,H.useLayoutEffect)(()=>{if(!i||!n||!h.current)return;let e=h.current,t=()=>{let t=n.getBoundingClientRect();e.style.setProperty(`--chat-bottom`,`${Math.max(16,innerHeight-t.bottom+12)}px`),e.style.setProperty(`--chat-height`,`${f?440:Math.max(0,t.height-24)}px`)};t(),f?e.showModal():e.show(),$Z(f?e:null),e.querySelector(`textarea`)?.focus({preventScroll:!0}),x(!0,y.current),y.current=!1;let r=new ResizeObserver(t);return r.observe(n),window.addEventListener(`resize`,t),()=>{r.disconnect(),window.removeEventListener(`resize`,t),$Z(null),e.close()}},[i,f,n]);let S=(e=!0)=>{if(b.current)return;b.current=!0;let t=x(!1,e),n=()=>{b.current&&(b.current=!1,h.current?.close(),a(!1),m.current?.focus({preventScroll:!0}))};t?t.finished.then(n,()=>{}):n()},C=i&&(0,G.jsxs)(`dialog`,{id:`meeting-chat`,ref:h,"data-testid":`chat-panel`,className:`chat-panel no-drag`,"aria-labelledby":`meeting-chat-title`,"aria-modal":f||void 0,onKeyDown:e=>{e.key!==`Escape`||e.defaultPrevented||h.current?.querySelector(`.citation-card:not([data-ending-style])`)||e.target.closest(`[role="alertdialog"], [role="dialog"], [role="menu"]`)||(e.preventDefault(),e.stopPropagation(),S())},onCancel:e=>{e.preventDefault(),S()},children:[(0,G.jsx)(`div`,{ref:g,className:`chat-morph-surface`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{ref:_,className:`chat-panel-contents`,children:[u&&(0,G.jsx)(`p`,{role:`alert`,children:U(`Yogurt couldn't answer that.`)}),(0,G.jsx)(cY,{id:o??``,pendingDraftKey:`meeting/${e}`,loadError:u,panel:!0,recording:t,onSelect:e=>{s(e),l(e=>e+1)},onClose:()=>S(),onExpand:o?()=>{xv(),S(!1),window.yogurt.nav.go(`/chat/${o}`)}:void 0,onDeleted:()=>{S(!1),s(void 0),window.yogurt.nav.go(`/chat`)},onSource:(e,t)=>{S(!1),r(e,t)}},`${e}/${c}`)]})]});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{id:`meeting-ask`,ref:m,"data-testid":`chat-open`,className:`chat-trigger`,type:`button`,"aria-expanded":i,"aria-controls":`meeting-chat`,title:_q()?U(`Ask Yogurt (⌘J)`):`${U(`Ask Yogurt`)} (${hq(`⌘J`)})`,onClick:()=>{i&&!b.current?S():(b.current&&(b.current=!1,x(!0)),y.current=!0,d(!1),a(!0),h.current?.querySelector(`textarea`)?.focus({preventScroll:!0}))},children:[(0,G.jsx)(IG,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`Ask Yogurt`)}),(0,G.jsx)(`kbd`,{"aria-hidden":`true`,children:hq(`⌘J`)})]}),n&&(0,Oe.createPortal)(C,n)]})}function aQ(e){let t=Math.max(0,Math.floor(e/1e3)),n=String(t%60).padStart(2,`0`),r=Math.floor(t/60);return r>=60?`${Math.floor(r/60)}:${String(r%60).padStart(2,`0`)}:${n}`:`${r}:${n}`}var oQ=60,sQ=220,cQ=class{target=0;level=0;step(e){let t=this.target>this.level?oQ:sQ;this.level+=(this.target-this.level)*(1-Math.exp(-e/t))}settled(){return this.target!==0||this.level>=.002?!1:(this.level=0,!0)}};function lQ(e){let t=e.paused||e.reduced;if(t&&!e.stillBars)return{heights:[0,0,0],alpha:[.5,.5,.5]};let n=e.bars===3?[.75,1,.75]:[.5,.75,1,.75,.5],r=t?.7:e.level;return{heights:n.map(e=>e*r),alpha:n.map(()=>.45+.55*r)}}var uQ=(e,t)=>e.heights.map(e=>Math.round(e*t)).join()+`|`+Math.round(e.alpha[0]*100),dQ=e=>Number.isFinite(e.me)?Math.max(0,Math.min(1,(e.me-.15)/.65)):0,fQ=3,pQ=3,mQ=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`);function hQ({height:e,className:t,testId:n,paused:r=!1,bars:i=5,stillBars:a=!1}){let o=(0,H.useRef)(null),s=i*fQ+(i-1)*pQ;return(0,H.useEffect)(()=>{let t=o.current;if(!t)return;let n=new cQ,c=mQ(),l=window.devicePixelRatio||1,u=c.matches;t.width=s*l,t.height=e*l;let d=getComputedStyle(t).color,f=``,p=(o=!1)=>{let c=t.getContext(`2d`);if(!c)return;let p=lQ({reduced:u,paused:r,level:n.level,bars:i,stillBars:a}),m=uQ(p,e-fQ);(o||m!==f)&&(f=m,c.setTransform(l,0,0,l,0,0),c.clearRect(0,0,s,e),c.fillStyle=d,p.heights.forEach((t,n)=>{let r=fQ+Math.round(t*(e-fQ));c.globalAlpha=p.alpha[n],c.beginPath();let i=(s-p.heights.length*fQ-(p.heights.length-1)*pQ)/2;c.roundRect(i+n*6,(e-r)/2,fQ,r,fQ/2),c.fill()}),c.globalAlpha=1,t.dataset.level=n.level.toFixed(2))},m=performance.now(),h=window.yogurt.widget.onLevel(e=>{n.target=dQ(e),m=performance.now(),u?(n.level=n.target,p()):n.target>0&&x()}),g=0,_=performance.now(),v=e=>{e||(cancelAnimationFrame(g),g=0),t.dataset.live=e?`1`:`0`},y=e=>{let t=Math.min(100,e-_);_=e,e-m>300&&(n.target=0),n.step(t),n.settled()?(p(!0),v(!1)):(p(),g=requestAnimationFrame(y))},b=()=>{_=performance.now(),g=requestAnimationFrame(y),v(!0)},x=()=>{g||u||r||document.visibilityState!==`visible`||b()},S=()=>{v(!1),!u&&!r&&document.visibilityState===`visible`&&b(),p(!0)},C=()=>{u=c.matches,S()},w=()=>{document.visibilityState===`visible`?x():v(!1)},T=()=>{d=getComputedStyle(t).color,p(!0)},E=window.matchMedia(`(prefers-color-scheme: dark)`);return c.addEventListener(`change`,C),E.addEventListener(`change`,T),document.addEventListener(`visibilitychange`,w),S(),()=>{h(),cancelAnimationFrame(g),c.removeEventListener(`change`,C),E.removeEventListener(`change`,T),document.removeEventListener(`visibilitychange`,w)}},[e,s,r,i,a]),(0,G.jsx)(`canvas`,{ref:o,"data-testid":n,"aria-hidden":`true`,className:t,style:{width:s,height:e}})}function gQ({view:e,testId:t=`note-elapsed`,className:n=`note-elapsed`}){let[r,i]=(0,H.useState)(`—`);return(0,H.useEffect)(()=>{if(!e){i(`—`);return}let t=()=>i(aQ(e.elapsedMs+(e.kind===`recording`&&!e.paused?Math.max(0,Date.now()-e.at):0)));if(t(),e.kind!==`recording`||e.paused)return;let n=setInterval(t,250);return()=>clearInterval(n)},[e]),(0,G.jsx)(`time`,{"data-testid":t,className:n,"aria-label":U(`Recorded time`),children:r})}function _Q(e,t,n=!1){return e===`mine`?{side:`mine`,writing:!1,fellBack:!1}:t===`waiting`||t===`writing`?{side:`enhanced`,writing:!0,fellBack:!1}:t===`failed`&&!n||t===`empty`?{side:`mine`,writing:!1,fellBack:!0}:{side:`enhanced`,writing:!1,fellBack:!1}}function vQ({id:e,shown:t,status:n,hasEnhanced:r,beforeUse:i}){let[a,o]=(0,H.useState)(!1),s=Nf(a,a===`pointer`),[c,l]=(0,H.useState)(),u=(0,H.useRef)(null),d=(0,H.useRef)(null),f=(0,H.useRef)([]),p=(0,H.useRef)(void 0),m=_Q(t,n,r),h=(0,H.useCallback)((e,t=`notice`)=>{l({text:e,kind:t}),clearTimeout(p.current),p.current=setTimeout(()=>l(void 0),2e3)},[]);(0,H.useEffect)(()=>(l(void 0),o(!1),()=>clearTimeout(p.current)),[e]);let{side:g,writing:_,fellBack:v}=m,y=(0,H.useCallback)(async(a,o=t)=>{let{side:s,writing:c,fellBack:l}=_Q(o,n,r);if(a===`notes`&&c){h(U(`Still generating your summary`));return}if(a===`notes`&&!await i()){h(U(`Couldn't save your latest changes. Try again before copying.`),`error`);return}let u=await window.yogurt.share.copy(e,a,s);h(U(u===`failed`?`Couldn't copy. Try again.`:u===`nothing`?`Nothing to copy yet`:a===`notes`&&l?`Copied your notes`:`Copied`),u===`failed`?`error`:u===`nothing`?`notice`:`copied`)},[e,t,n,r,i,h]),b=async()=>{if(_){h(U(`Still generating your summary`));return}if(!await i()){h(U(`Couldn't save your latest changes. Try again before exporting.`),`error`);return}let t=await window.yogurt.share.save(e,g);t===`saved`?h(U(v?`Saved your notes`:`Saved`),`saved`):t===`failed`&&h(U(`Couldn't save the file`),`error`)},x=e=>{o(!1),d.current?.focus(),e()};(0,H.useEffect)(()=>{let e=e=>{!e.repeat&&gq(e)&&e.shiftKey&&!e.altKey&&!(_q()&&e.ctrlKey)&&e.key.toLowerCase()===`c`&&(e.preventDefault(),y(`notes`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,H.useEffect)(()=>{if(!a)return;f.current[0]?.focus();let e=e=>{u.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]);let S=e=>{let t=f.current.filter(e=>e&&!e.disabled),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),o(!1),d.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&(o(!1),d.current?.focus())},C=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,w=c?.kind===`copied`;return(0,G.jsxs)(`div`,{ref:u,className:`relative flex items-center gap-1.5`,children:[(0,G.jsx)(`span`,{"data-testid":`share-said`,"data-tone":c?.kind,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`pointer-events-none absolute end-0 top-full z-20 mt-2 flex w-max max-w-[min(280px,calc(100vw-48px))] items-start gap-1.5 rounded-md text-xs text-muted ${c?`border border-line bg-float px-2.5 py-1.5 shadow-[var(--shadow-soft)]`:``}`,children:c&&(0,G.jsxs)(G.Fragment,{children:[(c.kind===`copied`||c.kind===`saved`)&&(0,G.jsx)(bg,{"data-testid":`share-success`,size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0`}),c.kind===`error`&&(0,G.jsx)(Og,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0 text-danger`}),c.text]})}),(0,G.jsxs)(`button`,{ref:d,"data-testid":`share-button`,"data-state":w?`copied`:`idle`,"aria-haspopup":`menu`,"aria-expanded":!!a,title:U(`Copy and export`),onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-record-action share-btn`,children:[(0,G.jsx)(GG,{size:13,strokeWidth:1.75,"aria-hidden":`true`}),U(`Copy`),(0,G.jsx)(Sg,{size:12,strokeWidth:1.75,"aria-hidden":`true`})]}),s.value&&(0,G.jsxs)(`div`,{"data-testid":`share-menu`,...s.props,role:`menu`,"aria-label":U(`Copy and export`),onKeyDown:S,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{ref:e=>{f.current[0]=e},role:`menuitem`,"data-testid":`share-copy-notes`,onClick:()=>x(()=>void y(`notes`,`mine`)),className:C,children:[(0,G.jsx)(GG,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),(0,G.jsx)(`span`,{className:`flex-1`,children:U(`Copy my notes`)})]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[1]=e},role:`menuitem`,"data-testid":`share-copy-summary`,disabled:!r&&!_,onClick:()=>x(()=>void y(`notes`,`enhanced`)),className:`${C} disabled:opacity-40`,children:[(0,G.jsx)(GG,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Copy summary`)]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[2]=e},role:`menuitem`,"data-testid":`share-copy-transcript`,onClick:()=>x(()=>void y(`transcript`)),className:C,children:[(0,G.jsx)(GG,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Copy transcript`)]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[3]=e},role:`menuitem`,"data-testid":`share-export`,onClick:()=>x(()=>void b()),className:C,children:[(0,G.jsx)(Bg,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Export as Markdown…`)]})]})]})}function yQ({recording:e,savePending:t,onRename:n,onDelete:r,folders:i,trashed:a}){let[o,s]=(0,H.useState)(!1),c=Nf(o,o===`pointer`),[l,u]=(0,H.useState)(!1),d=(0,H.useRef)(null),f=(0,H.useRef)(null),p=(0,H.useRef)(null);(0,H.useEffect)(()=>{if(!o){c.value||u(!1);return}p.current?.focus();let e=e=>{d.current?.contains(e.target)||s(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[o,c.value]);let m=e=>{let t=Array.from(d.current?.querySelectorAll(`[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),s(!1),f.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&s(!1)},h=e=>{s(!1),e()},g=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`;return(0,G.jsxs)(`div`,{ref:d,className:`relative`,children:[(0,G.jsx)(`button`,{ref:f,"data-testid":`note-menu-button`,"aria-haspopup":`menu`,"aria-expanded":!!o,"aria-label":U(`More`),title:U(`More`),onClick:e=>s(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn grid size-7 place-items-center rounded-md text-muted`,children:(0,G.jsx)(Ig,{size:17,strokeWidth:1.75,"aria-hidden":`true`})}),c.value&&(0,G.jsx)(`div`,{"data-testid":`note-menu`,...c.props,role:`menu`,"aria-label":U(`More`),onKeyDown:m,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:l&&i?i(()=>{s(!1),f.current?.focus()}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{ref:p,role:`menuitem`,"data-testid":`note-rename`,onClick:()=>h(n),className:g,children:[(0,G.jsx)(I_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Rename`)]}),i&&(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-add-to-folder`,"aria-haspopup":`menu`,onClick:()=>{u(!0),requestAnimationFrame(()=>d.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus())},className:g,children:[(0,G.jsx)(Jg,{size:15,"aria-hidden":`true`,className:`text-muted`}),(0,G.jsx)(`span`,{className:`flex-1`,children:U(`Add to folder`)}),(0,G.jsx)(Eg,{size:14,"aria-hidden":`true`,className:`text-muted rtl:-scale-x-100`})]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-delete`,disabled:e||t,onClick:()=>h(()=>{f.current?.focus(),r()}),className:`${g} text-danger`,children:[(0,G.jsx)(X_,{size:15,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`flex flex-col`,children:[U(a?`Delete forever`:`Delete note`),e&&(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:U(`Stop the recording first`)}),t&&(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:U(`Finish saving first`)})]})]})]})})]})}function bQ({testId:e,warningTestId:t,className:n=``,children:r}){return(0,G.jsxs)(`div`,{"data-testid":e,"data-state":`failed`,role:`alert`,className:`inline-error ${n}`,children:[(0,G.jsx)(Q_,{"data-testid":t,size:15,strokeWidth:1.75,"aria-hidden":`true`}),r]})}function xQ({id:e,title:t,onDone:n}){let[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(null),s=()=>n(!1),c=async()=>{i(!0),o(null);let t=await window.yogurt.meetings.delete(e).catch(()=>`failed`);i(!1),t===`deleted`||t===`missing`?n(!0):o(t)};return(0,G.jsxs)(HJ,{testId:`delete-confirm`,role:`alertdialog`,title:U(`Delete “{title}” forever?`,{title:t}),description:vq({mac:U(`Its notes, transcript and recording are removed from this Mac for good.`),other:U(`Its notes, transcript and recording are removed from this computer for good.`)}),onCancel:s,busy:r,children:[a&&(0,G.jsx)(bQ,{testId:`delete-failed`,className:`inline-error-in-dialog`,children:(0,G.jsx)(`span`,{children:U(a===`recording`?`Stop the recording first, then try again.`:a===`save-pending`?`Open this note and finish saving before deleting it.`:`Yogurt couldn't finish deleting this note. Try again.`)})}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`delete-yes`,onClick:()=>void c(),disabled:r,className:`modal-button danger`,children:U(`Delete forever`)}),(0,G.jsx)(VJ,{"data-testid":`delete-cancel`,"data-dialog-cancel":!0,disabled:r,className:`modal-button`,children:U(`Cancel`)})]})]})}function SQ(e){return e.status===`waiting`||e.status===`writing`?e.enhanced!=null&&!/[\p{L}\p{N}]/u.test(e.draft)?`rewriting`:e.draft?`streaming`:`waiting`:e.enhanced==null?e.status===`failed`?`failed`:e.status===`empty`?`empty`:`saved`:`saved`}function CQ(e,t){let n=e?SQ(e):`saved`,r=e?.meetingId,[i,a]=(0,H.useState)({id:r,presentation:n,fading:!1});return(i.id!==r||i.presentation!==n)&&a({id:r,presentation:n,fading:!t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`}),(0,H.useEffect)(()=>{if(!i.fading)return;if(t){a(e=>({...e,fading:!1}));return}let e=setTimeout(()=>a(e=>({...e,fading:!1})),Of.micro);return()=>clearTimeout(e)},[i.fading,t,r]),i.fading&&!t?`handoff`:n}var wQ=1e3,TQ=class{save;handoff;revision=0;pending;timer;flight;status=`saved`;reason;changed=()=>{};constructor(e,t){this.save=e,this.handoff=t}seed(e,t){!t||t.revision<this.revision||this.flight&&t.revision===this.revision||(t.revision!==this.revision||this.status!==`saved`||t.status!==`failed`)&&(this.revision=t.revision,t.status===`failed`?(this.pending={text:e,revision:t.revision},this.status=`failed`,this.reason=t.reason):this.pending&&this.pending.revision!==t.revision||(this.pending=void 0,this.status=`saved`,this.reason=void 0))}change(e){this.pending={text:e,revision:++this.revision},this.status=`saving`,this.reason=void 0,this.changed(),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.flush()},wQ)}acknowledge(e,t){this.pending?.revision===e.revision&&(t.revision===e.revision&&t.status===`saved`?(this.pending=void 0,this.status=`saved`):this.status=`failed`,this.reason=t.reason,this.changed())}flush(){if(clearTimeout(this.timer),this.flight)return this.flight;let e=this.pending;if(!e)return Promise.resolve(!0);this.status=`saving`,this.changed();let t;try{t=this.save(e)}catch{t=Promise.resolve({revision:e.revision,status:`failed`})}return this.flight=t.catch(()=>({revision:e.revision,status:`failed`})).then(t=>(this.acknowledge(e,t),this.flight=void 0,this.pending&&this.pending.revision>e.revision?this.flush():!this.pending)),this.flight}flushSync(){clearTimeout(this.timer);let e=this.pending;if(!e)return!0;try{let t=this.handoff(e);return this.acknowledge(e,t),t.status===`saved`||t.retained===!0}catch{return this.status=`failed`,this.changed(),!1}}dispose(){return clearTimeout(this.timer),this.changed=()=>{},this.flushSync()}},EQ=new Set,DQ=e=>(EQ.add(e),()=>{e.dispose()&&EQ.delete(e)}),OQ=e=>e.trim().toLowerCase(),kQ=(e,t)=>e||t.includes(`@`);function AQ(e){let t=e.split(`@`)[0],n=t.replace(/[._-]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}var X;(function(e){e[e.AM=0]=`AM`,e[e.PM=1]=`PM`})(X||={});var jQ;(function(e){e[e.SUNDAY=0]=`SUNDAY`,e[e.MONDAY=1]=`MONDAY`,e[e.TUESDAY=2]=`TUESDAY`,e[e.WEDNESDAY=3]=`WEDNESDAY`,e[e.THURSDAY=4]=`THURSDAY`,e[e.FRIDAY=5]=`FRIDAY`,e[e.SATURDAY=6]=`SATURDAY`})(jQ||={});var MQ;(function(e){e[e.JANUARY=1]=`JANUARY`,e[e.FEBRUARY=2]=`FEBRUARY`,e[e.MARCH=3]=`MARCH`,e[e.APRIL=4]=`APRIL`,e[e.MAY=5]=`MAY`,e[e.JUNE=6]=`JUNE`,e[e.JULY=7]=`JULY`,e[e.AUGUST=8]=`AUGUST`,e[e.SEPTEMBER=9]=`SEPTEMBER`,e[e.OCTOBER=10]=`OCTOBER`,e[e.NOVEMBER=11]=`NOVEMBER`,e[e.DECEMBER=12]=`DECEMBER`})(MQ||={});function NQ(e,t){e.assign(`day`,t.getDate()),e.assign(`month`,t.getMonth()+1),e.assign(`year`,t.getFullYear())}function PQ(e,t){e.assign(`hour`,t.getHours()),e.assign(`minute`,t.getMinutes()),e.assign(`second`,t.getSeconds()),e.assign(`millisecond`,t.getMilliseconds()),e.assign(`meridiem`,t.getHours()<12?X.AM:X.PM)}function FQ(e,t){e.imply(`day`,t.getDate()),e.imply(`month`,t.getMonth()+1),e.imply(`year`,t.getFullYear())}function IQ(e,t){e.imply(`hour`,t.getHours()),e.imply(`minute`,t.getMinutes()),e.imply(`second`,t.getSeconds()),e.imply(`millisecond`,t.getMilliseconds()),e.imply(`meridiem`,t.getHours()<12?X.AM:X.PM)}var LQ={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>zQ(e,MQ.MARCH,jQ.SUNDAY,2),dstEnd:e=>zQ(e,MQ.OCTOBER,jQ.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>RQ(e,MQ.MARCH,jQ.SUNDAY,2,2),dstEnd:e=>RQ(e,MQ.NOVEMBER,jQ.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>RQ(e,MQ.MARCH,jQ.SUNDAY,2,2),dstEnd:e=>RQ(e,MQ.NOVEMBER,jQ.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>RQ(e,MQ.MARCH,jQ.SUNDAY,2,2),dstEnd:e=>RQ(e,MQ.NOVEMBER,jQ.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>RQ(e,MQ.MARCH,jQ.SUNDAY,2,2),dstEnd:e=>RQ(e,MQ.NOVEMBER,jQ.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function RQ(e,t,n,r,i=0){let a=0,o=0;for(;o<r;)a++,new Date(e,t-1,a).getDay()===n&&o++;return new Date(e,t-1,a,i)}function zQ(e,t,n,r=0){let i=n===0?7:n,a=new Date(e,t-1+1,1,12),o=a.getDay()===0?7:a.getDay(),s;return s=o===i?7:o<i?7+o-i:o-i,a.setDate(a.getDate()-s),new Date(e,t-1,a.getDate(),r)}function BQ(e,t,n={}){if(e==null)return null;if(typeof e==`number`)return e;let r=n[e]??LQ[e];return r==null?null:typeof r==`number`?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}var VQ={day:0,second:0,millisecond:0};function HQ(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),`year`in t){let e=Math.floor(t.year);n.setFullYear(n.getFullYear()+e);let r=t.year-e;r>0&&(t.month=t?.month??0,t.month+=r*12)}if(`quarter`in t){let e=Math.floor(t.quarter);n.setMonth(n.getMonth()+e*3);let r=t.quarter-e;r>0&&(t.month=t?.month??0,t.month+=r*3)}if(`month`in t){let e=Math.floor(t.month);n.setMonth(n.getMonth()+e);let r=t.month-e;r>0&&(t.week=t?.week??0,t.week+=r*4)}if(`week`in t){let e=Math.floor(t.week);n.setDate(n.getDate()+e*7);let r=t.week-e;r>0&&(t.day=t?.day??0,t.day+=Math.round(r*7))}if(`day`in t){let e=Math.floor(t.day);n.setDate(n.getDate()+e);let r=t.day-e;r>0&&(t.hour=t?.hour??0,t.hour+=Math.round(r*24))}if(`hour`in t){let e=Math.floor(t.hour);n.setHours(n.getHours()+e);let r=t.hour-e;r>0&&(t.minute=t?.minute??0,t.minute+=Math.round(r*60))}if(`minute`in t){let e=Math.floor(t.minute);n.setMinutes(n.getMinutes()+e);let r=t.minute-e;r>0&&(t.second=t?.second??0,t.second+=Math.round(r*60))}if(`second`in t){let e=Math.floor(t.second);n.setSeconds(n.getSeconds()+e);let r=t.second-e;r>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(r*1e3))}if(`millisecond`in t){let e=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+e)}return n}function UQ(e){let t={};for(let n in e)t[n]=-e[n];return t}var WQ=class e{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(t){return new e(t)}static fromInput(t,n){if(t instanceof Date)return e.fromDate(t);let r=t?.instant??new Date,i=BQ(t?.timezone,r,n);return new e(r,i)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return this.timezoneOffset!==null&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){e||=new Date;let n=-e.getTimezoneOffset();return n-(t??this.timezoneOffset??n)}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}},Z=class e{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let e in t)this.knownValues[e]=t[e];let n=e.getDateWithAdjustedTimezone();this.imply(`day`,n.getDate()),this.imply(`month`,n.getMonth()+1),this.imply(`year`,n.getFullYear()),this.imply(`hour`,12),this.imply(`minute`,0),this.imply(`second`,0),this.imply(`millisecond`,0)}static createRelativeFromReference(t,n=VQ){let r=HQ(t.getDateWithAdjustedTimezone(),n),i=new e(t);return i.addTag(`result/relativeDate`),`hour`in n||`minute`in n||`second`in n||`millisecond`in n?(i.addTag(`result/relativeDateAndTime`),PQ(i,r),NQ(i,r),i.assign(`timezoneOffset`,t.getTimezoneOffset())):(IQ(i,r),i.imply(`timezoneOffset`,t.getTimezoneOffset()),`day`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.assign(`weekday`,r.getDay())):`week`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.imply(`weekday`,r.getDay())):(i.imply(`day`,r.getDate()),`month`in n?(i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear())):(i.imply(`month`,r.getMonth()+1),`year`in n?i.assign(`year`,r.getFullYear()):i.imply(`year`,r.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=HQ(this.dateWithoutTimezoneAdjustment(),e);return(`day`in e||`week`in e||`month`in e||`year`in e)&&(this.delete([`day`,`weekday`,`month`,`year`]),this.imply(`day`,t.getDate()),this.imply(`weekday`,t.getDay()),this.imply(`month`,t.getMonth()+1),this.imply(`year`,t.getFullYear())),(`second`in e||`minute`in e||`hour`in e)&&(this.delete([`second`,`minute`,`hour`]),this.imply(`second`,t.getSeconds()),this.imply(`minute`,t.getMinutes()),this.imply(`hour`,t.getHours())),this}delete(e){typeof e==`string`&&(e=[e]);for(let t of e)delete this.knownValues[t],delete this.impliedValues[t]}clone(){let t=new e(this.reference);t.knownValues={},t.impliedValues={};for(let e in this.knownValues)t.knownValues[e]=this.knownValues[e];for(let e in this.impliedValues)t.impliedValues[e]=this.impliedValues[e];return t}isOnlyDate(){return!this.isCertain(`hour`)&&!this.isCertain(`minute`)&&!this.isCertain(`second`)}isOnlyTime(){return!this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)&&!this.isCertain(`year`)}isOnlyWeekdayComponent(){return this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)}isDateWithUnknownYear(){return this.isCertain(`month`)&&!this.isCertain(`year`)}isValidDate(){let e=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return e.setUTCFullYear(this.get(`year`)),!(e.getUTCFullYear()!==this.get(`year`)||e.getUTCMonth()!==this.get(`month`)-1||e.getUTCDate()!==this.get(`day`)||this.get(`hour`)!=null&&e.getUTCHours()!=this.get(`hour`)||this.get(`minute`)!=null&&e.getUTCMinutes()!=this.get(`minute`))}toString(){return`[ParsingComponents {
+:where([${TX}][data-tinted]) { opacity: 0.8; }
+:where([${TX}]:dir(rtl)) { transform-origin: right; }
+`,DX=H.createContext(void 0);function OX(){let e=H.useContext(DX);if(!e)throw Error(TH(73));return e}var kX=0;function AX(e){return kX+=1,`${e}-${Math.random().toString(36).slice(2,6)}-${kX}`}function jX(e,t){if(typeof e==`string`)return{description:e};if(typeof e==`function`){let n=e(t);return typeof n==`string`?{description:n}:n}return e}function MX(e){let t=new Map,n=0,r=0;return e.forEach((e,i)=>{let a=e.transitionStatus===`ending`;t.set(e.id,{value:e,domIndex:i,visibleIndex:a?-1:n,offsetY:r}),r+=e.height||0,a||(n+=1)}),t}function NX(e,t){let n=0;return e.map(e=>{if(e.transitionStatus===`ending`)return e;let r=n>=t;return n+=1,e.limited===r?e:{...e,limited:r}})}var PX={toasts:e=>e.toasts,isEmpty:e=>e.toasts.length===0,toast:(e,t)=>e.toastMetadata.get(t)?.value,toastIndex:(e,t)=>e.toastMetadata.get(t)?.domIndex??-1,toastOffsetY:(e,t)=>e.toastMetadata.get(t)?.offsetY??0,toastVisibleIndex:(e,t)=>e.toastMetadata.get(t)?.visibleIndex??-1,focused:e=>e.focused,expanded:e=>e.hovering||e.focused,expandedOrOutOfFocus:e=>e.hovering||e.focused||!e.isWindowFocused,prevFocusElement:e=>e.prevFocusElement},FX=class extends nU{timers=new Map;areTimersPaused=!1;constructor(e){super({...e,toastMetadata:MX(e.toasts)},{},PX)}setViewport=e=>{this.set(`viewport`,e)};syncProviderProps(e,t){let n=this.state.limit!==t;if(this.state.timeout===e&&!n)return;let r={timeout:e,limit:t};if(n){let e=NX(this.state.toasts,t);r.toasts=e,r.toastMetadata=MX(e)}this.update(r)}disposeEffect=()=>()=>{this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear()};removeToast(e,t=!1){let n=PX.toastIndex(this.state,e);if(n===-1)return;let r=this.state.toasts[n];t||r?.onRemove?.();let i=[...this.state.toasts];i.splice(n,1),this.setToasts(i)}addToast=e=>{let{timeout:t,limit:n}=this.state,r=e.id||AX(`toast`);if(e.id){let t=PX.toast(this.state,e.id);if(t){if(t.transitionStatus===`ending`)this.removeToast(e.id,!0);else{let{id:t,transitionStatus:n,...r}=e;return this.updateToastInternal(e.id,r,!0,!0),e.id}}}let i={...e,id:r,updateKey:0,transitionStatus:`starting`},a=[i,...this.state.toasts];this.setToasts(NX(a,n));let o=i.timeout??t;return i.type!==`loading`&&o>0&&this.scheduleTimer(r,o,()=>this.closeToast(r)),PX.expandedOrOutOfFocus(this.state)&&this.pauseTimers(),r};updateToast=(e,t)=>{let n=PX.toast(this.state,e);n&&n.transitionStatus!==`ending`&&this.updateToastInternal(e,typeof t==`function`?t(n):t,!1,!0)};updateToastInternal=(e,t,n=!1,r=!1)=>{let{timeout:i,toasts:a}=this.state,o=PX.toast(this.state,e);if(!o||o.transitionStatus===`ending`)return;let s={...o,...t,...r&&{updateKey:o.updateKey+1}};this.setToasts(a.map(t=>t.id===e?s:t));let c=s.timeout??i,l=o.timeout??i,u=Object.hasOwn(t,`timeout`),d=s.transitionStatus!==`ending`&&s.type!==`loading`&&c>0,f=this.timers.has(e),p=l!==c,m=o.type===`loading`;!d&&f?this.clearTimer(e):d&&(!f||p||u||m||n)&&(this.clearTimer(e),this.scheduleTimer(e,c,()=>this.closeToast(e)),PX.expandedOrOutOfFocus(this.state)&&this.pauseTimers())};closeToast=e=>{let t=e===void 0,{limit:n,toasts:r}=this.state,i;if(t)i=r,this.clearTimers();else{let t=PX.toast(this.state,e);if(!t)return;i=[t],this.clearTimer(e)}let a=NX(r.map(n=>t||n.id===e?{...n,transitionStatus:`ending`,height:0}:n),n);this.setToasts(a,!a.some(e=>e.transitionStatus!==`ending`)),i.forEach(e=>{e.transitionStatus!==`ending`&&e.onClose?.()}),this.handleFocusManagement(e)};promiseToast=(e,t)=>{let n=jX(t.loading),r=this.addToast({...n,type:`loading`}),i=e.then(e=>{let n=jX(t.success,e);return this.updateToast(r,{...n,type:`success`,timeout:n.timeout}),e}).catch(e=>{let n=jX(t.error,e);return this.updateToast(r,{...n,type:`error`,timeout:n.timeout}),Promise.reject(e)});return{}.hasOwnProperty.call(t,`setPromise`)&&t.setPromise(i),i};pauseTimers(){this.areTimersPaused||(this.areTimersPaused=!0,this.timers.forEach(e=>{e.timeout&&(e.timeout.clear(),e.remaining=Math.max(e.remaining-(Date.now()-e.start),0))}))}resumeTimers(){this.areTimersPaused&&(this.areTimersPaused=!1,this.timers.forEach((e,t)=>{e.remaining=e.remaining>0?e.remaining:e.delay,e.timeout??=uz.create(),e.timeout.start(e.remaining,()=>{this.handleTimerFired(t),e.callback()}),e.start=Date.now()}))}restoreFocusToPrevElement(){this.state.prevFocusElement?.focus({preventScroll:!0})}handleDocumentPointerDown=e=>{if(e.pointerType!==`touch`)return;let t=Dz(e);Tz(this.state.viewport,t)||(this.resumeTimers(),this.update({hovering:!1,focused:!1}))};scheduleTimer(e,t,n){let r=Date.now(),i=PX.expandedOrOutOfFocus(this.state)?void 0:uz.create();i?.start(t,()=>{this.handleTimerFired(e),n()}),this.timers.set(e,{timeout:i,start:r,delay:t,remaining:t,callback:n})}clearTimers(){this.timers.forEach(e=>{e.timeout?.clear()}),this.timers.clear(),this.areTimersPaused=!1}clearTimer(e){this.timers.get(e)?.timeout?.clear(),this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}handleTimerFired(e){this.timers.delete(e),this.resetPausedStateIfNoTimersRemain()}resetPausedStateIfNoTimersRemain(){this.timers.size===0&&(this.areTimersPaused=!1)}setToasts(e,t=e.length===0){let n={toasts:e,toastMetadata:MX(e)};t&&(n.hovering=!1,n.focused=!1),this.update(n)}handleFocusManagement(e){let t=wz(gB(this.state.viewport));if(!this.state.viewport||!Tz(this.state.viewport,t)||!Hz(t))return;if(e===void 0){this.restoreFocusToPrevElement();return}let n=PX.toasts(this.state),r=PX.toastIndex(this.state,e),i=(e,t)=>{for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].transitionStatus!==`ending`)return n[r];return null},a=i(r+1,1)??i(r-1,-1);a?a.ref?.current?.focus():this.restoreFocusToPrevElement()}},IX=function(e){let{children:t,timeout:n=5e3,limit:r=3,toastManager:i}=e,a=ez(()=>new FX({timeout:n,limit:r,viewport:null,toasts:[],hovering:!1,focused:!1,isWindowFocused:!0,prevFocusElement:null})).current;return cz(a.disposeEffect),H.useEffect(function(){if(i)return i[` subscribe`](({action:e,options:t})=>{let n=t.id;e===`promise`&&t.promise?a.promiseToast(t.promise,t):e===`update`&&n?a.updateToast(n,t.updates):e===`close`?a.closeToast(n):a.addToast(t)})},[a,i]),(0,G.jsxs)(DX.Provider,{value:a,children:[(0,G.jsx)(LX,{store:a,timeout:n,limit:r}),t]})};function LX(e){let{store:t,timeout:n,limit:r}=e;return Y(()=>{t.syncProviderProps(n,r)},[t,n,r]),null}var RX=`--toast-frontmost-height`,zX=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=OX(),c=dz(),l=H.useRef(!1),u=H.useRef(!1),d=H.useRef(!1),f=s.useState(`isEmpty`),p=s.useState(`toasts`),m=s.useState(`focused`),h=s.useState(`expanded`),g=s.useState(`prevFocusElement`),_=p[0]?.height,v=p.some(e=>e.transitionStatus===`ending`),y=p.filter(e=>e.priority===`high`);H.useEffect(()=>{let e=s.state.viewport;if(!e||f)return;let t=lL(e),n=gB(e);function r(t){t.key===`F6`&&Dz(t)!==e&&(t.preventDefault(),s.set(`prevFocusElement`,wz(n)),e?.focus({preventScroll:!0}),s.pauseTimers(),s.set(`focused`,!0))}function i(e){Dz(e)===t&&(s.set(`isWindowFocused`,!1),s.pauseTimers())}function a(n){if(n.relatedTarget)return;let r=Dz(n),i=wz(gB(e));r!==t&&Tz(e,r)&&Hz(i)||s.resumeTimers(),c.start(0,()=>s.set(`isWindowFocused`,!0))}return iB(rB(t,`keydown`,r),rB(t,`blur`,i,!0),rB(t,`focus`,a,!0),rB(n,`pointerdown`,s.handleDocumentPointerDown,!0))},[s,c,f]);function b(e){l.current=!0;let t=e.relatedTarget===s.state.viewport?p.find(e=>e.transitionStatus!==`ending`&&!e.limited):void 0;t?t.ref?.current?.focus():s.restoreFocusToPrevElement()}function x(e){e.key===`Tab`&&e.shiftKey&&Dz(e.nativeEvent)===s.state.viewport&&(e.preventDefault(),s.restoreFocusToPrevElement())}function S(){s.state.toasts.some(e=>e.transitionStatus===`ending`)||d.current||!u.current||(s.set(`hovering`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers(),u.current=!1)}H.useEffect(S,[v,s]);function C(){s.pauseTimers(),s.set(`hovering`,!0),u.current=!1}function w(){u.current=!0,S()}function T(e){e.pointerType===`touch`&&(d.current=!0)}function E(e){e.pointerType===`touch`&&(d.current=!1,S())}function D(){l.current?l.current=!1:m||Hz(wz(gB(s.state.viewport)))&&(s.set(`focused`,!0),s.pauseTimers())}function O(e){m&&!Tz(s.state.viewport,e.relatedTarget)&&(s.set(`focused`,!1),s.select(`expandedOrOutOfFocus`)||s.resumeTimers())}let k={tabIndex:-1,role:`region`,"aria-live":`polite`,"aria-atomic":!1,"aria-relevant":`additions text`,"aria-label":`Notifications`,onMouseEnter:C,onMouseMove:C,onMouseLeave:w,onFocus:D,onBlur:O,onKeyDown:x,onClick:D,onPointerDown:T,onPointerUp:E,onPointerCancel:E,style:{[RX]:_?`${_}px`:void 0}},A={expanded:h},j=!f&&g&&(0,G.jsx)(yB,{onFocus:b}),M=jV(`div`,e,{ref:[t,s.setViewport],state:A,props:[k,o,{children:(0,G.jsxs)(H.Fragment,{children:[j,a,j]})}]});return(0,G.jsxs)(H.Fragment,{children:[j,M,!m&&y.length>0&&(0,G.jsx)(`div`,{style:vB,children:y.map(e=>(0,G.jsxs)(`div`,{role:`alert`,"aria-atomic":!0,children:[(0,G.jsx)(`div`,{children:e.title}),(0,G.jsx)(`div`,{children:e.description})]},e.id))})]})}),BX=H.createContext(void 0);function VX(){let e=H.useContext(BX);if(!e)throw Error(TH(66));return e}function HX(e,t){let n=(t??lL(e).getComputedStyle(e)).transform,r=0,i=0,a=1;if(n&&n!==`none`){let e=n.match(/matrix(?:3d)?\(([^)]+)\)/);if(e){let t=e[1].split(`, `).map(parseFloat);t.length===6?(r=t[4],i=t[5],a=Math.sqrt(t[0]*t[0]+t[1]*t[1])):t.length===16&&(r=t[12],i=t[13],a=t[0])}}return{x:r,y:i,scale:a}}function UX(e,t,n){switch(e){case`up`:return-n;case`down`:return n;case`left`:return-t;case`right`:return t;default:return 0}}var WX=`--toast-index`,GX=`--toast-offset-y`,KX=`--toast-height`,qX=`--toast-swipe-movement-x`,JX=`--toast-swipe-movement-y`,YX=`data-swipe-direction`,XX={...jz,swipeDirection(e){return e?{[YX]:e}:null}},ZX=40,QX=10,$X=.5,eZ=1,tZ=`${HV},${UV}`,nZ=H.forwardRef(function(e,t){let{toast:n,render:r,className:i,swipeDirection:a=[`down`,`right`],style:o,...s}=e,c=n.positionerProps?.anchor!==void 0,l=[];c||(l=Array.isArray(a)?a:[a]);let u=l.length>0,d=OX(),[f,p]=H.useState(void 0),[m,h]=H.useState(!1),[g,_]=H.useState(!1),[v,y]=H.useState({x:0,y:0}),[b,x]=H.useState({x:0,y:0,scale:1}),[S,C]=H.useState(),[w,T]=H.useState(),[E,D]=H.useState(null),O=H.useRef(null),k=H.useRef(void 0),A=H.useRef({x:0,y:0}),j=H.useRef({x:0,y:0,scale:1}),M=H.useRef(void 0),N=H.useRef(0),P=H.useRef(!1),F=H.useRef({x:0,y:0}),I=H.useRef(!1),L=H.useRef({x:0,y:0}),R=H.useRef(null),ee=H.useRef(null),z=d.useState(`toastIndex`,n.id),te=d.useState(`toastVisibleIndex`,n.id),ne=d.useState(`toastOffsetY`,n.id),re=d.useState(`focused`),ie=d.useState(`expanded`);NH({open:n.transitionStatus!==`ending`,ref:O,onComplete(){n.transitionStatus===`ending`&&d.removeToast(n.id)}});let B=dB((e=!1)=>{let t=O.current;if(!t)return;let r=t.style.height;t.style.height=`auto`;let i=t.offsetHeight;t.style.height=r;function a(){d.updateToastInternal(n.id,{ref:O,height:i,transitionStatus:void 0})}e?Oe.flushSync(a):a()});Y(()=>{let e=k.current;(n.transitionStatus===`starting`||e!==n.id)&&(e!==void 0&&(p(void 0),x({x:0,y:0,scale:1}),ae({x:0,y:0})),k.current=n.id,B())},[B,n.id,n.transitionStatus]);function ae(e){L.current=e,y(e)}Y(()=>()=>{ee.current?.abort()},[]);function oe(e,t){let n=e=>e>0?e**$X:-(Math.abs(e)**$X),r=e>0&&!l.includes(`right`)||e<0&&!l.includes(`left`),i=t>0&&!l.includes(`down`)||t<0&&!l.includes(`up`);return{x:r?n(e):e,y:i?n(t):t}}let V=dB(e=>{if(e.pointerId!==R.current)return;R.current=null,ee.current?.abort(),ee.current=null,h(!1),_(!1),D(null);let t=j.current;if(e.type===`pointercancel`||P.current){ae({x:t.x,y:t.y}),p(void 0);return}let r=L.current,i=r.x-t.x,a=r.y-t.y,o;for(let e of l)if(UX(e,i,a)>ZX){o=e;break}o?(p(o),d.closeToast(n.id)):(ae({x:t.x,y:t.y}),p(void 0))});function se(e){if(e.button!==0||(e.pointerType===`touch`&&d.pauseTimers(),Ez(Dz(e.nativeEvent),`button,a,input,textarea,[role="button"],${tZ}`)))return;P.current=!1,M.current=void 0,N.current=0,R.current=e.pointerId,A.current={x:e.clientX,y:e.clientY},F.current=A.current;let t=e.currentTarget,n=HX(t);j.current=n,x(n),ae({x:n.x,y:n.y}),d.set(`hovering`,!0),h(!0),_(!1),D(null),I.current=!0,ee.current?.abort();let r=new AbortController;ee.current=r;let i=gB(t);i.addEventListener(`pointerup`,V,{signal:r.signal}),i.addEventListener(`pointercancel`,V,{signal:r.signal}),t.setPointerCapture?.(e.pointerId)}function ce(e){if(e.pointerId!==R.current)return;e.preventDefault(),I.current&&=(A.current={x:e.clientX,y:e.clientY},!1);let{clientY:t,clientX:n,movementX:r,movementY:i}=e;(i<0&&t>F.current.y||i>0&&t<F.current.y)&&(F.current={x:F.current.x,y:t}),(r<0&&n>F.current.x||r>0&&n<F.current.x)&&(F.current={x:n,y:F.current.y});let a=n-A.current.x,o=t-A.current.y,s=t-F.current.y,c=n-F.current.x,u=E;if(!g&&Math.sqrt(a*a+o*o)>=eZ){_(!0);let e=l.includes(`left`)||l.includes(`right`),t=l.includes(`up`)||l.includes(`down`);e&&t&&(u=Math.abs(a)>Math.abs(o)?`horizontal`:`vertical`,D(u))}let d;if(!M.current)u===`vertical`?o>0?d=`down`:o<0&&(d=`up`):u===`horizontal`?a>0?d=`right`:a<0&&(d=`left`):d=Math.abs(a)>=Math.abs(o)?a>0?`right`:`left`:o>0?`down`:`up`,d&&l.includes(d)&&(M.current=d,N.current=UX(d,a,o),p(d));else{let e=M.current,t=UX(e,c,s);t>ZX?(P.current=!1,p(e)):!(l.includes(`left`)&&l.includes(`right`))&&!(l.includes(`up`)&&l.includes(`down`))&&N.current-t>=QX&&(P.current=!0)}let f=oe(a,o),m=j.current.x,h=j.current.y,v=l.includes(`left`)||l.includes(`right`),y=l.includes(`up`)||l.includes(`down`);u!==`vertical`&&v&&(m+=f.x),u!==`horizontal`&&y&&(h+=f.y),ae({x:m,y:h})}function le(e){if(e.key===`Escape`){if(!O.current||!Tz(O.current,wz(gB(O.current))))return;d.closeToast(n.id)}}H.useEffect(()=>{let e=O.current;if(!u||!e)return;function t(t){R.current!==null&&Tz(e,Dz(t))&&t.preventDefault()}return rB(e,`touchmove`,t,{passive:!1})},[u]);function ue(){let e=v.x-b.x,t=v.y-b.y;return{transition:m?`none`:void 0,transform:m?`translateX(${v.x}px) translateY(${v.y}px) scale(${b.scale})`:void 0,[qX]:`${e}px`,[JX]:`${t}px`}}let de=n.priority===`high`,fe={role:de?`alertdialog`:`dialog`,tabIndex:0,"aria-modal":!1,"aria-labelledby":S,"aria-describedby":w,"aria-hidden":de&&!re?!0:void 0,onPointerDown:u?se:void 0,onPointerMove:u?ce:void 0,onPointerUp:u?V:void 0,onPointerCancel:u?V:void 0,onKeyDown:le,inert:TW(n.limited),style:{...ue(),[WX]:n.transitionStatus===`ending`?z:te,[GX]:`${ne}px`,[KX]:n.height?`${n.height}px`:void 0}},pe=H.useMemo(()=>({toast:n,setTitleId:C,setDescriptionId:T,recalculateHeight:B,visibleIndex:te,expanded:ie}),[n,C,T,B,te,ie]),me={transitionStatus:n.transitionStatus,expanded:ie,limited:n.limited||!1,type:n.type,swiping:m,swipeDirection:f},he=jV(`div`,e,{ref:[t,O],state:me,stateAttributesMapping:XX,props:[fe,s]});return(0,G.jsx)(BX.Provider,{value:pe,children:he})}),rZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{visibleIndex:o,expanded:s,recalculateHeight:c}=VX(),l=H.useRef(null);return Y(()=>{c();let e=l.current;if(!e||typeof ResizeObserver!=`function`||typeof MutationObserver!=`function`)return;let t=new ResizeObserver(()=>c(!0)),n=new MutationObserver(()=>c(!0));return t.observe(e),n.observe(e,{childList:!0,subtree:!0,characterData:!0}),()=>{t.disconnect(),n.disconnect()}},[c]),jV(`div`,e,{ref:[t,l],state:{expanded:s,behind:o>0},props:a})});function iZ(e){return e==null||typeof e==`boolean`||e===``?!1:!Array.isArray(e)||e.some(iZ)}function aZ(e){return H.isValidElement(e)&&iZ(e.props.children)}function oZ(e,t,n){let{toast:r,setTitleId:i,setDescriptionId:a}=VX(),o=n===`title`?i:a,s=t??(n===`title`?r.title:r.description);return{id:lV(e),children:s,type:r.type,setId:o}}function sZ(e,t,n){let r=aZ(e);return Y(()=>{if(r)return n(t),()=>{n(e=>e===t?void 0:e)}},[r,t,n]),r?e:null}var cZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=oZ(a,o,`description`);return sZ(jV(`p`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),lZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,children:o,...s}=e,{id:c,children:l,type:u,setId:d}=oZ(a,o,`title`);return sZ(jV(`h2`,e,{ref:t,state:{type:u},props:{...s,id:c,children:l}}),c,d)}),uZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,c=OX(),{toast:l,expanded:u}=VX(),[d,f]=H.useState(!1),{getButtonProps:p,buttonRef:m}=fW({disabled:a,native:o}),h={type:l.type};return jV(`button`,e,{ref:[t,m],state:h,props:[{"aria-hidden":!u&&!d,onClick(){c.closeToast(l.id)},onFocus(){f(!0)},onBlur(){f(!1)}},s,p]})}),dZ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a,nativeButton:o=!0,...s}=e,{toast:c}=VX(),l=c.actionProps?.children??s.children,{getButtonProps:u,buttonRef:d}=fW({disabled:a,native:o}),f={type:c.type},p=jV(`button`,e,{ref:[t,d],state:f,props:[s,c.actionProps,u,{children:l}]});return aZ(p)?p:null}),fZ=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=XV({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,G.jsxs)(H.Fragment,{children:[l,c&&Oe.createPortal(n,c)]})}),pZ=H.forwardRef(function(e,t){return(0,G.jsx)(fZ,{ref:t,...e})}),mZ=H.createContext(void 0);function hZ(){let e=H.useContext(mZ);if(e===void 0)throw Error(TH(84));return e}var gZ=H.forwardRef(function(e,t){let{toast:n,...r}=e,i=OX(),a=n.positionerProps??sz,{render:o,className:s,anchor:c=a.anchor,positionMethod:l=a.positionMethod??`absolute`,side:u=a.side??`top`,align:d=a.align??`center`,sideOffset:f=a.sideOffset??0,alignOffset:p=a.alignOffset??0,collisionBoundary:m=a.collisionBoundary??`clipping-ancestors`,collisionPadding:h=a.collisionPadding??5,arrowPadding:g=a.arrowPadding??5,sticky:_=a.sticky??!1,disableAnchorTracking:v=a.disableAnchorTracking??!1,collisionAvoidance:y=a.collisionAvoidance??GV,style:b,...x}=r,[S,C]=H.useState(null),w=i.useState(`toastIndex`,n.id),T=i.useState(`toastVisibleIndex`,n.id),E=fL(c)?c:null,D=WW({anchor:E,positionMethod:l,floatingRootContext:pU({open:!0,onOpenChange:az,elements:{floating:S,reference:E}}),mounted:!0,side:u,sideOffset:f,align:d,alignOffset:p,collisionBoundary:m,collisionPadding:h,sticky:_,arrowPadding:g,disableAnchorTracking:v,keepMounted:!0,collisionAvoidance:y}),O=XW(e,{side:D.side,align:D.align,anchorHidden:D.anchorHidden},{styles:{...D.positionerStyles,[WX]:n.transitionStatus===`ending`?w:T},transitionStatus:n.transitionStatus,props:x,refs:[t,C]});return(0,G.jsx)(mZ.Provider,{value:D,children:O})}),_Z=H.forwardRef(function(e,t){let{className:n,render:r,style:i,...a}=e,{arrowRef:o,side:s,align:c,arrowUncentered:l,arrowStyles:u}=hZ();return jV(`div`,e,{state:{side:s,align:c,uncentered:l},ref:[t,o],props:[{style:u,"aria-hidden":!0},a]})});function vZ(){let e=OX(),t=e.useState(`toasts`);return H.useMemo(()=>({toasts:t,add:e.addToast,close:e.closeToast,update:e.updateToast,promise:e.promiseToast}),[t,e])}function yZ(){let e=new Set;function t(t){e.forEach(e=>e(t))}return{" subscribe":function(t){return e.add(t),()=>{e.delete(t)}},add(e){let n=e.id||AX(`toast`);return t({action:`add`,options:{...e,id:n,transitionStatus:`starting`}}),n},close(e){t({action:`close`,options:{id:e}})},update(e,n){t({action:`update`,options:{id:e,updates:n}})},promise(e,n){let r=e;return t({action:`promise`,options:{...n,promise:e,setPromise(e){r=e}}}),r}}}var bZ=wq({Action:()=>YZ,Arrow:()=>QZ,Close:()=>JZ,Content:()=>GZ,Description:()=>KZ,Portal:()=>XZ,Positioner:()=>ZZ,Provider:()=>LZ,Root:()=>zZ,Title:()=>qZ,Viewport:()=>RZ,createToastManager:()=>eQ,useToastManager:()=>$Z}),xZ=`0.75rem`,SZ=`0.75rem`,CZ=Th.tooltip,wZ=sh.scale.toast,TZ=sh.blur.surface,EZ=sh.transition.fade,DZ=5e3,OZ=150,kZ=`animate-ui-base-ui-toast`,AZ=H.createContext({timeout:DZ,progressBar:!0});function jZ(e,t,n){return{transitionProperty:e.join(`, `),transitionDuration:`${t.duration}ms`,transitionTimingFunction:t.easing,transitionDelay:n??`0ms`}}function MZ(e){return Array.isArray(e)?e:e?[e]:[`down`,`right`]}function NZ(e){return e.includes(`up`)&&!e.includes(`down`)?`top`:`bottom`}function PZ(){let e=H.useRef({at:-1/0});return t=>{let n=e.current;return n.expanded!==void 0&&n.expanded!==t&&(n.at=performance.now()),n.expanded=t,performance.now()-n.at<OZ}}function FZ(e,{side:t,reduce:n,anchored:r,enter:i,exit:a,cascade:o,swipe:s,thrown:c}){let l=e.transitionStatus===`ending`,u=e.transitionStatus===`starting`,d=u||l||e.limited;if(e.swiping)return s??{opacity:+!d};if(r)return{opacity:+!d,...jZ(n?[`opacity`]:[`transform`,`opacity`,`height`],l?a:i),transform:`scale(${d&&!n?CZ:1})`,transformOrigin:`var(--transform-origin)`};let f=l?e.swipeDirection:void 0,p={opacity:+!d,...jZ(n?f?[`transform`,`opacity`]:[`opacity`,`filter`]:[`transform`,`opacity`,`height`,`filter`],f&&c?c:l?a:i,l?void 0:o)},m=t===`top`?-1:1,h=`max(0.9, calc(1 - var(--toast-index) * 0.05))`,g=e.expanded?`1`:h,_=e.expanded?`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-offset-y, 0px) + var(--toast-index, 0) * ${xZ}))`:`calc(var(--toast-swipe-movement-y, 0px) - ${m} * (var(--toast-index, 0) * ${SZ} + (1 - ${h}) * var(--toast-frontmost-height, var(--toast-height, 0px))))`,v=`0px`,y=`0px`,b=g;return(u||l)&&!f&&(p.filter=TZ,n||(y=`${m*100}%`,b=`calc(${g} * ${wZ})`)),f===`down`&&(y=`100%`),f===`up`&&(y=`-100%`),f===`right`&&(v=`100%`),f===`left`&&(v=`-100%`),p.transform=`translateX(calc(var(--toast-swipe-movement-x, 0px) + ${v})) translateY(calc(${_} + ${y})) scale(${b})`,p.transformOrigin=t===`top`?`top`:`bottom`,p}function IZ(e,t){return typeof e==`function`?e(t):e}function LZ({progressBar:e=!0,...t}){let n=t.timeout??DZ,r=H.useMemo(()=>({timeout:n,progressBar:e}),[n,e]);return(0,G.jsx)(AZ,{value:r,children:(0,G.jsx)(IX,{...t})})}var RZ=zX;function zZ(e){return(0,G.jsx)(yh,{children:(0,G.jsx)(BZ,{...e})})}function BZ({ref:e,style:t,transition:n,exitTransition:r,progressBar:i,children:a,onPointerDown:o,onPointerMove:s,onPointerUp:c,onPointerCancel:l,...u}){let{toast:d}=u,f=Ch(),p=fh(),m=H.use(AZ),h=d.positionerProps!=null,g=gh(dh(n??(h?wh:Aq))),_=gh(dh(r??(h?n??wh:Oq))),v=gh(dh(EZ)),y=MZ(u.swipeDirection),b=NZ(y),x=PZ(),S=p.stagger.stack*1e3,C=H.useRef(null),w=H.useRef(null);H.useLayoutEffect(()=>{let e=C.current,t=e&&ZY(e);t&&iX(t,d.type,p.transition.check.delay,p,f)},[]);let T=H.useRef(d.type),E=e=>{let t=T.current!==d.type;T.current=d.type,dX(C.current,e,t,d.type,p,g,f)},D=i??m.progressBar,O=d.timeout??m.timeout;return(0,G.jsx)(nX,{watch:[d.type,d.title,d.description],take:()=>tX(C.current),onUpdate:E,children:(0,G.jsxs)(nZ,{...u,ref:YY(e,C),onPointerDown:e=>{o?.(e),e.button===0&&(w.current=yX(e))},onPointerMove:e=>{s?.(e),w.current&&bX(w.current,e,y)},onPointerUp:e=>{c?.(e);let t=w.current;t?.pointerId===e.pointerId&&(t.releasedAt=e.timeStamp)},onPointerCancel:e=>{l?.(e),w.current=null},style:e=>{let n=x(e.expanded)&&!f?`calc(var(--toast-index, 0) * ${S}ms)`:void 0,r=w.current;return{...FZ(e,{side:b,reduce:f,anchored:h,enter:g,exit:_,cascade:n,swipe:e.swiping&&r?SX(r,y):null,thrown:e.transitionStatus===`ending`&&e.swipeDirection&&r?CX(r,e.swipeDirection):null}),...D&&{"--animate-ui-toast-fade-duration":`${v.duration}ms`,"--animate-ui-toast-fade-ease":v.easing,"--animate-ui-toast-cascade":n??`0ms`},...IZ(t,e)}},children:[a,D&&!h&&(0,G.jsx)(WZ,{duration:O,running:d.type!==`loading`&&O>0,ending:d.transitionStatus===`ending`})]})})}function VZ(e){return window.addEventListener(`focus`,e,!0),window.addEventListener(`blur`,e,!0),()=>{window.removeEventListener(`focus`,e,!0),window.removeEventListener(`blur`,e,!0)}}var HZ=`--animate-ui-toast-progress-color`,UZ=`data-tinted`;function WZ({duration:e,running:t,ending:n}){let r=H.useRef(null),i=H.useRef(null),a=H.useSyncExternalStore(VZ,()=>document.hasFocus(),()=>!0),o=H.useRef({ending:n,windowFocused:a}),s=()=>r.current?.parentElement?.parentElement??null,c=H.useCallback(()=>{let e=i.current,t=s();if(!e||!t)return;let n=o.current.ending||!o.current.windowFocused||t.hasAttribute(`data-expanded`);n&&e.playState===`running`&&e.pause(),!n&&e.playState===`paused`&&e.play()},[]);return H.useLayoutEffect(()=>{let n=r.current;if(!t||!n)return;let a=n.animate([{transform:`scaleX(1)`},{transform:`scaleX(0)`}],{duration:e,easing:`linear`,fill:`forwards`});i.current=a;let o=s(),l=o?.querySelector(`[data-slot="toast-icon"] > *`),u=l&&o?getComputedStyle(l).color:null;return u&&u!==getComputedStyle(o).color?(n.style.setProperty(HZ,u),n.setAttribute(UZ,``)):(n.style.removeProperty(HZ),n.removeAttribute(UZ)),c(),()=>{a.cancel(),i.current=null}},[t,e,c]),H.useLayoutEffect(()=>{let e=s();if(!t||!e)return;let n=new MutationObserver(c);return n.observe(e,{attributeFilter:[`data-expanded`]}),()=>n.disconnect()},[t,c]),H.useLayoutEffect(()=>{o.current={ending:n,windowFocused:a},c()},[c,n,a]),t?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`style`,{href:kZ,precedence:`animate-ui`,children:EX}),(0,G.jsx)(`div`,{[wX]:``,"aria-hidden":`true`,children:(0,G.jsx)(`div`,{ref:r,[TX]:``})})]}):null}function GZ({style:e,transition:t,...n}){let r=Ch(),i=PZ(),a=fh().stagger.stack*1e3,o=gh(dh(t??EZ));return(0,G.jsx)(rZ,{...n,style:t=>({...jZ([`opacity`],o,i(t.expanded)&&!r?`calc(var(--toast-index, 0) * ${a}ms)`:void 0),...IZ(e,t)})})}var KZ=cZ,qZ=lZ,JZ=uZ,YZ=dZ,XZ=pZ,ZZ=gZ,QZ=_Z,$Z=vZ,eQ=yZ,tQ=new Set,nQ=new Set,rQ=0;async function iQ(e,t,n,r=()=>t){rQ++;let i=Promise.resolve().then(n);nQ.add(i);try{let t=await i,n=r(t);if(n.length)for(let t of tQ)t({kind:e,ids:n});return t}finally{nQ.delete(i)}}async function aQ(e,t){let n=[],r=[],i;for(let a of new Set(e)){let e=await t(a).catch(()=>`failed`);e===`trashed`&&n.push(a),e===`trashed`||e===`missing`?r.push(a):i??=e}return{trashed:n,done:r,error:i}}var oQ;function sQ(e){oQ&&(e??document.body).append(oQ)}var cQ,lQ=bZ.createToastManager();async function uQ(e,t){return(await dQ([e],t,!1)).includes(e)}async function dQ(e,t,n=!0){let r=await iQ(`trash`,e,()=>aQ(e,e=>window.yogurt.meetings.trash(e)),e=>e.done),i=r.error===`recording`?U(`Stop the recording first, then try again.`):r.error===`save-pending`?U(`Open this note and finish saving before deleting it.`):r.error?U(`Yogurt couldn't move this note to the Trash. Try again.`):void 0;return(r.trashed.length||i)&&cQ?.({ids:r.trashed,from:t,bulk:n,error:i}),r.done}function fQ({id:e,recording:t,anchor:n,onSource:r}){let[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(),[c,l]=(0,H.useState)(0),[u,d]=(0,H.useState)(!1),[f,p]=(0,H.useState)(()=>window.matchMedia(`(max-width: 999px)`).matches),m=(0,H.useRef)(null),h=(0,H.useRef)(null),g=(0,H.useRef)(null),_=(0,H.useRef)(null),v=(0,H.useRef)([]),y=(0,H.useRef)(!1),b=(0,H.useRef)(!1);(0,H.useEffect)(()=>{a(!1),s(void 0),d(!1),b.current=!1},[e]),(0,H.useEffect)(()=>{let e=window.matchMedia(`(max-width: 999px)`),t=()=>p(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,H.useEffect)(()=>{if(!i||o)return;let t=!0;return window.yogurt.conversations.current([{kind:`meeting`,id:e}]).then(e=>{t&&s(e)}).catch(()=>{t&&d(!0)}),()=>{t=!1}},[i,e,o]);let x=(e,t=!0)=>{let n=g.current,r=_.current,i=h.current,a=m.current;if(!n||!r||!i||!a)return;let o=v.current.some(e=>e.playState===`running`),s=getComputedStyle(n),c={left:s.left,top:s.top,width:s.width,height:s.height,borderRadius:s.borderRadius,shell:s.opacity,dialog:getComputedStyle(i).opacity,body:getComputedStyle(r).opacity,clip:getComputedStyle(r).clipPath,button:getComputedStyle(a).opacity};if(v.current.forEach(e=>e.cancel()),v.current=[],!t)return;if(window.matchMedia(`(prefers-reduced-motion: reduce)`).matches){let t=i.animate([{opacity:o?c.dialog:+!e},{opacity:+!!e}],{duration:Of.micro,easing:Of.ease,fill:`both`});return v.current=[t],t}let l=a.getBoundingClientRect(),u=i.getBoundingClientRect(),d=r.getBoundingClientRect(),f=parseFloat(getComputedStyle(a).borderRadius),p={left:`${l.x-u.x-1}px`,top:`${l.y-u.y-1}px`,width:`${l.width}px`,height:`${l.height}px`,borderRadius:`${f}px`},y={left:`-1px`,top:`-1px`,width:`calc(100% + 2px)`,height:`calc(100% + 2px)`,borderRadius:`12px`},b=`inset(${l.top+1-d.top}px ${d.right-l.right+1}px ${d.bottom-l.bottom+1}px ${l.left+1-d.left}px round ${Math.max(0,f-1)}px)`,x=`inset(0px round 11px)`,S=e?Of.base:Of.askExit,C=Of.ease,w=Of.micro,T=n.animate([o?{left:c.left,top:c.top,width:c.width,height:c.height,borderRadius:c.borderRadius}:e?p:y,e?y:p],{duration:S,easing:C,fill:`both`}),E=r.animate([{clipPath:o&&c.clip!==`none`?c.clip:e?b:x},{clipPath:e?x:b}],{duration:S,easing:C,fill:e?`backwards`:`forwards`}),D=r.animate([{opacity:o?c.body:+!e},{opacity:+!!e}],{duration:Of.micro,easing:C,fill:`both`}),O={duration:w,delay:e?0:S-w,easing:C,fill:`both`},k=n.animate([{opacity:o?c.shell:+!e},{opacity:+!!e}],O),A=a.animate([{opacity:o?c.button:+!!e},{opacity:+!e}],O);return v.current=[T,E,D,k,A],T};(0,H.useEffect)(()=>()=>v.current.forEach(e=>e.cancel()),[]),(0,H.useLayoutEffect)(()=>{if(!i||!n||!h.current)return;let e=h.current,t=()=>{let t=n.getBoundingClientRect();e.style.setProperty(`--chat-bottom`,`${Math.max(16,innerHeight-t.bottom+12)}px`),e.style.setProperty(`--chat-height`,`${f?440:Math.max(0,t.height-24)}px`)};t(),f?e.showModal():e.show(),sQ(f?e:null),e.querySelector(`textarea`)?.focus({preventScroll:!0}),x(!0,y.current),y.current=!1;let r=new ResizeObserver(t);return r.observe(n),window.addEventListener(`resize`,t),()=>{r.disconnect(),window.removeEventListener(`resize`,t),sQ(null),e.close()}},[i,f,n]);let S=(e=!0)=>{if(b.current)return;b.current=!0;let t=x(!1,e),n=()=>{b.current&&(b.current=!1,h.current?.close(),a(!1),m.current?.focus({preventScroll:!0}))};t?t.finished.then(n,()=>{}):n()},C=i&&(0,G.jsxs)(`dialog`,{id:`meeting-chat`,ref:h,"data-testid":`chat-panel`,className:`chat-panel no-drag`,"aria-labelledby":`meeting-chat-title`,"aria-modal":f||void 0,onKeyDown:e=>{e.key!==`Escape`||e.defaultPrevented||h.current?.querySelector(`.citation-card:not([data-ending-style])`)||e.target.closest(`[role="alertdialog"], [role="dialog"], [role="menu"]`)||(e.preventDefault(),e.stopPropagation(),S())},onCancel:e=>{e.preventDefault(),S()},children:[(0,G.jsx)(`div`,{ref:g,className:`chat-morph-surface`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{ref:_,className:`chat-panel-contents`,children:[u&&(0,G.jsx)(`p`,{role:`alert`,children:U(`Yogurt couldn't answer that.`)}),(0,G.jsx)(fY,{id:o??``,pendingDraftKey:`meeting/${e}`,loadError:u,panel:!0,recording:t,onSelect:e=>{s(e),l(e=>e+1)},onClose:()=>S(),onExpand:o?()=>{Iv(),S(!1),window.yogurt.nav.go(`/chat/${o}`)}:void 0,onDeleted:()=>{S(!1),s(void 0),window.yogurt.nav.go(`/chat`)},onSource:(e,t)=>{S(!1),r(e,t)}},`${e}/${c}`)]})]});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{id:`meeting-ask`,ref:m,"data-testid":`chat-open`,className:`chat-trigger`,type:`button`,"aria-expanded":i,"aria-controls":`meeting-chat`,title:Tv()?U(`Ask Yogurt (⌘J)`):`${U(`Ask Yogurt`)} (${Cv(`⌘J`)})`,onClick:()=>{i&&!b.current?S():(b.current&&(b.current=!1,x(!0)),y.current=!0,d(!1),a(!0),h.current?.querySelector(`textarea`)?.focus({preventScroll:!0}))},children:[(0,G.jsx)(YG,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`Ask Yogurt`)}),(0,G.jsx)(`kbd`,{"aria-hidden":`true`,children:Cv(`⌘J`)})]}),n&&(0,Oe.createPortal)(C,n)]})}function pQ(e){let t=Math.max(0,Math.floor(e/1e3)),n=String(t%60).padStart(2,`0`),r=Math.floor(t/60);return r>=60?`${Math.floor(r/60)}:${String(r%60).padStart(2,`0`)}:${n}`:`${r}:${n}`}var mQ=60,hQ=220,gQ=class{target=0;level=0;step(e){let t=this.target>this.level?mQ:hQ;this.level+=(this.target-this.level)*(1-Math.exp(-e/t))}settled(){return this.target!==0||this.level>=.002?!1:(this.level=0,!0)}};function _Q(e){let t=e.paused||e.reduced;if(t&&!e.stillBars)return{heights:[0,0,0],alpha:[.5,.5,.5]};let n=e.bars===3?[.75,1,.75]:[.5,.75,1,.75,.5],r=t?.7:e.level;return{heights:n.map(e=>e*r),alpha:n.map(()=>.45+.55*r)}}var vQ=(e,t)=>e.heights.map(e=>Math.round(e*t)).join()+`|`+Math.round(e.alpha[0]*100),yQ=e=>Number.isFinite(e.me)?Math.max(0,Math.min(1,(e.me-.15)/.65)):0,bQ=3,xQ=3,SQ=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`);function CQ({height:e,className:t,testId:n,paused:r=!1,bars:i=5,stillBars:a=!1}){let o=(0,H.useRef)(null),s=i*bQ+(i-1)*xQ;return(0,H.useEffect)(()=>{let t=o.current;if(!t)return;let n=new gQ,c=SQ(),l=window.devicePixelRatio||1,u=c.matches;t.width=s*l,t.height=e*l;let d=getComputedStyle(t).color,f=``,p=(o=!1)=>{let c=t.getContext(`2d`);if(!c)return;let p=_Q({reduced:u,paused:r,level:n.level,bars:i,stillBars:a}),m=vQ(p,e-bQ);(o||m!==f)&&(f=m,c.setTransform(l,0,0,l,0,0),c.clearRect(0,0,s,e),c.fillStyle=d,p.heights.forEach((t,n)=>{let r=bQ+Math.round(t*(e-bQ));c.globalAlpha=p.alpha[n],c.beginPath();let i=(s-p.heights.length*bQ-(p.heights.length-1)*xQ)/2;c.roundRect(i+n*6,(e-r)/2,bQ,r,bQ/2),c.fill()}),c.globalAlpha=1,t.dataset.level=n.level.toFixed(2))},m=performance.now(),h=window.yogurt.widget.onLevel(e=>{n.target=yQ(e),m=performance.now(),u?(n.level=n.target,p()):n.target>0&&x()}),g=0,_=performance.now(),v=e=>{e||(cancelAnimationFrame(g),g=0),t.dataset.live=e?`1`:`0`},y=e=>{let t=Math.min(100,e-_);_=e,e-m>300&&(n.target=0),n.step(t),n.settled()?(p(!0),v(!1)):(p(),g=requestAnimationFrame(y))},b=()=>{_=performance.now(),g=requestAnimationFrame(y),v(!0)},x=()=>{g||u||r||document.visibilityState!==`visible`||b()},S=()=>{v(!1),!u&&!r&&document.visibilityState===`visible`&&b(),p(!0)},C=()=>{u=c.matches,S()},w=()=>{document.visibilityState===`visible`?x():v(!1)},T=()=>{d=getComputedStyle(t).color,p(!0)},E=window.matchMedia(`(prefers-color-scheme: dark)`);return c.addEventListener(`change`,C),E.addEventListener(`change`,T),document.addEventListener(`visibilitychange`,w),S(),()=>{h(),cancelAnimationFrame(g),c.removeEventListener(`change`,C),E.removeEventListener(`change`,T),document.removeEventListener(`visibilitychange`,w)}},[e,s,r,i,a]),(0,G.jsx)(`canvas`,{ref:o,"data-testid":n,"aria-hidden":`true`,className:t,style:{width:s,height:e}})}function wQ({view:e,testId:t=`note-elapsed`,className:n=`note-elapsed`}){let[r,i]=(0,H.useState)(`—`);return(0,H.useEffect)(()=>{if(!e){i(`—`);return}let t=()=>i(pQ(e.elapsedMs+(e.kind===`recording`&&!e.paused?Math.max(0,Date.now()-e.at):0)));if(t(),e.kind!==`recording`||e.paused)return;let n=setInterval(t,250);return()=>clearInterval(n)},[e]),(0,G.jsx)(`time`,{"data-testid":t,className:n,"aria-label":U(`Recorded time`),children:r})}function TQ(e,t,n=!1){return e===`mine`?{side:`mine`,writing:!1,fellBack:!1}:t===`waiting`||t===`writing`?{side:`enhanced`,writing:!0,fellBack:!1}:t===`failed`&&!n||t===`empty`?{side:`mine`,writing:!1,fellBack:!0}:{side:`enhanced`,writing:!1,fellBack:!1}}function EQ({id:e,shown:t,status:n,hasEnhanced:r,beforeUse:i}){let[a,o]=(0,H.useState)(!1),s=Nf(a),[c,l]=(0,H.useState)(),u=(0,H.useRef)(null),d=(0,H.useRef)(null),f=(0,H.useRef)([]),p=(0,H.useRef)(void 0),m=TQ(t,n,r),h=(0,H.useCallback)((e,t=`notice`)=>{l({text:e,kind:t}),clearTimeout(p.current),p.current=setTimeout(()=>l(void 0),2e3)},[]);(0,H.useEffect)(()=>(l(void 0),o(!1),()=>clearTimeout(p.current)),[e]);let{side:g,writing:_,fellBack:v}=m,y=(0,H.useCallback)(async(a,o=t)=>{let{side:s,writing:c,fellBack:l}=TQ(o,n,r);if(a===`notes`&&c){h(U(`Still generating your summary`));return}if(a===`notes`&&!await i()){h(U(`Couldn't save your latest changes. Try again before copying.`),`error`);return}let u=await window.yogurt.share.copy(e,a,s);h(U(u===`failed`?`Couldn't copy. Try again.`:u===`nothing`?`Nothing to copy yet`:a===`notes`&&l?`Copied your notes`:`Copied`),u===`failed`?`error`:u===`nothing`?`notice`:`copied`)},[e,t,n,r,i,h]),b=async()=>{if(_){h(U(`Still generating your summary`));return}if(!await i()){h(U(`Couldn't save your latest changes. Try again before exporting.`),`error`);return}let t=await window.yogurt.share.save(e,g);t===`saved`?h(U(v?`Saved your notes`:`Saved`),`saved`):t===`failed`&&h(U(`Couldn't save the file`),`error`)},x=e=>{o(!1),d.current?.focus(),e()};(0,H.useEffect)(()=>{let e=e=>{!e.repeat&&wv(e)&&e.shiftKey&&!e.altKey&&!(Tv()&&e.ctrlKey)&&e.key.toLowerCase()===`c`&&(e.preventDefault(),y(`notes`))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,H.useEffect)(()=>{if(!a)return;f.current[0]?.focus();let e=e=>{u.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]);let S=e=>{let t=f.current.filter(e=>e&&!e.disabled),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),o(!1),d.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&(o(!1),d.current?.focus())},C=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,w=c?.kind===`copied`;return(0,G.jsxs)(`div`,{ref:u,className:`relative flex items-center gap-1.5`,children:[(0,G.jsx)(`span`,{"data-testid":`share-said`,"data-tone":c?.kind,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`pointer-events-none absolute end-0 top-full z-20 mt-2 flex w-max max-w-[min(280px,calc(100vw-48px))] items-start gap-1.5 rounded-md text-xs text-muted ${c?`border border-line bg-float px-2.5 py-1.5 shadow-[var(--shadow-soft)]`:``}`,children:c&&(0,G.jsxs)(G.Fragment,{children:[(c.kind===`copied`||c.kind===`saved`)&&(0,G.jsx)(yg,{"data-testid":`share-success`,size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0`}),c.kind===`error`&&(0,G.jsx)(kg,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-px shrink-0 text-danger`}),c.text]})}),(0,G.jsxs)(`button`,{ref:d,"data-testid":`share-button`,"data-state":w?`copied`:`idle`,"aria-haspopup":`menu`,"aria-expanded":!!a,title:U(`Copy and export`),onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-record-action share-btn`,children:[(0,G.jsx)(iK,{size:13,strokeWidth:1.75,"aria-hidden":`true`}),U(`Copy`),(0,G.jsx)(xg,{size:12,strokeWidth:1.75,"aria-hidden":`true`})]}),s.value&&(0,G.jsxs)(`div`,{"data-testid":`share-menu`,...s.props,role:`menu`,"aria-label":U(`Copy and export`),onKeyDown:S,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-60 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{ref:e=>{f.current[0]=e},role:`menuitem`,"data-testid":`share-copy-notes`,onClick:()=>x(()=>void y(`notes`,`mine`)),className:C,children:[(0,G.jsx)(iK,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),(0,G.jsx)(`span`,{className:`flex-1`,children:U(`Copy my notes`)})]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[1]=e},role:`menuitem`,"data-testid":`share-copy-summary`,disabled:!r&&!_,onClick:()=>x(()=>void y(`notes`,`enhanced`)),className:`${C} disabled:opacity-40`,children:[(0,G.jsx)(iK,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Copy summary`)]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[2]=e},role:`menuitem`,"data-testid":`share-copy-transcript`,onClick:()=>x(()=>void y(`transcript`)),className:C,children:[(0,G.jsx)(iK,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Copy transcript`)]}),(0,G.jsxs)(`button`,{ref:e=>{f.current[3]=e},role:`menuitem`,"data-testid":`share-export`,onClick:()=>x(()=>void b()),className:C,children:[(0,G.jsx)(Vg,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Export Markdown…`)]})]})]})}var DQ=H.createContext(void 0);function OQ(e){let t=H.useContext(DQ);if(t===void 0&&!e)throw Error(TH(72));return t}var kQ={...dU,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,appliedTriggerProps:(e,t)=>t?e.activeTriggerProps:void 0,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},AQ=class extends nU{constructor(e,t,n){let r=new YH;super(jQ(e,r,t,n),MQ(r),kQ)}setOpen=(e,t)=>{UH(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,qz(Yz,e))}};function jQ(e,t,n,r=!1){return{...aU(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function MQ(e){return{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var NQ=rz(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=LH((e,t)=>new AQ({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),GH(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=KH(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=H.useRef(null);Y(()=>{m&&t&&p.setOpen(!1,qz(oae))},[m,t,p]),Y(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),Y(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),H.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,qz(nB))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,G.jsxs)(DQ.Provider,{value:p,children:[l&&(0,G.jsx)(RH,{handle:l,store:p}),T&&(0,G.jsx)(PQ,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function PQ({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=CH(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=bH(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=H.useMemo(()=>vV(a.reference,i.reference),[a.reference,i.reference]);return qH(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??sz}),null}var FQ=H.createContext(void 0);function IQ(){return H.useContext(FQ)}var LQ=`data-base-ui-tooltip-trigger`;function RQ(e){let t=Dz(e);return fL(t)?t:null}var zQ=iz(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=OQ(!0),m=fU(a)??p;if(!m)throw Error(TH(82));let h=hW(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=H.useRef(null),b=u??0,{registerTrigger:x,isMountedByThisTrigger:S}=WH(h,y,m,{payload:o,closeOnClick:l,closeDelay:b}),C=IQ(),{activeIdRef:w,delayRef:T,isInstantPhase:E,hasProvider:D}=lae(v,{open:_}),O=bU(v);m.useSyncedValue(`isInstantPhase`,E);let k=m.useState(`disabled`),A=s??k,j=cB(A),M=m.useState(`trackCursorAxis`),N=m.useState(`disableHoverablePopup`),P=H.useRef(!1),F=dz(),I=H.useRef(void 0);function L(){return D&&w.current!=null?0:c??C??600}function R(e){let t=y.current;if(!t||!e)return!1;let n=Ez(e,`[${LQ}]`);return n!==null&&n!==t&&Tz(t,n)}function ee(e){let t=R(e);return P.current=t,t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,F.clear()),t}let z=CU(v,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!N&&M!==`both`?zU():null,restMs:L,delay(){return u==null&&D?{close:Wz(T.current,`close`)}:{close:b}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!P.current}}),te=hU(v,{enabled:!A}).reference,ne=e=>{let t=P.current,n=RQ(e),r=ee(n),i=y.current,a=i&&n&&Tz(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,qz(Xz,e));else if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Cz(I.current)){let t=()=>{P.current||j.current||m.select(`open`)||m.setOpen(!0,qz(Xz,e,i))},n=L();n===0?(F.clear(),t()):F.start(n,t)}},re=m.useState(`appliedTriggerProps`,S||M!==`none`);return jV(`button`,e,{state:{open:_},ref:[t,x,y],props:[z,te,re,{onMouseOver(e){ne(e.nativeEvent)},onFocus(e){R(RQ(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){P.current=!1,F.clear(),I.current=void 0},onPointerEnter(e){I.current=e.pointerType},onPointerDown(e){I.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[Lz]:A?``:void 0,[LQ]:A?void 0:``},f],stateAttributesMapping:Nz})}),BQ=H.createContext(void 0);function VQ(){let e=H.useContext(BQ);if(e===void 0)throw Error(TH(70));return e}var HQ=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return OQ().useState(`mounted`)||n?(0,G.jsx)(BQ.Provider,{value:n,children:(0,G.jsx)(fZ,{ref:t,...r})}):null}),UQ=H.createContext(void 0);function WQ(){let e=H.useContext(UQ);if(e===void 0)throw Error(TH(71));return e}var GQ=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=GV,style:g,..._}=e,v=OQ(),y=VQ(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=WW({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=XW(e,H.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,G.jsx)(UQ.Provider,{value:D,children:O})}),KQ=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=OQ(),{side:s,align:c}=WQ(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);NH({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),xU(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return jV(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[FH,f,YW(d),a],stateAttributesMapping:Iz})});function qQ({active:e,edited:t,disabled:n,hasSummary:r,onClose:i,onSubmit:a}){let[o,s]=(0,H.useState)(``);(0,H.useLayoutEffect)(()=>{e&&s(``)},[e]);let c=U(r?`Regenerate summary`:`Generate summary`);return(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),n||a(o.trim())},children:[(0,G.jsxs)(`div`,{className:`summary-regenerate-heading`,children:[(0,G.jsx)(`span`,{children:c}),(0,G.jsx)(`button`,{type:`button`,className:`bar-btn`,"aria-label":U(`Close`),onClick:i,children:(0,G.jsx)(av,{size:14,"aria-hidden":`true`})})]}),(0,G.jsx)(`input`,{autoFocus:!0,"data-testid":`note-regenerate-input`,className:`summary-regenerate-input`,"aria-label":U(`Note for the summary`),placeholder:U(`Add a note, like shorter or in Spanish`),maxLength:240,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{e.key===`Enter`&&e.nativeEvent.isComposing&&e.preventDefault()}}),t&&(0,G.jsx)(`p`,{id:`note-rewrite-description`,"data-testid":`note-confirm`,className:`summary-regenerate-warning`,children:U(`Your edits to the summary will be replaced.`)}),(0,G.jsx)(`div`,{className:`summary-regenerate-actions`,children:(0,G.jsx)(`button`,{"data-testid":`note-write-again-confirm`,type:`submit`,disabled:n,className:`workspace-button primary`,children:U(r?`Regenerate`:`Generate summary`)})})]})}function JQ({hasSummary:e,hasContent:t,recording:n,busy:r,downloading:i,trashed:a}){if(!(a||!e&&!t))return{label:U(e?`Regenerate summary`:`Generate summary`),reason:n?U(`Available after recording`):i?U(`Waiting for Yogurt AI to download`):r?U(`Writing the summary`):void 0}}function YQ({recording:e,savePending:t,onRename:n,onDelete:r,folders:i,trashed:a,generation:o,hasSummary:s,edited:c,rewriteOpen:l,setRewriteOpen:u,onWriteAgain:d}){let[f,p]=(0,H.useState)(!1),m=Nf(l&&o?`rewrite`:f),[h,g]=(0,H.useState)(!1),_=(0,H.useRef)(null),v=(0,H.useRef)(null),y=(0,H.useRef)(null),b=(e=!0)=>{p(!1),u(!1),e&&v.current?.focus({preventScroll:!0})};(0,H.useEffect)(()=>{o||u(!1)},[!!o]),(0,H.useEffect)(()=>{if(l&&_.current?.querySelector(`input`)?.focus({preventScroll:!0}),!f&&!l){m.value||g(!1);return}l||y.current?.focus();let e=e=>{_.current?.contains(e.target)||b(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[f,l,m.value]);let x=e=>{let t=Array.from(_.current?.querySelectorAll(`[role="menuitem"]:not(:disabled), [role="menuitemcheckbox"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),p(!1),v.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&p(!1)},S=e=>{p(!1),e()},C=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`;return(0,G.jsxs)(`div`,{ref:_,className:`relative`,children:[(0,G.jsx)(`button`,{ref:v,"data-testid":`note-menu-button`,"aria-haspopup":l?`dialog`:`menu`,"aria-expanded":!!f||l,"aria-label":U(`More`),title:U(`More`),onClick:e=>{l?b():p(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},className:`bar-btn grid size-7 place-items-center rounded-md text-muted`,children:(0,G.jsx)(Lg,{size:17,strokeWidth:1.75,"aria-hidden":`true`})}),m.value===`rewrite`?(0,G.jsx)(`div`,{role:`dialog`,"data-testid":`note-regenerate`,"aria-label":U(s?`Regenerate summary`:`Generate summary`),"aria-describedby":c?`note-rewrite-description`:void 0,...m.props,"data-anchor":`end`,className:`menu-entry summary-regenerate`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),b())},children:(0,G.jsx)(qQ,{active:l,hasSummary:s,edited:c,disabled:!o||!!o.reason,onClose:b,onSubmit:e=>{o&&!o.reason&&(b(),d(e))}})},`rewrite`):m.value&&(0,G.jsx)(`div`,{"data-testid":`note-menu`,...m.props,role:`menu`,"data-anchor":`end`,"aria-label":U(`More`),onKeyDown:x,className:`menu-entry absolute end-0 top-full z-30 mt-2 w-max min-w-60 max-w-[calc(100vw-32px)] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:h&&i?i(()=>{p(!1),v.current?.focus()}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`button`,{ref:y,role:`menuitem`,"data-testid":`note-rename`,onClick:()=>S(n),className:C,children:[(0,G.jsx)(F_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Rename`)]}),i&&(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-add-to-folder`,"aria-haspopup":`menu`,onClick:()=>{g(!0),requestAnimationFrame(()=>_.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus())},className:C,children:[(0,G.jsx)(Yg,{size:15,"aria-hidden":`true`,className:`text-muted`}),(0,G.jsx)(`span`,{className:`flex-1`,children:U(`Add to folder`)}),(0,G.jsx)(Tg,{size:14,"aria-hidden":`true`,className:`text-muted rtl:-scale-x-100`})]}),o&&(0,G.jsxs)(NQ,{disabled:!o.reason,children:[(0,G.jsxs)(zQ,{delay:180,closeOnClick:!1,role:`menuitem`,"data-testid":`note-write-again`,"aria-disabled":!!o.reason,"aria-description":o.reason,onClick:()=>{o.reason||(p(!1),u(!0))},className:`${C} whitespace-nowrap aria-disabled:opacity-50 aria-disabled:hover:bg-transparent`,children:[(0,G.jsx)(H_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),o.label]}),(0,G.jsx)(HQ,{children:(0,G.jsx)(GQ,{side:`left`,align:`center`,sideOffset:6,collisionPadding:12,className:`z-[80]`,children:(0,G.jsx)(KQ,{role:`tooltip`,className:`rounded-md border border-line bg-float px-2 py-1 text-xs whitespace-nowrap text-ink shadow-[var(--shadow)]`,children:o.reason})})})]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`note-delete`,disabled:e||t,onClick:()=>S(()=>{v.current?.focus(),r()}),className:`${C} text-danger`,children:[(0,G.jsx)(Z_,{size:15,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{className:`flex flex-col`,children:[U(a?`Delete forever`:`Delete note`),e&&(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:U(`Stop the recording first`)}),t&&(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:U(`Finish saving first`)})]})]})]})},`menu`)]})}function XQ({testId:e,warningTestId:t,className:n=``,children:r}){return(0,G.jsxs)(`div`,{"data-testid":e,"data-state":`failed`,role:`alert`,className:`inline-error ${n}`,children:[(0,G.jsx)($_,{"data-testid":t,size:15,strokeWidth:1.75,"aria-hidden":`true`}),r]})}function ZQ({id:e,title:t,onDone:n}){let[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(null),s=()=>n(!1),c=async()=>{i(!0),o(null);let t=await iQ(`delete`,[e],()=>window.yogurt.meetings.delete(e),t=>t===`deleted`||t===`missing`?[e]:[]).catch(()=>`failed`);i(!1),t===`deleted`||t===`missing`?n(!0):o(t)};return(0,G.jsxs)(KJ,{testId:`delete-confirm`,role:`alertdialog`,title:U(`Delete “{title}” forever?`,{title:t}),description:Ev({mac:U(`Its notes, transcript and recording are removed from this Mac for good.`),other:U(`Its notes, transcript and recording are removed from this computer for good.`)}),onCancel:s,busy:r,children:[a&&(0,G.jsx)(XQ,{testId:`delete-failed`,className:`inline-error-in-dialog`,children:(0,G.jsx)(`span`,{children:U(a===`recording`?`Stop the recording first, then try again.`:a===`save-pending`?`Open this note and finish saving before deleting it.`:`Yogurt couldn't finish deleting this note.`)})}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`delete-yes`,onClick:()=>void c(),disabled:r,className:`modal-button danger`,children:U(`Delete forever`)}),(0,G.jsx)(GJ,{"data-testid":`delete-cancel`,"data-dialog-cancel":!0,disabled:r,className:`modal-button`,children:U(`Cancel`)})]})]})}function QQ(e){return e.status===`waiting`||e.status===`writing`?e.enhanced!=null&&!/[\p{L}\p{N}]/u.test(e.draft)?`rewriting`:e.draft?`streaming`:`waiting`:e.enhanced==null?e.status===`failed`?`failed`:e.status===`empty`?`empty`:e.status===`stopped`?`stopped`:`saved`:`saved`}function $Q(e,t){let n=e?QQ(e):`saved`,r=e?.meetingId,[i,a]=(0,H.useState)({id:r,presentation:n,fading:!1,resetting:!1});return(i.id!==r||i.presentation!==n)&&a({id:r,presentation:n,resetting:t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`,fading:!t&&i.id===r&&i.presentation===`rewriting`&&n===`streaming`}),(0,H.useEffect)(()=>{if(i.resetting){let e=requestAnimationFrame(()=>a(e=>({...e,resetting:!1})));return()=>cancelAnimationFrame(e)}if(!i.fading)return;if(t){a(e=>({...e,fading:!1,resetting:!0}));return}let e=setTimeout(()=>a(e=>({...e,fading:!1,resetting:!0})),Of.micro);return()=>clearTimeout(e)},[i.fading,i.resetting,t,r]),i.resetting||i.fading&&t?`reset`:i.fading?`handoff`:n}var e$=1e3,t$=class{save;handoff;revision=0;pending;timer;flight;status=`saved`;reason;changed=()=>{};constructor(e,t){this.save=e,this.handoff=t}seed(e,t){!t||t.revision<this.revision||this.flight&&t.revision===this.revision||(t.revision!==this.revision||this.status!==`saved`||t.status!==`failed`)&&(this.revision=t.revision,t.status===`failed`?(this.pending={text:e,revision:t.revision},this.status=`failed`,this.reason=t.reason):this.pending&&this.pending.revision!==t.revision||(this.pending=void 0,this.status=`saved`,this.reason=void 0))}change(e){this.pending={text:e,revision:++this.revision},this.status=`saving`,this.reason=void 0,this.changed(),clearTimeout(this.timer),this.timer=setTimeout(()=>{this.flush()},e$)}acknowledge(e,t){this.pending?.revision===e.revision&&(t.revision===e.revision&&t.status===`saved`?(this.pending=void 0,this.status=`saved`):this.status=`failed`,this.reason=t.reason,this.changed())}flush(){if(clearTimeout(this.timer),this.flight)return this.flight;let e=this.pending;if(!e)return Promise.resolve(!0);this.status=`saving`,this.changed();let t;try{t=this.save(e)}catch{t=Promise.resolve({revision:e.revision,status:`failed`})}return this.flight=t.catch(()=>({revision:e.revision,status:`failed`})).then(t=>(this.acknowledge(e,t),this.flight=void 0,this.pending&&this.pending.revision>e.revision?this.flush():!this.pending)),this.flight}flushSync(){clearTimeout(this.timer);let e=this.pending;if(!e)return!0;try{let t=this.handoff(e);return this.acknowledge(e,t),t.status===`saved`||t.retained===!0}catch{return this.status=`failed`,this.changed(),!1}}dispose(){return clearTimeout(this.timer),this.changed=()=>{},this.flushSync()}},n$=new Set,r$=e=>(n$.add(e),()=>{e.dispose()&&n$.delete(e)}),i$=e=>e.trim().toLowerCase(),a$=(e,t)=>e||t.includes(`@`);function o$(e){let t=e.split(`@`)[0],n=t.replace(/[._-]+/g,` `).trim()||t;return n.charAt(0).toUpperCase()+n.slice(1)}function s$(e){let t=new Map,n=new Set([`gmail.com`,`outlook.com`,`hotmail.com`,`icloud.com`,`yahoo.com`,`proton.me`,`protonmail.com`,`mail.example`]);for(let r of e){let e=r.p.email?.trim().toLowerCase()??``,i=/^[^\s@]+@([^\s@]+\.[^\s@]+)$/.exec(e),a=i&&!n.has(i[1])?i[1]:``,o=a?a.split(`.`)[0].replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase()):``;t.has(a)||t.set(a,{domain:a,label:o,people:[]}),t.get(a).people.push(r)}return[...t.values()].sort((e,t)=>e.domain?t.domain?e.label.localeCompare(t.label):-1:1)}function c$(e){return e.trim().split(/\s+/).filter(Boolean).filter((e,t,n)=>t===0||t===n.length-1).map(e=>Array.from(e)[0]).join(``).toLocaleUpperCase()}var X;(function(e){e[e.AM=0]=`AM`,e[e.PM=1]=`PM`})(X||={});var l$;(function(e){e[e.SUNDAY=0]=`SUNDAY`,e[e.MONDAY=1]=`MONDAY`,e[e.TUESDAY=2]=`TUESDAY`,e[e.WEDNESDAY=3]=`WEDNESDAY`,e[e.THURSDAY=4]=`THURSDAY`,e[e.FRIDAY=5]=`FRIDAY`,e[e.SATURDAY=6]=`SATURDAY`})(l$||={});var u$;(function(e){e[e.JANUARY=1]=`JANUARY`,e[e.FEBRUARY=2]=`FEBRUARY`,e[e.MARCH=3]=`MARCH`,e[e.APRIL=4]=`APRIL`,e[e.MAY=5]=`MAY`,e[e.JUNE=6]=`JUNE`,e[e.JULY=7]=`JULY`,e[e.AUGUST=8]=`AUGUST`,e[e.SEPTEMBER=9]=`SEPTEMBER`,e[e.OCTOBER=10]=`OCTOBER`,e[e.NOVEMBER=11]=`NOVEMBER`,e[e.DECEMBER=12]=`DECEMBER`})(u$||={});function d$(e,t){e.assign(`day`,t.getDate()),e.assign(`month`,t.getMonth()+1),e.assign(`year`,t.getFullYear())}function f$(e,t){e.assign(`hour`,t.getHours()),e.assign(`minute`,t.getMinutes()),e.assign(`second`,t.getSeconds()),e.assign(`millisecond`,t.getMilliseconds()),e.assign(`meridiem`,t.getHours()<12?X.AM:X.PM)}function p$(e,t){e.imply(`day`,t.getDate()),e.imply(`month`,t.getMonth()+1),e.imply(`year`,t.getFullYear())}function m$(e,t){e.imply(`hour`,t.getHours()),e.imply(`minute`,t.getMinutes()),e.imply(`second`,t.getSeconds()),e.imply(`millisecond`,t.getMilliseconds()),e.imply(`meridiem`,t.getHours()<12?X.AM:X.PM)}var h$={ACDT:630,ACST:570,ADT:-180,AEDT:660,AEST:600,AFT:270,AKDT:-480,AKST:-540,ALMT:360,AMST:-180,AMT:-240,ANAST:720,ANAT:720,AQTT:300,ART:-180,AST:-240,AWDT:540,AWST:480,AZOST:0,AZOT:-60,AZST:300,AZT:240,BNT:480,BOT:-240,BRST:-120,BRT:-180,BST:60,BTT:360,CAST:480,CAT:120,CCT:390,CDT:-300,CEST:120,CET:{timezoneOffsetDuringDst:120,timezoneOffsetNonDst:60,dstStart:e=>_$(e,u$.MARCH,l$.SUNDAY,2),dstEnd:e=>_$(e,u$.OCTOBER,l$.SUNDAY,3)},CHADT:825,CHAST:765,CKT:-600,CLST:-180,CLT:-240,COT:-300,CST:-360,CT:{timezoneOffsetDuringDst:-300,timezoneOffsetNonDst:-360,dstStart:e=>g$(e,u$.MARCH,l$.SUNDAY,2,2),dstEnd:e=>g$(e,u$.NOVEMBER,l$.SUNDAY,1,2)},CVT:-60,CXT:420,ChST:600,DAVT:420,EASST:-300,EAST:-360,EAT:180,ECT:-300,EDT:-240,EEST:180,EET:120,EGST:0,EGT:-60,EST:-300,ET:{timezoneOffsetDuringDst:-240,timezoneOffsetNonDst:-300,dstStart:e=>g$(e,u$.MARCH,l$.SUNDAY,2,2),dstEnd:e=>g$(e,u$.NOVEMBER,l$.SUNDAY,1,2)},FJST:780,FJT:720,FKST:-180,FKT:-240,FNT:-120,GALT:-360,GAMT:-540,GET:240,GFT:-180,GILT:720,GMT:0,GST:240,GYT:-240,HAA:-180,HAC:-300,HADT:-540,HAE:-240,HAP:-420,HAR:-360,HAST:-600,HAT:-90,HAY:-480,HKT:480,HLV:-210,HNA:-240,HNC:-360,HNE:-300,HNP:-480,HNR:-420,HNT:-150,HNY:-540,HOVT:420,ICT:420,IDT:180,IOT:360,IRDT:270,IRKST:540,IRKT:540,IRST:210,IST:330,JST:540,KGT:360,KRAST:480,KRAT:480,KST:540,KUYT:240,LHDT:660,LHST:630,LINT:840,MAGST:720,MAGT:720,MART:-510,MAWT:300,MDT:-360,MESZ:120,MEZ:60,MHT:720,MMT:390,MSD:240,MSK:180,MST:-420,MT:{timezoneOffsetDuringDst:-360,timezoneOffsetNonDst:-420,dstStart:e=>g$(e,u$.MARCH,l$.SUNDAY,2,2),dstEnd:e=>g$(e,u$.NOVEMBER,l$.SUNDAY,1,2)},MUT:240,MVT:300,MYT:480,NCT:660,NDT:-90,NFT:690,NOVST:420,NOVT:360,NPT:345,NST:-150,NUT:-660,NZDT:780,NZST:720,OMSST:420,OMST:420,PDT:-420,PET:-300,PETST:720,PETT:720,PGT:600,PHOT:780,PHT:480,PKT:300,PMDT:-120,PMST:-180,PONT:660,PST:-480,PT:{timezoneOffsetDuringDst:-420,timezoneOffsetNonDst:-480,dstStart:e=>g$(e,u$.MARCH,l$.SUNDAY,2,2),dstEnd:e=>g$(e,u$.NOVEMBER,l$.SUNDAY,1,2)},PWT:540,PYST:-180,PYT:-240,RET:240,SAMT:240,SAST:120,SBT:660,SCT:240,SGT:480,SRT:-180,SST:-660,TAHT:-600,TFT:300,TJT:300,TKT:780,TLT:540,TMT:300,TVT:720,ULAT:480,UTC:0,UYST:-120,UYT:-180,UZT:300,VET:-210,VLAST:660,VLAT:660,VUT:660,WAST:120,WAT:60,WEST:60,WESZ:60,WET:0,WEZ:0,WFT:720,WGST:-120,WGT:-180,WIB:420,WIT:540,WITA:480,WST:780,WT:0,YAKST:600,YAKT:600,YAPT:600,YEKST:360,YEKT:360};function g$(e,t,n,r,i=0){let a=0,o=0;for(;o<r;)a++,new Date(e,t-1,a).getDay()===n&&o++;return new Date(e,t-1,a,i)}function _$(e,t,n,r=0){let i=n===0?7:n,a=new Date(e,t-1+1,1,12),o=a.getDay()===0?7:a.getDay(),s;return s=o===i?7:o<i?7+o-i:o-i,a.setDate(a.getDate()-s),new Date(e,t-1,a.getDate(),r)}function v$(e,t,n={}){if(e==null)return null;if(typeof e==`number`)return e;let r=n[e]??h$[e];return r==null?null:typeof r==`number`?r:t==null?null:t>r.dstStart(t.getFullYear())&&!(t>r.dstEnd(t.getFullYear()))?r.timezoneOffsetDuringDst:r.timezoneOffsetNonDst}var y$={day:0,second:0,millisecond:0};function b$(e,t){let n=new Date(e);if(t.y&&(t.year=t.y,delete t.y),t.mo&&(t.month=t.mo,delete t.mo),t.M&&(t.month=t.M,delete t.M),t.w&&(t.week=t.w,delete t.w),t.d&&(t.day=t.d,delete t.d),t.h&&(t.hour=t.h,delete t.h),t.m&&(t.minute=t.m,delete t.m),t.s&&(t.second=t.s,delete t.s),t.ms&&(t.millisecond=t.ms,delete t.ms),`year`in t){let e=Math.floor(t.year);n.setFullYear(n.getFullYear()+e);let r=t.year-e;r>0&&(t.month=t?.month??0,t.month+=r*12)}if(`quarter`in t){let e=Math.floor(t.quarter);n.setMonth(n.getMonth()+e*3);let r=t.quarter-e;r>0&&(t.month=t?.month??0,t.month+=r*3)}if(`month`in t){let e=Math.floor(t.month);n.setMonth(n.getMonth()+e);let r=t.month-e;r>0&&(t.week=t?.week??0,t.week+=r*4)}if(`week`in t){let e=Math.floor(t.week);n.setDate(n.getDate()+e*7);let r=t.week-e;r>0&&(t.day=t?.day??0,t.day+=Math.round(r*7))}if(`day`in t){let e=Math.floor(t.day);n.setDate(n.getDate()+e);let r=t.day-e;r>0&&(t.hour=t?.hour??0,t.hour+=Math.round(r*24))}if(`hour`in t){let e=Math.floor(t.hour);n.setHours(n.getHours()+e);let r=t.hour-e;r>0&&(t.minute=t?.minute??0,t.minute+=Math.round(r*60))}if(`minute`in t){let e=Math.floor(t.minute);n.setMinutes(n.getMinutes()+e);let r=t.minute-e;r>0&&(t.second=t?.second??0,t.second+=Math.round(r*60))}if(`second`in t){let e=Math.floor(t.second);n.setSeconds(n.getSeconds()+e);let r=t.second-e;r>0&&(t.millisecond=t?.millisecond??0,t.millisecond+=Math.round(r*1e3))}if(`millisecond`in t){let e=Math.floor(t.millisecond);n.setMilliseconds(n.getMilliseconds()+e)}return n}function x$(e){let t={};for(let n in e)t[n]=-e[n];return t}var S$=class e{instant;timezoneOffset;constructor(e,t){this.instant=e??new Date,this.timezoneOffset=t??null}static fromDate(t){return new e(t)}static fromInput(t,n){if(t instanceof Date)return e.fromDate(t);let r=t?.instant??new Date,i=v$(t?.timezone,r,n);return new e(r,i)}getDateWithAdjustedTimezone(){let e=new Date(this.instant);return this.timezoneOffset!==null&&e.setMinutes(e.getMinutes()-this.getSystemTimezoneAdjustmentMinute(this.instant)),e}getSystemTimezoneAdjustmentMinute(e,t){e||=new Date;let n=-e.getTimezoneOffset();return n-(t??this.timezoneOffset??n)}getTimezoneOffset(){return this.timezoneOffset??-this.instant.getTimezoneOffset()}},Z=class e{knownValues;impliedValues;reference;_tags=new Set;constructor(e,t){if(this.reference=e,this.knownValues={},this.impliedValues={},t)for(let e in t)this.knownValues[e]=t[e];let n=e.getDateWithAdjustedTimezone();this.imply(`day`,n.getDate()),this.imply(`month`,n.getMonth()+1),this.imply(`year`,n.getFullYear()),this.imply(`hour`,12),this.imply(`minute`,0),this.imply(`second`,0),this.imply(`millisecond`,0)}static createRelativeFromReference(t,n=y$){let r=b$(t.getDateWithAdjustedTimezone(),n),i=new e(t);return i.addTag(`result/relativeDate`),`hour`in n||`minute`in n||`second`in n||`millisecond`in n?(i.addTag(`result/relativeDateAndTime`),f$(i,r),d$(i,r),i.assign(`timezoneOffset`,t.getTimezoneOffset())):(m$(i,r),i.imply(`timezoneOffset`,t.getTimezoneOffset()),`day`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.assign(`weekday`,r.getDay())):`week`in n?(i.assign(`day`,r.getDate()),i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear()),i.imply(`weekday`,r.getDay())):(i.imply(`day`,r.getDate()),`month`in n?(i.assign(`month`,r.getMonth()+1),i.assign(`year`,r.getFullYear())):(i.imply(`month`,r.getMonth()+1),`year`in n?i.assign(`year`,r.getFullYear()):i.imply(`year`,r.getFullYear())))),i}get(e){return e in this.knownValues?this.knownValues[e]:e in this.impliedValues?this.impliedValues[e]:null}isCertain(e){return e in this.knownValues}getCertainComponents(){return Object.keys(this.knownValues)}imply(e,t){return e in this.knownValues||(this.impliedValues[e]=t),this}assign(e,t){return this.knownValues[e]=t,delete this.impliedValues[e],this}addDurationAsImplied(e){let t=b$(this.dateWithoutTimezoneAdjustment(),e);return(`day`in e||`week`in e||`month`in e||`year`in e)&&(this.delete([`day`,`weekday`,`month`,`year`]),this.imply(`day`,t.getDate()),this.imply(`weekday`,t.getDay()),this.imply(`month`,t.getMonth()+1),this.imply(`year`,t.getFullYear())),(`second`in e||`minute`in e||`hour`in e)&&(this.delete([`second`,`minute`,`hour`]),this.imply(`second`,t.getSeconds()),this.imply(`minute`,t.getMinutes()),this.imply(`hour`,t.getHours())),this}delete(e){typeof e==`string`&&(e=[e]);for(let t of e)delete this.knownValues[t],delete this.impliedValues[t]}clone(){let t=new e(this.reference);t.knownValues={},t.impliedValues={};for(let e in this.knownValues)t.knownValues[e]=this.knownValues[e];for(let e in this.impliedValues)t.impliedValues[e]=this.impliedValues[e];return t}isOnlyDate(){return!this.isCertain(`hour`)&&!this.isCertain(`minute`)&&!this.isCertain(`second`)}isOnlyTime(){return!this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)&&!this.isCertain(`year`)}isOnlyWeekdayComponent(){return this.isCertain(`weekday`)&&!this.isCertain(`day`)&&!this.isCertain(`month`)}isDateWithUnknownYear(){return this.isCertain(`month`)&&!this.isCertain(`year`)}isValidDate(){let e=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return e.setUTCFullYear(this.get(`year`)),!(e.getUTCFullYear()!==this.get(`year`)||e.getUTCMonth()!==this.get(`month`)-1||e.getUTCDate()!==this.get(`day`)||this.get(`hour`)!=null&&e.getUTCHours()!=this.get(`hour`)||this.get(`minute`)!=null&&e.getUTCMinutes()!=this.get(`minute`))}toString(){return`[ParsingComponents {
tags: ${JSON.stringify(Array.from(this._tags).sort())},
knownValues: ${JSON.stringify(this.knownValues)},
impliedValues: ${JSON.stringify(this.impliedValues)}},
- reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.get(`timezoneOffset`)??this.reference.timezoneOffset;if(e==null)return this.dateWithoutTimezoneAdjustment();let t=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return t.setUTCFullYear(this.get(`year`)),new Date(t.getTime()-e*6e4)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`));return e.setFullYear(this.get(`year`)),e}},GQ=class e{refDate;index;text;reference;start;end;constructor(e,t,n,r,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=r||new Z(e),this.end=i}clone(){let t=new e(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}};function KQ(e,t,n=`\\s{0,5},?\\s{0,5}`){let r=t.replace(/\((?!\?)/g,`(?:`);return`${e}${r}(?:${n}${r}){0,10}`}function qQ(e){let t;return t=e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e),t}function Q(e){return`(?:${qQ(e).sort((e,t)=>t.length-e.length).join(`|`).replace(/\./g,`\\.`)})`}function JQ(e){return e<100&&(e+=e>50?1900:2e3),e}function YQ(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);let i=HQ(r,{year:1}),a=HQ(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(a.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=a),r.getFullYear()}var XQ={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},ZQ={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},QQ={...ZQ,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},$Q={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},e$={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},t$={second:`second`,seconds:`second`,minute:`minute`,minutes:`minute`,hour:`hour`,hours:`hour`,day:`day`,days:`day`,week:`week`,weeks:`week`,month:`month`,months:`month`,quarter:`quarter`,quarters:`quarter`,year:`year`,years:`year`},n$={s:`second`,sec:`second`,second:`second`,seconds:`second`,m:`minute`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hour:`hour`,hours:`hour`,d:`day`,day:`day`,days:`day`,w:`week`,week:`week`,weeks:`week`,mo:`month`,mon:`month`,mos:`month`,month:`month`,months:`month`,qtr:`quarter`,quarter:`quarter`,quarters:`quarter`,y:`year`,yr:`year`,year:`year`,years:`year`,...t$},r$=`(?:${Q($Q)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function i$(e){let t=e.toLowerCase();return $Q[t]===void 0?t===`a`||t===`an`||t==`the`?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t):$Q[t]}var a$=`(?:${Q(e$)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function o$(e){let t=e.toLowerCase();return e$[t]===void 0?(t=t.replace(/(?:st|nd|rd|th)$/i,``),parseInt(t)):e$[t]}var s$=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[0-9]{2}(?!\\w|:\\d|\\s+(?:am|pm|o\\s*clock|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)))`;function c$(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):JQ(parseInt(e))}var l$=`(${r$})\\s{0,3}(${Q(n$)})`,u$=new RegExp(l$,`i`),d$=`(${r$})\\s{0,3}(${Q(t$)})`,f$=`\\s{0,5},?(?:\\s*and)?\\s{0,5}`,p$=KQ(`(?:(?:about|around)\\s{0,3})?`,l$,f$),m$=KQ(`(?:(?:about|around)\\s{0,3})?`,d$,f$);function h$(e){let t={},n=e,r=u$.exec(n);for(;r;)g$(t,r),n=n.substring(r[0].length).trim(),r=u$.exec(n);return Object.keys(t).length==0?null:t}function g$(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=i$(t[1]),r=n$[t[2].toLowerCase()];e[r]=n}var $=class{innerPatternHasChange(e,t){return this.innerPattern(e)!==t}patternLeftBoundary(){return`(\\W|^)`}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)||(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags)),this.cachedPattern}extract(e,t){let n=t[1]??``;t.index+=n.length,t[0]=t[0].substring(n.length);for(let e=2;e<t.length;e++)t[e-1]=t[e];return this.innerExtract(e,t)}},_$=RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${p$})(?=\\W|$)`,`i`),v$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${p$})(?=\\W|$)`,`i`),y$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${m$})(?=\\W|$)`,`i`),b$=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?y$:e.option.forwardDate?_$:v$}innerExtract(e,t){if(t[0].match(/^for\s*the\s*\w+/i))return null;let n=h$(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},x$=RegExp(`(?:on\\s{0,3})?(${a$})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)\\s{0,3}(${a$}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Q(QQ)})(?:(?:-|/|,?\\s{0,3})(${s$}(?!\\w)))?(?=\\W|$)`,`i`),S$=1,C$=2,w$=3,T$=4,E$=class extends ${innerPattern(){return x$}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=QQ[t[w$].toLowerCase()],i=o$(t[S$]);if(i>31)return t.index+=t[S$].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[T$]){let e=c$(t[T$]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[C$]){let e=o$(t[C$]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},D$=RegExp(`(${Q(QQ)})(?:-|/|\\s*,?\\s*)(${a$})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${a$})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${s$}))?(?=\\W|$)(?!\\:\\d)`,`i`),O$=1,k$=2,A$=3,j$=4,M$=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return D$}innerExtract(e,t){let n=QQ[t[O$].toLowerCase()],r=o$(t[k$]);if(r>31||this.shouldSkipYearLikeDate&&!t[A$]&&!t[j$]&&t[k$].match(/^\d{2}$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ENMonthNameMiddleEndianParser`);if(t[j$]){let e=c$(t[j$]);i.assign(`year`,e)}else{let t=YQ(e.refDate,r,n);i.imply(`year`,t)}if(!t[A$])return i;let a=o$(t[A$]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},N$=RegExp(`((?:in)\\s*)?(${Q(QQ)})\\s*(?:(?:,|-|of)?\\s*(${s$})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),P$=1,F$=2,I$=3,L$=class extends ${innerPattern(){return N$}innerExtract(e,t){let n=t[F$].toLowerCase();if(t[0].length<=3&&!ZQ[n])return null;let r=e.createParsingResult(t.index+(t[P$]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ENMonthNameParser`);let i=QQ[n];if(r.start.assign(`month`,i),t[I$]){let e=c$(t[I$]);r.start.assign(`year`,e)}else{let t=YQ(e.refDate,1,i);r.start.imply(`year`,t)}return r}},R$=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(QQ)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),z$=1,B$=2,V$=3,H$=4,U$=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return R$}innerExtract(e,t){let n=parseInt(t[z$]),r=parseInt(t[H$]),i=t[V$]?parseInt(t[V$]):QQ[t[B$].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},W$=RegExp(`((?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}))(?:\\s*[-.\\/,]?\\s*|\\s+of\\s+)(${Q(QQ)})(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),G$=1,K$=2,q$=class extends ${innerPattern(){return W$}innerExtract(e,t){let n=c$(t[G$]),r=QQ[t[K$].toLowerCase()],i=e.createParsingResult(t.index,t[0]);return i.start.imply(`day`,1),i.start.assign(`month`,r),i.start.assign(`year`,n),i.start.addTag(`parser/ENYearMonthNameParser`),i}},J$=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Y$=1,X$=2,Z$=class extends ${innerPattern(){return J$}innerExtract(e,t){if(/\d\/?$/.test(e.text.substring(0,t.index)))return null;let n=parseInt(t[X$]),r=parseInt(t[Y$]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}};function Q$(e,t,n,r){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function $$(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,`i`)}var e1=2,t1=3,n1=4,r1=5,i1=6,a1=class{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return`i`}primaryPatternLeftBoundary(){return`(^|\\s|T|\\b)`}primarySuffix(){return`(?!/)(?=\\W|$)`}followingSuffix(){return`(?!/)(?=\\W|$)`}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t[0].match(/^\d{4}/)?(t.index+=4,null):(t.index+=t[0].length,null);let r=t.index+t[1].length,i=t[0].substring(t[1].length),a=e.createParsingResult(r,i,n);t.index+=t[0].length;let o=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(o);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(e,s,a),a.end&&(a.text+=s[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(e,t,n=!1){let r=e.createParsingComponents(),i=0,a=null,o=parseInt(t[e1]);if(o>100){if(t[e1].length==4&&t[t1]==null&&!t[i1]||this.strictMode||t[t1]!=null)return null;i=o%100,o=Math.floor(o/100)}if(o>24)return null;if(t[t1]!=null){if(t[t1].length==1&&!t[i1])return null;i=parseInt(t[t1])}if(i>=60)return null;if(o>12&&(a=X.PM),t[i1]!=null){if(o>12)return null;let e=t[i1][0].toLowerCase();e==`a`&&(a=X.AM,o==12&&(o=0)),e==`p`&&(a=X.PM,o!=12&&(o+=12))}if(r.assign(`hour`,o),r.assign(`minute`,i),a===null?o<12?r.imply(`meridiem`,X.AM):r.imply(`meridiem`,X.PM):r.assign(`meridiem`,a),t[r1]!=null){let e=parseInt(t[r1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[n1]!=null){let e=parseInt(t[n1]);if(e>=60)return null;r.assign(`second`,e)}return r}extractFollowingTimeComponents(e,t,n){let r=e.createParsingComponents();if(t[r1]!=null){let e=parseInt(t[r1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[n1]!=null){let e=parseInt(t[n1]);if(e>=60)return null;r.assign(`second`,e)}let i=parseInt(t[e1]),a=0,o=-1;if(t[t1]==null?i>100&&(a=i%100,i=Math.floor(i/100)):a=parseInt(t[t1]),a>=60||i>24)return null;if(i>=12&&(o=X.PM),t[i1]!=null){if(i>12)return null;let e=t[i1][0].toLowerCase();e==`a`&&(o=X.AM,i==12&&(i=0,r.isCertain(`day`)||r.addDurationAsImplied({day:1}))),e==`p`&&(o=X.PM,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==X.AM?(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}return r.assign(`hour`,i),r.assign(`minute`,a),o>=0?r.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`hour`)>12?n.start.get(`hour`)-12>i?r.imply(`meridiem`,X.AM):i<=12&&(r.assign(`hour`,i+12),r.assign(`meridiem`,X.PM)):i>12?r.imply(`meridiem`,X.PM):i<=12&&r.imply(`meridiem`,X.AM),r.date().getTime()<n.start.date().getTime()&&r.addDurationAsImplied({day:1}),r}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)$/);if(t){let e=t[1];if(this.strictMode||e.includes(`.`)&&!e.match(/\d(\.\d{2})+$/)||parseInt(e)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],n=t[2];if(n.includes(`.`)&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24||parseInt(e)>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t||(this.cachedPrimaryTimePattern=Q$(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t),this.cachedPrimaryTimePattern}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t||(this.cachedFollowingTimePatten=$$(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t),this.cachedFollowingTimePatten}},o1=class extends a1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*`}primaryPrefix(){return`(?:(?:at|from)\\s*)??`}primarySuffix(){return`(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].endsWith(`night`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`afternoon`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].endsWith(`morning`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ENTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ENTimeExpressionParser`),r}},s1=RegExp(`(${p$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),c1=RegExp(`(${m$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),l1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?c1:s1}innerExtract(e,t){let n=h$(t[1]);return n?Z.createRelativeFromReference(e.reference,UQ(n)):null}},u1=RegExp(`(${p$})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,`i`),d1=RegExp(`(${m$})\\s{0,5}(later|after|from now)(?=\\W|$)`,`i`),f1=1,p1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?d1:u1}innerExtract(e,t){let n=h$(t[f1]);return n?Z.createRelativeFromReference(e.reference,n):null}},m1=class{refine(e,t){return t.filter(t=>this.isValid(e,t))}},h1=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0],i=null;for(let a=1;a<t.length;a++){i=t[a];let o=e.text.substring(r.index+r.text.length,i.index);if(!this.shouldMergeResults(o,r,i,e))n.push(r),r=i;else{let t=r,n=i,a=this.mergeResults(o,t,n,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${t} and ${n} into ${a}`)}),r=a}}return r!=null&&n.push(r),n}},g1=class extends h1{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,n.start.get(e))}),t.start.getCertainComponents().forEach(e=>{n.start.isCertain(e)||n.start.imply(e,t.start.get(e))})),t.start.date()>n.start.date()){let e=t.start.date(),r=n.start.date();n.start.isOnlyWeekdayComponent()&&HQ(r,{day:7})>e?(r=HQ(r,{day:7}),n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear())):t.start.isOnlyWeekdayComponent()&&HQ(e,{day:-7})<r?(e=HQ(e,{day:-7}),t.start.imply(`day`,e.getDate()),t.start.imply(`month`,e.getMonth()+1),t.start.imply(`year`,e.getFullYear())):n.start.isDateWithUnknownYear()&&HQ(r,{year:1})>e?(r=HQ(r,{year:1}),n.start.imply(`year`,r.getFullYear())):t.start.isDateWithUnknownYear()&&HQ(e,{year:-1})<r?(e=HQ(e,{year:-1}),t.start.imply(`year`,e.getFullYear())):[n,t]=[t,n]}let r=t.clone();return r.start=t.start,r.end=n.start,r.index=Math.min(t.index,n.index),r.text=t.index<n.index?t.text+e+n.text:n.text+e+t.text,r}},_1=class extends g1{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}};function v1(e,t){let n=e.clone(),r=e.start,i=t.start;if(n.start=y1(r,i),e.end!=null||t.end!=null){let r=y1(e.end==null?e.start:e.end,t.end==null?t.start:t.end);if(e.end==null&&r.date().getTime()<n.start.date().getTime()){let e=new Date(r.date().getTime());e.setDate(e.getDate()+1),r.isCertain(`day`)?NQ(r,e):FQ(r,e)}n.end=r}return n}function y1(e,t){let n=e.clone();t.isCertain(`hour`)?(n.assign(`hour`,t.get(`hour`)),n.assign(`minute`,t.get(`minute`)),t.isCertain(`second`)?(n.assign(`second`,t.get(`second`)),t.isCertain(`millisecond`)?n.assign(`millisecond`,t.get(`millisecond`)):n.imply(`millisecond`,t.get(`millisecond`))):(n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`)))):(n.imply(`hour`,t.get(`hour`)),n.imply(`minute`,t.get(`minute`)),n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`))),t.isCertain(`timezoneOffset`)&&n.assign(`timezoneOffset`,t.get(`timezoneOffset`));let r=e.get(`meridiem`)!=null&&(e.isCertain(`meridiem`)||Array.from(e.tags()).some(e=>e.startsWith(`casualReference/`)));return t.isCertain(`meridiem`)?n.assign(`meridiem`,t.get(`meridiem`)):t.get(`meridiem`)!=null&&!r&&n.imply(`meridiem`,t.get(`meridiem`)),n.get(`meridiem`)==X.PM&&n.get(`hour`)<12&&(t.isCertain(`hour`)?n.assign(`hour`,n.get(`hour`)+12):n.imply(`hour`,n.get(`hour`)+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}var b1=class extends h1{shouldMergeResults(e,t,n){let r=t.start.isOnlyDate()&&n.start.isOnlyTime(),i=t.start.isOnlyTime()&&n.start.isOnlyDate();return i&&e.trim()===`:`?!1:(r||i)&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let r=t.start.isOnlyDate()?v1(t,n):v1(n,t);return r.index=t.index,r.text=t.text+e+n.text,r}},x1=class extends b1{patternBetween(){return RegExp(`^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$`)}},S1=RegExp(`^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)`,`i`),C1=class{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let n=e.option.timezones??{};return t.forEach(t=>{let r=e.text.substring(t.index+t.text.length),i=S1.exec(r);if(!i)return;let a=i[1].toUpperCase(),o=BQ(a,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...n});if(o==null)return;e.debug(()=>{console.log(`Extracting timezone: '${a}' into: ${o} for: ${t.start}`)});let s=t.start.get(`timezoneOffset`);s!==null&&o!=s&&(t.start.isCertain(`timezoneOffset`)||a!=i[1])||t.start.isOnlyDate()&&a!=i[1]||(t.text+=i[0],t.start.isCertain(`timezoneOffset`)||t.start.assign(`timezoneOffset`,o),t.end!=null&&!t.end.isCertain(`timezoneOffset`)&&t.end.assign(`timezoneOffset`,o))}),t}},w1=RegExp(`^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?`,`i`),T1=1,E1=2,D1=3,O1=class{refine(e,t){return t.forEach(function(t){if(t.start.isCertain(`timezoneOffset`))return;let n=e.text.substring(t.index+t.text.length),r=w1.exec(n);if(!r)return;e.debug(()=>{console.log(`Extracting timezone: '${r[0]}' into : ${t}`)});let i=parseInt(r[E1]),a=parseInt(r[D1]||`0`),o=i*60+a;o>840||(r[T1]===`-`&&(o=-o),t.end!=null&&t.end.assign(`timezoneOffset`,o),t.start.assign(`timezoneOffset`,o),t.text+=r[0])}),t}},k1=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0];for(let i=1;i<t.length;i++){let a=t[i];if(a.index>=r.index+r.text.length){n.push(r),r=a;continue}let o=null,s=null;a.text.length>r.text.length?(o=a,s=r):(o=r,s=a),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${o}`)}),r=o}return r!=null&&n.push(r),n}};function A1(e,t,n){let r=j1(e.getDateWithAdjustedTimezone(),t,n),i=new Z(e);return i=i.addDurationAsImplied({day:r}),i.assign(`weekday`,t),i}function j1(e,t,n){let r=e.getDay();switch(n){case`this`:return N1(e,t);case`last`:return P1(e,t);case`next`:return r==jQ.SUNDAY?t==jQ.SUNDAY?7:t:r==jQ.SATURDAY?t==jQ.SATURDAY?7:t==jQ.SUNDAY?8:1+t:t<r&&t!=jQ.SUNDAY?N1(e,t):N1(e,t)+7}return M1(e,t)}function M1(e,t){let n=P1(e,t),r=N1(e,t);return r<-n?r:n}function N1(e,t){let n=t-e.getDay();return n<0&&(n+=7),n}function P1(e,t){let n=t-e.getDay();return n>=0&&(n-=7),n}var F1=class{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let n=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let n=e.reference.getDateWithAdjustedTimezone(),r=new Date(n);r.setDate(r.getDate()+1),FQ(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`)}),t.end&&t.end.isOnlyTime()&&(FQ(t.end,r),t.start.date()>t.end.date()&&(r.setDate(r.getDate()+1),FQ(t.end,r)))}if(t.start.isOnlyWeekdayComponent()&&n>t.start.date()){let r=HQ(n,{day:N1(n,t.start.get(`weekday`))||7});if(FQ(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.start.date()>t.end.date()){let r=HQ(n,{day:N1(n,t.start.get(`weekday`))||7});FQ(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&n>t.start.date())for(let r=0;r<3&&n>t.start.date();r++)t.start.imply(`year`,t.start.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain(`year`)&&(t.end.imply(`year`,t.end.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}},I1=class extends m1{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(` `,``).match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}},L1=RegExp(`([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)`,`i`),R1=1,z1=2,B1=3,V1=4,H1=5,U1=6,W1=7,G1=8,K1=9,q1=10,J1=class extends ${innerPattern(){return L1}innerExtract(e,t){let n=e.createParsingComponents({year:parseInt(t[R1]),month:parseInt(t[z1]),day:parseInt(t[B1])});if(t[V1]!=null&&(n.assign(`hour`,parseInt(t[V1])),n.assign(`minute`,parseInt(t[H1])),t[U1]!=null&&n.assign(`second`,parseInt(t[U1])),t[W1]!=null&&n.assign(`millisecond`,parseInt(t[W1])),t[G1]!=null)){let e=0;if(t[K1]){let n=parseInt(t[K1]),r=0;t[q1]!=null&&(r=parseInt(t[q1])),e=n*60,e<0?e-=r:e+=r}n.assign(`timezoneOffset`,e)}return n.addTag(`parser/ISOFormatParser`)}},Y1=class extends h1{mergeResults(e,t,n){let r=n.clone();return r.index=t.index,r.text=t.text+e+r.text,r.start.assign(`weekday`,t.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,t.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain(`hour`)&&n.start.isCertain(`day`)&&!n.start.tags().has(`result/relativeDate`)&&e.match(/^,?\s*$/)!=null}};function X1(e,t=!1){return e.parsers.unshift(new J1),e.refiners.unshift(new Y1),e.refiners.unshift(new O1),e.refiners.unshift(new k1),e.refiners.push(new C1),e.refiners.push(new k1),e.refiners.push(new F1),e.refiners.push(new I1(t)),e}function Z1(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return NQ(n,t),PQ(n,t),n.assign(`timezoneOffset`,e.getTimezoneOffset()),n.addTag(`casualReference/now`),n}function Q1(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return NQ(n,t),IQ(n,t),n.delete(`meridiem`),n.addTag(`casualReference/today`),n}function $1(e){return t0(e,1).addTag(`casualReference/yesterday`)}function e0(e){return n0(e,1).addTag(`casualReference/tomorrow`)}function t0(e,t){return n0(e,-t)}function n0(e,t){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),NQ(r,i),IQ(r,i),r.delete(`meridiem`),r}function r0(e,t=22){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return NQ(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/tonight`),r}function i0(e,t=0){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n.getHours()<6&&(n=new Date(n.getTime()-864e5)),NQ(r,n),r.imply(`hour`,t),r}function a0(e,t=20){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.addTag(`casualReference/evening`),n}function o0(e,t=20){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n=new Date(n.getTime()-864e5),NQ(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/yesterday`),r.addTag(`casualReference/evening`),r}function s0(e){let t=new Z(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign(`hour`,0),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/midnight`),t}function c0(e,t=6){let n=new Z(e,{});return n.imply(`meridiem`,X.AM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/morning`),n}function l0(e,t=15){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/afternoon`),n}function u0(e){let t=new Z(e,{});return t.imply(`meridiem`,X.AM),t.assign(`hour`,12),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/noon`),t}var d0=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,f0=class extends ${innerPattern(e){return d0}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`now`:i=Z1(e.reference);break;case`today`:i=Q1(e.reference);break;case`yesterday`:i=$1(e.reference);break;case`tomorrow`:case`tmr`:case`tmrw`:i=e0(e.reference);break;case`tonight`:i=r0(e.reference);break;case`overmorrow`:i=n0(e.reference,2);break;default:if(r.match(/last\s*night/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}NQ(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ENCasualDateParser`),i}},p0=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i,m0=class extends ${innerPattern(){return p0}innerExtract(e,t){let n=null;switch(t[1].toLowerCase()){case`afternoon`:n=l0(e.reference);break;case`evening`:case`night`:n=a0(e.reference);break;case`midnight`:n=s0(e.reference);break;case`morning`:n=c0(e.reference);break;case`noon`:case`midday`:n=u0(e.reference)}return n&&n.addTag(`parser/ENCasualTimeParser`),n}},h0=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Q(XQ)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|$)`,`i`),g0=1,_0=2,v0=3,y0=class extends ${innerPattern(){return h0}innerExtract(e,t){let n=t[g0],r=t[v0],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`last`||i==`past`?a=`last`:i==`next`?a=`next`:i==`this`&&(a=`this`);let o=t[_0].toLowerCase(),s;if(XQ[o]!==void 0)s=XQ[o];else if(o==`weekend`)s=a==`last`?jQ.SUNDAY:jQ.SATURDAY;else if(o==`weekday`){let t=e.reference.getDateWithAdjustedTimezone().getDay();t==jQ.SUNDAY||t==jQ.SATURDAY?s=a==`last`?jQ.FRIDAY:jQ.MONDAY:(s=t-1,s=a==`last`?s-1:s+1,s=s%5+1)}else return null;return A1(e.reference,s,a)}},b0=RegExp(`(this|last|past|next|after\\s*this)\\s*(${Q(n$)})(?=\\s*)(?=\\W|$)`,`i`),x0=1,S0=2,C0=class extends ${innerPattern(){return b0}innerExtract(e,t){let n=t[x0].toLowerCase(),r=t[S0].toLowerCase(),i=n$[r];if(n==`next`||n.startsWith(`after`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`last`||n==`past`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/month/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},w0=RegExp(`([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)`,`i`),T0=1,E0=5,D0=2,O0=3,k0=4,A0=class{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?O0:D0,this.groupNumberDay=e?D0:O0}pattern(){return w0}extract(e,t){let n=t.index+t[T0].length,r=t.index+t[0].length-t[E0].length;if(n>0&&e.text.substring(0,n).match(`\\d/?$`)||r<e.text.length&&e.text.substring(r).match(`^/?\\d`))return;let i=e.text.substring(n,r);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[k0]&&i.indexOf(`/`)<0)return;let a=e.createParsingResult(n,i),o=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12){if(s>=1&&s<=12&&o<=31)[s,o]=[o,s];else return null}if(s<1||s>31)return null;if(a.start.assign(`day`,s),a.start.assign(`month`,o),t[k0]){let e=JQ(parseInt(t[k0]));a.start.assign(`year`,e)}else{let t=YQ(e.refDate,s,o);a.start.imply(`year`,t)}return a.addTag(`parser/SlashDateFormatParser`)}},j0=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${p$})(?=\\W|$)`,`i`),M0=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${m$})(?=\\W|$)`,`i`),N0=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?j0:M0}innerExtract(e,t){let n=t[1].toLowerCase(),r=h$(t[2]);if(!r)return null;switch(n){case`last`:case`past`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}};function P0(e){return e.text.match(/^[+-]/i)!=null}function F0(e){return e.text.match(/^-/i)!=null}var I0=class extends h1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?P0(n)||F0(n):!1}mergeResults(e,t,n,r){let i=h$(n.text);F0(n)&&(i=UQ(i));let a=Z.createRelativeFromReference(WQ.fromDate(t.start.date()),i);return new GQ(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function L0(e){return e.text.match(/\s+(before|from)$/i)!=null}function R0(e){return e.text.match(/\s+(after|since)$/i)!=null}var z0=class extends h1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!L0(t)&&!R0(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=h$(t.text);L0(t)&&(r=UQ(r));let i=Z.createRelativeFromReference(WQ.fromDate(n.start.date()),r);return new GQ(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},B0=RegExp(`^\\s*(${s$})`,`i`),V0=1,H0=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=B0.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=c$(r[V0]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},U0=class extends m1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase()===`may`&&!e.text.substring(0,t.index).trim().match(/\b(in)$/i)?(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!n.toLowerCase().endsWith(`the second`)||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1)}},W0=/\b(?:last\s+day|end)\s+of\s+(?:the\s+)?$/i,G0=/^(this|last|past|next)\s*(week|month|year)$/i,K0=/^\s+(this|last|past|next)\s+year(?=\W|$)/i;function q0(e){return e===`next`?1:e===`last`||e===`past`?-1:0}var J0=class{refine(e,t){return t.forEach(t=>{let n=e.text.substring(0,t.index).match(W0);if(!n)return;let r=t.text.match(G0);if(r){let n=r[1].toLowerCase();this.moveToEndOfRelativePeriod(e,t,n,r[2].toLowerCase())}else if(t.start.isCertain(`month`)&&!t.start.isCertain(`day`))this.moveToEndOfMonth(e,t);else return;t.start.imply(`hour`,12),t.start.imply(`minute`,0),t.start.imply(`second`,0),t.start.imply(`millisecond`,0),t.start.isCertain(`timezoneOffset`)||t.start.delete(`timezoneOffset`),t.index-=n[0].length,t.text=n[0]+t.text,t.addTag(`refiner/ENEndOfPeriodRefiner`)}),t}moveToEndOfRelativePeriod(e,t,n,r){let i=q0(n),a=e.reference.getDateWithAdjustedTimezone(),o;r===`week`?(o=new Date(a.getTime()),o.setDate(a.getDate()+(6-a.getDay())+i*7)):o=r===`month`?new Date(a.getFullYear(),a.getMonth()+i+1,0):new Date(a.getFullYear()+i,11,31),t.start.assign(`day`,o.getDate()),t.start.assign(`month`,o.getMonth()+1),t.start.assign(`year`,o.getFullYear()),t.start.delete(`weekday`),t.start.imply(`weekday`,o.getDay())}moveToEndOfMonth(e,t){let n=t.start.get(`year`),r=t.start.get(`month`),i=e.text.substring(t.index+t.text.length).match(K0);if(i){let r=i[1].toLowerCase();n=e.reference.getDateWithAdjustedTimezone().getFullYear()+q0(r),t.start.assign(`year`,n),t.text+=i[0]}if(!t.start.isCertain(`year`)){let i=new Date(n,r,0).getDate();n=YQ(e.reference.getDateWithAdjustedTimezone(),i,r),t.start.imply(`year`,n)}t.start.assign(`day`,new Date(n,r,0).getDate())}},Y0=/(?:last\s+day|end)\s+of\s+(?:the\s+)?month(?=\W|$)/i,X0=class extends ${innerPattern(){return Y0}innerExtract(e){let t=e.reference.getDateWithAdjustedTimezone(),n=t.getFullYear(),r=t.getMonth()+1,i=new Date(n,r,0).getDate(),a=e.createParsingComponents();return a.assign(`day`,i),a.assign(`month`,r),a.assign(`year`,n),a.addTag(`parser/ENEndOfCurrentMonthParser`),a}},Z0=class{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new f0),t.parsers.push(new m0),t.parsers.push(new X0),t.parsers.push(new L$),t.parsers.push(new C0),t.parsers.push(new N0),t.refiners.unshift(new J0),t.refiners.push(new U0),t}createConfiguration(e=!0,t=!1){let n=X1({parsers:[new A0(t),new b$(e),new E$,new M$(t),new y0,new Z$,new o1(e),new l1(e),new p1(e),new q$],refiners:[new x1]},e);return n.parsers.unshift(new U$(e)),n.refiners.unshift(new z0),n.refiners.unshift(new I0),n.refiners.unshift(new k1),n.refiners.push(new x1),n.refiners.push(new H0),n.refiners.push(new _1),n}},Q0=class e{parsers;refiners;defaultConfig=new Z0;constructor(e){e||=this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new e({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let r=this.parse(e,t,n);return r.length>0?r[0].start.date():null}parse(t,n,r){let i=new $0(t,n,r),a=[];return this.parsers.forEach(t=>{let n=e.executeParser(i,t);a=a.concat(n)}),a.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){a=e.refine(i,a)}),a}static executeParser(e,t){let n=[],r=t.pattern(e),i=e.text,a=e.text,o=r.exec(a);for(;o;){let s=o.index+i.length-a.length;o.index=s;let c=t.extract(e,o);if(!c){a=i.substring(o.index+1),o=r.exec(a);continue}let l=null;c instanceof GQ?l=c:c instanceof Z?(l=e.createParsingResult(o.index,o[0]),l.start=c):l=e.createParsingResult(o.index,o[0],c);let u=l.index,d=l.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${u}) '${d}'`)),n.push(l),a=i.substring(u+d.length),o=r.exec(a)}return n}},$0=class{text;option;reference;refDate;constructor(e,t,n){this.text=e,this.option=n??{},this.reference=WQ.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof Z?e:new Z(this.reference,e)}createParsingResult(e,t,n,r){let i=typeof t==`string`?t:this.text.substring(e,t),a=n?this.createParsingComponents(n):null,o=r?this.createParsingComponents(r):null;return new GQ(this.reference,e,i,a,o)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}},e2=new Z0,t2=new Q0(e2.createCasualConfiguration(!1));new Q0(e2.createConfiguration(!0,!1));var n2=new Q0(e2.createCasualConfiguration(!0)),r2=class extends a1{primaryPrefix(){return`(?:(?:um|von)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|bis)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},i2={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6},a2={januar:1,jänner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,märz:3,maerz:3,mär:3,"mär.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12},o2={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,fünf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zwölf:12,zwoelf:12},s2={sek:`second`,sekunde:`second`,sekunden:`second`,min:`minute`,minute:`minute`,minuten:`minute`,h:`hour`,std:`hour`,stunde:`hour`,stunden:`hour`,tag:`day`,tage:`day`,tagen:`day`,woche:`week`,wochen:`week`,monat:`month`,monate:`month`,monaten:`month`,monats:`month`,quartal:`quarter`,quartals:`quarter`,quartale:`quarter`,quartalen:`quarter`,a:`year`,j:`year`,jr:`year`,jahr:`year`,jahre:`year`,jahren:`year`,jahres:`year`},c2=`(?:${Q(o2)}|[0-9]+|[0-9]+\\.[0-9]+|halb?|halbe?|einigen?|wenigen?|mehreren?)`;function l2(e){let t=e.toLowerCase();return o2[t]===void 0?t===`ein`||t===`einer`||t===`einem`||t===`einen`||t===`eine`?1:t.match(/wenigen/)?2:t.match(/halb/)||t.match(/halben/)?.5:t.match(/einigen/)?3:t.match(/mehreren/)?7:parseFloat(t):o2[t]}var u2=`(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)`;function d2(e){return/v/i.test(e)?-parseInt(e.replace(/[^0-9]+/gi,``)):/n/i.test(e)||/z/i.test(e)?parseInt(e.replace(/[^0-9]+/gi,``)):JQ(parseInt(e))}var f2=`(${c2})\\s{0,5}(${Q(s2)})\\s{0,5}`,p2=new RegExp(f2,`i`),m2=KQ(``,f2);function h2(e){let t={},n=e,r=p2.exec(n);for(;r;)g2(t,r),n=n.substring(r[0].length),r=p2.exec(n);return t}function g2(e,t){let n=l2(t[1]),r=s2[t[2].toLowerCase()];e[r]=n}var _2=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:ä|ae)chste[mn])\\s*)?(${Q(i2)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(diese|letzte|n(?:ä|ae)chste)\\s*woche)?(?=\\W|$)`,`i`),v2=1,y2=3,b2=2,x2=class extends ${innerPattern(){return _2}innerExtract(e,t){let n=i2[t[b2].toLowerCase()],r=t[v2],i=t[y2],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/letzte/)?o=`last`:a.match(/chste/)?o=`next`:a.match(/diese/)&&(o=`this`),A1(e.reference,n,o)}},S2=RegExp(`(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),C2=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),w2=2,T2=3,E2=4,D2=5,O2=class e{pattern(e){return S2}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=C2.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[w2]),t[T2]!=null&&(r=parseInt(t[T2])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[D2]!=null){if(n>12)return null;let e=t[D2].toLowerCase();e.match(/morgen|vormittag/)&&(i=X.AM,n==12&&(n=0)),e.match(/nachmittag|abend/)&&(i=X.PM,n!=12&&(n+=12)),e.match(/nacht/)&&(n==12?(i=X.AM,n=0):n<6?i=X.AM:(i=X.PM,n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[E2]!=null){let n=parseInt(t[E2]);if(n>=60)return null;e.assign(`second`,n)}return e}},k2=class extends g1{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}},A2=class extends b1{patternBetween(){return RegExp(`^\\s*(T|um|am|,|-)?\\s*$`)}},j2=class e extends ${innerPattern(e){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return IQ(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`morgen`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`vormittag`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`mittag`:case`mittags`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`nachmittag`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`abend`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`nacht`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`mitternacht`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},M2=RegExp(`(jetzt|heute|morgen|übermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)`,`i`),N2=1,P2=2,F2=class extends ${innerPattern(e){return M2}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[N2]||``).toLowerCase(),i=(t[P2]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`jetzt`:a=Z1(e.reference);break;case`heute`:a=Q1(e.reference);break;case`morgen`:n=HQ(n,{day:1}),NQ(a,n),IQ(a,n);break;case`übermorgen`:case`uebermorgen`:n=HQ(n,{day:2}),NQ(a,n),IQ(a,n);break;case`gestern`:n=HQ(n,{day:-1}),NQ(a,n),IQ(a,n);break;case`vorgestern`:n=HQ(n,{day:-2}),NQ(a,n),IQ(a,n);break;default:r.match(/letzte\s*nacht/)&&(n.getHours()>6&&(n=HQ(n,{day:-1})),NQ(a,n),a.imply(`hour`,0))}return i&&(a=j2.extractTimeComponents(a,i)),a}},I2=RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(a2)})(?:(?:-|/|,?\\s*)(${u2}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),L2=1,R2=2,z2=3,B2=4,V2=class extends ${innerPattern(){return I2}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=a2[t[z2].toLowerCase()],i=parseInt(t[L2]);if(i>31)return t.index+=t[L2].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[B2]){let e=d2(t[B2]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[R2]){let e=parseInt(t[R2]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},H2=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:\\s*((?:nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${c2})?(?:\\s*(nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${Q(s2)})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[2]?l2(t[2]):1,r=s2[t[4].toLowerCase()],i={};i[r]=n;let a=t[1]||t[3]||``;if(a=a.toLowerCase(),a)return(/vor/.test(a)||/letzte/.test(a)||/vergangen/.test(a))&&(i=UQ(i)),Z.createRelativeFromReference(e.reference,i)}},U2=class extends ${innerPattern(){return RegExp(`(?:in|für|während)\\s*(${m2})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=h2(t[1]);return Z.createRelativeFromReference(e.reference,n)}},W2=new Q0(G2());new Q0(K2(!0));function G2(e=!0){let t=K2(!1,e);return t.parsers.unshift(new j2),t.parsers.unshift(new F2),t.parsers.unshift(new H2),t}function K2(e=!0,t=!0){return X1({parsers:[new J1,new A0(t),new r2,new O2,new V2,new x2,new U2],refiners:[new k2,new A2]},e)}var q2=class extends ${innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`maintenant`:return Z1(e.reference);case`aujourd'hui`:return Q1(e.reference);case`hier`:return $1(e.reference);case`demain`:return e0(e.reference);default:if(r.match(/cette\s*nuit/))NQ(i,n),i.imply(`hour`,22),i.imply(`meridiem`,X.PM);else if(r.match(/la\s*veille/)){let e=new Date(n.getTime());e.setDate(e.getDate()-1),NQ(i,e),i.imply(`hour`,0)}}return i}},J2=class extends ${innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),r=e.createParsingComponents();switch(n){case`après-midi`:case`aprem`:r.imply(`hour`,14),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/afternoon`);break;case`soir`:r.imply(`hour`,18),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/evening`);break;case`matin`:r.imply(`hour`,8),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/morning`);break;case`a midi`:r.imply(`hour`,12),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/noon`);break;case`à minuit`:r.imply(`hour`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/midnight`)}return r}},Y2=class extends a1{primaryPrefix(){return`(?:(?:[àa])\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},X2=class extends b1{patternBetween(){return RegExp(`^\\s*(T|à|a|au|vers|de|,|-)?\\s*$`)}},Z2=class extends g1{patternBetween(){return/^\s*(à|a|au|-)\s*$/i}},Q2={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6},$2={janvier:1,jan:1,"jan.":1,janv:1,"janv.":1,février:2,fév:2,"fév.":2,févr:2,"févr.":2,fevrier:2,fev:2,"fev.":2,fevr:2,"fevr.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,"juin.":6,jun:6,"jun.":6,juillet:7,juil:7,"juil.":7,jul:7,"jul.":7,août:8,"août.":8,aout:8,"aout.":8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,décembre:12,decembre:12,dec:12,"dec.":12,déc:12,"déc.":12},e4={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13},t4={sec:`second`,seconde:`second`,secondes:`second`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,heure:`hour`,heures:`hour`,jour:`day`,jours:`day`,semaine:`week`,semaines:`week`,mois:`month`,trimestre:`quarter`,trimestres:`quarter`,ans:`year`,année:`year`,années:`year`},n4=`(?:${Q(e4)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function r4(e){let t=e.toLowerCase();return e4[t]===void 0?t===`une`||t===`un`?1:t.match(/quelques?/)?3:t.match(/demi-?/)?.5:parseFloat(t):e4[t]}var i4=`(?:[0-9]{1,2}(?:er)?)`;function a4(e){let t=e.toLowerCase();return t=t.replace(/(?:er)$/i,``),parseInt(t)}var o4=`(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])`;function s4(e){if(/AC/i.test(e))return e=e.replace(/BC/i,``),-parseInt(e);if(/AD/i.test(e)||/C/i.test(e))return e=e.replace(/[^\d]+/i,``),parseInt(e);let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}var c4=`(${n4})\\s{0,5}(${Q(t4)})\\s{0,5}`,l4=new RegExp(c4,`i`),u4=KQ(``,c4);function d4(e){let t={},n=e,r=l4.exec(n);for(;r;)f4(t,r),n=n.substring(r[0].length),r=l4.exec(n);return t}function f4(e,t){let n=r4(t[1]),r=t4[t[2].toLowerCase()];e[r]=n}var p4=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(?:ce)\\s*)?(${Q(Q2)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,`i`),m4=1,h4=2,g4=class extends ${innerPattern(){return p4}innerExtract(e,t){let n=Q2[t[m4].toLowerCase()];if(n===void 0)return null;let r=t[h4];r||=``,r=r.toLowerCase();let i=null;return r==`dernier`?i=`last`:r==`prochain`&&(i=`next`),A1(e.reference,n,i)}},_4=RegExp(`(^|\\s|T)(?:(?:[àa])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),v4=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),y4=2,b4=3,x4=4,S4=5,C4=class e{pattern(e){return _4}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=v4.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[y4]),t[b4]!=null&&(r=parseInt(t[b4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[S4]!=null){if(n>12)return null;let e=t[S4][0].toLowerCase();e==`a`&&(i=X.AM,n==12&&(n=0)),e==`p`&&(i=X.PM,n!=12&&(n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[x4]!=null){let n=parseInt(t[x4]);if(n>=60)return null;e.assign(`second`,n)}return e}},w4=RegExp(`(?:on\\s*?)?(${i4})(?:\\s*(?:au|\\-|\\–|jusqu'au?|\\s)\\s*(${i4}))?(?:-|/|\\s*(?:de)?\\s*)(${Q($2)})(?:(?:-|/|,?\\s*)(${o4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),T4=1,E4=2,D4=3,O4=4,k4=class extends ${innerPattern(){return w4}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=$2[t[D4].toLowerCase()],i=a4(t[T4]);if(i>31)return t.index+=t[T4].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[O4]){let e=s4(t[O4]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[E4]){let e=a4(t[E4]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},A4=class extends ${constructor(){super()}innerPattern(){return RegExp(`il y a\\s*(${u4})(?=(?:\\W|$))`,`i`)}innerExtract(e,t){let n=UQ(d4(t[1]));return Z.createRelativeFromReference(e.reference,n)}},j4=class extends ${innerPattern(){return RegExp(`(?:dans|en|pour|pendant|de)\\s*(${u4})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=d4(t[1]);return Z.createRelativeFromReference(e.reference,n)}},M4=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:les?|la|l'|du|des?)\\s*(${n4})?(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?\\s*(${Q(t4)})(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[1]?r4(t[1]):1,r=t4[t[3].toLowerCase()],i={};i[r]=n;let a=t[2]||t[4]||``;if(a=a.toLowerCase(),a)return(/derni[eè]re?s?/.test(a)||/pass[ée]e?s?/.test(a)||/pr[ée]c[ée]dents?/.test(a))&&(i=UQ(i)),Z.createRelativeFromReference(e.reference,i)}},N4=new Q0(P4());new Q0(F4(!0));function P4(e=!0){let t=F4(!1,e);return t.parsers.unshift(new q2),t.parsers.unshift(new J2),t.parsers.unshift(new M4),t}function F4(e=!0,t=!0){return X1({parsers:[new A0(t),new k4,new Y2,new C4,new A4,new j4,new g4],refiners:[new X2,new Z2]},e)}var I4={零:0,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},L4={日:0,月:1,火:2,水:3,木:4,金:5,土:6};function R4(e){return String(e).replace(/\u2019/g,`'`).replace(/\u201D/g,`"`).replace(/\u3000/g,` `).replace(/\uFFE5/g,`¥`).replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,z4)}function z4(e){return String.fromCharCode(e.charCodeAt(0)-65248)}function B4(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?I4[r]:t*I4[r]:t+=I4[r]}return t}var V4=/(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i,H4=1,U4=2,W4=3,G4=4,K4=5,q4=6,J4=class{pattern(){return V4}extract(e,t){let n=parseInt(R4(t[K4])),r=parseInt(R4(t[q4])),i=e.createParsingComponents({day:r,month:n});if(t[H4]&&t[H4].match(`同|今|本`)&&i.assign(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),t[U4]){let e=t[G4],n=e==`元`?1:parseInt(R4(e));t[W4]==`令和`?n+=2018:t[W4]==`平成`?n+=1988:t[W4]==`昭和`&&(n+=1925),i.assign(`year`,n)}else{let t=YQ(e.refDate,r,n);i.imply(`year`,t)}return i}},Y4=class extends g1{patternBetween(){return/^\s*(から|-|ー|-|~|~)\s*$/i}},X4=/今日|きょう|本日|ほんじつ|昨日|きのう|明日|あした|今夜|こんや|今夕|こんゆう|今晩|こんばん|今朝|けさ/i;function Z4(e){switch(e){case`きょう`:return`今日`;case`ほんじつ`:return`本日`;case`きのう`:return`昨日`;case`あした`:return`明日`;case`こんや`:return`今夜`;case`こんゆう`:return`今夕`;case`こんばん`:return`今晩`;case`けさ`:return`今朝`;default:return e}}var Q4=class{pattern(){return X4}extract(e,t){let n=Z4(t[0]),r=e.createParsingComponents();switch(n){case`昨日`:return $1(e.reference);case`明日`:return e0(e.reference);case`本日`:case`今日`:return Q1(e.reference)}n==`今夜`||n==`今夕`||n==`今晩`?(r.imply(`hour`,22),r.assign(`meridiem`,X.PM)):n.match(`今朝`)&&(r.imply(`hour`,6),r.assign(`meridiem`,X.AM));let i=e.refDate;return r.assign(`day`,i.getDate()),r.assign(`month`,i.getMonth()+1),r.assign(`year`,i.getFullYear()),r}},$4=RegExp(`((?<prefix>前の|次の|今週))?(?<weekday>`+Object.keys(L4).join(`|`)+`)(?:曜日|曜)`,`i`),e3=class{pattern(){return $4}extract(e,t){let n=L4[t.groups.weekday];if(n===void 0)return null;let r=t.groups.prefix||``,i=null;return r.match(/前の/)?i=`last`:r.match(/次の/)?i=`next`:r.match(/今週/)&&(i=`this`),A1(e.reference,n,i)}},t3=RegExp(`([0-90-9]{4}[\\/|\\/])?([0-10-1]{0,1}[0-90-9]{1})(?:[\\/|\\/]([0-30-3]{0,1}[0-90-9]{1}))`,`i`),n3=1,r3=2,i3=3,a3=class{pattern(){return t3}extract(e,t){let n=e.createParsingComponents(),r=parseInt(R4(t[r3])),i=parseInt(R4(t[i3]));if(r<1||r>12||i<1||i>31)return null;if(n.assign(`day`,i),n.assign(`month`,r),t[n3]){let e=JQ(parseInt(R4(t[n3])));n.assign(`year`,e)}else{let t=YQ(e.reference.instant,i,r);n.imply(`year`,t)}return n}},o3=RegExp(`(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(I4).join(``)+`]+)(?:\\s*)(?:時(?!間)|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(I4).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(I4).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),s3=RegExp(`(?:^\\s*(?:から|\\-|\\–|\\-|\\~|\\〜)\\s*)(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(I4).join(``)+`]+)(?:\\s*)(?:時|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(I4).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(I4).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),c3=1,l3=2,u3=3,d3=4,f3=5,p3=class extends ${innerPattern(){return o3}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]);return n.start=m3(e,t[l3],t[u3],t[d3],t[c3]??t[f3]),n.start?(t=s3.exec(e.text.substring(n.index+n.text.length)),t?(n.text+=t[0],n.end=m3(e,t[l3],t[u3],t[d3],t[c3]??t[f3]),n.end?(!n.end.isCertain(`meridiem`)&&n.start.isCertain(`meridiem`)&&(n.end.imply(`meridiem`,n.start.get(`meridiem`)),n.start.get(`meridiem`)===X.PM&&(n.start.get(`hour`)-12>n.end.get(`hour`)?n.end.imply(`meridiem`,X.AM):n.end.get(`hour`)<12&&n.end.assign(`hour`,n.end.get(`hour`)+12))),n.end.date().getTime()<n.start.date().getTime()&&n.end.addDurationAsImplied({day:1}),n):null):n):(t.index+=t[0].length,null)}};function m3(e,t,n,r,i){let a=0,o=-1,s=e.createParsingComponents();if(a=parseInt(R4(t)),isNaN(a)&&(a=B4(t)),a>24)return null;if(n){let e;if(n===`半`?e=30:(e=parseInt(R4(n)),isNaN(e)&&(e=B4(n))),e>=60)return null;s.assign(`minute`,e)}if(r){let e=parseInt(R4(r));if(isNaN(e)&&(e=B4(r)),e>=60)return null;s.assign(`second`,e)}if(i){if(a>12)return null;let e=i;e===`午前`||e[0].toLowerCase()===`a`?(o=X.AM,a===12&&(a=0)):(e===`午後`||e[0].toLowerCase()===`p`)&&(o=X.PM,a!=12&&(a+=12))}return s.assign(`hour`,a),o>=0?s.assign(`meridiem`,o):a<12?s.imply(`meridiem`,X.AM):s.imply(`meridiem`,X.PM),s}var h3=class extends b1{patternBetween(){return/^\s*(の)?\s*$/i}},g3=class extends h1{mergeResults(e,t,n){let r=t.clone();return r.text=t.text+e+n.text,r.start.assign(`weekday`,n.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,n.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isCertain(`day`)&&n.start.isOnlyWeekdayComponent()&&!n.start.isCertain(`hour`)&&e.match(/^[,、の]?\s*$/)!==null}},_3=RegExp(`(?:\\(|\\()(?<weekday>`+Object.keys(L4).join(`|`)+`)(?:\\)|\\))`,`i`),v3=class{pattern(){return _3}extract(e,t){let n=L4[t.groups.weekday];return n===void 0?null:A1(e.reference,n)}},y3=new Q0(b3());new Q0(x3(!0));function b3(){let e=x3(!1);return e.parsers.unshift(new Q4),e}function x3(e=!0){let t=X1({parsers:[new J4,new e3,new v3,new a3,new p3],refiners:[new g3,new h3,new Y4]},e);return t.refiners=t.refiners.filter(e=>!(e instanceof Y1)),t}var S3={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,terça:2,"terça-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,sábado:6,sabado:6,sab:6},C3={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,março:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12},w3=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function T3(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var E3=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|passado|pr[oó]ximo)\\s*)?(${Q(S3)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|passado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),D3=1,O3=2,k3=3,A3=class extends ${innerPattern(){return E3}innerExtract(e,t){let n=S3[t[O3].toLowerCase()];if(n===void 0)return null;let r=t[D3],i=t[k3],a=r||i||``;a=a.toLowerCase();let o=null;return a==`passado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),A1(e.reference,n,o)}},lae=class extends a1{primaryPrefix(){return`(?:(?:ao?|às?|das|da|de|do)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:o)?|\\?)\\s*`}},j3=class extends b1{patternBetween(){return RegExp(`^\\s*(?:,|à)?\\s*$`)}},M3=class extends g1{patternBetween(){return/^\s*(?:-)\s*$/i}},N3=RegExp(`([0-9]{1,2})(?:º|ª|°)?(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(C3)})(?:\\s*(?:de|,)?\\s*(${w3}))?(?=\\W|$)`,`i`),P3=1,F3=2,I3=3,L3=4,R3=class extends ${innerPattern(){return N3}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=C3[t[I3].toLowerCase()],i=parseInt(t[P3]);if(i>31)return t.index+=t[P3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[L3]){let e=T3(t[L3]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[F3]){let e=parseInt(t[F3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},z3=class extends ${innerPattern(e){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`agora`:return Z1(e.reference);case`hoje`:return Q1(e.reference);case`amanha`:case`amanhã`:return e0(e.reference);case`ontem`:return $1(e.reference)}return r}},B3=class extends ${innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noite`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`manha`:case`manhã`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`meia-noite`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),NQ(r,e),IQ(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`meio-dia`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},V3=new Q0(H3());new Q0(U3(!0));function H3(e=!0){let t=U3(!1,e);return t.parsers.push(new z3),t.parsers.push(new B3),t}function U3(e=!0,t=!0){return X1({parsers:[new A0(t),new A3,new lae,new R3],refiners:[new j3,new M3]},e)}var W3=class extends g1{patternBetween(){return/^\s*(tot|-)\s*$/i}},uae=class extends b1{patternBetween(){return RegExp(`^\\s*(om|na|voor|in de|,|-)?\\s*$`)}},dae=class extends ${innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`nu`:return Z1(e.reference);case`vandaag`:return Q1(e.reference);case`morgen`:case`morgend`:return e0(e.reference);case`gisteren`:return $1(e.reference)}return r}},fae=1,pae=2,mae=class extends ${innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[fae]===`deze`&&(r.assign(`day`,e.refDate.getDate()),r.assign(`month`,e.refDate.getMonth()+1),r.assign(`year`,e.refDate.getFullYear())),t[pae].toLowerCase()){case`namiddag`:case`'s namiddags`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`avond`:case`'s avonds'`:r.imply(`meridiem`,X.PM),r.imply(`hour`,20),r.addTag(`casualReference/evening`);break;case`middernacht`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),NQ(r,e),IQ(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`ochtend`:case`'s ochtends`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`middag`:case`'s middags`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},G3={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6},K3={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,mrt:3,"mrt.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},q3={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12},J3={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,tweeëntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31},Y3={sec:`second`,second:`second`,seconden:`second`,min:`minute`,mins:`minute`,minute:`minute`,minuut:`minute`,minuten:`minute`,minuutje:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,uur:`hour`,u:`hour`,uren:`hour`,dag:`day`,dagen:`day`,week:`week`,weken:`week`,maand:`month`,maanden:`month`,jaar:`year`,jr:`year`,jaren:`year`},hae=`(?:${Q(q3)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function gae(e){let t=e.toLowerCase();return q3[t]===void 0?t===`paar`?2:t===`half`||t.match(/halve?/)?.5:parseFloat(t.replace(`,`,`.`)):q3[t]}var X3=`(?:${Q(J3)}|[0-9]{1,2}(?:ste|de)?)`;function Z3(e){let t=e.toLowerCase();return J3[t]===void 0?(t=t.replace(/(?:ste|de)$/i,``),parseInt(t)):J3[t]}var Q3=`(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])`;function $3(e){return/voor Christus/i.test(e)?(e=e.replace(/voor Christus/i,``),-parseInt(e)):/na Christus/i.test(e)?(e=e.replace(/na Christus/i,``),parseInt(e)):JQ(parseInt(e))}var e6=`(${hae})\\s{0,5}(${Q(Y3)})\\s{0,5}`,t6=new RegExp(e6,`i`),n6=KQ(`(?:(?:binnen|in)\\s*)?`,e6);function r6(e){let t={},n=e,r=t6.exec(n);for(;r;)_ae(t,r),n=n.substring(r[0].length),r=t6.exec(n);return t}function _ae(e,t){let n=gae(t[1]),r=Y3[t[2].toLowerCase()];e[r]=n}var vae=class extends ${innerPattern(){return RegExp(`(?:binnen|in|binnen de|voor)\\s*(`+n6+`)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=r6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},yae=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${Q(G3)})(?=\\W|$)`,`i`),bae=1,xae=2,Sae=3,Cae=class extends ${innerPattern(){return yae}innerExtract(e,t){let n=G3[t[xae].toLowerCase()],r=t[bae],i=t[Sae],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`vorige`?o=`last`:a==`volgende`?o=`next`:a==`deze`&&(o=`this`),A1(e.reference,n,o)}},wae=RegExp(`(?:on\\s*?)?(${X3})(?:\\s*(?:tot|\\-|\\–|until|through|till|\\s)\\s*(${X3}))?(?:-|/|\\s*(?:of)?\\s*)(`+Q(K3)+`)(?:(?:-|/|,?\\s*)(${Q3}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),Tae=3,i6=1,a6=2,o6=4,Eae=class extends ${innerPattern(){return wae}innerExtract(e,t){let n=K3[t[Tae].toLowerCase()],r=Z3(t[i6]);if(r>31)return t.index+=t[i6].length,null;let i=e.createParsingComponents({day:r,month:n});if(t[o6]){let e=$3(t[o6]);i.assign(`year`,e)}else{let t=YQ(e.refDate,r,n);i.imply(`year`,t)}if(!t[a6])return i;let a=Z3(t[a6]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Dae=RegExp(`(${Q(K3)})\\s*(?:[,-]?\\s*(${Q3})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Oae=1,s6=2,c6=class extends ${innerPattern(){return Dae}innerExtract(e,t){let n=e.createParsingComponents();n.imply(`day`,1);let r=K3[t[Oae].toLowerCase()];if(n.assign(`month`,r),t[s6]){let e=$3(t[s6]);n.assign(`year`,e)}else{let t=YQ(e.refDate,1,r);n.imply(`year`,t)}return n}},kae=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Aae=1,jae=2,Mae=class extends ${innerPattern(){return kae}innerExtract(e,t){let n=parseInt(t[jae]),r=parseInt(t[Aae]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Nae=class extends a1{primaryPrefix(){return`(?:(?:om)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|om|\\?)\\s*`}primarySuffix(){return`(?:\\s*(?:uur))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},Pae=RegExp(`([0-9]{4})[\\.\\/\\s](?:(${Q(K3)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Fae=1,Iae=2,l6=3,Lae=4,Rae=class extends ${innerPattern(){return Pae}innerExtract(e,t){let n=t[l6]?parseInt(t[l6]):K3[t[Iae].toLowerCase()];if(n<1||n>12)return null;let r=parseInt(t[Fae]);return{day:parseInt(t[Lae]),month:n,year:r}}},zae=1,Bae=2,Vae=class extends ${innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[zae].toLowerCase(),r=t[Bae].toLowerCase(),i=e.createParsingComponents(),a=e.refDate;switch(n){case`gisteren`:let e=new Date(a.getTime());e.setDate(e.getDate()-1),NQ(i,e);break;case`van`:NQ(i,a);break;case`morgen`:let t=new Date(a.getTime());t.setDate(t.getDate()+1),NQ(i,t),IQ(i,t)}switch(r){case`ochtend`:i.imply(`meridiem`,X.AM),i.imply(`hour`,6);break;case`middag`:i.imply(`meridiem`,X.AM),i.imply(`hour`,12);break;case`namiddag`:i.imply(`meridiem`,X.PM),i.imply(`hour`,15);break;case`avond`:i.imply(`meridiem`,X.PM),i.imply(`hour`,20)}return i}},Hae=RegExp(`(dit|deze|vorig|afgelopen|(?:aan)?komend|over|\\+|-)e?\\s*(${n6})(?=\\W|$)`,`i`),Uae=1,Wae=2,Gae=class extends ${innerPattern(){return Hae}innerExtract(e,t){let n=t[Uae].toLowerCase(),r=r6(t[Wae]);switch(n){case`vorig`:case`afgelopen`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}},Kae=RegExp(`(dit|deze|(?:aan)?komend|volgend|afgelopen|vorig)e?\\s*(${Q(Y3)})(?=\\s*)(?=\\W|$)`,`i`),qae=1,Jae=2,Yae=class extends ${innerPattern(){return Kae}innerExtract(e,t){let n=t[qae].toLowerCase(),r=t[Jae].toLowerCase(),i=Y3[r];if(n==`volgend`||n==`komend`||n==`aankomend`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`afgelopen`||n==`vorig`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/maand/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/jaar/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Xae=RegExp(`(`+n6+`)(?:geleden|voor|eerder)(?=(?:\\W|$))`,`i`),Zae=RegExp(`(`+n6+`)geleden(?=(?:\\W|$))`,`i`),Qae=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Zae:Xae}innerExtract(e,t){let n=UQ(r6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},$ae=RegExp(`(`+n6+`)(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))`,`i`),eoe=RegExp(`(`+n6+`)(later|vanaf nu)(?=(?:\\W|$))`,`i`),toe=1,noe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?eoe:$ae}innerExtract(e,t){let n=r6(t[toe]);return Z.createRelativeFromReference(e.reference,n)}},roe=new Q0(ioe());new Q0(u6(!0));function ioe(e=!0){let t=u6(!1,e);return t.parsers.unshift(new dae),t.parsers.unshift(new mae),t.parsers.unshift(new Vae),t.parsers.unshift(new c6),t.parsers.unshift(new Yae),t.parsers.unshift(new Gae),t}function u6(e=!0,t=!0){return X1({parsers:[new A0(t),new vae,new Eae,new c6,new Cae,new Rae,new Mae,new Nae(e),new Qae(e),new noe(e)],refiners:[new uae,new W3]},e)}var d6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},f6={воскресенье:0,воскресенья:0,вск:0,"вск.":0,понедельник:1,понедельника:1,пн:1,"пн.":1,вторник:2,вторника:2,вт:2,"вт.":2,среда:3,среды:3,среду:3,ср:3,"ср.":3,четверг:4,четверга:4,чт:4,"чт.":4,пятница:5,пятницу:5,пятницы:5,пт:5,"пт.":5,суббота:6,субботу:6,субботы:6,сб:6,"сб.":6},p6={январь:1,января:1,январе:1,февраль:2,февраля:2,феврале:2,март:3,марта:3,марте:3,апрель:4,апреля:4,апреле:4,май:5,мая:5,мае:5,июнь:6,июня:6,июне:6,июль:7,июля:7,июле:7,август:8,августа:8,августе:8,сентябрь:9,сентября:9,сентябре:9,октябрь:10,октября:10,октябре:10,ноябрь:11,ноября:11,ноябре:11,декабрь:12,декабря:12,декабре:12},m6={...p6,янв:1,"янв.":1,фев:2,"фев.":2,мар:3,"мар.":3,апр:4,"апр.":4,авг:8,"авг.":8,сен:9,"сен.":9,окт:10,"окт.":10,ноя:11,"ноя.":11,дек:12,"дек.":12},h6={один:1,одна:1,одной:1,одну:1,две:2,два:2,двух:2,три:3,трех:3,трёх:3,четыре:4,четырех:4,четырёх:4,пять:5,пяти:5,шесть:6,шести:6,семь:7,семи:7,восемь:8,восьми:8,девять:9,девяти:9,десять:10,десяти:10,одиннадцать:11,одиннадцати:11,двенадцать:12,двенадцати:12},g6={первое:1,первого:1,второе:2,второго:2,третье:3,третьего:3,четвертое:4,четвертого:4,пятое:5,пятого:5,шестое:6,шестого:6,седьмое:7,седьмого:7,восьмое:8,восьмого:8,девятое:9,девятого:9,десятое:10,десятого:10,одиннадцатое:11,одиннадцатого:11,двенадцатое:12,двенадцатого:12,тринадцатое:13,тринадцатого:13,четырнадцатое:14,четырнадцатого:14,пятнадцатое:15,пятнадцатого:15,шестнадцатое:16,шестнадцатого:16,семнадцатое:17,семнадцатого:17,восемнадцатое:18,восемнадцатого:18,девятнадцатое:19,девятнадцатого:19,двадцатое:20,двадцатого:20,"двадцать первое":21,"двадцать первого":21,"двадцать второе":22,"двадцать второго":22,"двадцать третье":23,"двадцать третьего":23,"двадцать четвертое":24,"двадцать четвертого":24,"двадцать пятое":25,"двадцать пятого":25,"двадцать шестое":26,"двадцать шестого":26,"двадцать седьмое":27,"двадцать седьмого":27,"двадцать восьмое":28,"двадцать восьмого":28,"двадцать девятое":29,"двадцать девятого":29,тридцатое:30,тридцатого:30,"тридцать первое":31,"тридцать первого":31},_6={сек:`second`,секунда:`second`,секунд:`second`,секунды:`second`,секунду:`second`,секундочка:`second`,секундочки:`second`,секундочек:`second`,секундочку:`second`,мин:`minute`,минута:`minute`,минут:`minute`,минуты:`minute`,минуту:`minute`,минуток:`minute`,минутки:`minute`,минутку:`minute`,минуточек:`minute`,минуточки:`minute`,минуточку:`minute`,час:`hour`,часов:`hour`,часа:`hour`,часу:`hour`,часиков:`hour`,часика:`hour`,часике:`hour`,часик:`hour`,день:`day`,дня:`day`,дней:`day`,суток:`day`,сутки:`day`,неделя:`week`,неделе:`week`,недели:`week`,неделю:`week`,недель:`week`,недельке:`week`,недельки:`week`,неделек:`week`,месяц:`month`,месяце:`month`,месяцев:`month`,месяца:`month`,квартал:`quarter`,квартале:`quarter`,кварталов:`quarter`,год:`year`,года:`year`,году:`year`,годов:`year`,лет:`year`,годик:`year`,годика:`year`,годиков:`year`},aoe=`(?:${Q(h6)}|[0-9]+|[0-9]+\\.[0-9]+|пол|несколько|пар(?:ы|у)|\\s{0,3})`;function ooe(e){let t=e.toLowerCase();return h6[t]===void 0?t.match(/несколько/)?3:t.match(/пол/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):h6[t]}var v6=`(?:${Q(g6)}|[0-9]{1,2}(?:го|ого|е|ое)?)`;function y6(e){let t=e.toLowerCase();return g6[t]===void 0?parseInt(t):g6[t]}var b6=`(?:\\s+(?:году|года|год|г|г.))?`,x6=`(?:[1-9][0-9]{0,3}${b6}\\s*(?:н.э.|до н.э.|н. э.|до н. э.)|[1-2][0-9]{3}${b6}|[5-9][0-9]${b6})`;function S6(e){return/(год|года|г|г.)/i.test(e)&&(e=e.replace(/(год|года|г|г.)/i,``)),/(до н.э.|до н. э.)/i.test(e)?(e=e.replace(/(до н.э.|до н. э.)/i,``),-parseInt(e)):/(н. э.|н.э.)/i.test(e)?(e=e.replace(/(н. э.|н.э.)/i,``),parseInt(e)):JQ(parseInt(e))}var C6=`(${aoe})\\s{0,3}(${Q(_6)})`,w6=new RegExp(C6,`i`),T6=KQ(`(?:(?:около|примерно)\\s{0,3})?`,C6);function E6(e){let t={},n=e,r=w6.exec(n);for(;r;)soe(t,r),n=n.substring(r[0].length).trim(),r=w6.exec(n);return t}function soe(e,t){let n=ooe(t[1]),r=_6[t[2].toLowerCase()];e[r]=n}var D6=`(?:(?:около|примерно)\\s*(?:~\\s*)?)?(${T6})${d6.rightBoundary}`,coe=class extends ${patternLeftBoundary(){return d6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(D6,d6.flags):RegExp(`(?:в течение|в течении)\\s*${D6}`,d6.flags)}innerExtract(e,t){let n=E6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},O6=class extends ${patternLeftBoundary(){return d6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),d6.flags)}innerPatternHasChange(e,t){return!1}},k6=class extends O6{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${d6.rightBoundary}`,d6.flags)}},A6=1,j6=2,loe=3,M6=4,uoe=class extends k6{innerPatternString(e){return`(?:с)?\\s*(${v6})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${v6}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(m6)})(?:(?:-|\\/|,?\\s{0,3})(${x6}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=m6[t[loe].toLowerCase()],i=y6(t[A6]);if(i>31)return t.index+=t[A6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[M6]){let e=S6(t[M6]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[j6]){let e=y6(t[j6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},doe=2,N6=3,foe=class extends O6{innerPatternString(e){return`((?:в)\\s*)?(${Q(m6)})\\s*(?:[,-]?\\s*(${x6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[doe].toLowerCase();if(t[0].length<=3&&!p6[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=m6[n];if(r.start.assign(`month`,i),t[N6]){let e=S6(t[N6]);r.start.assign(`year`,e)}else{let t=YQ(e.refDate,1,i);r.start.imply(`year`,t)}return r}},poe=class extends a1{constructor(e){super(e)}patternFlags(){return d6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|и|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|с)\\s*)??`}primarySuffix(){return`(?:\\s*(?:утра|вечера|после полудня))?(?!\\/)${d6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечера`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`после полудня`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`утра`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},moe=class extends O6{innerPatternString(e){return`(${T6})\\s{0,5}назад(?=(?:\\W|$))`}innerExtract(e,t){let n=UQ(E6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},hoe=class extends g1{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}},goe=class extends b1{patternBetween(){return RegExp(`^\\s*(T|в|,|-)?\\s*$`)}},_oe=class extends k6{innerPatternString(e){return`(?:с|со)?\\s*(сегодня|вчера|завтра|послезавтра|послепослезавтра|позапозавчера|позавчера)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сегодня`:return Q1(e.reference);case`вчера`:return $1(e.reference);case`завтра`:return e0(e.reference);case`послезавтра`:return n0(e.reference,2);case`послепослезавтра`:return n0(e.reference,3);case`позавчера`:return t0(e.reference,2);case`позапозавчера`:return t0(e.reference,3)}return r}},voe=class extends k6{innerPatternString(e){return`(сейчас|прошлым\\s*вечером|прошлой\\s*ночью|следующей\\s*ночью|сегодня\\s*ночью|этой\\s*ночью|ночью|этим утром|утром|утра|в\\s*полдень|вечером|вечера|в\\s*полночь)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`сейчас`)return Z1(e.reference);if(r===`вечером`||r===`вечера`)return a0(e.reference);if(r.endsWith(`утром`)||r.endsWith(`утра`))return c0(e.reference);if(r.match(/в\s*полдень/))return u0(e.reference);if(r.match(/прошлой\s*ночью/))return i0(e.reference);if(r.match(/прошлым\s*вечером/))return o0(e.reference);if(r.match(/следующей\s*ночью/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),NQ(i,t),i.imply(`hour`,0)}return r.match(/в\s*полночь/)||r.endsWith(`ночью`)?s0(e.reference):i}},yoe=1,boe=2,xoe=3,Soe=class extends k6{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:(эту|этот|прошлый|прошлую|следующий|следующую|следующего)\\s*)?(${Q(f6)})(?:\\s*(?:,|\\)|)))?(?:\\s*на\\s*(этой|прошлой|следующей)\\s*неделе)?`}innerExtract(e,t){let n=f6[t[boe].toLowerCase()],r=t[yoe],i=t[xoe],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`прошлый`||a==`прошлую`||a==`прошлой`?o=`last`:a==`следующий`||a==`следующую`||a==`следующей`||a==`следующего`?o=`next`:(a==`этот`||a==`эту`||a==`этой`)&&(o=`this`),A1(e.reference,n,o)}},Coe=1,woe=2,Toe=class extends k6{innerPatternString(e){return`(в прошлом|на прошлой|на следующей|в следующем|на этой|в этом)\\s*(${Q(_6)})`}innerExtract(e,t){let n=t[Coe].toLowerCase(),r=_6[t[woe].toLowerCase()];if(n==`на следующей`||n==`в следующем`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`в прошлом`||n==`на прошлой`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},Eoe=class extends k6{innerPatternString(e){return`(эти|последние|прошлые|следующие|после|спустя|через|\\+|-)\\s*(${T6})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=E6(t[2]);switch(n){case`последние`:case`прошлые`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}},Doe=new Q0(Ooe());new Q0(P6(!0));function Ooe(){let e=P6(!1);return e.parsers.unshift(new _oe),e.parsers.unshift(new voe),e.parsers.unshift(new foe),e.parsers.unshift(new Toe),e.parsers.unshift(new Eoe),e}function P6(e=!0){return X1({parsers:[new A0(!0),new coe,new uoe,new Soe,new poe(e),new moe],refiners:[new goe,new hoe]},e)}var F6={domingo:0,dom:0,lunes:1,lun:1,martes:2,mar:2,miércoles:3,miercoles:3,mié:3,mie:3,jueves:4,jue:4,viernes:5,vie:5,sábado:6,sabado:6,sáb:6,sab:6},I6={enero:1,febrero:2,marzo:3,abril:4,mayo:5,junio:6,julio:7,agosto:8,septiembre:9,setiembre:9,octubre:10,noviembre:11,diciembre:12},L6={...I6,ene:1,"ene.":1,feb:2,"feb.":2,mar:3,"mar.":3,abr:4,"abr.":4,may:5,"may.":5,jun:6,"jun.":6,jul:7,"jul.":7,ago:8,"ago.":8,sep:9,"sep.":9,oct:10,"oct.":10,nov:11,"nov.":11,dic:12,"dic.":12},R6={uno:1,dos:2,tres:3,cuatro:4,cinco:5,seis:6,siete:7,ocho:8,nueve:9,diez:10,once:11,doce:12,trece:13},z6={primero:1,primera:1,segundo:2,segunda:2,tercero:3,tercera:3,cuarto:4,cuarta:4,quinto:5,quinta:5,sexto:6,sexta:6,séptimo:7,septimo:7,séptima:7,septima:7,octavo:8,octava:8,noveno:9,novena:9,décimo:10,decimo:10,décima:10,decima:10,undécimo:11,undecimo:11,duodécimo:12,duodecimo:12,decimotercero:13,decimocuarto:14,decimoquinto:15,decimosexto:16,decimoséptimo:17,decimoseptimo:17,decimoctavo:18,decimonoveno:19,vigésimo:20,vigesimo:20,"vigésimo primero":21,"vigesimo primero":21,"vigésimo segundo":22,"vigesimo segundo":22,"vigésimo tercero":23,"vigesimo tercero":23,"vigésimo cuarto":24,"vigesimo cuarto":24,"vigésimo quinto":25,"vigesimo quinto":25,"vigésimo sexto":26,"vigesimo sexto":26,"vigésimo séptimo":27,"vigesimo septimo":27,"vigésimo octavo":28,"vigesimo octavo":28,"vigésimo noveno":29,"vigesimo noveno":29,trigésimo:30,trigesimo:30,"trigésimo primero":31,"trigesimo primero":31},B6={sec:`second`,segundo:`second`,segundos:`second`,min:`minute`,mins:`minute`,minuto:`minute`,minutos:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hora:`hour`,horas:`hour`,día:`day`,días:`day`,dia:`day`,dias:`day`,semana:`week`,semanas:`week`,mes:`month`,meses:`month`,cuarto:`quarter`,cuartos:`quarter`,año:`year`,años:`year`,ano:`year`,anos:`year`},koe=`(?:${Q(R6)}|[0-9]+|[0-9]+\\.[0-9]+|un?|uno?|una?|algunos?|unos?|demi-?)`;function Aoe(e){let t=e.toLowerCase();return R6[t]===void 0?t===`un`||t===`una`||t===`uno`?1:t.match(/algunos?/)||t.match(/unos?/)?3:t.match(/media?/)?.5:parseFloat(t):R6[t]}var V6=`(?:${Q(z6)}|[0-9]{1,2}(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)?)`;function H6(e){let t=e.toLowerCase();return z6[t]===void 0?(t=t.replace(/(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)$/i,``),parseInt(t)):z6[t]}var U6=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function W6(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var G6=`(${koe})\\s{0,5}(${Q(B6)})\\s{0,5}`,K6=new RegExp(G6,`i`),q6=KQ(``,G6);function joe(e){let t={},n=e,r=K6.exec(n);for(;r;)Moe(t,r),n=n.substring(r[0].length),r=K6.exec(n);return t}function Moe(e,t){let n=Aoe(t[1]),r=B6[t[2].toLowerCase()];e[r]=n}var Noe=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|pasado|pr[oó]ximo)\\s*)?(${Q(F6)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|pasado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),Poe=1,Foe=2,Ioe=3,Loe=class extends ${innerPattern(){return Noe}innerExtract(e,t){let n=F6[t[Foe].toLowerCase()];if(n===void 0)return null;let r=t[Poe],i=t[Ioe],a=r||i||``;a=a.toLowerCase();let o=null;return a==`pasado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),A1(e.reference,n,o)}},Roe=class extends a1{primaryPrefix(){return`(?:(?:aslas|deslas|las?|al?|de|del)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:l)?|\\?)\\s*`}},zoe=class extends b1{patternBetween(){return RegExp(`^\\s*(?:,|de|aslas|a|a\\s+la|en\\s+la)?\\s*$`,`i`)}},Boe=class extends g1{patternBetween(){return/^\s*(?:-)\s*$/i}},Voe=RegExp(`(${V6})(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*(${V6}))?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(L6)})(?:\\s*(?:de|,)?\\s*(${U6}))?(?=\\W|$)`,`i`),J6=1,Y6=2,Hoe=3,X6=4,Uoe=class extends ${innerPattern(){return Voe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=L6[t[Hoe].toLowerCase()],i=H6(t[J6]);if(i>31)return t.index+=t[J6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[X6]){let e=W6(t[X6]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[Y6]){let e=H6(t[Y6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Woe=class extends ${innerPattern(e){return/(ahora|hoy|mañana|manana|ayer)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();if((n===`mañana`||n===`manana`)&&e.text.substring(0,t.index).match(/(?:^|[^\p{L}\p{N}\p{M}_])(?:a|en)\s+la\s*$/iu))return null;switch(n){case`ahora`:return Z1(e.reference);case`hoy`:return Q1(e.reference);case`mañana`:case`manana`:return e0(e.reference);case`ayer`:return $1(e.reference)}return r}},Goe=class extends ${innerPattern(){return/(?:esta\s*)?(mañana|manana|tarde|medianoche|mediodia|mediodía|noche)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noche`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`mañana`:case`manana`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`medianoche`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),NQ(r,e),IQ(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`mediodia`:case`mediodía`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},Koe=RegExp(`(?:(?:en|por|durante|de|dentro de)\\s*)?(${q6})(?=\\W|$)`,`i`),qoe=RegExp(`(?:en|por|durante|de|dentro de)\\s*(${q6})(?=\\W|$)`,`i`),Joe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return!this.strictMode&&e.option.forwardDate?Koe:qoe}innerExtract(e,t){let n=joe(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Yoe=RegExp(`((?:en)\\s*)?(${Q(L6)})\\s*(?:(?:,|-|de)?\\s*(${U6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Xoe=1,Zoe=2,Z6=3,Qoe=RegExp(`(?:^|[^\\p{L}\\p{N}\\p{M}_])${V6}(?:\\s*(?:desde|de|-|–|ao?|\\s)\\s*${V6})?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)$`,`iu`),$oe=class extends ${innerPattern(){return Yoe}innerExtract(e,t){let n=t[Zoe].toLowerCase();if(e.text.substring(0,t.index).match(Qoe)||t[0].length<=3&&!I6[n])return null;let r=e.createParsingResult(t.index+(t[Xoe]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ESMonthNameParser`);let i=L6[n];if(r.start.assign(`month`,i),t[Z6]){let e=W6(t[Z6]);r.start.assign(`year`,e)}else{let t=YQ(e.refDate,1,i);r.start.imply(`year`,t)}return r}},ese=new Q0(tse());new Q0(Q6(!0));function tse(e=!0){let t=Q6(!1,e);return t.parsers.push(new Woe),t.parsers.push(new Goe),t.parsers.push(new $oe),t}function Q6(e=!0,t=!0){return X1({parsers:[new A0(t),new Loe,new Roe,new Uoe,new Joe(e)],refiners:[new zoe,new Boe]},e)}var $6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},e8={неділя:0,неділі:0,неділю:0,нд:0,"нд.":0,понеділок:1,понеділка:1,пн:1,"пн.":1,вівторок:2,вівторка:2,вт:2,"вт.":2,середа:3,середи:3,середу:3,ср:3,"ср.":3,четвер:4,четверга:4,четвергу:4,чт:4,"чт.":4,"п'ятниця":5,"п'ятниці":5,"п'ятницю":5,пт:5,"пт.":5,субота:6,суботи:6,суботу:6,сб:6,"сб.":6},t8={січень:1,січня:1,січні:1,лютий:2,лютого:2,лютому:2,березень:3,березня:3,березні:3,квітень:4,квітня:4,квітні:4,травень:5,травня:5,травні:5,червень:6,червня:6,червні:6,липень:7,липня:7,липні:7,серпень:8,серпня:8,серпні:8,вересень:9,вересня:9,вересні:9,жовтень:10,жовтня:10,жовтні:10,листопад:11,листопада:11,листопаду:11,грудень:12,грудня:12,грудні:12},n8={...t8,січ:1,"січ.":1,лют:2,"лют.":2,бер:3,"бер.":3,квіт:4,"квіт.":4,трав:5,"трав.":5,черв:6,"черв.":6,лип:7,"лип.":7,серп:8,"серп.":8,сер:8,"cер.":8,вер:9,"вер.":9,верес:9,"верес.":9,жовт:10,"жовт.":10,листоп:11,"листоп.":11,груд:12,"груд.":12},r8={один:1,одна:1,одної:1,одну:1,дві:2,два:2,двох:2,три:3,трьох:3,чотири:4,чотирьох:4,"п'ять":5,"п'яти":5,шість:6,шести:6,сім:7,семи:7,вісім:8,восьми:8,"дев'ять":9,"дев'яти":9,десять:10,десяти:10,одинадцять:11,одинадцяти:11,дванадцять:12,дванадцяти:12},i8={перше:1,першого:1,друге:2,другого:2,третє:3,третього:3,четверте:4,четвертого:4,"п'яте":5,"п'ятого":5,шосте:6,шостого:6,сьоме:7,сьомого:7,восьме:8,восьмого:8,"дев'яте":9,"дев'ятого":9,десяте:10,десятого:10,одинадцяте:11,одинадцятого:11,дванадцяте:12,дванадцятого:12,тринадцяте:13,тринадцятого:13,чотирнадцяте:14,чотинрнадцятого:14,"п'ятнадцяте":15,"п'ятнадцятого":15,шістнадцяте:16,шістнадцятого:16,сімнадцяте:17,сімнадцятого:17,вісімнадцяте:18,вісімнадцятого:18,"дев'ятнадцяте":19,"дев'ятнадцятого":19,двадцяте:20,двадцятого:20,"двадцять перше":21,"двадцять першого":21,"двадцять друге":22,"двадцять другого":22,"двадцять третє":23,"двадцять третього":23,"двадцять четверте":24,"двадцять четвертого":24,"двадцять п'яте":25,"двадцять п'ятого":25,"двадцять шосте":26,"двадцять шостого":26,"двадцять сьоме":27,"двадцять сьомого":27,"двадцять восьме":28,"двадцять восьмого":28,"двадцять дев'яте":29,"двадцять дев'ятого":29,тридцяте:30,тридцятого:30,"тридцять перше":31,"тридцять першого":31},a8={сек:`second`,секунда:`second`,секунд:`second`,секунди:`second`,секунду:`second`,секундочок:`second`,секундочки:`second`,секундочку:`second`,хв:`minute`,хвилина:`minute`,хвилин:`minute`,хвилини:`minute`,хвилину:`minute`,хвилинок:`minute`,хвилинки:`minute`,хвилинку:`minute`,хвилиночок:`minute`,хвилиночки:`minute`,хвилиночку:`minute`,год:`hour`,година:`hour`,годин:`hour`,години:`hour`,годину:`hour`,годинка:`hour`,годинок:`hour`,годинки:`hour`,годинку:`hour`,день:`day`,дня:`day`,днів:`day`,дні:`day`,доба:`day`,добу:`day`,тиждень:`week`,тижню:`week`,тижня:`week`,тижні:`week`,тижнів:`week`,місяць:`month`,місяців:`month`,місяці:`month`,місяця:`month`,квартал:`quarter`,кварталу:`quarter`,квартала:`quarter`,кварталів:`quarter`,кварталі:`quarter`,рік:`year`,року:`year`,році:`year`,років:`year`,роки:`year`},nse=`(?:${Q(r8)}|[0-9]+|[0-9]+\\.[0-9]+|пів|декілька|пар(?:у)|\\s{0,3})`;function rse(e){let t=e.toLowerCase();return r8[t]===void 0?t.match(/декілька/)?2:t.match(/пів/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):r8[t]}var o8=`(?:${Q(i8)}|[0-9]{1,2}(?:го|ого|е)?)`;function s8(e){let t=e.toLowerCase();return i8[t]===void 0?parseInt(t):i8[t]}var c8=`(?:\\s+(?:року|рік|р|р.))?`,l8=`(?:[1-9][0-9]{0,3}${c8}\\s*(?:н.е.|до н.е.|н. е.|до н. е.)|[1-2][0-9]{3}${c8}|[5-9][0-9]${c8})`;function u8(e){return/(рік|року|р|р.)/i.test(e)&&(e=e.replace(/(рік|року|р|р.)/i,``)),/(до н.е.|до н. е.)/i.test(e)?(e=e.replace(/(до н.е.|до н. е.)/i,``),-parseInt(e)):/(н. е.|н.е.)/i.test(e)?(e=e.replace(/(н. е.|н.е.)/i,``),parseInt(e)):JQ(parseInt(e))}var d8=`(${nse})\\s{0,3}(${Q(a8)})`,f8=new RegExp(d8,`i`),p8=KQ(`(?:(?:близько|приблизно)\\s{0,3})?`,d8);function m8(e){let t={},n=e,r=f8.exec(n);for(;r;)ise(t,r),n=n.substring(r[0].length).trim(),r=f8.exec(n);return t}function ise(e,t){let n=rse(t[1]),r=a8[t[2].toLowerCase()];e[r]=n}var h8=`(?:(?:приблизно|орієнтовно)\\s*(?:~\\s*)?)?(${p8})${$6.rightBoundary}`,ase=class extends ${patternLeftBoundary(){return $6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(h8,$6.flags):RegExp(`(?:протягом|на протязі|протягом|упродовж|впродовж)\\s*${h8}`,$6.flags)}innerExtract(e,t){let n=m8(t[1]);return Z.createRelativeFromReference(e.reference,n)}},g8=class extends ${patternLeftBoundary(){return $6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),$6.flags)}innerPatternHasChange(e,t){return!1}},_8=class extends g8{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${$6.rightBoundary}`,$6.flags)}},v8=1,y8=2,ose=3,b8=4,sse=class extends _8{innerPatternString(e){return`(?:з|із)?\\s*(${o8})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${o8}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(n8)})(?:(?:-|\\/|,?\\s{0,3})(${l8}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=n8[t[ose].toLowerCase()],i=s8(t[v8]);if(i>31)return t.index+=t[v8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[b8]){let e=u8(t[b8]);n.start.assign(`year`,e)}else{let t=YQ(e.reference.instant,i,r);n.start.imply(`year`,t)}if(t[y8]){let e=s8(t[y8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},cse=2,x8=3,lse=class extends g8{innerPatternString(e){return`((?:в|у)\\s*)?(${Q(n8)})\\s*(?:[,-]?\\s*(${l8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[cse].toLowerCase();if(t[0].length<=3&&!t8[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=n8[n];if(r.start.assign(`month`,i),t[x8]){let e=u8(t[x8]);r.start.assign(`year`,e)}else{let t=YQ(e.reference.instant,1,i);r.start.imply(`year`,t)}return r}},use=class extends a1{constructor(e){super(e)}patternFlags(){return $6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|і|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|у|о|об|з|із|від)\\s*)??`}primarySuffix(){return`(?:\\s*(?:ранку|вечора|по обіді|після обіду))?(?!\\/)${$6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечора`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`по обіді`)||t[0].endsWith(`після обіду`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`ранку`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},dse=class extends g8{innerPatternString(e){return`(${p8})\\s{0,5}тому(?=(?:\\W|$))`}innerExtract(e,t){let n=UQ(m8(t[1]));return Z.createRelativeFromReference(e.reference,n)}},fse=class extends g1{patternBetween(){return/^\s*(і до|і по|до|по|-)\s*$/i}},pse=class extends b1{patternBetween(){return RegExp(`^\\s*(T|в|у|о|,|-)?\\s*$`)}},mse=class extends _8{innerPatternString(e){return`(?:з|із|від)?\\s*(сьогодні|вчора|завтра|післязавтра|післяпіслязавтра|позапозавчора|позавчора)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сьогодні`:return Q1(e.reference);case`вчора`:return $1(e.reference);case`завтра`:return e0(e.reference);case`післязавтра`:return n0(e.reference,2);case`післяпіслязавтра`:return n0(e.reference,3);case`позавчора`:return t0(e.reference,2);case`позапозавчора`:return t0(e.reference,3)}return r}},hse=class extends _8{innerPatternString(e){return`(зараз|минулого\\s*вечора|минулої\\s*ночі|наступної\\s*ночі|сьогодні\\s*вночі|цієї\\s*ночі|цього ранку|вранці|ранку|зранку|опівдні|ввечері|вечора|опівночі|вночі)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`зараз`)return Z1(e.reference);if(r===`ввечері`||r===`вечора`)return a0(e.reference);if(r.endsWith(`вранці`)||r.endsWith(`ранку`)||r.endsWith(`зранку`))return c0(e.reference);if(r.endsWith(`опівдні`))return u0(e.reference);if(r.match(/минулої\s*ночі/))return i0(e.reference);if(r.match(/минулого\s*вечора/))return o0(e.reference);if(r.match(/наступної\s*ночі/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),NQ(i,t),i.imply(`hour`,1)}return r.match(/цієї\s*ночі/)||r.endsWith(`опівночі`)||r.endsWith(`вночі`)?s0(e.reference):i}},gse=1,_se=2,vse=3,yse=class extends _8{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:у\\s*?)?(?:(цей|минулого|минулий|попередній|попереднього|наступного|наступний|наступному)\\s*)?(${Q(e8)})(?:\\s*(?:,|\\)|)))?(?:\\s*(на|у|в)\\s*(цьому|минулому|наступному)\\s*тижні)?`}innerExtract(e,t){let n=e8[t[_se].toLocaleLowerCase()],r=t[gse],i=t[vse],a=r||i;a||=``,a=a.toLocaleLowerCase();let o=null;return a==`минулого`||a==`минулий`||a==`попередній`||a==`попереднього`?o=`last`:a==`наступного`||a==`наступний`?o=`next`:(a==`цей`||a==`цього`||a==`цьому`)&&(o=`this`),A1(e.reference,n,o)}},bse=1,xse=2,Sse=class extends _8{innerPatternString(e){return`(в минулому|у минулому|на минулому|минулого|на наступному|в наступному|у наступному|наступного|на цьому|в цьому|у цьому|цього)\\s*(${Q(a8)})(?=\\s*)`}innerExtract(e,t){let n=t[bse].toLowerCase(),r=a8[t[xse].toLowerCase()];if(n==`на наступному`||n==`в наступному`||n==`у наступному`||n==`наступного`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`на минулому`||n==`в минулому`||n==`у минулому`||n==`минулого`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},Cse=class extends _8{innerPatternString(e){return`(ці|останні|минулі|майбутні|наступні|після|через|\\+|-)\\s*(${p8})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=m8(t[3]);switch(n){case`останні`:case`минулі`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}},wse=new Q0(Tse());new Q0(S8(!0));function Tse(){let e=S8(!1);return e.parsers.unshift(new mse),e.parsers.unshift(new hse),e.parsers.unshift(new lse),e.parsers.unshift(new Sse),e.parsers.unshift(new Cse),e}function S8(e){return X1({parsers:[new J1,new A0(!0),new ase,new sse,new yse,new use(e),new dse],refiners:[new pse,new fse]},e)}var C8={domenica:0,dom:0,"dom.":0,lunedì:1,lunedi:1,lun:1,"lun.":1,martedì:2,martedi:2,mar:2,"mar.":2,mercoledì:3,mercoledi:3,mer:3,"mer.":3,giovedì:4,giovedi:4,gio:4,"gio.":4,venerdì:5,venerdi:5,ven:5,"ven.":5,sabato:6,sab:6,"sab.":6},w8={gennaio:1,febbraio:2,marzo:3,aprile:4,maggio:5,giugno:6,luglio:7,agosto:8,settembre:9,ottobre:10,novembre:11,dicembre:12},T8={...w8,gen:1,"gen.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,mag:5,"mag.":5,giu:6,"giu.":6,lug:7,"lug.":7,ago:8,"ago.":8,set:9,"set.":9,sett:9,"sett.":9,ott:10,"ott.":10,nov:11,"nov.":11,dic:12,"dic.":12},E8={uno:1,una:1,un:1,due:2,tre:3,quattro:4,cinque:5,sei:6,sette:7,otto:8,nove:9,dieci:10,undici:11,dodici:12},D8={primo:1,prima:1,"1°":1,"1ª":1,secondo:2,seconda:2,"2°":2,"2ª":2,terzo:3,terza:3,"3°":3,"3ª":3,quarto:4,quarta:4,"4°":4,"4ª":4,quinto:5,quinta:5,"5°":5,"5ª":5,sesto:6,sesta:6,"6°":6,"6ª":6,settimo:7,settima:7,"7°":7,"7ª":7,ottavo:8,ottava:8,"8°":8,"8ª":8,nono:9,nona:9,"9°":9,"9ª":9,decimo:10,decima:10,"10°":10,"10ª":10,undicesimo:11,undicesima:11,"11°":11,"11ª":11,dodicesimo:12,dodicesima:12,"12°":12,"12ª":12,tredicesimo:13,tredicesima:13,"13°":13,"13ª":13,quattordicesimo:14,quattordicesima:14,"14°":14,"14ª":14,quindicesimo:15,quindicesima:15,"15°":15,"15ª":15,sedicesimo:16,sedicesima:16,"16°":16,"16ª":16,diciassettesimo:17,diciassettesima:17,"17°":17,"17ª":17,diciottesimo:18,diciottesima:18,"18°":18,"18ª":18,diciannovesimo:19,diciannovesima:19,"19°":19,"19ª":19,ventesimo:20,ventesima:20,"20°":20,"20ª":20,ventunesimo:21,ventunesima:21,"21°":21,"21ª":21,ventiduesimo:22,ventiduesima:22,"22°":22,"22ª":22,ventitreesimo:23,ventitreesima:23,"23°":23,"23ª":23,ventiquattresimo:24,ventiquattresima:24,"24°":24,"24ª":24,venticinquesimo:25,venticinquesima:25,"25°":25,"25ª":25,ventiseiesimo:26,ventiseiesima:26,"26°":26,"26ª":26,ventisettesimo:27,ventisettesima:27,"27°":27,"27ª":27,ventottesimo:28,ventottesima:28,"28°":28,"28ª":28,ventinovesimo:29,ventinovesima:29,"29°":29,"29ª":29,trentesimo:30,trentesima:30,"30°":30,"30ª":30,trentunesimo:31,trentunesima:31,"31°":31,"31ª":31},O8={secondo:`second`,secondi:`second`,minuto:`minute`,minuti:`minute`,ora:`hour`,ore:`hour`,giorno:`day`,giorni:`day`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`},k8={s:`second`,sec:`second`,secondo:`second`,secondi:`second`,m:`minute`,min:`minute`,minuto:`minute`,minuti:`minute`,h:`hour`,ora:`hour`,ore:`hour`,g:`day`,gg:`day`,giorno:`day`,giorni:`day`,sett:`week`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trim:`quarter`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`,...O8},A8=`(?:${Q(E8)}|[0-9]+|[0-9]+\\.[0-9]+|mezz[oa]?(?:\\s{0,2})?|un(?:'|\\s{0,2})?|qualche|alcuni|paio\\s{0,2}(?:di)?)`;function Ese(e){let t=e.toLowerCase();return E8[t]===void 0?t===`un`||t===`un'`||t===`una`||t===`uno`?1:t.match(/qualche/)?3:t.match(/mezz/)?.5:t.match(/paio/)?2:t.match(/alcuni/)?7:parseFloat(t):E8[t]}var j8=`(?:${Q(D8)}|[0-9]{1,2}(?:°|ª|º)?)`;function M8(e){let t=e.toLowerCase();return D8[t]===void 0?(t=t.replace(/(?:°|ª|º)$/i,``),parseInt(t)):D8[t]}var N8=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])`;function P8(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):JQ(parseInt(e))}var F8=`(${A8})\\s{0,3}(${Q(k8)})`,I8=new RegExp(F8,`i`),Dse=`(${A8})\\s{0,3}(${Q(O8)})`,L8=`\\s{0,5},?(?:\\s*e)?\\s{0,5}`,R8=KQ(`(?:(?:circa|approssimativamente)\\s{0,3})?`,F8,L8),z8=KQ(`(?:(?:circa|approssimativamente)\\s{0,3})?`,Dse,L8);function B8(e){let t={},n=e,r=I8.exec(n);for(;r;)Ose(t,r),n=n.substring(r[0].length).trim(),r=I8.exec(n);return Object.keys(t).length==0?null:t}function Ose(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=Ese(t[1]),r=k8[t[2].toLowerCase()];e[r]=n}var kse=RegExp(`(?:(?:entro|tra|fra|in|per)\\s*)?(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${R8})(?=\\W|$)`,`i`),Ase=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${R8})(?=\\W|$)`,`i`),jse=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${z8})(?=\\W|$)`,`i`),Mse=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?jse:e.option.forwardDate?kse:Ase}innerExtract(e,t){if(t[0].match(/^per\s*(il|la|l')\s*\w+/))return null;let n=B8(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},Nse=RegExp(`(?:il\\s{0,3})?(${j8})(?:\\s{0,3}(?:al|\\-|\\–|fino\\s*al?)?\\s{0,3}(${j8}))?(?:-|/|\\s{0,3}(?:di)?\\s{0,3})(${Q(T8)})(?:(?:-|/|,?\\s{0,3})(${N8}(?!\\w)))?(?=\\W|$)`,`i`),V8=1,H8=2,Pse=3,U8=4,Fse=class extends ${innerPattern(){return Nse}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=T8[t[Pse].toLowerCase()],i=M8(t[V8]);if(i>31)return t.index+=t[V8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[U8]){let e=P8(t[U8]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[H8]){let e=M8(t[H8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Ise=RegExp(`(${Q(T8)})(?:-|/|\\s*,?\\s*)(${j8})(?!\\s*(?:am|pm))\\s*(?:(?:al|\\-)\\s*(${j8})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${N8}))?(?=\\W|$)(?!\\:\\d)`,`i`),Lse=1,W8=2,G8=3,K8=4,Rse=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return Ise}innerExtract(e,t){let n=T8[t[Lse].toLowerCase()],r=M8(t[W8]);if(r>31||this.shouldSkipYearLikeDate&&!t[G8]&&!t[K8]&&t[W8].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ITMonthNameMiddleEndianParser`);if(t[K8]){let e=P8(t[K8]);i.assign(`year`,e)}else{let t=YQ(e.refDate,r,n);i.imply(`year`,t)}if(!t[G8])return i;let a=M8(t[G8]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},zse=RegExp(`((?:a|in|di|del)\\s*)?(${Q(T8)})\\s*(?:(?:,|-|del)?\\s*(${N8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Bse=1,Vse=2,q8=3,Hse=class extends ${innerPattern(){return zse}innerExtract(e,t){let n=t[Vse].toLowerCase();if(t[0].length<=3&&!w8[n])return null;let r=e.createParsingResult(t.index+(t[Bse]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ITMonthNameParser`);let i=T8[n];if(r.start.assign(`month`,i),t[q8]){let e=P8(t[q8]);r.start.assign(`year`,e)}else{let t=YQ(e.refDate,1,i);r.start.imply(`year`,t)}return r}},Use=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(T8)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Wse=1,Gse=2,J8=3,Kse=4,qse=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return Use}innerExtract(e,t){let n=parseInt(t[Wse]),r=parseInt(t[Kse]),i=t[J8]?parseInt(t[J8]):T8[t[Gse].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},Jse=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Yse=1,Xse=2,Zse=class extends ${innerPattern(){return Jse}innerExtract(e,t){let n=parseInt(t[Xse]),r=parseInt(t[Yse]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Qse=class extends a1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a|fino\\s*a|alle?|\\?)\\s*`}primaryPrefix(){return`(?:(?:alle?|dalle?)\\s*)??`}primarySuffix(){return`(?:\\s*(?:di\\s*(?:sera|notte|mattina|pomeriggio)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].match(/di\s*(?:sera|notte)/i)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].match(/di\s*pomeriggio/i)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].match(/di\s*mattina/i)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ITTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ITTimeExpressionParser`),r}},$se=RegExp(`(${R8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),ece=RegExp(`(${z8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),tce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?ece:$se}innerExtract(e,t){let n=B8(t[1]);return n?Z.createRelativeFromReference(e.reference,UQ(n)):null}},nce=RegExp(`(${R8})\\s{0,5}(?:dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=(?:\\W|$))`,`i`),rce=RegExp(`(${z8})\\s{0,5}(dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=\\W|$)`,`i`),ice=1,ace=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?rce:nce}innerExtract(e,t){let n=B8(t[ice]);return n?Z.createRelativeFromReference(e.reference,n):null}},oce=class extends g1{patternBetween(){return/^\s*(a|al|-|–|fino\s*a|fino\s*al)\s*$/i}},Y8=class extends b1{patternBetween(){return RegExp(`^\\s*(T|alle?|dopo\\s*le|prima\\s*delle?|,|-|\\.|∙|:)?\\s*$`)}},sce=/(adesso|ora|oggi|stasera|stanotte|domani|dopodomani|ieri|ieri\s*sera|ieri\s*notte)(?=\W|$)/i,cce=class extends ${innerPattern(e){return sce}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`adesso`:case`ora`:i=Z1(e.reference);break;case`oggi`:i=Q1(e.reference);break;case`ieri`:i=$1(e.reference);break;case`domani`:i=e0(e.reference);break;case`stasera`:case`stanotte`:i=r0(e.reference);break;case`dopodomani`:i=n0(e.reference,2);break;default:if(r.match(/ieri\s*sera/)||r.match(/ieri\s*notte/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}NQ(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ITCasualDateParser`),i}},lce=/(stamattina|stasera|stanotte|stamani)|(questa\s*)?(mattina|pomeriggio|sera|notte|mezzanotte|mezzogiorno)(?=\W|$)/i,uce=class extends ${innerPattern(){return lce}innerExtract(e,t){let n=null;if(t[1])switch(t[1].toLowerCase()){case`stamattina`:case`stamani`:n=c0(e.reference);break;case`stasera`:case`stanotte`:n=a0(e.reference)}else if(t[3])switch(t[3].toLowerCase()){case`pomeriggio`:n=l0(e.reference);break;case`sera`:case`notte`:n=a0(e.reference);break;case`mezzanotte`:n=s0(e.reference);break;case`mattina`:n=c0(e.reference);break;case`mezzogiorno`:n=u0(e.reference)}return n&&n.addTag(`parser/ITCasualTimeParser`),n}},dce=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(questo|questa|quest'|scorso|scorsa|prossimo|prossima)\\s*)?(${Q(C8)}|weekend|fine\\s*settimana)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(scorso|scorsa|prossimo|prossima)(?:\\s*settimana)?)?(?=\\W|$)`,`i`),fce=1,pce=2,mce=3,hce=class extends ${innerPattern(){return dce}innerExtract(e,t){let n=t[fce],r=t[mce],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`scorso`||i==`scorsa`?a=`last`:i==`prossimo`||i==`prossima`?a=`next`:(i==`questo`||i==`questa`||i==`quest'`)&&(a=`this`);let o=t[pce].toLowerCase(),s;if(C8[o]!==void 0)s=C8[o];else if(o==`weekend`||o.match(/fine\s*settimana/))s=a==`last`?jQ.SUNDAY:jQ.SATURDAY;else return null;return A1(e.reference,s,a)}},gce=RegExp(`(?:(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo\\s*questo|dopo\\s*questa)\\s*(${Q(k8)})|(?:il\\s*|la\\s*|l'\\s*)(${Q(k8)})\\s*(scorso|scorsa|prossimo|prossima))(?=\\W|$)`,`i`),X8=1,_ce=2,vce=3,yce=4,bce=class extends ${innerPattern(){return gce}innerExtract(e,t){let n,r;t[X8]?(n=t[X8].toLowerCase(),r=t[_ce].toLowerCase()):(n=t[yce].toLowerCase(),r=t[vce].toLowerCase());let i=k8[r];if(n==`prossimo`||n==`prossima`||n.startsWith(`dopo`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`scorso`||n==`scorsa`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/settimana/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/mese/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/anno/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},xce=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${R8})(?=\\W|$)`,`i`),Sce=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${z8})(?=\\W|$)`,`i`),Cce=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?xce:Sce}innerExtract(e,t){let n=t[1].toLowerCase(),r=B8(t[2]);if(!r)return null;switch(n){case`scorso`:case`scorsa`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}};function wce(e){return e.text.match(/^[+-]/i)!=null}function Z8(e){return e.text.match(/^-/i)!=null}var Tce=class extends h1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?wce(n)||Z8(n):!1}mergeResults(e,t,n,r){let i=B8(n.text);Z8(n)&&(i=UQ(i));let a=Z.createRelativeFromReference(WQ.fromDate(t.start.date()),i);return new GQ(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function Q8(e){return e.text.match(/\s+(prima|da)$/i)!=null}function Ece(e){return e.text.match(/\s+(dopo|dal?)$/i)!=null}var Dce=class extends h1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!Q8(t)&&!Ece(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=B8(t.text);Q8(t)&&(r=UQ(r));let i=Z.createRelativeFromReference(WQ.fromDate(n.start.date()),r);return new GQ(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},Oce=RegExp(`^\\s*(${N8})`,`i`),kce=1,Ace=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=Oce.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=P8(r[kce]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},jce=class extends m1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase().endsWith(`il secondo`)||n.toLowerCase()===`secondo`?(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!0}},$8=new class{createCasualConfiguration(){let e=this.createConfiguration(!1);return e.parsers.push(new cce),e.parsers.push(new uce),e.parsers.push(new Hse),e.parsers.push(new bce),e.parsers.push(new Cce),e.refiners.push(new jce),e}createConfiguration(e=!0){let t=X1({parsers:[new A0(!0),new Mse(e),new Fse,new Rse(!0),new hce,new Zse,new Qse(e),new tce(e),new ace(e)],refiners:[new Y8]},e);return t.parsers.unshift(new qse(e)),t.refiners.unshift(new Dce),t.refiners.unshift(new Tce),t.refiners.unshift(new k1),t.refiners.push(new Y8),t.refiners.push(new Ace),t.refiners.push(new oce),t}},Mce=new Q0($8.createCasualConfiguration());new Q0($8.createConfiguration(!0));var e5={söndag:0,sön:0,so:0,måndag:1,mån:1,må:1,tisdag:2,tis:2,ti:2,onsdag:3,ons:3,on:3,torsdag:4,tors:4,to:4,fredag:5,fre:5,fr:5,lördag:6,lör:6,lö:6},t5={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,mars:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,maj:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augusti:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},Nce={första:1,andra:2,tredje:3,fjärde:4,femte:5,sjätte:6,sjunde:7,åttonde:8,nionde:9,tionde:10,elfte:11,tolfte:12,trettonde:13,fjortonde:14,femtonde:15,sextonde:16,sjuttonde:17,artonde:18,nittonde:19,tjugonde:20,tjugoförsta:21,tjugoandra:22,tjugotredje:23,tjugofjärde:24,tjugofemte:25,tjugosjätte:26,tjugosjunde:27,tjugoåttonde:28,tjugonionde:29,trettionde:30,trettioförsta:31},n5={en:1,ett:1,två:2,tre:3,fyra:4,fem:5,sex:6,sju:7,åtta:8,nio:9,tio:10,elva:11,tolv:12,tretton:13,fjorton:14,femton:15,sexton:16,sjutton:17,arton:18,nitton:19,tjugo:20,trettiо:30,fyrtio:40,femtio:50,sextio:60,sjuttio:70,åttio:80,nittio:90,hundra:100,tusen:1e3},r5={sek:`second`,sekund:`second`,sekunder:`second`,min:`minute`,minut:`minute`,minuter:`minute`,tim:`hour`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,mån:`month`,månad:`month`,månader:`month`,år:`year`,kvartаl:`quarter`,kvartal:`quarter`},Pce={sekund:`second`,sekunder:`second`,minut:`minute`,minuter:`minute`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,månad:`month`,månader:`month`,år:`year`,kvartal:`quarter`};function Fce(e){let t={},n=e,r=o5.exec(n);for(;r;)Ice(t,r),n=n.substring(r[0].length),r=o5.exec(n);return t}function Ice(e,t){let n=Bce(t[1]),r=r5[t[2].toLowerCase()];e[r]=n}var i5=`(?:${Q(n5)}|\\d+)`;`${Q(Nce)}`,`${Q(r5)}`;var a5=`(${i5})\\s{0,5}(${Q(r5)})\\s{0,5}`,o5=new RegExp(a5,`i`),Lce=`(${i5})\\s{0,5}(${Q(Pce)})\\s{0,5}`,Rce=KQ(``,a5),zce=KQ(``,Lce);function Bce(e){let t=e.toLowerCase();return n5[t]===void 0?parseInt(t):n5[t]}function Vce(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=JQ(t)),t}let t=e.toLowerCase();return n5[t]===void 0?parseInt(e):n5[t]}var Hce=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:på\\s*?)?(?:(förra|senaste|nästa|kommande)\\s*)?(${Q(e5)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(förra|senaste|nästa|kommande)\\s*vecka)?(?=\\W|$)`,`i`),Uce=1,Wce=3,Gce=2,Kce=class extends ${innerPattern(){return Hce}innerExtract(e,t){let n=e5[t[Gce].toLowerCase()],r=t[Uce],i=t[Wce],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/förra|senaste/)?o=`last`:a.match(/nästa|kommande/)&&(o=`next`),A1(e.reference,n,o)}},qce=RegExp(`(?:den\\s*?)?([0-9]{1,2})(?:\\s*(?:till|\\-|\\–|\\s)\\s*([0-9]{1,2}))?\\s*(${Q(t5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),s5=1,c5=2,Jce=3,l5=4,Yce=class extends ${innerPattern(){return qce}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=t5[t[Jce].toLowerCase()],i=parseInt(t[s5]);if(i>31)return t.index+=t[s5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[l5]){let e=Vce(t[l5]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[c5]){let e=parseInt(t[c5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Xce=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${Rce})(?=\\W|$)`,`i`),Zce=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${zce})(?=\\W|$)`,`i`),Qce=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?Xce:Zce}innerExtract(e,t){let n=t[1].toLowerCase(),r=Fce(t[2]);if(!r)return null;switch(n){case`förra`:case`passerade`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}},$ce=RegExp(`(nu|idag|imorgon|övermorgon|igår|förrgår|i\\s*förrgår)(?:\\s*(?:på\\s*)?(morgonen?|förmiddagen?|middagen?|eftermiddagen?|kvällen?|natten?|midnatt))?(?=\\W|$)`,`i`),ele=1,tle=2,nle=class extends ${innerPattern(e){return $ce}innerExtract(e,t){let n=e.refDate,r=(t[ele]||``).toLowerCase(),i=(t[tle]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nu`:a=Z1(e.reference);break;case`idag`:a=Q1(e.reference);break;case`imorgon`:case`imorn`:let t=new Date(n.getTime());t.setDate(t.getDate()+1),NQ(a,t),IQ(a,t);break;case`igår`:let r=new Date(n.getTime());r.setDate(r.getDate()-1),NQ(a,r),IQ(a,r);break;case`förrgår`:case`i förrgår`:let i=new Date(n.getTime());i.setDate(i.getDate()-2),NQ(a,i),IQ(a,i)}switch(i){case`morgon`:case`morgonen`:a.imply(`hour`,6),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`förmiddag`:case`förmiddagen`:a.imply(`hour`,9),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`middag`:case`middagen`:a.imply(`hour`,12),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`eftermiddag`:case`eftermiddagen`:a.imply(`hour`,15),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`kväll`:case`kvällen`:a.imply(`hour`,20),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`natt`:case`natten`:case`midnatt`:i===`midnatt`?a.imply(`hour`,0):a.imply(`hour`,2),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0)}return a}},rle=new Q0(ile());new Q0(u5(!0));function ile(e=!0){let t=u5(!1,e);return t.parsers.unshift(new nle),t}function u5(e=!0,t=!0){return X1({parsers:[new J1,new A0(t),new Yce,new Kce,new Qce],refiners:[]},e)}var ale=class extends a1{primaryPrefix(){return`(?:(?:klo|kello)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},d5={sunnuntai:0,sunnuntaina:0,su:0,maanantai:1,maanantaina:1,ma:1,tiistai:2,tiistaina:2,ti:2,keskiviikko:3,keskiviikkona:3,ke:3,torstai:4,torstaina:4,to:4,perjantai:5,perjantaina:5,pe:5,lauantai:6,lauantaina:6,la:6},f5={tammikuu:1,tammikuuta:1,tammikuun:1,tammi:1,helmikuu:2,helmikuuta:2,helmikuun:2,helmi:2,maaliskuu:3,maaliskuuta:3,maaliskuun:3,maalis:3,huhtikuu:4,huhtikuuta:4,huhtikuun:4,huhti:4,toukokuu:5,toukokuuta:5,toukokuun:5,touko:5,kesäkuu:6,kesäkuuta:6,kesäkuun:6,kesä:6,heinäkuu:7,heinäkuuta:7,heinäkuun:7,heinä:7,elokuu:8,elokuuta:8,elokuun:8,elo:8,syyskuu:9,syyskuuta:9,syyskuun:9,syys:9,lokakuu:10,lokakuuta:10,lokakuun:10,loka:10,marraskuu:11,marraskuuta:11,marraskuun:11,marras:11,joulukuu:12,joulukuuta:12,joulukuun:12,joulu:12},p5={yksi:1,yhden:1,kaksi:2,kahden:2,kolme:3,kolmen:3,neljä:4,neljän:4,viisi:5,viiden:5,kuusi:6,kuuden:6,seitsemän:7,kahdeksan:8,yhdeksän:9,kymmenen:10},m5={s:`second`,sek:`second`,sekunti:`second`,sekuntia:`second`,sekunnin:`second`,min:`minute`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,t:`hour`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,pv:`day`,päivä:`day`,päivää:`day`,päivän:`day`,vk:`week`,viikko:`week`,viikkoa:`week`,viikon:`week`,kk:`month`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`},ole={sekunti:`second`,sekuntia:`second`,sekunnin:`second`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,päivä:`day`,päivää:`day`,päivän:`day`,viikko:`week`,viikkoa:`week`,viikon:`week`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`};function h5(e){let t={},n=e,r=v5.exec(n);for(;r;)sle(t,r),n=n.substring(r[0].length),r=v5.exec(n);return t}function sle(e,t){let n=ule(t[1]),r=m5[t[2].toLowerCase()];e[r]=n}var g5=`(?:${Q(p5)}|\\d+)`;`${Q(m5)}`;var _5=`(${g5})\\s{0,5}(${Q(m5)})\\s{0,5}`,v5=new RegExp(_5,`i`),cle=`(${g5})\\s{0,5}(${Q(ole)})\\s{0,5}`,y5=KQ(``,_5),lle=KQ(``,cle);function ule(e){let t=e.toLowerCase();return p5[t]===void 0?parseInt(t):p5[t]}function dle(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=JQ(t)),t}let t=e.toLowerCase();return p5[t]===void 0?parseInt(e):p5[t]}var fle=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(viime|edellinen|edellisenä|ensi|seuraava|seuraavana|tämä|tänä)\\s*)?(${Q(d5)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(viime|ensi|seuraava)\\s*viikolla)?(?=\\W|$)`,`i`),ple=1,mle=2,hle=3,gle=class extends ${innerPattern(){return fle}innerExtract(e,t){let n=d5[t[mle].toLowerCase()],r=t[ple],i=t[hle],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/viime|edellinen|edellisenä/)?o=`last`:a.match(/ensi|seuraava|seuraavana/)&&(o=`next`),A1(e.reference,n,o)}},_le=RegExp(`([0-9]{1,2})\\.?(?:\\s*(?:\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(f5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),b5=1,x5=2,vle=3,S5=4,yle=class extends ${innerPattern(){return _le}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=f5[t[vle].toLowerCase()],i=parseInt(t[b5]);if(i>31)return t.index+=t[b5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[S5]){let e=dle(t[S5]);n.start.assign(`year`,e)}else{let t=YQ(e.refDate,i,r);n.start.imply(`year`,t)}if(t[x5]){let e=parseInt(t[x5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},ble=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${y5})(?=\\W|$)`,`i`),xle=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${lle})(?=\\W|$)`,`i`),Sle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?ble:xle}innerExtract(e,t){let n=t[1].toLowerCase(),r=h5(t[2]);if(!r)return null;switch(n){case`edellinen`:case`edelliset`:case`edellisten`:case`viimeiset`:case`viimeisten`:case`kuluneet`:case`kuluneiden`:case`-`:r=UQ(r)}return Z.createRelativeFromReference(e.reference,r)}},Cle=class extends ${innerPattern(){return RegExp(`(${y5})\\s*sitten(?=\\W|$)`,`i`)}innerExtract(e,t){let n=UQ(h5(t[1]));return Z.createRelativeFromReference(e.reference,n)}},wle=class extends ${innerPattern(){return RegExp(`(${y5})\\s*(?:sisällä|kuluessa|päästä)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=h5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},C5=class e extends ${innerPattern(e){return/(tänä\s*)?(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return IQ(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`aamulla`:case`aamuna`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`aamupäivällä`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`päivällä`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`iltapäivällä`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`illalla`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`yöllä`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`keskiyöllä`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},Tle=RegExp(`(nyt|tänään|huomenna|ylihuomenna|eilen|toissapäivänä|viime\\s*yönä)(?:\\s*(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä))?(?=\\W|$)`,`i`),Ele=1,Dle=2,Ole=class extends ${innerPattern(e){return Tle}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[Ele]||``).toLowerCase(),i=(t[Dle]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nyt`:a=Z1(e.reference);break;case`tänään`:a=Q1(e.reference);break;case`huomenna`:n=HQ(n,{day:1}),NQ(a,n),IQ(a,n);break;case`ylihuomenna`:n=HQ(n,{day:2}),NQ(a,n),IQ(a,n);break;case`eilen`:n=HQ(n,{day:-1}),NQ(a,n),IQ(a,n);break;case`toissapäivänä`:n=HQ(n,{day:-2}),NQ(a,n),IQ(a,n);break;default:r.match(/viime\s*yönä/)&&(n.getHours()>6&&(n=HQ(n,{day:-1})),NQ(a,n),a.imply(`hour`,0))}return i&&(a=C5.extractTimeComponents(a,i)),a}},kle=class extends g1{patternBetween(){return/^\s*(-|–)\s*$/i}},Ale=class extends b1{patternBetween(){return RegExp(`^\\s*(T|klo|kello|,|-)?\\s*$`)}},jle=new Q0(Mle());new Q0(w5(!0));function Mle(e=!0){let t=w5(!1,e);return t.parsers.unshift(new C5),t.parsers.unshift(new Ole),t.parsers.unshift(new Sle),t}function w5(e=!0,t=!0){return X1({parsers:[new J1,new A0(t),new ale,new yle,new gle,new wle,new Cle],refiners:[new kle,new Ale]},e)}var T5={"chủ nhật":0,cn:0,"thứ hai":1,t2:1,"thứ ba":2,t3:2,"thứ tư":3,t4:3,"thứ năm":4,t5:4,"thứ sáu":5,t6:5,"thứ bảy":6,t7:6},E5={"tháng 1":1,"tháng một":1,"tháng giêng":1,"tháng 2":2,"tháng hai":2,"tháng 3":3,"tháng ba":3,"tháng 4":4,"tháng tư":4,"tháng 5":5,"tháng năm":5,"tháng 6":6,"tháng sáu":6,"tháng 7":7,"tháng bảy":7,"tháng 8":8,"tháng tám":8,"tháng 9":9,"tháng chín":9,"tháng 10":10,"tháng mười":10,"tháng 11":11,"tháng mười một":11,"tháng 12":12,"tháng mười hai":12,"tháng chạp":12},D5={một:1,hai:2,ba:3,bốn:4,năm:5,sáu:6,bảy:7,tám:8,chín:9,mười:10,"mười một":11,"mười hai":12},O5={giây:`second`,phút:`minute`,giờ:`hour`,ngày:`day`,tuần:`week`,tháng:`month`,năm:`year`},k5=`(?:`+Q(D5)+`|[0-9]+|[0-9]+\\.[0-9]+)`;function Nle(e){let t=e.toLowerCase();return D5[t]===void 0?parseFloat(t):D5[t]}var A5=`(?:[0-9]{1,4}(?:\\s*TCN)?)`;function j5(e){let t=e.toUpperCase(),n=parseInt(e.replace(/[^0-9]+/g,``));return/TCN/.test(t)?-n:JQ(n)}var M5=`(`+k5+`)\\s{0,5}(`+Q(O5)+`)\\s{0,5}`,N5=new RegExp(M5,`i`),P5=KQ(``,M5);function F5(e){let t={},n=e,r=N5.exec(n);for(;r;){let e=Nle(r[1]),i=O5[r[2].toLowerCase()];t[i]=e,n=n.substring(r[0].length),r=N5.exec(n)}return t}var Ple=RegExp(`(?:ngày\\s*)?([0-9]{1,2})\\s*tháng\\s*([0-9]{1,2})(?:\\s*năm\\s*(`+A5+`))?(?=\\W|$)`,`i`),Fle=1,Ile=2,I5=3,Lle=class extends ${innerPattern(){return Ple}innerExtract(e,t){let n=parseInt(t[Fle]),r=parseInt(t[Ile]);if(n>31||r>12)return null;let i=e.createParsingResult(t.index,t[0]);return i.start.assign(`day`,n),i.start.assign(`month`,r),t[I5]?i.start.assign(`year`,j5(t[I5])):i.start.imply(`year`,YQ(e.refDate,n,r)),i}},Rle=RegExp(`(`+Q(E5)+`)(?:\\s*(?:năm|/)\\s*(`+A5+`))?(?=\\W|$)`,`i`),zle=1,L5=2,Ble=class extends ${innerPattern(){return Rle}innerExtract(e,t){let n=E5[t[zle].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`month`,n),r.start.imply(`day`,1),t[L5]?r.start.assign(`year`,j5(t[L5])):r.start.imply(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),r}},Vle=RegExp(`(?:\\bnăm\\s*(`+A5+`)|\\b([0-9]{1,4})\\s*(TCN))(?=\\W|$)`,`i`),R5=1,Hle=2,Ule=3,Wle=class extends ${innerPattern(){return Vle}innerExtract(e,t){let n;n=t[R5]?t[R5]:t[Hle]+` `+t[Ule];let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`year`,j5(n)),r.start.imply(`month`,1),r.start.imply(`day`,1),r}},Gle=/\b(hôm nay|hôm qua|hôm kia|ngày mai|ngày kia|bây giờ|lúc này)(?=\W|$)/i,Kle=class extends ${innerPattern(){return Gle}innerExtract(e,t){switch(t[1].toLowerCase()){case`bây giờ`:case`lúc này`:return Z1(e.reference);case`hôm nay`:return Q1(e.reference);case`hôm qua`:return $1(e.reference);case`hôm kia`:return t0(e.reference,2);case`ngày mai`:return e0(e.reference);case`ngày kia`:return n0(e.reference,2)}return e.createParsingComponents()}},qle=/(buổi\s*)?(sáng sớm|sáng|trưa|chiều|tối|đêm|nửa đêm|bình minh)(?=\W|$)/i,Jle=class e extends ${innerPattern(){return qle}innerExtract(t,n){let r=t.createParsingComponents();return IQ(r,t.refDate),e.extractTimeComponents(r,n[2].toLowerCase())}static extractTimeComponents(e,t){switch(t){case`bình minh`:case`sáng sớm`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`sáng`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`trưa`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`chiều`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`tối`:e.imply(`hour`,19),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`đêm`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`nửa đêm`:e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`meridiem`,X.AM)}return e}},Yle=RegExp(`(`+Q(T5)+`)(?:\\s*(này|tới|sau(?!\\s*khi)|qua))?(?=\\W|$)`,`i`),Xle=1,Zle=2,Qle=class extends ${innerPattern(){return Yle}innerExtract(e,t){let n=T5[t[Xle].toLowerCase()];if(n===void 0)return null;let r=t[Zle],i=null;if(r){let e=r.toLowerCase();e.includes(`tới`)||e.includes(`sau`)?i=`next`:e.includes(`qua`)&&(i=`last`)}return A1(e.reference,n,i)}},$le=RegExp(`(?:lúc\\s*|vào\\s*)?([0-9]{1,2})(?:\\s*giờ\\s*([0-9]{1,2})?\\s*(?:phút\\s*)?(sáng|trưa|chiều|tối|đêm)?|:([0-9]{2}))(?=\\W|$)`,`i`),eue=1,z5=2,tue=3,B5=4,nue=class extends ${innerPattern(){return $le}innerExtract(e,t){let n=parseInt(t[eue]);if(n>23)return null;let r=e.createParsingResult(t.index,t[0]);r.start.assign(`hour`,n);let i=t[B5]?parseInt(t[B5]):t[z5]?parseInt(t[z5]):0;if(i>=60)return null;r.start.assign(`minute`,i);let a=t[tue]?.toLowerCase();return a===`sáng`?(r.start.assign(`meridiem`,X.AM),n===12&&r.start.assign(`hour`,0)):a===`trưa`?n<10?(r.start.assign(`meridiem`,X.PM),r.start.assign(`hour`,n+12)):r.start.assign(`meridiem`,n>=12?X.PM:X.AM):(a===`chiều`||a===`tối`||a===`đêm`)&&(r.start.assign(`meridiem`,X.PM),n<12&&r.start.assign(`hour`,n+12)),r.start.imply(`second`,0),r.start.imply(`millisecond`,0),r}},rue=RegExp(`(`+P5+`)\\s{0,5}(?:trước|qua)(?=\\W|$)`,`i`),iue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return rue}innerExtract(e,t){let n=F5(t[1]);return n?Z.createRelativeFromReference(e.reference,UQ(n)):null}},aue=RegExp(`(`+P5+`)\\s{0,5}(?:sau|nữa|tới|tiếp)(?=\\W|$)`,`i`),oue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return aue}innerExtract(e,t){let n=F5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},sue=RegExp(`(?:trong\\s*(?:vòng\\s*)?)(`+P5+`)(?=\\W|$)`,`i`),cue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return sue}innerExtract(e,t){let n=F5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},V5=`(?:`+k5+`\\s{0,5})?(?:`+Q(O5)+`)`,lue=RegExp(`(này|trước|qua|sau|tới|tiếp)\\s*(`+V5+`)|(`+V5+`)\\s*(này|trước|qua|sau|tới|tiếp)(?=\\W|$)`,`i`),uue=class extends ${innerPattern(){return lue}innerExtract(e,t){let n=(t[1]||t[4]||``).toLowerCase(),r=(t[2]||t[3]||``).toLowerCase(),i=F5(r);if(Object.keys(i).length===0){let e=O5[r];if(!e)return null;i={[e]:1}}return(n===`trước`||n===`qua`)&&(i=UQ(i)),Z.createRelativeFromReference(e.reference,i)}},due=class extends g1{patternBetween(){return/^\s*(?:–|-|đến|tới|và)\s*$/}},fue=class extends b1{patternBetween(){return/^\s*(?:lúc|vào|,|T|-)?\s*$/}},pue=class extends Y1{},mue=new Q0(hue());new Q0(H5(!0));function hue(e=!0){let t=H5(!1,e);return t.parsers.unshift(new Jle),t.parsers.unshift(new Kle),t.parsers.unshift(new uue),t}function H5(e=!0,t=!0){return X1({parsers:[new J1,new A0(t),new Lle,new Ble,new Wle,new Qle,new nue,new iue(e),new oue(e),new cue(e)],refiners:[new pue,new due,new fue]},e)}var gue=/(sekarang|saat\s+ini|hari\s+ini|kemarin\s+lusa|kemarin|besok\s+lusa|besok|lusa|nanti\s+malam|malam\s+ini|tadi\s+malam|semalam)(?=\W|$)/i,_ue=class extends ${innerPattern(){return gue}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`sekarang`:case`saat ini`:return Z1(e.reference);case`hari ini`:return Q1(e.reference);case`kemarin`:return $1(e.reference);case`kemarin lusa`:return t0(e.reference,2);case`besok`:return e0(e.reference);case`lusa`:case`besok lusa`:return n0(e.reference,2);case`nanti malam`:case`malam ini`:return r0(e.reference);case`tadi malam`:case`semalam`:return i0(e.reference)}return e.createParsingComponents()}},vue=/(?:(?:pada|di)\s+)?(tengah\s+malam|tengah\s+hari|pagi|siang|sore|petang|malam(?!\s+ini))(?:\s+ini)?(?=\W|$)/i,yue=class extends ${innerPattern(){return vue}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`pagi`:return c0(e.reference);case`siang`:case`tengah hari`:return u0(e.reference);case`sore`:case`petang`:return l0(e.reference);case`malam`:return a0(e.reference);case`tengah malam`:return s0(e.reference)}return null}},U5={minggu:0,ahad:0,senin:1,selasa:2,rabu:3,kamis:4,jumat:5,"jum'at":5,sabtu:6},W5={januari:1,jan:1,"jan.":1,februari:2,pebruari:2,feb:2,"feb.":2,peb:2,"peb.":2,maret:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,agustus:8,agu:8,"agu.":8,agt:8,"agt.":8,ags:8,"ags.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nopember:11,nov:11,"nov.":11,nop:11,"nop.":11,desember:12,des:12,"des.":12},G5={satu:1,dua:2,tiga:3,empat:4,lima:5,enam:6,tujuh:7,delapan:8,sembilan:9,sepuluh:10,sebelas:11,"dua belas":12},K5={detik:`second`,menit:`minute`,jam:`hour`,hari:`day`,minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},bue=`(?:${Q(G5)}|[0-9]+|[0-9]+[\\.,][0-9]+|setengah)`;function xue(e){let t=e.toLowerCase();return G5[t]===void 0?t===`setengah`?.5:parseFloat(t.replace(`,`,`.`)):G5[t]}var q5=`(?:[1-9][0-9]{0,3}\\s*(?:SM|M)(?=\\W|$)|[1-2][0-9]{3}|[5-9][0-9])`;function J5(e){return/SM/i.test(e)?-parseInt(e.replace(/SM/i,``)):/M/i.test(e)?parseInt(e.replace(/M/i,``)):JQ(parseInt(e))}var Y5=`(?:(${bue})\\s{0,5}|se)(${Q(K5)})\\s{0,5}`,X5=new RegExp(Y5,`i`),Z5=KQ(``,Y5,`\\s{0,5}(?:,|dan)?\\s{0,5}`);function Q5(e){let t={},n=e,r=X5.exec(n);for(;r;){let e=r[1]?xue(r[1]):1,i=K5[r[2].toLowerCase()];t[i]=e,n=n.substring(r.index+r[0].length),r=X5.exec(n)}return t}var Sue=RegExp(`(?:(?:pada\\s+)?(?:tanggal|tgl\\.?)\\s*)?([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:\\s*|-|/)(${Q(W5)})(?:(?:\\s*|-|/|,\\s*)(?:tahun\\s+)?(${q5}))?(?=\\W|$)`,`i`),$5=1,e7=2,Cue=3,t7=4,wue=class extends ${innerPattern(){return Sue}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=W5[t[Cue].toLowerCase()],i=parseInt(t[$5]);if(i>31)return t.index+=t[$5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[t7]?n.start.assign(`year`,J5(t[t7])):n.start.imply(`year`,YQ(e.refDate,i,r)),t[e7]){let e=parseInt(t[e7]);if(e>31)return null;n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Tue=RegExp(`(?:(?:pada\\s+)?bulan\\s+)?(${Q(W5)})(?:\\s*[,-]?\\s*(?:tahun\\s+)?(${q5}))?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Eue=1,n7=2,Due=class extends ${innerPattern(){return Tue}innerExtract(e,t){let n=t[Eue].toLowerCase();if(n.length<=3&&n!==`mei`&&!t[n7])return null;let r=e.createParsingComponents(),i=W5[n];return r.imply(`day`,1),r.assign(`month`,i),t[n7]?r.assign(`year`,J5(t[n7])):r.imply(`year`,YQ(e.refDate,1,i)),r}},Oue=RegExp(`(${Q(W5)})(?:-|/|\\s*,?\\s*)([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:(?:-|/|\\s*,\\s*|\\s+)(?:tahun\\s+)?(${q5}))?(?=\\W|$)(?![.:]\\d)`,`i`),kue=1,Aue=2,r7=3,i7=4,jue=class extends ${innerPattern(){return Oue}innerExtract(e,t){let n=W5[t[kue].toLowerCase()],r=parseInt(t[Aue]);if(r>31)return null;let i=e.createParsingComponents({day:r,month:n});if(t[i7]?i.assign(`year`,J5(t[i7])):i.imply(`year`,YQ(e.refDate,r,n)),!t[r7])return i;let a=parseInt(t[r7]);if(a>31)return null;let o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Mue=RegExp(`(?:pada\\s+)?(hari\\s+)?(${Q(U5)})(?:\\s+(?:(?:minggu|pekan)\\s+)?(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin))?(?=\\W|$)`,`i`),Nue=1,Pue=2,Fue=3,Iue=class extends ${innerPattern(){return Mue}innerExtract(e,t){let n=t[Pue].toLowerCase();if(n===`minggu`&&!t[Nue])return null;let r=U5[n],i=(t[Fue]||``).toLowerCase().replace(/\s+/g,` `),a=null;return i===`ini`?a=`this`:i===`depan`||i===`berikutnya`||i===`mendatang`?a=`next`:(i===`lalu`||i===`yang lalu`||i===`kemarin`)&&(a=`last`),A1(e.reference,r,a)}},a7=7,Lue=class extends a1{primaryPrefix(){return`(?:(?:pada\\s+)?(?:pukul|pkl\\.?|jam)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*(?:(?:pukul|pkl\\.?|jam)\\s*)?`}primarySuffix(){return`(?:\\s*(pagi|siang|sore|petang|malam))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){if(t[0].match(/^\s*\d{4}\s*$/))return null;let n=super.extractPrimaryTimeComponents(e,t);if(!n||!t[a7]||n.isCertain(`meridiem`))return n;let r=n.get(`hour`);if(r>12)return n;switch(t[a7].toLowerCase()){case`pagi`:r==12&&(r=0);break;case`siang`:r<10&&(r+=12);break;case`sore`:case`petang`:r<12&&(r+=12);break;case`malam`:r==12?r=0:r>=5&&(r+=12)}return n.assign(`hour`,r),n.assign(`meridiem`,r>=12?X.PM:X.AM),n}},Rue=RegExp(`(${Z5})\\s{0,5}(?:yang\\s+)?(?:lalu|silam|sebelumnya)(?=\\W|$)`,`i`),zue=class extends ${innerPattern(){return Rue}innerExtract(e,t){let n=Q5(t[1]);return Z.createRelativeFromReference(e.reference,UQ(n))}},Bue=RegExp(`(${Z5})\\s{0,5}(?:lagi|kemudian|setelahnya|sesudahnya|mendatang|ke\\s*depan)(?=\\W|$)`,`i`),Vue=class extends ${innerPattern(){return Bue}innerExtract(e,t){let n=Q5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Hue=RegExp(`(?:dalam\\s+(?:waktu\\s+)?)(${Z5})(?=\\W|$)`,`i`),Uue=class extends ${innerPattern(){return Hue}innerExtract(e,t){let n=Q5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Wue=RegExp(`(minggu|pekan|bulan|tahun)\\s+(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin)(?=\\W|$)`,`i`),Gue=1,Kue=2,que={minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},Jue=class extends ${innerPattern(){return Wue}innerExtract(e,t){let n=t[Gue].toLowerCase(),r=t[Kue].toLowerCase().replace(/\s+/g,` `),i=que[n];if(r==`depan`||r==`berikutnya`||r==`mendatang`)return Z.createRelativeFromReference(e.reference,{[i]:1});if(r==`lalu`||r==`yang lalu`||r==`kemarin`)return Z.createRelativeFromReference(e.reference,{[i]:-1});let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i==`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i==`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i==`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Yue=class extends g1{patternBetween(){return/^\s*(?:-|–|s\.d\.?|s\/d|sampai(?:\s+dengan)?|hingga)\s*$/i}},Xue=class extends b1{patternBetween(){return/^\s*(?:pada|,|-|T)?\s*$/i}},Zue=new Q0(Que());new Q0(o7(!0));function Que(e=!0){let t=o7(!1,e);return t.parsers.unshift(new _ue),t.parsers.unshift(new yue),t.parsers.unshift(new Due),t.parsers.unshift(new Jue),t}function o7(e=!0,t=!0){return X1({parsers:[new A0(t),new wue,new jue,new Iue,new Lue(e),new Uue,new zue,new Vue],refiners:[new Xue,new Yue]},e)}var s7={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`};function c7(e){return e.replace(/[٠-٩]/g,e=>(e.charCodeAt(0)-1632).toString())}var l7={الأحد:0,الاحد:0,أحد:0,احد:0,الإثنين:1,الاثنين:1,إثنين:1,اثنين:1,الثلاثاء:2,ثلاثاء:2,الأربعاء:3,الاربعاء:3,أربعاء:3,اربعاء:3,الخميس:4,خميس:4,الجمعة:5,جمعة:5,السبت:6,سبت:6},u7={يناير:1,فبراير:2,مارس:3,أبريل:4,ابريل:4,مايو:5,يونيو:6,يوليو:7,أغسطس:8,اغسطس:8,سبتمبر:9,أكتوبر:10,اكتوبر:10,نوفمبر:11,ديسمبر:12,"كانون الثاني":1,شباط:2,آذار:3,اذار:3,نيسان:4,أيار:5,ايار:5,حزيران:6,تموز:7,آب:8,اب:8,أيلول:9,ايلول:9,"تشرين الأول":10,"تشرين الاول":10,"تشرين الثاني":11,"كانون الأول":12,"كانون الاول":12},d7={واحد:1,واحدة:1,اثنان:2,اثنين:2,اثنتان:2,اثنتين:2,ثلاثة:3,ثلاث:3,أربعة:4,اربعة:4,أربع:4,اربع:4,خمسة:5,خمس:5,ستة:6,ست:6,سبعة:7,سبع:7,ثمانية:8,ثماني:8,ثمان:8,تسعة:9,تسع:9,عشرة:10,عشر:10,"أحد عشر":11,"احد عشر":11,"إحدى عشرة":11,"احدى عشرة":11,"اثنا عشر":12,"اثني عشر":12,"اثنتا عشرة":12,"اثنتي عشرة":12,نصف:.5,نص:.5,ربع:.25},f7={الأول:1,الاول:1,الأولى:1,الاولى:1,أول:1,اول:1,حادي:1,الحادي:1,الثاني:2,الثانية:2,ثاني:2,الثالث:3,الثالثة:3,ثالث:3,الرابع:4,الرابعة:4,رابع:4,الخامس:5,الخامسة:5,خامس:5,السادس:6,السادسة:6,سادس:6,السابع:7,السابعة:7,سابع:7,الثامن:8,الثامنة:8,ثامن:8,التاسع:9,التاسعة:9,تاسع:9,العاشر:10,العاشرة:10,عاشر:10,"الحادي عشر":11,"الحادية عشرة":11,"الثاني عشر":12,"الثانية عشرة":12,"الثالث عشر":13,"الثالثة عشرة":13,"الرابع عشر":14,"الرابعة عشرة":14,"الخامس عشر":15,"الخامسة عشرة":15,"السادس عشر":16,"السادسة عشرة":16,"السابع عشر":17,"السابعة عشرة":17,"الثامن عشر":18,"الثامنة عشرة":18,"التاسع عشر":19,"التاسعة عشرة":19,العشرون:20,العشرين:20,"الحادي والعشرون":21,"الحادية والعشرون":21,"الواحد والعشرون":21,"الثاني والعشرون":22,"الثانية والعشرون":22,"الثالث والعشرون":23,"الثالثة والعشرون":23,"الرابع والعشرون":24,"الرابعة والعشرون":24,"الخامس والعشرون":25,"الخامسة والعشرون":25,"السادس والعشرون":26,"السادسة والعشرون":26,"السابع والعشرون":27,"السابعة والعشرون":27,"الثامن والعشرون":28,"الثامنة والعشرون":28,"التاسع والعشرون":29,"التاسعة والعشرون":29,الثلاثون:30,الثلاثين:30,"الحادي والثلاثون":31,"الحادية والثلاثون":31,"الواحد والثلاثون":31},p7={ثانية:`second`,ثانيةً:`second`,ثواني:`second`,ثوان:`second`,ثوانٍ:`second`,دقيقة:`minute`,دقيقةً:`minute`,دقائق:`minute`,ساعة:`hour`,ساعةً:`hour`,ساعات:`hour`,يوم:`day`,يوماً:`day`,يوما:`day`,أيام:`day`,ايام:`day`,أسبوع:`week`,اسبوع:`week`,أسبوعاً:`week`,أسبوعا:`week`,اسبوعاً:`week`,اسبوعا:`week`,أسابيع:`week`,اسابيع:`week`,شهر:`month`,شهراً:`month`,شهرا:`month`,أشهر:`month`,اشهر:`month`,شهور:`month`,سنة:`year`,سنةً:`year`,سنوات:`year`,سنين:`year`,عام:`year`,عاماً:`year`,عاما:`year`,أعوام:`year`,اعوام:`year`},m7={ثانيتان:`second`,ثانيتين:`second`,دقيقتان:`minute`,دقيقتين:`minute`,ساعتان:`hour`,ساعتين:`hour`,يومان:`day`,يومين:`day`,أسبوعان:`week`,اسبوعان:`week`,أسبوعين:`week`,اسبوعين:`week`,شهران:`month`,شهرين:`month`,سنتان:`year`,سنتين:`year`,عامان:`year`,عامين:`year`},$ue=`(?:${Q(d7)}|[0-9٠-٩]+|[0-9٠-٩]+[\\.,][0-9٠-٩]+|\\s{0,3})`;function ede(e){let t=e.trim();if(d7[t]!==void 0)return d7[t];if(t===``)return 1;let n=c7(t).replace(`,`,`.`);return parseFloat(n)}var h7=`(?:${Q(f7)}|[0-9٠-٩]{1,2})`;function g7(e){let t=e.trim();if(f7[t]!==void 0)return f7[t];let n=c7(t);return parseInt(n,10)}var _7=`(?:\\s*(?:ميلادية|ميلادي|م))?`,v7=`(?:[1-9١-٩][0-9٠-٩]{0,3}${_7}(?:\\s*(?:قبل الميلاد|ق\\.م))|[1-2١-٢][0-9٠-٩]{3}${_7}|[5-9٥-٩][0-9٠-٩]${_7})`;function y7(e){let t=e.trim(),n=/(قبل الميلاد|ق\.م)/i.test(t);t=t.replace(/(قبل الميلاد|ق\.م|ميلادية|ميلادي|م)/gi,``).trim();let r=c7(t),i=parseInt(r,10);return n?-i:JQ(i)}var b7=`(?:${`(${Q(m7)})`}|${`(?:(${$ue})\\s{0,3})?(${Q(p7)})`}|(?:و\\s*)?(نصف|نص|ربع))`,x7=new RegExp(b7,s7.flags),S7=KQ(`(?:(?:خلال|في غضون|في خلال|حوالي|تقريباً|تقريبا)\\s{0,3})?`,b7,`\\s{0,5},?(?:\\s*و)?\\s{0,5}`);function C7(e){let t={},n=e,r=x7.exec(n),i;for(;r&&(i=tde(t,r,i),n=n.substring(r.index+r[0].length).trim(),n);)r=x7.exec(n);return t}function tde(e,t,n){if(t[1]){let n=m7[t[1].trim()];if(n)return e[n]=(e[n]||0)+2,n}else if(t[3]){let n=ede(t[2]?t[2].trim():``),r=p7[t[3].trim()];if(r)return e[r]=(e[r]||0)+n,r}else if(t[4]){let r=t[4].trim()===`ربع`?.25:.5;if(n)return e[n]=(e[n]||0)+r,n}return n}var nde=class extends ${patternLeftBoundary(){return s7.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),s7.flags)}innerPatternHasChange(e,t){return!1}},w7=class extends nde{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${s7.rightBoundary}`,s7.flags)}},rde=class extends w7{innerPatternString(e){return`(الآن|الان|حالياً|حاليا|اليوم|أول\\s*(?:من\\s*)?أمس|اول\\s*(?:من\\s*)?امس|أول\\s*(?:من\\s*)?البارحة|اول\\s*(?:من\\s*)?البارحة|قبل\\s*(?:من\\s*)?أمس|قبل\\s*(?:من\\s*)?امس|أمس|امس|البارحة|بعد\\s*غد(?:اً|ا)?|بعد\\s*بكر[ةا]|غداً|غدا|بكر[ةا])`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n===`الآن`||n===`الان`||n===`حالياً`||n===`حاليا`?Z1(e.reference):n===`اليوم`?Q1(e.reference):n.match(/أول\s*(?:من\s*)?أمس/)||n.match(/اول\s*(?:من\s*)?امس/)||n.match(/أول\s*(?:من\s*)?البارحة/)||n.match(/اول\s*(?:من\s*)?البارحة/)||n.match(/قبل\s*(?:من\s*)?أمس/)||n.match(/قبل\s*(?:من\s*)?امس/)?t0(e.reference,2):n===`أمس`||n===`امس`||n===`البارحة`?$1(e.reference):n.match(/بعد\s*غد/)||n.match(/بعد\s*بكر/)?n0(e.reference,2):n===`غداً`||n===`غدا`||n.match(/^بكر[ةا]$/)?e0(e.reference):r}},ide=class extends w7{innerPatternString(e){return`(مساء\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*مساءً?|ليلة\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*ليلاً?|الليلة\\s*الماضية|منتصف\\s*النهار|منتصف\\s*الليل|هذا\\s*الصباح|هذا\\s*المساء|هذه\\s*الليلة|بعد\\s*الظهر|ظهر\\s*اليوم|الصباح|صباحاً|صباحا|الظهر|ظهراً|ظهرا|العصر|عصراً|عصرا|المساء|مساءً|مساء|الليلة|الليل|ليلاً|ليلا)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n.match(/مساء\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*مساء/)?o0(e.reference):n.match(/ليلة\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*ليلاً?/)||n===`الليلة الماضية`?i0(e.reference):n===`هذه الليلة`||n===`الليلة`?r0(e.reference):n===`منتصف الليل`?s0(e.reference):n===`منتصف النهار`||n===`ظهر اليوم`||n===`الظهر`||n===`ظهراً`||n===`ظهرا`?u0(e.reference):n===`بعد الظهر`||n===`العصر`||n===`عصراً`||n===`عصرا`?l0(e.reference):n===`هذا الصباح`||n===`الصباح`||n===`صباحاً`||n===`صباحا`?c0(e.reference):n===`هذا المساء`||n===`المساء`||n===`مساءً`||n===`مساء`?a0(e.reference):n===`الليل`||n===`ليلاً`||n===`ليلا`?a0(e.reference,22):r}},ade=1,ode=2,sde=3,cde=class extends w7{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:يوم\\s*)?(?:(هذا|هذه|الماضي|الماضية|السابق|السابقة|القادم|القادمة|المقبل|المقبلة)\\s+)?(${Q(l7)})(?:\\s+(هذا|هذه|الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة))?(?:\\s*(?:,|\\)|)))?`}innerExtract(e,t){let n=l7[t[ode].toLowerCase()],r=t[ade],i=t[sde],a=(r||i||``).toLowerCase(),o=null;return a===`الماضي`||a===`الماضية`||a===`السابق`||a===`السابقة`||a===`المنصرم`||a===`المنصرمة`?o=`last`:a===`القادم`||a===`القادمة`||a===`المقبل`||a===`المقبلة`?o=`next`:(a===`هذا`||a===`هذه`)&&(o=`this`),A1(e.reference,n,o)}},T7=1,E7=2,lde=3,D7=4,ude=class extends w7{innerPatternString(e){return`(?:(?:في|من)\\s*)?(${h7})(?:\\s*(?:إلى|وحتى|حتى|-|–)\\s*(${h7}))?(?:\\s*(?:من)?\\s*)(${Q(u7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${v7}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=u7[t[lde].toLowerCase()],r=g7(t[T7]);if(r>31||r<1)return t.index+=t[T7].length,null;let i=e.createParsingResult(t.index,t[0]);if(i.start.assign(`month`,n),i.start.assign(`day`,r),t[D7]){let e=y7(t[D7]);i.start.assign(`year`,e)}else{let t=YQ(e.refDate,r,n);i.start.imply(`year`,t)}if(t[E7]){let e=g7(t[E7]);i.end=i.start.clone(),i.end.assign(`day`,e)}return i}},dde=1,O7=2,fde=class extends w7{innerPatternString(e){return`(?:(?:في|خلال)\\s*)?(?:شهر\\s*)?(${Q(u7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${v7}))?`}innerExtract(e,t){if(e.text.substring(0,t.index).match(/[0-9٠-٩]+\s*$/))return null;let n=u7[t[dde].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);if(r.start.imply(`day`,1),r.start.assign(`month`,n),t[O7]){let e=y7(t[O7]);r.start.assign(`year`,e)}else{let t=YQ(e.refDate,1,n);r.start.imply(`year`,t)}return r}},k7=2,A7=3,j7=4,M7=5,N7=6;function pde(e,t,n,r){return RegExp(`${e}${t}([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${n}`,r)}function mde(e,t){return RegExp(`^(${e})([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{1,2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${t}`,`iu`)}var hde=class extends a1{constructor(e=!1){super(e)}patternFlags(){return s7.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:-|–|~|إلى|وحتى|حتى)\\s*`}primaryPrefix(){return`(?:(?:في\\s*تمام|في|الساعة|ساعة|من)\\s*)??`}primarySuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${s7.rightBoundary}`}followingSuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${s7.rightBoundary}`}getPrimaryTimePatternThroughCache(){return pde(this.primaryPatternLeftBoundary(),this.primaryPrefix(),this.primarySuffix(),this.patternFlags())}getFollowingTimePatternThroughCache(){return mde(this.followingPhase(),this.followingSuffix())}extractPrimaryTimeComponents(e,t){t[k7]&&(t[k7]=c7(t[k7])),t[A7]&&(t[A7]=c7(t[A7])),t[j7]&&(t[j7]=c7(t[j7])),t[M7]&&(t[M7]=c7(t[M7]));let n=super.extractPrimaryTimeComponents(e,t);if(n){let e=(t[N7]||``).toLowerCase(),r=t[0].toLowerCase(),i=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(r),a=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(r),o=/(?:ظهراً|ظهرا)/.test(r);if(i){let e=n.get(`hour`);e<12&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}else if(a)n.get(`hour`)===12&&n.assign(`hour`,0),n.assign(`meridiem`,X.AM);else if(o){let e=n.get(`hour`);e<12&&e!==0&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}}return n}extractFollowingTimeComponents(e,t,n){t[k7]&&(t[k7]=c7(t[k7])),t[A7]&&(t[A7]=c7(t[A7])),t[j7]&&(t[j7]=c7(t[j7])),t[M7]&&(t[M7]=c7(t[M7]));let r=super.extractFollowingTimeComponents(e,t,n);if(r){let e=(t[N7]||``).toLowerCase(),i=t[0].toLowerCase(),a=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(i),o=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(i),s=/(?:ظهراً|ظهرا)/.test(i);if(a){let e=r.get(`hour`);e<12&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}else if(o)r.get(`hour`)===12&&r.assign(`hour`,0),r.assign(`meridiem`,X.AM);else if(s){let e=r.get(`hour`);e<12&&e!==0&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}n.start.isCertain(`meridiem`)||(a?(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)<12&&n.start.assign(`hour`,n.start.get(`hour`)+12)):o&&(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)===12&&n.start.assign(`hour`,0)))}return r}},gde=class extends w7{innerPatternString(e){return`(?:(?:منذ|قبل)\\s*(${S7})|(${S7})\\s*(?:مضت|سابقاً))`}innerExtract(e,t){let n=UQ(C7(t[1]||t[2]));return Z.createRelativeFromReference(e.reference,n)}},_de=class extends w7{innerPatternString(e){return`(?:(?:بعد)\\s*(${S7})(?:\\s*من\\s*الآن)?|(${S7})\\s*(?:من\\s*الآن|لاحقاً|لاحقا))`}innerExtract(e,t){let n=C7(t[1]||t[2]);return Z.createRelativeFromReference(e.reference,n)}},vde=class extends w7{innerPatternString(e){return`(?:في\\s*خلال|في\\s*غضون|في\\s*ظرف|خلال)\\s*(${S7})`}innerExtract(e,t){let n=C7(t[1]);return Z.createRelativeFromReference(e.reference,n)}},yde=1,bde=2,xde=3,Sde=class extends w7{innerPatternString(e){return`(?:في\\s+)?(?:(هذا|هذه)\\s+)?(الشهر|الاسبوع|الأسبوع|العام|السنة)(?:\\s+(الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة|التالي|التالية))?`}innerExtract(e,t){(t[yde]||``).toLowerCase();let n=t[bde].toLowerCase(),r=(t[xde]||``).toLowerCase(),i=`month`;if(n===`الاسبوع`||n===`الأسبوع`?i=`week`:(n===`العام`||n===`السنة`)&&(i=`year`),r===`القادم`||r===`القادمة`||r===`المقبل`||r===`المقبلة`||r===`التالي`||r===`التالية`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(r===`الماضي`||r===`الماضية`||r===`السابق`||r===`السابقة`||r===`المنصرم`||r===`المنصرمة`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i===`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i===`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i===`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Cde=class extends b1{patternBetween(){return RegExp(`^\\s*(T|في\\s*تمام|في|الساعة|ساعة|,|-)?\\s*$`,`iu`)}},wde=class extends g1{patternBetween(){return/^\s*(إلى|وحتى|حتى|-|–)\s*$/iu}},Tde=new Q0(Ede());new Q0(P7(!0));function Ede(e=!0){let t=P7(!1,e);return t.parsers.unshift(new rde),t.parsers.unshift(new ide),t.parsers.unshift(new fde),t.parsers.unshift(new Sde),t}function P7(e=!0,t=!0){return X1({parsers:[new A0(t),new vde,new ude,new cde,new hde(e),new gde,new _de],refiners:[new Cde,new wde]},e)}var Dde=1,F7=2,Ode=3,I7=4,L7=5,kde=6,Ade=class extends ${innerPattern(e){return RegExp(`(现在|立(?:刻|即)|即刻)|(今|明|前|大前|后|大后|昨)(早|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[Dde])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[F7]){let e=t[F7],n=t[Ode];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3),n==`早`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[I7]){let e=t[I7][0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[L7]){let e=t[L7];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3);let n=t[kde];if(n){let e=n[0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},R7={零:0,〇:0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},z7={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function B7(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?R7[r]:t*R7[r]:t+=R7[r]}return t}function jde(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=R7[r]}return parseInt(t)}var V7=1,H7=2,U7=3,Mde=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(R7).join(``)+`]{4}|[`+Object.keys(R7).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(R7).join(``)+`]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(R7).join(``)+`]{1,3})?(?:\\s*)(?:日|号)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[H7]);if(isNaN(r)&&(r=B7(t[H7])),n.start.assign(`month`,r),t[U7]){let e=parseInt(t[U7]);isNaN(e)&&(e=B7(t[U7])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[V7]){let e=parseInt(t[V7]);isNaN(e)&&(e=jde(t[V7])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Nde=RegExp(`(\\d+|[`+Object.keys(R7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)`,`i`),W7=1,Pde=2,Fde=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Nde}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[W7]);if(isNaN(r)&&(r=B7(t[W7])),isNaN(r)){let e=t[W7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Pde][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=HQ(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r);let o=HQ(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},Ide=RegExp(`(\\d+|[`+Object.keys(R7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:之)?前`,`i`),G7=1,Lde=2,Rde=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Ide}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[G7]);if(isNaN(r)&&(r=B7(t[G7])),isNaN(r)){let e=t[G7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Lde][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=UQ(i);let t=HQ(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r),i=UQ(i);let o=HQ(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},zde=RegExp(`(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>`+Object.keys(z7).join(`|`)+`)`),Bde=class extends ${innerPattern(){return zde}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=z7[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:a==`这`&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},Vde=RegExp(`(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(R7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(R7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(R7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),Hde=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(R7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(R7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(R7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),K7=1,q7=2,J7=3,Y7=4,X7=5,Z7=6,Q7=7,$7=8,e9=9,Ude=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Vde}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[K7]){let i=t[K7];i==`明`?e.reference.instant.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`后`?r.setDate(r.getDate()+2):i==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[Y7]){let e=t[Y7];e==`明`?r.setDate(r.getDate()+1):e==`昨`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`后`?r.setDate(r.getDate()+2):e==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[$7]){let e=parseInt(t[$7]);if(isNaN(e)&&(e=B7(t[$7])),e>=60)return null;n.start.assign(`second`,e)}if(i=parseInt(t[Z7]),isNaN(i)&&(i=B7(t[Z7])),t[Q7]?t[Q7]==`半`?a=30:t[Q7]==`正`||t[Q7]==`整`?a=0:(a=parseInt(t[Q7]),isNaN(a)&&(a=B7(t[Q7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[e9]){if(i>12)return null;let e=t[e9][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12))}else if(t[q7]){let e=t[q7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[J7]){let e=t[J7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[X7]){let e=t[X7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let s=Hde.exec(e.text.substring(n.index+n.text.length));if(!s)return n.text.match(/^\d+$/)?null:n;let c=new Date(r.getTime());if((s[K7]||s[Y7])&&(c=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),s[K7]){let t=s[K7];t==`明`?e.reference.instant.getHours()>1&&c.setDate(c.getDate()+1):t==`昨`?c.setDate(c.getDate()-1):t==`前`?c.setDate(c.getDate()-2):t==`大前`?c.setDate(c.getDate()-3):t==`后`?c.setDate(c.getDate()+2):t==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else if(s[Y7]){let e=s[Y7];e==`明`?c.setDate(c.getDate()+1):e==`昨`?c.setDate(c.getDate()-1):e==`前`?c.setDate(c.getDate()-2):e==`大前`?c.setDate(c.getDate()-3):e==`后`?c.setDate(c.getDate()+2):e==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else n.end.imply(`day`,c.getDate()),n.end.imply(`month`,c.getMonth()+1),n.end.imply(`year`,c.getFullYear());if(i=0,a=0,o=-1,s[$7]){let e=parseInt(s[$7]);if(isNaN(e)&&(e=B7(s[$7])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(s[Z7]),isNaN(i)&&(i=B7(s[Z7])),s[Q7]?s[Q7]==`半`?a=30:s[Q7]==`正`||s[Q7]==`整`?a=0:(a=parseInt(s[Q7]),isNaN(a)&&(a=B7(s[Q7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),s[e9]){if(i>12)return null;let e=s[e9][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(s[q7]){let e=s[q7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(s[J7]){let e=s[J7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(s[X7]){let e=s[X7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=s[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},Wde=RegExp(`(?:星期|礼拜|周)(?<weekday>`+Object.keys(z7).join(`|`)+`)`),Gde=class extends ${innerPattern(){return Wde}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=z7[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},Kde=class extends g1{patternBetween(){return/^\s*(至|到|-|~|~|-|ー)\s*$/i}},qde=class extends b1{patternBetween(){return/^\s*$/i}};new Q0(t9());var Jde=new Q0(t9());new Q0(n9());function t9(){let e=n9();return e.parsers.unshift(new Ade),e}function n9(){let e=X1({parsers:[new Mde,new Bde,new Gde,new Ude,new Fde,new Rde],refiners:[new Kde,new qde]});return e.refiners=e.refiners.filter(e=>!(e instanceof O1)),e}var Yde=1,r9=2,Xde=3,i9=4,a9=5,Zde=6,Qde=class extends ${innerPattern(e){return RegExp(`(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[Yde])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[r9]){let e=t[r9],n=t[Xde];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3),n==`早`||n==`朝`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[i9]){let e=t[i9][0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[a9]){let e=t[a9];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3);let n=t[Zde];if(n){let e=n[0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},o9={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},s9={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function c9(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?o9[r]:t*o9[r]:t+=o9[r]}return t}function $de(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=o9[r]}return parseInt(t)}var l9=1,u9=2,d9=3,efe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(o9).join(``)+`]{4}|[`+Object.keys(o9).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(o9).join(``)+`]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(o9).join(``)+`]{1,2})?(?:\\s*)(?:日|號)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[u9]);if(isNaN(r)&&(r=c9(t[u9])),n.start.assign(`month`,r),t[d9]){let e=parseInt(t[d9]);isNaN(e)&&(e=c9(t[d9])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[l9]){let e=parseInt(t[l9]);isNaN(e)&&(e=$de(t[l9])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},tfe=RegExp(`(\\d+|[`+Object.keys(o9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)`,`i`),f9=1,nfe=2,rfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return tfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[f9]);if(isNaN(r)&&(r=c9(t[f9])),isNaN(r)){let e=t[f9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[nfe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=HQ(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r);let o=HQ(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},ife=RegExp(`(\\d+|[`+Object.keys(o9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:之)?前`,`i`),p9=1,afe=2,ofe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return ife}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[p9]);if(isNaN(r)&&(r=c9(t[p9])),isNaN(r)){let e=t[p9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[afe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=UQ(i);let t=HQ(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r),i=UQ(i);let o=HQ(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},sfe=RegExp(`(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>`+Object.keys(s9).join(`|`)+`)`),cfe=class extends ${innerPattern(){return sfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=s9[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:(a==`今`||a==`這`||a==`呢`)&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},lfe=RegExp(`(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(o9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(o9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(o9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),ufe=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(o9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(o9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(o9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),m9=1,h9=2,g9=3,_9=4,v9=5,y9=6,b9=7,x9=8,S9=9,dfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return lfe}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[m9]){let i=t[m9];i==`明`||i==`聽`?e.refDate.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`||i==`尋`||i==`琴`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`後`?r.setDate(r.getDate()+2):i==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[_9]){let e=t[_9];e==`明`||e==`聽`?r.setDate(r.getDate()+1):e==`昨`||e==`尋`||e==`琴`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`後`?r.setDate(r.getDate()+2):e==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[x9]){var s=parseInt(t[x9]);if(isNaN(s)&&(s=c9(t[x9])),s>=60)return null;n.start.assign(`second`,s)}if(i=parseInt(t[y9]),isNaN(i)&&(i=c9(t[y9])),t[b9]?t[b9]==`半`?a=30:t[b9]==`正`||t[b9]==`整`?a=0:(a=parseInt(t[b9]),isNaN(a)&&(a=c9(t[b9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[S9]){if(i>12)return null;var c=t[S9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12))}else if(t[h9]){var l=t[h9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[g9]){var u=t[g9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[v9]){var d=t[v9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let f=ufe.exec(e.text.substring(n.index+n.text.length));if(!f)return n.text.match(/^\d+$/)?null:n;let p=new Date(r.getTime());if((f[m9]||f[_9])&&(p=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),f[m9]){let t=f[m9];t==`明`||t==`聽`?e.refDate.getHours()>1&&p.setDate(p.getDate()+1):t==`昨`||t==`尋`||t==`琴`?p.setDate(p.getDate()-1):t==`前`?p.setDate(p.getDate()-2):t==`大前`?p.setDate(p.getDate()-3):t==`後`?p.setDate(p.getDate()+2):t==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else if(f[_9]){let e=f[_9];e==`明`||e==`聽`?p.setDate(p.getDate()+1):e==`昨`||e==`尋`||e==`琴`?p.setDate(p.getDate()-1):e==`前`?p.setDate(p.getDate()-2):e==`大前`?p.setDate(p.getDate()-3):e==`後`?p.setDate(p.getDate()+2):e==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else n.end.imply(`day`,p.getDate()),n.end.imply(`month`,p.getMonth()+1),n.end.imply(`year`,p.getFullYear());if(i=0,a=0,o=-1,f[x9]){let e=parseInt(f[x9]);if(isNaN(e)&&(e=c9(f[x9])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(f[y9]),isNaN(i)&&(i=c9(f[y9])),f[b9]?f[b9]==`半`?a=30:f[b9]==`正`||f[b9]==`整`?a=0:(a=parseInt(f[b9]),isNaN(a)&&(a=c9(f[b9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),f[S9]){if(i>12)return null;var c=f[S9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(f[h9]){var l=f[h9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(f[g9]){var u=f[g9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(f[v9]){var d=f[v9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=f[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},ffe=RegExp(`(?:星期|禮拜|週)(?<weekday>`+Object.keys(s9).join(`|`)+`)`),pfe=class extends ${innerPattern(){return ffe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=s9[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},mfe=class extends g1{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}},hfe=class extends b1{patternBetween(){return/^\s*$/i}};new Q0(C9());var gfe=new Q0(C9());new Q0(w9());function C9(){let e=w9();return e.parsers.unshift(new Qde),e}function w9(){let e=X1({parsers:[new efe,new cfe,new pfe,new dfe,new rfe,new ofe],refiners:[new mfe,new hfe]});return e.refiners=e.refiners.filter(e=>!(e instanceof O1)),e}var _fe=new Set([`with`,`about`,`from`,`on`,`the`,`a`,`and`,`meeting`]),T9=e=>e.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(e=>e&&!_fe.has(e)),E9={en:t2,de:W2,fr:N4,ja:y3,pt:V3,nl:roe,ru:Doe,es:ese,uk:wse,it:Mce,sv:rle,fi:jle,vi:mue,id:Zue,ar:Tde,"zh-cn":Jde,"zh-tw":gfe};function vfe(e,{now:t=new Date,locale:n=new Intl.DateTimeFormat().resolvedOptions().locale,language:r=n}={}){let i,a,o=e,s=(e=0)=>new Date(t.getFullYear(),t.getMonth(),t.getDate()+e),c=(t,n,r)=>{!Number.isFinite(n.getTime())||!Number.isFinite(r.getTime())||r<=n||(i={start:n.getTime(),end:r.getTime()},a=t,o=(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim())},l=/\b(?:(this|last) (week|month)|(past|last) (\d+) (days?|weeks?))\b/i.exec(e);if(l){let e,r;if(l[4])e=s(1-Number(l[4])*(l[5].toLowerCase().startsWith(`week`)?7:1)),r=s(1);else if(l[2].toLowerCase()===`month`){let n=l[1].toLowerCase()===`last`?-1:0;e=new Date(t.getFullYear(),t.getMonth()+n,1),r=new Date(t.getFullYear(),t.getMonth()+n+1,1)}else{let i=new Intl.Locale(n),a=i.getWeekInfo?.().firstDay??i.weekInfo?.firstDay??1,o=-((t.getDay()-a+7)%7)-(l[1].toLowerCase()===`last`?7:0);e=s(o),r=s(o+7)}c({start:l.index,end:l.index+l[0].length},e,r)}else{let a=new Intl.DateTimeFormat(n).formatToParts(new Date(2001,10,22)).map(e=>e.type),o=a.indexOf(`day`)<a.indexOf(`month`),l=r.toLowerCase(),u=E9[l]??E9[l.split(`-`)[0]]??t2;u===t2&&o&&(u=n2);let d=e=>new Date(e.get(`year`),e.get(`month`)-1,e.get(`day`));for(let n of u.parse(e,t)){let t=d(n.start),r=d(n.end??n.start),a={start:n.index,end:n.index+n.text.trimEnd().length},l=e.slice(0,a.start),f=n.start.isCertain(`month`)&&!n.start.isCertain(`day`),p=n.start.isCertain(`weekday`)&&!n.start.isCertain(`day`),m=/\bin\s+$/i.exec(l);if(f){if(!m||n.end)continue;a.start=m.index}else if(p){if(/^\p{L}+\.?$/u.test(n.text.trim())&&e.trim()!==n.text.trim())continue;t>s()&&!/\b(next|this)\b/i.test(n.text)&&(t.setDate(t.getDate()-7),r.setDate(r.getDate()-7))}else if(!n.start.isCertain(`day`))continue;if(u!==t2&&u!==n2||![...n.text.matchAll(/\b(\d{1,2})\/(\d{1,2})(?:\/\d{4})?\b/g)].some(e=>Number(e[o?2:1])>12)){if(n.start.isCertain(`month`)&&!n.start.isCertain(`year`)&&!n.end?.isCertain(`year`)&&t>s()){let e=t.getMonth(),n=r.getMonth();if(t.setFullYear(t.getFullYear()-1),r.setFullYear(r.getFullYear()-1),t.getMonth()!==e||r.getMonth()!==n)continue}if(n.end){let e=/\bfrom\s+$/i.exec(l);e&&(a.start=e.index)}if(c(a,t,f?new Date(t.getFullYear(),t.getMonth()+1,1):new Date(r.getFullYear(),r.getMonth(),r.getDate()+1)),i)break}}}return{text:o,words:T9(o),date:i,...a?{dateSpan:a}:{}}}var D9=e=>e.trim().toLocaleLowerCase().replace(/\s+/g,` `),O9=e=>e.email?.trim()?`email:${OQ(e.email)}`:`name:${D9(e.name)}`,k9=e=>[...new Map(e.map(e=>[O9(e),e])).values()],yfe=(e,t)=>(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim(),bfe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function xfe(e,t,n=[],r={}){let i=k9(t),a=new Set(n.map(O9)),o=[];for(let t of i){let n=a.has(O9(t)),r=[t.email?.trim(),...n||t.name.trim().split(/\s+/).length>1?[t.name.trim()]:[]].filter(e=>!!e);for(let n of r){let r=RegExp(`(?<![\\p{L}\\p{N}@._+-])${bfe(n).replace(/\s+/g,`\\s+`)}(?![\\p{L}\\p{N}@._+-])`,`iu`).exec(e);if(r){o.push({person:t,start:r.index,end:r.index+r[0].length});break}}}let s=o.filter(e=>!o.some(t=>t!==e&&t.start===e.start&&t.end===e.end&&a.has(O9(t.person))&&!a.has(O9(e.person)))),c=s.filter(e=>!s.some(t=>t.start<=e.start&&t.end>=e.end&&t.end-t.start>e.end-e.start)),l=c.filter(e=>!c.some(t=>t!==e&&t.start<e.end&&t.end>e.start)),u=e;for(let e of l)u=u.slice(0,e.start)+` `.repeat(e.end-e.start)+u.slice(e.end);let d=vfe(u,r).dateSpan,f=[...u.matchAll(/[\p{L}\p{N}][\p{L}\p{N}@._+'’-]*/gu)],p=[];for(let t of i){if(l.some(e=>O9(e.person)===O9(t)))continue;let n=c.find(e=>O9(e.person)===O9(t));if(n){p.push(n);continue}let r=D9(t.name).split(/\s+/),i;f.forEach((n,a)=>{if(d&&n.index>=d.start&&n.index<d.end)return;let o=n[0].toLocaleLowerCase();if(!T9(o).length||o.length<3&&o!==r[0])return;let s=e=>{(!i||e-n.index>i.end-i.start)&&(i={person:t,start:n.index,end:e})};t.email&&OQ(t.email).startsWith(o)&&s(n.index+n[0].length),r.forEach((t,n)=>{for(let t=0;a+t<f.length&&n+t<r.length;t++){let i=f[a+t];if(d&&i.index>=d.start&&i.index<d.end||t&&!/^\s+$/.test(e.slice(f[a+t-1].index+f[a+t-1][0].length,i.index))||!r[n+t].startsWith(i[0].toLocaleLowerCase()))break;s(i.index+i[0].length)}})}),i&&p.push(i)}return{text:u,matches:l,suggestions:p}}function Sfe(e,t,n,r,i=[],a){let o=i.find(e=>e.id===a||e.aliases?.includes(a)),s=[...o?.attendees??[],...t,...i.filter(e=>e!==o).flatMap(e=>e.attendees)],c=new Set(s.filter(e=>e.email?.trim()).map(e=>D9(e.name))),l=[...n,{name:r,email:null},...s.filter(e=>D9(e.name)===D9(r))],u=k9(s).filter(e=>(e.email?.trim()||!c.has(D9(e.name)))&&!l.some(t=>t.email?.trim()&&e.email?.trim()?OQ(t.email)===OQ(e.email):D9(t.name)===D9(e.name))),{matches:d,suggestions:f}=xfe(e,u),p=new Set([...d,...f].filter(t=>!yfe(e,t)).map(e=>O9(e.person)));return u.filter(e=>p.has(O9(e))).slice(0,5)}function A9(e,t,n,r=!0){(0,H.useLayoutEffect)(()=>{let i=e.current,a=t.current;if(!i||!a||!r)return;let o=a.closest(`[data-testid="note"]`),s=()=>{let e=a.parentElement.getBoundingClientRect(),t=i.getBoundingClientRect().width,n=getComputedStyle(i).direction===`rtl`,r=Math.max(12,Math.min(n?e.right-t:e.left,innerWidth-t-12));i.style.insetInlineStart=`${n?e.right-r-t:r-e.left}px`;let s=Math.min(innerHeight,o?.getBoundingClientRect().bottom??innerHeight);i.style.setProperty(`--people-available-height`,`${Math.max(0,s-e.bottom-16)}px`)};s(),i.querySelector(`input, button, [tabindex="-1"]`)?.focus({preventScroll:!0});let c=new ResizeObserver(s);c.observe(a),o&&c.observe(o);let l=e=>{!i.contains(e.target)&&!a.contains(e.target)&&n(!1)};return window.addEventListener(`resize`,s),window.addEventListener(`scroll`,s,!0),document.addEventListener(`pointerdown`,l),()=>{c.disconnect(),window.removeEventListener(`resize`,s),window.removeEventListener(`scroll`,s,!0),document.removeEventListener(`pointerdown`,l)}},[e,t,n,r])}var j9=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),Cfe=e=>M9(e).split(/\s+/)[0]??e;function M9(e){let t=N9(e);return!t?.email||t.name!==t.email?t?.name??e:AQ(t.email)}function N9(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return null;let n=/<?([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>?/.exec(t);return n?{name:t.replace(n[0],``).replace(/[,;]/g,` `).trim()||n[1],email:n[1]}:{name:t,email:null}}function P9(e,t,n=3){let r=e.filter(e=>!j9(e.name,t));if(!r.length)return U(`Me`);let i=r.slice(0,n).map(e=>Cfe(e.name)).reduce((e,t)=>U(`{a}, {b}`,{a:e,b:t}));return r.length>n?U(`{name} + {more}`,{name:i,more:r.length-n}):i}function wfe(e,t){return e.some(e=>!j9(e.name,t))?P9(e,t,2):U(`Add attendees`)}function F9(){let[e,t]=(0,H.useState)(``);return(0,H.useEffect)(()=>{window.yogurt.settings.get().then(e=>t(e.myName||e.macName))},[]),e}function Tfe({m:e}){let[t,n]=(0,H.useState)(!1),r=Nf(t,t===`pointer`),i=F9(),a=(0,H.useRef)(null),o=(0,H.useCallback)((e=!0)=>{n(!1),e&&a.current?.focus({preventScroll:!0})},[]);return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsx)(`button`,{ref:a,"data-testid":`note-attendees`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),title:e.attendees.map(e=>e.email?`${e.name} <${e.email}>`:e.name).join(`, `)||void 0,className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:(0,G.jsxs)(`span`,{"data-testid":`note-attendees-summary`,className:`flex items-center gap-1.5`,children:[(0,G.jsx)(tv,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),wfe(e.attendees,i)]})}),r.value&&(0,G.jsx)(Efe,{m:e,me:i,motionProps:r.props,chip:a,onClose:o})]})}function Efe({m:e,me:t,motionProps:n,chip:r,onClose:i}){let[a,o]=(0,H.useState)(``),[s,c]=(0,H.useState)(()=>!e.attendees.some(e=>!j9(e.name,t))),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)([]),[p,m]=(0,H.useState)([]),[h,g]=(0,H.useState)(null),_=(0,H.useId)(),v=Sfe(a,d,e.attendees,t,p,e.eventId),y=v.findIndex(e=>O9(e)===h);(0,H.useEffect)(()=>{let t=0,n=()=>{let n=++t;window.yogurt.search.people().then(e=>{n===t&&f(e)},()=>{}),window.yogurt.calendar.day(e.eventStartedAt??e.startedAt).then(e=>{n===t&&m(e.status===`granted`?e.events:[])},()=>{n===t&&m([])})};n();let r=window.yogurt.meetings.onChange(n),i=window.yogurt.calendar.onChange(n);return()=>{t++,r(),i()}},[e.id,e.startedAt,e.eventStartedAt,e.eventId]);let b=(0,H.useRef)(null),x=(0,H.useRef)(null);A9(x,r,i,!n.inert),(0,H.useEffect)(()=>{x.current?.querySelector(`[role="option"][aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[h]),(0,H.useEffect)(()=>{s&&b.current?.focus({preventScroll:!0})},[s]);let S=async t=>{try{return await window.yogurt.meetings.setAttendees(e.id,t),!0}catch{return tQ.add({title:U(`Yogurt couldn't make that change. Try again.`)}),!1}},C=async(t=N9(a))=>{t&&(e.attendees.some(e=>t.email?.trim()&&e.email?.trim()?j9(e.email,t.email):j9(e.name,t.name))||await S([...e.attendees,t])&&(o(``),g(null),b.current?.focus()))},w=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},T=e.attendees.map((e,t)=>({p:e,i:t})).filter(({p:e})=>!j9(e.name,t));return(0,G.jsxs)(`div`,{ref:x,"data-testid":`people-card`,...n,"data-anchor":`start`,role:`dialog`,"aria-label":U(`People`),onKeyDown:w,className:`people-card menu-entry absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`ul`,{"data-testid":`people-list`,className:`people-list max-h-64 overflow-y-auto p-1.5`,children:[(0,G.jsx)(I9,{name:t||U(`Me`),email:e.attendees.find(e=>j9(e.name,t))?.email,mine:!0}),T.map(({p:t,i:n})=>(0,G.jsx)(I9,{name:M9(t.name),email:t.email,onRename:r=>window.yogurt.meetings.renameAttendee(e.id,n,r,t),onRemove:()=>void S(e.attendees.filter((e,t)=>t!==n))},t.email||n))]}),(0,G.jsxs)(`div`,{className:`border-t border-line ${s?`p-3`:``}`,children:[(0,G.jsxs)(`button`,{"data-testid":`people-add-open`,onClick:()=>{c(!0),b.current?.focus()},className:`flex w-full items-center gap-2 text-start text-[13px] text-muted ${s?`mb-2`:`h-11 px-4 hover:bg-card`}`,children:[(0,G.jsx)(z_,{size:14,"aria-hidden":`true`}),U(`Add an attendee`)]}),s&&(0,G.jsx)(`div`,{className:`people-add-field flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,G.jsx)(`input`,{ref:b,"data-testid":`people-add`,value:a,onChange:e=>{o(e.target.value),g(null)},maxLength:200,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":l&&v.length>0,"aria-controls":l&&v.length>0?_:void 0,"aria-activedescendant":l&&y>=0?`${_}-${y}`:void 0,onKeyDown:e=>{if(!e.nativeEvent.isComposing){if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&v.length){e.preventDefault();let t=y<0?e.key===`ArrowDown`?0:v.length-1:(y+(e.key===`ArrowDown`?1:-1)+v.length)%v.length;g(O9(v[t]))}else e.key===`Enter`&&(e.preventDefault(),C(v[y]??N9(a)))}},placeholder:U(`Name or email`),"aria-label":U(`Add an attendee`),onFocus:()=>u(!0),onBlur:()=>u(!1),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})}),s&&l&&v.length>0&&(0,G.jsx)(`ul`,{id:_,role:`listbox`,"aria-label":U(`People`),className:`mt-1`,children:v.map((e,t)=>(0,G.jsxs)(`li`,{id:`${_}-${t}`,role:`option`,"aria-selected":t===y,onMouseDown:e=>e.preventDefault(),onMouseMove:()=>g(O9(e)),onClick:()=>void C(e),className:`person-row flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-[13px] hover:bg-[var(--line)] ${t===y?`bg-[var(--line)]`:``}`,children:[(0,G.jsx)(tv,{size:14,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsxs)(`span`,{className:`min-w-0`,children:[(0,G.jsx)(`span`,{className:`block truncate`,children:M9(e.name)}),e.email&&(0,G.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:e.email})]})]},O9(e)))}),kQ(l,a)&&(0,G.jsxs)(`p`,{"data-testid":`people-private`,className:`mt-2 flex items-start gap-2 text-xs leading-relaxed text-muted`,children:[(0,G.jsx)(S_,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-0.5 shrink-0`}),(0,G.jsx)(`span`,{children:U(`Nothing is sent. This is only for your notes.`)})]})]})]})}function I9({name:e,email:t,mine:n,onRemove:r,onRename:i}){let a=(0,H.useRef)(null),o=()=>{c(!1),requestAnimationFrame(()=>a.current?.focus())},[s,c]=(0,H.useState)(!1),[l,u]=(0,H.useState)(e),[d,f]=(0,H.useState)(!1),p=async()=>{if(l.trim()&&!d){f(!0);try{if(!await i?.(l))throw Error(`Attendee no longer available`);o()}catch{tQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{f(!1)}}};return(0,G.jsxs)(`li`,{"data-testid":`people-row`,"data-me":n?``:void 0,className:`person-row flex ${t?`min-h-[52px]`:`min-h-10`} items-center gap-2 rounded-md px-2.5 py-1.5`,children:[(0,G.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px]`,title:t??void 0,children:[s?(0,G.jsx)(`input`,{"data-testid":`people-rename`,autoFocus:!0,value:l,disabled:d,maxLength:200,"aria-label":U(`Rename`),onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),p()),e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),o())},className:`w-full rounded border border-line bg-card px-1 py-0.5`}):i?(0,G.jsx)(`button`,{ref:a,"data-testid":`people-name`,title:U(`Rename`),className:`block max-w-full truncate text-start`,onClick:()=>{u(e),c(!0)},children:e}):(0,G.jsxs)(`span`,{children:[e,n&&(0,G.jsxs)(`span`,{className:`text-muted`,children:[` `,U(`(me)`)]})]}),t&&(0,G.jsx)(`span`,{"data-testid":`people-email`,className:`block break-words text-xs leading-[17px] text-muted`,children:t})]}),i&&!s&&(0,G.jsx)(`button`,{"data-testid":`people-edit`,"aria-label":U(`Rename`),title:U(`Rename`),onClick:()=>{u(e),c(!0)},className:`person-remove grid size-6 shrink-0 place-items-center rounded text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,G.jsx)(I_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),r&&(0,G.jsx)(`button`,{"data-testid":`people-remove`,onClick:r,"aria-label":U(`Remove {name}`,{name:e}),title:U(`Remove`),className:`person-remove grid size-6 shrink-0 place-items-center rounded-full text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,G.jsx)(iv,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})}function L9(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function Dfe(e,t){return[...e].sort((e,n)=>Math.abs(e.start-t)-Math.abs(n.start-t)||e.start-n.start)}function Ofe({m:e}){let[t,n]=(0,H.useState)(!1),r=Nf(t,t===`pointer`),i=(0,H.useRef)(null),a=(0,H.useCallback)(()=>{n(!1),i.current?.focus({preventScroll:!0})},[]);return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsxs)(`button`,{ref:i,"data-testid":`note-date`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[(0,G.jsx)(vg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),_G(e.startedAt)]}),r.value&&(0,G.jsx)(kfe,{m:e,chip:i,motionProps:r.props,onClose:a},e.id)]})}function kfe({m:e,chip:t,motionProps:n,onClose:r}){let i=(0,H.useRef)(null),a=window.yogurt.capabilities.calendar,o=a&&!!e.eventId,[s,c]=(0,H.useState)(0),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)(e.eventStartedAt??e.startedAt),[p,m]=(0,H.useState)(),[h,g]=(0,H.useState)(!1),_=(0,H.useRef)(null),[v,y]=(0,H.useState)(!1),b=sv(a&&!p),x=(0,H.useRef)(!1),S=(0,H.useRef)(null),C=(0,H.useRef)(null),w=(0,H.useRef)(null);A9(i,t,r,!n.inert);let T=(0,H.useRef)(new Map),[E,D]=(0,H.useState)(e.eventId);if(E!==e.eventId){let t=e.eventStartedAt??e.startedAt;D(e.eventId),u(!1),f(t),m(T.current.get(new Date(t).toDateString()))}(0,H.useEffect)(()=>{if(!a)return;let e=!0;return window.yogurt.calendar.day(d).catch(()=>({status:`error`,events:[]})).then(t=>{e&&(t.status!==`granted`&&T.current.clear(),T.current.set(new Date(d).toDateString(),t),m(t))}),()=>{e=!1}},[a,d,s]);let O=e=>{m(T.current.get(new Date(e).toDateString())),f(e)};(0,H.useEffect)(()=>{l||O(e.eventStartedAt??e.startedAt)},[l,e.eventStartedAt,e.startedAt]);let k=new Date(e.eventStartedAt??e.startedAt).toDateString(),A=new Date(d).toDateString()===k?p:T.current.get(k),j=o?A?.events.find(t=>t.id===e.eventId||t.aliases?.includes(e.eventId))??(A?null:void 0):null;(0,H.useEffect)(()=>{if(!a)return;let e=()=>c(e=>e+1),t=window.yogurt.calendar.onChange(e);return window.addEventListener(`focus`,e),()=>{t(),window.removeEventListener(`focus`,e)}},[a]);let M=()=>void window.yogurt.calendar.connect().then(()=>c(e=>e+1),()=>m({status:`error`,events:[]})),N=p?.status===`granted`,P=l&&(!p||N);(0,H.useEffect)(()=>{l&&x.current&&!o&&p&&!N&&w.current?.focus({preventScroll:!0})},[l,o,p,N]);let F=new Date(d).toDateString()!==new Date(e.eventStartedAt??e.startedAt).toDateString(),I=j?.start??(o?e.eventStartedAt:null)??e.startedAt,L=j?.end??(o?e.eventEndedAt:null),R=j?.calendar??(o&&e.eventCalendarName?{name:e.eventCalendarName,source:e.eventCalendarSource}:null),ee=Math.max(0,Math.round((e.durationMs??(e.endedAt?e.endedAt-e.startedAt:e.state===`recording`?Date.now()-e.startedAt:0))/6e4)),z=j?.url?.trim(),te=new Date(P?d:I),ne={month:`short`,day:`numeric`,...te.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}},re=te.toLocaleDateString(xt(),{...ne,weekday:`long`}),ie=te.toLocaleDateString(xt(),{...ne,weekday:`short`});(0,H.useLayoutEffect)(()=>{let e=_.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`),n=()=>{t.font=getComputedStyle(e).font,y(t.measureText(re).width>e.clientWidth)};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[re]);let ae=b===`skeleton`?(0,G.jsx)(`div`,{className:`loading-content`,"data-loading-phase":b,"aria-busy":`true`,children:(0,G.jsxs)(`div`,{className:`loading-placeholder`,children:[(0,G.jsx)(`span`,{role:`status`,className:`sr-only`,children:U(`Looking at your calendar…`)}),(0,G.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,children:(0,G.jsx)(`span`,{className:`loading-bar`,style:{width:`65%`}})})]})}):null;return(0,G.jsx)(`div`,{ref:i,"data-testid":`note-date-card`,...n,"data-anchor":`start`,"data-picking":l,role:`dialog`,"aria-label":U(`Date`),className:`people-card menu-entry note-date-card absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),r())},children:(0,G.jsxs)(Afe,{view:`${e.eventId??`unlinked`}/${!o&&l?`picker`:`details`}/${p?.status??(b===`skeleton`?`skeleton`:`waiting`)}`,children:[(0,G.jsxs)(`div`,{className:`agenda-inspector-heading`,children:[(0,G.jsx)(`h3`,{ref:_,"data-testid":`note-date-heading`,tabIndex:-1,"aria-live":`polite`,"aria-label":re,title:re,children:v?ie:re}),(0,G.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:(N||P)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,ref:S,className:`workspace-icon`,"data-testid":`note-date-previous`,"aria-label":U(`Previous day`),disabled:h,onClick:e=>{x.current=e.detail===0,u(!0),O(L9(d,-1))},children:(0,G.jsx)(wg,{size:15,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{type:`button`,className:`workspace-icon`,"data-testid":`note-date-next`,"aria-label":U(`Next day`),disabled:h,onClick:e=>{x.current=e.detail===0,u(!0),O(L9(d,1))},children:(0,G.jsx)(Eg,{size:15,"aria-hidden":`true`})})]})})]}),o&&(0,G.jsxs)(`div`,{className:`note-date-linked`,children:[(0,G.jsxs)(`button`,{ref:C,"data-testid":`note-date-events-toggle`,className:`note-date-event-toggle text-sm font-medium`,"aria-expanded":l,disabled:h,onClick:t=>{x.current=t.detail===0,F?(O(e.eventStartedAt??e.startedAt),u(!1)):u(e=>!e)},children:[(0,G.jsx)(`span`,{children:j?.title||e.eventTitle||e.title}),(0,G.jsx)(Sg,{size:15,"aria-hidden":`true`})]}),(0,G.jsx)(`div`,{className:`accordion note-date-motion note-date-picker-motion`,"data-open":l,"aria-hidden":!l,inert:!l,children:(0,G.jsx)(`div`,{children:(0,G.jsx)(`div`,{className:`note-date-picker-space`,children:(0,G.jsx)(R9,{keyboard:x.current,open:l,m:e,day:d,result:p,loading:ae,previous:C,linking:h,onLinking:g,onLinked:()=>requestAnimationFrame(()=>C.current?.focus({preventScroll:!0}))})})})})]}),(!P||o)&&(0,G.jsx)(`div`,{className:`accordion note-date-motion note-date-details-motion`,"data-open":!0,children:(0,G.jsx)(`div`,{children:(0,G.jsxs)(`div`,{className:`note-date-details`,children:[(0,G.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,G.jsx)(Ag,{size:15,"aria-hidden":`true`}),(0,G.jsx)(`div`,{children:(0,G.jsxs)(`p`,{children:[vG(I),L==null?` · ${U(`{count} min`,{count:ee})}`:` – ${vG(L)}`]})})]}),o&&N&&j===null&&(0,G.jsxs)(`p`,{role:`status`,className:`text-xs text-muted`,children:[U(`Calendar event unavailable`),(0,G.jsx)(`button`,{className:`ms-2 underline`,onClick:()=>c(e=>e+1),children:U(`Try again`)})]}),(R||z)&&(0,G.jsxs)(`div`,{className:`agenda-inspector-footer`,children:[R&&(0,G.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,G.jsx)(vg,{size:15,"aria-hidden":`true`}),(0,G.jsxs)(`p`,{children:[R.name,(0,G.jsx)(`span`,{className:`agenda-inspector-muted`,children:R.source})]})]}),z&&(0,G.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,G.jsxs)(`a`,{className:`workspace-button agenda-open-note`,title:U(`Join meeting`),href:z,target:`_blank`,rel:`noreferrer`,children:[(0,G.jsx)(`span`,{children:U(`Join meeting`)}),(0,G.jsx)(Rg,{size:12,"aria-hidden":`true`})]})})]})]})})}),a&&p?.status!==`unsupported`&&!P&&(0,G.jsx)(G.Fragment,{children:p?N?!o&&(0,G.jsxs)(`div`,{className:`note-date-empty-row`,children:[!p.events.length&&(0,G.jsx)(`p`,{role:`status`,className:`text-xs text-muted`,"data-testid":`note-date-events-none`,title:U(`No events`),children:U(`No events`)}),(0,G.jsx)(`div`,{className:`ms-auto flex shrink-0`,children:(0,G.jsxs)(`button`,{ref:C,"data-testid":`note-date-events-toggle`,className:`workspace-button agenda-open-note`,title:U(`Link to a calendar event`),"aria-expanded":P,onClick:e=>{x.current=e.detail===0,u(!0)},children:[(0,G.jsx)(m_,{size:13,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`Link event`)})]})})]}):(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,G.jsx)(`p`,{role:`status`,className:`text-xs text-muted`,children:p.status===`error`?U(`Yogurt couldn't read your calendar`):U(`Calendar access is off`)}),(0,G.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,G.jsx)(`button`,{ref:w,className:`workspace-button agenda-open-note`,onClick:p.status===`error`?()=>c(e=>e+1):M,children:p.status===`error`?U(`Try again`):p.status===`denied`?U(`Open System Settings`):U(`Connect calendar`)})})]}):ae}),l&&!o&&(0,G.jsx)(R9,{keyboard:x.current,m:e,day:d,result:p,loading:ae,previous:S,linking:h,onLinking:g,onLinked:()=>requestAnimationFrame(()=>C.current?.focus({preventScroll:!0}))})]})})}function R9({open:e=!0,keyboard:t,m:n,day:r,result:i,loading:a,previous:o,linking:s,onLinking:c,onLinked:l}){let[u,d]=(0,H.useState)(!1),f=(0,H.useRef)(null),p=(0,H.useRef)(null),m=F9();(0,H.useEffect)(()=>{e&&(f.current&&(f.current.scrollTop=0),t&&(f.current?.querySelector(`[data-event-id]`)??p.current??o.current)?.focus({preventScroll:!0}))},[e,t,i,o]),(0,H.useEffect)(()=>{e&&d(!1)},[e]);let h=async e=>{if(!s){c(!0),d(!1);try{await window.yogurt.meetings.linkEvent(n.id,e,r),l()}catch{d(!0)}finally{c(!1)}}},g=i?.events;return(0,G.jsxs)(`div`,{className:`note-date-picker`,children:[!n.eventId&&(!i||i.status===`granted`)&&(0,G.jsx)(qh,{enabled:!!g?.length,children:(0,G.jsx)(`div`,{ref:f,"data-testid":`note-date-events`,className:`note-date-events`,role:`group`,"aria-label":U(`Select calendar event`),onKeyDown:e=>{if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(e.currentTarget.querySelectorAll(`button[data-event-id]:not(:disabled)`));if(!t.length)return;e.preventDefault();let n=t.indexOf(document.activeElement),r=e.key===`Home`?0:e.key===`End`?t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length;t[r].focus({preventScroll:!0}),t[r].scrollIntoView({block:`nearest`,container:`nearest`})},children:i?i.events.length?Dfe(g,n.startedAt).map(e=>(0,G.jsx)(`button`,{"data-event-id":e.id,"data-testid":`note-date-event`,className:`note-date-event`,disabled:s,onClick:()=>void h(e.id),children:(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{children:e.title||U(`Meeting`)}),(0,G.jsxs)(`small`,{children:[vG(e.start),` – `,vG(e.end)]}),!!e.attendees.length&&(0,G.jsx)(`small`,{children:P9(e.attendees,m)})]})},e.id)):(0,G.jsx)(`p`,{"data-testid":`note-date-events-none`,title:U(`No events`),children:U(`No events`)}):a})}),n.eventId&&(0,G.jsxs)(`button`,{ref:p,"data-testid":`note-date-unlink`,className:`note-date-link`,disabled:s,onClick:()=>void h(null),children:[(0,G.jsx)(g_,{size:14,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{children:[U(`Unlink calendar event`),(0,G.jsx)(`small`,{children:U(`Keep the title, attendees and notes.`)})]})]}),u&&(0,G.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:U(`Yogurt couldn't update the calendar link. Try again.`)})]})}var Afe=class extends H.Component{shell=(0,H.createRef)();body=(0,H.createRef)();animations=[];copy=null;stop=()=>{this.animations.forEach(e=>e.cancel()),this.animations=[],this.copy?.remove(),this.copy=null};getSnapshotBeforeUpdate(e){let t=this.shell.current,n=this.body.current;if(e.view===this.props.view||!t||!n||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!parseFloat(getComputedStyle(t).getPropertyValue(`--note-date-ms`)))return null;let r=n.cloneNode(!0);return r.inert=!0,r.setAttribute(`aria-hidden`,`true`),r.querySelectorAll(`[id],[data-testid],[autofocus]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`),e.removeAttribute(`autofocus`)}),r.classList.add(`note-date-retiring`),{height:t.getBoundingClientRect().height,copy:r}}componentDidUpdate(e,t,n){if(!n){window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&this.stop();return}this.stop();let r=this.shell.current,i=this.body.current;this.copy=n.copy,r.append(n.copy);let a=getComputedStyle(r),o={duration:parseFloat(a.getPropertyValue(`--note-date-ms`)),easing:a.getPropertyValue(`--note-date-ease`).trim()},s=[r.animate([{height:`${n.height}px`},{height:`${i.getBoundingClientRect().height}px`}],o),i.animate([{opacity:0},{opacity:1}],o),n.copy.animate([{opacity:1},{opacity:0}],o)];this.animations=s,Promise.all(s.map(e=>e.finished)).then(()=>{this.animations===s&&this.stop()},()=>{})}componentWillUnmount(){this.stop()}render(){return(0,G.jsx)(`div`,{ref:this.shell,className:`note-date-swap`,children:(0,G.jsx)(`div`,{ref:this.body,className:`agenda-inspector-content`,children:this.props.children})})}};function jfe({hasSummary:e,canWriteAgain:t,onWriteAgain:n,menuButton:r}){let i=U(e?`Regenerate summary`:`Generate summary`),[a,o]=(0,H.useState)(!1),s=Nf(a,a===`pointer`),c=(0,H.useRef)(null),l=(0,H.useRef)(null);return(0,H.useEffect)(()=>{if(!a)return;l.current?.focus();let e=e=>{c.current?.contains(e.target)||o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]),(0,G.jsxs)(`div`,{ref:c,className:`note-summary-actions relative`,children:[(0,G.jsx)(`button`,{ref:r,"data-testid":`note-view-menu`,"aria-haspopup":`menu`,"aria-expanded":!!a,"aria-label":U(`Summary actions`),title:i,onClick:e=>o(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-view-menu`,children:(0,G.jsx)(Ig,{size:15,strokeWidth:1.75,"aria-hidden":`true`})}),s.value&&(0,G.jsx)(`div`,{role:`menu`,"data-testid":`note-view-menu-list`,...s.props,"data-anchor":`end`,"aria-label":U(`Summary`),onKeyDown:e=>{(e.key===`Escape`||e.key===`Tab`)&&(e.preventDefault(),o(!1),r.current?.focus())},className:`menu-entry absolute end-0 top-full z-30 mt-2 w-52 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:(0,G.jsxs)(`button`,{ref:l,role:`menuitem`,"data-testid":`note-write-again`,disabled:!t,onClick:()=>{o(!1),n()},className:`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none disabled:opacity-50 disabled:hover:bg-transparent`,children:[(0,G.jsx)(H_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),i]})})]})}var z9=()=>vq({mac:U(`Uses the microphone your Mac is set to`),other:U(`Uses the microphone your computer is set to`)}),Mfe=1500,Nfe=15e3,Pfe=8e3;function Ffe({recording:e,paused:t}){let[n,r]=(0,H.useState)(),[i,a]=(0,H.useState)(!1),o=Nf(i,i===`pointer`),[s,c]=(0,H.useState)(null),l=(0,H.useRef)(null),u=(0,H.useRef)(null),d=(0,H.useRef)(void 0),f=(0,H.useCallback)(()=>window.yogurt.audio.mics().then(e=>{d.current=e,r(e)}).catch(()=>{}),[]);(0,H.useEffect)(()=>{f(),window.addEventListener(`focus`,f);let t=e?setInterval(f,Nfe):void 0,n=window.yogurt.audio.onMics(({fellBack:e})=>{e&&c(d.current?.using??``),f()});return()=>{window.removeEventListener(`focus`,f),clearInterval(t),n()}},[e,f]),(0,H.useEffect)(()=>{if(s===null)return;let e=setTimeout(()=>c(null),Pfe);return()=>clearTimeout(e)},[s]),(0,H.useEffect)(()=>{e||c(null)},[e]),(0,H.useEffect)(()=>{if(!i)return;f();let e=setInterval(f,Mfe),t=e=>{l.current?.contains(e.target)||a(!1)};return document.addEventListener(`mousedown`,t),()=>{clearInterval(e),document.removeEventListener(`mousedown`,t)}},[i,f]),(0,H.useEffect)(()=>{i&&l.current?.querySelector(`[role="menuitemradio"][aria-checked="true"], [role="menuitemradio"]`)?.focus()},[i]);let p=async e=>{a(!1),c(null),u.current?.focus(),n&&r({...n,choice:e,using:e?n.devices.find(t=>t.id===e)?.name??n.using:n.defaultName}),await window.yogurt.audio.setMic(e).catch(()=>!1),f()},m=e=>{let t=Array.from(l.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),a(!1),u.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&a(!1)},h=n?.using??U(`No microphone`),g=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,_=e=>(0,G.jsx)(bg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`});return(0,G.jsxs)(`div`,{ref:l,className:`relative flex min-w-0 items-center gap-1.5`,children:[(0,G.jsxs)(`button`,{ref:u,"data-testid":`rec-mic-chip`,"aria-haspopup":`menu`,"aria-expanded":!!i,title:U(`Microphone`),onClick:e=>a(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex max-w-[220px] items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,G.jsx)(ZJ,{show:t?`paused`:`mic`,options:{mic:(0,G.jsx)(A_,{size:11}),paused:(0,G.jsx)(HG,{size:11,fill:`currentColor`,strokeWidth:0})}}),(0,G.jsx)(`span`,{"data-testid":`rec-mic`,className:`truncate`,children:t?U(`Recording paused`):h}),(0,G.jsx)(Sg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),s!==null&&(0,G.jsx)(`span`,{"data-testid":`rec-mic-note`,role:`status`,className:`text-ink`,children:s?U(`{name} isn't available anymore. Recording continues with Auto.`,{name:s}):U(`Your mic isn't available anymore. Recording continues with Auto.`)}),o.value&&n&&(0,G.jsxs)(`div`,{"data-testid":`mic-menu`,...o.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":U(`Microphone`),onKeyDown:m,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-72 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===null,"data-testid":`mic-auto`,onClick:()=>void p(null),className:g,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[U(`Auto`),(0,G.jsx)(`span`,{"data-testid":`mic-auto-info`,title:z9(),"aria-label":z9(),className:`text-muted`,children:(0,G.jsx)(o_,{size:12,"aria-hidden":`true`})})]}),n.defaultName&&(0,G.jsx)(`span`,{"data-testid":`mic-auto-name`,className:`truncate text-xs text-muted`,children:n.defaultName})]}),_(n.choice===null)]}),n.devices.length>0&&(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`mx-2 my-1 h-px bg-[var(--line)]`}),n.devices.map(e=>(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===e.id,"data-testid":`mic-option`,"data-id":e.id,onClick:()=>void p(e.id),className:g,children:[(0,G.jsx)(`span`,{className:`truncate`,children:e.name}),_(n.choice===e.id)]},e.id))]})]})}var Ife=e=>U(e===`en`?`English`:`Multi-language`);function Lfe(){let[e,t]=(0,H.useState)(),[n,r]=(0,H.useState)(!1),i=Nf(n,n===`pointer`),a=(0,H.useRef)(null),o=(0,H.useRef)(null);(0,H.useEffect)(()=>{let e=()=>void window.yogurt.settings.get().then(e=>t(e.spoken)).catch(()=>{});return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[]),(0,H.useEffect)(()=>{if(!n)return;let e=e=>{a.current?.contains(e.target)||r(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[n]),(0,H.useEffect)(()=>{if(!n)return;let e=e=>a.current?.querySelector(e);(e(`[role="menuitemradio"][aria-checked="true"]`)??e(`[role="menuitemradio"]`))?.focus()},[n]);let s=e=>{r(!1),o.current?.focus(),t(e),window.yogurt.settings.setSpoken(e).catch(()=>{})},c=e=>{let t=Array.from(a.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),r(!1),o.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&r(!1)};if(!e)return null;let l=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,u=e=>(0,G.jsx)(bg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`}),d=U(`Yogurt listens for the language being spoken. Pick it for meetings that are not in English.`);return(0,G.jsxs)(`div`,{ref:a,className:`relative flex min-w-0 items-center`,children:[(0,G.jsxs)(`button`,{ref:o,"data-testid":`spoken-chip`,"aria-haspopup":`menu`,"aria-expanded":!!n,title:U(`Spoken language`),onClick:e=>r(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,G.jsx)(u_,{size:11,"aria-hidden":`true`,className:`shrink-0`}),(0,G.jsx)(`span`,{"data-testid":`spoken-name`,className:`truncate`,children:Ife(e)}),(0,G.jsx)(Sg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),i.value&&(0,G.jsxs)(`div`,{"data-testid":`spoken-menu`,...i.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":U(`Spoken language`),onKeyDown:c,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-64 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`en`,"data-testid":`spoken-en`,onClick:()=>s(`en`),className:l,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(`span`,{children:U(`English only`)}),(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:U(`Highest quality`)})]}),u(e===`en`)]}),(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`multi`,"data-testid":`spoken-multi`,onClick:()=>s(`multi`),className:l,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(`span`,{children:U(`Multi-language`)}),(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted`,children:[U(`{count} languages supported`,{count:99}),(0,G.jsx)(`span`,{"data-testid":`spoken-multi-info`,title:d,"aria-label":d,children:(0,G.jsx)(o_,{size:12,"aria-hidden":`true`})})]})]}),u(e===`multi`)]})]})]})}function Rfe(){return null}var zfe={folder:Jg,star:dee,heart:n_,flag:Wg,bookmark:aee,briefcase:oee,users:pee,handshake:Qg,message:O_,video:mee,calendar:vg,clock:Ag,target:fee,lightbulb:f_,rocket:cee,code:Mg,palette:P_,megaphone:E_,graduation:Xg,book:iee,flask:Kg,coffee:Pg,house:i_,plane:see};function B9({appearance:e,size:t=16}){let n=zfe[e.icon]??Jg;return(0,G.jsx)(`span`,{className:`folder-glyph`,"data-folder-icon":e.icon,"data-folder-color":e.color,"aria-hidden":`true`,children:(0,G.jsx)(n,{size:t,strokeWidth:1.75})})}function V9(e,t){let n=getComputedStyle(e.currentTarget).direction===`rtl`,r=e.key===`ArrowDown`?t:e.key===`ArrowUp`?-t:e.key===`ArrowRight`?n?-1:1:e.key===`ArrowLeft`?n?1:-1:0;if(!r&&e.key!==`Home`&&e.key!==`End`)return;let i=Array.from(e.currentTarget.querySelectorAll(`[role="radio"]:not(:disabled)`));if(!i.length)return;e.preventDefault();let a=i.indexOf(document.activeElement),o=e.key===`Home`?0:e.key===`End`?i.length-1:(a+r+i.length)%i.length;i[o].focus(),i[o].click()}function H9({value:e,onChange:t,disabled:n}){return(0,G.jsxs)(`div`,{className:`folder-choices`,children:[(0,G.jsx)(`div`,{className:`folder-choice-label`,children:U(`Icon`)}),(0,G.jsx)(`div`,{className:`folder-icon-grid`,role:`radiogroup`,"aria-label":U(`Icon`),onKeyDown:e=>V9(e,6),children:Object.keys(wt).map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.icon,"data-dialog-focus":r===e.icon||void 0,"aria-label":U(wt[r]),title:U(wt[r]),tabIndex:r===e.icon?0:-1,disabled:n,"data-testid":`folder-icon-${r}`,onClick:()=>t({...e,icon:r}),children:(0,G.jsx)(B9,{appearance:{icon:r,color:e.color},size:20})},r))}),(0,G.jsx)(`div`,{className:`folder-choice-label`,children:U(`Color`)}),(0,G.jsx)(`div`,{className:`folder-color-grid`,role:`radiogroup`,"aria-label":U(`Color`),onKeyDown:e=>V9(e,1),children:Object.keys(Tt).map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.color,"aria-label":U(Tt[r]),title:U(Tt[r]),tabIndex:r===e.color?0:-1,disabled:n,"data-testid":`folder-color-${r}`,"data-folder-color":r,onClick:()=>t({...e,color:r}),children:(0,G.jsx)(`span`,{})},r))})]})}var U9=`application/x-yogurt-meeting`;function W9(e){let[t,n]=(0,H.useState)();return(0,H.useEffect)(()=>{if(e===null)return;let t=0,r=()=>{let r=++t;(e?window.yogurt.folders.of(e):window.yogurt.folders.list()).then(e=>{r===t&&n(e)},()=>{})};r();let i=window.yogurt.folders.onChange(r),a=window.yogurt.meetings.onChange(r);return()=>{t++,i(),a()}},[e]),t}async function Bfe(e,t){return G9(e,t,!0)}async function G9(e,t,n){if((await Promise.allSettled([...new Set(t)].map(async t=>{if(await(n?window.yogurt.folders.add(e,t):window.yogurt.folders.remove(e,t)),(await window.yogurt.folders.of(t)).some(t=>t.id===e)!==n)throw Error(`Folder membership not updated`)}))).some(e=>e.status===`rejected`))throw Error(n?`Folder not added`:`Folder not removed`)}function K9(e,t,n){let r=e.filter(e=>t[e]?.includes(n)).length;return r===0?!1:r===e.length||`mixed`}var Vfe=e=>e!==!0;function Hfe(e,t,n){let r=Object.entries(e).filter(([e,r])=>r.saving||r.source===n||K9(t,n,e)!==r.checked);return r.length===Object.keys(e).length?e:Object.fromEntries(r)}function q9({meetingId:e,meetingIds:t,memberships:n,suggestedId:r,onNew:i,testId:a,autoFocus:o=!1}){let s=W9(),c=(0,H.useRef)(null),l=s!==void 0;(0,H.useEffect)(()=>{o&&l&&c.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`)?.focus()},[o,l]);let u=W9(n?null:e),d=(0,H.useMemo)(()=>t??(e?[e]:[]),[t,e]),f=(0,H.useMemo)(()=>n??{[e??``]:u?.map(e=>e.id)??[]},[n,e,u]),[p,m]=(0,H.useState)({}),h=(0,H.useRef)(!1),g=Object.values(p).some(e=>e.saving);(0,H.useEffect)(()=>{m(e=>Hfe(e,d,f))},[d,f,p]);let _=e=>e in p?p[e].checked:K9(d,f,e),v=async e=>{if(h.current||!d.length||!n&&!u)return;let t=Vfe(_(e));h.current=!0,m(n=>({...n,[e]:{checked:t,saving:!0,source:f}}));try{await G9(e,d,t),m(t=>({...t,[e]:{...t[e],saving:!1}}))}catch{m(t=>{let n={...t};return delete n[e],n}),tQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{h.current=!1}},y=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,b=r?s?.filter(e=>e.id===r).concat(s.filter(e=>e.id!==r)):s;return(0,G.jsxs)(`div`,{ref:c,"data-testid":a,role:`group`,"aria-label":U(`Folders`),children:[b?.map(e=>(0,G.jsxs)(`button`,{role:`menuitemcheckbox`,"aria-checked":_(e.id),"aria-disabled":g||!n&&!u,"data-testid":`folder-option`,onClick:()=>void v(e.id),className:y,children:[(0,G.jsx)(B9,{appearance:e,size:15}),(0,G.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),e.id===r&&(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-muted`,children:U(`Suggested`)}),_(e.id)===!0&&(0,G.jsx)(bg,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`}),_(e.id)===`mixed`&&(0,G.jsx)(M_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`})]},e.id)),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`folder-new`,disabled:g,onClick:i,className:`${y} ${s?.length?`folder-picker-new`:``}`,children:[(0,G.jsx)(z_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-muted`}),U(`New folder…`)]})]})}function Ufe({meetingId:e,onNew:t,suggestion:n,row:r,rowFolders:i,children:a,onChoose:o}){let[s,c]=(0,H.useState)(null);(0,H.useEffect)(()=>{c(null);let t=0,n=()=>{let n=++t;window.yogurt.folders.suggestion(e).then(e=>{n===t&&c(e)},()=>{})};n();let r=window.yogurt.folders.onChange(n),i=window.yogurt.meetings.onChange(n);return()=>{t++,r(),i()}},[e]);let l=n??(s?{folder:s,dismiss:()=>c(null)}:void 0),u=W9(r?null:e),d=r?i:u,f=jf(),[p,m]=(0,H.useState)(null),[h,g]=(0,H.useState)(!1),[_,v]=(0,H.useState)(!1),y=Nf(_,_===`pointer`),b=(0,H.useRef)(null),x=(0,H.useRef)(null);(0,H.useEffect)(()=>{l&&d?.length&&l.dismiss(),p?.phase===`settled`&&d?.length&&m(null)},[d,l,p]),(0,H.useEffect)(()=>{if(!_)return;let e=e=>{b.current?.contains(e.target)||v(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[_]);let S=e=>{let t=Array.from(b.current?.querySelectorAll(`[role="menuitemcheckbox"], [role="menuitem"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),v(!1),x.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&v(!1)},C=p&&!(p.phase===`settled`&&d?.length)?p:null,w=C?.folder??(d?.length===0?l?.folder:void 0),T=C?.phase===`accepted`||C?.phase===`settled`,E=w?.name??(d?.length?d.length===1?d[0].name:U(`{name} + {more}`,{name:d[0].name,more:d.length-1}):U(`Add to folder`)),D=()=>r?b.current?.closest(`li`)?.querySelector(`.native-meeting-link`):x.current,O=t=>{tQ.close(`folder-suggestion-${e}`),l?.dismiss(),c(null),v(!1),requestAnimationFrame(()=>{document.activeElement===document.body&&(r?t:x.current)?.focus({preventScroll:!0})})},k=async()=>{if(!w||h||C)return;let t=D();g(!0),m({folder:w,phase:`saving`});try{await window.yogurt.folders.dismissSuggestion(e),m({folder:w,phase:`dismissed`}),O(t)}catch{m(null),tQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{g(!1)}},A=async()=>{if(!w||h||C)return;let t=D(),n=w.id;m({folder:w,phase:`saving`}),g(!0),tQ.close(`folder-suggestion-${e}`);try{if(await window.yogurt.folders.add(n,e),!(await window.yogurt.folders.of(e)).some(e=>e.id===n))throw Error(`Folder not added`);m({folder:w,phase:`accepted`}),O(t)}catch{m(null),tQ.add({id:`folder-suggestion-${e}`,data:{testId:`folder-suggestion-error`},title:U(`Yogurt couldn't add this note to the folder. Try again.`)})}finally{g(!1)}};(0,H.useEffect)(()=>{if(!p||p.phase===`saving`||p.phase===`settled`)return;let e=D(),t=setTimeout(()=>{m(p.phase===`accepted`?{...p,phase:`settled`}:null),requestAnimationFrame(()=>{document.activeElement===document.body&&(r?e:x.current)?.focus({preventScroll:!0})})},f?Of.micro:Of.base);return()=>clearTimeout(t)},[p,f]);let j=w??(d?.length===1?d[0]:void 0);if(r&&!w)return a;let M=(0,G.jsxs)(`button`,{ref:x,"data-testid":`note-folders`,"aria-haspopup":`menu`,"aria-expanded":o?void 0:!!_,onClick:e=>{o&&w?o(w.id):v(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},title:w?.name??(d?.map(e=>e.name).join(`, `)||void 0),className:w?`note-folder-name`:`note-chip flex max-w-64 items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[r&&w?(0,G.jsx)(`span`,{className:`meeting-folder-dot`,"data-folder-color":w.color,"aria-hidden":`true`}):j?(0,G.jsx)(B9,{appearance:j,size:14}):(0,G.jsx)(Jg,{size:14,"aria-hidden":`true`,className:`shrink-0`}),(0,G.jsx)(`span`,{"data-testid":`note-folders-summary`,className:`truncate`,children:E})]});return(0,G.jsxs)(`div`,{ref:b,className:r?`meeting-folder-suggestion`:`relative`,onClick:r?e=>e.stopPropagation():void 0,children:[w?(0,G.jsxs)(`div`,{"data-testid":`folder-suggestion`,role:`group`,"aria-label":U(T?`Folders`:`Suggested`),inert:C?.phase===`dismissed`,"data-phase":C?.phase,className:r?`meeting-folder-pill meeting-folder-proposal`:`note-chip note-folder-proposal flex items-center rounded-md border border-line text-[13px] text-muted`,children:[M,(0,G.jsxs)(`div`,{className:`note-folder-actions`,inert:T||C?.phase===`dismissed`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-suggestion-cancel`,className:`workspace-icon`,disabled:h||!!C,onClick:()=>void k(),"aria-label":U(`Dismiss suggestion`),title:U(`Dismiss suggestion`),children:(0,G.jsx)(iv,{size:r?12:15,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{"data-testid":`folder-suggestion-confirm`,className:`workspace-icon`,disabled:h||!!C,onClick:()=>void A(),"aria-label":U(`Add to folder`),title:U(`Add to folder`),children:(0,G.jsx)(bg,{size:r?12:15,"aria-hidden":`true`})})]})]}):M,y.value&&(0,G.jsx)(`div`,{"data-testid":`folder-menu`,...y.props,"data-anchor":`start`,role:`menu`,"aria-label":U(`Add to folder`),onKeyDown:S,className:`menu-entry absolute start-0 top-full z-30 mt-2 max-h-80 w-60 overflow-y-auto rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:(0,G.jsx)(q9,{autoFocus:!0,testId:`folder-chip-list`,meetingId:e,suggestedId:w?.id,onNew:()=>{v(!1),t?.()}})})]})}function J9({folder:e,onDone:t}){let[n,r]=(0,H.useState)(e??Et),[i,a]=(0,H.useState)(e?.name??``),[o,s]=(0,H.useState)(!1),[c,l]=(0,H.useState)(!1),u=async()=>{if(i.trim()&&!o){s(!0),l(!1);try{if(e)await window.yogurt.folders.rename(e.id,i),t();else{let e=await window.yogurt.folders.create(i,n);if(!e)throw Error(`Folder not created`);t(e)}}catch{l(!0),s(!1)}}};return(0,G.jsx)(HJ,{testId:`folder-name`,title:U(e?`Rename folder`:`New folder`),description:U(e?`Its meetings stay in it.`:`A folder keeps related meetings together. A meeting can be in more than one.`),onCancel:()=>t(),busy:o,children:(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:[(0,G.jsxs)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center gap-2 rounded-md border border-line bg-card px-2.5`,children:[(0,G.jsx)(B9,{appearance:n,size:15}),(0,G.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`folder-name-input`,value:i,onChange:e=>a(e.target.value),maxLength:200,placeholder:U(`Folder name`),"aria-label":U(`Folder name`),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})]}),!e&&(0,G.jsx)(H9,{value:n,onChange:r,disabled:o}),c&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:U(`Yogurt couldn't save this folder. Try again.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-name-save`,type:`submit`,disabled:o||!i.trim(),className:`modal-button primary`,children:U(e?`Rename`:`Create folder`)}),(0,G.jsx)(VJ,{"data-testid":`folder-name-cancel`,type:`button`,"data-dialog-cancel":!0,disabled:o,className:`modal-button`,children:U(`Cancel`)})]})]})})}function Wfe({folder:e,onDone:t}){let[n,r]=(0,H.useState)(!1),[i,a]=(0,H.useState)(!1),o=async()=>{r(!0),a(!1);try{await window.yogurt.folders.delete(e.id),t(!0)}catch{a(!0),r(!1)}};return(0,G.jsxs)(HJ,{testId:`folder-delete-confirm`,role:`alertdialog`,title:U(`Delete “{name}”?`,{name:e.name}),description:U(`Only the folder is deleted. Its meetings stay in Meetings.`),onCancel:()=>t(!1),busy:n,children:[i&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:U(`Yogurt couldn't delete this folder. Try again.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-delete-yes`,onClick:()=>void o(),disabled:n,className:`modal-button danger`,children:U(`Delete folder`)}),(0,G.jsx)(VJ,{"data-testid":`folder-delete-cancel`,"data-dialog-cancel":!0,disabled:n,className:`modal-button`,children:U(`Cancel`)})]})]})}function Gfe({folder:e,onDone:t}){let[n,r]=(0,H.useState)({icon:e.icon,color:e.color}),[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(!1),c=async()=>{if(!i){a(!0),s(!1);try{if(!await window.yogurt.folders.appearance(e.id,n))throw Error(`Folder not saved`);t()}catch{s(!0),a(!1)}}};return(0,G.jsxs)(HJ,{testId:`folder-appearance`,title:U(`Change icon`),onCancel:t,busy:i,children:[(0,G.jsxs)(`div`,{className:`folder-appearance-preview`,children:[(0,G.jsx)(`span`,{className:`folder-preview-tile`,"data-folder-color":n.color,children:(0,G.jsx)(B9,{appearance:n,size:23})}),(0,G.jsx)(`strong`,{children:e.name})]}),(0,G.jsx)(H9,{value:n,onChange:r,disabled:i}),o&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:U(`Yogurt couldn't save this folder. Try again.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-appearance-save`,onClick:()=>void c(),disabled:i,className:`modal-button primary`,children:U(`Save`)}),(0,G.jsx)(VJ,{"data-dialog-cancel":!0,disabled:i,className:`modal-button`,children:U(`Cancel`)})]})]})}function Y9(e,t,n,r){let[,i]=(0,H.useState)(0),a=(0,H.useMemo)(()=>new TQ(n=>t===`mine`?window.yogurt.notes.setMine(e,n.text,n.revision):window.yogurt.notes.setEnhanced(e,n.text,n.revision),n=>window.yogurt.notes.flushSync(e,t,n.text,n.revision)),[e,t]);return a.seed(n,r),(0,H.useEffect)(()=>(a.changed=()=>i(e=>e+1),DQ(a)),[a]),{change:e=>a.change(e),flush:()=>a.flush(),status:a.status,reason:a.reason}}var X9=new Map;function Kfe({id:e,onTitleChange:t,at:n,folderSuggestion:r,onSource:i,onResumeRequested:a}){let[o,s]=(0,H.useState)(),[c,l]=(0,H.useState)(null);(0,H.useLayoutEffect)(()=>{if(!c)return;let e=()=>document.body.style.setProperty(`--note-footer-height`,`${innerHeight-c.getBoundingClientRect().top+16}px`);e();let t=new ResizeObserver(e);return t.observe(c),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e),document.body.style.removeProperty(`--note-footer-height`)}},[c]),(0,H.useEffect)(()=>{o&&t({id:o.id,title:o.title})},[o?.id,o?.title,t]);let[u,d]=(0,H.useState)(!1),[f,p]=(0,H.useState)(!1),[m,h]=(0,H.useState)(!1),[g,_]=(0,H.useState)(!1),[v,y]=(0,H.useState)(!1),[b,x]=(0,H.useState)(!1),[S,C]=(0,H.useState)(!1),[w,T]=(0,H.useState)(null),[E,D]=(0,H.useState)(),[O,k]=(0,H.useState)(()=>X9.get(e)?.view??`mine`),[A,j]=(0,H.useState)(!1),M=jf(),N=CQ(E,M),P=o?.id===e&&o.state!==`prepared`&&o.state!==`recording`&&!!E&&E.status!==`idle`,F=A&&P&&M,I=F?`enhanced`:O,L=(0,H.useRef)(X9.has(e)),R=(0,H.useRef)(!1),[ee,z]=(0,H.useState)(()=>X9.get(e)?.primary??`notes`),te=F?`notes`:ee,ne=Sv(`note/${e}/${I}`,!!o&&!!E&&te===`notes`);(0,H.useEffect)(()=>{o&&E&&X9.set(e,{primary:te,view:I})},[e,o,E,te,I]);let[re,ie]=(0,H.useState)(te===`transcript`);(0,H.useEffect)(()=>{te===`transcript`&&ie(!0)},[te]);let[ae,B]=(0,H.useState)(!1),oe=(0,H.useRef)(null),V=(0,H.useRef)(null),se=(0,H.useRef)(0);(0,H.useEffect)(()=>()=>{se.current++,V.current?.skipTransition()},[e]);let ce=(0,H.useRef)(null),le=(0,H.useRef)(null),ue=(0,H.useRef)(null),de=(0,H.useRef)(null),[fe,pe]=(0,H.useState)(!1),me=(0,H.useRef)(null),[he,ge]=(0,H.useState)(!1),[_e,ve]=(0,H.useState)(!1),[ye,be]=(0,H.useState)(!1),[xe,Se]=(0,H.useState)(!1),[Ce,we]=(0,H.useState)(null),[Te,Ee]=(0,H.useState)(null),De=(0,H.useRef)(void 0),[ke,Ae]=(0,H.useState)(null),je=ke?.note,Me=(0,H.useRef)(void 0);(0,H.useEffect)(()=>{if(n&&E&&o&&Me.current!==n.seq&&(Me.current=n.seq,L.current=!0,z(n.ms===null?`notes`:`transcript`),n.ms===null)){let e=n.match&&pt([E.enhanced??``],n.match)>=0;k(P&&(e||!n.match)?`enhanced`:`mine`)}},[n?.seq,E,o,P]);let Ne=o?.id===e&&o.state===`recording`,Pe=async()=>{let t=!o?.paused;C(!0),T(null);try{await window.yogurt.meetings.setPaused(e,t)?s(await window.yogurt.meetings.get(e)):T(t?`pause`:`resume`)}catch{T(t?`pause`:`resume`)}finally{C(!1)}};(0,H.useEffect)(()=>{if(!Ne){Ae(null);return}let t=t=>Ae(t&&t.meetingId===e?t:null);return window.yogurt.widget.state().then(t),window.yogurt.widget.onState(t)},[e,Ne]),(0,H.useEffect)(()=>{let t=()=>void window.yogurt.meetings.get(e).then(s);return t(),window.yogurt.meetings.onChange(t)},[e]),(0,H.useEffect)(()=>{j(!1),B(!1),D(void 0),De.current=void 0,k(X9.get(e)?.view??`mine`),L.current=X9.has(e),R.current=!1,ge(!1),pe(!1),ve(!1),be(!1),y(!1),x(!1);let t=t=>{let n=!De.current,{view:r,keptEdits:i}=NY(De.current,t);i&&window.yogurt.notes.keptEdits(e),De.current=r,D(r);let a=t.saves?.mine?.status===`failed`?`mine`:t.saves?.enhanced?.status===`failed`?`enhanced`:void 0;n&&a&&(L.current=!0,k(a),z(`notes`)),t.status!==`idle`&&!L.current&&!R.current&&k(`enhanced`)},n=window.yogurt.notes.onChange(n=>{n.meetingId===e&&t(n)});return window.yogurt.notes.get(e).then(t),n},[e]),(0,H.useEffect)(()=>{De.current=E},[E]),(0,H.useEffect)(()=>{o?.state!==`recording`&&(o?.stopSavePending||E?.status!==`idle`)&&h(!1)},[o?.state,o?.stopSavePending,E?.status]),(0,H.useEffect)(()=>{if(!A||!P)return;let e=()=>{Ge(`notes`,`enhanced`,!0),de.current?.focus({preventScroll:!0})};if(M){e();return}let t=setTimeout(e,Of.micro);return()=>clearTimeout(t)},[e,A,P,M]);let Fe=Y9(e,`mine`,E?.mine??``,E?.saves?.mine),Ie=Y9(e,`enhanced`,E?.enhanced??``,E?.saves?.enhanced);(0,H.useLayoutEffect)(()=>{let e=ce.current;if(!e)return;let t=()=>{let t=(te===`transcript`?le:I===`enhanced`&&de.current?de:ue).current;if(!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=getComputedStyle(e).direction===`rtl`?n.right-r.right:n.left-r.left;e.style.setProperty(`--tab-x`,`${i}px`),e.style.setProperty(`--tab-width`,`${n.width}px`)};t();let n=new ResizeObserver(t);n.observe(e);for(let e of[le.current,ue.current,de.current])e&&n.observe(e);return()=>n.disconnect()},[te,I,o?.state,E?.status]);let Le=m||E?.status===`waiting`||E?.status===`writing`,Re=(0,H.useRef)(!1);if((0,H.useEffect)(()=>{a?Re.current||!o||!E||Le||f||o.stopSavePending||(Re.current=!0,a(),o.trashedAt!=null||o.stopSavePending||o.state!==`stopped`&&o.state!==`done`||Ye()):Re.current=!1},[a,o,E,Le,f]),!o||!E)return(0,G.jsx)(JG,{pending:!0,skeleton:(0,G.jsx)(ov,{layout:`note`}),className:`loading-note-frame`});let ze=o.state===`recording`,Be=o.trashedAt!=null,Ve=o.endedAt?Math.max(1,Math.round((o.durationMs??o.endedAt-o.startedAt)/6e4)):null,He=P?I:`mine`,Ue=e=>{L.current=!0,k(e),Fe.flush(),Ie.flush()},We=(e,t=!1)=>{B(t),e!==ee&&(z(e),e===`transcript`&&pe(!1),Fe.flush(),Ie.flush())},Ge=(e,t,n=!1)=>{j(!1);let r=++se.current;V.current?.skipTransition();let i=()=>{r===se.current&&(We(e,n),t&&Ue(t))},a=oe.current;e===te&&(!t||t===He)||!a?.startViewTransition||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?i():(V.current=a.startViewTransition(()=>(0,Oe.flushSync)(i)),V.current.ready.catch(()=>{}))},Ke=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=[le.current,ue.current,...P?[de.current]:[]],n=getComputedStyle(e.currentTarget).direction===`rtl`?-1:1,r=e.key===`ArrowRight`?n:-n,i=t.indexOf(e.currentTarget),a=e.key===`Home`?0:e.key===`End`?t.length-1:(i+r+t.length)%t.length;t[a]?.click(),t[a]?.focus({preventScroll:!0})},qe=async()=>(await Promise.all([Fe.flush(),Ie.flush()])).every(Boolean),Je=async()=>{if(!f){p(!0),_(!1);try{if(!await qe())return;let t=await window.yogurt.meetings.startPrepared(e);_(`error`in t),`error`in t||(z(`notes`),k(`mine`))}catch{_(!0)}finally{p(!1)}}},Ye=async(t=!1)=>{if(!(f||Le)){if((E.edited||he)&&!t)y(!0);else{y(!1),p(!0),x(!1);try{if(!await qe())return;`error`in await window.yogurt.meetings.resume(e)?x(!0):(L.current=!1,j(!1),z(`notes`),k(`mine`),ge(!1))}catch{x(!0)}finally{p(!1)}}}},Xe=Fe.status===`failed`||Ie.status===`failed`?`failed`:Fe.status===`saving`||Ie.status===`saving`?`saving`:`saved`,Ze=()=>{pe(!1),me.current?.focus({preventScroll:!0})},Qe=async()=>{let t=fe;t&&Ze(),await qe()&&((E.edited||he)&&!t?pe(!0):(t||Ze(),ge(!1),window.yogurt.notes.writeAgain(e)))};return(0,G.jsx)(JG,{pending:!1,skeleton:(0,G.jsx)(ov,{layout:`note`}),className:`loading-note-frame`,children:(0,G.jsxs)(`div`,{"data-testid":`note`,className:`document-main relative flex h-full bg-bg`,children:[v&&(0,G.jsx)(HJ,{testId:`resume-confirm`,role:`alertdialog`,title:U(`Record more in this note?`),description:U(`Your notes, transcript, and previous audio are kept. Your edited summary will be replaced when you finish recording.`),onCancel:()=>y(!1),children:(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`resume-yes`,onClick:()=>void Ye(!0),className:`modal-button primary`,children:U(`Resume recording`)}),(0,G.jsx)(VJ,{"data-dialog-cancel":!0,"data-testid":`resume-cancel`,className:`modal-button`,children:U(`Cancel`)})]})}),(0,G.jsx)(`div`,{"data-testid":`note-topbar`,className:`note-topbar no-drag fixed right-4 top-[10px] z-[60]`,children:(0,G.jsx)(yQ,{recording:ze,savePending:o.stopSavePending,trashed:Be,onRename:()=>ve(!0),onDelete:()=>{qe().then(t=>{t&&(Be?be(!0):nQ(e,`/note/${e}`))})},folders:t=>(0,G.jsx)(q9,{testId:`note-menu-folders`,meetingId:e,onNew:()=>{t(),Se(!0)}})})}),(0,G.jsxs)(`div`,{className:`note-layout relative flex min-w-0 flex-1 flex-col`,"data-tab-pointer":ae,children:[(0,G.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,G.jsx)(qfe,{id:e,title:o.title,editing:_e,onEdit:ve}),(0,G.jsxs)(`div`,{className:`note-meta-row`,children:[(0,G.jsxs)(`div`,{className:`note-metadata`,"data-testid":`note-metadata`,children:[(0,G.jsx)(Ofe,{m:o}),(0,G.jsx)(Tfe,{m:o}),(0,G.jsx)(Ufe,{meetingId:e,onNew:()=>Se(!0),suggestion:r})]}),(0,G.jsxs)(`div`,{"data-testid":ze?`rec-bar`:`note-bar`,className:`note-header-actions`,children:[(0,G.jsxs)(`div`,{"data-testid":`note-state`,"data-state":o.state,"data-paused":!!o.paused,className:`note-recording-group`,"data-recording":ze&&!m,role:`group`,"aria-label":ze?o.paused?U(`Paused`):U(`Recording`):U(`Meeting controls`),children:[ze&&!m&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`note-recording-status`,children:[(0,G.jsx)(hQ,{height:14,bars:3,testId:`note-wave`,paused:!!o.paused,className:`text-muted`}),(0,G.jsx)(gQ,{view:ke})]}),(0,G.jsx)(`button`,{"data-testid":`note-pause`,disabled:S,onClick:()=>{Pe()},"aria-label":o.paused?U(`Resume recording`):U(`Pause recording`),title:o.paused?U(`Resume recording`):U(`Pause recording`),className:`note-record-action note-pause-action`,children:(0,G.jsx)(ZJ,{show:o.paused?`play`:`pause`,options:{pause:(0,G.jsx)(HG,{size:14,fill:`currentColor`,strokeWidth:0}),play:(0,G.jsx)(UG,{size:14,fill:`currentColor`,strokeWidth:0})}})}),(0,G.jsx)(`button`,{"data-testid":`note-stop`,onClick:t=>{j(!0),L.current=!0,k(`mine`),h(!0),B(t.detail>0),window.yogurt.meetings.stop(e)},"aria-label":U(`Finish recording`),title:U(`Finish recording`),className:`note-record-action note-finish-action primary`,children:U(`Finish`)})]}),m&&(0,G.jsx)(`span`,{"data-testid":`note-finishing`,role:`status`,className:`note-finishing`,children:U(`Finishing…`)}),!m&&(o.state===`stopped`||o.state===`done`)&&!o.stopSavePending&&!Be&&(0,G.jsxs)(`button`,{"data-testid":`note-resume`,disabled:f||Le,"aria-busy":Le,"data-processing":Le,onClick:()=>void Ye(),className:`note-record-action note-resume-action`,title:U(Le?`Summarizing…`:`Resume recording in this note`),children:[(0,G.jsx)(ZJ,{show:Le?`busy`:`mic`,options:{mic:(0,G.jsx)(VG,{size:14}),busy:(0,G.jsx)(KG,{size:14})}}),(0,G.jsx)(QJ,{text:U(Le?`Summarizing…`:f?`Preparing…`:`Resume recording`),widest:U(`Resume recording`)})]}),o.state===`prepared`&&!Be&&(0,G.jsxs)(`button`,{"data-testid":`note-start`,disabled:f,onClick:()=>{Je()},className:`note-record-action primary`,children:[(0,G.jsx)(VG,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(f?`Starting…`:`Start recording`)]})]}),(0,G.jsx)(vQ,{id:e,shown:He,status:E.status,hasEnhanced:E.enhanced!=null,beforeUse:qe})]})]}),Be&&(0,G.jsxs)(`div`,{"data-testid":`note-trashed`,role:`status`,className:`mt-5 flex flex-wrap items-center gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,G.jsx)(X_,{size:16,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsx)(`p`,{className:`min-w-48 flex-1`,children:U(`This note is in the Trash.`)}),(0,G.jsxs)(`button`,{"data-testid":`note-restore`,onClick:()=>void window.yogurt.meetings.restore(e),className:`workspace-button`,children:[(0,G.jsx)(H_,{size:13,"aria-hidden":`true`}),U(`Restore`)]})]}),(0,G.jsxs)(`div`,{ref:ce,className:`note-primary-tabs`,"data-summary-arriving":A&&P&&!M,children:[(0,G.jsxs)(`div`,{role:`tablist`,"aria-label":U(`Meeting view`),className:`contents`,children:[(0,G.jsxs)(`button`,{ref:le,id:`note-transcript-tab`,"data-testid":`note-transcript-toggle`,role:`tab`,"aria-selected":te===`transcript`,"aria-controls":`note-transcript-panel`,tabIndex:te===`transcript`?0:-1,onKeyDown:Ke,onClick:e=>Ge(`transcript`,void 0,e.detail>0),children:[(0,G.jsx)(fg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(`Transcript`)]}),(0,G.jsxs)(`button`,{ref:ue,id:`note-notes-tab`,"data-testid":`note-notes-tab`,role:`tab`,"aria-selected":te===`notes`&&He===`mine`,"aria-controls":`note-notes-panel`,"data-version":He,tabIndex:te===`notes`&&He===`mine`?0:-1,onKeyDown:Ke,onClick:e=>Ge(`notes`,`mine`,e.detail>0),children:[(0,G.jsx)(J_,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(`My notes`)]}),P&&(0,G.jsxs)(`button`,{ref:de,id:`note-summary-tab`,"data-testid":`note-summary-tab`,role:`tab`,"aria-selected":te===`notes`&&He===`enhanced`,"aria-controls":`note-notes-panel`,tabIndex:te===`notes`&&He===`enhanced`?0:-1,onKeyDown:Ke,onClick:e=>Ge(`notes`,`enhanced`,e.detail>0),children:[(0,G.jsx)(WG,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(`Summary`)]})]}),te===`transcript`&&(0,G.jsx)(`div`,{ref:we,className:`note-primary-tools`}),(0,G.jsx)(`span`,{"data-testid":`note-tab-indicator`,className:`note-tab-indicator`,"aria-hidden":`true`}),P&&te===`notes`&&(0,G.jsx)(jfe,{menuButton:me,hasSummary:E.enhanced!=null,canWriteAgain:E.status===`done`||E.status===`failed`||E.status===`empty`,onWriteAgain:()=>{Ue(`enhanced`),Qe()}})]})]}),(0,G.jsx)(`div`,{ref:Ee,className:`note-reading-area`,children:(0,G.jsxs)(`div`,{ref:oe,className:`note-panels`,children:[(0,G.jsx)(jY,{active:te===`notes`,summary:He===`enhanced`,hasSummary:E.enhanced!=null,generating:He===`enhanced`&&[`waiting`,`streaming`].includes(N),writing:He===`enhanced`&&N===`streaming`,scroll:ne,children:He===`mine`?(0,G.jsx)(qR,{focus:te===`notes`&&n?.ms===null?n:void 0,testId:`note-mine`,label:U(`My notes`),className:`min-h-[40vh]`,markdown:E.mine,placeholder:U(`Write notes here. Yogurt fills in the rest after the meeting.`),onChange:e=>{R.current=!0;let t={...De.current,mine:e};De.current=t,D(t),Fe.change(e)},onBlur:()=>{R.current=!1,Fe.flush()}}):(0,G.jsx)(Jfe,{presentation:N,focus:te===`notes`&&n?.ms===null?n:void 0,notes:E,disabled:f,onChange:e=>{ge(!0);let t={...De.current,enhanced:e};De.current=t,D(t),Ie.change(e)},onBlur:Ie.flush,onRetry:Qe},e)}),(te===`transcript`||re)&&(0,G.jsx)(`section`,{hidden:te!==`transcript`,id:`note-transcript-panel`,role:`tabpanel`,"aria-labelledby":`note-transcript-tab`,className:`note-content note-transcript-pane`,children:(0,G.jsx)(Rv,{id:e,recording:ze,active:te===`transcript`,inline:!0,toolbar:Ce,focus:n?.ms==null?void 0:{...n,ms:n.ms}})})]})}),(0,G.jsxs)(`footer`,{ref:l,className:`note-footer`,children:[o.stopSavePending&&(0,G.jsxs)(`div`,{"data-testid":`note-stop-unsaved`,role:`alert`,className:`mt-5 flex flex-wrap items-start gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,G.jsx)(Q_,{size:16,"aria-hidden":`true`,className:`mt-0.5 shrink-0 text-danger`}),(0,G.jsx)(`p`,{className:`min-w-48 flex-1`,children:U(`Recording stopped. Yogurt couldn't save when it ended. Keep Yogurt open and try again.`)}),(0,G.jsx)(`button`,{"data-testid":`note-stop-retry`,disabled:u,className:`bar-btn rounded-md border border-line bg-bg px-3 py-1 text-ink disabled:opacity-50`,onClick:()=>{d(!0),window.yogurt.meetings.retryStopSave(e).then(e=>{e&&le.current?.focus({preventScroll:!0})}).catch(()=>{}).finally(()=>d(!1))},children:U(u?`Saving…`:`Try again`)})]}),te===`notes`&&He===`enhanced`&&E.status===`done`&&E.peopleChanged&&!fe&&(0,G.jsxs)(`div`,{"data-testid":`note-people-changed`,className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2 text-[13px] shadow-[var(--shadow)]`,children:[(0,G.jsx)(`span`,{children:U(`People changed. Regenerate summary?`)}),(0,G.jsx)(`button`,{"data-testid":`note-people-write-again`,onClick:Qe,className:`workspace-button primary`,children:U(`Regenerate summary`)})]}),fe&&(0,G.jsxs)(`div`,{"data-testid":`note-confirm`,role:`alertdialog`,"aria-label":U(`Regenerate summary?`),"aria-describedby":`note-rewrite-description`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),Ze())},className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2.5 text-sm shadow-[var(--shadow)]`,children:[(0,G.jsx)(`span`,{id:`note-rewrite-description`,children:U(`Regenerate summary? Your edits to the summary will be replaced.`)}),(0,G.jsx)(`button`,{"data-testid":`note-write-again-cancel`,autoFocus:!0,onClick:Ze,className:`workspace-button`,children:U(`Cancel`)}),(0,G.jsx)(`button`,{"data-testid":`note-write-again-confirm`,onClick:Qe,className:`workspace-button primary`,children:U(`Regenerate summary`)})]}),Xe===`failed`&&(0,G.jsxs)(bQ,{testId:`note-save-status`,warningTestId:`note-save-warning`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)]`,children:[(0,G.jsx)(`span`,{children:Fe.reason===`too-long`||Ie.reason===`too-long`?U(`This note is too long to save. Shorten it and try again.`):U(`Couldn't save your changes`)}),(0,G.jsx)(`button`,{"data-testid":`note-save-retry`,className:`inline-error-action`,onClick:()=>{qe()},children:U(`Try again`)})]}),g&&(0,G.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:U(`Yogurt couldn't start the notes. Try again in a moment.`)}),b&&(0,G.jsx)(`p`,{"data-testid":`note-resume-failed`,role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)] text-[13px] text-danger`,children:U(`Couldn't resume recording. Your existing note and audio are kept. Try again.`)}),w&&ze&&(0,G.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:U(w===`pause`?`Couldn't pause the recording. Try again.`:`Couldn't resume the recording. Try again.`)}),ze&&je&&(0,G.jsx)(Rfe,{hint:je}),(0,G.jsxs)(`div`,{className:`note-footer-bar`,children:[(0,G.jsxs)(`div`,{className:`note-status pointer-events-auto flex flex-wrap items-center gap-1.5 text-[11px] text-muted`,children:[(ze||o.state===`prepared`)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Ffe,{recording:ze,paused:ze&&o.paused}),(0,G.jsx)(Lfe,{}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Xe!==`failed`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`p`,{"data-testid":`note-save-status`,"data-state":Xe,role:`status`,className:`flex items-center gap-1.5`,children:[(0,G.jsx)(S_,{size:10,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:Xe===`saving`?U(`Saving…`):vq({mac:U(`Saved on this Mac`),other:U(`Saved on this computer`)})})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),Ve!=null&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"data-testid":`note-duration`,children:U(`{count} min`,{count:Ve})}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),U(`Yogurt can make mistakes.`)]}),(0,G.jsx)(iQ,{id:e,recording:ze,anchor:Te,onSource:i})]})]})]}),ye&&(0,G.jsx)(xQ,{id:e,title:o.title,onDone:()=>be(!1)}),xe&&(0,G.jsx)(J9,{onDone:t=>{Se(!1),t&&window.yogurt.folders.add(t.id,e)}})]})})}function qfe({id:e,title:t,editing:n,onEdit:r}){let[i,a]=(0,H.useState)(t),o=(0,H.useRef)(!1);(0,H.useEffect)(()=>{n&&(a(t),o.current=!1)},[n,t]);let s=`note-title-type w-full font-sans`;return n?(0,G.jsx)(`input`,{"data-testid":`note-title-input`,"aria-label":U(`Title`),autoFocus:!0,value:i,maxLength:200,onFocus:e=>e.currentTarget.select(),onChange:e=>a(e.target.value),onBlur:()=>{r(!1),!o.current&&i.trim()&&i.trim()!==t&&window.yogurt.meetings.rename(e,i)},onKeyDown:e=>{e.key===`Enter`?e.currentTarget.blur():e.key===`Escape`&&(o.current=!0,e.currentTarget.blur())},className:`${s} -mx-1 rounded-lg bg-transparent px-1 outline-none ring-1 ring-line focus:ring-accent`}):(0,G.jsx)(`h1`,{"data-testid":`note-title`,className:s,children:(0,G.jsx)(`button`,{onClick:()=>r(!0),title:U(`Rename`),className:`note-title-btn -mx-1 max-w-full rounded-lg px-1 text-start`,children:t})})}function Jfe({notes:e,presentation:t,disabled:n,onChange:r,onBlur:i,onRetry:a,focus:o}){let{status:s}=e,c=t===`handoff`,l=t===`waiting`||t===`streaming`||c,u=t===`rewriting`,d=(0,H.useRef)(null),f=(0,H.useRef)(0),p=(0,H.useRef)(t);(0,H.useLayoutEffect)(()=>{let e=d.current?.closest(`.note-notes-pane`);s===`failed`&&p.current===`streaming`&&e&&(e.scrollTop=0),p.current=t},[t,s]),(0,H.useLayoutEffect)(()=>{c||(f.current=d.current?.offsetHeight??0)},[c,u,e.enhanced]);let m=CG(l?e.draft:``,l,{minCommitMs:32});return t===`failed`?(0,G.jsxs)(bQ,{testId:`note-enhanced-failed`,children:[(0,G.jsx)(`span`,{children:U(`Yogurt couldn't generate this summary.`)}),(0,G.jsx)(`button`,{onClick:a,className:`inline-error-action`,children:U(`Try again`)})]}):t===`empty`?(0,G.jsx)(`p`,{"data-testid":`note-enhanced-empty`,className:`text-[15px] text-muted`,children:U(`Nothing was said or written in this meeting.`)}):t===`waiting`?(0,G.jsx)($G,{downloading:e=>(0,G.jsx)(`p`,{"data-testid":`note-enhanced-model-download`,role:`status`,className:`text-[15px] text-muted`,children:e?U(`Yogurt is still downloading its AI model. Your notes will be ready in a few minutes. ({percent})`,{percent:e}):U(`Yogurt is still downloading its AI model. Your notes will be ready in a few minutes.`)}),children:(0,G.jsx)(MY,{part:s===`writing`?e.part:void 0})}):(0,G.jsxs)(`div`,{"data-testid":`note-enhanced`,"data-status":s,className:t===`streaming`?`streaming`:``,children:[s===`failed`&&(0,G.jsxs)(bQ,{testId:`note-enhanced-rewrite-failed`,className:`mb-6`,children:[(0,G.jsx)(`span`,{children:U(`Couldn't regenerate the summary. Your previous version is below.`)}),(0,G.jsx)(`button`,{onClick:a,className:`inline-error-action`,children:U(`Try again`)})]}),(u||c)&&(0,G.jsx)(MY,{outline:!1,writing:c,part:s===`writing`?e.part:void 0}),(0,G.jsxs)(`div`,{ref:d,className:`summary-rewrite`,"data-rewriting":u,"data-handoff":c,style:c?{minHeight:f.current}:void 0,children:[(0,G.jsx)(`div`,{className:`summary-result`,children:(0,G.jsx)(qR,{focus:o,testId:`note-enhanced-editor`,label:U(`Summary`),className:`enhanced`,markdown:l?m:e.enhanced??``,streaming:l,editable:!l&&!u&&!n,onChange:r,onBlur:i})}),c&&(0,G.jsx)(`div`,{className:`summary-previous`,"aria-hidden":`true`,inert:!0,children:(0,G.jsx)(qR,{testId:`note-enhanced-previous`,label:U(`Summary`),className:`enhanced`,markdown:e.enhanced??``,editable:!1})})]}),l&&(0,G.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:U(`Generating notes…`)})]})}var Z9=sh.transition.collapse;sh.transition.collapseLabel,sh.transition.color,H.createContext(null),H.createContext(!0);function Q9(e,t){let n=Ch(),{duration:r,easing:i}=gh(dh(e));return{transitionProperty:t,transitionDuration:`${n?0:r}ms`,transitionTimingFunction:i,transitionDelay:`0ms`}}function Yfe({transition:e=Z9,style:t,...n}){let r=Q9(e,`width`);return(0,G.jsx)(`div`,{...n,style:{...r,...t}})}function Xfe({transition:e=Z9,style:t,...n}){let r=Q9(e,`left, right, width`);return(0,G.jsx)(`div`,{...n,style:{...r,...t}})}H.Component;function Zfe(e){if(!e)return[];if(!e.startsWith(`[`))return[e];try{let t=JSON.parse(e);return Array.isArray(t)&&t.every(e=>typeof e==`string`&&e.length>0)?[...new Set(t)]:[]}catch{return[]}}function Qfe({folders:e,route:t,go:n,collapsed:r=!1,sidebarMotion:i}){let[a,o]=(0,H.useState)(),[s,c]=(0,H.useState)(),[l,u]=(0,H.useState)(),[d,f]=(0,H.useState)(),[p,m]=(0,H.useState)(!1),h=(0,H.useRef)(!1),g=(0,H.useRef)(null),_=d?[...d.filter(t=>e?.some(e=>e.id===t)),...(e??[]).filter(e=>!d.includes(e.id)).map(e=>e.id)]:(e??[]).map(e=>e.id),v=(0,H.useRef)(_);v.current=_,(0,H.useEffect)(()=>{!h.current&&!p&&f(void 0)},[e]);let y=async t=>{if(h.current=!1,t.every((t,n)=>t===e?.[n]?.id))f(void 0);else{f(t),m(!0);try{if(!await window.yogurt.folders.reorder(t))throw Error(`Folder list changed`)}catch{f(void 0),tQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{m(!1)}}},b=(e,t)=>{let n=_.indexOf(e),r=[..._];p||n+t<0||n+t>=_.length||(r.splice(n,1),r.splice(n+t,0,e),y(r))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`nav`,{"aria-label":U(`Folders`),"data-testid":`sidebar-folders`,children:[(0,G.jsx)(JG,{pending:!e,skeleton:(0,G.jsx)(ov,{layout:`folders`,testId:`folders-loading`}),children:(0,G.jsx)(Im,{as:`div`,ref:g,axis:`y`,values:_,className:`workspace-folder-list`,"data-testid":`folder-reorder-list`,onReorder:e=>{v.current=e,f(e)},children:_.map((a,s)=>{let l=e.find(e=>e.id===a);return(0,G.jsx)($fe,{folder:l,collapsed:r,sidebarMotion:i,current:t===`/folder/${l.id}`,go:n,constraints:g,reorderable:!p&&_.length>1,onDragStart:()=>{h.current=!0},onDragEnd:()=>void y(v.current),moveUp:!p&&s>0?()=>b(a,-1):void 0,moveDown:!p&&s<_.length-1?()=>b(a,1):void 0,onAppearance:()=>c(l),onRename:()=>o({folder:l}),onDelete:()=>u(l)},l.id)})})}),(0,G.jsxs)(`button`,{"data-testid":`folder-create`,"data-sidebar":`menu-button`,"aria-label":U(`New folder`),title:r?U(`New folder`):void 0,className:`workspace-nav workspace-folder-new`,onClick:()=>o({}),children:[(0,G.jsx)(z_,{size:16,strokeWidth:1.7,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`New folder`)})]})]}),s&&(0,G.jsx)(Gfe,{folder:s,onDone:()=>c(void 0)}),a&&(0,G.jsx)(J9,{folder:a.folder,onDone:e=>{o(void 0),e&&n(`/folder/${e.id}`)}}),l&&(0,G.jsx)(Wfe,{folder:l,onDone:e=>{u(void 0),e&&t===`/folder/${l.id}`&&n(``)}})]})}function $fe({folder:e,collapsed:t,sidebarMotion:n,current:r,go:i,onRename:a,onDelete:o,onAppearance:s,constraints:c,reorderable:l,onDragStart:u,onDragEnd:d,moveUp:f,moveDown:p}){let m=Em(),h=jf(),g=(0,H.useRef)(t),_=h||g.current!==t&&!n;(0,H.useEffect)(()=>{g.current=t},[t]);let v=(0,H.useRef)(!1),[y,b]=(0,H.useState)(!1),[x,S]=(0,H.useState)(!1),[C,w]=(0,H.useState)(),T=Nf(C,!!C?.pointer),E=(0,H.useRef)(null),D=(0,H.useRef)(null),O=(0,H.useRef)(null),k=(0,H.useRef)(null);(0,H.useEffect)(()=>{if(!C)return;k.current?.querySelector(`[role="menuitem"]`)?.focus();let e=e=>{E.current?.contains(e.target)||w(void 0)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[C]);let A=e=>{let t=E.current.getBoundingClientRect(),n=getComputedStyle(E.current).direction===`rtl`;w({pointer:e,style:{position:`fixed`,top:t.bottom+4,width:Math.max(180,t.width),insetInlineStart:n?window.innerWidth-t.right:t.left}})},j=e=>{let n=Array.from(k.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]),r=n.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),w(void 0),(t?O:D).current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),n[(r+1)%n.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),n[(r-1+n.length)%n.length]?.focus()):e.key===`Tab`&&w(void 0)},M=e=>{w(void 0),(t?O:D).current?.focus(),e()},N=e=>e.dataTransfer.types.includes(U9);return(0,G.jsxs)(Xm,{as:`div`,ref:E,value:e.id,className:`workspace-folder-item`,"data-testid":`sidebar-folder`,"data-folder":e.id,"data-moving":y,dragListener:!1,dragControls:m,dragConstraints:c,dragElastic:0,dragMomentum:!1,transition:_?{duration:0}:{type:`spring`,stiffness:520,damping:42},onDragStart:()=>{v.current=!0,b(!0),w(void 0),u()},onDragEnd:()=>{b(!1),d()},children:[(0,G.jsxs)(`button`,{ref:O,className:`workspace-nav`,"data-sidebar":`menu-button`,"aria-label":e.name,title:t?e.name:void 0,"data-testid":`sidebar-folder-open`,"data-drop":x,"aria-current":r?`page`:void 0,"aria-keyshortcuts":`Alt+ArrowUp Alt+ArrowDown`,onPointerDown:e=>{v.current=!1,l&&e.button===0&&m.start(e,{distanceThreshold:4})},onClick:t=>{v.current&&t.detail?v.current=!1:i(`/folder/${e.id}`)},onContextMenu:e=>{e.preventDefault(),A(!0)},onKeyDown:e=>{e.key===`ContextMenu`||e.shiftKey&&e.key===`F10`?(e.preventDefault(),A(!1)):e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),(e.key===`ArrowUp`?f:p)?.())},onDragEnter:e=>{N(e)&&(e.preventDefault(),S(!0))},onDragOver:e=>{N(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`link`)},onDragLeave:()=>S(!1),onDrop:t=>{S(!1);let n=Zfe(t.dataTransfer.getData(U9));n.length&&(t.preventDefault(),Bfe(e.id,n).catch(()=>tQ.add({title:U(`Yogurt couldn't add this note to the folder. Try again.`)})))},children:[(0,G.jsx)(B9,{appearance:e}),(0,G.jsx)(`span`,{children:e.name}),(0,G.jsx)(`small`,{"data-testid":`sidebar-folder-count`,"aria-label":U(`{count} meetings`,{count:e.count}),children:e.count})]}),(0,G.jsx)(`button`,{ref:D,"data-testid":`sidebar-folder-more`,className:`workspace-icon workspace-folder-more`,"aria-haspopup":`menu`,"aria-expanded":!!C,"aria-label":U(`More for “{name}”`,{name:e.name}),title:U(`More`),onClick:e=>C?w(void 0):A(e.detail>0),children:(0,G.jsx)(Ig,{size:15,"aria-hidden":`true`})}),T.value&&(0,G.jsxs)(`div`,{ref:k,"data-testid":`sidebar-folder-menu`,role:`menu`,"aria-label":e.name,...T.props,"data-anchor":`start`,onKeyDown:j,style:T.value.style,className:`menu-entry z-[70] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-appearance`,onClick:()=>M(s),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(P_,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Change icon`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-rename`,onClick:()=>M(a),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(I_,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Rename`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-up`,disabled:!f,onClick:()=>f&&M(f),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(ug,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Move up`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-down`,disabled:!p,onClick:()=>p&&M(p),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(sg,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Move down`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-delete`,onClick:()=>M(o),className:`flex w-full items-center gap-2.5 text-start text-danger`,children:[(0,G.jsx)(X_,{size:15,"aria-hidden":`true`}),U(`Delete folder`)]})]})]})}function epe(){return null}function tpe({go:e}){let[t,n]=(0,H.useState)(),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)(!1),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)(!1);(0,H.useEffect)(()=>{let e,t=!0,r=t=>{e=t,n(t),!t.notesError&&!t.notesUpgradeError&&u(!1),ZG(t)||(i(!1),f(!1))},a=window.yogurt.setup.onState(r);return window.yogurt.setup.state().then(n=>{t&&!e&&r(n)}),()=>{t=!1,a()}},[]);let p=async()=>{c(!0),u(!1);try{await window.yogurt.setup.retry()}catch{u(!0)}finally{c(!1)}},m=async()=>{f(!1);try{await window.yogurt.setup.skipUpgrade();let t=tQ.add({title:U(`AI upgrade skipped`),timeout:8e3,data:{testId:`notes-skipped-toast`},actionProps:{children:U(`Settings`),onClick:()=>{tQ.close(t),e(`/settings/notes-model`)}}})}catch{f(!0)}};if(!t||!ZG(t))return null;let h=XG(t),g=h?t.notesUpgradeError:t.notesError,_=!!g,v=U(h?`AI upgrade paused`:`AI download stopped`),y=_?v:t.notesUpgradePending&&h?U(`Upgrading AI`):h?U(`Upgrading AI · {percent}`,{percent:YG(t.notesUpgradeFraction??0)}):U(`Downloading AI · {percent}`,{percent:YG(t.notesFraction??0)}),b=QG(t),x=h?t.notesUpgradeFraction:t.notesFraction,S=x!==void 0&&Number.isFinite(x)?Math.floor(Math.max(0,Math.min(1,x))*100):void 0;return(0,G.jsx)(sG,{direction:gt(xt()),children:(0,G.jsx)(`span`,{className:`notes-download-status`,children:(0,G.jsxs)(JU,{open:r,onOpenChange:(e,t)=>{e&&o(t.event instanceof MouseEvent&&t.event.detail>0),i(e)},children:[(0,G.jsxs)(uW,{"data-testid":`notes-setup-open`,"aria-label":y,title:y,className:`bar-btn notes-download-trigger no-drag`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,"data-failed":_,"data-upgrade":h,className:`notes-download-dot`}),(0,G.jsx)(`span`,{className:`truncate`,children:y})]}),(0,G.jsx)(pW,{children:(0,G.jsx)($W,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,G.jsxs)(aG,{"data-testid":`notes-setup`,"data-failed":_,"data-pointer":a,"data-anchor":`end`,"aria-label":_?v:U(h?`Upgrading AI`:`Downloading AI`),className:`menu-entry notes-download-menu`,children:[(0,G.jsxs)(`div`,{className:`notes-download-readout`,children:[(0,G.jsx)(`strong`,{role:_?`status`:void 0,children:_?U(h?`Upgrade paused`:`Download stopped`):b.progress||U(h?`Upgrading AI`:`Downloading AI`)}),(0,G.jsx)(`span`,{children:_?b.progress:h?S!==void 0&&YG(x):b.eta})]}),(0,G.jsx)(`div`,{className:`notes-download-progress`,role:`progressbar`,"aria-label":y,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":S,children:(0,G.jsx)(`span`,{style:{width:`${S??0}%`}})}),(0,G.jsxs)(`div`,{className:`notes-download-footer`,children:[(0,G.jsx)(`p`,{className:`notes-download-support`,children:_?g:U(h?`Once this model is ready, we'll remove the old one.`:`You can record meetings. AI summaries and Ask work when this finishes.`)}),(_||h)&&(0,G.jsxs)(`div`,{className:`notes-download-actions`,children:[_&&(0,G.jsx)(`button`,{"data-testid":`notes-setup-retry`,className:`notes-download-retry`,disabled:s,onClick:()=>void p(),children:U(s?`Retrying…`:`Try again`)}),h&&(0,G.jsx)(`button`,{"data-testid":`notes-setup-skip`,className:`notes-download-skip`,disabled:t.notesUpgradeChanging,onClick:()=>void m(),children:U(`Skip for now`)})]})]}),l&&(0,G.jsx)(`p`,{role:`alert`,children:U(`Couldn't restart the download. Try again.`)}),d&&(0,G.jsx)(`p`,{role:`alert`,children:U(`Couldn't change the notes model. Try again.`)})]})})})]})})})}function npe({route:e,meeting:t,folders:n,go:r,back:i,forward:a,search:o,collapsed:s,sidebarMotion:c,toggleSidebar:l,children:u}){let[d,f]=(0,H.useState)(null);(0,H.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.widget.onState(e=>{t=!0,f(e)});return window.yogurt.widget.state().then(n=>{e&&!t&&f(n)}),()=>{e=!1,n()}},[]);let p={duration:c?.2:0,ease:[.22,1,.36,1]},m=e.startsWith(`/note/`),h=e.startsWith(`/settings/`)?`/settings`:e.startsWith(`/chat/`)?`/chat`:e,g=d?.kind===`recording`&&e!==`/note/${d.meetingId}`;(0,H.useEffect)(()=>{let t=()=>{if(document.querySelector(`[aria-modal="true"]:not([data-testid="chat-panel"]), [role="alertdialog"]`))return;let t=lG(e);t.panel?document.getElementById(`meeting-ask`)?.click():window.yogurt.conversations.current(t.chips,t.fresh).then(e=>r(`/chat/${e}`)).catch(e=>{console.error(`Opening Ask failed`,e),tQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})})},n=e=>{!gq(e)||_q()&&e.ctrlKey||e.altKey||e.shiftKey||e.code!==`KeyJ`||e.defaultPrevented||(e.preventDefault(),!e.repeat&&!e.isComposing&&t())},i=()=>{window.yogurt.nav.takeAsk().then(e=>{e&&t()})},a=window.yogurt.nav.onAsk(i);return i(),window.addEventListener(`keydown`,n),()=>{a(),window.removeEventListener(`keydown`,n)}},[e,r]);let _=[{route:``,label:U(`Meetings`),Icon:zG},{route:`/chat`,label:U(`Ask`),Icon:IG},{route:`/trash`,label:U(`Trash`),Icon:X_},{route:`/settings`,label:U(`Settings`),Icon:BG}],v=e.startsWith(`/folder/`)?n?.find(t=>e===`/folder/${t.id}`):void 0,y=_.find(e=>e.route===h)??(e.startsWith(`/folder/`)?{label:v?.name??U(`Folder`)}:void 0),b=m?t&&e===`/note/${t.id}`?t.title:U(`Meeting`):e.startsWith(`/settings`)?U(`Settings`):y?.label??U(`Meetings`),x=t=>(0,G.jsxs)(`button`,{"data-testid":t.route===``?`nav-home`:t.route===`/chat`?`nav-chat`:t.route===`/settings`?`settings-open`:`nav-trash`,"data-sidebar":`menu-button`,"aria-label":t.label,title:s?t.label:void 0,className:`workspace-nav${t.route===`/trash`?` workspace-trash`:``}`,"aria-current":h===t.route||t.route===``&&e===`/meetings`?`page`:void 0,onClick:()=>r(t.route),children:[(0,G.jsx)(t.Icon,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:t.label})]},t.route);return(0,G.jsxs)(`div`,{className:`workspace ${s?`sidebar-collapsed`:``}`,"data-testid":`workspace`,"data-sidebar-motion":c,children:[(0,G.jsxs)(`div`,{className:`workspace-window-bar`,children:[(0,G.jsx)(`div`,{className:`workspace-drag-region drag`,"data-testid":`titlebar`,"aria-hidden":`true`}),(0,G.jsx)(`button`,{className:`workspace-icon workspace-sidebar-toggle no-drag`,"data-testid":s?`sidebar-expand`:`sidebar-collapse`,onClick:e=>l(e.detail>0),"aria-expanded":!s,"aria-controls":`workspace-sidebar`,"aria-keyshortcuts":_q()?`Control+Meta+S`:`Control+Shift+S`,title:`${U(s?`Expand sidebar`:`Collapse sidebar`)} (${hq(`⌃⌘S`)})`,"aria-label":U(s?`Expand sidebar`:`Collapse sidebar`),children:(0,G.jsx)(RG,{className:`sidebar-toggle-glyph rtl:-scale-x-100`,size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,G.jsx)(Yfe,{className:`workspace-sidebar-gap`,transition:p}),(0,G.jsx)(Xfe,{id:`workspace-sidebar`,className:`workspace-sidebar`,role:`complementary`,"aria-label":U(`Main navigation`),transition:p,children:(0,G.jsxs)(`div`,{className:`workspace-sidebar-inner`,children:[(0,G.jsx)(`div`,{className:`sidebar-titlebar`}),(0,G.jsxs)(`div`,{className:`workspace-sidebar-body`,children:[(0,G.jsxs)(`button`,{className:`workspace-search no-drag`,"data-testid":`search-open`,"aria-label":U(`Search`),title:`${U(`Search`)} (${hq(`⌘K`)})`,onClick:o,children:[(0,G.jsx)(LG,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`Search`)}),(0,G.jsx)(`kbd`,{children:hq(`⌘K`)})]}),(0,G.jsx)(`nav`,{"aria-label":U(`Workspace`),children:_.slice(0,2).map(x)}),(0,G.jsx)(`div`,{className:`workspace-folder-label`,children:U(`Your workspace`)}),(0,G.jsx)(Qfe,{collapsed:s,sidebarMotion:c,folders:n,route:e,go:r})]}),(0,G.jsxs)(`div`,{className:`workspace-sidebar-footer`,children:[(0,G.jsx)(epe,{collapsed:s}),x(_[2]),x(_[3]),(0,G.jsx)(`div`,{className:`workspace-brand`,children:(0,G.jsx)(`span`,{className:`workspace-wordmark`,children:(0,G.jsx)(mY,{height:25})})})]})]})}),(0,G.jsxs)(`div`,{className:`workspace-content`,children:[(0,G.jsxs)(`header`,{className:`workspace-toolbar`,"data-note":m,"data-recording-return":g,children:[(0,G.jsxs)(`div`,{className:`workspace-breadcrumb drag`,children:[(0,G.jsxs)(`span`,{className:`workspace-history`,children:[(0,G.jsx)(`button`,{"data-testid":`nav-back`,className:`workspace-icon no-drag`,disabled:!i&&!m,onClick:i??(()=>r(``)),"aria-label":U(`Back`),title:`${U(`Back`)} (${hq(`⌘[`)})`,children:(0,G.jsx)(wg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{"data-testid":`nav-forward`,className:`workspace-icon no-drag`,disabled:!a,onClick:a,"aria-label":U(`Forward`),title:`${U(`Forward`)} (${hq(`⌘]`)})`,children:(0,G.jsx)(Eg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})})]}),(0,G.jsx)(`span`,{"data-testid":`workspace-heading`,"aria-current":`page`,title:b,children:b})]}),g&&(0,G.jsxs)(`button`,{className:`workspace-recording-link no-drag`,"data-testid":`recording-return`,"data-paused":d.paused,"aria-label":U(`Open {title}`,{title:d.title}),title:U(`Open {title}`,{title:d.title}),onClick:()=>r(`/note/${d.meetingId}`),children:[(0,G.jsx)(hQ,{testId:`recording-return-wave`,height:16,paused:d.paused}),(0,G.jsx)(gQ,{view:d,testId:`recording-return-time`,className:`recording-return-time`})]}),(0,G.jsx)(tpe,{go:r}),(0,G.jsx)(`div`,{id:`workspace-actions`,className:`workspace-toolbar-actions`})]}),u]})]})}var $9=()=>{};document.documentElement.classList.add(`main-window`),document.documentElement.dataset.marketingTheme=M?`light`:`dark`,M&&(document.documentElement.dataset.fragment=M);function rpe(){let[e,t]=(0,H.useState)(0);return(0,H.useEffect)(()=>L(()=>t(e=>e+1)),[]),(0,H.useEffect)(()=>xe(),[e]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`marketing-window`,children:[(0,G.jsx)(npe,{route:`/note/${E.id}`,meeting:E,folders:D,go:$9,search:$9,collapsed:matchMedia(`(max-width:600px)`).matches,sidebarMotion:!1,toggleSidebar:$9,children:(0,G.jsx)(Kfe,{id:E.id,onTitleChange:$9},e)}),(0,G.jsxs)(`div`,{className:`marketing-traffic`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]})]}),(0,G.jsxs)(`svg`,{className:`marketing-cursor`,viewBox:`0 0 30 32`,"aria-hidden":`true`,children:[(0,G.jsx)(`circle`,{className:`cursor-ring`,cx:`4`,cy:`3`,r:`12`}),(0,G.jsx)(`path`,{className:`cursor-pointer`,d:`M4 3 24 13 15.1 15.7 11.3 25Z`,strokeWidth:`1.7`,strokeLinejoin:`round`,strokeLinecap:`round`})]})]})}(0,AY.createRoot)(document.getElementById(`root`)).render(M?(0,G.jsx)(EY,{}):(0,G.jsx)(rpe,{}))})();
\ No newline at end of file
+ reference: ${JSON.stringify(this.reference)}]`}date(){let e=this.get(`timezoneOffset`)??this.reference.timezoneOffset;if(e==null)return this.dateWithoutTimezoneAdjustment();let t=new Date(Date.UTC(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`)));return t.setUTCFullYear(this.get(`year`)),new Date(t.getTime()-e*6e4)}addTag(e){return this._tags.add(e),this}addTags(e){for(let t of e)this._tags.add(t);return this}tags(){return new Set(this._tags)}dateWithoutTimezoneAdjustment(){let e=new Date(this.get(`year`),this.get(`month`)-1,this.get(`day`),this.get(`hour`),this.get(`minute`),this.get(`second`),this.get(`millisecond`));return e.setFullYear(this.get(`year`)),e}},C$=class e{refDate;index;text;reference;start;end;constructor(e,t,n,r,i){this.reference=e,this.refDate=e.instant,this.index=t,this.text=n,this.start=r||new Z(e),this.end=i}clone(){let t=new e(this.reference,this.index,this.text);return t.start=this.start?this.start.clone():null,t.end=this.end?this.end.clone():null,t}date(){return this.start.date()}addTag(e){return this.start.addTag(e),this.end&&this.end.addTag(e),this}addTags(e){return this.start.addTags(e),this.end&&this.end.addTags(e),this}tags(){let e=new Set(this.start.tags());if(this.end)for(let t of this.end.tags())e.add(t);return e}toString(){let e=Array.from(this.tags()).sort();return`[ParsingResult {index: ${this.index}, text: '${this.text}', tags: ${JSON.stringify(e)} ...}]`}};function w$(e,t,n=`\\s{0,5},?\\s{0,5}`){let r=t.replace(/\((?!\?)/g,`(?:`);return`${e}${r}(?:${n}${r}){0,10}`}function T$(e){let t;return t=e instanceof Array?[...e]:e instanceof Map?Array.from(e.keys()):Object.keys(e),t}function Q(e){return`(?:${T$(e).sort((e,t)=>t.length-e.length).join(`|`).replace(/\./g,`\\.`)})`}function E$(e){return e<100&&(e+=e>50?1900:2e3),e}function D$(e,t,n){let r=new Date(e);r.setMonth(n-1),r.setDate(t);let i=b$(r,{year:1}),a=b$(r,{year:-1});return Math.abs(i.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())?r=i:Math.abs(a.getTime()-e.getTime())<Math.abs(r.getTime()-e.getTime())&&(r=a),r.getFullYear()}var O$={sunday:0,sun:0,"sun.":0,monday:1,mon:1,"mon.":1,tuesday:2,tue:2,"tue.":2,wednesday:3,wed:3,"wed.":3,thursday:4,thurs:4,"thurs.":4,thur:4,"thur.":4,thu:4,"thu.":4,friday:5,fri:5,"fri.":5,saturday:6,sat:6,"sat.":6},k$={january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12},A$={...k$,jan:1,"jan.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,jun:6,"jun.":6,jul:7,"jul.":7,aug:8,"aug.":8,sep:9,"sep.":9,sept:9,"sept.":9,oct:10,"oct.":10,nov:11,"nov.":11,dec:12,"dec.":12},j$={one:1,two:2,three:3,four:4,five:5,six:6,seven:7,eight:8,nine:9,ten:10,eleven:11,twelve:12},M$={first:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12,thirteenth:13,fourteenth:14,fifteenth:15,sixteenth:16,seventeenth:17,eighteenth:18,nineteenth:19,twentieth:20,"twenty first":21,"twenty-first":21,"twenty second":22,"twenty-second":22,"twenty third":23,"twenty-third":23,"twenty fourth":24,"twenty-fourth":24,"twenty fifth":25,"twenty-fifth":25,"twenty sixth":26,"twenty-sixth":26,"twenty seventh":27,"twenty-seventh":27,"twenty eighth":28,"twenty-eighth":28,"twenty ninth":29,"twenty-ninth":29,thirtieth:30,"thirty first":31,"thirty-first":31},N$={second:`second`,seconds:`second`,minute:`minute`,minutes:`minute`,hour:`hour`,hours:`hour`,day:`day`,days:`day`,week:`week`,weeks:`week`,month:`month`,months:`month`,quarter:`quarter`,quarters:`quarter`,year:`year`,years:`year`},P$={s:`second`,sec:`second`,second:`second`,seconds:`second`,m:`minute`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hour:`hour`,hours:`hour`,d:`day`,day:`day`,days:`day`,w:`week`,week:`week`,weeks:`week`,mo:`month`,mon:`month`,mos:`month`,month:`month`,months:`month`,qtr:`quarter`,quarter:`quarter`,quarters:`quarter`,y:`year`,yr:`year`,year:`year`,years:`year`,...N$},F$=`(?:${Q(j$)}|[0-9]+|[0-9]+\\.[0-9]+|half(?:\\s{0,2}an?)?|an?\\b(?:\\s{0,2}few)?|few|several|the|a?\\s{0,2}couple\\s{0,2}(?:of)?)`;function I$(e){let t=e.toLowerCase();return j$[t]===void 0?t===`a`||t===`an`||t==`the`?1:t.match(/few/)?3:t.match(/half/)?.5:t.match(/couple/)?2:t.match(/several/)?7:parseFloat(t):j$[t]}var L$=`(?:${Q(M$)}|[0-9]{1,2}(?:st|nd|rd|th)?)`;function R$(e){let t=e.toLowerCase();return M$[t]===void 0?(t=t.replace(/(?:st|nd|rd|th)$/i,``),parseInt(t)):M$[t]}var z$=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}|[0-9]{2}(?!\\w|:\\d|\\s+(?:am|pm|o\\s*clock|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)))`;function B$(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):E$(parseInt(e))}var V$=`(${F$})\\s{0,3}(${Q(P$)})`,H$=new RegExp(V$,`i`),U$=`(${F$})\\s{0,3}(${Q(N$)})`,W$=`\\s{0,5},?(?:\\s*and)?\\s{0,5}`,G$=w$(`(?:(?:about|around)\\s{0,3})?`,V$,W$),K$=w$(`(?:(?:about|around)\\s{0,3})?`,U$,W$);function q$(e){let t={},n=e,r=H$.exec(n);for(;r;)J$(t,r),n=n.substring(r[0].length).trim(),r=H$.exec(n);return Object.keys(t).length==0?null:t}function J$(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=I$(t[1]),r=P$[t[2].toLowerCase()];e[r]=n}var $=class{innerPatternHasChange(e,t){return this.innerPattern(e)!==t}patternLeftBoundary(){return`(\\W|^)`}cachedInnerPattern=null;cachedPattern=null;pattern(e){return this.cachedInnerPattern&&!this.innerPatternHasChange(e,this.cachedInnerPattern)||(this.cachedInnerPattern=this.innerPattern(e),this.cachedPattern=RegExp(`${this.patternLeftBoundary()}${this.cachedInnerPattern.source}`,this.cachedInnerPattern.flags)),this.cachedPattern}extract(e,t){let n=t[1]??``;t.index+=n.length,t[0]=t[0].substring(n.length);for(let e=2;e<t.length;e++)t[e-1]=t[e];return this.innerExtract(e,t)}},Y$=RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${G$})(?=\\W|$)`,`i`),X$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${G$})(?=\\W|$)`,`i`),Z$=RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${K$})(?=\\W|$)`,`i`),Q$=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?Z$:e.option.forwardDate?Y$:X$}innerExtract(e,t){if(t[0].match(/^for\s*the\s*\w+/i))return null;let n=q$(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},$$=RegExp(`(?:on\\s{0,3})?(${L$})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)\\s{0,3}(${L$}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${Q(A$)})(?:(?:-|/|,?\\s{0,3})(${z$}(?!\\w)))?(?=\\W|$)`,`i`),e1=1,t1=2,n1=3,r1=4,i1=class extends ${innerPattern(){return $$}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=A$[t[n1].toLowerCase()],i=R$(t[e1]);if(i>31)return t.index+=t[e1].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[r1]){let e=B$(t[r1]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[t1]){let e=R$(t[t1]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},a1=RegExp(`(${Q(A$)})(?:-|/|\\s*,?\\s*)(${L$})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${L$})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${z$}))?(?=\\W|$)(?!\\:\\d)`,`i`),o1=1,s1=2,c1=3,l1=4,u1=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return a1}innerExtract(e,t){let n=A$[t[o1].toLowerCase()],r=R$(t[s1]);if(r>31||this.shouldSkipYearLikeDate&&!t[c1]&&!t[l1]&&t[s1].match(/^\d{2}$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ENMonthNameMiddleEndianParser`);if(t[l1]){let e=B$(t[l1]);i.assign(`year`,e)}else{let t=D$(e.refDate,r,n);i.imply(`year`,t)}if(!t[c1])return i;let a=R$(t[c1]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},d1=RegExp(`((?:in)\\s*)?(${Q(A$)})\\s*(?:(?:,|-|of)?\\s*(${z$})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),f1=1,p1=2,m1=3,h1=class extends ${innerPattern(){return d1}innerExtract(e,t){let n=t[p1].toLowerCase();if(t[0].length<=3&&!k$[n])return null;let r=e.createParsingResult(t.index+(t[f1]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ENMonthNameParser`);let i=A$[n];if(r.start.assign(`month`,i),t[m1]){let e=B$(t[m1]);r.start.assign(`year`,e)}else{let t=D$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},g1=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(A$)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),_1=1,v1=2,y1=3,b1=4,x1=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return g1}innerExtract(e,t){let n=parseInt(t[_1]),r=parseInt(t[b1]),i=t[y1]?parseInt(t[y1]):A$[t[v1].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},S1=RegExp(`((?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-9][0-9]{3}))(?:\\s*[-.\\/,]?\\s*|\\s+of\\s+)(${Q(A$)})(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),C1=1,w1=2,T1=class extends ${innerPattern(){return S1}innerExtract(e,t){let n=B$(t[C1]),r=A$[t[w1].toLowerCase()],i=e.createParsingResult(t.index,t[0]);return i.start.imply(`day`,1),i.start.assign(`month`,r),i.start.assign(`year`,n),i.start.addTag(`parser/ENYearMonthNameParser`),i}},E1=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),D1=1,O1=2,k1=class extends ${innerPattern(){return E1}innerExtract(e,t){if(/\d\/?$/.test(e.text.substring(0,t.index)))return null;let n=parseInt(t[O1]),r=parseInt(t[D1]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}};function A1(e,t,n,r){return RegExp(`${e}${t}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${n}`,r)}function j1(e,t){return RegExp(`^(${e})(\\d{1,4})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:(?:\\.|\\:|\\:)(\\d{1,2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${t}`,`i`)}var M1=2,N1=3,P1=4,F1=5,I1=6,L1=class{strictMode;constructor(e=!1){this.strictMode=e}patternFlags(){return`i`}primaryPatternLeftBoundary(){return`(^|\\s|T|\\b)`}primarySuffix(){return`(?!/)(?=\\W|$)`}followingSuffix(){return`(?!/)(?=\\W|$)`}pattern(e){return this.getPrimaryTimePatternThroughCache()}extract(e,t){let n=this.extractPrimaryTimeComponents(e,t);if(!n)return t[0].match(/^\d{4}/)?(t.index+=4,null):(t.index+=t[0].length,null);let r=t.index+t[1].length,i=t[0].substring(t[1].length),a=e.createParsingResult(r,i,n);t.index+=t[0].length;let o=e.text.substring(t.index),s=this.getFollowingTimePatternThroughCache().exec(o);return i.match(/^\d{3,4}/)&&s&&(s[0].match(/^\s*([+-])\s*\d{2,4}$/)||s[0].match(/^\s*([+-])\s*\d{2}\W\d{2}/))?null:!s||s[0].match(/^\s*([+-])\s*\d{3,4}$/)?this.checkAndReturnWithoutFollowingPattern(a):(a.end=this.extractFollowingTimeComponents(e,s,a),a.end&&(a.text+=s[0]),this.checkAndReturnWithFollowingPattern(a))}extractPrimaryTimeComponents(e,t,n=!1){let r=e.createParsingComponents(),i=0,a=null,o=parseInt(t[M1]);if(o>100){if(t[M1].length==4&&t[N1]==null&&!t[I1]||this.strictMode||t[N1]!=null)return null;i=o%100,o=Math.floor(o/100)}if(o>24)return null;if(t[N1]!=null){if(t[N1].length==1&&!t[I1])return null;i=parseInt(t[N1])}if(i>=60)return null;if(o>12&&(a=X.PM),t[I1]!=null){if(o>12)return null;let e=t[I1][0].toLowerCase();e==`a`&&(a=X.AM,o==12&&(o=0)),e==`p`&&(a=X.PM,o!=12&&(o+=12))}if(r.assign(`hour`,o),r.assign(`minute`,i),a===null?o<12?r.imply(`meridiem`,X.AM):r.imply(`meridiem`,X.PM):r.assign(`meridiem`,a),t[F1]!=null){let e=parseInt(t[F1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[P1]!=null){let e=parseInt(t[P1]);if(e>=60)return null;r.assign(`second`,e)}return r}extractFollowingTimeComponents(e,t,n){let r=e.createParsingComponents();if(t[F1]!=null){let e=parseInt(t[F1].substring(0,3));if(e>=1e3)return null;r.assign(`millisecond`,e)}if(t[P1]!=null){let e=parseInt(t[P1]);if(e>=60)return null;r.assign(`second`,e)}let i=parseInt(t[M1]),a=0,o=-1;if(t[N1]==null?i>100&&(a=i%100,i=Math.floor(i/100)):a=parseInt(t[N1]),a>=60||i>24)return null;if(i>=12&&(o=X.PM),t[I1]!=null){if(i>12)return null;let e=t[I1][0].toLowerCase();e==`a`&&(o=X.AM,i==12&&(i=0,r.isCertain(`day`)||r.addDurationAsImplied({day:1}))),e==`p`&&(o=X.PM,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==X.AM?(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}return r.assign(`hour`,i),r.assign(`minute`,a),o>=0?r.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`hour`)>12?n.start.get(`hour`)-12>i?r.imply(`meridiem`,X.AM):i<=12&&(r.assign(`hour`,i+12),r.assign(`meridiem`,X.PM)):i>12?r.imply(`meridiem`,X.PM):i<=12&&r.imply(`meridiem`,X.AM),r.date().getTime()<n.start.date().getTime()&&r.addDurationAsImplied({day:1}),r}checkAndReturnWithoutFollowingPattern(e){if(e.text.match(/^\d$/)||e.text.match(/^\d\d\d+$/)||e.text.match(/\d[apAP]$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)$/);if(t){let e=t[1];if(this.strictMode||e.includes(`.`)&&!e.match(/\d(\.\d{2})+$/)||parseInt(e)>24)return null}return e}checkAndReturnWithFollowingPattern(e){if(e.text.match(/^\d+-\d+$/))return null;let t=e.text.match(/[^\d:.](\d[\d.]+)\s*-\s*(\d[\d.]+)$/);if(t){if(this.strictMode)return null;let e=t[1],n=t[2];if(n.includes(`.`)&&!n.match(/\d(\.\d{2})+$/)||parseInt(n)>24||parseInt(e)>24)return null}return e}cachedPrimaryPrefix=null;cachedPrimarySuffix=null;cachedPrimaryTimePattern=null;getPrimaryTimePatternThroughCache(){let e=this.primaryPrefix(),t=this.primarySuffix();return this.cachedPrimaryPrefix===e&&this.cachedPrimarySuffix===t||(this.cachedPrimaryTimePattern=A1(this.primaryPatternLeftBoundary(),e,t,this.patternFlags()),this.cachedPrimaryPrefix=e,this.cachedPrimarySuffix=t),this.cachedPrimaryTimePattern}cachedFollowingPhase=null;cachedFollowingSuffix=null;cachedFollowingTimePatten=null;getFollowingTimePatternThroughCache(){let e=this.followingPhase(),t=this.followingSuffix();return this.cachedFollowingPhase===e&&this.cachedFollowingSuffix===t||(this.cachedFollowingTimePatten=j1(e,t),this.cachedFollowingPhase=e,this.cachedFollowingSuffix=t),this.cachedFollowingTimePatten}},R1=class extends L1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|to|until|through|till|\\?)\\s*`}primaryPrefix(){return`(?:(?:at|from)\\s*)??`}primarySuffix(){return`(?:\\s*(?:o\\W*clock|at\\s*night|in\\s*the\\s*(?:morning|afternoon)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].endsWith(`night`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`afternoon`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].endsWith(`morning`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ENTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ENTimeExpressionParser`),r}},z1=RegExp(`(${G$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),B1=RegExp(`(${K$})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`,`i`),V1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?B1:z1}innerExtract(e,t){let n=q$(t[1]);return n?Z.createRelativeFromReference(e.reference,x$(n)):null}},H1=RegExp(`(${G$})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|$))`,`i`),U1=RegExp(`(${K$})\\s{0,5}(later|after|from now)(?=\\W|$)`,`i`),W1=1,G1=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?U1:H1}innerExtract(e,t){let n=q$(t[W1]);return n?Z.createRelativeFromReference(e.reference,n):null}},K1=class{refine(e,t){return t.filter(t=>this.isValid(e,t))}},q1=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0],i=null;for(let a=1;a<t.length;a++){i=t[a];let o=e.text.substring(r.index+r.text.length,i.index);if(!this.shouldMergeResults(o,r,i,e))n.push(r),r=i;else{let t=r,n=i,a=this.mergeResults(o,t,n,e);e.debug(()=>{console.log(`${this.constructor.name} merged ${t} and ${n} into ${a}`)}),r=a}}return r!=null&&n.push(r),n}},J1=class extends q1{shouldMergeResults(e,t,n){return!t.end&&!n.end&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){if(!t.start.isOnlyWeekdayComponent()&&!n.start.isOnlyWeekdayComponent()&&(n.start.getCertainComponents().forEach(e=>{t.start.isCertain(e)||t.start.imply(e,n.start.get(e))}),t.start.getCertainComponents().forEach(e=>{n.start.isCertain(e)||n.start.imply(e,t.start.get(e))})),t.start.date()>n.start.date()){let e=t.start.date(),r=n.start.date();n.start.isOnlyWeekdayComponent()&&b$(r,{day:7})>e?(r=b$(r,{day:7}),n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear())):t.start.isOnlyWeekdayComponent()&&b$(e,{day:-7})<r?(e=b$(e,{day:-7}),t.start.imply(`day`,e.getDate()),t.start.imply(`month`,e.getMonth()+1),t.start.imply(`year`,e.getFullYear())):n.start.isDateWithUnknownYear()&&b$(r,{year:1})>e?(r=b$(r,{year:1}),n.start.imply(`year`,r.getFullYear())):t.start.isDateWithUnknownYear()&&b$(e,{year:-1})<r?(e=b$(e,{year:-1}),t.start.imply(`year`,e.getFullYear())):[n,t]=[t,n]}let r=t.clone();return r.start=t.start,r.end=n.start,r.index=Math.min(t.index,n.index),r.text=t.index<n.index?t.text+e+n.text:n.text+e+t.text,r}},Y1=class extends J1{patternBetween(){return/^\s*(to|-|–|until|through|till)\s*$/i}};function X1(e,t){let n=e.clone(),r=e.start,i=t.start;if(n.start=Z1(r,i),e.end!=null||t.end!=null){let r=Z1(e.end==null?e.start:e.end,t.end==null?t.start:t.end);if(e.end==null&&r.date().getTime()<n.start.date().getTime()){let e=new Date(r.date().getTime());e.setDate(e.getDate()+1),r.isCertain(`day`)?d$(r,e):p$(r,e)}n.end=r}return n}function Z1(e,t){let n=e.clone();t.isCertain(`hour`)?(n.assign(`hour`,t.get(`hour`)),n.assign(`minute`,t.get(`minute`)),t.isCertain(`second`)?(n.assign(`second`,t.get(`second`)),t.isCertain(`millisecond`)?n.assign(`millisecond`,t.get(`millisecond`)):n.imply(`millisecond`,t.get(`millisecond`))):(n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`)))):(n.imply(`hour`,t.get(`hour`)),n.imply(`minute`,t.get(`minute`)),n.imply(`second`,t.get(`second`)),n.imply(`millisecond`,t.get(`millisecond`))),t.isCertain(`timezoneOffset`)&&n.assign(`timezoneOffset`,t.get(`timezoneOffset`));let r=e.get(`meridiem`)!=null&&(e.isCertain(`meridiem`)||Array.from(e.tags()).some(e=>e.startsWith(`casualReference/`)));return t.isCertain(`meridiem`)?n.assign(`meridiem`,t.get(`meridiem`)):t.get(`meridiem`)!=null&&!r&&n.imply(`meridiem`,t.get(`meridiem`)),n.get(`meridiem`)==X.PM&&n.get(`hour`)<12&&(t.isCertain(`hour`)?n.assign(`hour`,n.get(`hour`)+12):n.imply(`hour`,n.get(`hour`)+12)),n.addTags(e.tags()),n.addTags(t.tags()),n}var Q1=class extends q1{shouldMergeResults(e,t,n){let r=t.start.isOnlyDate()&&n.start.isOnlyTime(),i=t.start.isOnlyTime()&&n.start.isOnlyDate();return i&&e.trim()===`:`?!1:(r||i)&&e.match(this.patternBetween())!=null}mergeResults(e,t,n){let r=t.start.isOnlyDate()?X1(t,n):X1(n,t);return r.index=t.index,r.text=t.text+e+n.text,r}},$1=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$`)}},e0=RegExp(`^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)`,`i`),t0=class{timezoneOverrides;constructor(e){this.timezoneOverrides=e}refine(e,t){let n=e.option.timezones??{};return t.forEach(t=>{let r=e.text.substring(t.index+t.text.length),i=e0.exec(r);if(!i)return;let a=i[1].toUpperCase(),o=v$(a,t.start.date()??t.refDate??new Date,{...this.timezoneOverrides,...n});if(o==null)return;e.debug(()=>{console.log(`Extracting timezone: '${a}' into: ${o} for: ${t.start}`)});let s=t.start.get(`timezoneOffset`);s!==null&&o!=s&&(t.start.isCertain(`timezoneOffset`)||a!=i[1])||t.start.isOnlyDate()&&a!=i[1]||(t.text+=i[0],t.start.isCertain(`timezoneOffset`)||t.start.assign(`timezoneOffset`,o),t.end!=null&&!t.end.isCertain(`timezoneOffset`)&&t.end.assign(`timezoneOffset`,o))}),t}},n0=RegExp(`^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?`,`i`),r0=1,i0=2,a0=3,o0=class{refine(e,t){return t.forEach(function(t){if(t.start.isCertain(`timezoneOffset`))return;let n=e.text.substring(t.index+t.text.length),r=n0.exec(n);if(!r)return;e.debug(()=>{console.log(`Extracting timezone: '${r[0]}' into : ${t}`)});let i=parseInt(r[i0]),a=parseInt(r[a0]||`0`),o=i*60+a;o>840||(r[r0]===`-`&&(o=-o),t.end!=null&&t.end.assign(`timezoneOffset`,o),t.start.assign(`timezoneOffset`,o),t.text+=r[0])}),t}},s0=class{refine(e,t){if(t.length<2)return t;let n=[],r=t[0];for(let i=1;i<t.length;i++){let a=t[i];if(a.index>=r.index+r.text.length){n.push(r),r=a;continue}let o=null,s=null;a.text.length>r.text.length?(o=a,s=r):(o=r,s=a),e.debug(()=>{console.log(`${this.constructor.name} remove ${s} by ${o}`)}),r=o}return r!=null&&n.push(r),n}};function c0(e,t,n){let r=l0(e.getDateWithAdjustedTimezone(),t,n),i=new Z(e);return i=i.addDurationAsImplied({day:r}),i.assign(`weekday`,t),i}function l0(e,t,n){let r=e.getDay();switch(n){case`this`:return d0(e,t);case`last`:return f0(e,t);case`next`:return r==l$.SUNDAY?t==l$.SUNDAY?7:t:r==l$.SATURDAY?t==l$.SATURDAY?7:t==l$.SUNDAY?8:1+t:t<r&&t!=l$.SUNDAY?d0(e,t):d0(e,t)+7}return u0(e,t)}function u0(e,t){let n=f0(e,t),r=d0(e,t);return r<-n?r:n}function d0(e,t){let n=t-e.getDay();return n<0&&(n+=7),n}function f0(e,t){let n=t-e.getDay();return n>=0&&(n-=7),n}var p0=class{refine(e,t){return e.option.forwardDate&&t.forEach(t=>{let n=e.reference.getDateWithAdjustedTimezone();if(t.start.isOnlyTime()&&e.reference.instant>t.start.date()){let n=e.reference.getDateWithAdjustedTimezone(),r=new Date(n);r.setDate(r.getDate()+1),p$(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} time from the ref date (${n}) to the following day (${r})`)}),t.end&&t.end.isOnlyTime()&&(p$(t.end,r),t.start.date()>t.end.date()&&(r.setDate(r.getDate()+1),p$(t.end,r)))}if(t.start.isOnlyWeekdayComponent()&&n>t.start.date()){let r=b$(n,{day:d0(n,t.start.get(`weekday`))||7});if(p$(t.start,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.start})`)}),t.end&&t.start.date()>t.end.date()){let r=b$(n,{day:d0(n,t.start.get(`weekday`))||7});p$(t.end,r),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} weekday (${t.end})`)})}}if(t.start.isDateWithUnknownYear()&&n>t.start.date())for(let r=0;r<3&&n>t.start.date();r++)t.start.imply(`year`,t.start.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} year (${t.start})`)}),t.end&&!t.end.isCertain(`year`)&&(t.end.imply(`year`,t.end.get(`year`)+1),e.debug(()=>{console.log(`${this.constructor.name} adjusted ${t} month (${t.start})`)}))}),t}},m0=class extends K1{strictMode;constructor(e){super(),this.strictMode=e}isValid(e,t){return t.text.replace(` `,``).match(/^\d*(\.\d*)?$/)?(e.debug(()=>{console.log(`Removing unlikely result '${t.text}'`)}),!1):t.start.isValidDate()?t.end&&!t.end.isValidDate()?(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.end})`)}),!1):!this.strictMode||this.isStrictModeValid(e,t):(e.debug(()=>{console.log(`Removing invalid result: ${t} (${t.start})`)}),!1)}isStrictModeValid(e,t){return!t.start.isOnlyWeekdayComponent()||(e.debug(()=>{console.log(`(Strict) Removing weekday only component: ${t} (${t.end})`)}),!1)}},h0=RegExp(`([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)`,`i`),g0=1,_0=2,v0=3,y0=4,b0=5,x0=6,S0=7,C0=8,w0=9,T0=10,E0=class extends ${innerPattern(){return h0}innerExtract(e,t){let n=e.createParsingComponents({year:parseInt(t[g0]),month:parseInt(t[_0]),day:parseInt(t[v0])});if(t[y0]!=null&&(n.assign(`hour`,parseInt(t[y0])),n.assign(`minute`,parseInt(t[b0])),t[x0]!=null&&n.assign(`second`,parseInt(t[x0])),t[S0]!=null&&n.assign(`millisecond`,parseInt(t[S0])),t[C0]!=null)){let e=0;if(t[w0]){let n=parseInt(t[w0]),r=0;t[T0]!=null&&(r=parseInt(t[T0])),e=n*60,e<0?e-=r:e+=r}n.assign(`timezoneOffset`,e)}return n.addTag(`parser/ISOFormatParser`)}},D0=class extends q1{mergeResults(e,t,n){let r=n.clone();return r.index=t.index,r.text=t.text+e+r.text,r.start.assign(`weekday`,t.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,t.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isOnlyWeekdayComponent()&&!t.start.isCertain(`hour`)&&n.start.isCertain(`day`)&&!n.start.tags().has(`result/relativeDate`)&&e.match(/^,?\s*$/)!=null}};function O0(e,t=!1){return e.parsers.unshift(new E0),e.refiners.unshift(new D0),e.refiners.unshift(new o0),e.refiners.unshift(new s0),e.refiners.push(new t0),e.refiners.push(new s0),e.refiners.push(new p0),e.refiners.push(new m0(t)),e}function k0(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return d$(n,t),f$(n,t),n.assign(`timezoneOffset`,e.getTimezoneOffset()),n.addTag(`casualReference/now`),n}function A0(e){let t=e.getDateWithAdjustedTimezone(),n=new Z(e,{});return d$(n,t),m$(n,t),n.delete(`meridiem`),n.addTag(`casualReference/today`),n}function j0(e){return N0(e,1).addTag(`casualReference/yesterday`)}function M0(e){return P0(e,1).addTag(`casualReference/tomorrow`)}function N0(e,t){return P0(e,-t)}function P0(e,t){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{}),i=new Date(n.getTime());return i.setDate(i.getDate()+t),d$(r,i),m$(r,i),r.delete(`meridiem`),r}function F0(e,t=22){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return d$(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/tonight`),r}function I0(e,t=0){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n.getHours()<6&&(n=new Date(n.getTime()-864e5)),d$(r,n),r.imply(`hour`,t),r}function L0(e,t=20){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.addTag(`casualReference/evening`),n}function R0(e,t=20){let n=e.getDateWithAdjustedTimezone(),r=new Z(e,{});return n=new Date(n.getTime()-864e5),d$(r,n),r.imply(`hour`,t),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/yesterday`),r.addTag(`casualReference/evening`),r}function z0(e){let t=new Z(e,{});return e.getDateWithAdjustedTimezone().getHours()>2&&t.addDurationAsImplied({day:1}),t.assign(`hour`,0),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/midnight`),t}function B0(e,t=6){let n=new Z(e,{});return n.imply(`meridiem`,X.AM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/morning`),n}function V0(e,t=15){let n=new Z(e,{});return n.imply(`meridiem`,X.PM),n.imply(`hour`,t),n.imply(`minute`,0),n.imply(`second`,0),n.imply(`millisecond`,0),n.addTag(`casualReference/afternoon`),n}function H0(e){let t=new Z(e,{});return t.imply(`meridiem`,X.AM),t.assign(`hour`,12),t.imply(`minute`,0),t.imply(`second`,0),t.imply(`millisecond`,0),t.addTag(`casualReference/noon`),t}var U0=/(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i,W0=class extends ${innerPattern(e){return U0}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`now`:i=k0(e.reference);break;case`today`:i=A0(e.reference);break;case`yesterday`:i=j0(e.reference);break;case`tomorrow`:case`tmr`:case`tmrw`:i=M0(e.reference);break;case`tonight`:i=F0(e.reference);break;case`overmorrow`:i=P0(e.reference,2);break;default:if(r.match(/last\s*night/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}d$(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ENCasualDateParser`),i}},G0=/(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i,K0=class extends ${innerPattern(){return G0}innerExtract(e,t){let n=null;switch(t[1].toLowerCase()){case`afternoon`:n=V0(e.reference);break;case`evening`:case`night`:n=L0(e.reference);break;case`midnight`:n=z0(e.reference);break;case`morning`:n=B0(e.reference);break;case`noon`:case`midday`:n=H0(e.reference)}return n&&n.addTag(`parser/ENCasualTimeParser`),n}},q0=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${Q(O$)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(?:of\\s*)?(this|last|past|next)\\s*week)?(?=\\W|$)`,`i`),J0=1,Y0=2,X0=3,Z0=class extends ${innerPattern(){return q0}innerExtract(e,t){let n=t[J0],r=t[X0],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`last`||i==`past`?a=`last`:i==`next`?a=`next`:i==`this`&&(a=`this`);let o=t[Y0].toLowerCase(),s;if(O$[o]!==void 0)s=O$[o];else if(o==`weekend`)s=a==`last`?l$.SUNDAY:l$.SATURDAY;else if(o==`weekday`){let t=e.reference.getDateWithAdjustedTimezone().getDay();t==l$.SUNDAY||t==l$.SATURDAY?s=a==`last`?l$.FRIDAY:l$.MONDAY:(s=t-1,s=a==`last`?s-1:s+1,s=s%5+1)}else return null;return c0(e.reference,s,a)}},Q0=RegExp(`(this|last|past|next|after\\s*this)\\s*(${Q(P$)})(?=\\s*)(?=\\W|$)`,`i`),$0=1,e2=2,t2=class extends ${innerPattern(){return Q0}innerExtract(e,t){let n=t[$0].toLowerCase(),r=t[e2].toLowerCase(),i=P$[r];if(n==`next`||n.startsWith(`after`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`last`||n==`past`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/month/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/year/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},n2=RegExp(`([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)`,`i`),r2=1,i2=5,a2=2,o2=3,s2=4,c2=class{groupNumberMonth;groupNumberDay;constructor(e){this.groupNumberMonth=e?o2:a2,this.groupNumberDay=e?a2:o2}pattern(){return n2}extract(e,t){let n=t.index+t[r2].length,r=t.index+t[0].length-t[i2].length;if(n>0&&e.text.substring(0,n).match(`\\d/?$`)||r<e.text.length&&e.text.substring(r).match(`^/?\\d`))return;let i=e.text.substring(n,r);if(i.match(/^\d\.\d$/)||i.match(/^\d\.\d{1,2}\.\d{1,2}\s*$/)||!t[s2]&&i.indexOf(`/`)<0)return;let a=e.createParsingResult(n,i),o=parseInt(t[this.groupNumberMonth]),s=parseInt(t[this.groupNumberDay]);if((o<1||o>12)&&o>12){if(s>=1&&s<=12&&o<=31)[s,o]=[o,s];else return null}if(s<1||s>31)return null;if(a.start.assign(`day`,s),a.start.assign(`month`,o),t[s2]){let e=E$(parseInt(t[s2]));a.start.assign(`year`,e)}else{let t=D$(e.refDate,s,o);a.start.imply(`year`,t)}return a.addTag(`parser/SlashDateFormatParser`)}},l2=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${G$})(?=\\W|$)`,`i`),u2=RegExp(`(this|last|past|next|after|\\+|-)\\s*(${K$})(?=\\W|$)`,`i`),d2=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?l2:u2}innerExtract(e,t){let n=t[1].toLowerCase(),r=q$(t[2]);if(!r)return null;switch(n){case`last`:case`past`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}};function f2(e){return e.text.match(/^[+-]/i)!=null}function p2(e){return e.text.match(/^-/i)!=null}var m2=class extends q1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?f2(n)||p2(n):!1}mergeResults(e,t,n,r){let i=q$(n.text);p2(n)&&(i=x$(i));let a=Z.createRelativeFromReference(S$.fromDate(t.start.date()),i);return new C$(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function h2(e){return e.text.match(/\s+(before|from)$/i)!=null}function g2(e){return e.text.match(/\s+(after|since)$/i)!=null}var _2=class extends q1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!h2(t)&&!g2(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=q$(t.text);h2(t)&&(r=x$(r));let i=Z.createRelativeFromReference(S$.fromDate(n.start.date()),r);return new C$(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},v2=RegExp(`^\\s*(${z$})`,`i`),y2=1,b2=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=v2.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=B$(r[y2]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},x2=class extends K1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase()===`may`&&!e.text.substring(0,t.index).trim().match(/\b(in)$/i)?(e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!n.toLowerCase().endsWith(`the second`)||(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1)}},S2=/\b(?:last\s+day|end)\s+of\s+(?:the\s+)?$/i,C2=/^(this|last|past|next)\s*(week|month|year)$/i,w2=/^\s+(this|last|past|next)\s+year(?=\W|$)/i;function T2(e){return e===`next`?1:e===`last`||e===`past`?-1:0}var E2=class{refine(e,t){return t.forEach(t=>{let n=e.text.substring(0,t.index).match(S2);if(!n)return;let r=t.text.match(C2);if(r){let n=r[1].toLowerCase();this.moveToEndOfRelativePeriod(e,t,n,r[2].toLowerCase())}else if(t.start.isCertain(`month`)&&!t.start.isCertain(`day`))this.moveToEndOfMonth(e,t);else return;t.start.imply(`hour`,12),t.start.imply(`minute`,0),t.start.imply(`second`,0),t.start.imply(`millisecond`,0),t.start.isCertain(`timezoneOffset`)||t.start.delete(`timezoneOffset`),t.index-=n[0].length,t.text=n[0]+t.text,t.addTag(`refiner/ENEndOfPeriodRefiner`)}),t}moveToEndOfRelativePeriod(e,t,n,r){let i=T2(n),a=e.reference.getDateWithAdjustedTimezone(),o;r===`week`?(o=new Date(a.getTime()),o.setDate(a.getDate()+(6-a.getDay())+i*7)):o=r===`month`?new Date(a.getFullYear(),a.getMonth()+i+1,0):new Date(a.getFullYear()+i,11,31),t.start.assign(`day`,o.getDate()),t.start.assign(`month`,o.getMonth()+1),t.start.assign(`year`,o.getFullYear()),t.start.delete(`weekday`),t.start.imply(`weekday`,o.getDay())}moveToEndOfMonth(e,t){let n=t.start.get(`year`),r=t.start.get(`month`),i=e.text.substring(t.index+t.text.length).match(w2);if(i){let r=i[1].toLowerCase();n=e.reference.getDateWithAdjustedTimezone().getFullYear()+T2(r),t.start.assign(`year`,n),t.text+=i[0]}if(!t.start.isCertain(`year`)){let i=new Date(n,r,0).getDate();n=D$(e.reference.getDateWithAdjustedTimezone(),i,r),t.start.imply(`year`,n)}t.start.assign(`day`,new Date(n,r,0).getDate())}},D2=/(?:last\s+day|end)\s+of\s+(?:the\s+)?month(?=\W|$)/i,O2=class extends ${innerPattern(){return D2}innerExtract(e){let t=e.reference.getDateWithAdjustedTimezone(),n=t.getFullYear(),r=t.getMonth()+1,i=new Date(n,r,0).getDate(),a=e.createParsingComponents();return a.assign(`day`,i),a.assign(`month`,r),a.assign(`year`,n),a.addTag(`parser/ENEndOfCurrentMonthParser`),a}},k2=class{createCasualConfiguration(e=!1){let t=this.createConfiguration(!1,e);return t.parsers.push(new W0),t.parsers.push(new K0),t.parsers.push(new O2),t.parsers.push(new h1),t.parsers.push(new t2),t.parsers.push(new d2),t.refiners.unshift(new E2),t.refiners.push(new x2),t}createConfiguration(e=!0,t=!1){let n=O0({parsers:[new c2(t),new Q$(e),new i1,new u1(t),new Z0,new k1,new R1(e),new V1(e),new G1(e),new T1],refiners:[new $1]},e);return n.parsers.unshift(new x1(e)),n.refiners.unshift(new _2),n.refiners.unshift(new m2),n.refiners.unshift(new s0),n.refiners.push(new $1),n.refiners.push(new b2),n.refiners.push(new Y1),n}},A2=class e{parsers;refiners;defaultConfig=new k2;constructor(e){e||=this.defaultConfig.createCasualConfiguration(),this.parsers=[...e.parsers],this.refiners=[...e.refiners]}clone(){return new e({parsers:[...this.parsers],refiners:[...this.refiners]})}parseDate(e,t,n){let r=this.parse(e,t,n);return r.length>0?r[0].start.date():null}parse(t,n,r){let i=new j2(t,n,r),a=[];return this.parsers.forEach(t=>{let n=e.executeParser(i,t);a=a.concat(n)}),a.sort((e,t)=>e.index-t.index),this.refiners.forEach(function(e){a=e.refine(i,a)}),a}static executeParser(e,t){let n=[],r=t.pattern(e),i=e.text,a=e.text,o=r.exec(a);for(;o;){let s=o.index+i.length-a.length;o.index=s;let c=t.extract(e,o);if(!c){a=i.substring(o.index+1),o=r.exec(a);continue}let l=null;c instanceof C$?l=c:c instanceof Z?(l=e.createParsingResult(o.index,o[0]),l.start=c):l=e.createParsingResult(o.index,o[0],c);let u=l.index,d=l.text;e.debug(()=>console.log(`${t.constructor.name} extracted (at index=${u}) '${d}'`)),n.push(l),a=i.substring(u+d.length),o=r.exec(a)}return n}},j2=class{text;option;reference;refDate;constructor(e,t,n){this.text=e,this.option=n??{},this.reference=S$.fromInput(t,this.option.timezones),this.refDate=this.reference.instant}createParsingComponents(e){return e instanceof Z?e:new Z(this.reference,e)}createParsingResult(e,t,n,r){let i=typeof t==`string`?t:this.text.substring(e,t),a=n?this.createParsingComponents(n):null,o=r?this.createParsingComponents(r):null;return new C$(this.reference,e,i,a,o)}debug(e){this.option.debug&&(this.option.debug instanceof Function?this.option.debug(e):this.option.debug.debug(e))}},M2=new k2,N2=new A2(M2.createCasualConfiguration(!1));new A2(M2.createConfiguration(!0,!1));var P2=new A2(M2.createCasualConfiguration(!0)),F2=class extends L1{primaryPrefix(){return`(?:(?:um|von)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|bis)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},I2={sonntag:0,so:0,montag:1,mo:1,dienstag:2,di:2,mittwoch:3,mi:3,donnerstag:4,do:4,freitag:5,fr:5,samstag:6,sa:6},L2={januar:1,jänner:1,janner:1,jan:1,"jan.":1,februar:2,feber:2,feb:2,"feb.":2,märz:3,maerz:3,mär:3,"mär.":3,mrz:3,"mrz.":3,april:4,apr:4,"apr.":4,mai:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,august:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,dezember:12,dez:12,"dez.":12},R2={eins:1,eine:1,einem:1,einen:1,einer:1,zwei:2,drei:3,vier:4,fünf:5,fuenf:5,sechs:6,sieben:7,acht:8,neun:9,zehn:10,elf:11,zwölf:12,zwoelf:12},z2={sek:`second`,sekunde:`second`,sekunden:`second`,min:`minute`,minute:`minute`,minuten:`minute`,h:`hour`,std:`hour`,stunde:`hour`,stunden:`hour`,tag:`day`,tage:`day`,tagen:`day`,woche:`week`,wochen:`week`,monat:`month`,monate:`month`,monaten:`month`,monats:`month`,quartal:`quarter`,quartals:`quarter`,quartale:`quarter`,quartalen:`quarter`,a:`year`,j:`year`,jr:`year`,jahr:`year`,jahre:`year`,jahren:`year`,jahres:`year`},B2=`(?:${Q(R2)}|[0-9]+|[0-9]+\\.[0-9]+|halb?|halbe?|einigen?|wenigen?|mehreren?)`;function V2(e){let t=e.toLowerCase();return R2[t]===void 0?t===`ein`||t===`einer`||t===`einem`||t===`einen`||t===`eine`?1:t.match(/wenigen/)?2:t.match(/halb/)||t.match(/halben/)?.5:t.match(/einigen/)?3:t.match(/mehreren/)?7:parseFloat(t):R2[t]}var H2=`(?:[0-9]{1,4}(?:\\s*[vn]\\.?\\s*(?:C(?:hr)?|(?:u\\.?|d\\.?(?:\\s*g\\.?)?)?\\s*Z)\\.?|\\s*(?:u\\.?|d\\.?(?:\\s*g\\.)?)\\s*Z\\.?)?)`;function U2(e){return/v/i.test(e)?-parseInt(e.replace(/[^0-9]+/gi,``)):/n/i.test(e)||/z/i.test(e)?parseInt(e.replace(/[^0-9]+/gi,``)):E$(parseInt(e))}var W2=`(${B2})\\s{0,5}(${Q(z2)})\\s{0,5}`,G2=new RegExp(W2,`i`),K2=w$(``,W2);function q2(e){let t={},n=e,r=G2.exec(n);for(;r;)J2(t,r),n=n.substring(r[0].length),r=G2.exec(n);return t}function J2(e,t){let n=V2(t[1]),r=z2[t[2].toLowerCase()];e[r]=n}var Y2=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:a[mn]\\s*?)?(?:(diese[mn]|letzte[mn]|n(?:ä|ae)chste[mn])\\s*)?(${Q(I2)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(diese|letzte|n(?:ä|ae)chste)\\s*woche)?(?=\\W|$)`,`i`),X2=1,Z2=3,Q2=2,$2=class extends ${innerPattern(){return Y2}innerExtract(e,t){let n=I2[t[Q2].toLowerCase()],r=t[X2],i=t[Z2],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/letzte/)?o=`last`:a.match(/chste/)?o=`next`:a.match(/diese/)&&(o=`this`),c0(e.reference,n,o)}},e4=RegExp(`(^|\\s|T)(?:(?:um|von)\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),t4=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|bis(?:\\s+um)?|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s)?)?(?:\\s*Uhr)?(?:\\s*(morgens|vormittags|nachmittags|abends|nachts|am\\s+(?:Morgen|Vormittag|Nachmittag|Abend)|in\\s+der\\s+Nacht))?(?=\\W|$)`,`i`),n4=2,r4=3,i4=4,a4=5,o4=class e{pattern(e){return e4}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=t4.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[n4]),t[r4]!=null&&(r=parseInt(t[r4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[a4]!=null){if(n>12)return null;let e=t[a4].toLowerCase();e.match(/morgen|vormittag/)&&(i=X.AM,n==12&&(n=0)),e.match(/nachmittag|abend/)&&(i=X.PM,n!=12&&(n+=12)),e.match(/nacht/)&&(n==12?(i=X.AM,n=0):n<6?i=X.AM:(i=X.PM,n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[i4]!=null){let n=parseInt(t[i4]);if(n>=60)return null;e.assign(`second`,n)}return e}},s4=class extends J1{patternBetween(){return/^\s*(bis(?:\s*(?:am|zum))?|-)\s*$/i}},c4=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|um|am|,|-)?\\s*$`)}},l4=class e extends ${innerPattern(e){return/(diesen)?\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return m$(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`morgen`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`vormittag`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`mittag`:case`mittags`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`nachmittag`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`abend`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`nacht`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`mitternacht`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},u4=RegExp(`(jetzt|heute|morgen|übermorgen|uebermorgen|gestern|vorgestern|letzte\\s*nacht)(?:\\s*(morgen|vormittag|mittags?|nachmittag|abend|nacht|mitternacht))?(?=\\W|$)`,`i`),d4=1,f4=2,p4=class extends ${innerPattern(e){return u4}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[d4]||``).toLowerCase(),i=(t[f4]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`jetzt`:a=k0(e.reference);break;case`heute`:a=A0(e.reference);break;case`morgen`:n=b$(n,{day:1}),d$(a,n),m$(a,n);break;case`übermorgen`:case`uebermorgen`:n=b$(n,{day:2}),d$(a,n),m$(a,n);break;case`gestern`:n=b$(n,{day:-1}),d$(a,n),m$(a,n);break;case`vorgestern`:n=b$(n,{day:-2}),d$(a,n),m$(a,n);break;default:r.match(/letzte\s*nacht/)&&(n.getHours()>6&&(n=b$(n,{day:-1})),d$(a,n),a.imply(`hour`,0))}return i&&(a=l4.extractTimeComponents(a,i)),a}},m4=RegExp(`(?:am\\s*?)?(?:den\\s*?)?([0-9]{1,2})\\.(?:\\s*(?:bis(?:\\s*(?:am|zum))?|\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(L2)})(?:(?:-|/|,?\\s*)(${H2}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),h4=1,g4=2,_4=3,v4=4,y4=class extends ${innerPattern(){return m4}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=L2[t[_4].toLowerCase()],i=parseInt(t[h4]);if(i>31)return t.index+=t[h4].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[v4]){let e=U2(t[v4]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[g4]){let e=parseInt(t[g4]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},b4=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:\\s*((?:nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?|vor|in)\\s*)?(${B2})?(?:\\s*(nächste|kommende|folgende|letzte|vergangene|vorige|vor(?:her|an)gegangene)(?:s|n|m|r)?)?\\s*(${Q(z2)})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[2]?V2(t[2]):1,r=z2[t[4].toLowerCase()],i={};i[r]=n;let a=t[1]||t[3]||``;if(a=a.toLowerCase(),a)return(/vor/.test(a)||/letzte/.test(a)||/vergangen/.test(a))&&(i=x$(i)),Z.createRelativeFromReference(e.reference,i)}},x4=class extends ${innerPattern(){return RegExp(`(?:in|für|während)\\s*(${K2})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=q2(t[1]);return Z.createRelativeFromReference(e.reference,n)}},S4=new A2(C4());new A2(w4(!0));function C4(e=!0){let t=w4(!1,e);return t.parsers.unshift(new l4),t.parsers.unshift(new p4),t.parsers.unshift(new b4),t}function w4(e=!0,t=!0){return O0({parsers:[new E0,new c2(t),new F2,new o4,new y4,new $2,new x4],refiners:[new s4,new c4]},e)}var T4=class extends ${innerPattern(e){return/(maintenant|aujourd'hui|demain|hier|cette\s*nuit|la\s*veille)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`maintenant`:return k0(e.reference);case`aujourd'hui`:return A0(e.reference);case`hier`:return j0(e.reference);case`demain`:return M0(e.reference);default:if(r.match(/cette\s*nuit/))d$(i,n),i.imply(`hour`,22),i.imply(`meridiem`,X.PM);else if(r.match(/la\s*veille/)){let e=new Date(n.getTime());e.setDate(e.getDate()-1),d$(i,e),i.imply(`hour`,0)}}return i}},E4=class extends ${innerPattern(e){return/(cet?)?\s*(matin|soir|après-midi|aprem|a midi|à minuit)(?=\W|$)/i}innerExtract(e,t){let n=t[2].toLowerCase(),r=e.createParsingComponents();switch(n){case`après-midi`:case`aprem`:r.imply(`hour`,14),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/afternoon`);break;case`soir`:r.imply(`hour`,18),r.imply(`minute`,0),r.imply(`meridiem`,X.PM),r.addTag(`casualReference/evening`);break;case`matin`:r.imply(`hour`,8),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/morning`);break;case`a midi`:r.imply(`hour`,12),r.imply(`minute`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/noon`);break;case`à minuit`:r.imply(`hour`,0),r.imply(`meridiem`,X.AM),r.addTag(`casualReference/midnight`)}return r}},D4=class extends L1{primaryPrefix(){return`(?:(?:[àa])\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},O4=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|à|a|au|vers|de|,|-)?\\s*$`)}},k4=class extends J1{patternBetween(){return/^\s*(à|a|au|-)\s*$/i}},A4={dimanche:0,dim:0,lundi:1,lun:1,mardi:2,mar:2,mercredi:3,mer:3,jeudi:4,jeu:4,vendredi:5,ven:5,samedi:6,sam:6},j4={janvier:1,jan:1,"jan.":1,janv:1,"janv.":1,février:2,fév:2,"fév.":2,févr:2,"févr.":2,fevrier:2,fev:2,"fev.":2,fevr:2,"fevr.":2,mars:3,mar:3,"mar.":3,avril:4,avr:4,"avr.":4,mai:5,juin:6,"juin.":6,jun:6,"jun.":6,juillet:7,juil:7,"juil.":7,jul:7,"jul.":7,août:8,"août.":8,aout:8,"aout.":8,septembre:9,sep:9,"sep.":9,sept:9,"sept.":9,octobre:10,oct:10,"oct.":10,novembre:11,nov:11,"nov.":11,décembre:12,decembre:12,dec:12,"dec.":12,déc:12,"déc.":12},M4={un:1,deux:2,trois:3,quatre:4,cinq:5,six:6,sept:7,huit:8,neuf:9,dix:10,onze:11,douze:12,treize:13},N4={sec:`second`,seconde:`second`,secondes:`second`,min:`minute`,mins:`minute`,minute:`minute`,minutes:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,heure:`hour`,heures:`hour`,jour:`day`,jours:`day`,semaine:`week`,semaines:`week`,mois:`month`,trimestre:`quarter`,trimestres:`quarter`,ans:`year`,année:`year`,années:`year`},P4=`(?:${Q(M4)}|[0-9]+|[0-9]+\\.[0-9]+|une?\\b|quelques?|demi-?)`;function F4(e){let t=e.toLowerCase();return M4[t]===void 0?t===`une`||t===`un`?1:t.match(/quelques?/)?3:t.match(/demi-?/)?.5:parseFloat(t):M4[t]}var I4=`(?:[0-9]{1,2}(?:er)?)`;function L4(e){let t=e.toLowerCase();return t=t.replace(/(?:er)$/i,``),parseInt(t)}var R4=`(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])`;function z4(e){if(/AC/i.test(e))return e=e.replace(/BC/i,``),-parseInt(e);if(/AD/i.test(e)||/C/i.test(e))return e=e.replace(/[^\d]+/i,``),parseInt(e);let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}var B4=`(${P4})\\s{0,5}(${Q(N4)})\\s{0,5}`,V4=new RegExp(B4,`i`),H4=w$(``,B4);function U4(e){let t={},n=e,r=V4.exec(n);for(;r;)W4(t,r),n=n.substring(r[0].length),r=V4.exec(n);return t}function W4(e,t){let n=F4(t[1]),r=N4[t[2].toLowerCase()];e[r]=n}var G4=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(?:ce)\\s*)?(${Q(A4)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)`,`i`),K4=1,q4=2,J4=class extends ${innerPattern(){return G4}innerExtract(e,t){let n=A4[t[K4].toLowerCase()];if(n===void 0)return null;let r=t[q4];r||=``,r=r.toLowerCase();let i=null;return r==`dernier`?i=`last`:r==`prochain`&&(i=`next`),c0(e.reference,n,i)}},Y4=RegExp(`(^|\\s|T)(?:(?:[àa])\\s*)?(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),X4=RegExp(`^\\s*(\\-|\\–|\\~|\\〜|[àa]|\\?)\\s*(\\d{1,2})(?:h|:)?(?:(\\d{1,2})(?:m|:)?)?(?:(\\d{1,2})(?:s|:)?)?(?:\\s*(A\\.M\\.|P\\.M\\.|AM?|PM?))?(?=\\W|$)`,`i`),Z4=2,Q4=3,$4=4,e3=5,t3=class e{pattern(e){return Y4}extract(t,n){let r=t.createParsingResult(n.index+n[1].length,n[0].substring(n[1].length));if(r.text.match(/^\d{4}$/)||(r.start=e.extractTimeComponent(r.start.clone(),n),!r.start))return n.index+=n[0].length,null;let i=t.text.substring(n.index+n[0].length),a=X4.exec(i);return a&&(r.end=e.extractTimeComponent(r.start.clone(),a),r.end&&(r.text+=a[0])),r}static extractTimeComponent(e,t){let n=0,r=0,i=null;if(n=parseInt(t[Z4]),t[Q4]!=null&&(r=parseInt(t[Q4])),r>=60||n>24)return null;if(n>=12&&(i=X.PM),t[e3]!=null){if(n>12)return null;let e=t[e3][0].toLowerCase();e==`a`&&(i=X.AM,n==12&&(n=0)),e==`p`&&(i=X.PM,n!=12&&(n+=12))}if(e.assign(`hour`,n),e.assign(`minute`,r),i===null?n<12?e.imply(`meridiem`,X.AM):e.imply(`meridiem`,X.PM):e.assign(`meridiem`,i),t[$4]!=null){let n=parseInt(t[$4]);if(n>=60)return null;e.assign(`second`,n)}return e}},n3=RegExp(`(?:on\\s*?)?(${I4})(?:\\s*(?:au|\\-|\\–|jusqu'au?|\\s)\\s*(${I4}))?(?:-|/|\\s*(?:de)?\\s*)(${Q(j4)})(?:(?:-|/|,?\\s*)(${R4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),r3=1,i3=2,a3=3,o3=4,s3=class extends ${innerPattern(){return n3}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=j4[t[a3].toLowerCase()],i=L4(t[r3]);if(i>31)return t.index+=t[r3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[o3]){let e=z4(t[o3]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[i3]){let e=L4(t[i3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},c3=class extends ${constructor(){super()}innerPattern(){return RegExp(`il y a\\s*(${H4})(?=(?:\\W|$))`,`i`)}innerExtract(e,t){let n=x$(U4(t[1]));return Z.createRelativeFromReference(e.reference,n)}},l3=class extends ${innerPattern(){return RegExp(`(?:dans|en|pour|pendant|de)\\s*(${H4})(?=\\W|$)`,`i`)}innerExtract(e,t){let n=U4(t[1]);return Z.createRelativeFromReference(e.reference,n)}},u3=class extends ${constructor(){super()}innerPattern(){return RegExp(`(?:les?|la|l'|du|des?)\\s*(${P4})?(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?\\s*(${Q(N4)})(?:\\s*(prochaine?s?|derni[eè]re?s?|pass[ée]e?s?|pr[ée]c[ée]dents?|suivante?s?))?(?=\\W|$)`,`i`)}innerExtract(e,t){let n=t[1]?F4(t[1]):1,r=N4[t[3].toLowerCase()],i={};i[r]=n;let a=t[2]||t[4]||``;if(a=a.toLowerCase(),a)return(/derni[eè]re?s?/.test(a)||/pass[ée]e?s?/.test(a)||/pr[ée]c[ée]dents?/.test(a))&&(i=x$(i)),Z.createRelativeFromReference(e.reference,i)}},d3=new A2(f3());new A2(p3(!0));function f3(e=!0){let t=p3(!1,e);return t.parsers.unshift(new T4),t.parsers.unshift(new E4),t.parsers.unshift(new u3),t}function p3(e=!0,t=!0){return O0({parsers:[new c2(t),new s3,new D4,new t3,new c3,new l3,new J4],refiners:[new O4,new k4]},e)}var m3={零:0,〇:0,一:1,二:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},h3={日:0,月:1,火:2,水:3,木:4,金:5,土:6};function g3(e){return String(e).replace(/\u2019/g,`'`).replace(/\u201D/g,`"`).replace(/\u3000/g,` `).replace(/\uFFE5/g,`¥`).replace(/[\uFF01\uFF03-\uFF06\uFF08\uFF09\uFF0C-\uFF19\uFF1C-\uFF1F\uFF21-\uFF3B\uFF3D\uFF3F\uFF41-\uFF5B\uFF5D\uFF5E]/g,_3)}function _3(e){return String.fromCharCode(e.charCodeAt(0)-65248)}function v3(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?m3[r]:t*m3[r]:t+=m3[r]}return t}var y3=/(?:(?:([同今本])|((昭和|平成|令和)?([0-90-9]{1,4}|元)))年\s*)?([0-90-9]{1,2})月\s*([0-90-9]{1,2})日/i,b3=1,x3=2,S3=3,C3=4,w3=5,T3=6,E3=class{pattern(){return y3}extract(e,t){let n=parseInt(g3(t[w3])),r=parseInt(g3(t[T3])),i=e.createParsingComponents({day:r,month:n});if(t[b3]&&t[b3].match(`同|今|本`)&&i.assign(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),t[x3]){let e=t[C3],n=e==`元`?1:parseInt(g3(e));t[S3]==`令和`?n+=2018:t[S3]==`平成`?n+=1988:t[S3]==`昭和`&&(n+=1925),i.assign(`year`,n)}else{let t=D$(e.refDate,r,n);i.imply(`year`,t)}return i}},D3=class extends J1{patternBetween(){return/^\s*(から|-|ー|-|~|~)\s*$/i}},O3=/今日|きょう|本日|ほんじつ|昨日|きのう|明日|あした|今夜|こんや|今夕|こんゆう|今晩|こんばん|今朝|けさ/i;function k3(e){switch(e){case`きょう`:return`今日`;case`ほんじつ`:return`本日`;case`きのう`:return`昨日`;case`あした`:return`明日`;case`こんや`:return`今夜`;case`こんゆう`:return`今夕`;case`こんばん`:return`今晩`;case`けさ`:return`今朝`;default:return e}}var Tae=class{pattern(){return O3}extract(e,t){let n=k3(t[0]),r=e.createParsingComponents();switch(n){case`昨日`:return j0(e.reference);case`明日`:return M0(e.reference);case`本日`:case`今日`:return A0(e.reference)}n==`今夜`||n==`今夕`||n==`今晩`?(r.imply(`hour`,22),r.assign(`meridiem`,X.PM)):n.match(`今朝`)&&(r.imply(`hour`,6),r.assign(`meridiem`,X.AM));let i=e.refDate;return r.assign(`day`,i.getDate()),r.assign(`month`,i.getMonth()+1),r.assign(`year`,i.getFullYear()),r}},Eae=RegExp(`((?<prefix>前の|次の|今週))?(?<weekday>`+Object.keys(h3).join(`|`)+`)(?:曜日|曜)`,`i`),Dae=class{pattern(){return Eae}extract(e,t){let n=h3[t.groups.weekday];if(n===void 0)return null;let r=t.groups.prefix||``,i=null;return r.match(/前の/)?i=`last`:r.match(/次の/)?i=`next`:r.match(/今週/)&&(i=`this`),c0(e.reference,n,i)}},Oae=RegExp(`([0-90-9]{4}[\\/|\\/])?([0-10-1]{0,1}[0-90-9]{1})(?:[\\/|\\/]([0-30-3]{0,1}[0-90-9]{1}))`,`i`),A3=1,kae=2,Aae=3,jae=class{pattern(){return Oae}extract(e,t){let n=e.createParsingComponents(),r=parseInt(g3(t[kae])),i=parseInt(g3(t[Aae]));if(r<1||r>12||i<1||i>31)return null;if(n.assign(`day`,i),n.assign(`month`,r),t[A3]){let e=E$(parseInt(g3(t[A3])));n.assign(`year`,e)}else{let t=D$(e.reference.instant,i,r);n.imply(`year`,t)}return n}},Mae=RegExp(`(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(m3).join(``)+`]+)(?:\\s*)(?:時(?!間)|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(m3).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(m3).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),Nae=RegExp(`(?:^\\s*(?:から|\\-|\\–|\\-|\\~|\\〜)\\s*)(?:(午前|午後|A.M.|P.M.|AM|PM))?(?:[\\s,,、]*)(?:([0-90-9]+|[`+Object.keys(m3).join(``)+`]+)(?:\\s*)(?:時|:|:)(?:\\s*)([0-90-9]+|半|[`+Object.keys(m3).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)([0-90-9]+|[`+Object.keys(m3).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),j3=1,M3=2,N3=3,P3=4,F3=5,Pae=class extends ${innerPattern(){return Mae}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]);return n.start=I3(e,t[M3],t[N3],t[P3],t[j3]??t[F3]),n.start?(t=Nae.exec(e.text.substring(n.index+n.text.length)),t?(n.text+=t[0],n.end=I3(e,t[M3],t[N3],t[P3],t[j3]??t[F3]),n.end?(!n.end.isCertain(`meridiem`)&&n.start.isCertain(`meridiem`)&&(n.end.imply(`meridiem`,n.start.get(`meridiem`)),n.start.get(`meridiem`)===X.PM&&(n.start.get(`hour`)-12>n.end.get(`hour`)?n.end.imply(`meridiem`,X.AM):n.end.get(`hour`)<12&&n.end.assign(`hour`,n.end.get(`hour`)+12))),n.end.date().getTime()<n.start.date().getTime()&&n.end.addDurationAsImplied({day:1}),n):null):n):(t.index+=t[0].length,null)}};function I3(e,t,n,r,i){let a=0,o=-1,s=e.createParsingComponents();if(a=parseInt(g3(t)),isNaN(a)&&(a=v3(t)),a>24)return null;if(n){let e;if(n===`半`?e=30:(e=parseInt(g3(n)),isNaN(e)&&(e=v3(n))),e>=60)return null;s.assign(`minute`,e)}if(r){let e=parseInt(g3(r));if(isNaN(e)&&(e=v3(r)),e>=60)return null;s.assign(`second`,e)}if(i){if(a>12)return null;let e=i;e===`午前`||e[0].toLowerCase()===`a`?(o=X.AM,a===12&&(a=0)):(e===`午後`||e[0].toLowerCase()===`p`)&&(o=X.PM,a!=12&&(a+=12))}return s.assign(`hour`,a),o>=0?s.assign(`meridiem`,o):a<12?s.imply(`meridiem`,X.AM):s.imply(`meridiem`,X.PM),s}var Fae=class extends Q1{patternBetween(){return/^\s*(の)?\s*$/i}},Iae=class extends q1{mergeResults(e,t,n){let r=t.clone();return r.text=t.text+e+n.text,r.start.assign(`weekday`,n.start.get(`weekday`)),r.end&&r.end.assign(`weekday`,n.start.get(`weekday`)),r}shouldMergeResults(e,t,n){return t.start.isCertain(`day`)&&n.start.isOnlyWeekdayComponent()&&!n.start.isCertain(`hour`)&&e.match(/^[,、の]?\s*$/)!==null}},Lae=RegExp(`(?:\\(|\\()(?<weekday>`+Object.keys(h3).join(`|`)+`)(?:\\)|\\))`,`i`),Rae=class{pattern(){return Lae}extract(e,t){let n=h3[t.groups.weekday];return n===void 0?null:c0(e.reference,n)}},zae=new A2(Bae());new A2(L3(!0));function Bae(){let e=L3(!1);return e.parsers.unshift(new Tae),e}function L3(e=!0){let t=O0({parsers:[new E3,new Dae,new Rae,new jae,new Pae],refiners:[new Iae,new Fae,new D3]},e);return t.refiners=t.refiners.filter(e=>!(e instanceof D0)),t}var R3={domingo:0,dom:0,segunda:1,"segunda-feira":1,seg:1,terça:2,"terça-feira":2,ter:2,quarta:3,"quarta-feira":3,qua:3,quinta:4,"quinta-feira":4,qui:4,sexta:5,"sexta-feira":5,sex:5,sábado:6,sabado:6,sab:6},z3={janeiro:1,jan:1,"jan.":1,fevereiro:2,fev:2,"fev.":2,março:3,mar:3,"mar.":3,abril:4,abr:4,"abr.":4,maio:5,mai:5,"mai.":5,junho:6,jun:6,"jun.":6,julho:7,jul:7,"jul.":7,agosto:8,ago:8,"ago.":8,setembro:9,set:9,"set.":9,outubro:10,out:10,"out.":10,novembro:11,nov:11,"nov.":11,dezembro:12,dez:12,"dez.":12},Vae=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function Hae(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var Uae=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|passado|pr[oó]ximo)\\s*)?(${Q(R3)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|passado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),Wae=1,Gae=2,Kae=3,qae=class extends ${innerPattern(){return Uae}innerExtract(e,t){let n=R3[t[Gae].toLowerCase()];if(n===void 0)return null;let r=t[Wae],i=t[Kae],a=r||i||``;a=a.toLowerCase();let o=null;return a==`passado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),c0(e.reference,n,o)}},Jae=class extends L1{primaryPrefix(){return`(?:(?:ao?|às?|das|da|de|do)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:o)?|\\?)\\s*`}},Yae=class extends Q1{patternBetween(){return RegExp(`^\\s*(?:,|à)?\\s*$`)}},Xae=class extends J1{patternBetween(){return/^\s*(?:-)\s*$/i}},Zae=RegExp(`([0-9]{1,2})(?:º|ª|°)?(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(z3)})(?:\\s*(?:de|,)?\\s*(${Vae}))?(?=\\W|$)`,`i`),B3=1,V3=2,Qae=3,H3=4,$ae=class extends ${innerPattern(){return Zae}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=z3[t[Qae].toLowerCase()],i=parseInt(t[B3]);if(i>31)return t.index+=t[B3].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[H3]){let e=Hae(t[H3]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[V3]){let e=parseInt(t[V3]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},eoe=class extends ${innerPattern(e){return/(agora|hoje|amanha|amanhã|ontem)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`agora`:return k0(e.reference);case`hoje`:return A0(e.reference);case`amanha`:case`amanhã`:return M0(e.reference);case`ontem`:return j0(e.reference)}return r}},toe=class extends ${innerPattern(){return/(?:esta\s*)?(manha|manhã|tarde|meia-noite|meio-dia|noite)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noite`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`manha`:case`manhã`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`meia-noite`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),d$(r,e),m$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`meio-dia`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},noe=new A2(roe());new A2(U3(!0));function roe(e=!0){let t=U3(!1,e);return t.parsers.push(new eoe),t.parsers.push(new toe),t}function U3(e=!0,t=!0){return O0({parsers:[new c2(t),new qae,new Jae,new $ae],refiners:[new Yae,new Xae]},e)}var ioe=class extends J1{patternBetween(){return/^\s*(tot|-)\s*$/i}},aoe=class extends Q1{patternBetween(){return RegExp(`^\\s*(om|na|voor|in de|,|-)?\\s*$`)}},ooe=class extends ${innerPattern(e){return/(nu|vandaag|morgen|morgend|gisteren)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();switch(n){case`nu`:return k0(e.reference);case`vandaag`:return A0(e.reference);case`morgen`:case`morgend`:return M0(e.reference);case`gisteren`:return j0(e.reference)}return r}},soe=1,coe=2,loe=class extends ${innerPattern(){return/(deze)?\s*(namiddag|avond|middernacht|ochtend|middag|'s middags|'s avonds|'s ochtends)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[soe]===`deze`&&(r.assign(`day`,e.refDate.getDate()),r.assign(`month`,e.refDate.getMonth()+1),r.assign(`year`,e.refDate.getFullYear())),t[coe].toLowerCase()){case`namiddag`:case`'s namiddags`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`avond`:case`'s avonds'`:r.imply(`meridiem`,X.PM),r.imply(`hour`,20),r.addTag(`casualReference/evening`);break;case`middernacht`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),d$(r,e),m$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`ochtend`:case`'s ochtends`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`middag`:case`'s middags`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},W3={zondag:0,zon:0,"zon.":0,zo:0,"zo.":0,maandag:1,ma:1,"ma.":1,dinsdag:2,din:2,"din.":2,di:2,"di.":2,woensdag:3,woe:3,"woe.":3,wo:3,"wo.":3,donderdag:4,dond:4,"dond.":4,do:4,"do.":4,vrijdag:5,vrij:5,"vrij.":5,vr:5,"vr.":5,zaterdag:6,zat:6,"zat.":6,za:6,"za.":6},G3={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,maart:3,mar:3,"mar.":3,mrt:3,"mrt.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augustus:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},K3={een:1,twee:2,drie:3,vier:4,vijf:5,zes:6,zeven:7,acht:8,negen:9,tien:10,elf:11,twaalf:12},q3={eerste:1,tweede:2,derde:3,vierde:4,vijfde:5,zesde:6,zevende:7,achtste:8,negende:9,tiende:10,elfde:11,twaalfde:12,dertiende:13,veertiende:14,vijftiende:15,zestiende:16,zeventiende:17,achttiende:18,negentiende:19,twintigste:20,eenentwintigste:21,tweeëntwintigste:22,drieentwintigste:23,vierentwintigste:24,vijfentwintigste:25,zesentwintigste:26,zevenentwintigste:27,achtentwintig:28,negenentwintig:29,dertigste:30,eenendertigste:31},J3={sec:`second`,second:`second`,seconden:`second`,min:`minute`,mins:`minute`,minute:`minute`,minuut:`minute`,minuten:`minute`,minuutje:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,uur:`hour`,u:`hour`,uren:`hour`,dag:`day`,dagen:`day`,week:`week`,weken:`week`,maand:`month`,maanden:`month`,jaar:`year`,jr:`year`,jaren:`year`},uoe=`(?:${Q(K3)}|[0-9]+|[0-9]+[\\.,][0-9]+|halve?|half|paar)`;function doe(e){let t=e.toLowerCase();return K3[t]===void 0?t===`paar`?2:t===`half`||t.match(/halve?/)?.5:parseFloat(t.replace(`,`,`.`)):K3[t]}var Y3=`(?:${Q(q3)}|[0-9]{1,2}(?:ste|de)?)`;function X3(e){let t=e.toLowerCase();return q3[t]===void 0?(t=t.replace(/(?:ste|de)$/i,``),parseInt(t)):q3[t]}var Z3=`(?:[1-9][0-9]{0,3}\\s*(?:voor Christus|na Christus)|[1-2][0-9]{3}|[5-9][0-9])`;function Q3(e){return/voor Christus/i.test(e)?(e=e.replace(/voor Christus/i,``),-parseInt(e)):/na Christus/i.test(e)?(e=e.replace(/na Christus/i,``),parseInt(e)):E$(parseInt(e))}var $3=`(${uoe})\\s{0,5}(${Q(J3)})\\s{0,5}`,e6=new RegExp($3,`i`),t6=w$(`(?:(?:binnen|in)\\s*)?`,$3);function n6(e){let t={},n=e,r=e6.exec(n);for(;r;)foe(t,r),n=n.substring(r[0].length),r=e6.exec(n);return t}function foe(e,t){let n=doe(t[1]),r=J3[t[2].toLowerCase()];e[r]=n}var poe=class extends ${innerPattern(){return RegExp(`(?:binnen|in|binnen de|voor)\\s*(`+t6+`)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=n6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},moe=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:op\\s*?)?(?:(deze|vorige|volgende)\\s*(?:week\\s*)?)?(${Q(W3)})(?=\\W|$)`,`i`),hoe=1,goe=2,_oe=3,voe=class extends ${innerPattern(){return moe}innerExtract(e,t){let n=W3[t[goe].toLowerCase()],r=t[hoe],i=t[_oe],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`vorige`?o=`last`:a==`volgende`?o=`next`:a==`deze`&&(o=`this`),c0(e.reference,n,o)}},yoe=RegExp(`(?:on\\s*?)?(${Y3})(?:\\s*(?:tot|\\-|\\–|until|through|till|\\s)\\s*(${Y3}))?(?:-|/|\\s*(?:of)?\\s*)(`+Q(G3)+`)(?:(?:-|/|,?\\s*)(${Z3}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),boe=3,r6=1,i6=2,a6=4,xoe=class extends ${innerPattern(){return yoe}innerExtract(e,t){let n=G3[t[boe].toLowerCase()],r=X3(t[r6]);if(r>31)return t.index+=t[r6].length,null;let i=e.createParsingComponents({day:r,month:n});if(t[a6]){let e=Q3(t[a6]);i.assign(`year`,e)}else{let t=D$(e.refDate,r,n);i.imply(`year`,t)}if(!t[i6])return i;let a=X3(t[i6]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Soe=RegExp(`(${Q(G3)})\\s*(?:[,-]?\\s*(${Z3})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Coe=1,o6=2,s6=class extends ${innerPattern(){return Soe}innerExtract(e,t){let n=e.createParsingComponents();n.imply(`day`,1);let r=G3[t[Coe].toLowerCase()];if(n.assign(`month`,r),t[o6]){let e=Q3(t[o6]);n.assign(`year`,e)}else{let t=D$(e.refDate,1,r);n.imply(`year`,t)}return n}},woe=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Toe=1,Eoe=2,Doe=class extends ${innerPattern(){return woe}innerExtract(e,t){let n=parseInt(t[Eoe]),r=parseInt(t[Toe]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},Ooe=class extends L1{primaryPrefix(){return`(?:(?:om)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|om|\\?)\\s*`}primarySuffix(){return`(?:\\s*(?:uur))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},koe=RegExp(`([0-9]{4})[\\.\\/\\s](?:(${Q(G3)})|([0-9]{1,2}))[\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),Aoe=1,joe=2,c6=3,Moe=4,Noe=class extends ${innerPattern(){return koe}innerExtract(e,t){let n=t[c6]?parseInt(t[c6]):G3[t[joe].toLowerCase()];if(n<1||n>12)return null;let r=parseInt(t[Aoe]);return{day:parseInt(t[Moe]),month:n,year:r}}},Poe=1,Foe=2,Ioe=class extends ${innerPattern(e){return/(gisteren|morgen|van)(ochtend|middag|namiddag|avond|nacht)(?=\W|$)/i}innerExtract(e,t){let n=t[Poe].toLowerCase(),r=t[Foe].toLowerCase(),i=e.createParsingComponents(),a=e.refDate;switch(n){case`gisteren`:let e=new Date(a.getTime());e.setDate(e.getDate()-1),d$(i,e);break;case`van`:d$(i,a);break;case`morgen`:let t=new Date(a.getTime());t.setDate(t.getDate()+1),d$(i,t),m$(i,t)}switch(r){case`ochtend`:i.imply(`meridiem`,X.AM),i.imply(`hour`,6);break;case`middag`:i.imply(`meridiem`,X.AM),i.imply(`hour`,12);break;case`namiddag`:i.imply(`meridiem`,X.PM),i.imply(`hour`,15);break;case`avond`:i.imply(`meridiem`,X.PM),i.imply(`hour`,20)}return i}},Loe=RegExp(`(dit|deze|vorig|afgelopen|(?:aan)?komend|over|\\+|-)e?\\s*(${t6})(?=\\W|$)`,`i`),Roe=1,zoe=2,Boe=class extends ${innerPattern(){return Loe}innerExtract(e,t){let n=t[Roe].toLowerCase(),r=n6(t[zoe]);switch(n){case`vorig`:case`afgelopen`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}},Voe=RegExp(`(dit|deze|(?:aan)?komend|volgend|afgelopen|vorig)e?\\s*(${Q(J3)})(?=\\s*)(?=\\W|$)`,`i`),Hoe=1,Uoe=2,Woe=class extends ${innerPattern(){return Voe}innerExtract(e,t){let n=t[Hoe].toLowerCase(),r=t[Uoe].toLowerCase(),i=J3[r];if(n==`volgend`||n==`komend`||n==`aankomend`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`afgelopen`||n==`vorig`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/week/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/maand/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/jaar/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Goe=RegExp(`(`+t6+`)(?:geleden|voor|eerder)(?=(?:\\W|$))`,`i`),Koe=RegExp(`(`+t6+`)geleden(?=(?:\\W|$))`,`i`),qoe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Koe:Goe}innerExtract(e,t){let n=x$(n6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},Joe=RegExp(`(`+t6+`)(later|na|vanaf nu|voortaan|vooruit|uit)(?=(?:\\W|$))`,`i`),Yoe=RegExp(`(`+t6+`)(later|vanaf nu)(?=(?:\\W|$))`,`i`),Xoe=1,Zoe=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Yoe:Joe}innerExtract(e,t){let n=n6(t[Xoe]);return Z.createRelativeFromReference(e.reference,n)}},Qoe=new A2($oe());new A2(l6(!0));function $oe(e=!0){let t=l6(!1,e);return t.parsers.unshift(new ooe),t.parsers.unshift(new loe),t.parsers.unshift(new Ioe),t.parsers.unshift(new s6),t.parsers.unshift(new Woe),t.parsers.unshift(new Boe),t}function l6(e=!0,t=!0){return O0({parsers:[new c2(t),new poe,new xoe,new s6,new voe,new Noe,new Doe,new Ooe(e),new qoe(e),new Zoe(e)],refiners:[new aoe,new ioe]},e)}var u6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},d6={воскресенье:0,воскресенья:0,вск:0,"вск.":0,понедельник:1,понедельника:1,пн:1,"пн.":1,вторник:2,вторника:2,вт:2,"вт.":2,среда:3,среды:3,среду:3,ср:3,"ср.":3,четверг:4,четверга:4,чт:4,"чт.":4,пятница:5,пятницу:5,пятницы:5,пт:5,"пт.":5,суббота:6,субботу:6,субботы:6,сб:6,"сб.":6},f6={январь:1,января:1,январе:1,февраль:2,февраля:2,феврале:2,март:3,марта:3,марте:3,апрель:4,апреля:4,апреле:4,май:5,мая:5,мае:5,июнь:6,июня:6,июне:6,июль:7,июля:7,июле:7,август:8,августа:8,августе:8,сентябрь:9,сентября:9,сентябре:9,октябрь:10,октября:10,октябре:10,ноябрь:11,ноября:11,ноябре:11,декабрь:12,декабря:12,декабре:12},p6={...f6,янв:1,"янв.":1,фев:2,"фев.":2,мар:3,"мар.":3,апр:4,"апр.":4,авг:8,"авг.":8,сен:9,"сен.":9,окт:10,"окт.":10,ноя:11,"ноя.":11,дек:12,"дек.":12},m6={один:1,одна:1,одной:1,одну:1,две:2,два:2,двух:2,три:3,трех:3,трёх:3,четыре:4,четырех:4,четырёх:4,пять:5,пяти:5,шесть:6,шести:6,семь:7,семи:7,восемь:8,восьми:8,девять:9,девяти:9,десять:10,десяти:10,одиннадцать:11,одиннадцати:11,двенадцать:12,двенадцати:12},h6={первое:1,первого:1,второе:2,второго:2,третье:3,третьего:3,четвертое:4,четвертого:4,пятое:5,пятого:5,шестое:6,шестого:6,седьмое:7,седьмого:7,восьмое:8,восьмого:8,девятое:9,девятого:9,десятое:10,десятого:10,одиннадцатое:11,одиннадцатого:11,двенадцатое:12,двенадцатого:12,тринадцатое:13,тринадцатого:13,четырнадцатое:14,четырнадцатого:14,пятнадцатое:15,пятнадцатого:15,шестнадцатое:16,шестнадцатого:16,семнадцатое:17,семнадцатого:17,восемнадцатое:18,восемнадцатого:18,девятнадцатое:19,девятнадцатого:19,двадцатое:20,двадцатого:20,"двадцать первое":21,"двадцать первого":21,"двадцать второе":22,"двадцать второго":22,"двадцать третье":23,"двадцать третьего":23,"двадцать четвертое":24,"двадцать четвертого":24,"двадцать пятое":25,"двадцать пятого":25,"двадцать шестое":26,"двадцать шестого":26,"двадцать седьмое":27,"двадцать седьмого":27,"двадцать восьмое":28,"двадцать восьмого":28,"двадцать девятое":29,"двадцать девятого":29,тридцатое:30,тридцатого:30,"тридцать первое":31,"тридцать первого":31},g6={сек:`second`,секунда:`second`,секунд:`second`,секунды:`second`,секунду:`second`,секундочка:`second`,секундочки:`second`,секундочек:`second`,секундочку:`second`,мин:`minute`,минута:`minute`,минут:`minute`,минуты:`minute`,минуту:`minute`,минуток:`minute`,минутки:`minute`,минутку:`minute`,минуточек:`minute`,минуточки:`minute`,минуточку:`minute`,час:`hour`,часов:`hour`,часа:`hour`,часу:`hour`,часиков:`hour`,часика:`hour`,часике:`hour`,часик:`hour`,день:`day`,дня:`day`,дней:`day`,суток:`day`,сутки:`day`,неделя:`week`,неделе:`week`,недели:`week`,неделю:`week`,недель:`week`,недельке:`week`,недельки:`week`,неделек:`week`,месяц:`month`,месяце:`month`,месяцев:`month`,месяца:`month`,квартал:`quarter`,квартале:`quarter`,кварталов:`quarter`,год:`year`,года:`year`,году:`year`,годов:`year`,лет:`year`,годик:`year`,годика:`year`,годиков:`year`},ese=`(?:${Q(m6)}|[0-9]+|[0-9]+\\.[0-9]+|пол|несколько|пар(?:ы|у)|\\s{0,3})`;function tse(e){let t=e.toLowerCase();return m6[t]===void 0?t.match(/несколько/)?3:t.match(/пол/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):m6[t]}var _6=`(?:${Q(h6)}|[0-9]{1,2}(?:го|ого|е|ое)?)`;function v6(e){let t=e.toLowerCase();return h6[t]===void 0?parseInt(t):h6[t]}var y6=`(?:\\s+(?:году|года|год|г|г.))?`,b6=`(?:[1-9][0-9]{0,3}${y6}\\s*(?:н.э.|до н.э.|н. э.|до н. э.)|[1-2][0-9]{3}${y6}|[5-9][0-9]${y6})`;function x6(e){return/(год|года|г|г.)/i.test(e)&&(e=e.replace(/(год|года|г|г.)/i,``)),/(до н.э.|до н. э.)/i.test(e)?(e=e.replace(/(до н.э.|до н. э.)/i,``),-parseInt(e)):/(н. э.|н.э.)/i.test(e)?(e=e.replace(/(н. э.|н.э.)/i,``),parseInt(e)):E$(parseInt(e))}var S6=`(${ese})\\s{0,3}(${Q(g6)})`,C6=new RegExp(S6,`i`),w6=w$(`(?:(?:около|примерно)\\s{0,3})?`,S6);function T6(e){let t={},n=e,r=C6.exec(n);for(;r;)nse(t,r),n=n.substring(r[0].length).trim(),r=C6.exec(n);return t}function nse(e,t){let n=tse(t[1]),r=g6[t[2].toLowerCase()];e[r]=n}var E6=`(?:(?:около|примерно)\\s*(?:~\\s*)?)?(${w6})${u6.rightBoundary}`,rse=class extends ${patternLeftBoundary(){return u6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(E6,u6.flags):RegExp(`(?:в течение|в течении)\\s*${E6}`,u6.flags)}innerExtract(e,t){let n=T6(t[1]);return Z.createRelativeFromReference(e.reference,n)}},D6=class extends ${patternLeftBoundary(){return u6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),u6.flags)}innerPatternHasChange(e,t){return!1}},O6=class extends D6{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${u6.rightBoundary}`,u6.flags)}},k6=1,A6=2,ise=3,j6=4,ase=class extends O6{innerPatternString(e){return`(?:с)?\\s*(${_6})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${_6}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(p6)})(?:(?:-|\\/|,?\\s{0,3})(${b6}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=p6[t[ise].toLowerCase()],i=v6(t[k6]);if(i>31)return t.index+=t[k6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[j6]){let e=x6(t[j6]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[A6]){let e=v6(t[A6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},ose=2,M6=3,sse=class extends D6{innerPatternString(e){return`((?:в)\\s*)?(${Q(p6)})\\s*(?:[,-]?\\s*(${b6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[ose].toLowerCase();if(t[0].length<=3&&!f6[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=p6[n];if(r.start.assign(`month`,i),t[M6]){let e=x6(t[M6]);r.start.assign(`year`,e)}else{let t=D$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},cse=class extends L1{constructor(e){super(e)}patternFlags(){return u6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|и|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|с)\\s*)??`}primarySuffix(){return`(?:\\s*(?:утра|вечера|после полудня))?(?!\\/)${u6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечера`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`после полудня`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`утра`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},lse=class extends D6{innerPatternString(e){return`(${w6})\\s{0,5}назад(?=(?:\\W|$))`}innerExtract(e,t){let n=x$(T6(t[1]));return Z.createRelativeFromReference(e.reference,n)}},use=class extends J1{patternBetween(){return/^\s*(и до|и по|до|по|-)\s*$/i}},dse=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|в|,|-)?\\s*$`)}},fse=class extends O6{innerPatternString(e){return`(?:с|со)?\\s*(сегодня|вчера|завтра|послезавтра|послепослезавтра|позапозавчера|позавчера)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сегодня`:return A0(e.reference);case`вчера`:return j0(e.reference);case`завтра`:return M0(e.reference);case`послезавтра`:return P0(e.reference,2);case`послепослезавтра`:return P0(e.reference,3);case`позавчера`:return N0(e.reference,2);case`позапозавчера`:return N0(e.reference,3)}return r}},pse=class extends O6{innerPatternString(e){return`(сейчас|прошлым\\s*вечером|прошлой\\s*ночью|следующей\\s*ночью|сегодня\\s*ночью|этой\\s*ночью|ночью|этим утром|утром|утра|в\\s*полдень|вечером|вечера|в\\s*полночь)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`сейчас`)return k0(e.reference);if(r===`вечером`||r===`вечера`)return L0(e.reference);if(r.endsWith(`утром`)||r.endsWith(`утра`))return B0(e.reference);if(r.match(/в\s*полдень/))return H0(e.reference);if(r.match(/прошлой\s*ночью/))return I0(e.reference);if(r.match(/прошлым\s*вечером/))return R0(e.reference);if(r.match(/следующей\s*ночью/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),d$(i,t),i.imply(`hour`,0)}return r.match(/в\s*полночь/)||r.endsWith(`ночью`)?z0(e.reference):i}},mse=1,hse=2,gse=3,_se=class extends O6{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:(эту|этот|прошлый|прошлую|следующий|следующую|следующего)\\s*)?(${Q(d6)})(?:\\s*(?:,|\\)|)))?(?:\\s*на\\s*(этой|прошлой|следующей)\\s*неделе)?`}innerExtract(e,t){let n=d6[t[hse].toLowerCase()],r=t[mse],i=t[gse],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a==`прошлый`||a==`прошлую`||a==`прошлой`?o=`last`:a==`следующий`||a==`следующую`||a==`следующей`||a==`следующего`?o=`next`:(a==`этот`||a==`эту`||a==`этой`)&&(o=`this`),c0(e.reference,n,o)}},vse=1,yse=2,bse=class extends O6{innerPatternString(e){return`(в прошлом|на прошлой|на следующей|в следующем|на этой|в этом)\\s*(${Q(g6)})`}innerExtract(e,t){let n=t[vse].toLowerCase(),r=g6[t[yse].toLowerCase()];if(n==`на следующей`||n==`в следующем`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`в прошлом`||n==`на прошлой`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},xse=class extends O6{innerPatternString(e){return`(эти|последние|прошлые|следующие|после|спустя|через|\\+|-)\\s*(${w6})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=T6(t[2]);switch(n){case`последние`:case`прошлые`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}},Sse=new A2(Cse());new A2(N6(!0));function Cse(){let e=N6(!1);return e.parsers.unshift(new fse),e.parsers.unshift(new pse),e.parsers.unshift(new sse),e.parsers.unshift(new bse),e.parsers.unshift(new xse),e}function N6(e=!0){return O0({parsers:[new c2(!0),new rse,new ase,new _se,new cse(e),new lse],refiners:[new dse,new use]},e)}var P6={domingo:0,dom:0,lunes:1,lun:1,martes:2,mar:2,miércoles:3,miercoles:3,mié:3,mie:3,jueves:4,jue:4,viernes:5,vie:5,sábado:6,sabado:6,sáb:6,sab:6},F6={enero:1,febrero:2,marzo:3,abril:4,mayo:5,junio:6,julio:7,agosto:8,septiembre:9,setiembre:9,octubre:10,noviembre:11,diciembre:12},I6={...F6,ene:1,"ene.":1,feb:2,"feb.":2,mar:3,"mar.":3,abr:4,"abr.":4,may:5,"may.":5,jun:6,"jun.":6,jul:7,"jul.":7,ago:8,"ago.":8,sep:9,"sep.":9,oct:10,"oct.":10,nov:11,"nov.":11,dic:12,"dic.":12},L6={uno:1,dos:2,tres:3,cuatro:4,cinco:5,seis:6,siete:7,ocho:8,nueve:9,diez:10,once:11,doce:12,trece:13},R6={primero:1,primera:1,segundo:2,segunda:2,tercero:3,tercera:3,cuarto:4,cuarta:4,quinto:5,quinta:5,sexto:6,sexta:6,séptimo:7,septimo:7,séptima:7,septima:7,octavo:8,octava:8,noveno:9,novena:9,décimo:10,decimo:10,décima:10,decima:10,undécimo:11,undecimo:11,duodécimo:12,duodecimo:12,decimotercero:13,decimocuarto:14,decimoquinto:15,decimosexto:16,decimoséptimo:17,decimoseptimo:17,decimoctavo:18,decimonoveno:19,vigésimo:20,vigesimo:20,"vigésimo primero":21,"vigesimo primero":21,"vigésimo segundo":22,"vigesimo segundo":22,"vigésimo tercero":23,"vigesimo tercero":23,"vigésimo cuarto":24,"vigesimo cuarto":24,"vigésimo quinto":25,"vigesimo quinto":25,"vigésimo sexto":26,"vigesimo sexto":26,"vigésimo séptimo":27,"vigesimo septimo":27,"vigésimo octavo":28,"vigesimo octavo":28,"vigésimo noveno":29,"vigesimo noveno":29,trigésimo:30,trigesimo:30,"trigésimo primero":31,"trigesimo primero":31},z6={sec:`second`,segundo:`second`,segundos:`second`,min:`minute`,mins:`minute`,minuto:`minute`,minutos:`minute`,h:`hour`,hr:`hour`,hrs:`hour`,hora:`hour`,horas:`hour`,día:`day`,días:`day`,dia:`day`,dias:`day`,semana:`week`,semanas:`week`,mes:`month`,meses:`month`,cuarto:`quarter`,cuartos:`quarter`,año:`year`,años:`year`,ano:`year`,anos:`year`},wse=`(?:${Q(L6)}|[0-9]+|[0-9]+\\.[0-9]+|un?|uno?|una?|algunos?|unos?|demi-?)`;function Tse(e){let t=e.toLowerCase();return L6[t]===void 0?t===`un`||t===`una`||t===`uno`?1:t.match(/algunos?/)||t.match(/unos?/)?3:t.match(/media?/)?.5:parseFloat(t):L6[t]}var B6=`(?:${Q(R6)}|[0-9]{1,2}(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)?)`;function V6(e){let t=e.toLowerCase();return R6[t]===void 0?(t=t.replace(/(?:º|ª|°|ro|do|to|mo|er|vo|no|ma|era|ero|avo|ava)$/i,``),parseInt(t)):R6[t]}var H6=`[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?`;function U6(e){if(e.match(/^[0-9]{1,4}$/)){let t=parseInt(e);return t<100&&(t+=t>50?1900:2e3),t}return e.match(/a\.?\s*c\.?/i)?(e=e.replace(/a\.?\s*c\.?/i,``),-parseInt(e)):parseInt(e)}var W6=`(${wse})\\s{0,5}(${Q(z6)})\\s{0,5}`,G6=new RegExp(W6,`i`),K6=w$(``,W6);function Ese(e){let t={},n=e,r=G6.exec(n);for(;r;)Dse(t,r),n=n.substring(r[0].length),r=G6.exec(n);return t}function Dse(e,t){let n=Tse(t[1]),r=z6[t[2].toLowerCase()];e[r]=n}var Ose=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(este|esta|pasado|pr[oó]ximo)\\s*)?(${Q(P6)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(este|esta|pasado|pr[óo]ximo)\\s*semana)?(?=\\W|\\d|$)`,`i`),kse=1,Ase=2,jse=3,Mse=class extends ${innerPattern(){return Ose}innerExtract(e,t){let n=P6[t[Ase].toLowerCase()];if(n===void 0)return null;let r=t[kse],i=t[jse],a=r||i||``;a=a.toLowerCase();let o=null;return a==`pasado`?o=`this`:a==`próximo`||a==`proximo`?o=`next`:a==`este`&&(o=`this`),c0(e.reference,n,o)}},Nse=class extends L1{primaryPrefix(){return`(?:(?:aslas|deslas|las?|al?|de|del)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a(?:l)?|\\?)\\s*`}},Pse=class extends Q1{patternBetween(){return RegExp(`^\\s*(?:,|de|aslas|a|a\\s+la|en\\s+la)?\\s*$`,`i`)}},Fse=class extends J1{patternBetween(){return/^\s*(?:-)\s*$/i}},Ise=RegExp(`(${B6})(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*(${B6}))?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)(${Q(I6)})(?:\\s*(?:de|,)?\\s*(${H6}))?(?=\\W|$)`,`i`),q6=1,J6=2,Lse=3,Y6=4,Rse=class extends ${innerPattern(){return Ise}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=I6[t[Lse].toLowerCase()],i=V6(t[q6]);if(i>31)return t.index+=t[q6].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[Y6]){let e=U6(t[Y6]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[J6]){let e=V6(t[J6]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},zse=class extends ${innerPattern(e){return/(ahora|hoy|mañana|manana|ayer)(?=\W|$)/i}innerExtract(e,t){let n=t[0].toLowerCase(),r=e.createParsingComponents();if((n===`mañana`||n===`manana`)&&e.text.substring(0,t.index).match(/(?:^|[^\p{L}\p{N}\p{M}_])(?:a|en)\s+la\s*$/iu))return null;switch(n){case`ahora`:return k0(e.reference);case`hoy`:return A0(e.reference);case`mañana`:case`manana`:return M0(e.reference);case`ayer`:return j0(e.reference)}return r}},Bse=class extends ${innerPattern(){return/(?:esta\s*)?(mañana|manana|tarde|medianoche|mediodia|mediodía|noche)(?=\W|$)/i}innerExtract(e,t){let n=e.refDate,r=e.createParsingComponents();switch(t[1].toLowerCase()){case`tarde`:r.imply(`meridiem`,X.PM),r.imply(`hour`,15),r.addTag(`casualReference/afternoon`);break;case`noche`:r.imply(`meridiem`,X.PM),r.imply(`hour`,22),r.addTag(`casualReference/evening`);break;case`mañana`:case`manana`:r.imply(`meridiem`,X.AM),r.imply(`hour`,6),r.addTag(`casualReference/morning`);break;case`medianoche`:let e=new Date(n.getTime());e.setDate(e.getDate()+1),d$(r,e),m$(r,e),r.imply(`hour`,0),r.imply(`minute`,0),r.imply(`second`,0),r.addTag(`casualReference/midnight`);break;case`mediodia`:case`mediodía`:r.imply(`meridiem`,X.AM),r.imply(`hour`,12),r.addTag(`casualReference/noon`)}return r}},Vse=RegExp(`(?:(?:en|por|durante|de|dentro de)\\s*)?(${K6})(?=\\W|$)`,`i`),Hse=RegExp(`(?:en|por|durante|de|dentro de)\\s*(${K6})(?=\\W|$)`,`i`),Use=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return!this.strictMode&&e.option.forwardDate?Vse:Hse}innerExtract(e,t){let n=Ese(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Wse=RegExp(`((?:en)\\s*)?(${Q(I6)})\\s*(?:(?:,|-|de)?\\s*(${H6})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Gse=1,Kse=2,X6=3,qse=RegExp(`(?:^|[^\\p{L}\\p{N}\\p{M}_])${B6}(?:\\s*(?:desde|de|-|–|ao?|\\s)\\s*${B6})?\\s*(?:de)?\\s*(?:-|/|\\s*(?:de|,)?\\s*)$`,`iu`),Jse=class extends ${innerPattern(){return Wse}innerExtract(e,t){let n=t[Kse].toLowerCase();if(e.text.substring(0,t.index).match(qse)||t[0].length<=3&&!F6[n])return null;let r=e.createParsingResult(t.index+(t[Gse]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ESMonthNameParser`);let i=I6[n];if(r.start.assign(`month`,i),t[X6]){let e=U6(t[X6]);r.start.assign(`year`,e)}else{let t=D$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},Yse=new A2(Xse());new A2(Z6(!0));function Xse(e=!0){let t=Z6(!1,e);return t.parsers.push(new zse),t.parsers.push(new Bse),t.parsers.push(new Jse),t}function Z6(e=!0,t=!0){return O0({parsers:[new c2(t),new Mse,new Nse,new Rse,new Use(e)],refiners:[new Pse,new Fse]},e)}var Q6={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`},$6={неділя:0,неділі:0,неділю:0,нд:0,"нд.":0,понеділок:1,понеділка:1,пн:1,"пн.":1,вівторок:2,вівторка:2,вт:2,"вт.":2,середа:3,середи:3,середу:3,ср:3,"ср.":3,четвер:4,четверга:4,четвергу:4,чт:4,"чт.":4,"п'ятниця":5,"п'ятниці":5,"п'ятницю":5,пт:5,"пт.":5,субота:6,суботи:6,суботу:6,сб:6,"сб.":6},e8={січень:1,січня:1,січні:1,лютий:2,лютого:2,лютому:2,березень:3,березня:3,березні:3,квітень:4,квітня:4,квітні:4,травень:5,травня:5,травні:5,червень:6,червня:6,червні:6,липень:7,липня:7,липні:7,серпень:8,серпня:8,серпні:8,вересень:9,вересня:9,вересні:9,жовтень:10,жовтня:10,жовтні:10,листопад:11,листопада:11,листопаду:11,грудень:12,грудня:12,грудні:12},t8={...e8,січ:1,"січ.":1,лют:2,"лют.":2,бер:3,"бер.":3,квіт:4,"квіт.":4,трав:5,"трав.":5,черв:6,"черв.":6,лип:7,"лип.":7,серп:8,"серп.":8,сер:8,"cер.":8,вер:9,"вер.":9,верес:9,"верес.":9,жовт:10,"жовт.":10,листоп:11,"листоп.":11,груд:12,"груд.":12},n8={один:1,одна:1,одної:1,одну:1,дві:2,два:2,двох:2,три:3,трьох:3,чотири:4,чотирьох:4,"п'ять":5,"п'яти":5,шість:6,шести:6,сім:7,семи:7,вісім:8,восьми:8,"дев'ять":9,"дев'яти":9,десять:10,десяти:10,одинадцять:11,одинадцяти:11,дванадцять:12,дванадцяти:12},r8={перше:1,першого:1,друге:2,другого:2,третє:3,третього:3,четверте:4,четвертого:4,"п'яте":5,"п'ятого":5,шосте:6,шостого:6,сьоме:7,сьомого:7,восьме:8,восьмого:8,"дев'яте":9,"дев'ятого":9,десяте:10,десятого:10,одинадцяте:11,одинадцятого:11,дванадцяте:12,дванадцятого:12,тринадцяте:13,тринадцятого:13,чотирнадцяте:14,чотинрнадцятого:14,"п'ятнадцяте":15,"п'ятнадцятого":15,шістнадцяте:16,шістнадцятого:16,сімнадцяте:17,сімнадцятого:17,вісімнадцяте:18,вісімнадцятого:18,"дев'ятнадцяте":19,"дев'ятнадцятого":19,двадцяте:20,двадцятого:20,"двадцять перше":21,"двадцять першого":21,"двадцять друге":22,"двадцять другого":22,"двадцять третє":23,"двадцять третього":23,"двадцять четверте":24,"двадцять четвертого":24,"двадцять п'яте":25,"двадцять п'ятого":25,"двадцять шосте":26,"двадцять шостого":26,"двадцять сьоме":27,"двадцять сьомого":27,"двадцять восьме":28,"двадцять восьмого":28,"двадцять дев'яте":29,"двадцять дев'ятого":29,тридцяте:30,тридцятого:30,"тридцять перше":31,"тридцять першого":31},i8={сек:`second`,секунда:`second`,секунд:`second`,секунди:`second`,секунду:`second`,секундочок:`second`,секундочки:`second`,секундочку:`second`,хв:`minute`,хвилина:`minute`,хвилин:`minute`,хвилини:`minute`,хвилину:`minute`,хвилинок:`minute`,хвилинки:`minute`,хвилинку:`minute`,хвилиночок:`minute`,хвилиночки:`minute`,хвилиночку:`minute`,год:`hour`,година:`hour`,годин:`hour`,години:`hour`,годину:`hour`,годинка:`hour`,годинок:`hour`,годинки:`hour`,годинку:`hour`,день:`day`,дня:`day`,днів:`day`,дні:`day`,доба:`day`,добу:`day`,тиждень:`week`,тижню:`week`,тижня:`week`,тижні:`week`,тижнів:`week`,місяць:`month`,місяців:`month`,місяці:`month`,місяця:`month`,квартал:`quarter`,кварталу:`quarter`,квартала:`quarter`,кварталів:`quarter`,кварталі:`quarter`,рік:`year`,року:`year`,році:`year`,років:`year`,роки:`year`},Zse=`(?:${Q(n8)}|[0-9]+|[0-9]+\\.[0-9]+|пів|декілька|пар(?:у)|\\s{0,3})`;function Qse(e){let t=e.toLowerCase();return n8[t]===void 0?t.match(/декілька/)?2:t.match(/пів/)?.5:t.match(/пар/)?2:t===``?1:parseFloat(t):n8[t]}var a8=`(?:${Q(r8)}|[0-9]{1,2}(?:го|ого|е)?)`;function o8(e){let t=e.toLowerCase();return r8[t]===void 0?parseInt(t):r8[t]}var s8=`(?:\\s+(?:року|рік|р|р.))?`,c8=`(?:[1-9][0-9]{0,3}${s8}\\s*(?:н.е.|до н.е.|н. е.|до н. е.)|[1-2][0-9]{3}${s8}|[5-9][0-9]${s8})`;function l8(e){return/(рік|року|р|р.)/i.test(e)&&(e=e.replace(/(рік|року|р|р.)/i,``)),/(до н.е.|до н. е.)/i.test(e)?(e=e.replace(/(до н.е.|до н. е.)/i,``),-parseInt(e)):/(н. е.|н.е.)/i.test(e)?(e=e.replace(/(н. е.|н.е.)/i,``),parseInt(e)):E$(parseInt(e))}var u8=`(${Zse})\\s{0,3}(${Q(i8)})`,d8=new RegExp(u8,`i`),f8=w$(`(?:(?:близько|приблизно)\\s{0,3})?`,u8);function p8(e){let t={},n=e,r=d8.exec(n);for(;r;)$se(t,r),n=n.substring(r[0].length).trim(),r=d8.exec(n);return t}function $se(e,t){let n=Qse(t[1]),r=i8[t[2].toLowerCase()];e[r]=n}var m8=`(?:(?:приблизно|орієнтовно)\\s*(?:~\\s*)?)?(${f8})${Q6.rightBoundary}`,ece=class extends ${patternLeftBoundary(){return Q6.leftBoundary}innerPattern(e){return e.option.forwardDate?new RegExp(m8,Q6.flags):RegExp(`(?:протягом|на протязі|протягом|упродовж|впродовж)\\s*${m8}`,Q6.flags)}innerExtract(e,t){let n=p8(t[1]);return Z.createRelativeFromReference(e.reference,n)}},h8=class extends ${patternLeftBoundary(){return Q6.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),Q6.flags)}innerPatternHasChange(e,t){return!1}},g8=class extends h8{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${Q6.rightBoundary}`,Q6.flags)}},_8=1,v8=2,tce=3,y8=4,nce=class extends g8{innerPatternString(e){return`(?:з|із)?\\s*(${a8})(?:\\s{0,3}(?:по|-|–|до)?\\s{0,3}(${a8}))?(?:-|\\/|\\s{0,3}(?:of)?\\s{0,3})(${Q(t8)})(?:(?:-|\\/|,?\\s{0,3})(${c8}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=t8[t[tce].toLowerCase()],i=o8(t[_8]);if(i>31)return t.index+=t[_8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[y8]){let e=l8(t[y8]);n.start.assign(`year`,e)}else{let t=D$(e.reference.instant,i,r);n.start.imply(`year`,t)}if(t[v8]){let e=o8(t[v8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},rce=2,b8=3,ice=class extends h8{innerPatternString(e){return`((?:в|у)\\s*)?(${Q(t8)})\\s*(?:[,-]?\\s*(${c8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`}innerExtract(e,t){let n=t[rce].toLowerCase();if(t[0].length<=3&&!e8[n])return null;let r=e.createParsingResult(t.index,t.index+t[0].length);r.start.imply(`day`,1);let i=t8[n];if(r.start.assign(`month`,i),t[b8]){let e=l8(t[b8]);r.start.assign(`year`,e)}else{let t=D$(e.reference.instant,1,i);r.start.imply(`year`,t)}return r}},ace=class extends L1{constructor(e){super(e)}patternFlags(){return Q6.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|до|і|по|\\?)\\s*`}primaryPrefix(){return`(?:(?:в|у|о|об|з|із|від)\\s*)??`}primarySuffix(){return`(?:\\s*(?:ранку|вечора|по обіді|після обіду))?(?!\\/)${Q6.rightBoundary}`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(n){if(t[0].endsWith(`вечора`)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].endsWith(`по обіді`)||t[0].endsWith(`після обіду`)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}t[0].endsWith(`ранку`)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`)))}return n}},oce=class extends h8{innerPatternString(e){return`(${f8})\\s{0,5}тому(?=(?:\\W|$))`}innerExtract(e,t){let n=x$(p8(t[1]));return Z.createRelativeFromReference(e.reference,n)}},sce=class extends J1{patternBetween(){return/^\s*(і до|і по|до|по|-)\s*$/i}},cce=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|в|у|о|,|-)?\\s*$`)}},lce=class extends g8{innerPatternString(e){return`(?:з|із|від)?\\s*(сьогодні|вчора|завтра|післязавтра|післяпіслязавтра|позапозавчора|позавчора)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();switch(n){case`сьогодні`:return A0(e.reference);case`вчора`:return j0(e.reference);case`завтра`:return M0(e.reference);case`післязавтра`:return P0(e.reference,2);case`післяпіслязавтра`:return P0(e.reference,3);case`позавчора`:return N0(e.reference,2);case`позапозавчора`:return N0(e.reference,3)}return r}},uce=class extends g8{innerPatternString(e){return`(зараз|минулого\\s*вечора|минулої\\s*ночі|наступної\\s*ночі|сьогодні\\s*вночі|цієї\\s*ночі|цього ранку|вранці|ранку|зранку|опівдні|ввечері|вечора|опівночі|вночі)`}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();if(r===`зараз`)return k0(e.reference);if(r===`ввечері`||r===`вечора`)return L0(e.reference);if(r.endsWith(`вранці`)||r.endsWith(`ранку`)||r.endsWith(`зранку`))return B0(e.reference);if(r.endsWith(`опівдні`))return H0(e.reference);if(r.match(/минулої\s*ночі/))return I0(e.reference);if(r.match(/минулого\s*вечора/))return R0(e.reference);if(r.match(/наступної\s*ночі/)){let e=n.getHours()<22?1:2,t=new Date(n.getTime());t.setDate(t.getDate()+e),d$(i,t),i.imply(`hour`,1)}return r.match(/цієї\s*ночі/)||r.endsWith(`опівночі`)||r.endsWith(`вночі`)?z0(e.reference):i}},dce=1,fce=2,pce=3,mce=class extends g8{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:в\\s*?)?(?:у\\s*?)?(?:(цей|минулого|минулий|попередній|попереднього|наступного|наступний|наступному)\\s*)?(${Q($6)})(?:\\s*(?:,|\\)|)))?(?:\\s*(на|у|в)\\s*(цьому|минулому|наступному)\\s*тижні)?`}innerExtract(e,t){let n=$6[t[fce].toLocaleLowerCase()],r=t[dce],i=t[pce],a=r||i;a||=``,a=a.toLocaleLowerCase();let o=null;return a==`минулого`||a==`минулий`||a==`попередній`||a==`попереднього`?o=`last`:a==`наступного`||a==`наступний`?o=`next`:(a==`цей`||a==`цього`||a==`цьому`)&&(o=`this`),c0(e.reference,n,o)}},hce=1,gce=2,_ce=class extends g8{innerPatternString(e){return`(в минулому|у минулому|на минулому|минулого|на наступному|в наступному|у наступному|наступного|на цьому|в цьому|у цьому|цього)\\s*(${Q(i8)})(?=\\s*)`}innerExtract(e,t){let n=t[hce].toLowerCase(),r=i8[t[gce].toLowerCase()];if(n==`на наступному`||n==`в наступному`||n==`у наступному`||n==`наступного`){let t={};return t[r]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`на минулому`||n==`в минулому`||n==`у минулому`||n==`минулого`){let t={};return t[r]=-1,Z.createRelativeFromReference(e.reference,t)}let i=e.createParsingComponents(),a=new Date(e.reference.instant.getTime());return r.match(/week/i)?(a.setDate(a.getDate()-a.getDay()),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.imply(`year`,a.getFullYear())):r.match(/month/i)?(a.setDate(1),i.imply(`day`,a.getDate()),i.assign(`year`,a.getFullYear()),i.assign(`month`,a.getMonth()+1)):r.match(/year/i)&&(a.setDate(1),a.setMonth(0),i.imply(`day`,a.getDate()),i.imply(`month`,a.getMonth()+1),i.assign(`year`,a.getFullYear())),i}},vce=class extends g8{innerPatternString(e){return`(ці|останні|минулі|майбутні|наступні|після|через|\\+|-)\\s*(${f8})`}innerExtract(e,t){let n=t[1].toLowerCase(),r=p8(t[3]);switch(n){case`останні`:case`минулі`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}},yce=new A2(bce());new A2(x8(!0));function bce(){let e=x8(!1);return e.parsers.unshift(new lce),e.parsers.unshift(new uce),e.parsers.unshift(new ice),e.parsers.unshift(new _ce),e.parsers.unshift(new vce),e}function x8(e){return O0({parsers:[new E0,new c2(!0),new ece,new nce,new mce,new ace(e),new oce],refiners:[new cce,new sce]},e)}var S8={domenica:0,dom:0,"dom.":0,lunedì:1,lunedi:1,lun:1,"lun.":1,martedì:2,martedi:2,mar:2,"mar.":2,mercoledì:3,mercoledi:3,mer:3,"mer.":3,giovedì:4,giovedi:4,gio:4,"gio.":4,venerdì:5,venerdi:5,ven:5,"ven.":5,sabato:6,sab:6,"sab.":6},C8={gennaio:1,febbraio:2,marzo:3,aprile:4,maggio:5,giugno:6,luglio:7,agosto:8,settembre:9,ottobre:10,novembre:11,dicembre:12},w8={...C8,gen:1,"gen.":1,feb:2,"feb.":2,mar:3,"mar.":3,apr:4,"apr.":4,mag:5,"mag.":5,giu:6,"giu.":6,lug:7,"lug.":7,ago:8,"ago.":8,set:9,"set.":9,sett:9,"sett.":9,ott:10,"ott.":10,nov:11,"nov.":11,dic:12,"dic.":12},T8={uno:1,una:1,un:1,due:2,tre:3,quattro:4,cinque:5,sei:6,sette:7,otto:8,nove:9,dieci:10,undici:11,dodici:12},E8={primo:1,prima:1,"1°":1,"1ª":1,secondo:2,seconda:2,"2°":2,"2ª":2,terzo:3,terza:3,"3°":3,"3ª":3,quarto:4,quarta:4,"4°":4,"4ª":4,quinto:5,quinta:5,"5°":5,"5ª":5,sesto:6,sesta:6,"6°":6,"6ª":6,settimo:7,settima:7,"7°":7,"7ª":7,ottavo:8,ottava:8,"8°":8,"8ª":8,nono:9,nona:9,"9°":9,"9ª":9,decimo:10,decima:10,"10°":10,"10ª":10,undicesimo:11,undicesima:11,"11°":11,"11ª":11,dodicesimo:12,dodicesima:12,"12°":12,"12ª":12,tredicesimo:13,tredicesima:13,"13°":13,"13ª":13,quattordicesimo:14,quattordicesima:14,"14°":14,"14ª":14,quindicesimo:15,quindicesima:15,"15°":15,"15ª":15,sedicesimo:16,sedicesima:16,"16°":16,"16ª":16,diciassettesimo:17,diciassettesima:17,"17°":17,"17ª":17,diciottesimo:18,diciottesima:18,"18°":18,"18ª":18,diciannovesimo:19,diciannovesima:19,"19°":19,"19ª":19,ventesimo:20,ventesima:20,"20°":20,"20ª":20,ventunesimo:21,ventunesima:21,"21°":21,"21ª":21,ventiduesimo:22,ventiduesima:22,"22°":22,"22ª":22,ventitreesimo:23,ventitreesima:23,"23°":23,"23ª":23,ventiquattresimo:24,ventiquattresima:24,"24°":24,"24ª":24,venticinquesimo:25,venticinquesima:25,"25°":25,"25ª":25,ventiseiesimo:26,ventiseiesima:26,"26°":26,"26ª":26,ventisettesimo:27,ventisettesima:27,"27°":27,"27ª":27,ventottesimo:28,ventottesima:28,"28°":28,"28ª":28,ventinovesimo:29,ventinovesima:29,"29°":29,"29ª":29,trentesimo:30,trentesima:30,"30°":30,"30ª":30,trentunesimo:31,trentunesima:31,"31°":31,"31ª":31},D8={secondo:`second`,secondi:`second`,minuto:`minute`,minuti:`minute`,ora:`hour`,ore:`hour`,giorno:`day`,giorni:`day`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`},O8={s:`second`,sec:`second`,secondo:`second`,secondi:`second`,m:`minute`,min:`minute`,minuto:`minute`,minuti:`minute`,h:`hour`,ora:`hour`,ore:`hour`,g:`day`,gg:`day`,giorno:`day`,giorni:`day`,sett:`week`,settimana:`week`,settimane:`week`,mese:`month`,mesi:`month`,trim:`quarter`,trimestre:`quarter`,trimestri:`quarter`,anno:`year`,anni:`year`,...D8},k8=`(?:${Q(T8)}|[0-9]+|[0-9]+\\.[0-9]+|mezz[oa]?(?:\\s{0,2})?|un(?:'|\\s{0,2})?|qualche|alcuni|paio\\s{0,2}(?:di)?)`;function xce(e){let t=e.toLowerCase();return T8[t]===void 0?t===`un`||t===`un'`||t===`una`||t===`uno`?1:t.match(/qualche/)?3:t.match(/mezz/)?.5:t.match(/paio/)?2:t.match(/alcuni/)?7:parseFloat(t):T8[t]}var A8=`(?:${Q(E8)}|[0-9]{1,2}(?:°|ª|º)?)`;function j8(e){let t=e.toLowerCase();return E8[t]===void 0?(t=t.replace(/(?:°|ª|º)$/i,``),parseInt(t)):E8[t]}var M8=`(?:[1-9][0-9]{0,3}\\s{0,2}(?:BE|AD|BC|BCE|CE)|[1-2][0-9]{3}|[5-9][0-9]|2[0-5])`;function N8(e){return/BE/i.test(e)?(e=e.replace(/BE/i,``),parseInt(e)-543):/BCE?/i.test(e)?(e=e.replace(/BCE?/i,``),-parseInt(e)):/(AD|CE)/i.test(e)?(e=e.replace(/(AD|CE)/i,``),parseInt(e)):E$(parseInt(e))}var P8=`(${k8})\\s{0,3}(${Q(O8)})`,F8=new RegExp(P8,`i`),Sce=`(${k8})\\s{0,3}(${Q(D8)})`,I8=`\\s{0,5},?(?:\\s*e)?\\s{0,5}`,L8=w$(`(?:(?:circa|approssimativamente)\\s{0,3})?`,P8,I8),R8=w$(`(?:(?:circa|approssimativamente)\\s{0,3})?`,Sce,I8);function z8(e){let t={},n=e,r=F8.exec(n);for(;r;)Cce(t,r),n=n.substring(r[0].length).trim(),r=F8.exec(n);return Object.keys(t).length==0?null:t}function Cce(e,t){if(t[0].match(/^[a-zA-Z]+$/))return;let n=xce(t[1]),r=O8[t[2].toLowerCase()];e[r]=n}var wce=RegExp(`(?:(?:entro|tra|fra|in|per)\\s*)?(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${L8})(?=\\W|$)`,`i`),Tce=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${L8})(?=\\W|$)`,`i`),Ece=RegExp(`(?:entro|tra|fra|in|per)\\s*(?:(?:circa|approssimativamente)\\s*(?:~\\s*)?)?(${R8})(?=\\W|$)`,`i`),Dce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(e){return this.strictMode?Ece:e.option.forwardDate?wce:Tce}innerExtract(e,t){if(t[0].match(/^per\s*(il|la|l')\s*\w+/))return null;let n=z8(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},Oce=RegExp(`(?:il\\s{0,3})?(${A8})(?:\\s{0,3}(?:al|\\-|\\–|fino\\s*al?)?\\s{0,3}(${A8}))?(?:-|/|\\s{0,3}(?:di)?\\s{0,3})(${Q(w8)})(?:(?:-|/|,?\\s{0,3})(${M8}(?!\\w)))?(?=\\W|$)`,`i`),B8=1,V8=2,kce=3,H8=4,Ace=class extends ${innerPattern(){return Oce}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=w8[t[kce].toLowerCase()],i=j8(t[B8]);if(i>31)return t.index+=t[B8].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[H8]){let e=N8(t[H8]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[V8]){let e=j8(t[V8]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},jce=RegExp(`(${Q(w8)})(?:-|/|\\s*,?\\s*)(${A8})(?!\\s*(?:am|pm))\\s*(?:(?:al|\\-)\\s*(${A8})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${M8}))?(?=\\W|$)(?!\\:\\d)`,`i`),Mce=1,U8=2,W8=3,G8=4,Nce=class extends ${shouldSkipYearLikeDate;constructor(e){super(),this.shouldSkipYearLikeDate=e}innerPattern(){return jce}innerExtract(e,t){let n=w8[t[Mce].toLowerCase()],r=j8(t[U8]);if(r>31||this.shouldSkipYearLikeDate&&!t[W8]&&!t[G8]&&t[U8].match(/^2[0-5]$/))return null;let i=e.createParsingComponents({day:r,month:n}).addTag(`parser/ITMonthNameMiddleEndianParser`);if(t[G8]){let e=N8(t[G8]);i.assign(`year`,e)}else{let t=D$(e.refDate,r,n);i.imply(`year`,t)}if(!t[W8])return i;let a=j8(t[W8]),o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Pce=RegExp(`((?:a|in|di|del)\\s*)?(${Q(w8)})\\s*(?:(?:,|-|del)?\\s*(${M8})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),Fce=1,Ice=2,K8=3,Lce=class extends ${innerPattern(){return Pce}innerExtract(e,t){let n=t[Ice].toLowerCase();if(t[0].length<=3&&!C8[n])return null;let r=e.createParsingResult(t.index+(t[Fce]||``).length,t.index+t[0].length);r.start.imply(`day`,1),r.start.addTag(`parser/ITMonthNameParser`);let i=w8[n];if(r.start.assign(`month`,i),t[K8]){let e=N8(t[K8]);r.start.assign(`year`,e)}else{let t=D$(e.refDate,1,i);r.start.imply(`year`,t)}return r}},Rce=RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${Q(w8)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|$)`,`i`),zce=1,Bce=2,q8=3,Vce=4,Hce=class extends ${strictMonthDateOrder;constructor(e){super(),this.strictMonthDateOrder=e}innerPattern(){return Rce}innerExtract(e,t){let n=parseInt(t[zce]),r=parseInt(t[Vce]),i=t[q8]?parseInt(t[q8]):w8[t[Bce].toLowerCase()];if(i<1||i>12){if(this.strictMonthDateOrder)return null;r>=1&&r<=12&&([i,r]=[r,i])}return r<1||r>31?null:{day:r,month:i,year:n}}},Uce=RegExp(`([0-9]|0[1-9]|1[012])/([0-9]{4})`,`i`),Wce=1,Gce=2,Kce=class extends ${innerPattern(){return Uce}innerExtract(e,t){let n=parseInt(t[Gce]),r=parseInt(t[Wce]);return e.createParsingComponents().imply(`day`,1).assign(`month`,r).assign(`year`,n)}},qce=class extends L1{constructor(e){super(e)}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|a|fino\\s*a|alle?|\\?)\\s*`}primaryPrefix(){return`(?:(?:alle?|dalle?)\\s*)??`}primarySuffix(){return`(?:\\s*(?:di\\s*(?:sera|notte|mattina|pomeriggio)))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){let n=super.extractPrimaryTimeComponents(e,t);if(!n)return n;if(t[0].match(/di\s*(?:sera|notte)/i)){let e=n.get(`hour`);e>=6&&e<12?(n.assign(`hour`,n.get(`hour`)+12),n.assign(`meridiem`,X.PM)):e<6&&n.assign(`meridiem`,X.AM)}if(t[0].match(/di\s*pomeriggio/i)){n.assign(`meridiem`,X.PM);let e=n.get(`hour`);e>=0&&e<=6&&n.assign(`hour`,n.get(`hour`)+12)}return t[0].match(/di\s*mattina/i)&&(n.assign(`meridiem`,X.AM),n.get(`hour`)<12&&n.assign(`hour`,n.get(`hour`))),n.addTag(`parser/ITTimeExpressionParser`)}extractFollowingTimeComponents(e,t,n){let r=super.extractFollowingTimeComponents(e,t,n);return r&&r.addTag(`parser/ITTimeExpressionParser`),r}},Jce=RegExp(`(${L8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),Yce=RegExp(`(${R8})\\s{0,5}(?:fa|prima)(?=\\W|$)`,`i`),Xce=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Yce:Jce}innerExtract(e,t){let n=z8(t[1]);return n?Z.createRelativeFromReference(e.reference,x$(n)):null}},Zce=RegExp(`(${L8})\\s{0,5}(?:dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=(?:\\W|$))`,`i`),Qce=RegExp(`(${R8})\\s{0,5}(dopo|più\\s*tardi|da\\s*adesso|da\\s*ora)(?=\\W|$)`,`i`),$ce=1,ele=class extends ${strictMode;constructor(e){super(),this.strictMode=e}innerPattern(){return this.strictMode?Qce:Zce}innerExtract(e,t){let n=z8(t[$ce]);return n?Z.createRelativeFromReference(e.reference,n):null}},tle=class extends J1{patternBetween(){return/^\s*(a|al|-|–|fino\s*a|fino\s*al)\s*$/i}},J8=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|alle?|dopo\\s*le|prima\\s*delle?|,|-|\\.|∙|:)?\\s*$`)}},nle=/(adesso|ora|oggi|stasera|stanotte|domani|dopodomani|ieri|ieri\s*sera|ieri\s*notte)(?=\W|$)/i,rle=class extends ${innerPattern(e){return nle}innerExtract(e,t){let n=e.refDate,r=t[0].toLowerCase(),i=e.createParsingComponents();switch(r){case`adesso`:case`ora`:i=k0(e.reference);break;case`oggi`:i=A0(e.reference);break;case`ieri`:i=j0(e.reference);break;case`domani`:i=M0(e.reference);break;case`stasera`:case`stanotte`:i=F0(e.reference);break;case`dopodomani`:i=P0(e.reference,2);break;default:if(r.match(/ieri\s*sera/)||r.match(/ieri\s*notte/)){if(n.getHours()>6){let e=new Date(n.getTime());e.setDate(e.getDate()-1),n=e}d$(i,n),i.imply(`hour`,0)}}return i.addTag(`parser/ITCasualDateParser`),i}},ile=/(stamattina|stasera|stanotte|stamani)|(questa\s*)?(mattina|pomeriggio|sera|notte|mezzanotte|mezzogiorno)(?=\W|$)/i,ale=class extends ${innerPattern(){return ile}innerExtract(e,t){let n=null;if(t[1])switch(t[1].toLowerCase()){case`stamattina`:case`stamani`:n=B0(e.reference);break;case`stasera`:case`stanotte`:n=L0(e.reference)}else if(t[3])switch(t[3].toLowerCase()){case`pomeriggio`:n=V0(e.reference);break;case`sera`:case`notte`:n=L0(e.reference);break;case`mezzanotte`:n=z0(e.reference);break;case`mattina`:n=B0(e.reference);break;case`mezzogiorno`:n=H0(e.reference)}return n&&n.addTag(`parser/ITCasualTimeParser`),n}},ole=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(questo|questa|quest'|scorso|scorsa|prossimo|prossima)\\s*)?(${Q(S8)}|weekend|fine\\s*settimana)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(scorso|scorsa|prossimo|prossima)(?:\\s*settimana)?)?(?=\\W|$)`,`i`),sle=1,cle=2,lle=3,ule=class extends ${innerPattern(){return ole}innerExtract(e,t){let n=t[sle],r=t[lle],i=n||r;i||=``,i=i.toLowerCase();let a=null;i==`scorso`||i==`scorsa`?a=`last`:i==`prossimo`||i==`prossima`?a=`next`:(i==`questo`||i==`questa`||i==`quest'`)&&(a=`this`);let o=t[cle].toLowerCase(),s;if(S8[o]!==void 0)s=S8[o];else if(o==`weekend`||o.match(/fine\s*settimana/))s=a==`last`?l$.SUNDAY:l$.SATURDAY;else return null;return c0(e.reference,s,a)}},dle=RegExp(`(?:(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo\\s*questo|dopo\\s*questa)\\s*(${Q(O8)})|(?:il\\s*|la\\s*|l'\\s*)(${Q(O8)})\\s*(scorso|scorsa|prossimo|prossima))(?=\\W|$)`,`i`),Y8=1,fle=2,ple=3,mle=4,hle=class extends ${innerPattern(){return dle}innerExtract(e,t){let n,r;t[Y8]?(n=t[Y8].toLowerCase(),r=t[fle].toLowerCase()):(n=t[mle].toLowerCase(),r=t[ple].toLowerCase());let i=O8[r];if(n==`prossimo`||n==`prossima`||n.startsWith(`dopo`)){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(n==`scorso`||n==`scorsa`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return r.match(/settimana/i)?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):r.match(/mese/i)?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):r.match(/anno/i)&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},gle=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${L8})(?=\\W|$)`,`i`),_le=RegExp(`(?:il\\s*|la\\s*|l'\\s*)?(questo|questa|quest'|scorso|scorsa|prossimo|prossima|dopo|\\+|-)\\s*(${R8})(?=\\W|$)`,`i`),vle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?gle:_le}innerExtract(e,t){let n=t[1].toLowerCase(),r=z8(t[2]);if(!r)return null;switch(n){case`scorso`:case`scorsa`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}};function yle(e){return e.text.match(/^[+-]/i)!=null}function X8(e){return e.text.match(/^-/i)!=null}var ble=class extends q1{shouldMergeResults(e,t,n){return e.match(/^\s*$/i)?yle(n)||X8(n):!1}mergeResults(e,t,n,r){let i=z8(n.text);X8(n)&&(i=x$(i));let a=Z.createRelativeFromReference(S$.fromDate(t.start.date()),i);return new C$(t.reference,t.index,`${t.text}${e}${n.text}`,a)}};function Z8(e){return e.text.match(/\s+(prima|da)$/i)!=null}function xle(e){return e.text.match(/\s+(dopo|dal?)$/i)!=null}var Sle=class extends q1{patternBetween(){return/^\s*$/i}shouldMergeResults(e,t,n){return!e.match(this.patternBetween())||!Z8(t)&&!xle(t)?!1:!!n.start.get(`day`)&&!!n.start.get(`month`)&&!!n.start.get(`year`)}mergeResults(e,t,n){let r=z8(t.text);Z8(t)&&(r=x$(r));let i=Z.createRelativeFromReference(S$.fromDate(n.start.date()),r);return new C$(n.reference,t.index,`${t.text}${e}${n.text}`,i)}},Cle=RegExp(`^\\s*(${M8})`,`i`),wle=1,Tle=class{refine(e,t){return t.forEach(function(t){if(!t.start.isDateWithUnknownYear())return;let n=e.text.substring(t.index+t.text.length),r=Cle.exec(n);if(!r||r[0].trim().length<=3)return;e.debug(()=>{console.log(`Extracting year: '${r[0]}' into : ${t}`)});let i=N8(r[wle]);t.end!=null&&t.end.assign(`year`,i),t.start.assign(`year`,i),t.text+=r[0]}),t}},Ele=class extends K1{constructor(){super()}isValid(e,t){let n=t.text.trim();return n===e.text.trim()?!0:n.toLowerCase().endsWith(`il secondo`)||n.toLowerCase()===`secondo`?(e.text.substring(t.index+t.text.length).trim().length>0&&e.debug(()=>{console.log(`Removing unlikely result: ${t}`)}),!1):!0}},Q8=new class{createCasualConfiguration(){let e=this.createConfiguration(!1);return e.parsers.push(new rle),e.parsers.push(new ale),e.parsers.push(new Lce),e.parsers.push(new hle),e.parsers.push(new vle),e.refiners.push(new Ele),e}createConfiguration(e=!0){let t=O0({parsers:[new c2(!0),new Dce(e),new Ace,new Nce(!0),new ule,new Kce,new qce(e),new Xce(e),new ele(e)],refiners:[new J8]},e);return t.parsers.unshift(new Hce(e)),t.refiners.unshift(new Sle),t.refiners.unshift(new ble),t.refiners.unshift(new s0),t.refiners.push(new J8),t.refiners.push(new Tle),t.refiners.push(new tle),t}},Dle=new A2(Q8.createCasualConfiguration());new A2(Q8.createConfiguration(!0));var $8={söndag:0,sön:0,so:0,måndag:1,mån:1,må:1,tisdag:2,tis:2,ti:2,onsdag:3,ons:3,on:3,torsdag:4,tors:4,to:4,fredag:5,fre:5,fr:5,lördag:6,lör:6,lö:6},e5={januari:1,jan:1,"jan.":1,februari:2,feb:2,"feb.":2,mars:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,maj:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,augusti:8,aug:8,"aug.":8,september:9,sep:9,"sep.":9,sept:9,oktober:10,okt:10,"okt.":10,november:11,nov:11,"nov.":11,december:12,dec:12,"dec.":12},Ole={första:1,andra:2,tredje:3,fjärde:4,femte:5,sjätte:6,sjunde:7,åttonde:8,nionde:9,tionde:10,elfte:11,tolfte:12,trettonde:13,fjortonde:14,femtonde:15,sextonde:16,sjuttonde:17,artonde:18,nittonde:19,tjugonde:20,tjugoförsta:21,tjugoandra:22,tjugotredje:23,tjugofjärde:24,tjugofemte:25,tjugosjätte:26,tjugosjunde:27,tjugoåttonde:28,tjugonionde:29,trettionde:30,trettioförsta:31},t5={en:1,ett:1,två:2,tre:3,fyra:4,fem:5,sex:6,sju:7,åtta:8,nio:9,tio:10,elva:11,tolv:12,tretton:13,fjorton:14,femton:15,sexton:16,sjutton:17,arton:18,nitton:19,tjugo:20,trettiо:30,fyrtio:40,femtio:50,sextio:60,sjuttio:70,åttio:80,nittio:90,hundra:100,tusen:1e3},n5={sek:`second`,sekund:`second`,sekunder:`second`,min:`minute`,minut:`minute`,minuter:`minute`,tim:`hour`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,mån:`month`,månad:`month`,månader:`month`,år:`year`,kvartаl:`quarter`,kvartal:`quarter`},kle={sekund:`second`,sekunder:`second`,minut:`minute`,minuter:`minute`,timme:`hour`,timmar:`hour`,dag:`day`,dagar:`day`,vecka:`week`,veckor:`week`,månad:`month`,månader:`month`,år:`year`,kvartal:`quarter`};function Ale(e){let t={},n=e,r=a5.exec(n);for(;r;)jle(t,r),n=n.substring(r[0].length),r=a5.exec(n);return t}function jle(e,t){let n=Fle(t[1]),r=n5[t[2].toLowerCase()];e[r]=n}var r5=`(?:${Q(t5)}|\\d+)`;`${Q(Ole)}`,`${Q(n5)}`;var i5=`(${r5})\\s{0,5}(${Q(n5)})\\s{0,5}`,a5=new RegExp(i5,`i`),Mle=`(${r5})\\s{0,5}(${Q(kle)})\\s{0,5}`,Nle=w$(``,i5),Ple=w$(``,Mle);function Fle(e){let t=e.toLowerCase();return t5[t]===void 0?parseInt(t):t5[t]}function Ile(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=E$(t)),t}let t=e.toLowerCase();return t5[t]===void 0?parseInt(e):t5[t]}var Lle=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:på\\s*?)?(?:(förra|senaste|nästa|kommande)\\s*)?(${Q($8)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(förra|senaste|nästa|kommande)\\s*vecka)?(?=\\W|$)`,`i`),Rle=1,zle=3,Ble=2,Vle=class extends ${innerPattern(){return Lle}innerExtract(e,t){let n=$8[t[Ble].toLowerCase()],r=t[Rle],i=t[zle],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/förra|senaste/)?o=`last`:a.match(/nästa|kommande/)&&(o=`next`),c0(e.reference,n,o)}},Hle=RegExp(`(?:den\\s*?)?([0-9]{1,2})(?:\\s*(?:till|\\-|\\–|\\s)\\s*([0-9]{1,2}))?\\s*(${Q(e5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),o5=1,s5=2,Ule=3,c5=4,Wle=class extends ${innerPattern(){return Hle}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=e5[t[Ule].toLowerCase()],i=parseInt(t[o5]);if(i>31)return t.index+=t[o5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[c5]){let e=Ile(t[c5]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[s5]){let e=parseInt(t[s5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},Gle=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${Nle})(?=\\W|$)`,`i`),Kle=RegExp(`(denna|den här|förra|passerade|nästa|kommande|efter|\\+|-)\\s*(${Ple})(?=\\W|$)`,`i`),qle=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?Gle:Kle}innerExtract(e,t){let n=t[1].toLowerCase(),r=Ale(t[2]);if(!r)return null;switch(n){case`förra`:case`passerade`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}},Jle=RegExp(`(nu|idag|imorgon|övermorgon|igår|förrgår|i\\s*förrgår)(?:\\s*(?:på\\s*)?(morgonen?|förmiddagen?|middagen?|eftermiddagen?|kvällen?|natten?|midnatt))?(?=\\W|$)`,`i`),Yle=1,Xle=2,Zle=class extends ${innerPattern(e){return Jle}innerExtract(e,t){let n=e.refDate,r=(t[Yle]||``).toLowerCase(),i=(t[Xle]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nu`:a=k0(e.reference);break;case`idag`:a=A0(e.reference);break;case`imorgon`:case`imorn`:let t=new Date(n.getTime());t.setDate(t.getDate()+1),d$(a,t),m$(a,t);break;case`igår`:let r=new Date(n.getTime());r.setDate(r.getDate()-1),d$(a,r),m$(a,r);break;case`förrgår`:case`i förrgår`:let i=new Date(n.getTime());i.setDate(i.getDate()-2),d$(a,i),m$(a,i)}switch(i){case`morgon`:case`morgonen`:a.imply(`hour`,6),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`förmiddag`:case`förmiddagen`:a.imply(`hour`,9),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`middag`:case`middagen`:a.imply(`hour`,12),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`eftermiddag`:case`eftermiddagen`:a.imply(`hour`,15),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`kväll`:case`kvällen`:a.imply(`hour`,20),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0);break;case`natt`:case`natten`:case`midnatt`:i===`midnatt`?a.imply(`hour`,0):a.imply(`hour`,2),a.imply(`minute`,0),a.imply(`second`,0),a.imply(`millisecond`,0)}return a}},Qle=new A2($le());new A2(l5(!0));function $le(e=!0){let t=l5(!1,e);return t.parsers.unshift(new Zle),t}function l5(e=!0,t=!0){return O0({parsers:[new E0,new c2(t),new Wle,new Vle,new qle],refiners:[]},e)}var eue=class extends L1{primaryPrefix(){return`(?:(?:klo|kello)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜)\\s*`}extractPrimaryTimeComponents(e,t){return t[0].match(/^\s*\d{4}\s*$/)?null:super.extractPrimaryTimeComponents(e,t)}},u5={sunnuntai:0,sunnuntaina:0,su:0,maanantai:1,maanantaina:1,ma:1,tiistai:2,tiistaina:2,ti:2,keskiviikko:3,keskiviikkona:3,ke:3,torstai:4,torstaina:4,to:4,perjantai:5,perjantaina:5,pe:5,lauantai:6,lauantaina:6,la:6},d5={tammikuu:1,tammikuuta:1,tammikuun:1,tammi:1,helmikuu:2,helmikuuta:2,helmikuun:2,helmi:2,maaliskuu:3,maaliskuuta:3,maaliskuun:3,maalis:3,huhtikuu:4,huhtikuuta:4,huhtikuun:4,huhti:4,toukokuu:5,toukokuuta:5,toukokuun:5,touko:5,kesäkuu:6,kesäkuuta:6,kesäkuun:6,kesä:6,heinäkuu:7,heinäkuuta:7,heinäkuun:7,heinä:7,elokuu:8,elokuuta:8,elokuun:8,elo:8,syyskuu:9,syyskuuta:9,syyskuun:9,syys:9,lokakuu:10,lokakuuta:10,lokakuun:10,loka:10,marraskuu:11,marraskuuta:11,marraskuun:11,marras:11,joulukuu:12,joulukuuta:12,joulukuun:12,joulu:12},f5={yksi:1,yhden:1,kaksi:2,kahden:2,kolme:3,kolmen:3,neljä:4,neljän:4,viisi:5,viiden:5,kuusi:6,kuuden:6,seitsemän:7,kahdeksan:8,yhdeksän:9,kymmenen:10},p5={s:`second`,sek:`second`,sekunti:`second`,sekuntia:`second`,sekunnin:`second`,min:`minute`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,t:`hour`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,pv:`day`,päivä:`day`,päivää:`day`,päivän:`day`,vk:`week`,viikko:`week`,viikkoa:`week`,viikon:`week`,kk:`month`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`},tue={sekunti:`second`,sekuntia:`second`,sekunnin:`second`,minuutti:`minute`,minuuttia:`minute`,minuutin:`minute`,tunti:`hour`,tuntia:`hour`,tunnin:`hour`,päivä:`day`,päivää:`day`,päivän:`day`,viikko:`week`,viikkoa:`week`,viikon:`week`,kuukausi:`month`,kuukautta:`month`,kuukauden:`month`,vuosi:`year`,vuotta:`year`,vuoden:`year`};function m5(e){let t={},n=e,r=_5.exec(n);for(;r;)nue(t,r),n=n.substring(r[0].length),r=_5.exec(n);return t}function nue(e,t){let n=aue(t[1]),r=p5[t[2].toLowerCase()];e[r]=n}var h5=`(?:${Q(f5)}|\\d+)`;`${Q(p5)}`;var g5=`(${h5})\\s{0,5}(${Q(p5)})\\s{0,5}`,_5=new RegExp(g5,`i`),rue=`(${h5})\\s{0,5}(${Q(tue)})\\s{0,5}`,v5=w$(``,g5),iue=w$(``,rue);function aue(e){let t=e.toLowerCase();return f5[t]===void 0?parseInt(t):f5[t]}function oue(e){if(/\d+/.test(e)){let t=parseInt(e);return t<100&&(t=E$(t)),t}let t=e.toLowerCase();return f5[t]===void 0?parseInt(e):f5[t]}var sue=RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:(viime|edellinen|edellisenä|ensi|seuraava|seuraavana|tämä|tänä)\\s*)?(${Q(u5)})(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(viime|ensi|seuraava)\\s*viikolla)?(?=\\W|$)`,`i`),cue=1,lue=2,uue=3,due=class extends ${innerPattern(){return sue}innerExtract(e,t){let n=u5[t[lue].toLowerCase()],r=t[cue],i=t[uue],a=r||i;a||=``,a=a.toLowerCase();let o=null;return a.match(/viime|edellinen|edellisenä/)?o=`last`:a.match(/ensi|seuraava|seuraavana/)&&(o=`next`),c0(e.reference,n,o)}},fue=RegExp(`([0-9]{1,2})\\.?(?:\\s*(?:\\-|\\–|\\s)\\s*([0-9]{1,2})\\.?)?\\s*(${Q(d5)})(?:(?:-|/|,?\\s*)([0-9]{4}(?![^\\s]\\d)))?(?=\\W|$)`,`i`),y5=1,b5=2,pue=3,x5=4,mue=class extends ${innerPattern(){return fue}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=d5[t[pue].toLowerCase()],i=parseInt(t[y5]);if(i>31)return t.index+=t[y5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[x5]){let e=oue(t[x5]);n.start.assign(`year`,e)}else{let t=D$(e.refDate,i,r);n.start.imply(`year`,t)}if(t[b5]){let e=parseInt(t[b5]);n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},hue=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${v5})(?=\\W|$)`,`i`),gue=RegExp(`(seuraava|seuraavat|seuraavien|edellinen|edelliset|edellisten|viimeiset|viimeisten|kuluneet|kuluneiden|\\+|-)\\s*(${iue})(?=\\W|$)`,`i`),_ue=class extends ${allowAbbreviations;constructor(e=!0){super(),this.allowAbbreviations=e}innerPattern(){return this.allowAbbreviations?hue:gue}innerExtract(e,t){let n=t[1].toLowerCase(),r=m5(t[2]);if(!r)return null;switch(n){case`edellinen`:case`edelliset`:case`edellisten`:case`viimeiset`:case`viimeisten`:case`kuluneet`:case`kuluneiden`:case`-`:r=x$(r)}return Z.createRelativeFromReference(e.reference,r)}},vue=class extends ${innerPattern(){return RegExp(`(${v5})\\s*sitten(?=\\W|$)`,`i`)}innerExtract(e,t){let n=x$(m5(t[1]));return Z.createRelativeFromReference(e.reference,n)}},yue=class extends ${innerPattern(){return RegExp(`(${v5})\\s*(?:sisällä|kuluessa|päästä)(?=\\W|$)`,`i`)}innerExtract(e,t){let n=m5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},S5=class e extends ${innerPattern(e){return/(tänä\s*)?(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä)(?=\W|$)/i}innerExtract(t,n){let r=t.refDate,i=n[2].toLowerCase(),a=t.createParsingComponents();return m$(a,r),e.extractTimeComponents(a,i)}static extractTimeComponents(e,t){switch(t){case`aamulla`:case`aamuna`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`aamupäivällä`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/morning`);break;case`päivällä`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/noon`);break;case`iltapäivällä`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/afternoon`);break;case`illalla`:e.imply(`hour`,18),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`yöllä`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.PM),e.addTag(`casualReference/evening`);break;case`keskiyöllä`:e.get(`hour`)>1&&e.addDurationAsImplied({day:1}),e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`second`,0),e.imply(`meridiem`,X.AM),e.addTag(`casualReference/midnight`)}return e}},bue=RegExp(`(nyt|tänään|huomenna|ylihuomenna|eilen|toissapäivänä|viime\\s*yönä)(?:\\s*(aamulla|aamuna|aamupäivällä|päivällä|iltapäivällä|illalla|yöllä|keskiyöllä))?(?=\\W|$)`,`i`),xue=1,Sue=2,Cue=class extends ${innerPattern(e){return bue}innerExtract(e,t){let n=e.reference.getDateWithAdjustedTimezone(),r=(t[xue]||``).toLowerCase(),i=(t[Sue]||``).toLowerCase(),a=e.createParsingComponents();switch(r){case`nyt`:a=k0(e.reference);break;case`tänään`:a=A0(e.reference);break;case`huomenna`:n=b$(n,{day:1}),d$(a,n),m$(a,n);break;case`ylihuomenna`:n=b$(n,{day:2}),d$(a,n),m$(a,n);break;case`eilen`:n=b$(n,{day:-1}),d$(a,n),m$(a,n);break;case`toissapäivänä`:n=b$(n,{day:-2}),d$(a,n),m$(a,n);break;default:r.match(/viime\s*yönä/)&&(n.getHours()>6&&(n=b$(n,{day:-1})),d$(a,n),a.imply(`hour`,0))}return i&&(a=S5.extractTimeComponents(a,i)),a}},wue=class extends J1{patternBetween(){return/^\s*(-|–)\s*$/i}},Tue=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|klo|kello|,|-)?\\s*$`)}},Eue=new A2(Due());new A2(C5(!0));function Due(e=!0){let t=C5(!1,e);return t.parsers.unshift(new S5),t.parsers.unshift(new Cue),t.parsers.unshift(new _ue),t}function C5(e=!0,t=!0){return O0({parsers:[new E0,new c2(t),new eue,new mue,new due,new yue,new vue],refiners:[new wue,new Tue]},e)}var w5={"chủ nhật":0,cn:0,"thứ hai":1,t2:1,"thứ ba":2,t3:2,"thứ tư":3,t4:3,"thứ năm":4,t5:4,"thứ sáu":5,t6:5,"thứ bảy":6,t7:6},T5={"tháng 1":1,"tháng một":1,"tháng giêng":1,"tháng 2":2,"tháng hai":2,"tháng 3":3,"tháng ba":3,"tháng 4":4,"tháng tư":4,"tháng 5":5,"tháng năm":5,"tháng 6":6,"tháng sáu":6,"tháng 7":7,"tháng bảy":7,"tháng 8":8,"tháng tám":8,"tháng 9":9,"tháng chín":9,"tháng 10":10,"tháng mười":10,"tháng 11":11,"tháng mười một":11,"tháng 12":12,"tháng mười hai":12,"tháng chạp":12},E5={một:1,hai:2,ba:3,bốn:4,năm:5,sáu:6,bảy:7,tám:8,chín:9,mười:10,"mười một":11,"mười hai":12},D5={giây:`second`,phút:`minute`,giờ:`hour`,ngày:`day`,tuần:`week`,tháng:`month`,năm:`year`},O5=`(?:`+Q(E5)+`|[0-9]+|[0-9]+\\.[0-9]+)`;function Oue(e){let t=e.toLowerCase();return E5[t]===void 0?parseFloat(t):E5[t]}var k5=`(?:[0-9]{1,4}(?:\\s*TCN)?)`;function A5(e){let t=e.toUpperCase(),n=parseInt(e.replace(/[^0-9]+/g,``));return/TCN/.test(t)?-n:E$(n)}var j5=`(`+O5+`)\\s{0,5}(`+Q(D5)+`)\\s{0,5}`,M5=new RegExp(j5,`i`),N5=w$(``,j5);function P5(e){let t={},n=e,r=M5.exec(n);for(;r;){let e=Oue(r[1]),i=D5[r[2].toLowerCase()];t[i]=e,n=n.substring(r[0].length),r=M5.exec(n)}return t}var kue=RegExp(`(?:ngày\\s*)?([0-9]{1,2})\\s*tháng\\s*([0-9]{1,2})(?:\\s*năm\\s*(`+k5+`))?(?=\\W|$)`,`i`),Aue=1,jue=2,F5=3,Mue=class extends ${innerPattern(){return kue}innerExtract(e,t){let n=parseInt(t[Aue]),r=parseInt(t[jue]);if(n>31||r>12)return null;let i=e.createParsingResult(t.index,t[0]);return i.start.assign(`day`,n),i.start.assign(`month`,r),t[F5]?i.start.assign(`year`,A5(t[F5])):i.start.imply(`year`,D$(e.refDate,n,r)),i}},Nue=RegExp(`(`+Q(T5)+`)(?:\\s*(?:năm|/)\\s*(`+k5+`))?(?=\\W|$)`,`i`),Pue=1,I5=2,Fue=class extends ${innerPattern(){return Nue}innerExtract(e,t){let n=T5[t[Pue].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`month`,n),r.start.imply(`day`,1),t[I5]?r.start.assign(`year`,A5(t[I5])):r.start.imply(`year`,e.reference.getDateWithAdjustedTimezone().getFullYear()),r}},Iue=RegExp(`(?:\\bnăm\\s*(`+k5+`)|\\b([0-9]{1,4})\\s*(TCN))(?=\\W|$)`,`i`),L5=1,Lue=2,Rue=3,zue=class extends ${innerPattern(){return Iue}innerExtract(e,t){let n;n=t[L5]?t[L5]:t[Lue]+` `+t[Rue];let r=e.createParsingResult(t.index,t[0]);return r.start.assign(`year`,A5(n)),r.start.imply(`month`,1),r.start.imply(`day`,1),r}},Bue=/\b(hôm nay|hôm qua|hôm kia|ngày mai|ngày kia|bây giờ|lúc này)(?=\W|$)/i,Vue=class extends ${innerPattern(){return Bue}innerExtract(e,t){switch(t[1].toLowerCase()){case`bây giờ`:case`lúc này`:return k0(e.reference);case`hôm nay`:return A0(e.reference);case`hôm qua`:return j0(e.reference);case`hôm kia`:return N0(e.reference,2);case`ngày mai`:return M0(e.reference);case`ngày kia`:return P0(e.reference,2)}return e.createParsingComponents()}},Hue=/(buổi\s*)?(sáng sớm|sáng|trưa|chiều|tối|đêm|nửa đêm|bình minh)(?=\W|$)/i,Uue=class e extends ${innerPattern(){return Hue}innerExtract(t,n){let r=t.createParsingComponents();return m$(r,t.refDate),e.extractTimeComponents(r,n[2].toLowerCase())}static extractTimeComponents(e,t){switch(t){case`bình minh`:case`sáng sớm`:e.imply(`hour`,6),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`sáng`:e.imply(`hour`,9),e.imply(`minute`,0),e.imply(`meridiem`,X.AM);break;case`trưa`:e.imply(`hour`,12),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`chiều`:e.imply(`hour`,15),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`tối`:e.imply(`hour`,19),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`đêm`:e.imply(`hour`,22),e.imply(`minute`,0),e.imply(`meridiem`,X.PM);break;case`nửa đêm`:e.imply(`hour`,0),e.imply(`minute`,0),e.imply(`meridiem`,X.AM)}return e}},Wue=RegExp(`(`+Q(w5)+`)(?:\\s*(này|tới|sau(?!\\s*khi)|qua))?(?=\\W|$)`,`i`),Gue=1,Kue=2,que=class extends ${innerPattern(){return Wue}innerExtract(e,t){let n=w5[t[Gue].toLowerCase()];if(n===void 0)return null;let r=t[Kue],i=null;if(r){let e=r.toLowerCase();e.includes(`tới`)||e.includes(`sau`)?i=`next`:e.includes(`qua`)&&(i=`last`)}return c0(e.reference,n,i)}},Jue=RegExp(`(?:lúc\\s*|vào\\s*)?([0-9]{1,2})(?:\\s*giờ\\s*([0-9]{1,2})?\\s*(?:phút\\s*)?(sáng|trưa|chiều|tối|đêm)?|:([0-9]{2}))(?=\\W|$)`,`i`),Yue=1,R5=2,Xue=3,z5=4,Zue=class extends ${innerPattern(){return Jue}innerExtract(e,t){let n=parseInt(t[Yue]);if(n>23)return null;let r=e.createParsingResult(t.index,t[0]);r.start.assign(`hour`,n);let i=t[z5]?parseInt(t[z5]):t[R5]?parseInt(t[R5]):0;if(i>=60)return null;r.start.assign(`minute`,i);let a=t[Xue]?.toLowerCase();return a===`sáng`?(r.start.assign(`meridiem`,X.AM),n===12&&r.start.assign(`hour`,0)):a===`trưa`?n<10?(r.start.assign(`meridiem`,X.PM),r.start.assign(`hour`,n+12)):r.start.assign(`meridiem`,n>=12?X.PM:X.AM):(a===`chiều`||a===`tối`||a===`đêm`)&&(r.start.assign(`meridiem`,X.PM),n<12&&r.start.assign(`hour`,n+12)),r.start.imply(`second`,0),r.start.imply(`millisecond`,0),r}},Que=RegExp(`(`+N5+`)\\s{0,5}(?:trước|qua)(?=\\W|$)`,`i`),$ue=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return Que}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,x$(n)):null}},ede=RegExp(`(`+N5+`)\\s{0,5}(?:sau|nữa|tới|tiếp)(?=\\W|$)`,`i`),tde=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return ede}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},nde=RegExp(`(?:trong\\s*(?:vòng\\s*)?)(`+N5+`)(?=\\W|$)`,`i`),rde=class extends ${strictMode;constructor(e=!1){super(),this.strictMode=e}innerPattern(){return nde}innerExtract(e,t){let n=P5(t[1]);return n?Z.createRelativeFromReference(e.reference,n):null}},B5=`(?:`+O5+`\\s{0,5})?(?:`+Q(D5)+`)`,ide=RegExp(`(này|trước|qua|sau|tới|tiếp)\\s*(`+B5+`)|(`+B5+`)\\s*(này|trước|qua|sau|tới|tiếp)(?=\\W|$)`,`i`),ade=class extends ${innerPattern(){return ide}innerExtract(e,t){let n=(t[1]||t[4]||``).toLowerCase(),r=(t[2]||t[3]||``).toLowerCase(),i=P5(r);if(Object.keys(i).length===0){let e=D5[r];if(!e)return null;i={[e]:1}}return(n===`trước`||n===`qua`)&&(i=x$(i)),Z.createRelativeFromReference(e.reference,i)}},ode=class extends J1{patternBetween(){return/^\s*(?:–|-|đến|tới|và)\s*$/}},sde=class extends Q1{patternBetween(){return/^\s*(?:lúc|vào|,|T|-)?\s*$/}},cde=class extends D0{},lde=new A2(ude());new A2(V5(!0));function ude(e=!0){let t=V5(!1,e);return t.parsers.unshift(new Uue),t.parsers.unshift(new Vue),t.parsers.unshift(new ade),t}function V5(e=!0,t=!0){return O0({parsers:[new E0,new c2(t),new Mue,new Fue,new zue,new que,new Zue,new $ue(e),new tde(e),new rde(e)],refiners:[new cde,new ode,new sde]},e)}var dde=/(sekarang|saat\s+ini|hari\s+ini|kemarin\s+lusa|kemarin|besok\s+lusa|besok|lusa|nanti\s+malam|malam\s+ini|tadi\s+malam|semalam)(?=\W|$)/i,fde=class extends ${innerPattern(){return dde}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`sekarang`:case`saat ini`:return k0(e.reference);case`hari ini`:return A0(e.reference);case`kemarin`:return j0(e.reference);case`kemarin lusa`:return N0(e.reference,2);case`besok`:return M0(e.reference);case`lusa`:case`besok lusa`:return P0(e.reference,2);case`nanti malam`:case`malam ini`:return F0(e.reference);case`tadi malam`:case`semalam`:return I0(e.reference)}return e.createParsingComponents()}},pde=/(?:(?:pada|di)\s+)?(tengah\s+malam|tengah\s+hari|pagi|siang|sore|petang|malam(?!\s+ini))(?:\s+ini)?(?=\W|$)/i,mde=class extends ${innerPattern(){return pde}innerExtract(e,t){switch(t[1].toLowerCase().replace(/\s+/g,` `)){case`pagi`:return B0(e.reference);case`siang`:case`tengah hari`:return H0(e.reference);case`sore`:case`petang`:return V0(e.reference);case`malam`:return L0(e.reference);case`tengah malam`:return z0(e.reference)}return null}},H5={minggu:0,ahad:0,senin:1,selasa:2,rabu:3,kamis:4,jumat:5,"jum'at":5,sabtu:6},U5={januari:1,jan:1,"jan.":1,februari:2,pebruari:2,feb:2,"feb.":2,peb:2,"peb.":2,maret:3,mar:3,"mar.":3,april:4,apr:4,"apr.":4,mei:5,juni:6,jun:6,"jun.":6,juli:7,jul:7,"jul.":7,agustus:8,agu:8,"agu.":8,agt:8,"agt.":8,ags:8,"ags.":8,september:9,sep:9,"sep.":9,sept:9,"sept.":9,oktober:10,okt:10,"okt.":10,november:11,nopember:11,nov:11,"nov.":11,nop:11,"nop.":11,desember:12,des:12,"des.":12},W5={satu:1,dua:2,tiga:3,empat:4,lima:5,enam:6,tujuh:7,delapan:8,sembilan:9,sepuluh:10,sebelas:11,"dua belas":12},G5={detik:`second`,menit:`minute`,jam:`hour`,hari:`day`,minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},hde=`(?:${Q(W5)}|[0-9]+|[0-9]+[\\.,][0-9]+|setengah)`;function gde(e){let t=e.toLowerCase();return W5[t]===void 0?t===`setengah`?.5:parseFloat(t.replace(`,`,`.`)):W5[t]}var K5=`(?:[1-9][0-9]{0,3}\\s*(?:SM|M)(?=\\W|$)|[1-2][0-9]{3}|[5-9][0-9])`;function q5(e){return/SM/i.test(e)?-parseInt(e.replace(/SM/i,``)):/M/i.test(e)?parseInt(e.replace(/M/i,``)):E$(parseInt(e))}var J5=`(?:(${hde})\\s{0,5}|se)(${Q(G5)})\\s{0,5}`,Y5=new RegExp(J5,`i`),X5=w$(``,J5,`\\s{0,5}(?:,|dan)?\\s{0,5}`);function Z5(e){let t={},n=e,r=Y5.exec(n);for(;r;){let e=r[1]?gde(r[1]):1,i=G5[r[2].toLowerCase()];t[i]=e,n=n.substring(r.index+r[0].length),r=Y5.exec(n)}return t}var _de=RegExp(`(?:(?:pada\\s+)?(?:tanggal|tgl\\.?)\\s*)?([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:\\s*|-|/)(${Q(U5)})(?:(?:\\s*|-|/|,\\s*)(?:tahun\\s+)?(${K5}))?(?=\\W|$)`,`i`),Q5=1,$5=2,vde=3,e7=4,yde=class extends ${innerPattern(){return _de}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=U5[t[vde].toLowerCase()],i=parseInt(t[Q5]);if(i>31)return t.index+=t[Q5].length,null;if(n.start.assign(`month`,r),n.start.assign(`day`,i),t[e7]?n.start.assign(`year`,q5(t[e7])):n.start.imply(`year`,D$(e.refDate,i,r)),t[$5]){let e=parseInt(t[$5]);if(e>31)return null;n.end=n.start.clone(),n.end.assign(`day`,e)}return n}},bde=RegExp(`(?:(?:pada\\s+)?bulan\\s+)?(${Q(U5)})(?:\\s*[,-]?\\s*(?:tahun\\s+)?(${K5}))?(?=[^\\s\\w]|\\s+[^0-9]|\\s+$|$)`,`i`),xde=1,t7=2,Sde=class extends ${innerPattern(){return bde}innerExtract(e,t){let n=t[xde].toLowerCase();if(n.length<=3&&n!==`mei`&&!t[t7])return null;let r=e.createParsingComponents(),i=U5[n];return r.imply(`day`,1),r.assign(`month`,i),t[t7]?r.assign(`year`,q5(t[t7])):r.imply(`year`,D$(e.refDate,1,i)),r}},Cde=RegExp(`(${Q(U5)})(?:-|/|\\s*,?\\s*)([0-9]{1,2})(?:\\s*(?:-|–|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*([0-9]{1,2}))?(?:(?:-|/|\\s*,\\s*|\\s+)(?:tahun\\s+)?(${K5}))?(?=\\W|$)(?![.:]\\d)`,`i`),wde=1,Tde=2,n7=3,r7=4,Ede=class extends ${innerPattern(){return Cde}innerExtract(e,t){let n=U5[t[wde].toLowerCase()],r=parseInt(t[Tde]);if(r>31)return null;let i=e.createParsingComponents({day:r,month:n});if(t[r7]?i.assign(`year`,q5(t[r7])):i.imply(`year`,D$(e.refDate,r,n)),!t[n7])return i;let a=parseInt(t[n7]);if(a>31)return null;let o=e.createParsingResult(t.index,t[0]);return o.start=i,o.end=i.clone(),o.end.assign(`day`,a),o}},Dde=RegExp(`(?:pada\\s+)?(hari\\s+)?(${Q(H5)})(?:\\s+(?:(?:minggu|pekan)\\s+)?(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin))?(?=\\W|$)`,`i`),Ode=1,kde=2,Ade=3,jde=class extends ${innerPattern(){return Dde}innerExtract(e,t){let n=t[kde].toLowerCase();if(n===`minggu`&&!t[Ode])return null;let r=H5[n],i=(t[Ade]||``).toLowerCase().replace(/\s+/g,` `),a=null;return i===`ini`?a=`this`:i===`depan`||i===`berikutnya`||i===`mendatang`?a=`next`:(i===`lalu`||i===`yang lalu`||i===`kemarin`)&&(a=`last`),c0(e.reference,r,a)}},i7=7,Mde=class extends L1{primaryPrefix(){return`(?:(?:pada\\s+)?(?:pukul|pkl\\.?|jam)\\s*)?`}followingPhase(){return`\\s*(?:\\-|\\–|\\~|\\〜|s\\.d\\.?|s/d|sampai(?:\\s+dengan)?|hingga)\\s*(?:(?:pukul|pkl\\.?|jam)\\s*)?`}primarySuffix(){return`(?:\\s*(pagi|siang|sore|petang|malam))?(?!/)(?=\\W|$)`}extractPrimaryTimeComponents(e,t){if(t[0].match(/^\s*\d{4}\s*$/))return null;let n=super.extractPrimaryTimeComponents(e,t);if(!n||!t[i7]||n.isCertain(`meridiem`))return n;let r=n.get(`hour`);if(r>12)return n;switch(t[i7].toLowerCase()){case`pagi`:r==12&&(r=0);break;case`siang`:r<10&&(r+=12);break;case`sore`:case`petang`:r<12&&(r+=12);break;case`malam`:r==12?r=0:r>=5&&(r+=12)}return n.assign(`hour`,r),n.assign(`meridiem`,r>=12?X.PM:X.AM),n}},Nde=RegExp(`(${X5})\\s{0,5}(?:yang\\s+)?(?:lalu|silam|sebelumnya)(?=\\W|$)`,`i`),Pde=class extends ${innerPattern(){return Nde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,x$(n))}},Fde=RegExp(`(${X5})\\s{0,5}(?:lagi|kemudian|setelahnya|sesudahnya|mendatang|ke\\s*depan)(?=\\W|$)`,`i`),Ide=class extends ${innerPattern(){return Fde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},Lde=RegExp(`(?:dalam\\s+(?:waktu\\s+)?)(${X5})(?=\\W|$)`,`i`),Rde=class extends ${innerPattern(){return Lde}innerExtract(e,t){let n=Z5(t[1]);return Z.createRelativeFromReference(e.reference,n)}},zde=RegExp(`(minggu|pekan|bulan|tahun)\\s+(ini|depan|berikutnya|mendatang|yang\\s+lalu|lalu|kemarin)(?=\\W|$)`,`i`),Bde=1,Vde=2,Hde={minggu:`week`,pekan:`week`,bulan:`month`,tahun:`year`},Ude=class extends ${innerPattern(){return zde}innerExtract(e,t){let n=t[Bde].toLowerCase(),r=t[Vde].toLowerCase().replace(/\s+/g,` `),i=Hde[n];if(r==`depan`||r==`berikutnya`||r==`mendatang`)return Z.createRelativeFromReference(e.reference,{[i]:1});if(r==`lalu`||r==`yang lalu`||r==`kemarin`)return Z.createRelativeFromReference(e.reference,{[i]:-1});let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i==`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i==`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i==`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},Wde=class extends J1{patternBetween(){return/^\s*(?:-|–|s\.d\.?|s\/d|sampai(?:\s+dengan)?|hingga)\s*$/i}},Gde=class extends Q1{patternBetween(){return/^\s*(?:pada|,|-|T)?\s*$/i}},Kde=new A2(qde());new A2(a7(!0));function qde(e=!0){let t=a7(!1,e);return t.parsers.unshift(new fde),t.parsers.unshift(new mde),t.parsers.unshift(new Sde),t.parsers.unshift(new Ude),t}function a7(e=!0,t=!0){return O0({parsers:[new c2(t),new yde,new Ede,new jde,new Mde(e),new Rde,new Pde,new Ide],refiners:[new Gde,new Wde]},e)}var o7={leftBoundary:`([^\\p{L}\\p{N}_]|^)`,rightBoundary:`(?=[^\\p{L}\\p{N}_]|$)`,flags:`iu`};function s7(e){return e.replace(/[٠-٩]/g,e=>(e.charCodeAt(0)-1632).toString())}var c7={الأحد:0,الاحد:0,أحد:0,احد:0,الإثنين:1,الاثنين:1,إثنين:1,اثنين:1,الثلاثاء:2,ثلاثاء:2,الأربعاء:3,الاربعاء:3,أربعاء:3,اربعاء:3,الخميس:4,خميس:4,الجمعة:5,جمعة:5,السبت:6,سبت:6},l7={يناير:1,فبراير:2,مارس:3,أبريل:4,ابريل:4,مايو:5,يونيو:6,يوليو:7,أغسطس:8,اغسطس:8,سبتمبر:9,أكتوبر:10,اكتوبر:10,نوفمبر:11,ديسمبر:12,"كانون الثاني":1,شباط:2,آذار:3,اذار:3,نيسان:4,أيار:5,ايار:5,حزيران:6,تموز:7,آب:8,اب:8,أيلول:9,ايلول:9,"تشرين الأول":10,"تشرين الاول":10,"تشرين الثاني":11,"كانون الأول":12,"كانون الاول":12},u7={واحد:1,واحدة:1,اثنان:2,اثنين:2,اثنتان:2,اثنتين:2,ثلاثة:3,ثلاث:3,أربعة:4,اربعة:4,أربع:4,اربع:4,خمسة:5,خمس:5,ستة:6,ست:6,سبعة:7,سبع:7,ثمانية:8,ثماني:8,ثمان:8,تسعة:9,تسع:9,عشرة:10,عشر:10,"أحد عشر":11,"احد عشر":11,"إحدى عشرة":11,"احدى عشرة":11,"اثنا عشر":12,"اثني عشر":12,"اثنتا عشرة":12,"اثنتي عشرة":12,نصف:.5,نص:.5,ربع:.25},d7={الأول:1,الاول:1,الأولى:1,الاولى:1,أول:1,اول:1,حادي:1,الحادي:1,الثاني:2,الثانية:2,ثاني:2,الثالث:3,الثالثة:3,ثالث:3,الرابع:4,الرابعة:4,رابع:4,الخامس:5,الخامسة:5,خامس:5,السادس:6,السادسة:6,سادس:6,السابع:7,السابعة:7,سابع:7,الثامن:8,الثامنة:8,ثامن:8,التاسع:9,التاسعة:9,تاسع:9,العاشر:10,العاشرة:10,عاشر:10,"الحادي عشر":11,"الحادية عشرة":11,"الثاني عشر":12,"الثانية عشرة":12,"الثالث عشر":13,"الثالثة عشرة":13,"الرابع عشر":14,"الرابعة عشرة":14,"الخامس عشر":15,"الخامسة عشرة":15,"السادس عشر":16,"السادسة عشرة":16,"السابع عشر":17,"السابعة عشرة":17,"الثامن عشر":18,"الثامنة عشرة":18,"التاسع عشر":19,"التاسعة عشرة":19,العشرون:20,العشرين:20,"الحادي والعشرون":21,"الحادية والعشرون":21,"الواحد والعشرون":21,"الثاني والعشرون":22,"الثانية والعشرون":22,"الثالث والعشرون":23,"الثالثة والعشرون":23,"الرابع والعشرون":24,"الرابعة والعشرون":24,"الخامس والعشرون":25,"الخامسة والعشرون":25,"السادس والعشرون":26,"السادسة والعشرون":26,"السابع والعشرون":27,"السابعة والعشرون":27,"الثامن والعشرون":28,"الثامنة والعشرون":28,"التاسع والعشرون":29,"التاسعة والعشرون":29,الثلاثون:30,الثلاثين:30,"الحادي والثلاثون":31,"الحادية والثلاثون":31,"الواحد والثلاثون":31},f7={ثانية:`second`,ثانيةً:`second`,ثواني:`second`,ثوان:`second`,ثوانٍ:`second`,دقيقة:`minute`,دقيقةً:`minute`,دقائق:`minute`,ساعة:`hour`,ساعةً:`hour`,ساعات:`hour`,يوم:`day`,يوماً:`day`,يوما:`day`,أيام:`day`,ايام:`day`,أسبوع:`week`,اسبوع:`week`,أسبوعاً:`week`,أسبوعا:`week`,اسبوعاً:`week`,اسبوعا:`week`,أسابيع:`week`,اسابيع:`week`,شهر:`month`,شهراً:`month`,شهرا:`month`,أشهر:`month`,اشهر:`month`,شهور:`month`,سنة:`year`,سنةً:`year`,سنوات:`year`,سنين:`year`,عام:`year`,عاماً:`year`,عاما:`year`,أعوام:`year`,اعوام:`year`},p7={ثانيتان:`second`,ثانيتين:`second`,دقيقتان:`minute`,دقيقتين:`minute`,ساعتان:`hour`,ساعتين:`hour`,يومان:`day`,يومين:`day`,أسبوعان:`week`,اسبوعان:`week`,أسبوعين:`week`,اسبوعين:`week`,شهران:`month`,شهرين:`month`,سنتان:`year`,سنتين:`year`,عامان:`year`,عامين:`year`},Jde=`(?:${Q(u7)}|[0-9٠-٩]+|[0-9٠-٩]+[\\.,][0-9٠-٩]+|\\s{0,3})`;function Yde(e){let t=e.trim();if(u7[t]!==void 0)return u7[t];if(t===``)return 1;let n=s7(t).replace(`,`,`.`);return parseFloat(n)}var m7=`(?:${Q(d7)}|[0-9٠-٩]{1,2})`;function h7(e){let t=e.trim();if(d7[t]!==void 0)return d7[t];let n=s7(t);return parseInt(n,10)}var g7=`(?:\\s*(?:ميلادية|ميلادي|م))?`,_7=`(?:[1-9١-٩][0-9٠-٩]{0,3}${g7}(?:\\s*(?:قبل الميلاد|ق\\.م))|[1-2١-٢][0-9٠-٩]{3}${g7}|[5-9٥-٩][0-9٠-٩]${g7})`;function v7(e){let t=e.trim(),n=/(قبل الميلاد|ق\.م)/i.test(t);t=t.replace(/(قبل الميلاد|ق\.م|ميلادية|ميلادي|م)/gi,``).trim();let r=s7(t),i=parseInt(r,10);return n?-i:E$(i)}var y7=`(?:${`(${Q(p7)})`}|${`(?:(${Jde})\\s{0,3})?(${Q(f7)})`}|(?:و\\s*)?(نصف|نص|ربع))`,b7=new RegExp(y7,o7.flags),x7=w$(`(?:(?:خلال|في غضون|في خلال|حوالي|تقريباً|تقريبا)\\s{0,3})?`,y7,`\\s{0,5},?(?:\\s*و)?\\s{0,5}`);function S7(e){let t={},n=e,r=b7.exec(n),i;for(;r&&(i=Xde(t,r,i),n=n.substring(r.index+r[0].length).trim(),n);)r=b7.exec(n);return t}function Xde(e,t,n){if(t[1]){let n=p7[t[1].trim()];if(n)return e[n]=(e[n]||0)+2,n}else if(t[3]){let n=Yde(t[2]?t[2].trim():``),r=f7[t[3].trim()];if(r)return e[r]=(e[r]||0)+n,r}else if(t[4]){let r=t[4].trim()===`ربع`?.25:.5;if(n)return e[n]=(e[n]||0)+r,n}return n}var Zde=class extends ${patternLeftBoundary(){return o7.leftBoundary}innerPattern(e){return new RegExp(this.innerPatternString(e),o7.flags)}innerPatternHasChange(e,t){return!1}},C7=class extends Zde{innerPattern(e){return RegExp(`${this.innerPatternString(e)}${o7.rightBoundary}`,o7.flags)}},Qde=class extends C7{innerPatternString(e){return`(الآن|الان|حالياً|حاليا|اليوم|أول\\s*(?:من\\s*)?أمس|اول\\s*(?:من\\s*)?امس|أول\\s*(?:من\\s*)?البارحة|اول\\s*(?:من\\s*)?البارحة|قبل\\s*(?:من\\s*)?أمس|قبل\\s*(?:من\\s*)?امس|أمس|امس|البارحة|بعد\\s*غد(?:اً|ا)?|بعد\\s*بكر[ةا]|غداً|غدا|بكر[ةا])`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n===`الآن`||n===`الان`||n===`حالياً`||n===`حاليا`?k0(e.reference):n===`اليوم`?A0(e.reference):n.match(/أول\s*(?:من\s*)?أمس/)||n.match(/اول\s*(?:من\s*)?امس/)||n.match(/أول\s*(?:من\s*)?البارحة/)||n.match(/اول\s*(?:من\s*)?البارحة/)||n.match(/قبل\s*(?:من\s*)?أمس/)||n.match(/قبل\s*(?:من\s*)?امس/)?N0(e.reference,2):n===`أمس`||n===`امس`||n===`البارحة`?j0(e.reference):n.match(/بعد\s*غد/)||n.match(/بعد\s*بكر/)?P0(e.reference,2):n===`غداً`||n===`غدا`||n.match(/^بكر[ةا]$/)?M0(e.reference):r}},$de=class extends C7{innerPatternString(e){return`(مساء\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*مساءً?|ليلة\\s*(?:أمس|امس|البارحة)|(?:أمس|امس|البارحة)\\s*ليلاً?|الليلة\\s*الماضية|منتصف\\s*النهار|منتصف\\s*الليل|هذا\\s*الصباح|هذا\\s*المساء|هذه\\s*الليلة|بعد\\s*الظهر|ظهر\\s*اليوم|الصباح|صباحاً|صباحا|الظهر|ظهراً|ظهرا|العصر|عصراً|عصرا|المساء|مساءً|مساء|الليلة|الليل|ليلاً|ليلا)`}innerExtract(e,t){let n=t[1].toLowerCase(),r=e.createParsingComponents();return n.match(/مساء\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*مساء/)?R0(e.reference):n.match(/ليلة\s*(?:أمس|امس|البارحة)/)||n.match(/(?:أمس|امس|البارحة)\s*ليلاً?/)||n===`الليلة الماضية`?I0(e.reference):n===`هذه الليلة`||n===`الليلة`?F0(e.reference):n===`منتصف الليل`?z0(e.reference):n===`منتصف النهار`||n===`ظهر اليوم`||n===`الظهر`||n===`ظهراً`||n===`ظهرا`?H0(e.reference):n===`بعد الظهر`||n===`العصر`||n===`عصراً`||n===`عصرا`?V0(e.reference):n===`هذا الصباح`||n===`الصباح`||n===`صباحاً`||n===`صباحا`?B0(e.reference):n===`هذا المساء`||n===`المساء`||n===`مساءً`||n===`مساء`?L0(e.reference):n===`الليل`||n===`ليلاً`||n===`ليلا`?L0(e.reference,22):r}},efe=1,tfe=2,nfe=3,rfe=class extends C7{innerPatternString(e){return`(?:(?:,|\\(|()\\s*)?(?:يوم\\s*)?(?:(هذا|هذه|الماضي|الماضية|السابق|السابقة|القادم|القادمة|المقبل|المقبلة)\\s+)?(${Q(c7)})(?:\\s+(هذا|هذه|الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة))?(?:\\s*(?:,|\\)|)))?`}innerExtract(e,t){let n=c7[t[tfe].toLowerCase()],r=t[efe],i=t[nfe],a=(r||i||``).toLowerCase(),o=null;return a===`الماضي`||a===`الماضية`||a===`السابق`||a===`السابقة`||a===`المنصرم`||a===`المنصرمة`?o=`last`:a===`القادم`||a===`القادمة`||a===`المقبل`||a===`المقبلة`?o=`next`:(a===`هذا`||a===`هذه`)&&(o=`this`),c0(e.reference,n,o)}},w7=1,T7=2,ife=3,E7=4,afe=class extends C7{innerPatternString(e){return`(?:(?:في|من)\\s*)?(${m7})(?:\\s*(?:إلى|وحتى|حتى|-|–)\\s*(${m7}))?(?:\\s*(?:من)?\\s*)(${Q(l7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${_7}(?![^\\s]\\d)))?`}innerExtract(e,t){let n=l7[t[ife].toLowerCase()],r=h7(t[w7]);if(r>31||r<1)return t.index+=t[w7].length,null;let i=e.createParsingResult(t.index,t[0]);if(i.start.assign(`month`,n),i.start.assign(`day`,r),t[E7]){let e=v7(t[E7]);i.start.assign(`year`,e)}else{let t=D$(e.refDate,r,n);i.start.imply(`year`,t)}if(t[T7]){let e=h7(t[T7]);i.end=i.start.clone(),i.end.assign(`day`,e)}return i}},ofe=1,D7=2,sfe=class extends C7{innerPatternString(e){return`(?:(?:في|خلال)\\s*)?(?:شهر\\s*)?(${Q(l7)})(?:(?:\\s*(?:،|,)?\\s*(?:سنة|عام)?\\s*)(${_7}))?`}innerExtract(e,t){if(e.text.substring(0,t.index).match(/[0-9٠-٩]+\s*$/))return null;let n=l7[t[ofe].toLowerCase()];if(!n)return null;let r=e.createParsingResult(t.index,t[0]);if(r.start.imply(`day`,1),r.start.assign(`month`,n),t[D7]){let e=v7(t[D7]);r.start.assign(`year`,e)}else{let t=D$(e.refDate,1,n);r.start.imply(`year`,t)}return r}},O7=2,k7=3,A7=4,j7=5,M7=6;function cfe(e,t,n,r){return RegExp(`${e}${t}([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${n}`,r)}function lfe(e,t){return RegExp(`^(${e})([0-9٠-٩]{1,4})(?:(?:\\.|:|:)([0-9٠-٩]{1,2})(?:(?::|:)([0-9٠-٩]{1,2})(?:\\.([0-9٠-٩]{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?|ص|م))?${t}`,`iu`)}var ufe=class extends L1{constructor(e=!1){super(e)}patternFlags(){return o7.flags}primaryPatternLeftBoundary(){return`(^|\\s|T|(?:[^\\p{L}\\p{N}_]))`}followingPhase(){return`\\s*(?:-|–|~|إلى|وحتى|حتى)\\s*`}primaryPrefix(){return`(?:(?:في\\s*تمام|في|الساعة|ساعة|من)\\s*)??`}primarySuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${o7.rightBoundary}`}followingSuffix(){return`(?:\\s*(?:صباحاً|صباحا|مساءً|مساء|ليلاً|ليلا|عصراً|عصرا|ظهراً|ظهرا))?(?!/)${o7.rightBoundary}`}getPrimaryTimePatternThroughCache(){return cfe(this.primaryPatternLeftBoundary(),this.primaryPrefix(),this.primarySuffix(),this.patternFlags())}getFollowingTimePatternThroughCache(){return lfe(this.followingPhase(),this.followingSuffix())}extractPrimaryTimeComponents(e,t){t[O7]&&(t[O7]=s7(t[O7])),t[k7]&&(t[k7]=s7(t[k7])),t[A7]&&(t[A7]=s7(t[A7])),t[j7]&&(t[j7]=s7(t[j7]));let n=super.extractPrimaryTimeComponents(e,t);if(n){let e=(t[M7]||``).toLowerCase(),r=t[0].toLowerCase(),i=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(r),a=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(r),o=/(?:ظهراً|ظهرا)/.test(r);if(i){let e=n.get(`hour`);e<12&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}else if(a)n.get(`hour`)===12&&n.assign(`hour`,0),n.assign(`meridiem`,X.AM);else if(o){let e=n.get(`hour`);e<12&&e!==0&&n.assign(`hour`,e+12),n.assign(`meridiem`,X.PM)}}return n}extractFollowingTimeComponents(e,t,n){t[O7]&&(t[O7]=s7(t[O7])),t[k7]&&(t[k7]=s7(t[k7])),t[A7]&&(t[A7]=s7(t[A7])),t[j7]&&(t[j7]=s7(t[j7]));let r=super.extractFollowingTimeComponents(e,t,n);if(r){let e=(t[M7]||``).toLowerCase(),i=t[0].toLowerCase(),a=e===`م`||e===`pm`||e===`p`||e===`p.m.`||/(?:مساءً|مساء|ليلاً|ليلا|عصراً|عصرا)/.test(i),o=e===`ص`||e===`am`||e===`a`||e===`a.m.`||/(?:صباحاً|صباحا)/.test(i),s=/(?:ظهراً|ظهرا)/.test(i);if(a){let e=r.get(`hour`);e<12&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}else if(o)r.get(`hour`)===12&&r.assign(`hour`,0),r.assign(`meridiem`,X.AM);else if(s){let e=r.get(`hour`);e<12&&e!==0&&r.assign(`hour`,e+12),r.assign(`meridiem`,X.PM)}n.start.isCertain(`meridiem`)||(a?(n.start.imply(`meridiem`,X.PM),n.start.get(`hour`)<12&&n.start.assign(`hour`,n.start.get(`hour`)+12)):o&&(n.start.imply(`meridiem`,X.AM),n.start.get(`hour`)===12&&n.start.assign(`hour`,0)))}return r}},dfe=class extends C7{innerPatternString(e){return`(?:(?:منذ|قبل)\\s*(${x7})|(${x7})\\s*(?:مضت|سابقاً))`}innerExtract(e,t){let n=x$(S7(t[1]||t[2]));return Z.createRelativeFromReference(e.reference,n)}},ffe=class extends C7{innerPatternString(e){return`(?:(?:بعد)\\s*(${x7})(?:\\s*من\\s*الآن)?|(${x7})\\s*(?:من\\s*الآن|لاحقاً|لاحقا))`}innerExtract(e,t){let n=S7(t[1]||t[2]);return Z.createRelativeFromReference(e.reference,n)}},pfe=class extends C7{innerPatternString(e){return`(?:في\\s*خلال|في\\s*غضون|في\\s*ظرف|خلال)\\s*(${x7})`}innerExtract(e,t){let n=S7(t[1]);return Z.createRelativeFromReference(e.reference,n)}},mfe=1,hfe=2,gfe=3,_fe=class extends C7{innerPatternString(e){return`(?:في\\s+)?(?:(هذا|هذه)\\s+)?(الشهر|الاسبوع|الأسبوع|العام|السنة)(?:\\s+(الماضي|الماضية|السابق|السابقة|المنصرم|المنصرمة|القادم|القادمة|المقبل|المقبلة|التالي|التالية))?`}innerExtract(e,t){(t[mfe]||``).toLowerCase();let n=t[hfe].toLowerCase(),r=(t[gfe]||``).toLowerCase(),i=`month`;if(n===`الاسبوع`||n===`الأسبوع`?i=`week`:(n===`العام`||n===`السنة`)&&(i=`year`),r===`القادم`||r===`القادمة`||r===`المقبل`||r===`المقبلة`||r===`التالي`||r===`التالية`){let t={};return t[i]=1,Z.createRelativeFromReference(e.reference,t)}if(r===`الماضي`||r===`الماضية`||r===`السابق`||r===`السابقة`||r===`المنصرم`||r===`المنصرمة`){let t={};return t[i]=-1,Z.createRelativeFromReference(e.reference,t)}let a=e.createParsingComponents(),o=new Date(e.reference.instant.getTime());return i===`week`?(o.setDate(o.getDate()-o.getDay()),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.imply(`year`,o.getFullYear())):i===`month`?(o.setDate(1),a.imply(`day`,o.getDate()),a.assign(`year`,o.getFullYear()),a.assign(`month`,o.getMonth()+1)):i===`year`&&(o.setDate(1),o.setMonth(0),a.imply(`day`,o.getDate()),a.imply(`month`,o.getMonth()+1),a.assign(`year`,o.getFullYear())),a}},vfe=class extends Q1{patternBetween(){return RegExp(`^\\s*(T|في\\s*تمام|في|الساعة|ساعة|,|-)?\\s*$`,`iu`)}},yfe=class extends J1{patternBetween(){return/^\s*(إلى|وحتى|حتى|-|–)\s*$/iu}},bfe=new A2(xfe());new A2(N7(!0));function xfe(e=!0){let t=N7(!1,e);return t.parsers.unshift(new Qde),t.parsers.unshift(new $de),t.parsers.unshift(new sfe),t.parsers.unshift(new _fe),t}function N7(e=!0,t=!0){return O0({parsers:[new c2(t),new pfe,new afe,new rfe,new ufe(e),new dfe,new ffe],refiners:[new vfe,new yfe]},e)}var Sfe=1,P7=2,Cfe=3,F7=4,I7=5,wfe=6,Tfe=class extends ${innerPattern(e){return RegExp(`(现在|立(?:刻|即)|即刻)|(今|明|前|大前|后|大后|昨)(早|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[Sfe])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[P7]){let e=t[P7],n=t[Cfe];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3),n==`早`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[F7]){let e=t[F7][0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[I7]){let e=t[I7];e==`明`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`后`?a.setDate(a.getDate()+2):e==`大后`&&a.setDate(a.getDate()+3);let n=t[wfe];if(n){let e=n[0];e==`早`||e==`上`?r.start.imply(`hour`,6):e==`下`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},L7={零:0,〇:0,一:1,二:2,两:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10},R7={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function z7(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?L7[r]:t*L7[r]:t+=L7[r]}return t}function Efe(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=L7[r]}return parseInt(t)}var B7=1,V7=2,H7=3,Dfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(L7).join(``)+`]{4}|[`+Object.keys(L7).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(L7).join(``)+`]{1,3})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(L7).join(``)+`]{1,3})?(?:\\s*)(?:日|号)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[V7]);if(isNaN(r)&&(r=z7(t[V7])),n.start.assign(`month`,r),t[H7]){let e=parseInt(t[H7]);isNaN(e)&&(e=z7(t[H7])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[B7]){let e=parseInt(t[B7]);isNaN(e)&&(e=Efe(t[B7])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Ofe=RegExp(`(\\d+|[`+Object.keys(L7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:(?:之|过)?后|(?:之)?内)`,`i`),U7=1,kfe=2,Afe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Ofe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[U7]);if(isNaN(r)&&(r=z7(t[U7])),isNaN(r)){let e=t[U7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[kfe][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=b$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r);let o=b$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},jfe=RegExp(`(\\d+|[`+Object.keys(L7).join(``)+`]+|半|几)(?:\\s*)(?:个)?(秒(?:钟)?|分钟|小时|钟|日|天|星期|礼拜|月|年)(?:之)?前`,`i`),W7=1,Mfe=2,Nfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return jfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[W7]);if(isNaN(r)&&(r=z7(t[W7])),isNaN(r)){let e=t[W7];if(e===`几`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Mfe][0];if(a.match(/[日天星礼月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`礼`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=x$(i);let t=b$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`钟`)&&(i.hour=r),i=x$(i);let o=b$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},Pfe=RegExp(`(?<prefix>上|下|这)(?:个)?(?:星期|礼拜|周)(?<weekday>`+Object.keys(R7).join(`|`)+`)`),Ffe=class extends ${innerPattern(){return Pfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=R7[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:a==`这`&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},Ife=RegExp(`(?:从|自)?(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(L7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),Lfe=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|后|大后|昨)(早|朝|晚)|(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|后|大后|昨)(?:日|天)(?:[\\s,,]*)(?:(上(?:午)|早(?:上)|下(?:午)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(L7).join(``)+`]+)(?:\\s*)(?:点|时|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(L7).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),G7=1,K7=2,q7=3,J7=4,Y7=5,X7=6,Z7=7,Q7=8,$7=9,Rfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Ife}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[G7]){let i=t[G7];i==`明`?e.reference.instant.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`后`?r.setDate(r.getDate()+2):i==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[J7]){let e=t[J7];e==`明`?r.setDate(r.getDate()+1):e==`昨`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`后`?r.setDate(r.getDate()+2):e==`大后`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[Q7]){let e=parseInt(t[Q7]);if(isNaN(e)&&(e=z7(t[Q7])),e>=60)return null;n.start.assign(`second`,e)}if(i=parseInt(t[X7]),isNaN(i)&&(i=z7(t[X7])),t[Z7]?t[Z7]==`半`?a=30:t[Z7]==`正`||t[Z7]==`整`?a=0:(a=parseInt(t[Z7]),isNaN(a)&&(a=z7(t[Z7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[$7]){if(i>12)return null;let e=t[$7][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12))}else if(t[K7]){let e=t[K7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[q7]){let e=t[q7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[Y7]){let e=t[Y7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let s=Lfe.exec(e.text.substring(n.index+n.text.length));if(!s)return n.text.match(/^\d+$/)?null:n;let c=new Date(r.getTime());if((s[G7]||s[J7])&&(c=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),s[G7]){let t=s[G7];t==`明`?e.reference.instant.getHours()>1&&c.setDate(c.getDate()+1):t==`昨`?c.setDate(c.getDate()-1):t==`前`?c.setDate(c.getDate()-2):t==`大前`?c.setDate(c.getDate()-3):t==`后`?c.setDate(c.getDate()+2):t==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else if(s[J7]){let e=s[J7];e==`明`?c.setDate(c.getDate()+1):e==`昨`?c.setDate(c.getDate()-1):e==`前`?c.setDate(c.getDate()-2):e==`大前`?c.setDate(c.getDate()-3):e==`后`?c.setDate(c.getDate()+2):e==`大后`&&c.setDate(c.getDate()+3),n.end.assign(`day`,c.getDate()),n.end.assign(`month`,c.getMonth()+1),n.end.assign(`year`,c.getFullYear())}else n.end.imply(`day`,c.getDate()),n.end.imply(`month`,c.getMonth()+1),n.end.imply(`year`,c.getFullYear());if(i=0,a=0,o=-1,s[Q7]){let e=parseInt(s[Q7]);if(isNaN(e)&&(e=z7(s[Q7])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(s[X7]),isNaN(i)&&(i=z7(s[X7])),s[Z7]?s[Z7]==`半`?a=30:s[Z7]==`正`||s[Z7]==`整`?a=0:(a=parseInt(s[Z7]),isNaN(a)&&(a=z7(s[Z7]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),s[$7]){if(i>12)return null;let e=s[$7][0].toLowerCase();e==`a`&&(o=0,i==12&&(i=0)),e==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(s[K7]){let e=s[K7][0];e==`早`?(o=0,i==12&&(i=0)):e==`晚`&&(o=1,i!=12&&(i+=12))}else if(s[q7]){let e=s[q7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}else if(s[Y7]){let e=s[Y7][0];e==`上`||e==`早`||e==`凌`?(o=0,i==12&&(i=0)):(e==`下`||e==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=s[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},zfe=RegExp(`(?:星期|礼拜|周)(?<weekday>`+Object.keys(R7).join(`|`)+`)`),Bfe=class extends ${innerPattern(){return zfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=R7[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},Vfe=class extends J1{patternBetween(){return/^\s*(至|到|-|~|~|-|ー)\s*$/i}},Hfe=class extends Q1{patternBetween(){return/^\s*$/i}};new A2(e9());var Ufe=new A2(e9());new A2(t9());function e9(){let e=t9();return e.parsers.unshift(new Tfe),e}function t9(){let e=O0({parsers:[new Dfe,new Ffe,new Bfe,new Rfe,new Afe,new Nfe],refiners:[new Vfe,new Hfe]});return e.refiners=e.refiners.filter(e=>!(e instanceof o0)),e}var Wfe=1,n9=2,Gfe=3,r9=4,i9=5,Kfe=6,qfe=class extends ${innerPattern(e){return RegExp(`(而家|立(?:刻|即)|即刻)|(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s|,|,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?`,`i`)}innerExtract(e,t){let n=t.index,r=e.createParsingResult(n,t[0]),i=e.refDate,a=new Date(i.getTime());if(t[Wfe])r.start.imply(`hour`,i.getHours()),r.start.imply(`minute`,i.getMinutes()),r.start.imply(`second`,i.getSeconds()),r.start.imply(`millisecond`,i.getMilliseconds());else if(t[n9]){let e=t[n9],n=t[Gfe];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3),n==`早`||n==`朝`?r.start.imply(`hour`,6):n==`晚`&&(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1))}else if(t[r9]){let e=t[r9][0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}else if(t[i9]){let e=t[i9];e==`明`||e==`聽`?i.getHours()>1&&a.setDate(a.getDate()+1):e==`昨`||e==`尋`||e==`琴`?a.setDate(a.getDate()-1):e==`前`?a.setDate(a.getDate()-2):e==`大前`?a.setDate(a.getDate()-3):e==`後`?a.setDate(a.getDate()+2):e==`大後`&&a.setDate(a.getDate()+3);let n=t[Kfe];if(n){let e=n[0];e==`早`||e==`朝`||e==`上`?r.start.imply(`hour`,6):e==`下`||e==`晏`?(r.start.imply(`hour`,15),r.start.imply(`meridiem`,1)):e==`中`?(r.start.imply(`hour`,12),r.start.imply(`meridiem`,1)):e==`夜`||e==`晚`?(r.start.imply(`hour`,22),r.start.imply(`meridiem`,1)):e==`凌`&&r.start.imply(`hour`,0)}}return r.start.assign(`day`,a.getDate()),r.start.assign(`month`,a.getMonth()+1),r.start.assign(`year`,a.getFullYear()),r}},a9={零:0,一:1,二:2,兩:2,三:3,四:4,五:5,六:6,七:7,八:8,九:9,十:10,廿:20,卅:30},o9={天:0,日:0,一:1,二:2,三:3,四:4,五:5,六:6};function s9(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];r===`十`?t=t===0?a9[r]:t*a9[r]:t+=a9[r]}return t}function Jfe(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];t+=a9[r]}return parseInt(t)}var c9=1,l9=2,u9=3,Yfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return RegExp(`(\\d{2,4}|[`+Object.keys(a9).join(``)+`]{4}|[`+Object.keys(a9).join(``)+`]{2})?(?:\\s*)(?:年)?(?:[\\s|,|,]*)(\\d{1,2}|[`+Object.keys(a9).join(``)+`]{1,2})(?:\\s*)(?:月)(?:\\s*)(\\d{1,2}|[`+Object.keys(a9).join(``)+`]{1,2})?(?:\\s*)(?:日|號)?`)}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[l9]);if(isNaN(r)&&(r=s9(t[l9])),n.start.assign(`month`,r),t[u9]){let e=parseInt(t[u9]);isNaN(e)&&(e=s9(t[u9])),n.start.assign(`day`,e)}else n.start.imply(`day`,e.refDate.getDate());if(t[c9]){let e=parseInt(t[c9]);isNaN(e)&&(e=Jfe(t[c9])),n.start.assign(`year`,e)}else n.start.imply(`year`,e.refDate.getFullYear());return n}},Xfe=RegExp(`(\\d+|[`+Object.keys(a9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:(?:之|過)?後|(?:之)?內)`,`i`),d9=1,Zfe=2,Qfe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return Xfe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[d9]);if(isNaN(r)&&(r=s9(t[d9])),isNaN(r)){let e=t[d9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[Zfe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r);let t=b$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r);let o=b$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},$fe=RegExp(`(\\d+|[`+Object.keys(a9).join(``)+`]+|半|幾)(?:\\s*)(?:個)?(秒(?:鐘)?|分鐘|小時|鐘|日|天|星期|禮拜|月|年)(?:之)?前`,`i`),f9=1,epe=2,tpe=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return $fe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=parseInt(t[f9]);if(isNaN(r)&&(r=s9(t[f9])),isNaN(r)){let e=t[f9];if(e===`幾`)r=3;else if(e===`半`)r=.5;else return null}let i={},a=t[epe][0];if(a.match(/[日天星禮月年]/)){a==`日`||a==`天`?i.day=r:a==`星`||a==`禮`?i.week=r:a==`月`?i.month=r:a==`年`&&(i.year=r),i=x$(i);let t=b$(e.refDate,i);return n.start.assign(`year`,t.getFullYear()),n.start.assign(`month`,t.getMonth()+1),n.start.assign(`day`,t.getDate()),n}a==`秒`?i.second=r:a==`分`?i.minute=r:(a==`小`||a==`鐘`)&&(i.hour=r),i=x$(i);let o=b$(e.refDate,i);return n.start.imply(`year`,o.getFullYear()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`day`,o.getDate()),n.start.assign(`hour`,o.getHours()),n.start.assign(`minute`,o.getMinutes()),n.start.assign(`second`,o.getSeconds()),n}},npe=RegExp(`(?<prefix>上|今|下|這|呢)(?:個)?(?:星期|禮拜|週)(?<weekday>`+Object.keys(o9).join(`|`)+`)`),rpe=class extends ${innerPattern(){return npe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=o9[t.groups.weekday];if(r===void 0)return null;let i=null,a=t.groups.prefix;a==`上`?i=`last`:a==`下`?i=`next`:(a==`今`||a==`這`||a==`呢`)&&(i=`this`);let o=new Date(e.refDate.getTime()),s=!1,c=o.getDay();if(i==`last`||i==`past`)o.setDate(o.getDate()+(r-7-c)),s=!0;else if(i==`next`)o.setDate(o.getDate()+(r+7-c)),s=!0;else if(i==`this`)o.setDate(o.getDate()+(r-c));else{let e=r-c;Math.abs(e-7)<Math.abs(e)&&(e-=7),Math.abs(e+7)<Math.abs(e)&&(e+=7),o.setDate(o.getDate()+e)}return n.start.assign(`weekday`,r),s?(n.start.assign(`day`,o.getDate()),n.start.assign(`month`,o.getMonth()+1),n.start.assign(`year`,o.getFullYear())):(n.start.imply(`day`,o.getDate()),n.start.imply(`month`,o.getMonth()+1),n.start.imply(`year`,o.getFullYear())),n}},ipe=RegExp(`(?:由|從|自)?(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(a9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),ape=RegExp(`(?:^\\s*(?:到|至|\\-|\\–|\\~|\\〜)\\s*)(?:(今|明|前|大前|後|大後|聽|昨|尋|琴)(早|朝|晚)|(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨))|(今|明|前|大前|後|大後|聽|昨|尋|琴)(?:日|天)(?:[\\s,,]*)(?:(上(?:午|晝)|朝(?:早)|早(?:上)|下(?:午|晝)|晏(?:晝)|晚(?:上)|夜(?:晚)?|中(?:午)|凌(?:晨)))?)?(?:[\\s,,]*)(?:(\\d+|[`+Object.keys(a9).join(``)+`]+)(?:\\s*)(?:點|時|:|:)(?:\\s*)(\\d+|半|正|整|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:分|:|:)?(?:\\s*)(\\d+|[`+Object.keys(a9).join(``)+`]+)?(?:\\s*)(?:秒)?)(?:\\s*(A.M.|P.M.|AM?|PM?))?`,`i`),p9=1,m9=2,h9=3,g9=4,_9=5,v9=6,y9=7,b9=8,x9=9,ope=class extends ${patternLeftBoundary(){return`()`}innerPattern(){return ipe}innerExtract(e,t){if(t.index>0&&e.text[t.index-1].match(/\w/))return null;let n=e.createParsingResult(t.index,t[0]),r=new Date(e.reference.instant.getTime());if(t[p9]){let i=t[p9];i==`明`||i==`聽`?e.refDate.getHours()>1&&r.setDate(r.getDate()+1):i==`昨`||i==`尋`||i==`琴`?r.setDate(r.getDate()-1):i==`前`?r.setDate(r.getDate()-2):i==`大前`?r.setDate(r.getDate()-3):i==`後`?r.setDate(r.getDate()+2):i==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else if(t[g9]){let e=t[g9];e==`明`||e==`聽`?r.setDate(r.getDate()+1):e==`昨`||e==`尋`||e==`琴`?r.setDate(r.getDate()-1):e==`前`?r.setDate(r.getDate()-2):e==`大前`?r.setDate(r.getDate()-3):e==`後`?r.setDate(r.getDate()+2):e==`大後`&&r.setDate(r.getDate()+3),n.start.assign(`day`,r.getDate()),n.start.assign(`month`,r.getMonth()+1),n.start.assign(`year`,r.getFullYear())}else n.start.imply(`day`,r.getDate()),n.start.imply(`month`,r.getMonth()+1),n.start.imply(`year`,r.getFullYear());let i=0,a=0,o=-1;if(t[b9]){var s=parseInt(t[b9]);if(isNaN(s)&&(s=s9(t[b9])),s>=60)return null;n.start.assign(`second`,s)}if(i=parseInt(t[v9]),isNaN(i)&&(i=s9(t[v9])),t[y9]?t[y9]==`半`?a=30:t[y9]==`正`||t[y9]==`整`?a=0:(a=parseInt(t[y9]),isNaN(a)&&(a=s9(t[y9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),t[x9]){if(i>12)return null;var c=t[x9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12))}else if(t[m9]){var l=t[m9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(t[h9]){var u=t[h9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(t[_9]){var d=t[_9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}n.start.assign(`hour`,i),n.start.assign(`minute`,a),o>=0?n.start.assign(`meridiem`,o):i<12?n.start.imply(`meridiem`,0):n.start.imply(`meridiem`,1);let f=ape.exec(e.text.substring(n.index+n.text.length));if(!f)return n.text.match(/^\d+$/)?null:n;let p=new Date(r.getTime());if((f[p9]||f[g9])&&(p=new Date(e.reference.instant.getTime())),n.end=e.createParsingComponents(),f[p9]){let t=f[p9];t==`明`||t==`聽`?e.refDate.getHours()>1&&p.setDate(p.getDate()+1):t==`昨`||t==`尋`||t==`琴`?p.setDate(p.getDate()-1):t==`前`?p.setDate(p.getDate()-2):t==`大前`?p.setDate(p.getDate()-3):t==`後`?p.setDate(p.getDate()+2):t==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else if(f[g9]){let e=f[g9];e==`明`||e==`聽`?p.setDate(p.getDate()+1):e==`昨`||e==`尋`||e==`琴`?p.setDate(p.getDate()-1):e==`前`?p.setDate(p.getDate()-2):e==`大前`?p.setDate(p.getDate()-3):e==`後`?p.setDate(p.getDate()+2):e==`大後`&&p.setDate(p.getDate()+3),n.end.assign(`day`,p.getDate()),n.end.assign(`month`,p.getMonth()+1),n.end.assign(`year`,p.getFullYear())}else n.end.imply(`day`,p.getDate()),n.end.imply(`month`,p.getMonth()+1),n.end.imply(`year`,p.getFullYear());if(i=0,a=0,o=-1,f[b9]){let e=parseInt(f[b9]);if(isNaN(e)&&(e=s9(f[b9])),e>=60)return null;n.end.assign(`second`,e)}if(i=parseInt(f[v9]),isNaN(i)&&(i=s9(f[v9])),f[y9]?f[y9]==`半`?a=30:f[y9]==`正`||f[y9]==`整`?a=0:(a=parseInt(f[y9]),isNaN(a)&&(a=s9(f[y9]))):i>100&&(a=i%100,i=Math.floor(i/100)),a>=60||i>24)return null;if(i>=12&&(o=1),f[x9]){if(i>12)return null;var c=f[x9][0].toLowerCase();c==`a`&&(o=0,i==12&&(i=0)),c==`p`&&(o=1,i!=12&&(i+=12)),n.start.isCertain(`meridiem`)||(o==0?(n.start.imply(`meridiem`,0),n.start.get(`hour`)==12&&n.start.assign(`hour`,0)):(n.start.imply(`meridiem`,1),n.start.get(`hour`)!=12&&n.start.assign(`hour`,n.start.get(`hour`)+12)))}else if(f[m9]){var l=f[m9][0];l==`朝`||l==`早`?(o=0,i==12&&(i=0)):l==`晚`&&(o=1,i!=12&&(i+=12))}else if(f[h9]){var u=f[h9][0];u==`上`||u==`朝`||u==`早`||u==`凌`?(o=0,i==12&&(i=0)):(u==`下`||u==`晏`||u==`晚`)&&(o=1,i!=12&&(i+=12))}else if(f[_9]){var d=f[_9][0];d==`上`||d==`朝`||d==`早`||d==`凌`?(o=0,i==12&&(i=0)):(d==`下`||d==`晏`||d==`晚`)&&(o=1,i!=12&&(i+=12))}return n.text+=f[0],n.end.assign(`hour`,i),n.end.assign(`minute`,a),o>=0?n.end.assign(`meridiem`,o):n.start.isCertain(`meridiem`)&&n.start.get(`meridiem`)==1&&n.start.get(`hour`)>i?n.end.imply(`meridiem`,0):i>12&&n.end.imply(`meridiem`,1),n.end.date().getTime()<n.start.date().getTime()&&!n.end.isCertain(`day`)&&n.end.addDurationAsImplied({day:1}),n}},spe=RegExp(`(?:星期|禮拜|週)(?<weekday>`+Object.keys(o9).join(`|`)+`)`),cpe=class extends ${innerPattern(){return spe}innerExtract(e,t){let n=e.createParsingResult(t.index,t[0]),r=o9[t.groups.weekday];if(r===void 0)return null;let i=new Date(e.refDate.getTime()),a=r-i.getDay();return Math.abs(a-7)<Math.abs(a)&&(a-=7),Math.abs(a+7)<Math.abs(a)&&(a+=7),i.setDate(i.getDate()+a),n.start.assign(`weekday`,r),n.start.imply(`day`,i.getDate()),n.start.imply(`month`,i.getMonth()+1),n.start.imply(`year`,i.getFullYear()),n}},lpe=class extends J1{patternBetween(){return/^\s*(至|到|\-|\~|~|-|ー)\s*$/i}},upe=class extends Q1{patternBetween(){return/^\s*$/i}};new A2(S9());var dpe=new A2(S9());new A2(C9());function S9(){let e=C9();return e.parsers.unshift(new qfe),e}function C9(){let e=O0({parsers:[new Yfe,new rpe,new cpe,new ope,new Qfe,new tpe],refiners:[new lpe,new upe]});return e.refiners=e.refiners.filter(e=>!(e instanceof o0)),e}var fpe=new Set([`with`,`about`,`from`,`on`,`the`,`a`,`and`,`meeting`]),w9=e=>e.toLocaleLowerCase().split(/[^\p{L}\p{N}]+/u).filter(e=>e&&!fpe.has(e)),T9={en:N2,de:S4,fr:d3,ja:zae,pt:noe,nl:Qoe,ru:Sse,es:Yse,uk:yce,it:Dle,sv:Qle,fi:Eue,vi:lde,id:Kde,ar:bfe,"zh-cn":Ufe,"zh-tw":dpe};function ppe(e,{now:t=new Date,locale:n=new Intl.DateTimeFormat().resolvedOptions().locale,language:r=n}={}){let i,a,o=e,s=(e=0)=>new Date(t.getFullYear(),t.getMonth(),t.getDate()+e),c=(t,n,r)=>{!Number.isFinite(n.getTime())||!Number.isFinite(r.getTime())||r<=n||(i={start:n.getTime(),end:r.getTime()},a=t,o=(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim())},l=/\b(?:(this|last) (week|month)|(past|last) (\d+) (days?|weeks?))\b/i.exec(e);if(l){let e,r;if(l[4])e=s(1-Number(l[4])*(l[5].toLowerCase().startsWith(`week`)?7:1)),r=s(1);else if(l[2].toLowerCase()===`month`){let n=l[1].toLowerCase()===`last`?-1:0;e=new Date(t.getFullYear(),t.getMonth()+n,1),r=new Date(t.getFullYear(),t.getMonth()+n+1,1)}else{let i=new Intl.Locale(n),a=i.getWeekInfo?.().firstDay??i.weekInfo?.firstDay??1,o=-((t.getDay()-a+7)%7)-(l[1].toLowerCase()===`last`?7:0);e=s(o),r=s(o+7)}c({start:l.index,end:l.index+l[0].length},e,r)}else{let a=new Intl.DateTimeFormat(n).formatToParts(new Date(2001,10,22)).map(e=>e.type),o=a.indexOf(`day`)<a.indexOf(`month`),l=r.toLowerCase(),u=T9[l]??T9[l.split(`-`)[0]]??N2;u===N2&&o&&(u=P2);let d=e=>new Date(e.get(`year`),e.get(`month`)-1,e.get(`day`));for(let n of u.parse(e,t)){let t=d(n.start),r=d(n.end??n.start),a={start:n.index,end:n.index+n.text.trimEnd().length},l=e.slice(0,a.start),f=n.start.isCertain(`month`)&&!n.start.isCertain(`day`),p=n.start.isCertain(`weekday`)&&!n.start.isCertain(`day`),m=/\bin\s+$/i.exec(l);if(f){if(!m||n.end)continue;a.start=m.index}else if(p){if(/^\p{L}+\.?$/u.test(n.text.trim())&&e.trim()!==n.text.trim())continue;t>s()&&!/\b(next|this)\b/i.test(n.text)&&(t.setDate(t.getDate()-7),r.setDate(r.getDate()-7))}else if(!n.start.isCertain(`day`))continue;if(u!==N2&&u!==P2||![...n.text.matchAll(/\b(\d{1,2})\/(\d{1,2})(?:\/\d{4})?\b/g)].some(e=>Number(e[o?2:1])>12)){if(n.start.isCertain(`month`)&&!n.start.isCertain(`year`)&&!n.end?.isCertain(`year`)&&t>s()){let e=t.getMonth(),n=r.getMonth();if(t.setFullYear(t.getFullYear()-1),r.setFullYear(r.getFullYear()-1),t.getMonth()!==e||r.getMonth()!==n)continue}if(n.end){let e=/\bfrom\s+$/i.exec(l);e&&(a.start=e.index)}if(c(a,t,f?new Date(t.getFullYear(),t.getMonth()+1,1):new Date(r.getFullYear(),r.getMonth(),r.getDate()+1)),i)break}}}return{text:o,words:w9(o),date:i,...a?{dateSpan:a}:{}}}var E9=e=>e.trim().toLocaleLowerCase().replace(/\s+/g,` `),D9=e=>e.email?.trim()?`email:${i$(e.email)}`:`name:${E9(e.name)}`,O9=e=>[...new Map(e.map(e=>[D9(e),e])).values()],mpe=(e,t)=>(e.slice(0,t.start)+` `+e.slice(t.end)).replace(/\s+/g,` `).trim(),hpe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);function gpe(e,t,n=[],r={}){let i=O9(t),a=new Set(n.map(D9)),o=[];for(let t of i){let n=a.has(D9(t)),r=[t.email?.trim(),...n||t.name.trim().split(/\s+/).length>1?[t.name.trim()]:[]].filter(e=>!!e);for(let n of r){let r=RegExp(`(?<![\\p{L}\\p{N}@._+-])${hpe(n).replace(/\s+/g,`\\s+`)}(?![\\p{L}\\p{N}@._+-])`,`iu`).exec(e);if(r){o.push({person:t,start:r.index,end:r.index+r[0].length});break}}}let s=o.filter(e=>!o.some(t=>t!==e&&t.start===e.start&&t.end===e.end&&a.has(D9(t.person))&&!a.has(D9(e.person)))),c=s.filter(e=>!s.some(t=>t.start<=e.start&&t.end>=e.end&&t.end-t.start>e.end-e.start)),l=c.filter(e=>!c.some(t=>t!==e&&t.start<e.end&&t.end>e.start)),u=e;for(let e of l)u=u.slice(0,e.start)+` `.repeat(e.end-e.start)+u.slice(e.end);let d=ppe(u,r).dateSpan,f=[...u.matchAll(/[\p{L}\p{N}][\p{L}\p{N}@._+'’-]*/gu)],p=[];for(let t of i){if(l.some(e=>D9(e.person)===D9(t)))continue;let n=c.find(e=>D9(e.person)===D9(t));if(n){p.push(n);continue}let r=E9(t.name).split(/\s+/),i;f.forEach((n,a)=>{if(d&&n.index>=d.start&&n.index<d.end)return;let o=n[0].toLocaleLowerCase();if(!w9(o).length||o.length<3&&o!==r[0])return;let s=e=>{(!i||e-n.index>i.end-i.start)&&(i={person:t,start:n.index,end:e})};t.email&&i$(t.email).startsWith(o)&&s(n.index+n[0].length),r.forEach((t,n)=>{for(let t=0;a+t<f.length&&n+t<r.length;t++){let i=f[a+t];if(d&&i.index>=d.start&&i.index<d.end||t&&!/^\s+$/.test(e.slice(f[a+t-1].index+f[a+t-1][0].length,i.index))||!r[n+t].startsWith(i[0].toLocaleLowerCase()))break;s(i.index+i[0].length)}})}),i&&p.push(i)}return{text:u,matches:l,suggestions:p}}function _pe(e,t,n,r,i=[],a){let o=i.find(e=>e.id===a||e.aliases?.includes(a)),s=[...o?.attendees??[],...t,...i.filter(e=>e!==o).flatMap(e=>e.attendees)],c=new Set(s.filter(e=>e.email?.trim()).map(e=>E9(e.name))),l=[...n,{name:r,email:null},...s.filter(e=>E9(e.name)===E9(r))],u=O9(s).filter(e=>(e.email?.trim()||!c.has(E9(e.name)))&&!l.some(t=>t.email?.trim()&&e.email?.trim()?i$(t.email)===i$(e.email):E9(t.name)===E9(e.name))),{matches:d,suggestions:f}=gpe(e,u),p=new Set([...d,...f].filter(t=>!mpe(e,t)).map(e=>D9(e.person)));return u.filter(e=>p.has(D9(e))).slice(0,5)}function k9(e,t,n,r=!0){(0,H.useLayoutEffect)(()=>{let i=e.current,a=t.current;if(!i||!a||!r)return;let o=a.closest(`[data-testid="note"]`),s=()=>{let e=a.parentElement.getBoundingClientRect(),t=i.getBoundingClientRect().width,n=getComputedStyle(i).direction===`rtl`,r=Math.max(12,Math.min(n?e.right-t:e.left,innerWidth-t-12));i.style.insetInlineStart=`${n?e.right-r-t:r-e.left}px`;let s=Math.min(innerHeight,o?.getBoundingClientRect().bottom??innerHeight);i.style.setProperty(`--people-available-height`,`${Math.max(0,s-e.bottom-16)}px`)};s(),i.querySelector(`input, button, [tabindex="-1"]`)?.focus({preventScroll:!0});let c=new ResizeObserver(s);c.observe(a),o&&c.observe(o);let l=e=>{!i.contains(e.target)&&!a.contains(e.target)&&n(!1)};return window.addEventListener(`resize`,s),window.addEventListener(`scroll`,s,!0),document.addEventListener(`pointerdown`,l),()=>{c.disconnect(),window.removeEventListener(`resize`,s),window.removeEventListener(`scroll`,s,!0),document.removeEventListener(`pointerdown`,l)}},[e,t,n,r])}var A9=(e,t)=>e.trim().toLowerCase()===t.trim().toLowerCase(),vpe=e=>j9(e).split(/\s+/)[0]??e;function j9(e){let t=M9(e);return!t?.email||t.name!==t.email?t?.name??e:o$(t.email)}function M9(e){let t=e.replace(/\s+/g,` `).trim();if(!t)return null;let n=/<?([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>?/.exec(t);return n?{name:t.replace(n[0],``).replace(/[,;]/g,` `).trim()||n[1],email:n[1]}:{name:t,email:null}}function N9(e,t,n=3){let r=e.filter(e=>!A9(e.name,t));if(!r.length)return U(`Me`);let i=r.slice(0,n).map(e=>vpe(e.name)).reduce((e,t)=>U(`{a}, {b}`,{a:e,b:t}));return r.length>n?U(`{name} + {more}`,{name:i,more:r.length-n}):i}function ype(e,t){return e.some(e=>!A9(e.name,t))?N9(e,t,2):U(`Add attendees`)}function P9(){let[e,t]=(0,H.useState)(``);return(0,H.useEffect)(()=>{window.yogurt.settings.get().then(e=>t(e.myName||e.macName))},[]),e}function bpe({m:e}){let[t,n]=(0,H.useState)(!1),r=Nf(t),i=P9(),a=(0,H.useRef)(null),o=(0,H.useCallback)((e=!0)=>{n(!1),e&&a.current?.focus({preventScroll:!0})},[]);return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsx)(`button`,{ref:a,"data-testid":`note-attendees`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),title:e.attendees.map(e=>e.email?`${e.name} <${e.email}>`:e.name).join(`, `)||void 0,className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:(0,G.jsxs)(`span`,{"data-testid":`note-attendees-summary`,className:`flex items-center gap-1.5`,children:[(0,G.jsx)(nv,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),ype(e.attendees,i)]})}),r.value&&(0,G.jsx)(xpe,{m:e,me:i,motionProps:r.props,chip:a,onClose:o})]})}function xpe({m:e,me:t,motionProps:n,chip:r,onClose:i}){let[a,o]=(0,H.useState)(``),[s,c]=(0,H.useState)(()=>!e.attendees.some(e=>!A9(e.name,t))),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)([]),[p,m]=(0,H.useState)([]),[h,g]=(0,H.useState)(null),_=(0,H.useId)(),v=_pe(a,d,e.attendees,t,p,e.eventId),y=v.findIndex(e=>D9(e)===h);(0,H.useEffect)(()=>{let t=0,n=()=>{let n=++t;window.yogurt.search.people().then(e=>{n===t&&f(e)},()=>{}),window.yogurt.calendar.day(e.eventStartedAt??e.startedAt).then(e=>{n===t&&m(e.status===`granted`?e.events:[])},()=>{n===t&&m([])})};n();let r=window.yogurt.meetings.onChange(n),i=window.yogurt.calendar.onChange(n);return()=>{t++,r(),i()}},[e.id,e.startedAt,e.eventStartedAt,e.eventId]);let b=(0,H.useRef)(null),x=(0,H.useRef)(null);k9(x,r,i,!n.inert),(0,H.useEffect)(()=>{x.current?.querySelector(`[role="option"][aria-selected="true"]`)?.scrollIntoView({block:`nearest`})},[h]),(0,H.useEffect)(()=>{s&&b.current?.focus({preventScroll:!0})},[s]);let S=async t=>{try{return await window.yogurt.meetings.setAttendees(e.id,t),!0}catch{return lQ.add({title:U(`Yogurt couldn't make that change. Try again.`)}),!1}},C=async(t=M9(a))=>{t&&(e.attendees.some(e=>t.email?.trim()&&e.email?.trim()?A9(e.email,t.email):A9(e.name,t.name))||await S([...e.attendees,t])&&(o(``),g(null),b.current?.focus()))},w=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},T=e.attendees.map((e,t)=>({p:e,i:t})).filter(({p:e})=>!A9(e.name,t)),E=s$([{p:{name:t||U(`Me`),email:e.attendees.find(e=>A9(e.name,t))?.email??null},i:-1,mine:!0},...T]);return(0,G.jsxs)(`div`,{ref:x,"data-testid":`people-card`,...n,"data-anchor":`start`,role:`dialog`,"aria-label":U(`People`),onKeyDown:w,className:`people-card menu-entry absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,children:[(0,G.jsx)(`div`,{"data-testid":`people-list`,className:`people-list grouped-people overflow-y-auto p-1.5`,children:E.map(t=>(0,G.jsxs)(`section`,{"aria-label":t.label||U(`Other people`),children:[(0,G.jsx)(`h4`,{className:`company-heading`,title:t.domain||void 0,children:t.label||U(`Other people`)}),(0,G.jsx)(`ul`,{children:t.people.map(({p:t,i:n,mine:r})=>(0,G.jsx)(Spe,{name:j9(t.name),email:t.email,mine:r,onRename:r?void 0:r=>window.yogurt.meetings.renameAttendee(e.id,n,r,t),onRemove:r?void 0:()=>void S(e.attendees.filter((e,t)=>t!==n))},t.email||n))})]},t.domain))}),(0,G.jsxs)(`div`,{className:`border-t border-line ${s?`p-3`:``}`,children:[(0,G.jsxs)(`button`,{"data-testid":`people-add-open`,onClick:()=>{c(!0),b.current?.focus()},className:`flex w-full items-center gap-2 text-start text-[13px] text-muted ${s?`mb-2`:`h-11 px-4 hover:bg-card`}`,children:[(0,G.jsx)(z_,{size:14,"aria-hidden":`true`}),U(`Add an attendee`)]}),s&&(0,G.jsx)(`div`,{className:`people-add-field flex h-9 items-center rounded-md border border-line bg-card px-2.5`,children:(0,G.jsx)(`input`,{ref:b,"data-testid":`people-add`,value:a,onChange:e=>{o(e.target.value),g(null)},maxLength:200,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":l&&v.length>0,"aria-controls":l&&v.length>0?_:void 0,"aria-activedescendant":l&&y>=0?`${_}-${y}`:void 0,onKeyDown:e=>{if(!e.nativeEvent.isComposing){if((e.key===`ArrowDown`||e.key===`ArrowUp`)&&v.length){e.preventDefault();let t=y<0?e.key===`ArrowDown`?0:v.length-1:(y+(e.key===`ArrowDown`?1:-1)+v.length)%v.length;g(D9(v[t]))}else e.key===`Enter`&&(e.preventDefault(),C(v[y]??M9(a)))}},placeholder:U(`Name or email`),"aria-label":U(`Add an attendee`),onFocus:()=>u(!0),onBlur:()=>u(!1),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})}),s&&l&&v.length>0&&(0,G.jsx)(`ul`,{id:_,role:`listbox`,"aria-label":U(`People`),className:`mt-1`,children:v.map((e,t)=>(0,G.jsxs)(`li`,{id:`${_}-${t}`,role:`option`,"aria-selected":t===y,onMouseDown:e=>e.preventDefault(),onMouseMove:()=>g(D9(e)),onClick:()=>void C(e),className:`person-row flex cursor-pointer items-center gap-2 rounded-md px-2.5 py-1.5 text-[13px] hover:bg-[var(--line)] ${t===y?`bg-[var(--line)]`:``}`,children:[(0,G.jsx)(nv,{size:14,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsxs)(`span`,{className:`min-w-0`,children:[(0,G.jsx)(`span`,{className:`block truncate`,children:j9(e.name)}),e.email&&(0,G.jsx)(`span`,{className:`block truncate text-xs text-muted`,children:e.email})]})]},D9(e)))}),a$(l,a)&&(0,G.jsxs)(`p`,{"data-testid":`people-private`,className:`mt-2 flex items-start gap-2 text-xs leading-relaxed text-muted`,children:[(0,G.jsx)(x_,{size:12,strokeWidth:1.75,"aria-hidden":`true`,className:`mt-0.5 shrink-0`}),(0,G.jsx)(`span`,{children:U(`Nothing is sent. This is only for your notes.`)})]})]})]})}function Spe({name:e,email:t,mine:n,onRemove:r,onRename:i}){let a=(0,H.useRef)(null),o=()=>{c(!1),requestAnimationFrame(()=>a.current?.focus())},[s,c]=(0,H.useState)(!1),[l,u]=(0,H.useState)(e),[d,f]=(0,H.useState)(!1),p=async()=>{if(l.trim()&&!d){f(!0);try{if(!await i?.(l))throw Error(`Attendee no longer available`);o()}catch{lQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{f(!1)}}};return(0,G.jsxs)(`li`,{"data-testid":`people-row`,"data-me":n?``:void 0,className:`person-row flex ${t?`min-h-[52px]`:`min-h-10`} items-center gap-2 rounded-md px-2.5 py-1.5`,children:[(0,G.jsx)(`span`,{className:`person-initials`,"aria-hidden":`true`,children:c$(e)}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1 text-[13px]`,title:t??void 0,children:[s?(0,G.jsx)(`input`,{"data-testid":`people-rename`,autoFocus:!0,value:l,disabled:d,maxLength:200,"aria-label":U(`Rename`),onChange:e=>u(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),p()),e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),o())},className:`w-full rounded border border-line bg-card px-1 py-0.5`}):i?(0,G.jsx)(`button`,{ref:a,"data-testid":`people-name`,title:U(`Rename`),className:`block max-w-full truncate text-start`,onClick:()=>{u(e),c(!0)},children:e}):(0,G.jsxs)(`span`,{className:`block truncate`,children:[e,n&&(0,G.jsxs)(`span`,{className:`text-muted`,children:[` `,U(`(me)`)]})]}),t&&(0,G.jsx)(`span`,{"data-testid":`people-email`,className:`block truncate text-xs leading-[17px] text-muted`,children:t})]}),i&&!s&&(0,G.jsx)(`button`,{"data-testid":`people-edit`,"aria-label":U(`Rename`),title:U(`Rename`),onClick:()=>{u(e),c(!0)},className:`person-remove grid size-6 shrink-0 place-items-center rounded text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,G.jsx)(F_,{size:14,strokeWidth:1.75,"aria-hidden":`true`})}),r&&(0,G.jsx)(`button`,{"data-testid":`people-remove`,onClick:r,"aria-label":U(`Remove {name}`,{name:e}),title:U(`Remove`),className:`person-remove grid size-6 shrink-0 place-items-center rounded-full text-muted hover:bg-[var(--line)] hover:text-ink`,children:(0,G.jsx)(av,{size:14,strokeWidth:1.75,"aria-hidden":`true`})})]})}var Cpe=6e5,wpe=(e,t,n)=>t!=null&&n>=e-6e5&&n<t;function Tpe(e,t){let[n,r]=(0,H.useState)(Date.now);return(0,H.useEffect)(()=>{let n,i=()=>{clearTimeout(n);let a=Date.now();r(a);let o=a<e-6e5?e-Cpe:t!=null&&a<t?t:void 0;o!==void 0&&(n=setTimeout(i,Math.min(o-a,2147483647)))};return i(),window.addEventListener(`focus`,i),()=>{clearTimeout(n),window.removeEventListener(`focus`,i)}},[e,t]),wpe(e,t,n)}var F9,I9=!1;function Epe(){if(!I9){I9=!0;let e=()=>{F9=void 0};window.yogurt.calendar.onChange(e),window.addEventListener(`focus`,e)}if(!F9){let e=window.yogurt.calendar.list();F9=e,e.then(t=>{t.status!==`granted`&&F9===e&&(F9=void 0)},()=>{F9===e&&(F9=void 0)})}return F9}function Dpe(e){let[t,n]=(0,H.useState)(),[r,i]=(0,H.useState)(0),a=(0,H.useCallback)(()=>i(e=>e+1),[]),o=e.eventStartedAt??e.startedAt,s=`${e.id}/${e.eventId}/${o}`,c=window.yogurt.capabilities.calendar&&!!e.eventId;return(0,H.useEffect)(()=>{if(!c)return;let e=!0;Promise.all([window.yogurt.calendar.day(o).catch(()=>({status:`error`,events:[]})),Epe().catch(()=>null)]).then(([t,r])=>{e&&n({key:s,result:t,colors:Object.fromEntries((r?.calendars??[]).filter(e=>/^#[0-9a-f]{6}$/i.test(e.color??``)).map(e=>[e.id,e.color]))})});let t=window.yogurt.calendar.onChange(a);return window.addEventListener(`focus`,a),()=>{e=!1,t(),window.removeEventListener(`focus`,a)}},[c,s,o,r,a]),{details:c&&t?.key===s?t:void 0,refresh:a}}function L9(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function Ope(e,t){return[...e].sort((e,n)=>Math.abs(e.start-t)-Math.abs(n.start-t)||e.start-n.start)}function kpe({m:e}){let[t,n]=(0,H.useState)(!1),r=Nf(t),i=(0,H.useRef)(null),{details:a,refresh:o}=Dpe(e),s=(0,H.useCallback)(()=>{n(!1),i.current?.focus({preventScroll:!0})},[]);return(0,G.jsxs)(`div`,{className:`relative`,children:[(0,G.jsxs)(`button`,{ref:i,"data-testid":`note-date`,"aria-haspopup":`dialog`,"aria-expanded":!!t,onClick:e=>n(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`note-chip flex items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[(0,G.jsx)(_g,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),kG(e.startedAt)]}),r.value&&(0,G.jsx)(Ape,{m:e,details:a,refreshLinked:o,chip:i,motionProps:r.props,onClose:s},e.id)]})}function Ape({m:e,details:t,refreshLinked:n,chip:r,motionProps:i,onClose:a}){let o=(0,H.useRef)(null),s=window.yogurt.capabilities.calendar,c=s&&!!e.eventId,[l,u]=(0,H.useState)(0),[d,f]=(0,H.useState)(!1),[p,m]=(0,H.useState)(e.eventStartedAt??e.startedAt),[h,g]=(0,H.useState)(t?.result),_=c?t?.result:h,v=(0,H.useRef)(c&&!t),[y,b]=(0,H.useState)(!1),x=(0,H.useRef)(null),[S,C]=(0,H.useState)(!1),w=cv(s&&!c&&!_),T=(0,H.useRef)(!1),E=(0,H.useRef)(null),D=(0,H.useRef)(null),O=(0,H.useRef)(null);k9(o,r,a,!i.inert);let k=(0,H.useRef)(new Map);t&&(t.result.status!==`granted`&&k.current.clear(),k.current.set(new Date(e.eventStartedAt??e.startedAt).toDateString(),t.result));let[A,j]=(0,H.useState)(e.eventId);if(A!==e.eventId){let n=e.eventStartedAt??e.startedAt;v.current=c&&!t,j(e.eventId),f(!1),m(n),g(k.current.get(new Date(n).toDateString()))}(0,H.useEffect)(()=>{if(!s||c)return;let e=!0;return window.yogurt.calendar.day(p).catch(()=>({status:`error`,events:[]})).then(t=>{e&&(t.status!==`granted`&&k.current.clear(),k.current.set(new Date(p).toDateString(),t),g(t))}),()=>{e=!1}},[s,c,p,l]);let M=e=>{g(k.current.get(new Date(e).toDateString())),m(e)};(0,H.useEffect)(()=>{d||M(e.eventStartedAt??e.startedAt)},[d,e.eventStartedAt,e.startedAt]);let N=new Date(e.eventStartedAt??e.startedAt).toDateString(),P=new Date(p).toDateString()===N?_:k.current.get(N),F=c?P?.events.find(t=>t.id===e.eventId||t.aliases?.includes(e.eventId))??(P?null:void 0):null;(0,H.useEffect)(()=>{if(!s||c)return;let e=()=>u(e=>e+1),t=window.yogurt.calendar.onChange(e);return window.addEventListener(`focus`,e),()=>{t(),window.removeEventListener(`focus`,e)}},[s,c]);let I=()=>c?n():u(e=>e+1),L=()=>void window.yogurt.calendar.connect().then(I,()=>c?n():g({status:`error`,events:[]})),R=_?.status===`granted`,ee=s&&!c&&(!_||R);(0,H.useEffect)(()=>{d&&T.current&&!c&&_&&!R&&O.current?.focus({preventScroll:!0})},[d,c,_,R]);let z=F?.start??(c?e.eventStartedAt:null)??e.startedAt,te=F?.end??(c?e.eventEndedAt:null),ne=F?.calendar??(c&&e.eventCalendarName?{name:e.eventCalendarName,source:e.eventCalendarSource}:null),re=Math.max(0,Math.round((e.durationMs??(e.endedAt?e.endedAt-e.startedAt:e.state===`recording`?Date.now()-e.startedAt:0))/6e4)),ie=Tpe(z,te),B=ie?F?.url?.trim():void 0,ae=F?.calendar?.id?t?.colors[F.calendar.id]:void 0,oe=new Date(ee?p:z),V={month:`short`,day:`numeric`,...oe.getFullYear()===new Date().getFullYear()?{}:{year:`numeric`}},se=oe.toLocaleDateString(xt(),{...V,weekday:`long`}),ce=oe.toLocaleDateString(xt(),{...V,weekday:`short`});(0,H.useLayoutEffect)(()=>{let e=x.current;if(!e)return;let t=document.createElement(`canvas`).getContext(`2d`),n=()=>{t.font=getComputedStyle(e).font,C(t.measureText(se).width>e.clientWidth)};n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[se,c]);let le=w===`skeleton`?(0,G.jsx)(`div`,{className:`loading-content`,"data-loading-phase":w,"aria-busy":`true`,children:(0,G.jsxs)(`div`,{className:`loading-placeholder`,children:[(0,G.jsx)(`span`,{role:`status`,className:`sr-only`,children:U(`Looking at your calendar…`)}),(0,G.jsx)(`div`,{className:`loading-mask`,"aria-hidden":`true`,children:(0,G.jsx)(`span`,{className:`loading-bar`,style:{width:`65%`}})})]})}):null,ue=_&&!R?(0,G.jsxs)(`div`,{className:`note-date-access flex flex-wrap items-center gap-x-3 gap-y-2`,children:[(0,G.jsx)(`p`,{role:`status`,className:`text-xs text-muted`,children:_.status===`error`?U(`Yogurt couldn't read your calendar`):U(`Calendar access is off`)}),(0,G.jsx)(`div`,{className:`ms-auto flex shrink-0`,children:(0,G.jsx)(`button`,{ref:O,className:`workspace-button agenda-open-note`,onClick:_.status===`error`?I:L,children:_.status===`error`?U(`Try again`):_.status===`denied`?U(`Open System Settings`):U(`Connect calendar`)})})]}):null;return(0,G.jsx)(`div`,{ref:o,"data-testid":`note-date-card`,...i,"data-anchor":`start`,"data-picking":ee||d,role:`dialog`,"aria-label":U(`Date`),className:`people-card menu-entry note-date-card absolute start-0 top-full z-30 mt-2 w-[min(340px,calc(100vw-48px))] rounded-lg border border-line bg-float text-ink shadow-[var(--shadow)]`,onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),c&&d?(f(!1),D.current?.focus({preventScroll:!0})):a())},children:(0,G.jsxs)(jpe,{view:`${e.eventId??`unlinked`}/${ee?`picker`:`details`}/${c?`linked`:_?.status??(w===`skeleton`?`skeleton`:`waiting`)}`,children:[!c&&(0,G.jsxs)(`div`,{className:`agenda-inspector-heading`,children:[(0,G.jsx)(`h3`,{ref:x,"data-testid":`note-date-heading`,tabIndex:-1,"aria-live":`polite`,"aria-label":se,title:se,children:S?ce:se}),(0,G.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:(R||d&&ee)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`button`,{type:`button`,ref:E,className:`workspace-icon`,"data-testid":`note-date-previous`,"aria-label":U(`Previous day`),disabled:y,onClick:e=>{T.current=e.detail===0,f(!0),M(L9(p,-1))},children:(0,G.jsx)(Cg,{size:15,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{type:`button`,className:`workspace-icon`,"data-testid":`note-date-next`,"aria-label":U(`Next day`),disabled:y,onClick:e=>{T.current=e.detail===0,f(!0),M(L9(p,1))},children:(0,G.jsx)(Tg,{size:15,"aria-hidden":`true`})})]})})]}),c&&(0,G.jsxs)(`div`,{className:`note-date-linked`,children:[(0,G.jsxs)(`button`,{type:`button`,ref:D,"data-testid":`note-date-events-toggle`,className:`note-date-event-toggle`,"aria-expanded":d,disabled:y,onClick:e=>{T.current=e.detail===0,f(e=>!e)},children:[(0,G.jsx)(`span`,{className:`note-date-color note-date-reveal`,"data-ready":!!ae,"aria-hidden":`true`,style:{backgroundColor:ae}}),(0,G.jsxs)(`span`,{className:`note-date-identity`,children:[(0,G.jsx)(`strong`,{title:F?.title||e.eventTitle||e.title,children:F?.title||e.eventTitle||e.title}),(0,G.jsx)(`span`,{className:`note-date-time`,children:te==null?`${AG(z)} · ${U(`{count} min`,{count:re})}`:jG(z,te)}),(ne?.name||v.current)&&(0,G.jsx)(`span`,{className:`note-date-calendar note-date-reveal`,"data-ready":!!ne?.name,title:ne?.name,children:ne?.name})]}),(0,G.jsx)(xg,{size:15,"aria-hidden":`true`})]}),(0,G.jsx)(`div`,{className:`accordion note-date-motion note-date-picker-motion`,"data-open":d,"aria-hidden":!d,inert:!d,children:(0,G.jsx)(`div`,{children:(0,G.jsx)(`div`,{className:`note-date-picker-space`,children:(0,G.jsx)(R9,{keyboard:T.current,open:d,m:e,day:p,result:_,loading:le,previous:D,linking:y,onLinking:b,onLinked:()=>requestAnimationFrame(()=>(D.current??x.current)?.focus({preventScroll:!0}))})})})})]}),!c&&!ee&&(0,G.jsx)(`div`,{className:`accordion note-date-motion note-date-details-motion`,"data-open":!0,children:(0,G.jsx)(`div`,{children:(0,G.jsx)(`div`,{className:`note-date-details`,children:(0,G.jsxs)(`div`,{className:`agenda-inspector-line`,children:[(0,G.jsx)(jg,{size:15,"aria-hidden":`true`}),(0,G.jsx)(`div`,{children:(0,G.jsxs)(`p`,{children:[AG(z),te==null?` · ${U(`{count} min`,{count:re})}`:` – ${AG(te)}`]})})]})})})}),c&&(ie&&!_||B||_&&(!R||F===null))&&(0,G.jsx)(`div`,{className:`note-date-actions`,"aria-busy":!_,children:(0,G.jsxs)(`div`,{className:`note-date-reveal`,"data-ready":!!_,children:[R&&F===null&&(0,G.jsxs)(`div`,{className:`note-date-access flex items-center gap-3 text-xs text-muted`,children:[(0,G.jsx)(`p`,{role:`status`,children:U(`Calendar event unavailable`)}),(0,G.jsx)(`button`,{className:`ms-auto shrink-0 underline`,onClick:I,children:U(`Try again`)})]}),B&&(0,G.jsx)(`div`,{className:`agenda-inspector-actions`,children:(0,G.jsxs)(`a`,{className:`workspace-button agenda-open-note`,title:U(`Join meeting`),href:B,target:`_blank`,rel:`noreferrer`,children:[(0,G.jsx)(`span`,{children:U(`Join meeting`)}),(0,G.jsx)(zg,{size:12,"aria-hidden":`true`})]})}),_?.status!==`unsupported`&&ue]})}),s&&!c&&_?.status!==`unsupported`&&!ee&&ue,ee&&(0,G.jsx)(R9,{keyboard:T.current,m:e,day:p,result:_,loading:le,previous:E,linking:y,onLinking:b,onLinked:()=>requestAnimationFrame(()=>(D.current??x.current)?.focus({preventScroll:!0}))})]})})}function R9({open:e=!0,keyboard:t,m:n,day:r,result:i,loading:a,previous:o,linking:s,onLinking:c,onLinked:l}){let[u,d]=(0,H.useState)(!1),f=(0,H.useRef)(null),p=(0,H.useRef)(null),m=P9();(0,H.useEffect)(()=>{e&&(f.current&&(f.current.scrollTop=0),t&&(f.current?.querySelector(`[data-event-id]`)??p.current??o.current)?.focus({preventScroll:!0}))},[e,t,i,o]),(0,H.useEffect)(()=>{e&&d(!1)},[e]);let h=async e=>{if(!s){c(!0),d(!1);try{await window.yogurt.meetings.linkEvent(n.id,e,r),l()}catch{d(!0)}finally{c(!1)}}},g=i?.events;return(0,G.jsxs)(`div`,{className:`note-date-picker`,children:[!n.eventId&&(!i||i.status===`granted`)&&(0,G.jsx)(qh,{enabled:!!g?.length,children:(0,G.jsx)(`div`,{ref:f,"data-testid":`note-date-events`,className:`note-date-events`,role:`group`,"aria-label":U(`Select calendar event`),onKeyDown:e=>{if(![`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key))return;let t=Array.from(e.currentTarget.querySelectorAll(`button[data-event-id]:not(:disabled)`));if(!t.length)return;e.preventDefault();let n=t.indexOf(document.activeElement),r=e.key===`Home`?0:e.key===`End`?t.length-1:(n+(e.key===`ArrowDown`?1:-1)+t.length)%t.length;t[r].focus({preventScroll:!0}),t[r].scrollIntoView({block:`nearest`,container:`nearest`})},children:i?i.events.length?Ope(g,n.startedAt).map(e=>(0,G.jsx)(`button`,{"data-event-id":e.id,"data-testid":`note-date-event`,className:`note-date-event`,disabled:s,onClick:()=>void h(e.id),children:(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{children:e.title||U(`Meeting`)}),(0,G.jsxs)(`small`,{children:[AG(e.start),` – `,AG(e.end)]}),!!e.attendees.length&&(0,G.jsx)(`small`,{children:N9(e.attendees,m)})]})},e.id)):(0,G.jsx)(`p`,{"data-testid":`note-date-events-none`,title:U(`No events`),children:U(`No events`)}):a})}),n.eventId&&(0,G.jsxs)(`button`,{ref:p,"data-testid":`note-date-unlink`,className:`note-date-link`,disabled:s,onClick:()=>void h(null),children:[(0,G.jsx)(h_,{size:14,"aria-hidden":`true`}),(0,G.jsxs)(`span`,{children:[U(`Unlink calendar event`),(0,G.jsx)(`small`,{children:U(`Keep the title, attendees and notes.`)})]})]}),u&&(0,G.jsx)(`p`,{role:`alert`,className:`text-xs text-danger`,children:U(`Yogurt couldn't update the calendar link. Try again.`)})]})}var jpe=class extends H.Component{shell=(0,H.createRef)();body=(0,H.createRef)();animations=[];copy=null;stop=()=>{this.animations.forEach(e=>e.cancel()),this.animations=[],this.copy?.remove(),this.copy=null};getSnapshotBeforeUpdate(e){let t=this.shell.current,n=this.body.current;if(e.view===this.props.view||!t||!n||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches||!parseFloat(getComputedStyle(t).getPropertyValue(`--note-date-ms`)))return null;let r=n.cloneNode(!0);return r.inert=!0,r.setAttribute(`aria-hidden`,`true`),r.querySelectorAll(`[id],[data-testid],[autofocus]`).forEach(e=>{e.removeAttribute(`id`),e.removeAttribute(`data-testid`),e.removeAttribute(`autofocus`)}),r.classList.add(`note-date-retiring`),{height:t.getBoundingClientRect().height,copy:r}}componentDidUpdate(e,t,n){if(!n){window.matchMedia(`(prefers-reduced-motion: reduce)`).matches&&this.stop();return}this.stop();let r=this.shell.current,i=this.body.current;this.copy=n.copy,r.append(n.copy);let a=getComputedStyle(r),o={duration:parseFloat(a.getPropertyValue(`--note-date-ms`)),easing:a.getPropertyValue(`--note-date-ease`).trim()},s=[r.animate([{height:`${n.height}px`},{height:`${i.getBoundingClientRect().height}px`}],o),i.animate([{opacity:0},{opacity:1}],o),n.copy.animate([{opacity:1},{opacity:0}],o)];this.animations=s,Promise.all(s.map(e=>e.finished)).then(()=>{this.animations===s&&this.stop()},()=>{})}componentWillUnmount(){this.stop()}render(){return(0,G.jsx)(`div`,{ref:this.shell,className:`note-date-swap`,children:(0,G.jsx)(`div`,{ref:this.body,className:`agenda-inspector-content`,children:this.props.children})})}},z9=()=>Ev({mac:U(`Uses the microphone your Mac is set to`),other:U(`Uses the microphone your computer is set to`)}),Mpe=1500,Npe=15e3,Ppe=8e3;function Fpe({recording:e,paused:t}){let[n,r]=(0,H.useState)(),[i,a]=(0,H.useState)(!1),o=Nf(i),[s,c]=(0,H.useState)(null),l=(0,H.useRef)(null),u=(0,H.useRef)(null),d=(0,H.useRef)(void 0),f=(0,H.useCallback)(()=>window.yogurt.audio.mics().then(e=>{d.current=e,r(e)}).catch(()=>{}),[]);(0,H.useEffect)(()=>{f(),window.addEventListener(`focus`,f);let t=e?setInterval(f,Npe):void 0,n=window.yogurt.audio.onMics(({fellBack:e})=>{e&&c(d.current?.using??``),f()});return()=>{window.removeEventListener(`focus`,f),clearInterval(t),n()}},[e,f]),(0,H.useEffect)(()=>{if(s===null)return;let e=setTimeout(()=>c(null),Ppe);return()=>clearTimeout(e)},[s]),(0,H.useEffect)(()=>{e||c(null)},[e]),(0,H.useEffect)(()=>{if(!i)return;f();let e=setInterval(f,Mpe),t=e=>{l.current?.contains(e.target)||a(!1)};return document.addEventListener(`mousedown`,t),()=>{clearInterval(e),document.removeEventListener(`mousedown`,t)}},[i,f]),(0,H.useEffect)(()=>{i&&l.current?.querySelector(`[role="menuitemradio"][aria-checked="true"], [role="menuitemradio"]`)?.focus()},[i]);let p=async e=>{a(!1),c(null),u.current?.focus(),n&&r({...n,choice:e,using:e?n.devices.find(t=>t.id===e)?.name??n.using:n.defaultName}),await window.yogurt.audio.setMic(e).catch(()=>!1),f()},m=e=>{let t=Array.from(l.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),a(!1),u.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&a(!1)},h=n?.using??U(`No microphone`),g=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,_=e=>(0,G.jsx)(yg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`});return(0,G.jsxs)(`div`,{ref:l,className:`relative flex min-w-0 items-center gap-1.5`,children:[(0,G.jsxs)(`button`,{ref:u,"data-testid":`rec-mic-chip`,"aria-haspopup":`menu`,"aria-expanded":!!i,title:U(`Microphone`),onClick:e=>a(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex max-w-[220px] items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,G.jsx)(tY,{show:t?`paused`:`mic`,options:{mic:(0,G.jsx)(k_,{size:11}),paused:(0,G.jsx)(tK,{size:11,fill:`currentColor`,strokeWidth:0})}}),(0,G.jsx)(`span`,{"data-testid":`rec-mic`,className:`truncate`,children:t?U(`Recording paused`):h}),(0,G.jsx)(xg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),s!==null&&(0,G.jsx)(`span`,{"data-testid":`rec-mic-note`,role:`status`,className:`text-ink`,children:U(`The selected microphone is unavailable, so recording is using your system microphone.`)}),o.value&&n&&(0,G.jsxs)(`div`,{"data-testid":`mic-menu`,...o.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":U(`Microphone`),onKeyDown:m,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-72 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===null,"data-testid":`mic-auto`,onClick:()=>void p(null),className:g,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[U(`Auto`),(0,G.jsx)(`span`,{"data-testid":`mic-auto-info`,title:z9(),"aria-label":z9(),className:`text-muted`,children:(0,G.jsx)(s_,{size:12,"aria-hidden":`true`})})]}),n.defaultName&&(0,G.jsx)(`span`,{"data-testid":`mic-auto-name`,className:`truncate text-xs text-muted`,children:n.defaultName})]}),_(n.choice===null)]}),n.devices.length>0&&(0,G.jsx)(`div`,{"aria-hidden":`true`,className:`mx-2 my-1 h-px bg-[var(--line)]`}),n.devices.map(e=>(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":n.choice===e.id,"data-testid":`mic-option`,"data-id":e.id,onClick:()=>void p(e.id),className:g,children:[(0,G.jsx)(`span`,{className:`truncate`,children:e.name}),_(n.choice===e.id)]},e.id))]})]})}var Ipe=e=>U(e===`en`?`English`:`Multi-language`);function Lpe(){let[e,t]=(0,H.useState)(),[n,r]=(0,H.useState)(!1),i=Nf(n),a=(0,H.useRef)(null),o=(0,H.useRef)(null);(0,H.useEffect)(()=>{let e=()=>void window.yogurt.settings.get().then(e=>t(e.spoken)).catch(()=>{});return e(),window.addEventListener(`focus`,e),()=>window.removeEventListener(`focus`,e)},[]),(0,H.useEffect)(()=>{if(!n)return;let e=e=>{a.current?.contains(e.target)||r(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[n]),(0,H.useEffect)(()=>{if(!n)return;let e=e=>a.current?.querySelector(e);(e(`[role="menuitemradio"][aria-checked="true"]`)??e(`[role="menuitemradio"]`))?.focus()},[n]);let s=e=>{r(!1),o.current?.focus(),t(e),window.yogurt.settings.setSpoken(e).catch(()=>{})},c=e=>{let t=Array.from(a.current?.querySelectorAll(`[role="menuitemradio"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),r(!1),o.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Home`?(e.preventDefault(),t[0]?.focus()):e.key===`End`?(e.preventDefault(),t.at(-1)?.focus()):e.key===`Tab`&&r(!1)};if(!e)return null;let l=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`,u=e=>(0,G.jsx)(yg,{size:15,"aria-hidden":`true`,className:`ms-auto shrink-0 ${e?``:`invisible`}`}),d=U(`Yogurt listens for the language being spoken. Pick it for meetings that are not in English.`);return(0,G.jsxs)(`div`,{ref:a,className:`relative flex min-w-0 items-center`,children:[(0,G.jsxs)(`button`,{ref:o,"data-testid":`spoken-chip`,"aria-haspopup":`menu`,"aria-expanded":!!n,title:U(`Spoken language`),onClick:e=>r(t=>t?!1:e.detail>0?`pointer`:`keyboard`),className:`bar-btn flex items-center gap-1.5 rounded-md px-1.5 py-0.5 hover:text-ink aria-expanded:text-ink`,children:[(0,G.jsx)(d_,{size:11,"aria-hidden":`true`,className:`shrink-0`}),(0,G.jsx)(`span`,{"data-testid":`spoken-name`,className:`truncate`,children:Ipe(e)}),(0,G.jsx)(xg,{size:11,"aria-hidden":`true`,className:`shrink-0`})]}),i.value&&(0,G.jsxs)(`div`,{"data-testid":`spoken-menu`,...i.props,"data-anchor":`bottom-start`,role:`menu`,"aria-label":U(`Spoken language`),onKeyDown:c,className:`menu-entry absolute bottom-full start-0 z-30 mb-2 w-64 rounded-xl border border-line bg-float p-1.5 text-ink shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`en`,"data-testid":`spoken-en`,onClick:()=>s(`en`),className:l,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(`span`,{children:U(`English only`)}),(0,G.jsx)(`span`,{className:`text-xs text-muted`,children:U(`Highest quality`)})]}),u(e===`en`)]}),(0,G.jsxs)(`button`,{role:`menuitemradio`,"aria-checked":e===`multi`,"data-testid":`spoken-multi`,onClick:()=>s(`multi`),className:l,children:[(0,G.jsxs)(`span`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(`span`,{children:U(`Multi-language`)}),(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted`,children:[U(`{count} languages supported`,{count:99}),(0,G.jsx)(`span`,{"data-testid":`spoken-multi-info`,title:d,"aria-label":d,children:(0,G.jsx)(s_,{size:12,"aria-hidden":`true`})})]})]}),u(e===`multi`)]})]})]})}function Rpe(){return null}var zpe={folder:Yg,star:uee,heart:r_,flag:Gg,bookmark:oee,briefcase:see,users:fee,handshake:$g,message:D_,video:pee,calendar:_g,clock:jg,target:dee,lightbulb:p_,rocket:cee,code:Ng,palette:N_,megaphone:T_,graduation:Zg,book:aee,flask:qg,coffee:Fg,house:a_,plane:L_};function B9({appearance:e,size:t=16}){let n=zpe[e.icon]??Yg;return(0,G.jsx)(`span`,{className:`folder-glyph`,"data-folder-icon":e.icon,"data-folder-color":e.color,"aria-hidden":`true`,children:(0,G.jsx)(n,{size:t,strokeWidth:1.75})})}function V9(e,t){let n=getComputedStyle(e.currentTarget).direction===`rtl`,r=e.key===`ArrowDown`?t:e.key===`ArrowUp`?-t:e.key===`ArrowRight`?n?-1:1:e.key===`ArrowLeft`?n?1:-1:0;if(!r&&e.key!==`Home`&&e.key!==`End`)return;let i=Array.from(e.currentTarget.querySelectorAll(`[role="radio"]:not(:disabled)`));if(!i.length)return;e.preventDefault();let a=i.indexOf(document.activeElement),o=e.key===`Home`?0:e.key===`End`?i.length-1:(a+r+i.length)%i.length;i[o].focus(),i[o].click()}function H9({value:e,onChange:t,disabled:n}){return(0,G.jsxs)(`div`,{className:`folder-choices`,children:[(0,G.jsx)(`div`,{className:`folder-choice-label`,children:U(`Icon`)}),(0,G.jsx)(`div`,{className:`folder-icon-grid`,role:`radiogroup`,"aria-label":U(`Icon`),onKeyDown:e=>V9(e,6),children:Object.keys(wt).map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.icon,"data-dialog-focus":r===e.icon||void 0,"aria-label":U(wt[r]),title:U(wt[r]),tabIndex:r===e.icon?0:-1,disabled:n,"data-testid":`folder-icon-${r}`,onClick:()=>t({...e,icon:r}),children:(0,G.jsx)(B9,{appearance:{icon:r,color:e.color},size:20})},r))}),(0,G.jsx)(`div`,{className:`folder-choice-label`,children:U(`Color`)}),(0,G.jsx)(`div`,{className:`folder-color-grid`,role:`radiogroup`,"aria-label":U(`Color`),onKeyDown:e=>V9(e,1),children:Object.keys(Tt).map(r=>(0,G.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":r===e.color,"aria-label":U(Tt[r]),title:U(Tt[r]),tabIndex:r===e.color?0:-1,disabled:n,"data-testid":`folder-color-${r}`,"data-folder-color":r,onClick:()=>t({...e,color:r}),children:(0,G.jsx)(`span`,{})},r))})]})}var U9=`application/x-yogurt-meeting`;function W9(e){let[t,n]=(0,H.useState)();return(0,H.useEffect)(()=>{if(e===null)return;let t=0,r=()=>{let r=++t;(e?window.yogurt.folders.of(e):window.yogurt.folders.list()).then(e=>{r===t&&n(e)},()=>{})};r();let i=window.yogurt.folders.onChange(r),a=window.yogurt.meetings.onChange(r);return()=>{t++,i(),a()}},[e]),t}async function Bpe(e,t){return G9(e,t,!0)}async function G9(e,t,n){if((await Promise.allSettled([...new Set(t)].map(async t=>{if(await(n?window.yogurt.folders.add(e,t):window.yogurt.folders.remove(e,t)),(await window.yogurt.folders.of(t)).some(t=>t.id===e)!==n)throw Error(`Folder membership not updated`)}))).some(e=>e.status===`rejected`))throw Error(n?`Folder not added`:`Folder not removed`)}function K9(e,t,n){let r=e.filter(e=>t[e]?.includes(n)).length;return r===0?!1:r===e.length||`mixed`}var Vpe=e=>e!==!0;function Hpe(e,t,n){let r=Object.entries(e).filter(([e,r])=>r.saving||r.source===n||K9(t,n,e)!==r.checked);return r.length===Object.keys(e).length?e:Object.fromEntries(r)}function q9({meetingId:e,meetingIds:t,memberships:n,suggestedId:r,onNew:i,testId:a,autoFocus:o=!1}){let s=W9(),c=(0,H.useRef)(null),l=s!==void 0;(0,H.useEffect)(()=>{o&&l&&(c.current?.querySelector(`[data-suggested]`)??c.current?.querySelector(`[role="menuitemcheckbox"], [role="menuitem"]`))?.focus()},[o,l]);let u=W9(n?null:e),d=(0,H.useMemo)(()=>t??(e?[e]:[]),[t,e]),f=(0,H.useMemo)(()=>n??{[e??``]:u?.map(e=>e.id)??[]},[n,e,u]),[p,m]=(0,H.useState)({}),h=(0,H.useRef)(!1),g=Object.values(p).some(e=>e.saving);(0,H.useEffect)(()=>{m(e=>Hpe(e,d,f))},[d,f,p]);let _=e=>e in p?p[e].checked:K9(d,f,e),v=async e=>{if(h.current||!d.length||!n&&!u)return;let t=Vpe(_(e));h.current=!0,m(n=>({...n,[e]:{checked:t,saving:!0,source:f}}));try{await G9(e,d,t),m(t=>({...t,[e]:{...t[e],saving:!1}}))}catch{m(t=>{let n={...t};return delete n[e],n}),lQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{h.current=!1}},y=`flex w-full items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm hover:bg-[var(--line)] focus-visible:bg-[var(--line)] focus-visible:outline-none`;return(0,G.jsxs)(`div`,{ref:c,"data-testid":a,role:`group`,"aria-label":U(`Folders`),children:[s?.map(e=>(0,G.jsxs)(`button`,{"data-suggested":e.id===r||void 0,role:`menuitemcheckbox`,"aria-checked":_(e.id),"aria-disabled":g||!n&&!u,"data-testid":`folder-option`,onClick:()=>void v(e.id),className:y,children:[(0,G.jsx)(B9,{appearance:e,size:15}),(0,G.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),e.id===r&&(0,G.jsx)(`span`,{className:`shrink-0 text-[10px] text-muted`,children:U(`Suggested`)}),_(e.id)===!0&&(0,G.jsx)(yg,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`}),_(e.id)===`mixed`&&(0,G.jsx)(j_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-accent`})]},e.id)),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`folder-new`,disabled:g,onClick:i,className:`${y} ${s?.length?`folder-picker-new`:``}`,children:[(0,G.jsx)(z_,{size:15,"aria-hidden":`true`,className:`shrink-0 text-muted`}),U(`New folder…`)]})]})}function Upe({meetingId:e,onNew:t,suggestion:n,row:r,rowFolders:i,children:a,onChoose:o}){let[s,c]=(0,H.useState)(null);(0,H.useEffect)(()=>{c(null);let t=0,n=()=>{let n=++t;window.yogurt.folders.suggestion(e).then(e=>{n===t&&c(e)},()=>{})};n();let r=window.yogurt.folders.onChange(n),i=window.yogurt.meetings.onChange(n);return()=>{t++,r(),i()}},[e]);let l=n??(s?{folder:s,dismiss:()=>c(null)}:void 0),u=W9(r?null:e),d=r?i:u,f=jf(),[p,m]=(0,H.useState)(null),[h,g]=(0,H.useState)(!1),[_,v]=(0,H.useState)(!1),y=Nf(_),b=(0,H.useRef)(null),x=(0,H.useRef)(null),S=(0,H.useRef)(null);(0,H.useLayoutEffect)(()=>{let e=S.current;S.current=null,e&&document.activeElement===document.body&&(r?e:x.current)?.focus({preventScroll:!0})}),(0,H.useEffect)(()=>{l&&d?.length&&l.dismiss(),p?.phase===`settled`&&d?.length&&m(null)},[d,l,p]),(0,H.useEffect)(()=>{if(!_)return;let e=e=>{b.current?.contains(e.target)||v(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[_]);let C=e=>{let t=Array.from(b.current?.querySelectorAll(`[role="menuitemcheckbox"], [role="menuitem"]`)??[]),n=t.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),v(!1),x.current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),t[(n+1)%t.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),t[(n-1+t.length)%t.length]?.focus()):e.key===`Tab`&&v(!1)},w=p&&!(p.phase===`settled`&&d?.length)?p:null,T=w?.folder??(d?.length===0?l?.folder:void 0),E=w?.phase===`accepted`||w?.phase===`settled`,D=T?.name??(d?.length?d.length===1?d[0].name:U(`{name} + {more}`,{name:d[0].name,more:d.length-1}):U(`Add to folder`)),O=()=>r?b.current?.closest(`li`)?.querySelector(`.native-meeting-link`):x.current,k=t=>{S.current=t??null,lQ.close(`folder-suggestion-${e}`),l?.dismiss(),c(null),v(!1)},A=async()=>{if(!T||h||w)return;let t=O();g(!0),m({folder:T,phase:`saving`});try{await window.yogurt.folders.dismissSuggestion(e),m({folder:T,phase:`dismissed`}),k(t)}catch{m(null),lQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{g(!1)}},j=async()=>{if(!T||h||w)return;let t=O(),n=T.id;m({folder:T,phase:`saving`}),g(!0),lQ.close(`folder-suggestion-${e}`);try{if(await window.yogurt.folders.add(n,e),!(await window.yogurt.folders.of(e)).some(e=>e.id===n))throw Error(`Folder not added`);m({folder:T,phase:`accepted`}),k(t)}catch{m(null),lQ.add({id:`folder-suggestion-${e}`,data:{testId:`folder-suggestion-error`},title:U(`Yogurt couldn't add this note to the folder. Try again.`)})}finally{g(!1)}};(0,H.useEffect)(()=>{if(!p||p.phase===`saving`||p.phase===`settled`)return;let e=O(),t=setTimeout(()=>{S.current=e??null,m(p.phase===`accepted`?{...p,phase:`settled`}:null)},f?Of.micro:Of.base);return()=>clearTimeout(t)},[p,f]);let M=T??(d?.length===1?d[0]:void 0);if(r&&!T)return a;let N=(0,G.jsxs)(`button`,{ref:x,"data-testid":`note-folders`,"aria-haspopup":`menu`,"aria-expanded":o?void 0:!!_,onClick:e=>{o&&T?o(T.id):v(t=>t?!1:e.detail>0?`pointer`:`keyboard`)},title:T?.name??(d?.map(e=>e.name).join(`, `)||void 0),className:T?`note-folder-name`:`note-chip flex max-w-64 items-center gap-1.5 rounded-md border border-line px-2.5 text-[13px] text-muted`,children:[r&&T?(0,G.jsx)(`span`,{className:`meeting-folder-dot`,"data-folder-color":T.color,"aria-hidden":`true`}):M?(0,G.jsx)(B9,{appearance:M,size:14}):(0,G.jsx)(Yg,{size:14,"aria-hidden":`true`,className:`shrink-0`}),(0,G.jsx)(`span`,{"data-testid":`note-folders-summary`,className:`truncate`,children:D})]});return(0,G.jsxs)(`div`,{ref:b,className:r?`meeting-folder-suggestion`:`relative`,onClick:r?e=>e.stopPropagation():void 0,children:[T?(0,G.jsxs)(`div`,{"data-testid":`folder-suggestion`,role:`group`,"aria-label":U(E?`Folders`:`Suggested`),inert:w?.phase===`dismissed`,"data-phase":w?.phase,className:r?`meeting-folder-pill meeting-folder-proposal`:`note-chip note-folder-proposal flex items-center rounded-md border border-line text-[13px] text-muted`,children:[N,(0,G.jsxs)(`div`,{className:`note-folder-actions`,inert:E||w?.phase===`dismissed`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-suggestion-cancel`,className:`workspace-icon`,disabled:h||!!w,onClick:()=>void A(),"aria-label":U(`Dismiss suggestion`),title:U(`Dismiss suggestion`),children:(0,G.jsx)(av,{size:r?12:15,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{"data-testid":`folder-suggestion-confirm`,className:`workspace-icon`,disabled:h||!!w,onClick:()=>void j(),"aria-label":U(`Add to folder`),title:U(`Add to folder`),children:(0,G.jsx)(yg,{size:r?12:15,"aria-hidden":`true`})})]})]}):N,y.value&&(0,G.jsx)(`div`,{"data-testid":`folder-menu`,...y.props,"data-anchor":`start`,role:`menu`,"aria-label":U(`Add to folder`),onKeyDown:C,className:`menu-entry absolute start-0 top-full z-30 mt-2 max-h-80 w-60 overflow-y-auto rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:(0,G.jsx)(q9,{autoFocus:!0,testId:`folder-chip-list`,meetingId:e,suggestedId:T?.id,onNew:()=>{v(!1),t?.()}})})]})}function J9({folder:e,onDone:t}){let[n,r]=(0,H.useState)(e??Et),[i,a]=(0,H.useState)(e?.name??``),[o,s]=(0,H.useState)(!1),[c,l]=(0,H.useState)(!1),u=async()=>{if(i.trim()&&!o){s(!0),l(!1);try{if(e)await window.yogurt.folders.rename(e.id,i),t();else{let e=await window.yogurt.folders.create(i,n);if(!e)throw Error(`Folder not created`);t(e)}}catch{l(!0),s(!1)}}};return(0,G.jsx)(KJ,{testId:`folder-name`,title:U(e?`Rename folder`:`New folder`),description:e?void 0:U(`A meeting can be in more than one folder.`),onCancel:()=>t(),busy:o,children:(0,G.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),u()},children:[(0,G.jsxs)(`div`,{className:`people-add-field mx-5 mb-4 flex h-9 items-center gap-2 rounded-md border border-line bg-card px-2.5`,children:[(0,G.jsx)(B9,{appearance:n,size:15}),(0,G.jsx)(`input`,{"data-dialog-focus":!0,"data-testid":`folder-name-input`,value:i,onChange:e=>a(e.target.value),maxLength:200,placeholder:U(`Folder name`),"aria-label":U(`Folder name`),className:`h-full min-w-0 flex-1 bg-transparent text-[13px] outline-none placeholder:text-muted`})]}),!e&&(0,G.jsx)(H9,{value:n,onChange:r,disabled:o}),c&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:U(`Yogurt couldn't save this folder.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-name-save`,type:`submit`,disabled:o||!i.trim(),className:`modal-button primary`,children:U(e?`Rename`:`Create folder`)}),(0,G.jsx)(GJ,{"data-testid":`folder-name-cancel`,type:`button`,"data-dialog-cancel":!0,disabled:o,className:`modal-button`,children:U(`Cancel`)})]})]})})}function Wpe({folder:e,onDone:t}){let[n,r]=(0,H.useState)(!1),[i,a]=(0,H.useState)(!1),o=async()=>{r(!0),a(!1);try{await window.yogurt.folders.delete(e.id),t(!0)}catch{a(!0),r(!1)}};return(0,G.jsxs)(KJ,{testId:`folder-delete-confirm`,role:`alertdialog`,title:U(`Delete “{name}”?`,{name:e.name}),description:U(`Only the folder is deleted. Its meetings stay in Meetings.`),onCancel:()=>t(!1),busy:n,children:[i&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:U(`Yogurt couldn't delete this folder.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-delete-yes`,onClick:()=>void o(),disabled:n,className:`modal-button danger`,children:U(`Delete folder`)}),(0,G.jsx)(GJ,{"data-testid":`folder-delete-cancel`,"data-dialog-cancel":!0,disabled:n,className:`modal-button`,children:U(`Cancel`)})]})]})}function Gpe({folder:e,onDone:t}){let[n,r]=(0,H.useState)({icon:e.icon,color:e.color}),[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(!1),c=async()=>{if(!i){a(!0),s(!1);try{if(!await window.yogurt.folders.appearance(e.id,n))throw Error(`Folder not saved`);t()}catch{s(!0),a(!1)}}};return(0,G.jsxs)(KJ,{testId:`folder-appearance`,title:U(`Change icon`),onCancel:t,busy:i,children:[(0,G.jsxs)(`div`,{className:`folder-appearance-preview`,children:[(0,G.jsx)(`span`,{className:`folder-preview-tile`,"data-folder-color":n.color,children:(0,G.jsx)(B9,{appearance:n,size:23})}),(0,G.jsx)(`strong`,{children:e.name})]}),(0,G.jsx)(H9,{value:n,onChange:r,disabled:i}),o&&(0,G.jsx)(`p`,{className:`modal-error`,role:`alert`,children:U(`Yogurt couldn't save this folder.`)}),(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`folder-appearance-save`,onClick:()=>void c(),disabled:i,className:`modal-button primary`,children:U(`Save`)}),(0,G.jsx)(GJ,{"data-dialog-cancel":!0,disabled:i,className:`modal-button`,children:U(`Cancel`)})]})]})}function Y9(e,t,n,r){let[,i]=(0,H.useState)(0),a=(0,H.useMemo)(()=>new t$(n=>t===`mine`?window.yogurt.notes.setMine(e,n.text,n.revision):window.yogurt.notes.setEnhanced(e,n.text,n.revision),n=>window.yogurt.notes.flushSync(e,t,n.text,n.revision)),[e,t]);return a.seed(n,r),(0,H.useEffect)(()=>(a.changed=()=>i(e=>e+1),r$(a)),[a]),{change:e=>a.change(e),flush:()=>a.flush(),status:a.status,reason:a.reason}}var X9=new Map;function Kpe({id:e,onTitleChange:t,at:n,folderSuggestion:r,onSource:i,onResumeRequested:a}){let[o,s]=(0,H.useState)(),[c,l]=(0,H.useState)(null);(0,H.useLayoutEffect)(()=>{if(!c)return;let e=()=>document.body.style.setProperty(`--note-footer-height`,`${innerHeight-c.getBoundingClientRect().top+16}px`);e();let t=new ResizeObserver(e);return t.observe(c),window.addEventListener(`resize`,e),()=>{t.disconnect(),window.removeEventListener(`resize`,e),document.body.style.removeProperty(`--note-footer-height`)}},[c]),(0,H.useEffect)(()=>{o&&t({id:o.id,title:o.title})},[o?.id,o?.title,t]);let[u,d]=(0,H.useState)(!1),[f,p]=(0,H.useState)(!1),[m,h]=(0,H.useState)(!1),[g,_]=(0,H.useState)(!1),[v,y]=(0,H.useState)(!1),[b,x]=(0,H.useState)(!1),[S,C]=(0,H.useState)(!1),[w,T]=(0,H.useState)(null),[E,D]=(0,H.useState)(),[O,k]=(0,H.useState)(!1),[A,j]=(0,H.useState)();(0,H.useEffect)(()=>{let t=!0,n=0;k(!1);let r=()=>{let r=++n;window.yogurt.transcript.get(e,{last:1}).then(e=>{t&&r===n&&k(e.some(e=>!!e.text.trim()))})},i=window.yogurt.transcript.onSegment(t=>{t.meetingId===e&&t.text.trim()&&(n++,k(!0))}),a=window.yogurt.transcript.onSpeakers(t=>{t===e&&r()});return r(),()=>{t=!1,i(),a()}},[e]),(0,H.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.setup.onState(e=>{t=!0,j(e)});return window.yogurt.setup.state().then(n=>{e&&!t&&j(n)}),()=>{e=!1,n()}},[]);let[M,N]=(0,H.useState)(()=>X9.get(e)?.view??`mine`),[P,F]=(0,H.useState)(!1),I=jf(),L=$Q(E,I),R=o?.id===e&&o.state!==`prepared`&&o.state!==`recording`&&!!E&&E.status!==`idle`,ee=P&&R&&I,z=ee?`enhanced`:M,te=(0,H.useRef)(X9.has(e)),ne=(0,H.useRef)(!1),[re,ie]=(0,H.useState)(()=>X9.get(e)?.primary??`notes`),B=ee?`notes`:re,ae=Lv(`note/${e}/${z}`,!!o&&!!E&&B===`notes`);(0,H.useEffect)(()=>{o&&E&&X9.set(e,{primary:B,view:z})},[e,o,E,B,z]);let[oe,V]=(0,H.useState)(B===`transcript`);(0,H.useEffect)(()=>{B===`transcript`&&V(!0)},[B]);let[se,ce]=(0,H.useState)(!1),le=(0,H.useRef)(null),ue=(0,H.useRef)(null),de=(0,H.useRef)(0);(0,H.useEffect)(()=>()=>{de.current++,ue.current?.skipTransition()},[e]);let fe=(0,H.useRef)(null),pe=(0,H.useRef)(null),me=(0,H.useRef)(null),he=(0,H.useRef)(null),[ge,_e]=(0,H.useState)(!1),[ve,ye]=(0,H.useState)(!1),[be,xe]=(0,H.useState)(!1),[Se,Ce]=(0,H.useState)(!1),[we,Te]=(0,H.useState)(!1),[Ee,De]=(0,H.useState)(null),[ke,Ae]=(0,H.useState)(null),je=(0,H.useRef)(void 0),[Me,Ne]=(0,H.useState)(null),Pe=Me?.note,Fe=(0,H.useRef)(void 0);(0,H.useEffect)(()=>{if(n&&E&&o&&Fe.current!==n.seq&&(Fe.current=n.seq,te.current=!0,ie(n.ms===null?`notes`:`transcript`),n.ms===null)){let e=n.match&&pt([E.enhanced??``],n.match)>=0;N(R&&(e||!n.match)?`enhanced`:`mine`)}},[n?.seq,E,o,R]);let Ie=o?.id===e&&o.state===`recording`,Le=async()=>{let t=!o?.paused;C(!0),T(null);try{await window.yogurt.meetings.setPaused(e,t)?s(await window.yogurt.meetings.get(e)):T(t?`pause`:`resume`)}catch{T(t?`pause`:`resume`)}finally{C(!1)}};(0,H.useEffect)(()=>{if(!Ie){Ne(null);return}let t=t=>Ne(t&&t.meetingId===e?t:null);return window.yogurt.widget.state().then(t),window.yogurt.widget.onState(t)},[e,Ie]),(0,H.useEffect)(()=>{let t=()=>void window.yogurt.meetings.get(e).then(s);return t(),window.yogurt.meetings.onChange(t)},[e]),(0,H.useEffect)(()=>{F(!1),ce(!1),D(void 0),je.current=void 0,N(X9.get(e)?.view??`mine`),te.current=X9.has(e),ne.current=!1,ye(!1),_e(!1),xe(!1),Ce(!1),y(!1),x(!1);let t=t=>{let n=!je.current,{view:r,keptEdits:i}=LY(je.current,t);i&&window.yogurt.notes.keptEdits(e),je.current=r,D(r);let a=t.saves?.mine?.status===`failed`?`mine`:t.saves?.enhanced?.status===`failed`?`enhanced`:void 0;n&&a&&(te.current=!0,N(a),ie(`notes`)),t.status!==`idle`&&!te.current&&!ne.current&&N(`enhanced`)},n=window.yogurt.notes.onChange(n=>{n.meetingId===e&&t(n)});return window.yogurt.notes.get(e).then(t),n},[e]),(0,H.useEffect)(()=>{je.current=E},[E]),(0,H.useEffect)(()=>{o?.state!==`recording`&&(o?.stopSavePending||E?.status!==`idle`)&&h(!1)},[o?.state,o?.stopSavePending,E?.status]),(0,H.useEffect)(()=>{if(!P||!R)return;let e=()=>{Je(`notes`,`enhanced`,!0),he.current?.focus({preventScroll:!0})};if(I){e();return}let t=setTimeout(e,Of.micro);return()=>clearTimeout(t)},[e,P,R,I]);let Re=Y9(e,`mine`,E?.mine??``,E?.saves?.mine),ze=Y9(e,`enhanced`,E?.enhanced??``,E?.saves?.enhanced);(0,H.useLayoutEffect)(()=>{let e=fe.current;if(!e)return;let t=()=>{let t=(B===`transcript`?pe:z===`enhanced`&&he.current?he:me).current;if(!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=getComputedStyle(e).direction===`rtl`?n.right-r.right:n.left-r.left;e.style.setProperty(`--tab-x`,`${i}px`),e.style.setProperty(`--tab-width`,`${n.width}px`)};t();let n=new ResizeObserver(t);n.observe(e);for(let e of[pe.current,me.current,he.current])e&&n.observe(e);return()=>n.disconnect()},[B,z,o?.state,E?.status]);let Be=m||E?.status===`waiting`||E?.status===`writing`,Ve=(0,H.useRef)(!1);if((0,H.useEffect)(()=>{a?Ve.current||!o||!E||Be||f||o.stopSavePending||(Ve.current=!0,a(),o.trashedAt!=null||o.stopSavePending||o.state!==`stopped`&&o.state!==`done`||Qe()):Ve.current=!1},[a,o,E,Be,f]),!o||!E)return(0,G.jsx)(sK,{pending:!0,skeleton:(0,G.jsx)(sv,{layout:`note`}),className:`loading-note-frame`});let He=o.state===`recording`,Ue=o.trashedAt!=null,We=o.endedAt?Math.max(1,Math.round((o.durationMs??o.endedAt-o.startedAt)/6e4)):null,Ge=R?z:`mine`,Ke=e=>{te.current=!0,N(e),Re.flush(),ze.flush()},qe=(e,t=!1)=>{ce(t),e!==re&&(ie(e),e===`transcript`&&_e(!1),Re.flush(),ze.flush())},Je=(e,t,n=!1)=>{F(!1);let r=++de.current;ue.current?.skipTransition();let i=()=>{r===de.current&&(qe(e,n),t&&Ke(t))},a=le.current;e===B&&(!t||t===Ge)||!a?.startViewTransition||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches?i():(ue.current=a.startViewTransition(()=>(0,Oe.flushSync)(i)),ue.current.ready.catch(()=>{}))},Ye=e=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(e.key))return;e.preventDefault();let t=[pe.current,me.current,...R?[he.current]:[]],n=getComputedStyle(e.currentTarget).direction===`rtl`?-1:1,r=e.key===`ArrowRight`?n:-n,i=t.indexOf(e.currentTarget),a=e.key===`Home`?0:e.key===`End`?t.length-1:(i+r+t.length)%t.length;t[a]?.click(),t[a]?.focus({preventScroll:!0})},Xe=async()=>(await Promise.all([Re.flush(),ze.flush()])).every(Boolean),Ze=async()=>{if(!f){p(!0),_(!1);try{if(!await Xe())return;let t=await window.yogurt.meetings.startPrepared(e);_(`error`in t),`error`in t||(ie(`notes`),N(`mine`))}catch{_(!0)}finally{p(!1)}}},Qe=async(t=!1)=>{if(!(f||Be)){if((E.edited||ve)&&!t)y(!0);else{y(!1),p(!0),x(!1);try{if(!await Xe())return;`error`in await window.yogurt.meetings.resume(e)?x(!0):(te.current=!1,F(!1),ie(`notes`),N(`mine`),ye(!1))}catch{x(!0)}finally{p(!1)}}}},$e=Re.status===`failed`||ze.status===`failed`?`failed`:Re.status===`saving`||ze.status===`saving`?`saving`:`saved`,et=async t=>{await Xe()&&(ye(!1),window.yogurt.notes.writeAgain(e,t))},tt=!!E.enhanced?.trim(),nt=JQ({hasSummary:tt,hasContent:O||!!E.mine.trim(),recording:He,busy:Be,downloading:!!(A?.notesDownloading||A?.notesError),trashed:Ue}),rt=()=>{nt&&!nt.reason&&(tt?_e(!0):et())};return(0,G.jsx)(sK,{pending:!1,skeleton:(0,G.jsx)(sv,{layout:`note`}),className:`loading-note-frame`,children:(0,G.jsxs)(`div`,{"data-testid":`note`,className:`document-main relative flex h-full bg-bg`,children:[v&&(0,G.jsx)(KJ,{testId:`resume-confirm`,role:`alertdialog`,title:U(`Record more in this note?`),description:U(`Your notes, transcript, and previous audio are kept. Your edited summary will be replaced when you finish recording.`),onCancel:()=>y(!1),children:(0,G.jsxs)(`div`,{className:`modal-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`resume-yes`,onClick:()=>void Qe(!0),className:`modal-button primary`,children:U(`Resume recording`)}),(0,G.jsx)(GJ,{"data-dialog-cancel":!0,"data-testid":`resume-cancel`,className:`modal-button`,children:U(`Cancel`)})]})}),(0,G.jsx)(`div`,{"data-testid":`note-topbar`,className:`note-topbar no-drag fixed end-4 top-[10px] z-[60]`,children:(0,G.jsx)(YQ,{generation:nt,hasSummary:tt,edited:E.edited||ve,rewriteOpen:ge,setRewriteOpen:_e,onWriteAgain:e=>{nt&&!nt.reason&&(qe(`notes`),Ke(`enhanced`),et(e))},recording:He,savePending:o.stopSavePending,trashed:Ue,onRename:()=>xe(!0),onDelete:()=>{Xe().then(t=>{t&&(Ue?Ce(!0):uQ(e,`/note/${e}`))})},folders:t=>(0,G.jsx)(q9,{testId:`note-menu-folders`,meetingId:e,onNew:()=>{t(),Te(!0)}})},e)}),(0,G.jsxs)(`div`,{className:`note-layout relative flex min-w-0 flex-1 flex-col`,"data-tab-pointer":se,children:[(0,G.jsxs)(`header`,{className:`note-header note-page-width`,children:[(0,G.jsx)(qpe,{id:e,title:o.title,editing:be,onEdit:xe}),(0,G.jsxs)(`div`,{className:`note-meta-row`,children:[(0,G.jsxs)(`div`,{className:`note-metadata`,"data-testid":`note-metadata`,children:[(0,G.jsx)(kpe,{m:o}),(0,G.jsx)(bpe,{m:o}),(0,G.jsx)(Upe,{meetingId:e,onNew:()=>Te(!0),suggestion:r})]}),(0,G.jsxs)(`div`,{"data-testid":He?`rec-bar`:`note-bar`,className:`note-header-actions`,children:[(0,G.jsxs)(`div`,{"data-testid":`note-state`,"data-state":o.state,"data-paused":!!o.paused,className:`note-recording-group`,"data-recording":He&&!m,role:`group`,"aria-label":He?o.paused?U(`Paused`):U(`Recording`):U(`Meeting controls`),children:[He&&!m&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`span`,{className:`note-recording-status`,children:[(0,G.jsx)(CQ,{height:14,bars:3,testId:`note-wave`,paused:!!o.paused,className:`text-muted`}),(0,G.jsx)(wQ,{view:Me})]}),(0,G.jsx)(`button`,{"data-testid":`note-pause`,disabled:S,onClick:()=>{Le()},"aria-label":o.paused?U(`Resume recording`):U(`Pause recording`),title:o.paused?U(`Resume recording`):U(`Pause recording`),className:`note-record-action note-pause-action`,children:(0,G.jsx)(tY,{show:o.paused?`play`:`pause`,options:{pause:(0,G.jsx)(tK,{size:14,fill:`currentColor`,strokeWidth:0}),play:(0,G.jsx)(nK,{size:14,fill:`currentColor`,strokeWidth:0})}})}),(0,G.jsx)(`button`,{"data-testid":`note-stop`,onClick:t=>{F(!0),te.current=!0,N(`mine`),h(!0),ce(t.detail>0),window.yogurt.meetings.stop(e)},"aria-label":U(`Finish recording`),title:U(`Finish recording`),className:`note-record-action note-finish-action primary`,children:U(`Finish`)})]}),m&&(0,G.jsx)(`span`,{"data-testid":`note-finishing`,role:`status`,className:`note-finishing`,children:U(`Finishing…`)}),!m&&(o.state===`stopped`||o.state===`done`)&&!o.stopSavePending&&!Ue&&(0,G.jsxs)(`button`,{"data-testid":`note-resume`,disabled:f,"aria-busy":Be,"data-processing":Be,onClick:()=>{Be?window.yogurt.notes.stop(e).catch(console.error):Qe()},"aria-label":U(Be?`Stop summary`:`Resume recording`),className:`note-record-action note-resume-action`,title:U(Be?`Stop summary`:`Resume recording in this note`),children:[(0,G.jsx)(tY,{show:Be?`busy`:`mic`,options:{mic:(0,G.jsx)(eK,{size:14}),busy:(0,G.jsxs)(`span`,{className:`summary-stop-icon`,children:[(0,G.jsx)(aK,{size:14}),(0,G.jsx)(`span`,{className:`summary-stop-square`})]})}}),(0,G.jsx)(nY,{text:U(Be?`Summarizing…`:f?`Preparing…`:`Resume recording`),widest:U(`Resume recording`)})]}),o.state===`prepared`&&!Ue&&(0,G.jsxs)(`button`,{"data-testid":`note-start`,disabled:f,onClick:()=>{Ze()},className:`note-record-action primary`,children:[(0,G.jsx)(eK,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(f?`Starting…`:`Start recording`)]})]}),(0,G.jsx)(EQ,{id:e,shown:Ge,status:E.status,hasEnhanced:E.enhanced!=null,beforeUse:Xe})]})]}),Ue&&(0,G.jsxs)(`div`,{"data-testid":`note-trashed`,role:`status`,className:`mt-5 flex flex-wrap items-center gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,G.jsx)(Z_,{size:16,"aria-hidden":`true`,className:`shrink-0 text-muted`}),(0,G.jsx)(`p`,{className:`min-w-48 flex-1`,children:U(`This note is in the Trash.`)}),(0,G.jsxs)(`button`,{"data-testid":`note-restore`,onClick:()=>void window.yogurt.meetings.restore(e),className:`workspace-button`,children:[(0,G.jsx)(H_,{size:13,"aria-hidden":`true`}),U(`Restore`)]})]}),(0,G.jsxs)(`div`,{ref:fe,className:`note-primary-tabs`,"data-summary-arriving":P&&R&&!I,children:[(0,G.jsxs)(`div`,{role:`tablist`,"aria-label":U(`Meeting view`),className:`contents`,children:[(0,G.jsxs)(`button`,{ref:pe,id:`note-transcript-tab`,"data-testid":`note-transcript-toggle`,role:`tab`,"aria-selected":B===`transcript`,"aria-controls":`note-transcript-panel`,tabIndex:B===`transcript`?0:-1,onKeyDown:Ye,onClick:e=>Je(`transcript`,void 0,e.detail>0),children:[(0,G.jsx)(dg,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(`Transcript`)]}),(0,G.jsxs)(`button`,{ref:me,id:`note-notes-tab`,"data-testid":`note-notes-tab`,role:`tab`,"aria-selected":B===`notes`&&Ge===`mine`,"aria-controls":`note-notes-panel`,"data-version":Ge,tabIndex:B===`notes`&&Ge===`mine`?0:-1,onKeyDown:Ye,onClick:e=>Je(`notes`,`mine`,e.detail>0),children:[(0,G.jsx)(Y_,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(`My notes`)]}),R&&(0,G.jsxs)(`button`,{ref:he,id:`note-summary-tab`,"data-testid":`note-summary-tab`,role:`tab`,"aria-selected":B===`notes`&&Ge===`enhanced`,"aria-controls":`note-notes-panel`,tabIndex:B===`notes`&&Ge===`enhanced`?0:-1,onKeyDown:Ye,onClick:e=>Je(`notes`,`enhanced`,e.detail>0),children:[(0,G.jsx)(rK,{size:14,strokeWidth:1.75,"aria-hidden":`true`}),U(`Summary`)]})]}),B===`transcript`&&(0,G.jsx)(`div`,{ref:De,className:`note-primary-tools`}),(0,G.jsx)(`span`,{"data-testid":`note-tab-indicator`,className:`note-tab-indicator`,"aria-hidden":`true`})]})]}),(0,G.jsx)(`div`,{ref:Ae,className:`note-reading-area`,children:(0,G.jsxs)(`div`,{ref:le,className:`note-panels`,children:[(0,G.jsx)(FY,{active:B===`notes`,summary:Ge===`enhanced`,generating:Ge===`enhanced`&&[`waiting`,`rewriting`,`handoff`,`reset`,`streaming`].includes(L),resetting:Ge===`enhanced`&&L===`reset`,writing:Ge===`enhanced`&&L===`streaming`,scroll:ae,children:Ge===`mine`?(0,G.jsx)(QR,{focus:B===`notes`&&n?.ms===null?n:void 0,testId:`note-mine`,label:U(`My notes`),className:`min-h-[40vh]`,markdown:E.mine,placeholder:U(`You can add notes here to guide the summary.`),onChange:e=>{ne.current=!0;let t={...je.current,mine:e};je.current=t,D(t),Re.change(e)},onBlur:()=>{ne.current=!1,Re.flush()}}):(0,G.jsx)(Jpe,{presentation:L,focus:B===`notes`&&n?.ms===null?n:void 0,notes:E,disabled:f,onChange:e=>{ye(!0);let t={...je.current,enhanced:e};je.current=t,D(t),ze.change(e)},onBlur:ze.flush,onRetry:rt},e)}),(B===`transcript`||oe)&&(0,G.jsx)(`section`,{hidden:B!==`transcript`,id:`note-transcript-panel`,role:`tabpanel`,"aria-labelledby":`note-transcript-tab`,className:`note-content note-transcript-pane`,children:(0,G.jsx)(Zv,{id:e,recording:He,active:B===`transcript`,inline:!0,toolbar:Ee,focus:n?.ms==null?void 0:{...n,ms:n.ms}})})]})}),(0,G.jsxs)(`footer`,{ref:l,className:`note-footer`,children:[o.stopSavePending&&(0,G.jsxs)(`div`,{"data-testid":`note-stop-unsaved`,role:`alert`,className:`mt-5 flex flex-wrap items-start gap-3 rounded-xl border border-line bg-card px-4 py-3 text-[13px] leading-relaxed`,children:[(0,G.jsx)($_,{size:16,"aria-hidden":`true`,className:`mt-0.5 shrink-0 text-danger`}),(0,G.jsx)(`p`,{className:`min-w-48 flex-1`,children:U(`Recording stopped. Yogurt couldn't save when it ended. Keep Yogurt open and try again.`)}),(0,G.jsx)(`button`,{"data-testid":`note-stop-retry`,disabled:u,className:`bar-btn rounded-md border border-line bg-bg px-3 py-1 text-ink disabled:opacity-50`,onClick:()=>{d(!0),window.yogurt.meetings.retryStopSave(e).then(e=>{e&&pe.current?.focus({preventScroll:!0})}).catch(()=>{}).finally(()=>d(!1))},children:U(u?`Saving…`:`Try again`)})]}),B===`notes`&&Ge===`enhanced`&&E.status===`done`&&E.peopleChanged&&!ge&&(0,G.jsxs)(`div`,{"data-testid":`note-people-changed`,className:`pointer-events-auto mx-auto mt-3 flex w-fit max-w-[calc(100%-32px)] flex-wrap items-center gap-3 rounded-xl border border-line bg-float px-4 py-2 text-[13px] shadow-[var(--shadow)]`,children:[(0,G.jsx)(`span`,{children:U(`The attendee list has changed.`)}),(0,G.jsx)(`button`,{"data-testid":`note-people-write-again`,onClick:rt,className:`workspace-button primary`,children:U(`Regenerate summary`)})]}),$e===`failed`&&(0,G.jsxs)(XQ,{testId:`note-save-status`,warningTestId:`note-save-warning`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)]`,children:[(0,G.jsx)(`span`,{children:Re.reason===`too-long`||ze.reason===`too-long`?U(`This note is too long to save. Shorten it and try again.`):U(`Couldn't save your changes`)}),(0,G.jsx)(`button`,{"data-testid":`note-save-retry`,className:`inline-error-action`,onClick:()=>{Xe()},children:U(`Try again`)})]}),g&&(0,G.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:U(`Yogurt couldn't start the notes. Try again in a moment.`)}),b&&(0,G.jsx)(`p`,{"data-testid":`note-resume-failed`,role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit max-w-[calc(100%-32px)] text-[13px] text-danger`,children:U(`Couldn't resume recording. Your existing note and audio are kept. Try again.`)}),w&&He&&(0,G.jsx)(`p`,{role:`alert`,className:`pointer-events-auto mx-auto mt-3 w-fit text-[13px] text-danger`,children:U(w===`pause`?`Couldn't pause the recording. Try again.`:`Couldn't resume the recording. Try again.`)}),He&&Pe&&(0,G.jsx)(Rpe,{hint:Pe}),(0,G.jsxs)(`div`,{className:`note-footer-bar`,children:[(0,G.jsxs)(`div`,{className:`note-status pointer-events-auto flex flex-wrap items-center gap-1.5 text-[11px] text-muted`,children:[(He||o.state===`prepared`)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Fpe,{recording:He,paused:He&&o.paused}),(0,G.jsx)(Lpe,{}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),$e!==`failed`&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`p`,{"data-testid":`note-save-status`,"data-state":$e,role:`status`,className:`flex items-center gap-1.5`,children:[(0,G.jsx)(x_,{size:10,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:$e===`saving`?U(`Saving…`):Ev({mac:U(`Saved on this Mac`),other:U(`Saved on this computer`)})})]}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),We!=null&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{"data-testid":`note-duration`,children:U(`{count} min`,{count:We})}),(0,G.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}),U(`Yogurt can make mistakes.`)]}),(0,G.jsx)(fQ,{id:e,recording:He,anchor:ke,onSource:i})]})]})]}),Se&&(0,G.jsx)(ZQ,{id:e,title:o.title,onDone:()=>Ce(!1)}),we&&(0,G.jsx)(J9,{onDone:t=>{Te(!1),t&&window.yogurt.folders.add(t.id,e)}})]})})}function qpe({id:e,title:t,editing:n,onEdit:r}){let[i,a]=(0,H.useState)(t),o=(0,H.useRef)(!1);(0,H.useEffect)(()=>{n&&(a(t),o.current=!1)},[n,t]);let s=`note-title-type w-full font-sans`;return n?(0,G.jsx)(`input`,{"data-testid":`note-title-input`,"aria-label":U(`Title`),autoFocus:!0,value:i,maxLength:200,onFocus:e=>e.currentTarget.select(),onChange:e=>a(e.target.value),onBlur:()=>{r(!1),!o.current&&i.trim()&&i.trim()!==t&&window.yogurt.meetings.rename(e,i)},onKeyDown:e=>{e.key===`Enter`?e.currentTarget.blur():e.key===`Escape`&&(o.current=!0,e.currentTarget.blur())},className:`${s} -mx-1 rounded-lg bg-transparent px-1 outline-none ring-1 ring-line focus:ring-accent`}):(0,G.jsx)(`h1`,{"data-testid":`note-title`,className:s,children:(0,G.jsx)(`button`,{onClick:()=>r(!0),title:U(`Rename`),className:`note-title-btn -mx-1 max-w-full rounded-lg px-1 text-start`,children:t})})}function Jpe({notes:e,presentation:t,disabled:n,onChange:r,onBlur:i,onRetry:a,focus:o}){let{status:s}=e,c=t===`handoff`||t===`reset`,l=t===`waiting`||t===`streaming`||c,u=t===`rewriting`,d=(0,H.useRef)(null),f=(0,H.useRef)(0),p=(0,H.useRef)(t);(0,H.useLayoutEffect)(()=>{let e=d.current?.closest(`.note-notes-pane`);s===`failed`&&p.current===`streaming`&&e&&(e.scrollTop=0),p.current=t},[t,s]),(0,H.useLayoutEffect)(()=>{c||(f.current=d.current?.offsetHeight??0)},[c,u,e.enhanced]);let m=IG(l?e.draft:``,l,{minCommitMs:32});return t===`failed`?(0,G.jsxs)(XQ,{testId:`note-enhanced-failed`,children:[(0,G.jsx)(`span`,{children:U(`Yogurt couldn't generate this summary.`)}),(0,G.jsx)(`button`,{onClick:a,className:`inline-error-action`,children:U(`Try again`)})]}):t===`stopped`?(0,G.jsxs)(`div`,{className:`summary-stopped`,children:[(0,G.jsx)(`p`,{role:`status`,children:U(`Summary stopped.`)}),(0,G.jsxs)(`button`,{type:`button`,onClick:a,className:`summary-generate flex items-center gap-2.5 rounded-xl px-3 py-2 text-start text-sm whitespace-nowrap text-ink hover:bg-[var(--line)] focus-visible:bg-[var(--line)]`,children:[(0,G.jsx)(H_,{size:15,strokeWidth:1.75,"aria-hidden":`true`,className:`text-muted`}),U(`Generate summary`)]})]}):t===`empty`?(0,G.jsx)(`p`,{"data-testid":`note-enhanced-empty`,className:`text-[15px] text-muted`,children:U(`There is no transcript or typed note to summarize.`)}):t===`waiting`?(0,G.jsx)(fK,{downloading:e=>(0,G.jsxs)(`p`,{"data-testid":`note-enhanced-model-download`,role:`status`,className:`text-[15px] text-muted`,children:[U(`Your summary is waiting for Yogurt's AI to download.`),` `,e&&(0,G.jsx)(`span`,{className:`whitespace-nowrap`,children:e})]}),children:(0,G.jsx)(IY,{part:s===`writing`?e.part:void 0})}):(0,G.jsxs)(`div`,{"data-testid":`note-enhanced`,"data-status":s,className:t===`streaming`?`streaming`:``,children:[s===`failed`&&(0,G.jsxs)(XQ,{testId:`note-enhanced-rewrite-failed`,className:`mb-6`,children:[(0,G.jsx)(`span`,{children:U(`Yogurt couldn't regenerate the summary, so your previous version is still shown.`)}),(0,G.jsx)(`button`,{onClick:a,className:`inline-error-action`,children:U(`Try again`)})]}),u&&(0,G.jsx)(IY,{outline:!1,part:s===`writing`?e.part:void 0}),(0,G.jsx)(`div`,{ref:d,className:`summary-rewrite`,"data-rewriting":u,"data-handoff":c,"data-resetting":t===`reset`,style:c?{minHeight:f.current}:void 0,children:(0,G.jsx)(`div`,{className:`summary-result`,children:(0,G.jsx)(QR,{focus:o,testId:`note-enhanced-editor`,label:U(`Summary`),className:`enhanced`,markdown:c?e.enhanced??``:l?m:e.enhanced??``,streaming:l&&!c,editable:!l&&!u&&!n,onChange:r,onBlur:i})})}),l&&(0,G.jsx)(`p`,{className:`sr-only`,"aria-live":`polite`,children:U(`Generating notes…`)})]})}var Z9=sh.transition.collapse;sh.transition.collapseLabel,sh.transition.color,H.createContext(null),H.createContext(!0);function Q9(e,t){let n=Ch(),{duration:r,easing:i}=gh(dh(e));return{transitionProperty:t,transitionDuration:`${n?0:r}ms`,transitionTimingFunction:i,transitionDelay:`0ms`}}function Ype({transition:e=Z9,style:t,...n}){let r=Q9(e,`width`);return(0,G.jsx)(`div`,{...n,style:{...r,...t}})}function Xpe({transition:e=Z9,style:t,...n}){let r=Q9(e,`left, right, width`);return(0,G.jsx)(`div`,{...n,style:{...r,...t}})}H.Component;function Zpe(e){if(!e)return[];if(!e.startsWith(`[`))return[e];try{let t=JSON.parse(e);return Array.isArray(t)&&t.every(e=>typeof e==`string`&&e.length>0)?[...new Set(t)]:[]}catch{return[]}}function Qpe({folders:e,route:t,go:n,collapsed:r=!1,sidebarMotion:i}){let[a,o]=(0,H.useState)(),[s,c]=(0,H.useState)(),[l,u]=(0,H.useState)(),[d,f]=(0,H.useState)(),[p,m]=(0,H.useState)(!1),h=(0,H.useRef)(!1),g=(0,H.useRef)(null),_=d?[...d.filter(t=>e?.some(e=>e.id===t)),...(e??[]).filter(e=>!d.includes(e.id)).map(e=>e.id)]:(e??[]).map(e=>e.id),v=(0,H.useRef)(_);v.current=_,(0,H.useEffect)(()=>{!h.current&&!p&&f(void 0)},[e]);let y=async t=>{if(h.current=!1,t.every((t,n)=>t===e?.[n]?.id))f(void 0);else{f(t),m(!0);try{if(!await window.yogurt.folders.reorder(t))throw Error(`Folder list changed`)}catch{f(void 0),lQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})}finally{m(!1)}}},b=(e,t)=>{let n=_.indexOf(e),r=[..._];p||n+t<0||n+t>=_.length||(r.splice(n,1),r.splice(n+t,0,e),y(r))};return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`nav`,{"aria-label":U(`Folders`),"data-testid":`sidebar-folders`,children:[(0,G.jsx)(sK,{pending:!e,skeleton:(0,G.jsx)(sv,{layout:`folders`,testId:`folders-loading`}),children:(0,G.jsx)(Im,{as:`div`,ref:g,axis:`y`,values:_,className:`workspace-folder-list`,"data-testid":`folder-reorder-list`,onReorder:e=>{v.current=e,f(e)},children:_.map((a,s)=>{let l=e.find(e=>e.id===a);return(0,G.jsx)($pe,{folder:l,collapsed:r,sidebarMotion:i,current:t===`/folder/${l.id}`,go:n,constraints:g,reorderable:!p&&_.length>1,onDragStart:()=>{h.current=!0},onDragEnd:()=>void y(v.current),moveUp:!p&&s>0?()=>b(a,-1):void 0,moveDown:!p&&s<_.length-1?()=>b(a,1):void 0,onAppearance:()=>c(l),onRename:()=>o({folder:l}),onDelete:()=>u(l)},l.id)})})}),(0,G.jsxs)(`button`,{"data-testid":`folder-create`,"data-sidebar":`menu-button`,"aria-label":U(`New folder`),title:r?U(`New folder`):void 0,className:`workspace-nav workspace-folder-new`,onClick:()=>o({}),children:[(0,G.jsx)(z_,{size:16,strokeWidth:1.7,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`New folder`)})]})]}),s&&(0,G.jsx)(Gpe,{folder:s,onDone:()=>c(void 0)}),a&&(0,G.jsx)(J9,{folder:a.folder,onDone:e=>{o(void 0),e&&n(`/folder/${e.id}`)}}),l&&(0,G.jsx)(Wpe,{folder:l,onDone:e=>{u(void 0),e&&t===`/folder/${l.id}`&&n(``)}})]})}function $pe({folder:e,collapsed:t,sidebarMotion:n,current:r,go:i,onRename:a,onDelete:o,onAppearance:s,constraints:c,reorderable:l,onDragStart:u,onDragEnd:d,moveUp:f,moveDown:p}){let m=Em(),h=jf(),g=(0,H.useRef)(t),_=h||g.current!==t&&!n;(0,H.useEffect)(()=>{g.current=t},[t]);let v=(0,H.useRef)(!1),[y,b]=(0,H.useState)(!1),[x,S]=(0,H.useState)(!1),[C,w]=(0,H.useState)(),T=Nf(C,C?.animate??!0),E=(0,H.useRef)(null),D=(0,H.useRef)(null),O=(0,H.useRef)(null),k=(0,H.useRef)(null);(0,H.useEffect)(()=>{if(!C)return;k.current?.querySelector(`[role="menuitem"]`)?.focus();let e=e=>{E.current?.contains(e.target)||w(void 0)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[C]);let A=e=>{let t=E.current.getBoundingClientRect(),n=getComputedStyle(E.current).direction===`rtl`;w({animate:e,style:{position:`fixed`,top:t.bottom+4,width:Math.max(180,t.width),insetInlineStart:n?window.innerWidth-t.right:t.left}})},j=e=>{let n=Array.from(k.current?.querySelectorAll(`[role="menuitem"]:not(:disabled)`)??[]),r=n.indexOf(document.activeElement);e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),w(void 0),(t?O:D).current?.focus()):e.key===`ArrowDown`?(e.preventDefault(),n[(r+1)%n.length]?.focus()):e.key===`ArrowUp`?(e.preventDefault(),n[(r-1+n.length)%n.length]?.focus()):e.key===`Tab`&&w(void 0)},M=e=>{w(void 0),(t?O:D).current?.focus(),e()},N=e=>e.dataTransfer.types.includes(U9);return(0,G.jsxs)(Xm,{as:`div`,ref:E,value:e.id,className:`workspace-folder-item`,"data-testid":`sidebar-folder`,"data-folder":e.id,"data-moving":y,dragListener:!1,dragControls:m,dragConstraints:c,dragElastic:0,dragMomentum:!1,transition:_?{duration:0}:{type:`spring`,stiffness:520,damping:42},onDragStart:()=>{v.current=!0,b(!0),w(void 0),u()},onDragEnd:()=>{b(!1),d()},children:[(0,G.jsxs)(`button`,{ref:O,className:`workspace-nav`,"data-sidebar":`menu-button`,"aria-label":e.name,title:t?e.name:void 0,"data-testid":`sidebar-folder-open`,"data-drop":x,"aria-current":r?`page`:void 0,"aria-keyshortcuts":`Alt+ArrowUp Alt+ArrowDown`,onPointerDown:e=>{v.current=!1,l&&e.button===0&&m.start(e,{distanceThreshold:4})},onClick:t=>{v.current&&t.detail?v.current=!1:i(`/folder/${e.id}`)},onContextMenu:e=>{e.preventDefault(),A(!0)},onKeyDown:e=>{e.key===`ContextMenu`||e.shiftKey&&e.key===`F10`?(e.preventDefault(),A(!1)):e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),(e.key===`ArrowUp`?f:p)?.())},onDragEnter:e=>{N(e)&&(e.preventDefault(),S(!0))},onDragOver:e=>{N(e)&&(e.preventDefault(),e.dataTransfer.dropEffect=`link`)},onDragLeave:()=>S(!1),onDrop:t=>{S(!1);let n=Zpe(t.dataTransfer.getData(U9));n.length&&(t.preventDefault(),Bpe(e.id,n).catch(()=>lQ.add({title:U(`Yogurt couldn't add this note to the folder. Try again.`)})))},children:[(0,G.jsx)(B9,{appearance:e}),(0,G.jsx)(`span`,{children:e.name}),(0,G.jsx)(`small`,{"data-testid":`sidebar-folder-count`,"aria-label":U(`{count} meetings`,{count:e.count}),children:e.count})]}),(0,G.jsx)(`button`,{ref:D,"data-testid":`sidebar-folder-more`,className:`workspace-icon workspace-folder-more`,"aria-haspopup":`menu`,"aria-expanded":!!C,"aria-label":U(`More for “{name}”`,{name:e.name}),title:U(`More`),onClick:()=>C?w(void 0):A(!0),children:(0,G.jsx)(Lg,{size:15,"aria-hidden":`true`})}),T.value&&(0,G.jsxs)(`div`,{ref:k,"data-testid":`sidebar-folder-menu`,role:`menu`,"aria-label":e.name,...T.props,"data-anchor":`start`,onKeyDown:j,style:T.value.style,className:`menu-entry z-[70] rounded-xl border border-line bg-float p-1.5 shadow-[var(--shadow)]`,children:[(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-appearance`,onClick:()=>M(s),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(N_,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Change icon`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-rename`,onClick:()=>M(a),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(F_,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Rename`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-up`,disabled:!f,onClick:()=>f&&M(f),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(lg,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Move up`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-down`,disabled:!p,onClick:()=>p&&M(p),className:`flex w-full items-center gap-2.5 text-start`,children:[(0,G.jsx)(og,{size:15,"aria-hidden":`true`,className:`text-muted`}),U(`Move down`)]}),(0,G.jsxs)(`button`,{role:`menuitem`,"data-testid":`sidebar-folder-delete`,onClick:()=>M(o),className:`flex w-full items-center gap-2.5 text-start text-danger`,children:[(0,G.jsx)(Z_,{size:15,"aria-hidden":`true`}),U(`Delete folder`)]})]})]})}function eme(){return null}function tme({go:e}){let[t,n]=(0,H.useState)(),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)(!1),[l,u]=(0,H.useState)(!1);(0,H.useEffect)(()=>{let e,t=!0,r=t=>{e=t,n(t),!t.notesError&&!t.notesUpgradeError&&c(!1),uK(t)||(i(!1),u(!1))},a=window.yogurt.setup.onState(r);return window.yogurt.setup.state().then(n=>{t&&!e&&r(n)}),()=>{t=!1,a()}},[]);let d=async()=>{o(!0),c(!1);try{await window.yogurt.setup.retry()}catch{c(!0)}finally{o(!1)}},f=async()=>{u(!1);try{await window.yogurt.setup.skipUpgrade();let t=lQ.add({title:U(`AI upgrade skipped`),timeout:8e3,data:{testId:`notes-skipped-toast`},actionProps:{children:U(`Settings`),onClick:()=>{lQ.close(t),e(`/settings/notes-model`)}}})}catch{u(!0)}};if(!t||!uK(t))return null;let p=lK(t),m=p?t.notesUpgradeError:t.notesError,h=!!m,g=U(p?`AI upgrade paused`:`AI download stopped`),_=h?g:t.notesUpgradePending&&p?U(`Upgrading AI`):p?U(`Upgrading AI · {percent}`,{percent:cK(t.notesUpgradeFraction??0)}):U(`Downloading AI · {percent}`,{percent:cK(t.notesFraction??0)}),v=dK(t),y=p?t.notesUpgradeFraction:t.notesFraction,b=y!==void 0&&Number.isFinite(y)?Math.floor(Math.max(0,Math.min(1,y))*100):void 0;return(0,G.jsx)(yG,{direction:gt(xt()),children:(0,G.jsx)(`span`,{className:`notes-download-status`,children:(0,G.jsxs)(aW,{open:r,onOpenChange:i,children:[(0,G.jsxs)(xW,{"data-testid":`notes-setup-open`,"aria-label":_,title:_,className:`bar-btn notes-download-trigger no-drag`,children:[(0,G.jsx)(`span`,{"aria-hidden":`true`,"data-failed":h,"data-upgrade":p,className:`notes-download-dot`}),(0,G.jsx)(`span`,{className:`truncate`,children:_})]}),(0,G.jsx)(wW,{children:(0,G.jsx)(uG,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,G.jsxs)(gG,{"data-testid":`notes-setup`,"data-failed":h,"data-anchor":`end`,"aria-label":h?g:U(p?`Upgrading AI`:`Downloading AI`),className:`menu-entry notes-download-menu`,children:[(0,G.jsxs)(`div`,{className:`notes-download-readout`,children:[(0,G.jsx)(`strong`,{role:h?`status`:void 0,children:h?U(p?`Upgrade paused`:`Download stopped`):v.progress||U(p?`Upgrading AI`:`Downloading AI`)}),(0,G.jsx)(`span`,{children:h?v.progress:p?b!==void 0&&cK(y):v.eta})]}),(0,G.jsx)(`div`,{className:`notes-download-progress`,role:`progressbar`,"aria-label":_,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":b,children:(0,G.jsx)(`span`,{style:{width:`${b??0}%`}})}),(0,G.jsxs)(`div`,{className:`notes-download-footer`,children:[(0,G.jsx)(`p`,{className:`notes-download-support`,children:h?m:U(p?`Once this model is ready, we'll remove the old one.`:`You can record meetings. AI summaries and Ask work when this finishes.`)}),(h||p)&&(0,G.jsxs)(`div`,{className:`notes-download-actions`,children:[h&&(0,G.jsx)(`button`,{"data-testid":`notes-setup-retry`,className:`notes-download-retry`,disabled:a,onClick:()=>void d(),children:U(a?`Retrying…`:`Try again`)}),p&&(0,G.jsx)(`button`,{"data-testid":`notes-setup-skip`,className:`notes-download-skip`,disabled:t.notesUpgradeChanging,onClick:()=>void f(),children:U(`Skip`)})]})]}),s&&(0,G.jsx)(`p`,{role:`alert`,children:U(`Yogurt couldn't restart the download.`)}),l&&(0,G.jsx)(`p`,{role:`alert`,children:U(`Yogurt couldn't change the notes model.`)})]})})})]})})})}function nme({recording:e}){let[t,n]=(0,H.useState)(),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(!1),[s,c]=(0,H.useState)();(0,H.useEffect)(()=>{let e=!0,t=!1,r=r=>{e&&(t=!0,n(r),(r.state!==`ready`||r.dismissed)&&(i(!1),c(void 0)))},a=window.yogurt.updates.onStatus(r);return window.yogurt.updates.status().then(e=>{t||r(e)}).catch(()=>{}),()=>{e=!1,a()}},[]);let l=async()=>{if(!(e||a||t?.state!==`ready`)){o(!0),c(void 0);try{await window.yogurt.updates.restart()?i(!1):c(`restart`)}catch{c(`restart`)}finally{o(!1)}}},u=async()=>{c(void 0);try{await window.yogurt.updates.later(),i(!1)}catch{c(`later`)}};return t?.state!==`ready`||t.dismissed?null:(0,G.jsx)(yG,{direction:gt(xt()),children:(0,G.jsx)(`span`,{className:`notes-download-status update-ready-status`,children:(0,G.jsxs)(aW,{open:r,onOpenChange:i,children:[(0,G.jsx)(xW,{"data-testid":`update-ready`,className:`bar-btn notes-download-trigger no-drag`,title:U(`Update ready`),children:(0,G.jsx)(`span`,{className:`truncate`,children:U(`Update ready`)})}),(0,G.jsx)(wW,{children:(0,G.jsx)(uG,{side:`bottom`,align:`end`,sideOffset:8,collisionPadding:12,positionMethod:`fixed`,className:`notes-download-positioner`,children:(0,G.jsxs)(gG,{"data-testid":`update-popover`,"data-anchor":`end`,"data-pointer":`true`,className:`menu-entry notes-download-menu update-ready-menu`,children:[(0,G.jsx)(_G,{children:U(`Yogurt {version}`,{version:t.next??``})}),(0,G.jsx)(vG,{className:`update-ready-description`,children:U(e?`You can restart after recording`:`Installs when you restart Yogurt`)}),(0,G.jsxs)(`div`,{className:`update-ready-actions`,children:[(0,G.jsx)(`button`,{"data-testid":`update-later`,className:`update-ready-later`,onClick:()=>void u(),children:U(`Later`)}),(0,G.jsx)(`button`,{"data-testid":`update-restart`,className:`workspace-button primary`,disabled:e||a,onClick:()=>void l(),children:U(`Restart`)})]}),s&&(s===`later`||!e)&&(0,G.jsx)(`p`,{role:`alert`,children:U(s===`later`?`Yogurt couldn't make that change. Try again.`:`Yogurt couldn't restart. Try again.`)})]})})})]})})})}function rme({route:e,meeting:t,folders:n,go:r,back:i,forward:a,search:o,collapsed:s,sidebarMotion:c,toggleSidebar:l,children:u}){let[d,f]=(0,H.useState)(null);(0,H.useEffect)(()=>{let e=!0,t=!1,n=window.yogurt.widget.onState(e=>{t=!0,f(e)});return window.yogurt.widget.state().then(n=>{e&&!t&&f(n)}),()=>{e=!1,n()}},[]);let p={duration:c?.2:0,ease:[.22,1,.36,1]},m=e.startsWith(`/note/`),h=e.startsWith(`/settings/`)?`/settings`:e.startsWith(`/chat/`)?`/chat`:e,g=d?.kind===`recording`&&e!==`/note/${d.meetingId}`;(0,H.useEffect)(()=>{let t=()=>{if(document.querySelector(`[aria-modal="true"]:not([data-testid="chat-panel"]), [role="alertdialog"]`))return;let t=xG(e);t.panel?document.getElementById(`meeting-ask`)?.click():window.yogurt.conversations.current(t.chips,t.fresh).then(e=>r(`/chat/${e}`)).catch(e=>{console.error(`Opening Ask failed`,e),lQ.add({title:U(`Yogurt couldn't make that change. Try again.`)})})},n=e=>{!wv(e)||Tv()&&e.ctrlKey||e.altKey||e.shiftKey||e.code!==`KeyJ`||e.defaultPrevented||(e.preventDefault(),!e.repeat&&!e.isComposing&&t())},i=()=>{window.yogurt.nav.takeAsk().then(e=>{e&&t()})},a=window.yogurt.nav.onAsk(i);return i(),window.addEventListener(`keydown`,n),()=>{a(),window.removeEventListener(`keydown`,n)}},[e,r]);let _=[{route:``,label:U(`Meetings`),Icon:QG},{route:`/chat`,label:U(`Ask`),Icon:YG},{route:`/trash`,label:U(`Trash`),Icon:Z_},{route:`/settings`,label:U(`Settings`),Icon:$G}],v=e.startsWith(`/folder/`)?n?.find(t=>e===`/folder/${t.id}`):void 0,y=_.find(e=>e.route===h)??(e.startsWith(`/folder/`)?{label:v?.name??U(`Folder`)}:void 0),b=m?t&&e===`/note/${t.id}`?t.title:U(`Meeting`):e.startsWith(`/settings`)?U(`Settings`):y?.label??U(`Meetings`),x=t=>(0,G.jsxs)(`button`,{"data-testid":t.route===``?`nav-home`:t.route===`/chat`?`nav-chat`:t.route===`/settings`?`settings-open`:`nav-trash`,"data-sidebar":`menu-button`,"aria-label":t.label,title:s?t.label:void 0,className:`workspace-nav${t.route===`/trash`?` workspace-trash`:``}`,"aria-current":h===t.route||t.route===``&&e===`/meetings`?`page`:void 0,onClick:()=>r(t.route),children:[(0,G.jsx)(t.Icon,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:t.label})]},t.route);return(0,G.jsxs)(`div`,{className:`workspace ${s?`sidebar-collapsed`:``}`,"data-testid":`workspace`,"data-sidebar-motion":c,children:[(0,G.jsxs)(`div`,{className:`workspace-window-bar`,children:[(0,G.jsx)(`div`,{className:`workspace-drag-region drag`,"data-testid":`titlebar`,"aria-hidden":`true`}),(0,G.jsx)(`button`,{className:`workspace-icon workspace-sidebar-toggle no-drag`,"data-testid":s?`sidebar-expand`:`sidebar-collapse`,onClick:e=>l(e.detail>0),"aria-expanded":!s,"aria-controls":`workspace-sidebar`,"aria-keyshortcuts":Tv()?`Control+Meta+S`:`Control+Shift+S`,title:`${U(s?`Expand sidebar`:`Collapse sidebar`)} (${Cv(`⌃⌘S`)})`,"aria-label":U(s?`Expand sidebar`:`Collapse sidebar`),children:(0,G.jsx)(ZG,{className:`sidebar-toggle-glyph rtl:-scale-x-100`,size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,G.jsx)(Ype,{className:`workspace-sidebar-gap`,transition:p}),(0,G.jsx)(Xpe,{id:`workspace-sidebar`,className:`workspace-sidebar`,role:`complementary`,"aria-label":U(`Main navigation`),transition:p,children:(0,G.jsxs)(`div`,{className:`workspace-sidebar-inner`,children:[(0,G.jsx)(`div`,{className:`sidebar-titlebar`}),(0,G.jsxs)(`div`,{className:`workspace-sidebar-body`,children:[(0,G.jsxs)(`button`,{className:`workspace-search no-drag`,"data-testid":`search-open`,"aria-label":U(`Search`),title:`${U(`Search`)} (${Cv(`⌘K`)})`,onClick:o,children:[(0,G.jsx)(XG,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:U(`Search`)}),(0,G.jsx)(`kbd`,{children:Cv(`⌘K`)})]}),(0,G.jsx)(`nav`,{"aria-label":U(`Workspace`),children:_.slice(0,2).map(x)}),(0,G.jsx)(`div`,{className:`workspace-folder-label`,children:U(`Your workspace`)}),(0,G.jsx)(Qpe,{collapsed:s,sidebarMotion:c,folders:n,route:e,go:r})]}),(0,G.jsxs)(`div`,{className:`workspace-sidebar-footer`,children:[(0,G.jsx)(eme,{collapsed:s}),x(_[2]),x(_[3]),(0,G.jsx)(`div`,{className:`workspace-brand`,children:(0,G.jsx)(`span`,{className:`workspace-wordmark`,children:(0,G.jsx)(vY,{height:25})})})]})]})}),(0,G.jsxs)(`div`,{className:`workspace-content`,children:[(0,G.jsxs)(`header`,{className:`workspace-toolbar`,"data-note":m,"data-recording-return":g,children:[(0,G.jsxs)(`div`,{className:`workspace-breadcrumb drag`,children:[(0,G.jsxs)(`span`,{className:`workspace-history`,children:[(0,G.jsx)(`button`,{"data-testid":`nav-back`,className:`workspace-icon no-drag`,disabled:!i&&!m,onClick:i??(()=>r(``)),"aria-label":U(`Back`),title:`${U(`Back`)} (${Cv(`⌘[`)})`,children:(0,G.jsx)(Cg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})}),(0,G.jsx)(`button`,{"data-testid":`nav-forward`,className:`workspace-icon no-drag`,disabled:!a,onClick:a,"aria-label":U(`Forward`),title:`${U(`Forward`)} (${Cv(`⌘]`)})`,children:(0,G.jsx)(Tg,{size:14,strokeWidth:1.75,className:`rtl:-scale-x-100`,"aria-hidden":`true`})})]}),(0,G.jsx)(`span`,{"data-testid":`workspace-heading`,"aria-current":`page`,title:b,children:b})]}),(0,G.jsx)(nme,{recording:d?.kind===`recording`}),(0,G.jsx)(tme,{go:r}),g&&(0,G.jsxs)(`button`,{className:`workspace-recording-link no-drag`,"data-testid":`recording-return`,"data-paused":d.paused,"aria-label":U(`Open {title}`,{title:d.title}),title:U(`Open {title}`,{title:d.title}),onClick:()=>r(`/note/${d.meetingId}`),children:[(0,G.jsx)(CQ,{testId:`recording-return-wave`,height:16,paused:d.paused}),(0,G.jsx)(wQ,{view:d,testId:`recording-return-time`,className:`recording-return-time`})]}),(0,G.jsx)(`div`,{id:`workspace-actions`,className:`workspace-toolbar-actions`})]}),u]})]})}var $9=()=>{};document.documentElement.classList.add(`main-window`),document.documentElement.dataset.marketingTheme=M?`light`:`dark`,M&&(document.documentElement.dataset.fragment=M);function ime(){let[e,t]=(0,H.useState)(0);return(0,H.useEffect)(()=>L(()=>t(e=>e+1)),[]),(0,H.useEffect)(()=>xe(),[e]),(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`marketing-window`,children:[(0,G.jsx)(rme,{route:`/note/${E.id}`,meeting:E,folders:D,go:$9,search:$9,collapsed:matchMedia(`(max-width:600px)`).matches,sidebarMotion:!1,toggleSidebar:$9,children:(0,G.jsx)(Kpe,{id:E.id,onTitleChange:$9},e)}),(0,G.jsxs)(`div`,{className:`marketing-traffic`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]})]}),(0,G.jsxs)(`svg`,{className:`marketing-cursor`,viewBox:`0 0 30 32`,"aria-hidden":`true`,children:[(0,G.jsx)(`circle`,{className:`cursor-ring`,cx:`4`,cy:`3`,r:`12`}),(0,G.jsx)(`path`,{className:`cursor-pointer`,d:`M4 3 24 13 15.1 15.7 11.3 25Z`,strokeWidth:`1.7`,strokeLinejoin:`round`,strokeLinecap:`round`})]})]})}(0,PY.createRoot)(document.getElementById(`root`)).render(M?(0,G.jsx)(AY,{}):(0,G.jsx)(ime,{}))})();
\ No newline at end of file
diff --git a/site/public/marketing/stills/fragment-ask-desktop.webp b/site/public/marketing/stills/fragment-ask-desktop.webp
index 2a5788e5..2d19c3b0 100644
Binary files a/site/public/marketing/stills/fragment-ask-desktop.webp and b/site/public/marketing/stills/fragment-ask-desktop.webp differ
diff --git a/site/public/marketing/stills/fragment-ask-phone.webp b/site/public/marketing/stills/fragment-ask-phone.webp
index e07a24f5..e313926c 100644
Binary files a/site/public/marketing/stills/fragment-ask-phone.webp and b/site/public/marketing/stills/fragment-ask-phone.webp differ
diff --git a/site/public/marketing/stills/fragment-summary-desktop.webp b/site/public/marketing/stills/fragment-summary-desktop.webp
index 5e2466d3..4afa7fe7 100644
Binary files a/site/public/marketing/stills/fragment-summary-desktop.webp and b/site/public/marketing/stills/fragment-summary-desktop.webp differ
diff --git a/site/public/marketing/stills/fragment-summary-phone.webp b/site/public/marketing/stills/fragment-summary-phone.webp
index 8b7d1996..e54f1d8d 100644
Binary files a/site/public/marketing/stills/fragment-summary-phone.webp and b/site/public/marketing/stills/fragment-summary-phone.webp differ
diff --git a/site/public/marketing/stills/fragment-transcript-desktop.webp b/site/public/marketing/stills/fragment-transcript-desktop.webp
index ba37a0fc..b3b9a921 100644
Binary files a/site/public/marketing/stills/fragment-transcript-desktop.webp and b/site/public/marketing/stills/fragment-transcript-desktop.webp differ
diff --git a/site/public/marketing/stills/fragment-transcript-phone.webp b/site/public/marketing/stills/fragment-transcript-phone.webp
index 62cfb6ef..5ddb1118 100644
Binary files a/site/public/marketing/stills/fragment-transcript-phone.webp and b/site/public/marketing/stills/fragment-transcript-phone.webp differ
diff --git a/site/public/marketing/stills/hero-desktop.webp b/site/public/marketing/stills/hero-desktop.webp
index 76051833..1d907015 100644
Binary files a/site/public/marketing/stills/hero-desktop.webp and b/site/public/marketing/stills/hero-desktop.webp differ
diff --git a/site/public/marketing/stills/hero-finished-desktop.webp b/site/public/marketing/stills/hero-finished-desktop.webp
index a724e941..d426f1a5 100644
Binary files a/site/public/marketing/stills/hero-finished-desktop.webp and b/site/public/marketing/stills/hero-finished-desktop.webp differ
diff --git a/site/public/marketing/stills/hero-phone.webp b/site/public/marketing/stills/hero-phone.webp
index 004dc737..251b3cd3 100644
Binary files a/site/public/marketing/stills/hero-phone.webp and b/site/public/marketing/stills/hero-phone.webp differ
diff --git a/site/public/marketing/stills/manifest.json b/site/public/marketing/stills/manifest.json
index 4cfd7b04..fb0e6667 100644
--- a/site/public/marketing/stills/manifest.json
+++ b/site/public/marketing/stills/manifest.json
@@ -1,44 +1,44 @@
{
- "appCommit": "0d26a16cf00781d2b0d0c557cd1bdd3fc730cc0d",
- "bundleSha256": "0b209ac67984776ecac7ff5c310faf77df0f3c7e7342b0df344168f898f00920",
- "bundleCssSha256": "8fcf68ee28496ea66fbc7a4f0229cd64fe5f87213299d40902bd2870cdee28c3",
- "generatedAt": "2026-11-16T17:03:23.496Z",
+ "appCommit": "72c9c0b2b8fd3d47c74af6821c5ddac8f920cb58",
+ "bundleSha256": "600bb37261749c88c2aa89560633299a27f550f244a664b2c85d7522394098ef",
+ "bundleCssSha256": "726dadfdc50c18719d94b26d306006ed7282ea6b7316fc759d8a81b2f33a8933",
+ "generatedAt": "2026-11-17T17:02:11.665Z",
"images": {
"hero-desktop.webp": {
- "bytes": 44286,
- "sha256": "5b3f45784a88a061cab9959b192e11f1436be954609ad2f5cbf49656f2c9696e"
+ "bytes": 43588,
+ "sha256": "a2b05301f7037c24953145f23c75d77a2ec0fe4ff25805e586994eb1020411c9"
},
"hero-finished-desktop.webp": {
- "bytes": 75350,
- "sha256": "d88c9d0b5f85b0a5aed15060e8cf651f794180e1ba38c323193f70c58d229405"
+ "bytes": 75908,
+ "sha256": "17e6995d2c1fcb6fcf1ebe8098d3abd600cab2e481708fadf4cc46fda9c4e79b"
},
"hero-phone.webp": {
- "bytes": 61798,
- "sha256": "345a25cfb60485d37d18333bd1cb955a1baaabc4baba762eb81f1a993548e485"
+ "bytes": 61822,
+ "sha256": "75a5b184a0959805c7c8d4f81a4a780ea746bba5c0c1d1510968a6ea80196e19"
},
"fragment-transcript-desktop.webp": {
- "bytes": 13458,
- "sha256": "233a1ea9049b4eaefca089510f5e9f09f782dff025cdcdb17ef4bed577f4f9ff"
+ "bytes": 13068,
+ "sha256": "68a226590d7384367005e0b711629d20e607f83ba244f01dad53ed55a266a072"
},
"fragment-transcript-phone.webp": {
- "bytes": 14622,
- "sha256": "e2a0ee97b95b45a810748d49c64b20d46a778d96868a071445fd69e44f0965dc"
+ "bytes": 14100,
+ "sha256": "94f86a5d7071d3fafd6fe535f3aabd2128be53f1c28509781bfa93f1986aa88e"
},
"fragment-summary-desktop.webp": {
- "bytes": 20156,
- "sha256": "4896fc99ec2d40173aa49c4e9789daae23b0b9bbf85f62661a577d445ae9eb29"
+ "bytes": 19172,
+ "sha256": "792025acbfee301a038e3e9dea12a8a2b86745a295894ff2e0a99dcf08a72b19"
},
"fragment-summary-phone.webp": {
- "bytes": 20090,
- "sha256": "ec9f64988757c472af6a435e07d548a15b840b493e7091fcaee47b6be2d298bb"
+ "bytes": 19054,
+ "sha256": "fa6edf6f1ccced83d9ba3c193918dd62b47169305d7baa8d36c27896f03e08a0"
},
"fragment-ask-desktop.webp": {
- "bytes": 12856,
- "sha256": "763e12ff1eaf3e3dacf2ee9ff78cfe9451bf212cb5a4eae15f902e2f2a48420d"
+ "bytes": 12218,
+ "sha256": "062793db6439cc491d005aba8780c0cc4c77dce25b7a13157c878d4c7a02998d"
},
"fragment-ask-phone.webp": {
- "bytes": 12696,
- "sha256": "e0efce378eada45dbd63612a60a9890e29fcfeca5534e3a585082032ce992969"
+ "bytes": 12072,
+ "sha256": "49869a35f7c4f1ef659df867ab8a40773b7deeb342135c0a33201515d787d564"
}
}
}
diff --git a/site/renderer/README.md b/site/renderer/README.md
index 1e5ac77d..0861d1d4 100644
--- a/site/renderer/README.md
+++ b/site/renderer/README.md
@@ -15,8 +15,8 @@ pnpm --dir site test
pnpm --dir site build
```
-The bundle defaults to `origin/main` without changing the checkout. Set `YOGURT_APP_REF` to another local commit when needed. No archived-source overrides are needed at `0d26a16`: main includes the wordmark change and replaces the old rings with the Ask flare and Summary outline. Its manifest records the app commit, source overrides, source files and output hashes. `SITE_URL` changes the local origin used by the still exporter; `CHROME_BIN` changes its browser executable. The exporter uses headless Chrome directly, not Electron or Playwright.
+The bundle defaults to `origin/main` without changing the checkout. Set `YOGURT_APP_REF` to another local commit when needed. No archived-source overrides are needed at `72c9c0b`: main includes the wordmark change and replaces the old rings with the Ask flare and Summary outline. Its manifest records the app commit, source overrides, source files and output hashes. `SITE_URL` changes the local origin used by the still exporter; `CHROME_BIN` changes its browser executable. The exporter uses headless Chrome directly, not Electron or Playwright.
-`timeline.mjs` owns the 39-second hero sequence. `bridge.mjs` provides the in-memory app bridge and drives the editor and cursor. `fragments.tsx` renders the three How it works surfaces. Desktop fragments animate; phone and reduced-motion layouts use the completed exports. `frame.css` styles only the isolated frames. Page layout stays in `public/marketing/site.css`.
+`timeline.mjs` owns the 39-second hero sequence. `bridge.mjs` provides the in-memory app bridge and drives the editor and cursor. Native capabilities are disabled and updates stay idle in the browser-only fixture. `fragments.tsx` renders the three How it works surfaces. Desktop fragments animate; phone and reduced-motion layouts use the completed exports. `frame.css` styles only the isolated frames. Page layout stays in `public/marketing/site.css`.
The Vite-only `renderer` directory is excluded from Next's typecheck: its `@app` imports are resolved from the archived app source by `bundle.mjs`.
diff --git a/site/renderer/bridge.mjs b/site/renderer/bridge.mjs
index 82343746..b87f4030 100644
--- a/site/renderer/bridge.mjs
+++ b/site/renderer/bridge.mjs
@@ -38,7 +38,9 @@ const saveMine = (_id,text,revision) => { notes.mine=text; notes.saves.mine={rev
const widget = () => meeting.state !== 'recording' ? null : ({ kind: 'recording', meetingId: meeting.id, title: meeting.title, elapsedMs: 720000 + (time >= timing.resume ? 0 : time) * 1000, at: Date.now(), note: null })
window.yogurt = {
platform: 'darwin', fake: true,
+ capabilities: { calendar: false, callNames: false, permissionPrompts: false, mediaPause: false },
setup: { state: read({}), onState: off },
+ updates: { status: read({ version: '', available: false, on: false, state: 'idle' }), onStatus: off },
widget: { state: async () => widget(), onState: events.widget.on, onLevel: events.level.on },
meetings: { get: read(meeting), onChange: events.meeting.on, stop: async () => {}, resume: async () => { document.documentElement.dataset.resumeClicked='true'; return {id:meeting.id} } },
notes: { get: read(notes), onChange: events.notes.on, onFlushRequest: off, keptEdits: noop, setMine: async (...args) => saveMine(...args), setEnhanced: read({revision:0,status:'failed'}), flushSync: (id,side,text,revision) => side==='mine' ? saveMine(id,text,revision) : {revision,status:'saved'} },
diff --git a/site/scripts/stills.mjs b/site/scripts/stills.mjs
index a825fff5..18cd4af2 100644
--- a/site/scripts/stills.mjs
+++ b/site/scripts/stills.mjs
@@ -61,10 +61,11 @@ try {
for(const seconds of [21,27]) {
await evaluate(`window.postMessage({type:'yogurt-hero-time',seconds:${seconds}},location.origin)`)
await pause(300)
- const resting=await evaluate(`(()=>{const editor=document.querySelector('[data-testid=note-enhanced-editor]'),pane=editor.closest('.note-notes-pane'),heading=editor.querySelector('h2');return {top:pane.scrollTop,headingVisible:heading.getBoundingClientRect().top>=pane.getBoundingClientRect().top,generating:pane.closest('.note-reading-frame').dataset.generating}})()`)
+ const resting=await evaluate(`(()=>{const editor=document.querySelector('[data-testid=note-enhanced-editor]'),pane=editor.closest('.note-notes-pane'),heading=editor.querySelector('h2');return {top:pane.scrollTop,headingVisible:heading.getBoundingClientRect().top>=pane.getBoundingClientRect().top,summaryFits:pane.scrollHeight<=pane.clientHeight+1,lastLineVisible:editor.lastElementChild.getBoundingClientRect().bottom<=pane.getBoundingClientRect().bottom-20,generating:pane.closest('.note-reading-frame').dataset.generating}})()`)
assert.equal(resting.generating,'false')
assert.equal(resting.top,0,'completed live Summary rests at the top, including during Ask')
assert(resting.headingVisible,'the complete Summary heading stays below the tab bar')
+ assert(resting.summaryFits && resting.lastLineVisible,'the complete Summary fits above the bottom fade')
}
assert.deepEqual(errors,[],'live Summary and Ask have no runtime errors')
await call('Emulation.setEmulatedMedia',{features:[{name:'prefers-color-scheme',value:'light'},{name:'prefers-reduced-motion',value:'reduce'}]})