From ca51a6317ba0a57750923ac463a9e367a2c33130 Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Tue, 16 Sep 2025 17:02:58 +0200 Subject: [PATCH] A lot sof small qualtiy of life upgrades --- CLAUDE.md | 45 +- helpers/xsdtime/xsdtime.go | 25 +- templating/engine.go | 29 + viewmodels/issue_view.go | 246 +- views/assets/skyscraper.webp | Bin 0 -> 3866 bytes views/assets/style.css | 2 +- views/layouts/components/_header.gohtml | 13 +- views/layouts/components/_menu.gohtml | 2 +- views/layouts/default/root.gohtml | 20 +- views/layouts/fullwidth/root.gohtml | 15 +- views/public/skyscraper.webp | Bin 0 -> 3866 bytes views/routes/ausgabe/body.gohtml | 105 +- .../components/_inhaltsverzeichnis.gohtml | 178 +- .../_inhaltsverzeichnis_eintrag.gohtml | 694 ++++-- .../components/_newspaper_layout.gohtml | 2046 ++++++++++------- .../ausgabe/components/_title_nav.gohtml | 67 +- views/transform/site.css | 29 + 17 files changed, 2109 insertions(+), 1407 deletions(-) create mode 100644 views/assets/skyscraper.webp create mode 100644 views/public/skyscraper.webp diff --git a/CLAUDE.md b/CLAUDE.md index efc17e1..e892a76 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -13,10 +13,10 @@ The application follows a modular Go architecture: - **Main Application**: `kgpz_web.go` - Entry point and application lifecycle management - **App Core**: `app/kgpz.go` - Core business logic and data processing - **Controllers**: Route handlers for different content types (issues, agents, places, categories, search) -- **View Models**: Data structures for template rendering (`viewmodels/`) +- **View Models**: Data structures for template rendering with pre-processed business logic (`viewmodels/`) - **XML Models**: Data structures for parsing source XML files (`xmlmodels/`) - **Providers**: External service integrations (Git, GND, XML parsing, search) -- **Templating**: Custom template engine with Go template integration +- **Templating**: Custom template engine with Go template integration and helper functions - **Views**: Frontend assets and templates in `views/` directory ### Key Components @@ -24,7 +24,7 @@ The application follows a modular Go architecture: 1. **Data Sources**: XML files from Git repository containing historical newspaper metadata 2. **Search**: Full-text search powered by Bleve search engine 3. **External Integrations**: GND (Gemeinsame Normdatei) for person metadata, Geonames for place data -4. **Template System**: Custom engine supporting layouts and partials with embedded filesystem +4. **Template System**: Custom engine supporting layouts and partials with embedded filesystem and helper functions ## Development Commands @@ -154,10 +154,12 @@ Each route has dedicated `head.gohtml` and `body.gohtml` files following Go temp - HTMX-powered interactions for dynamic content loading **Template Features**: -- Go template syntax with custom functions from `app/kgpz.go` +- Go template syntax with custom functions from `templating/engine.go` - Block template inheritance system - HTMX integration for progressive enhancement - Conditional development/production asset loading +- Template helper functions for UI components (PageIcon, BeilagePageIcon) +- Pre-processed view models to minimize template logic ### Frontend Assets @@ -187,10 +189,43 @@ The root template conditionally loads assets based on environment: - Module imports: ES6 modules with `setup()` function from compiled scripts - Deferred loading: HTMX and Alpine.js loaded with `defer` attribute +## Template Architecture & Best Practices + +### View Model Philosophy +The application follows a **logic-in-Go, presentation-in-templates** approach: + +- **View Models** (`viewmodels/issue_view.go`): Pre-process all business logic, calculations, and data transformations +- **Templates**: Focus purely on presentation using pre-calculated data +- **Helper Functions** (`templating/engine.go`): Reusable UI components and formatting + +### Key View Model Features +- **Pre-calculated metadata**: Page icons, grid layouts, visibility flags +- **Grouped data structures**: Complex relationships resolved in Go +- **Template helpers**: `PageIcon()`, `BeilagePageIcon()` for consistent UI components + +### Template Organization +**Ausgabe (Issue) Templates**: +- `body.gohtml`: Main layout structure with conditional rendering +- `components/_inhaltsverzeichnis.gohtml`: Table of contents with pre-processed page data +- `components/_newspaper_layout.gohtml`: Newspaper page grid with absolute positioning +- `components/_bilder.gohtml`: Simple image gallery fallback +- Interactive highlighting system with intersection observer and scroll detection + +### JavaScript Integration +- **Progressive Enhancement**: HTMX + Alpine.js for interactivity +- **Real-time Highlighting**: Intersection Observer API with scroll fallback +- **Page Navigation**: Smooth scrolling with visibility detection +- **Responsive Design**: Mobile-optimized with proper touch interactions + ## Development Workflow 1. Backend changes: Modify Go files, restart server 2. Template changes: Edit templates in `views/`, automatic reload if watching enabled 3. CSS changes: Run `npm run css` or `npm run tailwind` in views directory 4. JavaScript changes: Edit `transform/main.js`, run `npm run build` -5. Full rebuild: `go build` for backend, `npm run build` for frontend assets \ No newline at end of file +5. Full rebuild: `go build` for backend, `npm run build` for frontend assets + +### Adding New Template Logic +1. **First**: Add business logic to view models in Go +2. **Second**: Create reusable template helper functions if needed +3. **Last**: Use pre-processed data in templates for presentation only \ No newline at end of file diff --git a/helpers/xsdtime/xsdtime.go b/helpers/xsdtime/xsdtime.go index 862c5a9..3a35f8f 100644 --- a/helpers/xsdtime/xsdtime.go +++ b/helpers/xsdtime/xsdtime.go @@ -10,8 +10,10 @@ import ( // An implementation of the xsd 1.1 datatypes: // date, gDay, gMonth, gMonthDay, gYear, gYearMonth. -type XSDDatetype int -type Seperator byte +type ( + XSDDatetype int + Seperator byte +) const ( DEFAULT_YEAR = 0 @@ -39,6 +41,11 @@ const ( GYearMonth ) +var ( + MonthNameShort = []string{"Jan", "Feb", "März", "Apr", "Mai", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"} + MonthName = []string{"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"} +) + type XSDDate struct { base string @@ -123,6 +130,20 @@ func (d XSDDate) String() string { return s } +func (d *XSDDate) MonthName() string { + if d.Month == 0 { + return "" + } + return MonthName[d.Month-1] +} + +func (d *XSDDate) MonthNameShort() string { + if d.Month == 0 { + return "" + } + return MonthNameShort[d.Month-1] +} + func (d *XSDDate) UnmarshalText(text []byte) error { return d.Parse(string(text)) } diff --git a/templating/engine.go b/templating/engine.go index 1dc564b..56432bb 100644 --- a/templating/engine.go +++ b/templating/engine.go @@ -41,6 +41,22 @@ func NewEngine(layouts, templates *fs.FS) *Engine { return &e } +// PageIcon renders the appropriate icon HTML for a page based on its icon type +func PageIcon(iconType string) template.HTML { + switch iconType { + case "first": + return template.HTML(``) + case "last": + return template.HTML(``) + case "even": + return template.HTML(``) + case "odd": + return template.HTML(``) + default: + return template.HTML(``) + } +} + func (e *Engine) funcs() error { e.mu.Lock() e.mu.Unlock() @@ -55,6 +71,16 @@ func (e *Engine) funcs() error { e.AddFunc("sub", func(a, b int) int { return a - b }) e.AddFunc("add", func(a, b int) int { return a + b }) e.AddFunc("mod", func(a, b int) int { return a % b }) + e.AddFunc("seq", func(start, end int) []int { + if start > end { + return []int{} + } + result := make([]int, end-start+1) + for i := range result { + result[i] = start + i + } + return result + }) // Strings e.AddFunc("FirstLetter", functions.FirstLetter) @@ -68,6 +94,9 @@ func (e *Engine) funcs() error { e.AddFunc("Embed", embedder.Embed()) e.AddFunc("EmbedXSLT", embedder.EmbedXSLT()) + // Page icons for ausgabe templates + e.AddFunc("PageIcon", PageIcon) + return nil } diff --git a/viewmodels/issue_view.go b/viewmodels/issue_view.go index 143a551..6c9fae3 100644 --- a/viewmodels/issue_view.go +++ b/viewmodels/issue_view.go @@ -26,23 +26,28 @@ type PiecesByPage struct { Pages []int } -// GroupedPieceByIssue represents a piece that may span multiple consecutive pages -type GroupedPieceByIssue struct { +// IndividualPieceByIssue represents a piece with metadata for individual page display +type IndividualPieceByIssue struct { PieceByIssue - StartPage int - EndPage int // Same as StartPage if not grouped + IssueRefs []xmlmodels.IssueRef // All issues this piece appears in + PageIcon string // Icon type: "first", "last", "even", "odd" } -// GroupedPiecesByPage holds pieces grouped by consecutive pages when identical -type GroupedPiecesByPage struct { - Items map[int][]GroupedPieceByIssue +// IndividualPiecesByPage holds pieces as individual page entries +type IndividualPiecesByPage struct { + Items map[int][]IndividualPieceByIssue Pages []int } type IssuePage struct { - PageNumber int - ImagePath string - Available bool + PageNumber int + ImagePath string + Available bool + GridColumn int // 1 or 2 for left/right positioning + GridRow int // Row number in grid + HasHeader bool // Whether this page has a double-spread header + HeaderText string // Text for double-spread header + PageIcon string // Icon type: "first", "last", "even", "odd" } type IssueImages struct { @@ -72,11 +77,12 @@ var imageRegistry *ImageRegistry // TODO: Next & Prev type IssueVM struct { xmlmodels.Issue - Next *xmlmodels.Issue - Prev *xmlmodels.Issue - Pieces GroupedPiecesByPage - AdditionalPieces GroupedPiecesByPage - Images IssueImages + Next *xmlmodels.Issue + Prev *xmlmodels.Issue + Pieces IndividualPiecesByPage + AdditionalPieces IndividualPiecesByPage + Images IssueImages + HasBeilageButton bool // Whether to show beilage navigation button } func NewSingleIssueView(y, no int, lib *xmlmodels.Library) (*IssueVM, error) { @@ -122,14 +128,15 @@ func NewSingleIssueView(y, no int, lib *xmlmodels.Library) (*IssueVM, error) { slices.Sort(ppa.Pages) // Group consecutive continuation pieces - sivm.Pieces = GroupConsecutiveContinuations(ppi) - sivm.AdditionalPieces = GroupConsecutiveContinuations(ppa) + sivm.Pieces = CreateIndividualPagesWithMetadata(ppi, lib) + sivm.AdditionalPieces = CreateIndividualPagesWithMetadata(ppa, lib) images, err := LoadIssueImages(*issue) if err != nil { return nil, err } sivm.Images = images + sivm.HasBeilageButton = len(sivm.AdditionalPieces.Pages) > 0 return &sivm, nil } @@ -211,105 +218,157 @@ func pagesHaveIdenticalContent(items1, items2 []PieceByIssue) bool { return true } -// pageContainsOnlyContinuations checks if a page contains only continuation pieces -func pageContainsOnlyContinuations(pageItems []PieceByIssue) bool { - if len(pageItems) == 0 { - return false - } - for _, piece := range pageItems { - if !piece.IsContinuation { - return false - } - } - return true -} - -// GroupConsecutiveContinuations groups consecutive pages where next page only contains continuations -func GroupConsecutiveContinuations(pieces PiecesByPage) GroupedPiecesByPage { - grouped := GroupedPiecesByPage{ - Items: make(map[int][]GroupedPieceByIssue), +// CreateIndividualPagesWithMetadata creates individual page entries with metadata +func CreateIndividualPagesWithMetadata(pieces PiecesByPage, lib *xmlmodels.Library) IndividualPiecesByPage { + individual := IndividualPiecesByPage{ + Items: make(map[int][]IndividualPieceByIssue), Pages: []int{}, } if len(pieces.Pages) == 0 { - return grouped + return individual } - // Sort pages to ensure correct order - sortedPages := make([]int, len(pieces.Pages)) - copy(sortedPages, pieces.Pages) - slices.Sort(sortedPages) - - processedPages := make(map[int]bool) - - for _, page := range sortedPages { - if processedPages[page] { - continue - } - + // Process each page individually + for _, page := range pieces.Pages { pageItems := pieces.Items[page] - startPage := page - endPage := page - - // Keep extending the group while next page contains only continuations - for checkPage := endPage + 1; ; checkPage++ { - // Only proceed if this page exists in our data - if _, exists := pieces.Items[checkPage]; !exists { - break - } - - // Only proceed if this page hasn't been processed yet - if processedPages[checkPage] { - break - } - - checkPageItems := pieces.Items[checkPage] - - // Group if the next page contains ONLY continuations - if pageContainsOnlyContinuations(checkPageItems) { - endPage = checkPage - processedPages[checkPage] = true - // Continue to check if next page also contains only continuations - } else { - break - } - } - - // Create grouped items with proper ordering (continuations first) - groupedItems := []GroupedPieceByIssue{} + individualItems := []IndividualPieceByIssue{} // First add all continuation pieces for _, piece := range pageItems { if piece.IsContinuation { - groupedItems = append(groupedItems, GroupedPieceByIssue{ + individualPiece := IndividualPieceByIssue{ PieceByIssue: piece, - StartPage: startPage, - EndPage: endPage, - }) + IssueRefs: getPieceIssueRefs(piece.Piece, lib), + PageIcon: determinePageIcon(page, pieces.Pages), + } + individualItems = append(individualItems, individualPiece) } } // Then add all non-continuation pieces for _, piece := range pageItems { if !piece.IsContinuation { - groupedItems = append(groupedItems, GroupedPieceByIssue{ + individualPiece := IndividualPieceByIssue{ PieceByIssue: piece, - StartPage: startPage, - EndPage: endPage, - }) + IssueRefs: getPieceIssueRefs(piece.Piece, lib), + PageIcon: determinePageIcon(page, pieces.Pages), + } + individualItems = append(individualItems, individualPiece) } } - if len(groupedItems) > 0 { - grouped.Items[startPage] = groupedItems - grouped.Pages = append(grouped.Pages, startPage) + if len(individualItems) > 0 { + individual.Items[page] = individualItems + individual.Pages = append(individual.Pages, page) } - processedPages[page] = true } - slices.Sort(grouped.Pages) - return grouped + slices.Sort(individual.Pages) + return individual +} + + +// determinePageIcon determines the icon type for a page based on newspaper layout positioning +func determinePageIcon(pageNum int, allPages []int) string { + if len(allPages) == 0 { + return "first" + } + + slices.Sort(allPages) + firstPage := allPages[0] + lastPage := allPages[len(allPages)-1] + + // Newspaper layout logic based on physical page positioning + if pageNum == firstPage { + return "first" // Front page - normal icon + } else if pageNum == lastPage { + return "last" // Back page - mirrored icon + } else { + // For middle pages in a 4-page newspaper layout: + // Page 2 (left side of middle spread) should be "even" + // Page 3 (right side of middle spread) should be "odd" + // But we need to consider the actual page position in layout + if pageNum == firstPage+1 { + return "even" // Page 2 - black + mirrored grey + } else if pageNum == lastPage-1 { + return "odd" // Page 3 - grey + black + } else { + // For newspapers with more than 4 pages, use alternating pattern + if pageNum%2 == 0 { + return "even" + } else { + return "odd" + } + } + } +} + +// getPieceIssueRefs gets all issue references for a piece +func getPieceIssueRefs(piece xmlmodels.Piece, lib *xmlmodels.Library) []xmlmodels.IssueRef { + refs := []xmlmodels.IssueRef{} + + for _, ref := range piece.IssueRefs { + refs = append(refs, ref) + } + + return refs +} + +// calculateGridLayout calculates grid positioning for newspaper pages +func calculateGridLayout(pages []IssuePage) []IssuePage { + if len(pages) == 0 { + return pages + } + + result := make([]IssuePage, len(pages)) + copy(result, pages) + + for i := range result { + page := &result[i] + pageNum := i + 1 // 1-based page numbers + + // Determine grid position based on newspaper layout logic + switch pageNum { + case 1: + // Page 1: Left, Row 1 + page.GridColumn = 1 + page.GridRow = 1 + page.PageIcon = "first" + case 2, 3: + // Pages 2-3: Double spread with header, Row 2 + if pageNum == 2 { + page.GridColumn = 1 + page.HasHeader = true + page.HeaderText = fmt.Sprintf("%d-%d", pageNum, pageNum+1) + } else { + page.GridColumn = 2 + } + page.GridRow = 2 + page.PageIcon = determinePageIconForLayout(pageNum) + case 4: + // Page 4: Right, Row 3 + page.GridColumn = 2 + page.GridRow = 3 + page.PageIcon = "last" + default: + // Handle additional pages if needed + page.GridColumn = ((pageNum - 1) % 2) + 1 + page.GridRow = ((pageNum - 1) / 2) + 1 + page.PageIcon = determinePageIconForLayout(pageNum) + } + } + + return result +} + +// determinePageIconForLayout determines icon for layout positioning +func determinePageIconForLayout(pageNum int) string { + if pageNum%2 == 0 { + return "even" + } + return "odd" } func LoadIssueImages(issue xmlmodels.Issue) (IssueImages, error) { @@ -386,11 +445,18 @@ func LoadIssueImages(issue xmlmodels.Issue) (IssueImages, error) { } if len(beilagePages) > 0 { + // Calculate grid layout for beilage pages + beilagePages = calculateGridLayout(beilagePages) // Use beilage number 1 as default images.AdditionalPages[1] = beilagePages } } + // Calculate grid layout for main pages + if len(images.MainPages) > 0 { + images.MainPages = calculateGridLayout(images.MainPages) + } + return images, nil } diff --git a/views/assets/skyscraper.webp b/views/assets/skyscraper.webp new file mode 100644 index 0000000000000000000000000000000000000000..ec16ef87b23b9919741c867c8217d196f36dd13d GIT binary patch literal 3866 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 literal 0 HcmV?d00001 diff --git a/views/assets/style.css b/views/assets/style.css index 61d7218..8262a2e 100644 --- a/views/assets/style.css +++ b/views/assets/style.css @@ -1 +1 @@ -/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */@layer theme{:root{--font-sans:"Source Sans 3","Merriweather Sans",ui-sans-serif;--font-serif:"Merriweather",ui-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings);--font-script:Rancho,ui-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%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,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}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-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{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;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}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components{html{font-size:15.5px}body{background-color:var(--color-slate-50)}h1,h2,h3,h4{font-family:var(--font-serif);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}a{-webkit-hyphens:none;hyphens:none;color:var(--color-slate-700);text-decoration-line:underline;text-decoration-style:dotted}@media (hover:hover){a:hover{color:var(--color-slate-900);text-decoration-style:solid}}ul{margin-block:calc(var(--spacing)*2)}li{margin-left:calc(var(--spacing)*14);list-style-type:disc}a[aria-current=page]{color:var(--color-red-500)!important}main{flex-grow:1;flex-shrink:0}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.top-4{top:calc(var(--spacing)*4)}.right-2{right:calc(var(--spacing)*2)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-10{grid-column:span 10/span 10}.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}}.\!m-0{margin:calc(var(--spacing)*0)!important}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-12{margin-top:calc(var(--spacing)*12)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-auto{height:auto}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-screen{min-height:100vh}.w-6\/12{width:50%}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--breakpoint-2xl\){max-width:var(--breakpoint-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.translate-2{--tw-translate-x:calc(var(--spacing)*2);--tw-translate-y:calc(var(--spacing)*2);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)}.cursor-pointer{cursor:pointer}.columns-1{columns:1}.break-inside-avoid{break-inside:avoid}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-subgrid{grid-template-columns:subgrid}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-8{column-gap:calc(var(--spacing)*8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-10{row-gap:calc(var(--spacing)*10)}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-400{border-color:var(--color-amber-400)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-300{border-color:var(--color-green-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-stone-200{border-color:var(--color-stone-200)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-stone-100{background-color:var(--color-stone-100)}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.\!p-0{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-0{padding-inline:calc(var(--spacing)*0)}.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:calc(var(--spacing)*1)}.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-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pr-1{padding-right:calc(var(--spacing)*1)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-right{text-align:right}.align-bottom{vertical-align:bottom}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-slate-400{color:var(--color-slate-400)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-white{color:var(--color-white)}.italic{font-style:italic}.no-underline{text-decoration-line:none}.no-underline\!{text-decoration-line:none!important}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.\[a-zA-Z\:\\-\\\.\]{a-zA-Z:\-\.}.font-variant-small-caps{font-variant-caps:small-caps}.first\:mb-0:first-child{margin-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-amber-300:hover{border-color:var(--color-amber-300)}.hover\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\:bg-amber-100:hover{background-color:var(--color-amber-100)}.hover\:bg-amber-200:hover{background-color:var(--color-amber-200)}.hover\:bg-amber-700:hover{background-color:var(--color-amber-700)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-green-100:hover{background-color:var(--color-green-100)}.hover\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:text-amber-600:hover{color:var(--color-amber-600)}.hover\:text-amber-800:hover{color:var(--color-amber-800)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-green-800:hover{color:var(--color-green-800)}.hover\:text-slate-700:hover{color:var(--color-slate-700)}}@media (width>=64rem){.lg\:sticky{position:sticky}.lg\:top-12{top:calc(var(--spacing)*12)}.lg\:top-24{top:calc(var(--spacing)*24)}.lg\:h-12{height:calc(var(--spacing)*12)}.lg\:max-h-\[calc\(100vh-2rem\)\]{max-height:calc(100vh - 2rem)}.lg\:max-h-\[calc\(100vh-6rem\)\]{max-height:calc(100vh - 6rem)}.lg\:w-1\/4{width:25%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-16{width:calc(var(--spacing)*16)}.lg\:w-20{width:calc(var(--spacing)*20)}.lg\:columns-2{columns:2}.lg\:flex-row{flex-direction:row}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-6{padding-inline:calc(var(--spacing)*6)}.lg\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=80rem){.xl\:w-1\/5{width:20%}.xl\:w-3\/5{width:60%}.xl\:w-4\/5{width:80%}.xl\:w-24{width:calc(var(--spacing)*24)}.xl\:px-8{padding-inline:calc(var(--spacing)*8)}}.\[\&\>div\]\:bg-slate-100>div{background-color:var(--color-slate-100)}.\[\&\>div\]\:px-4>div{padding-inline:calc(var(--spacing)*4)}.\[\&\>div\]\:py-3>div{padding-block:calc(var(--spacing)*3)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@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;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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:"";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-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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} +/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */@layer theme{:root{--font-sans:"Source Sans 3","Merriweather Sans",ui-sans-serif;--font-serif:"Merriweather",ui-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings);--font-script:Rancho,ui-serif;--color-abyss:#0b1215;--color-shadow:#0f171f;--color-eclipse:#0b0b0b;--color-storm:#020c1a;--color-deep:#011122;--color-obsidian:#161616}}@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%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,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}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-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{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;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}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentColor)}::file-selector-button{border-color:var(--color-gray-200,currentColor)}}@layer components{html{font-size:15.5px}body{background-color:var(--color-slate-50)}h1,h2,h3,h4{font-family:var(--font-serif);--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}a{-webkit-hyphens:none;hyphens:none;color:var(--color-slate-700);text-decoration-line:underline;text-decoration-style:dotted}@media (hover:hover){a:hover{color:var(--color-slate-900);text-decoration-style:solid}}ul{margin-block:calc(var(--spacing)*2)}li{margin-left:calc(var(--spacing)*14);list-style-type:disc}a[aria-current=page]{color:var(--color-red-500)!important}main{flex-grow:1;flex-shrink:0}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.right-2{right:calc(var(--spacing)*2)}.z-40{z-index:40}.z-50{z-index:50}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-10{grid-column:span 10/span 10}.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}}.\!m-0{margin:calc(var(--spacing)*0)!important}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-12{margin-top:calc(var(--spacing)*12)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.ml-2{margin-left:calc(var(--spacing)*2)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-1{height:calc(var(--spacing)*1)}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-auto{height:auto}.h-full{height:100%}.max-h-full{max-height:100%}.min-h-screen{min-height:100vh}.w-6{width:calc(var(--spacing)*6)}.w-6\/12{width:50%}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\(--breakpoint-2xl\){max-width:var(--breakpoint-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.translate-2{--tw-translate-x:calc(var(--spacing)*2);--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-x-\[-1\]{--tw-scale-x:-1;scale:var(--tw-scale-x)var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-pointer{cursor:pointer}.columns-1{columns:1}.break-inside-avoid{break-inside:avoid}.grid-flow-row-dense{grid-auto-flow:dense}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-subgrid{grid-template-columns:subgrid}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-8{column-gap:calc(var(--spacing)*8)}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-10{row-gap:calc(var(--spacing)*10)}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.border-t-8{border-top-style:var(--tw-border-style);border-top-width:8px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-300{border-color:var(--color-amber-300)}.border-amber-400{border-color:var(--color-amber-400)}.border-blue-300{border-color:var(--color-blue-300)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-green-300{border-color:var(--color-green-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-600{border-color:var(--color-slate-600)}.border-stone-200{border-color:var(--color-stone-200)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-500{background-color:var(--color-red-500)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-slate-800{background-color:var(--color-slate-800)}.bg-stone-100{background-color:var(--color-stone-100)}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.\!p-0{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.px-0{padding-inline:calc(var(--spacing)*0)}.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)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1{padding-block:calc(var(--spacing)*1)}.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-4{padding-block:calc(var(--spacing)*4)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pr-1{padding-right:calc(var(--spacing)*1)}.pb-16{padding-bottom:calc(var(--spacing)*16)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-right{text-align:right}.align-bottom{vertical-align:bottom}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.hyphens-auto{-webkit-hyphens:auto;hyphens:auto}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-slate-400{color:var(--color-slate-400)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-800{color:var(--color-slate-800)}.text-white{color:var(--color-white)}.italic{font-style:italic}.no-underline{text-decoration-line:none}.no-underline\!{text-decoration-line:none!important}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.\[a-zA-Z\:\\-\\\.\]{a-zA-Z:\-\.}.font-variant-small-caps{font-variant-caps:small-caps}.first\:mb-0:first-child{margin-bottom:calc(var(--spacing)*0)}@media (hover:hover){.hover\:scale-\[1\.02\]:hover{scale:1.02}.hover\:border-amber-300:hover{border-color:var(--color-amber-300)}.hover\:border-blue-300:hover{border-color:var(--color-blue-300)}.hover\:border-slate-300:hover{border-color:var(--color-slate-300)}.hover\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\:bg-amber-100:hover{background-color:var(--color-amber-100)}.hover\:bg-amber-200:hover{background-color:var(--color-amber-200)}.hover\:bg-amber-700:hover{background-color:var(--color-amber-700)}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-green-100:hover{background-color:var(--color-green-100)}.hover\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\:bg-slate-100:hover{background-color:var(--color-slate-100)}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:text-amber-600:hover{color:var(--color-amber-600)}.hover\:text-amber-800:hover{color:var(--color-amber-800)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-gray-800:hover{color:var(--color-gray-800)}.hover\:text-green-800:hover{color:var(--color-green-800)}.hover\:text-slate-700:hover{color:var(--color-slate-700)}}@media (width>=64rem){.lg\:sticky{position:sticky}.lg\:top-8{top:calc(var(--spacing)*8)}.lg\:top-12{top:calc(var(--spacing)*12)}.lg\:top-24{top:calc(var(--spacing)*24)}.lg\:h-12{height:calc(var(--spacing)*12)}.lg\:max-h-\[calc\(100vh-2rem\)\]{max-height:calc(100vh - 2rem)}.lg\:max-h-\[calc\(100vh-6rem\)\]{max-height:calc(100vh - 6rem)}.lg\:w-1\/4{width:25%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-16{width:calc(var(--spacing)*16)}.lg\:w-20{width:calc(var(--spacing)*20)}.lg\:columns-2{columns:2}.lg\:flex-row{flex-direction:row}.lg\:overflow-y-auto{overflow-y:auto}.lg\:px-6{padding-inline:calc(var(--spacing)*6)}.lg\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}@media (width>=80rem){.xl\:w-1\/5{width:20%}.xl\:w-3\/5{width:60%}.xl\:w-4\/5{width:80%}.xl\:w-24{width:calc(var(--spacing)*24)}.xl\:px-8{padding-inline:calc(var(--spacing)*8)}}.\[\&\>div\]\:bg-slate-100>div{background-color:var(--color-slate-100)}.\[\&\>div\]\:px-4>div{padding-inline:calc(var(--spacing)*4)}.\[\&\>div\]\:py-3>div{padding-block:calc(var(--spacing)*3)}}body:before{content:"";z-index:-1;opacity:.4;background-image:url(skyscraper.webp);background-position:50%;background-repeat:repeat;background-size:100px 100px;position:fixed;top:-50%;right:-50%;bottom:-50%;left:-50%;transform:rotate(15deg)skew(10deg)scale(3)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@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-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}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@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-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@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:"";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-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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} diff --git a/views/layouts/components/_header.gohtml b/views/layouts/components/_header.gohtml index 4818a64..68c835e 100644 --- a/views/layouts/components/_header.gohtml +++ b/views/layouts/components/_header.gohtml @@ -1,3 +1,12 @@ -
-

Königsberger gelehrte und politische Zeitungen

+
+
+ +

Königsberger gelehrte und politische Zeitungen

+
+
+ +
diff --git a/views/layouts/components/_menu.gohtml b/views/layouts/components/_menu.gohtml index d38b14e..9588a4b 100644 --- a/views/layouts/components/_menu.gohtml +++ b/views/layouts/components/_menu.gohtml @@ -1,4 +1,4 @@ -
+
+ {{ template "_header" . }}
-
- {{ block "_header" . }} - - {{ end }} -
- -
- {{ block "_menu" . }} - - {{ end }} -
-
{{ block "body" . }} {{ end }}
- -
- {{ block "_footer" . }} - {{ end }} -
+ {{ block "_footer" . }} + {{ end }} {{ EmbedXSLT "xslt/transform-citation.xsl" }} diff --git a/views/layouts/fullwidth/root.gohtml b/views/layouts/fullwidth/root.gohtml index 1c5508b..6395c94 100644 --- a/views/layouts/fullwidth/root.gohtml +++ b/views/layouts/fullwidth/root.gohtml @@ -32,19 +32,8 @@
-
-
- {{ block "_header" . }} - - {{ end }} -
+ {{ template "_header" . }} -
- {{ block "_menu" . }} - - {{ end }} -
-
@@ -64,4 +53,4 @@ {{ EmbedXSLT "xslt/transform-citation.xsl" }} - \ No newline at end of file + diff --git a/views/public/skyscraper.webp b/views/public/skyscraper.webp new file mode 100644 index 0000000000000000000000000000000000000000..ec16ef87b23b9919741c867c8217d196f36dd13d GIT binary patch literal 3866 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 literal 0 HcmV?d00001 diff --git a/views/routes/ausgabe/body.gohtml b/views/routes/ausgabe/body.gohtml index 38e27e8..963d209 100644 --- a/views/routes/ausgabe/body.gohtml +++ b/views/routes/ausgabe/body.gohtml @@ -2,73 +2,78 @@ {{ if $model.Images.HasImages }} -
+
-
+
-
-
- {{ template "_title_nav" . }} - {{ template "_inhaltsverzeichnis" . }} +
+
+
+ {{ template "_title_nav" . }} +
+
+ {{ template "_inhaltsverzeichnis" . }} +
-
+
{{ template "_newspaper_layout" . }}
-
+
- + - + - {{ if $model.AdditionalPieces.Pages }} - - {{ end }} + {{ if $model.HasBeilageButton }} + + {{ end }} - -
- - + +
- - + + + + +
diff --git a/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml b/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml index 1fbdf54..f2ef05d 100644 --- a/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml +++ b/views/routes/ausgabe/components/_inhaltsverzeichnis.gohtml @@ -8,52 +8,65 @@

Inhalt

- {{ range $page := $model.Pieces.Pages }} -
+ {{ range $page := $model.Pieces.Pages }} + {{ $pageItems := (index $model.Pieces.Items $page) }} + {{ $firstItem := index $pageItems 0 }} + + + +
- {{ $allPages := $model.Pieces.Pages }} - {{ $firstPage := index $allPages 0 }} - {{ $lastPageIndex := sub (len $allPages) 1 }} - {{ $lastPage := index $allPages $lastPageIndex }} - {{ if eq $page $firstPage }} - - {{ else if eq $page $lastPage }} - - {{ else }} - {{ $isEvenPage := eq (mod $page 2) 0 }} - {{ if $isEvenPage }} - - {{ else }} - - {{ end }} - {{ end }} - {{ $pageItems := (index $model.Pieces.Items $page) }} - {{ $maxEndPage := $page }} - {{ range $groupedPiece := $pageItems }}{{ if gt $groupedPiece.EndPage $maxEndPage }}{{ $maxEndPage = $groupedPiece.EndPage }}{{ end }}{{ end }} - {{ if ne $page $maxEndPage }}{{ $page }}-{{ $maxEndPage }}{{ else }}{{ $page }}{{ end }} + {{ PageIcon $firstItem.PageIcon }} + + {{ $page }} +
-
+ +
- {{ range $groupedPiece := (index $model.Pieces.Items $page) }} -
- {{ template "_inhaltsverzeichnis_eintrag" $groupedPiece.PieceByIssue }} + {{ range $individualPiece := $pageItems }} +
+ {{ template "_inhaltsverzeichnis_eintrag" $individualPiece.PieceByIssue }} - {{ if and (not $groupedPiece.PieceByIssue.IsContinuation) (gt (len $groupedPiece.IssueRefs) 1) }} + {{ if and (not $individualPiece.PieceByIssue.IsContinuation) (gt (len $individualPiece.IssueRefs) 1) }}
- {{ range $issue := $groupedPiece.IssueRefs }} + {{ range $issue := $individualPiece.IssueRefs }} - {{- $issue.When.Year }} Nr. {{ $issue.Nr -}} + {{- $issue.When.Year }} Nr. + {{ $issue.Nr -}} {{ end }}
{{ end }} -
+
{{ end }} - - - -
+
{{- end -}}
@@ -86,52 +97,67 @@

Beilage

- {{ range $page := $model.AdditionalPieces.Pages }} -
+ {{ range $page := $model.AdditionalPieces.Pages }} + {{ $pageItems := (index $model.AdditionalPieces.Items $page) }} + {{ $firstItem := index $pageItems 0 }} + + + +
- {{ $allBeilagePages := $model.AdditionalPieces.Pages }} - {{ $firstBeilagePage := index $allBeilagePages 0 }} - {{ $lastBeilagePageIndex := sub (len $allBeilagePages) 1 }} - {{ $lastBeilagePage := index $allBeilagePages $lastBeilagePageIndex }} - {{ if eq $page $firstBeilagePage }} - - {{ else if eq $page $lastBeilagePage }} - - {{ else }} - {{ $isEvenPage := eq (mod $page 2) 0 }} - {{ if $isEvenPage }} - - {{ else }} - - {{ end }} - {{ end }} - {{ $pageItems := (index $model.AdditionalPieces.Items $page) }} - {{ $maxEndPage := $page }} - {{ range $groupedPiece := $pageItems }}{{ if gt $groupedPiece.EndPage $maxEndPage }}{{ $maxEndPage = $groupedPiece.EndPage }}{{ end }}{{ end }} - {{ if ne $page $maxEndPage }}{{ $page }}-{{ $maxEndPage }}{{ else }}{{ $page }}{{ end }} + {{ PageIcon $firstItem.PageIcon }} + + {{ $page }} +
-
-
- {{ range $groupedPiece := (index $model.AdditionalPieces.Items $page) }} -
- {{ template "_inhaltsverzeichnis_eintrag" $groupedPiece.PieceByIssue }} + + +
+ {{ range $individualPiece := $pageItems }} +
+ {{ template "_inhaltsverzeichnis_eintrag" $individualPiece.PieceByIssue }} - {{ if and (not $groupedPiece.PieceByIssue.IsContinuation) (gt (len $groupedPiece.IssueRefs) 1) }} + {{ if and (not $individualPiece.PieceByIssue.IsContinuation) (gt (len $individualPiece.IssueRefs) 1) }}
- {{ range $issue := $groupedPiece.IssueRefs }} + {{ range $issue := $individualPiece.IssueRefs }} - {{- $issue.When.Year }} Nr. {{ $issue.Nr -}} + {{- $issue.When.Year }} Nr. + {{ $issue.Nr -}} {{ end }}
{{ end }} -
+
{{ end }} - - - -
+
{{- end -}}
diff --git a/views/routes/ausgabe/components/_inhaltsverzeichnis_eintrag.gohtml b/views/routes/ausgabe/components/_inhaltsverzeichnis_eintrag.gohtml index 22b95fd..4a471c8 100644 --- a/views/routes/ausgabe/components/_inhaltsverzeichnis_eintrag.gohtml +++ b/views/routes/ausgabe/components/_inhaltsverzeichnis_eintrag.gohtml @@ -1,292 +1,510 @@ {{- $piece := . -}} {{- $fortsPrefix := "" -}} -{{- if $piece.IsContinuation -}}{{- $fortsPrefix = "(Forts.) " -}}{{- end -}} +{{- if $piece.IsContinuation -}} + {{- $fortsPrefix = "(Forts.) " -}} +{{- end -}} +
-{{- $hasRezension := false -}} -{{- $hasWeltnachrichten := false -}} -{{- $hasEinkommendeFremde := false -}} -{{- $hasWechselkurse := false -}} -{{- $hasBuecher := false -}} -{{- $hasLokalanzeigen := false -}} -{{- $hasLokalnachrichten := false -}} -{{- $hasLotterie := false -}} -{{- $hasGedicht := false -}} -{{- $hasVorladung := false -}} -{{- $hasAuszug := false -}} -{{- $hasAufsatz := false -}} -{{- $hasGelehrteNachrichten := false -}} -{{- $hasTheaterkritik := false -}} -{{- $hasUebersetzung := false -}} -{{- $hasKommentar := false -}} -{{- $hasNachruf := false -}} -{{- $hasReplik := false -}} -{{- $hasProklamation := false -}} -{{- $hasIneigenersache := false -}} -{{- $hasBrief := false -}} -{{- $hasAnzeige := false -}} -{{- $hasDesertionsliste := false -}} -{{- $hasNotenblatt := false -}} -{{- $hasVorlesungsverzeichnis := false -}} -{{- $hasErzaehlung := false -}} -{{- $hasNachtrag := false -}} -{{- $hasPanegyrik := false -}} -{{- $hasKriminalanzeige := false -}} -{{- $hasAbbildung := false -}} -{{- $hasRezepte := false -}} -{{- $hasKorrektur := false -}} + {{- $hasRezension := false -}} + {{- $hasWeltnachrichten := false -}} + {{- $hasEinkommendeFremde := false -}} + {{- $hasWechselkurse := false -}} + {{- $hasBuecher := false -}} + {{- $hasLokalanzeigen := false -}} + {{- $hasLokalnachrichten := false -}} + {{- $hasLotterie := false -}} + {{- $hasGedicht := false -}} + {{- $hasVorladung := false -}} + {{- $hasAuszug := false -}} + {{- $hasAufsatz := false -}} + {{- $hasGelehrteNachrichten := false -}} + {{- $hasTheaterkritik := false -}} + {{- $hasUebersetzung := false -}} + {{- $hasKommentar := false -}} + {{- $hasNachruf := false -}} + {{- $hasReplik := false -}} + {{- $hasProklamation := false -}} + {{- $hasIneigenersache := false -}} + {{- $hasBrief := false -}} + {{- $hasAnzeige := false -}} + {{- $hasDesertionsliste := false -}} + {{- $hasNotenblatt := false -}} + {{- $hasVorlesungsverzeichnis := false -}} + {{- $hasErzaehlung := false -}} + {{- $hasNachtrag := false -}} + {{- $hasPanegyrik := false -}} + {{- $hasKriminalanzeige := false -}} + {{- $hasAbbildung := false -}} + {{- $hasRezepte := false -}} + {{- $hasKorrektur := false -}} -{{- range $catref := $piece.CategoryRefs -}} - {{- if eq $catref.Ref "rezension" -}}{{- $hasRezension = true -}}{{- end -}} - {{- if eq $catref.Ref "weltnachrichten" -}}{{- $hasWeltnachrichten = true -}}{{- end -}} - {{- if eq $catref.Ref "einkommende-fremde" -}}{{- $hasEinkommendeFremde = true -}}{{- end -}} - {{- if eq $catref.Ref "wechselkurse" -}}{{- $hasWechselkurse = true -}}{{- end -}} - {{- if eq $catref.Ref "buecher" -}}{{- $hasBuecher = true -}}{{- end -}} - {{- if eq $catref.Ref "lokalanzeigen" -}}{{- $hasLokalanzeigen = true -}}{{- end -}} - {{- if eq $catref.Ref "lokalnachrichten" -}}{{- $hasLokalnachrichten = true -}}{{- end -}} - {{- if eq $catref.Ref "lotterie" -}}{{- $hasLotterie = true -}}{{- end -}} - {{- if eq $catref.Ref "gedicht" -}}{{- $hasGedicht = true -}}{{- end -}} - {{- if eq $catref.Ref "vorladung" -}}{{- $hasVorladung = true -}}{{- end -}} - {{- if eq $catref.Ref "auszug" -}}{{- $hasAuszug = true -}}{{- end -}} - {{- if eq $catref.Ref "aufsatz" -}}{{- $hasAufsatz = true -}}{{- end -}} - {{- if eq $catref.Ref "gelehrte-nachrichten" -}}{{- $hasGelehrteNachrichten = true -}}{{- end -}} - {{- if eq $catref.Ref "theaterkritik" -}}{{- $hasTheaterkritik = true -}}{{- end -}} - {{- if eq $catref.Ref "uebersetzung" -}}{{- $hasUebersetzung = true -}}{{- end -}} - {{- if eq $catref.Ref "kommentar" -}}{{- $hasKommentar = true -}}{{- end -}} - {{- if eq $catref.Ref "nachruf" -}}{{- $hasNachruf = true -}}{{- end -}} - {{- if eq $catref.Ref "replik" -}}{{- $hasReplik = true -}}{{- end -}} - {{- if eq $catref.Ref "proklamation" -}}{{- $hasProklamation = true -}}{{- end -}} - {{- if eq $catref.Ref "ineigenersache" -}}{{- $hasIneigenersache = true -}}{{- end -}} - {{- if eq $catref.Ref "brief" -}}{{- $hasBrief = true -}}{{- end -}} - {{- if eq $catref.Ref "anzeige" -}}{{- $hasAnzeige = true -}}{{- end -}} - {{- if eq $catref.Ref "desertionsliste" -}}{{- $hasDesertionsliste = true -}}{{- end -}} - {{- if eq $catref.Ref "notenblatt" -}}{{- $hasNotenblatt = true -}}{{- end -}} - {{- if eq $catref.Ref "vorlesungsverzeichnis" -}}{{- $hasVorlesungsverzeichnis = true -}}{{- end -}} - {{- if eq $catref.Ref "erzaehlung" -}}{{- $hasErzaehlung = true -}}{{- end -}} - {{- if eq $catref.Ref "nachtrag" -}}{{- $hasNachtrag = true -}}{{- end -}} - {{- if eq $catref.Ref "panegyrik" -}}{{- $hasPanegyrik = true -}}{{- end -}} - {{- if eq $catref.Ref "kriminalanzeige" -}}{{- $hasKriminalanzeige = true -}}{{- end -}} - {{- if eq $catref.Ref "abbildung" -}}{{- $hasAbbildung = true -}}{{- end -}} - {{- if eq $catref.Ref "rezepte" -}}{{- $hasRezepte = true -}}{{- end -}} - {{- if eq $catref.Ref "korrektur" -}}{{- $hasKorrektur = true -}}{{- end -}} -{{- end -}} - -{{- range $workref := $piece.WorkRefs -}} - {{- $kat := $workref.Category -}} - {{- if not $kat -}}{{- $kat = "rezension" -}}{{- end -}} - {{- if eq $kat "rezension" -}}{{- $hasRezension = true -}}{{- end -}} - {{- if eq $kat "auszug" -}}{{- $hasAuszug = true -}}{{- end -}} - {{- if eq $kat "theaterkritik" -}}{{- $hasTheaterkritik = true -}}{{- end -}} - {{- if eq $kat "uebersetzung" -}}{{- $hasUebersetzung = true -}}{{- end -}} - {{- if eq $kat "kommentar" -}}{{- $hasKommentar = true -}}{{- end -}} - {{- if eq $kat "anzeige" -}}{{- $hasAnzeige = true -}}{{- end -}} - {{- if eq $kat "replik" -}}{{- $hasReplik = true -}}{{- end -}} -{{- end -}} - -{{- $place := "" -}} -{{- if $piece.PlaceRefs -}} - {{- $placeObj := GetPlace (index $piece.PlaceRefs 0).Ref -}} - {{- if gt (len $placeObj.Names) 0 -}} - {{- $place = index $placeObj.Names 0 -}} + {{- range $catref := $piece.CategoryRefs -}} + {{- if eq $catref.Ref "rezension" -}}{{- $hasRezension = true -}}{{- end -}} + {{- if eq $catref.Ref "weltnachrichten" -}}{{- $hasWeltnachrichten = true -}}{{- end -}} + {{- if eq $catref.Ref "einkommende-fremde" -}}{{- $hasEinkommendeFremde = true -}}{{- end -}} + {{- if eq $catref.Ref "wechselkurse" -}}{{- $hasWechselkurse = true -}}{{- end -}} + {{- if eq $catref.Ref "buecher" -}}{{- $hasBuecher = true -}}{{- end -}} + {{- if eq $catref.Ref "lokalanzeigen" -}}{{- $hasLokalanzeigen = true -}}{{- end -}} + {{- if eq $catref.Ref "lokalnachrichten" -}}{{- $hasLokalnachrichten = true -}}{{- end -}} + {{- if eq $catref.Ref "lotterie" -}}{{- $hasLotterie = true -}}{{- end -}} + {{- if eq $catref.Ref "gedicht" -}}{{- $hasGedicht = true -}}{{- end -}} + {{- if eq $catref.Ref "vorladung" -}}{{- $hasVorladung = true -}}{{- end -}} + {{- if eq $catref.Ref "auszug" -}}{{- $hasAuszug = true -}}{{- end -}} + {{- if eq $catref.Ref "aufsatz" -}}{{- $hasAufsatz = true -}}{{- end -}} + {{- if eq $catref.Ref "gelehrte-nachrichten" -}} + {{- $hasGelehrteNachrichten = true -}} + {{- end -}} + {{- if eq $catref.Ref "theaterkritik" -}}{{- $hasTheaterkritik = true -}}{{- end -}} + {{- if eq $catref.Ref "uebersetzung" -}}{{- $hasUebersetzung = true -}}{{- end -}} + {{- if eq $catref.Ref "kommentar" -}}{{- $hasKommentar = true -}}{{- end -}} + {{- if eq $catref.Ref "nachruf" -}}{{- $hasNachruf = true -}}{{- end -}} + {{- if eq $catref.Ref "replik" -}}{{- $hasReplik = true -}}{{- end -}} + {{- if eq $catref.Ref "proklamation" -}}{{- $hasProklamation = true -}}{{- end -}} + {{- if eq $catref.Ref "ineigenersache" -}}{{- $hasIneigenersache = true -}}{{- end -}} + {{- if eq $catref.Ref "brief" -}}{{- $hasBrief = true -}}{{- end -}} + {{- if eq $catref.Ref "anzeige" -}}{{- $hasAnzeige = true -}}{{- end -}} + {{- if eq $catref.Ref "desertionsliste" -}}{{- $hasDesertionsliste = true -}}{{- end -}} + {{- if eq $catref.Ref "notenblatt" -}}{{- $hasNotenblatt = true -}}{{- end -}} + {{- if eq $catref.Ref "vorlesungsverzeichnis" -}} + {{- $hasVorlesungsverzeichnis = true -}} + {{- end -}} + {{- if eq $catref.Ref "erzaehlung" -}}{{- $hasErzaehlung = true -}}{{- end -}} + {{- if eq $catref.Ref "nachtrag" -}}{{- $hasNachtrag = true -}}{{- end -}} + {{- if eq $catref.Ref "panegyrik" -}}{{- $hasPanegyrik = true -}}{{- end -}} + {{- if eq $catref.Ref "kriminalanzeige" -}}{{- $hasKriminalanzeige = true -}}{{- end -}} + {{- if eq $catref.Ref "abbildung" -}}{{- $hasAbbildung = true -}}{{- end -}} + {{- if eq $catref.Ref "rezepte" -}}{{- $hasRezepte = true -}}{{- end -}} + {{- if eq $catref.Ref "korrektur" -}}{{- $hasKorrektur = true -}}{{- end -}} {{- end -}} -{{- end -}} -{{- $title := "" -}} -{{- if $piece.Title -}} - {{- $title = index $piece.Title 0 -}} -{{- else if $piece.Incipit -}} - {{- $title = index $piece.Incipit 0 -}} -{{- end -}} - -{{- $workTitle := "" -}} -{{- $workAuthorName := "" -}} -{{- $workAuthorID := "" -}} -{{- if $piece.WorkRefs -}} - {{- $work := GetWork (index $piece.WorkRefs 0).Ref -}} - {{- if $work.PreferredTitle -}} - {{- $workTitle = $work.PreferredTitle -}} - {{- else if $work.Citation.Title -}} - {{- $workTitle = $work.Citation.Title -}} - {{- else if $work.Citation.Chardata -}} - {{- $workTitle = $work.Citation.Chardata -}} + {{- range $workref := $piece.WorkRefs -}} + {{- $kat := $workref.Category -}} + {{- if not $kat -}}{{- $kat = "rezension" -}}{{- end -}} + {{- if eq $kat "rezension" -}}{{- $hasRezension = true -}}{{- end -}} + {{- if eq $kat "auszug" -}}{{- $hasAuszug = true -}}{{- end -}} + {{- if eq $kat "theaterkritik" -}}{{- $hasTheaterkritik = true -}}{{- end -}} + {{- if eq $kat "uebersetzung" -}}{{- $hasUebersetzung = true -}}{{- end -}} + {{- if eq $kat "kommentar" -}}{{- $hasKommentar = true -}}{{- end -}} + {{- if eq $kat "anzeige" -}}{{- $hasAnzeige = true -}}{{- end -}} + {{- if eq $kat "replik" -}}{{- $hasReplik = true -}}{{- end -}} {{- end -}} - {{- /* Get work author */ -}} - {{- if $work.AgentRefs -}} - {{- range $workAgentRef := $work.AgentRefs -}} - {{- if (or (eq $workAgentRef.Category "") (eq $workAgentRef.Category "autor")) -}} - {{- $workAgent := GetAgent $workAgentRef.Ref -}} - {{- if and $workAgent (gt (len $workAgent.Names) 0) -}} - {{- $workAuthorName = index $workAgent.Names 0 -}} - {{- $workAuthorID = $workAgentRef.Ref -}} - {{- break -}} + + {{- $place := "" -}} + {{- if $piece.PlaceRefs -}} + {{- $placeObj := GetPlace (index $piece.PlaceRefs 0).Ref -}} + {{- if gt (len $placeObj.Names) 0 -}} + {{- $place = index $placeObj.Names 0 -}} + {{- end -}} + {{- end -}} + + {{- $title := "" -}} + {{- if $piece.Title -}} + {{- $title = index $piece.Title 0 -}} + {{- else if $piece.Incipit -}} + {{- $title = index $piece.Incipit 0 -}} + {{- end -}} + + {{- $workTitle := "" -}} + {{- $workTitleFull := "" -}} + {{- $workAuthorName := "" -}} + {{- $workAuthorID := "" -}} + {{- if $piece.WorkRefs -}} + {{- $work := GetWork (index $piece.WorkRefs 0).Ref -}} + {{- /* Determine short title (PreferredTitle) and full title (Citation.Title) */ -}} + {{- if $work.PreferredTitle -}} + {{- $workTitle = $work.PreferredTitle -}} + {{- else if $work.Citation.Title -}} + {{- $workTitle = $work.Citation.Title -}} + {{- else if $work.Citation.Chardata -}} + {{- $workTitle = $work.Citation.Chardata -}} + {{- end -}} + {{- /* Always get full title for highlighted state */ -}} + {{- if $work.Citation.Title -}} + {{- $workTitleFull = $work.Citation.Title -}} + {{- else if $work.Citation.Chardata -}} + {{- $workTitleFull = $work.Citation.Chardata -}} + {{- else if $work.PreferredTitle -}} + {{- $workTitleFull = $work.PreferredTitle -}} + {{- end -}} + {{- /* Get work author */ -}} + {{- if $work.AgentRefs -}} + {{- range $workAgentRef := $work.AgentRefs -}} + {{- if (or (eq $workAgentRef.Category "") (eq $workAgentRef.Category "autor")) -}} + {{- $workAgent := GetAgent $workAgentRef.Ref -}} + {{- if and $workAgent (gt (len $workAgent.Names) 0) -}} + {{- $workAuthorName = index $workAgent.Names 0 -}} + {{- $workAuthorID = $workAgentRef.Ref -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}} -{{- end -}} -{{- /* Generate natural text descriptions */ -}} + {{- /* Generate natural text descriptions */ -}} -{{- if $hasRezension -}} - {{- $authorFound := false -}} - {{- range $agentref := $piece.AgentRefs -}} - {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} - {{- $agent := GetAgent $agentref.Ref -}} - {{- if and $agent (gt (len $agent.Names) 0) -}} - {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}{{ if $workTitle }}, Rezension: {{ $workTitle }}{{ if $workAuthorName }}{{ if $workAuthorID }} von {{ $workAuthorName }}{{ else }} von {{ $workAuthorName }}{{ end }}{{ end }}{{ else if $title }}, Rezension: {{ $title }}{{ else }}, Rezension{{ end }}{{ if $place }} ({{ $place }}){{ end }} - {{- $authorFound = true -}} - {{- break -}} + {{- if $hasRezension -}} + {{- $authorFound := false -}} + {{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}} + {{- if and $agent (gt (len $agent.Names) 0) -}} + {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, + Rezension von: + {{ if $workAuthorName }} + {{- if $workAuthorID -}} + {{ $workAuthorName }} + {{- else -}} + {{ $workAuthorName }} + {{- end -}}, + {{ end }} + {{ if $workTitle }} + {{ $workTitle }} + {{ else if $title }} + {{ $title }} + {{ else }} + [Werk unbekannt] + {{ end }}{{ if $place }}({{ $place }}){{ end }} + {{- $authorFound = true -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} - {{- end -}} - {{- if not $authorFound -}} - {{ Safe $fortsPrefix }}Rezension{{ if $workTitle }}: {{ $workTitle }}{{ if $workAuthorName }}{{ if $workAuthorID }} von {{ $workAuthorName }}{{ else }} von {{ $workAuthorName }}{{ end }}{{ end }}{{ else if $title }}: {{ $title }}{{ end }}{{ if $place }} ({{ $place }}){{ end }} - {{- end -}} + {{- if not $authorFound -}} + {{ Safe $fortsPrefix }}Rezension von: + {{ if $workAuthorName }} + {{- if $workAuthorID -}} + {{ $workAuthorName }} + {{- else -}} + {{ $workAuthorName }} + {{- end -}}, + {{ end }} + {{ if $workTitle }} + {{ $workTitle }} + {{ else if $title }} + {{ $title }} + {{ else }} + [Werk unbekannt] + {{ end }}{{ if $place }}({{ $place }}){{ end }} + {{- end -}} -{{- else if $hasWeltnachrichten -}} - {{ Safe $fortsPrefix }}Politische Nachrichten aus aller Welt + {{- else if $hasWeltnachrichten -}} + {{ Safe $fortsPrefix }}Politische Nachrichten aus aller Welt + {{- else if $hasEinkommendeFremde -}} + {{- if $hasLokalnachrichten -}} + Lokale Meldungen über einreisende Fremde + {{- else if $hasNachruf -}} + Nachruf und Einreiseliste + {{- else -}} + Einreiseliste + {{- end -}} + {{ if $place }}für {{ $place }}{{ end }} -{{- else if $hasEinkommendeFremde -}} - {{- if $hasLokalnachrichten -}}Lokale Meldungen über einreisende Fremde{{- else if $hasNachruf -}}Nachruf und Einreiseliste{{- else -}}Einreiseliste{{- end -}}{{ if $place }} für {{ $place }}{{ end }} + {{- else if $hasWechselkurse -}} + Wechselkurse{{ if $place }}in {{ $place }}{{ end }} -{{- else if $hasWechselkurse -}} - Wechselkurse{{ if $place }} in {{ $place }}{{ end }} + {{- else if $hasBuecher -}} + Bücheranzeigen{{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasBuecher -}} - Bücheranzeigen{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasLokalanzeigen -}} + {{ if $hasNachruf }} + Todesanzeige + {{ else }} + Lokalanzeige + {{ end }} + {{ if $place }}aus {{ $place }}{{ end }}{{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasLokalanzeigen -}} - {{ if $hasNachruf }}Todesanzeige{{ else }}Lokalanzeige{{ end }}{{ if $place }} aus {{ $place }}{{ end }}{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasLokalnachrichten -}} + {{ if $hasLotterie }} + Lotterienachrichten + {{ else if $hasNachruf }} + Nachrufe + {{ else if $hasTheaterkritik }} + Theaternachrichten + {{ else if $hasPanegyrik }} + Festlichkeiten + {{ else }} + Lokalnachrichten + {{ end }} + {{ if $place }}aus {{ $place }}{{ end }} -{{- else if $hasLokalnachrichten -}} - {{ if $hasLotterie }}Lotterienachrichten{{ else if $hasNachruf }}Nachrufe{{ else if $hasTheaterkritik }}Theaternachrichten{{ else if $hasPanegyrik }}Festlichkeiten{{ else }}Lokalnachrichten{{ end }}{{ if $place }} aus {{ $place }}{{ end }} - -{{- else if $hasGedicht -}} - {{- $authorFound := false -}} - {{- range $agentref := $piece.AgentRefs -}} - {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} - {{- $agent := GetAgent $agentref.Ref -}} - {{- if and $agent (gt (len $agent.Names) 0) -}} - {{ index $agent.Names 0 }}, {{ if $hasKommentar }}Gedicht mit Kommentar{{ else if $hasUebersetzung }}Gedichtübersetzung{{ else if $hasGelehrteNachrichten }}Gedicht zu gelehrten Angelegenheiten{{ else }}Gedicht{{ end }}{{ if $title }}: „{{ $title }}"{{ end }} - {{- $authorFound = true -}} - {{- break -}} + {{- else if $hasGedicht -}} + {{- $authorFound := false -}} + {{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}} + {{- if and $agent (gt (len $agent.Names) 0) -}} + {{ index $agent.Names 0 }}, + {{ if $hasKommentar }} + Gedicht mit Kommentar + {{ else if $hasUebersetzung }} + Gedichtübersetzung + {{ else if $hasGelehrteNachrichten }} + Gedicht zu gelehrten Angelegenheiten + {{ else }} + Gedicht + {{ end }}{{ if $title }}: „{{ $title }}"{{ end }} + {{- $authorFound = true -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} - {{- end -}} - {{- if not $authorFound -}} - {{ if $hasKommentar }}Gedicht mit Kommentar{{ else if $hasUebersetzung }}Gedichtübersetzung{{ else if $hasGelehrteNachrichten }}Gedicht zu gelehrten Angelegenheiten{{ else }}Gedicht{{ end }}{{ if $title }}: „{{ $title }}"{{ end }} - {{- end -}} + {{- if not $authorFound -}} + {{ if $hasKommentar }} + Gedicht mit Kommentar + {{ else if $hasUebersetzung }} + Gedichtübersetzung + {{ else if $hasGelehrteNachrichten }} + Gedicht zu gelehrten Angelegenheiten + {{ else }} + Gedicht + {{ end }}{{ if $title }}: „{{ $title }}"{{ end }} + {{- end -}} -{{- else if $hasVorladung -}} - Gerichtliche Vorladung{{ if $place }} in {{ $place }}{{ end }}{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasVorladung -}} + Gerichtliche + Vorladung{{ if $place }}in {{ $place }}{{ end }}{{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasAufsatz -}} - {{- $authorFound := false -}} - {{- range $agentref := $piece.AgentRefs -}} - {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} - {{- $agent := GetAgent $agentref.Ref -}} - {{- if and $agent (gt (len $agent.Names) 0) -}} - {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, {{ if $hasReplik }}Erwiderung{{ else if $hasUebersetzung }}Übersetzung{{ else if $hasNachruf }}Nachruf{{ else if $hasKommentar }}Kommentar{{ else if $hasRezepte }}Rezepte und Anleitungen{{ else }}Aufsatz{{ end }}{{ if $title }}: „{{ $title }}"{{ end }} - {{- $authorFound = true -}} - {{- break -}} + {{- else if $hasAufsatz -}} + {{- $authorFound := false -}} + {{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}} + {{- if and $agent (gt (len $agent.Names) 0) -}} + {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, + {{ if $hasReplik }} + Erwiderung + {{ else if $hasUebersetzung }} + Übersetzung + {{ else if $hasNachruf }} + Nachruf + {{ else if $hasKommentar }} + Kommentar + {{ else if $hasRezepte }} + Rezepte und Anleitungen + {{ else }} + Aufsatz + {{ end }}{{ if $title }}: „{{ $title }}"{{ end }} + {{- $authorFound = true -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} - {{- end -}} - {{- if not $authorFound -}} - {{ Safe $fortsPrefix }}{{ if $hasReplik }}Erwiderung{{ else if $hasUebersetzung }}Übersetzung{{ else if $hasNachruf }}Nachruf{{ else if $hasKommentar }}Kommentar{{ else if $hasRezepte }}Rezepte und Anleitungen{{ else }}Aufsatz{{ end }}{{ if $title }}: „{{ $title }}"{{ end }} - {{- end -}} + {{- if not $authorFound -}} + {{ Safe $fortsPrefix }}{{ if $hasReplik }} + Erwiderung + {{ else if $hasUebersetzung }} + Übersetzung + {{ else if $hasNachruf }} + Nachruf + {{ else if $hasKommentar }} + Kommentar + {{ else if $hasRezepte }} + Rezepte und Anleitungen + {{ else }} + Aufsatz + {{ end }}{{ if $title }}: „{{ $title }}"{{ end }} + {{- end -}} -{{- else if $hasGelehrteNachrichten -}} - {{ Safe $fortsPrefix }}{{ if $hasTheaterkritik }}Theaterkritik{{ else if $hasKommentar }}Gelehrter Kommentar{{ else }}Gelehrte Nachrichten{{ end }}{{ if $place }} aus {{ $place }}{{ end }} + {{- else if $hasGelehrteNachrichten -}} + {{ Safe $fortsPrefix }}{{ if $hasTheaterkritik }} + Theaterkritik + {{ else if $hasKommentar }} + Gelehrter Kommentar + {{ else }} + Gelehrte Nachrichten + {{ end }} + {{ if $place }}aus {{ $place }}{{ end }} -{{- else if $hasTheaterkritik -}} - {{- $authorFound := false -}} - {{- range $agentref := $piece.AgentRefs -}} - {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} - {{- $agent := GetAgent $agentref.Ref -}} - {{- if and $agent (gt (len $agent.Names) 0) -}} - {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, Theaterkritik{{ if $workTitle }} zu {{ $workTitle }}{{ if $workAuthorName }} von {{ $workAuthorName }}{{ end }}{{ else if $title }} zu {{ $title }}{{ end }}{{ if $place }} ({{ $place }}){{ end }} - {{- $authorFound = true -}} - {{- break -}} + {{- else if $hasTheaterkritik -}} + {{- $authorFound := false -}} + {{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}} + {{- if and $agent (gt (len $agent.Names) 0) -}} + {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, + Theaterkritik{{ if $workTitle }} + zu {{ $workTitle }}{{ if $workAuthorName }} + von + {{ $workAuthorName }} + {{ end }} + {{ else if $title }} + zu {{ $title }} + {{ end }}{{ if $place }}({{ $place }}){{ end }} + {{- $authorFound = true -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} - {{- end -}} - {{- if not $authorFound -}} - {{ Safe $fortsPrefix }}Theaterkritik{{ if $workTitle }} zu {{ $workTitle }}{{ if $workAuthorName }} von {{ $workAuthorName }}{{ end }}{{ else if $title }} zu {{ $title }}{{ end }}{{ if $place }} ({{ $place }}){{ end }} - {{- end -}} + {{- if not $authorFound -}} + {{ Safe $fortsPrefix }}Theaterkritik{{ if $workTitle }} + zu {{ $workTitle }}{{ if $workAuthorName }} + von {{ $workAuthorName }} + {{ end }} + {{ else if $title }} + zu {{ $title }} + {{ end }}{{ if $place }}({{ $place }}){{ end }} + {{- end -}} -{{- else if $hasProklamation -}} - {{ Safe $fortsPrefix }}Amtliche Proklamation{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasProklamation -}} + {{ Safe $fortsPrefix }}Amtliche + Proklamation{{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasIneigenersache -}} - {{ Safe $fortsPrefix }}{{ if $hasKommentar }}{{ if $hasNachtrag }}Ergänzender Kommentar{{ else }}Redaktioneller Kommentar{{ end }}{{ else if $hasReplik }}Redaktionelle Stellungnahme{{ else }}Anmerkung der Redaktion{{ end }}{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasIneigenersache -}} + {{ Safe $fortsPrefix }}{{ if $hasKommentar }} + {{ if $hasNachtrag }}Ergänzender Kommentar{{ else }}Redaktioneller Kommentar{{ end }} + {{ else if $hasReplik }} + Redaktionelle Stellungnahme + {{ else }} + Anmerkung der Redaktion + {{ end }} + {{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasBrief -}} - {{ Safe $fortsPrefix }}{{ if $hasNachruf }}Kondolenzbrief{{ else }}Leserbrief{{ end }}{{- $authorFound := false -}}{{- range $agentref := $piece.AgentRefs -}}{{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}}{{- $agent := GetAgent $agentref.Ref -}}{{- if and $agent (gt (len $agent.Names) 0) -}} von {{ index $agent.Names 0 }}{{- $authorFound = true -}}{{- break -}}{{- end -}}{{- end -}}{{- end -}}{{ if $place }} aus {{ $place }}{{ end }} + {{- else if $hasBrief -}} + {{ Safe $fortsPrefix }}{{ if $hasNachruf }} + Kondolenzbrief + {{ else }} + Leserbrief + {{ end }} + {{- $authorFound := false -}}{{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}}{{- if and $agent (gt (len $agent.Names) 0) -}} + von + {{ index $agent.Names 0 }}{{- $authorFound = true -}}{{- break -}} + {{- end -}} -{{- else if $hasDesertionsliste -}} - {{ Safe $fortsPrefix }}Desertionsliste{{ if $place }} für {{ $place }}{{ end }} + {{- end -}} -{{- else if $hasNotenblatt -}} - {{ Safe $fortsPrefix }}{{ if $hasNachtrag }}Ergänztes {{ end }}Notenblatt{{ if $title }}: {{ $title }}{{ end }} + {{- end -}} + {{ if $place }}aus {{ $place }}{{ end }} -{{- else if $hasVorlesungsverzeichnis -}} - {{ Safe $fortsPrefix }}Vorlesungsverzeichnis{{ if $place }} der Universität {{ $place }}{{ end }} + {{- else if $hasDesertionsliste -}} + {{ Safe $fortsPrefix }}Desertionsliste{{ if $place }}für {{ $place }}{{ end }} -{{- else if $hasErzaehlung -}} - {{- $authorFound := false -}} - {{- range $agentref := $piece.AgentRefs -}} - {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} - {{- $agent := GetAgent $agentref.Ref -}} - {{- if and $agent (gt (len $agent.Names) 0) -}} - {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, {{ if $hasUebersetzung }}Übersetzung einer Erzählung{{ else }}Erzählung{{ end }}{{ if $title }}: „{{ $title }}"{{ end }} - {{- $authorFound = true -}} - {{- break -}} + {{- else if $hasNotenblatt -}} + {{ Safe $fortsPrefix }}{{ if $hasNachtrag }}Ergänztes{{ end }}Notenblatt{{ if $title }} + : {{ $title }} + {{ end }} + + {{- else if $hasVorlesungsverzeichnis -}} + {{ Safe $fortsPrefix }}Vorlesungsverzeichnis{{ if $place }}der Universität {{ $place }}{{ end }} + + {{- else if $hasErzaehlung -}} + {{- $authorFound := false -}} + {{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}} + {{- if and $agent (gt (len $agent.Names) 0) -}} + {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}, + {{ if $hasUebersetzung }} + Übersetzung einer Erzählung + {{ else }} + Erzählung + {{ end }}{{ if $title }}: „{{ $title }}"{{ end }} + {{- $authorFound = true -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} - {{- end -}} - {{- if not $authorFound -}} - {{ Safe $fortsPrefix }}{{ if $hasUebersetzung }}Übersetzung einer Erzählung{{ else }}Erzählung{{ end }}{{ if $title }}: „{{ $title }}"{{ end }} - {{- end -}} + {{- if not $authorFound -}} + {{ Safe $fortsPrefix }}{{ if $hasUebersetzung }} + Übersetzung einer Erzählung + {{ else }} + Erzählung + {{ end }}{{ if $title }}: „{{ $title }}"{{ end }} + {{- end -}} -{{- else if $hasAbbildung -}} - {{ Safe $fortsPrefix }}{{ if $hasAufsatz }}Illustrierter Aufsatz{{ else }}Abbildung{{ end }}{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasAbbildung -}} + {{ Safe $fortsPrefix }}{{ if $hasAufsatz }} + Illustrierter Aufsatz + {{ else }} + Abbildung + {{ end }} + {{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasKriminalanzeige -}} - {{ Safe $fortsPrefix }}Kriminalanzeige{{ if $place }} aus {{ $place }}{{ end }} + {{- else if $hasKriminalanzeige -}} + {{ Safe $fortsPrefix }}Kriminalanzeige{{ if $place }}aus {{ $place }}{{ end }} -{{- else if $hasKorrektur -}} - {{ Safe $fortsPrefix }}Korrektur{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasKorrektur -}} + {{ Safe $fortsPrefix }}Korrektur{{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasAnzeige -}} - {{ Safe $fortsPrefix }}{{ if $hasAuszug }}{{ if $hasGedicht }}Gedichtauszug{{ else }}Textauszug{{ end }}{{ else }}Anzeige{{ end }}{{ if $title }}: {{ $title }}{{ end }} + {{- else if $hasAnzeige -}} + {{ Safe $fortsPrefix }}{{ if $hasAuszug }} + {{ if $hasGedicht }}Gedichtauszug{{ else }}Textauszug{{ end }} + {{ else }} + Anzeige + {{ end }} + {{ if $title }}: {{ $title }}{{ end }} -{{- else if $hasAuszug -}} - {{ Safe $fortsPrefix }}Auszug{{ if $title }}: „{{ $title }}"{{ end }}{{ if $workTitle }} aus {{ $workTitle }}{{ if $workAuthorName }} von {{ $workAuthorName }}{{ end }}{{ end }} + {{- else if $hasAuszug -}} + {{ Safe $fortsPrefix }}Auszug{{ if $title }}: „{{ $title }}"{{ end }} + {{ if $workTitle }} + aus {{ $workTitle }}{{ if $workAuthorName }} + von {{ $workAuthorName }} + {{ end }} -{{- else -}} - {{- $authorFound := false -}} - {{- range $agentref := $piece.AgentRefs -}} - {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} - {{- $agent := GetAgent $agentref.Ref -}} - {{- if and $agent (gt (len $agent.Names) 0) -}} - {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}{{ if $title }}: {{ $title }}{{ end }}{{ if $workTitle }}{{ if $title }} aus {{ end }}{{ $workTitle }}{{ if $workAuthorName }} von {{ $workAuthorName }}{{ end }}{{ end }} - {{- $authorFound = true -}} - {{- break -}} + {{ end }} + + {{- else -}} + {{- $authorFound := false -}} + {{- range $agentref := $piece.AgentRefs -}} + {{- if (or (eq $agentref.Category "") (eq $agentref.Category "autor")) -}} + {{- $agent := GetAgent $agentref.Ref -}} + {{- if and $agent (gt (len $agent.Names) 0) -}} + {{ Safe $fortsPrefix }}{{ index $agent.Names 0 }}{{ if $title }}: {{ $title }}{{ end }}{{ if $workTitle }} + {{ if $title }}aus{{ end }}{{ $workTitle }}{{ if $workAuthorName }} + von + {{ $workAuthorName }} + {{ end }} + {{ end }} + {{- $authorFound = true -}} + {{- break -}} + {{- end -}} {{- end -}} {{- end -}} - {{- end -}} - {{- if not $authorFound -}} - {{ Safe $fortsPrefix }}{{ if $title }}{{ $title }}{{ end }}{{ if $workTitle }}{{ if $title }} aus {{ end }}{{ $workTitle }}{{ if $workAuthorName }} von {{ $workAuthorName }}{{ end }}{{ else if not $title }}Beitrag ohne Titel{{ end }} - {{- end -}} + {{- if not $authorFound -}} + {{ Safe $fortsPrefix }}{{ if $title }}{{ $title }}{{ end }}{{ if $workTitle }} + {{ if $title }}aus{{ end }}{{ $workTitle }}{{ if $workAuthorName }} + von {{ $workAuthorName }} + {{ end }} + {{ else if not $title }} + Beitrag ohne Titel + {{ end }} + {{- end -}} -{{- end -}} + {{- end -}}
{{- if not $piece.IsContinuation -}} -{{- range $annotation := $piece.AnnotationNote.Annotations -}} -
- {{ $annotation.Inner.InnerXML }} -
+ {{- range $annotation := $piece.AnnotationNote.Annotations -}} +
+ {{ $annotation.Inner.InnerXML }} +
+ {{- end -}} {{- end -}} -{{- end -}} \ No newline at end of file diff --git a/views/routes/ausgabe/components/_newspaper_layout.gohtml b/views/routes/ausgabe/components/_newspaper_layout.gohtml index c9241da..d98f736 100644 --- a/views/routes/ausgabe/components/_newspaper_layout.gohtml +++ b/views/routes/ausgabe/components/_newspaper_layout.gohtml @@ -7,868 +7,1093 @@ {{ $pages := $images.MainPages }} {{ $pageCount := len $pages }} - +
- - {{ if ge $pageCount 1 }} - {{ $page1 := index $pages 0 }} - {{ if $page1.Available }} -
-
-
- - {{ $page1.PageNumber }} + {{ range $index, $page := $pages }} + {{ if $page.Available }} + {{ $pageIndex := $index }} + {{ $isFirstPage := eq $pageIndex 0 }} + {{ $isLastPage := eq $pageIndex (sub $pageCount 1) }} + {{ $isOddPosition := eq (mod $pageIndex 2) 0 }} + {{ $isEvenPosition := eq (mod $pageIndex 2) 1 }} + + {{ if $isFirstPage }} + +
+ +
+ + + + {{ $page.PageNumber }} + + +
+
+ Seite {{ $page.PageNumber }} +
-
-
- Seite {{ $page1.PageNumber }} -
-
- {{ end }} - {{ end }} - - -
- - - {{ if and (ge $pageCount 2) (ge $pageCount 3) }} - {{ $page2 := index $pages 1 }} - {{ $page3 := index $pages 2 }} - {{ if and $page2.Available $page3.Available }} -
-
- - - {{ $page2.PageNumber }}-{{ $page3.PageNumber }} -
-
- {{ end }} - {{ end }} - - - {{ if ge $pageCount 2 }} - {{ $page2 := index $pages 1 }} - {{ if $page2.Available }} -
-
- Seite {{ $page2.PageNumber }} -
-
- {{ end }} - {{ end }} - - - {{ if ge $pageCount 3 }} - {{ $page3 := index $pages 2 }} - {{ if $page3.Available }} -
-
- Seite {{ $page3.PageNumber }} -
-
- {{ end }} - {{ end }} - - -
- - - {{ if ge $pageCount 4 }} - {{ $page4 := index $pages 3 }} - {{ if $page4.Available }} -
-
-
- - {{ $page4.PageNumber }} + +
+ {{ else if $isLastPage }} + +
+
+ +
+ + + {{ $page.PageNumber }} + + + +
+
+ Seite {{ $page.PageNumber }} +
-
-
- Seite {{ $page4.PageNumber }} -
-
+ {{ else }} + + {{ if $isEvenPosition }} + +
+ +
+ + + + {{ $page.PageNumber }} + + +
+
+ Seite {{ $page.PageNumber }} +
+
+ {{ else }} + +
+ +
+ + + {{ $page.PageNumber }} + + + +
+
+ Seite {{ $page.PageNumber }} +
+
+ {{ end }} + {{ end }} {{ end }} {{ end }}
{{ end }} + {{ range $beilageNum, $beilagePages := $images.AdditionalPages }} {{ if $beilagePages }} -
- -
- -

Beilage {{ $beilageNum }}

-
- {{ $pageCount := len $beilagePages }} +
+ +
+ +

Beilage

+
+ {{ $pageCount := len $beilagePages }} - -
- - {{ if ge $pageCount 1 }} - {{ $page1 := index $beilagePages 0 }} - {{ if $page1.Available }} -
-
-
- - {{ $page1.PageNumber }} -
-
-
- Beilage {{ $beilageNum }}, Seite {{ $page1.PageNumber }} -
+ + {{ if eq $pageCount 2 }} + +
+ {{ range $index, $page := $beilagePages }} + {{ if $page.Available }} +
+ +
+ {{ if eq $index 0 }} + + + + {{ $page.PageNumber }} + + + + {{ else }} + + + + + {{ $page.PageNumber }} + + + {{ end }} +
+
+ Beilage {{ $beilageNum }}, Seite {{ $page.PageNumber }} +
+
+ {{ end }} + {{ end }}
- {{ end }} - {{ end }} + {{ else }} + +
+ {{ range $index, $page := $beilagePages }} + {{ if $page.Available }} + {{ $pageIndex := $index }} + {{ $isFirstPage := eq $pageIndex 0 }} + {{ $isLastPage := eq $pageIndex (sub $pageCount 1) }} + {{ $isOddPosition := eq (mod $pageIndex 2) 0 }} + {{ $isEvenPosition := eq (mod $pageIndex 2) 1 }} - -
- - - {{ if and (ge $pageCount 2) (ge $pageCount 3) }} - {{ $page2 := index $beilagePages 1 }} - {{ $page3 := index $beilagePages 2 }} - {{ if and $page2.Available $page3.Available }} -
-
- - - {{ $page2.PageNumber }}-{{ $page3.PageNumber }} -
+ {{ if $isFirstPage }} + +
+ +
+ + + + {{ $page.PageNumber }} + + +
+
+ Beilage {{ $beilageNum }}, Seite {{ $page.PageNumber }} +
+
+ +
+ {{ else if $isLastPage }} + +
+
+ +
+ + + {{ $page.PageNumber }} + + + +
+
+ Beilage {{ $beilageNum }}, Seite {{ $page.PageNumber }} +
+
+ {{ else }} + + {{ if $isEvenPosition }} + +
+ +
+ + + + {{ $page.PageNumber }} + + +
+
+ Beilage {{ $beilageNum }}, Seite {{ $page.PageNumber }} +
+
+ {{ else }} + +
+ +
+ + + {{ $page.PageNumber }} + + + +
+
+ Beilage {{ $beilageNum }}, Seite {{ $page.PageNumber }} +
+
+ {{ end }} + {{ end }} + {{ end }} + {{ end }}
- {{ end }} - {{ end }} - - - {{ if ge $pageCount 2 }} - {{ $page2 := index $beilagePages 1 }} - {{ if $page2.Available }} -
-
- Beilage {{ $beilageNum }}, Seite {{ $page2.PageNumber }} -
-
- {{ end }} - {{ end }} - - - {{ if ge $pageCount 3 }} - {{ $page3 := index $beilagePages 2 }} - {{ if $page3.Available }} -
-
- Beilage {{ $beilageNum }}, Seite {{ $page3.PageNumber }} -
-
- {{ end }} - {{ end }} - - -
- - - {{ if ge $pageCount 4 }} - {{ $page4 := index $beilagePages 3 }} - {{ if $page4.Available }} -
-
-
- - {{ $page4.PageNumber }} -
-
-
- Beilage {{ $beilageNum }}, Seite {{ $page4.PageNumber }} -
-
- {{ end }} {{ end }}
-
{{ end }} {{ end }}
-