diff --git a/apple/OmnivoreKit/Sources/App/AppExtensions/Share/Views/ShareExtensionViewComponents.swift b/apple/OmnivoreKit/Sources/App/AppExtensions/Share/Views/ShareExtensionViewComponents.swift
index fa8f67673..863b91abf 100644
--- a/apple/OmnivoreKit/Sources/App/AppExtensions/Share/Views/ShareExtensionViewComponents.swift
+++ b/apple/OmnivoreKit/Sources/App/AppExtensions/Share/Views/ShareExtensionViewComponents.swift
@@ -2,31 +2,31 @@ import SwiftUI
import Views
// TODO: maybe move this into Views package?
-struct IconButtonView: View {
- let title: String
- let systemIconName: String
- let action: () -> Void
-
- var body: some View {
- Button(action: action) {
- VStack(alignment: .center, spacing: 8) {
- Image(systemName: systemIconName)
- .font(.appTitle)
- .foregroundColor(.appYellow48)
- Text(title)
- .font(.appBody)
- .foregroundColor(.appGrayText)
- }
- .frame(
- maxWidth: .infinity,
- maxHeight: .infinity
- )
- .background(Color.appButtonBackground)
- .cornerRadius(8)
- }
- .frame(height: 100)
- }
-}
+// struct IconButtonView: View {
+// let title: String
+// let systemIconName: String
+// let action: () -> Void
+//
+// var body: some View {
+// Button(action: action) {
+// VStack(alignment: .center, spacing: 8) {
+// Image(systemName: systemIconName)
+// .font(.appTitle)
+// .foregroundColor(.appYellow48)
+// Text(title)
+// .font(.appBody)
+// .foregroundColor(.appGrayText)
+// }
+// .frame(
+// maxWidth: .infinity,
+// maxHeight: .infinity
+// )
+// .background(Color.appButtonBackground)
+// .cornerRadius(8)
+// }
+// .frame(height: 100)
+// }
+// }
struct CheckmarkButtonView: View {
let titleText: String
diff --git a/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift b/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift
index 4564a116b..fc1dfefca 100644
--- a/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift
+++ b/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListCard.swift
@@ -107,10 +107,37 @@ struct HighlightsListCard: View {
}
.padding(.top, 16)
+ if let createdBy = highlightParams.createdBy {
+ HStack(alignment: .center) {
+ if let profileImageURL = createdBy.profileImageURL, let url = URL(string: profileImageURL) {
+ AsyncImage(
+ url: url,
+ content: { $0.resizable() },
+ placeholder: {
+ Image(systemName: "person.crop.circle")
+ .resizable()
+ .foregroundColor(.appGrayText)
+ }
+ )
+ .aspectRatio(contentMode: .fill)
+ .frame(width: 14, height: 14, alignment: .center)
+ .clipShape(Circle())
+ } else {
+ Image(systemName: "person.crop.circle")
+ .resizable()
+ .foregroundColor(.appGrayText)
+ .frame(width: 14, height: 14)
+ }
+ Text("Highlight by \(highlightParams.createdBy?.name ?? "you")")
+ .font(.appFootnote)
+ .foregroundColor(.appGrayText)
+ }
+ }
+
HStack {
Divider()
.frame(width: 2)
- .overlay(Color.appYellow48)
+ .overlay(highlightParams.createdBy != nil ? Color(red: 206 / 255.0, green: 239 / 255.0, blue: 159 / 255.0) : Color.appYellow48)
.opacity(0.8)
.padding(.top, 2)
.padding(.trailing, 6)
diff --git a/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListViewModel.swift b/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListViewModel.swift
index f46bf7552..349cc6c5b 100644
--- a/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListViewModel.swift
+++ b/apple/OmnivoreKit/Sources/App/Views/Highlights/HighlightsListViewModel.swift
@@ -11,6 +11,7 @@ struct HighlightListItemParams: Identifiable {
let annotation: String
let quote: String
let labels: [LinkedItemLabel]
+ let createdBy: InternalUserProfile?
}
@MainActor final class HighlightsListViewModel: ObservableObject {
@@ -31,7 +32,8 @@ struct HighlightListItemParams: Identifiable {
title: highlightItems[index].title,
annotation: annotation,
quote: highlightItems[index].quote,
- labels: highlightItems[index].labels
+ labels: highlightItems[index].labels,
+ createdBy: highlightItems[index].createdBy
)
}
}
@@ -50,7 +52,8 @@ struct HighlightListItemParams: Identifiable {
title: highlightItems[index].title,
annotation: highlightItems[index].annotation,
quote: highlightItems[index].quote,
- labels: labels
+ labels: labels,
+ createdBy: highlightItems[index].createdBy
)
}
}
@@ -68,7 +71,8 @@ struct HighlightListItemParams: Identifiable {
title: "Highlight",
annotation: $0.annotation ?? "",
quote: $0.quote ?? "",
- labels: $0.labels.asArray(of: LinkedItemLabel.self)
+ labels: $0.labels.asArray(of: LinkedItemLabel.self),
+ createdBy: $0.createdByMe ? nil : InternalUserProfile.makeSingle($0.createdBy)
)
}
}
diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupView.swift
index 6db65d0a9..00f316b45 100644
--- a/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupView.swift
+++ b/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupView.swift
@@ -127,7 +127,14 @@ struct RecommendationGroupView: View {
private var membersSection: some View {
Section("Members") {
- if viewModel.nonAdmins.count > 0 {
+ if !viewModel.recommendationGroup.canSeeMembers {
+ Text("""
+ The admin of this group does not allow viewing all members.
+
+ [Learn more about groups](https://blog.omnivore.app/p/dca38ba4-8a74-42cc-90ca-d5ffa5d075cc)
+ """)
+ .accentColor(.blue)
+ } else if viewModel.nonAdmins.count > 0 {
ForEach(viewModel.nonAdmins) { member in
SmallUserCard(data: ProfileCardData(
name: member.name,
diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift
index 570072b41..ec58a6faf 100644
--- a/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift
+++ b/apple/OmnivoreKit/Sources/App/Views/Profile/RecommendationGroupsView.swift
@@ -10,6 +10,8 @@ import Views
@Published var recommendationGroups = [InternalRecommendationGroup]()
@Published var showCreateSheet = false
+ @Published var newGroupOnlyAdminCanPost = false
+ @Published var newGroupOnlyAdminCanSeeMembers = false
@Published var showCreateError = false
@Published var createGroupError: String?
@@ -30,7 +32,6 @@ import Views
isCreating = true
if let group = try? await dataService.createRecommendationGroup(name: name) {
- print("CREATED GROUP: ", group)
await loadGroups(dataService: dataService)
showCreateSheet = false
} else {
@@ -67,6 +68,11 @@ struct CreateRecommendationGroupView: View {
NavigationView {
Form {
TextField("Name", text: $name, prompt: Text("Group Name"))
+
+ Section {
+ Toggle("Only admins can post", isOn: $viewModel.newGroupOnlyAdminCanPost)
+ Toggle("Only admins can see members", isOn: $viewModel.newGroupOnlyAdminCanSeeMembers)
+ }
}
.alert(isPresented: $viewModel.showCreateError) {
Alert(
diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/RecommendToView.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/RecommendToView.swift
index b0c1983f1..866ab92da 100644
--- a/apple/OmnivoreKit/Sources/App/Views/WebReader/RecommendToView.swift
+++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/RecommendToView.swift
@@ -26,7 +26,7 @@ import Views
isLoading = true
do {
- recommendationGroups = try await dataService.recommendationGroups()
+ recommendationGroups = try await dataService.recommendationGroups().filter(\.canPost)
} catch {
print("ERROR fetching recommendationGroups: ", error)
networkError = true
@@ -120,7 +120,7 @@ struct RecommendToView: View {
if viewModel.highlightCount > 0 {
Toggle(isOn: $viewModel.withHighlights, label: {
HStack(alignment: .firstTextBaseline) {
- Text("Include \(viewModel.highlightCount) highlight\(viewModel.highlightCount > 1 ? "s" : "")")
+ Text("Include your \(viewModel.highlightCount) highlight\(viewModel.highlightCount > 1 ? "s" : "")")
}
})
}
@@ -139,24 +139,35 @@ struct RecommendToView: View {
EmptyView()
}
List {
- Section("Select groups to recommend to") {
- ForEach(viewModel.recommendationGroups) { group in
- HStack {
- Text(group.name)
+ if !viewModel.isLoading, viewModel.recommendationGroups.count < 1 {
+ Text("""
+ You do not have any groups you can post to.
- Spacer()
+ Join a group or create your own to start recommending articles.
- if viewModel.selectedGroups.contains(where: { $0.id == group.id }) {
- Image(systemName: "checkmark")
+ [Learn more about groups](https://blog.omnivore.app/p/dca38ba4-8a74-42cc-90ca-d5ffa5d075cc)
+ """)
+ .accentColor(.blue)
+ } else {
+ Section("Select groups to recommend to") {
+ ForEach(viewModel.recommendationGroups) { group in
+ HStack {
+ Text(group.name)
+
+ Spacer()
+
+ if viewModel.selectedGroups.contains(where: { $0.id == group.id }) {
+ Image(systemName: "checkmark")
+ }
}
- }
- .contentShape(Rectangle())
- .onTapGesture {
- let idx = viewModel.selectedGroups.firstIndex(where: { $0.id == group.id })
- if let idx = idx {
- viewModel.selectedGroups.remove(at: idx)
- } else {
- viewModel.selectedGroups.append(group)
+ .contentShape(Rectangle())
+ .onTapGesture {
+ let idx = viewModel.selectedGroups.firstIndex(where: { $0.id == group.id })
+ if let idx = idx {
+ viewModel.selectedGroups.remove(at: idx)
+ } else {
+ viewModel.selectedGroups.append(group)
+ }
}
}
}
diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift
index c03590590..6a8bb2559 100644
--- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift
+++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift
@@ -359,10 +359,12 @@ struct WebReaderContainerView: View {
})
}
.formSheet(isPresented: $showRecommendSheet) {
+ let highlightCount = item.highlights.asArray(of: Highlight.self).filter(\.createdByMe).count
NavigationView {
RecommendToView(
dataService: dataService,
- viewModel: RecommendToViewModel(pageID: item.unwrappedID, highlightCount: item.highlights?.count ?? 0)
+ viewModel: RecommendToViewModel(pageID: item.unwrappedID,
+ highlightCount: highlightCount)
)
}.onDisappear {
showRecommendSheet = false
diff --git a/apple/OmnivoreKit/Sources/Models/CoreData/CoreDataModel.xcdatamodeld/CoreDataModel.xcdatamodel/contents b/apple/OmnivoreKit/Sources/Models/CoreData/CoreDataModel.xcdatamodeld/CoreDataModel.xcdatamodel/contents
index 4ca8869bd..b562055c2 100644
--- a/apple/OmnivoreKit/Sources/Models/CoreData/CoreDataModel.xcdatamodeld/CoreDataModel.xcdatamodel/contents
+++ b/apple/OmnivoreKit/Sources/Models/CoreData/CoreDataModel.xcdatamodeld/CoreDataModel.xcdatamodel/contents
@@ -13,6 +13,7 @@
+
@@ -93,7 +94,7 @@
-
+
@@ -101,6 +102,8 @@
+
+
diff --git a/apple/OmnivoreKit/Sources/Models/DataModels/FeedItem.swift b/apple/OmnivoreKit/Sources/Models/DataModels/FeedItem.swift
index 529d3204e..bc14cc01b 100644
--- a/apple/OmnivoreKit/Sources/Models/DataModels/FeedItem.swift
+++ b/apple/OmnivoreKit/Sources/Models/DataModels/FeedItem.swift
@@ -133,7 +133,7 @@ public extension LinkedItem {
let recommendations = self.recommendations.asArray(of: Recommendation.self).map { recommendation in
let recommendedAt = recommendation.recommendedAt == nil ? nil : recommendation.recommendedAt?.ISO8601Format()
return [
- "id": NSString(string: recommendation.id ?? ""),
+ "id": NSString(string: recommendation.groupID ?? ""),
"name": NSString(string: recommendation.name ?? ""),
"note": recommendation.note == nil ? nil : NSString(string: recommendation.note ?? ""),
"user": recommendation.user == nil ? nil : NSDictionary(dictionary: [
diff --git a/apple/OmnivoreKit/Sources/Models/DataModels/Recommendation.swift b/apple/OmnivoreKit/Sources/Models/DataModels/Recommendation.swift
index dc2006c33..be7b178ae 100644
--- a/apple/OmnivoreKit/Sources/Models/DataModels/Recommendation.swift
+++ b/apple/OmnivoreKit/Sources/Models/DataModels/Recommendation.swift
@@ -2,23 +2,6 @@ import CoreData
import Foundation
public extension Recommendation {
- var unwrappedID: String { id ?? "" }
-
- static func lookup(byID recommendationID: String, inContext context: NSManagedObjectContext) -> Recommendation? {
- let fetchRequest: NSFetchRequest = Recommendation.fetchRequest()
- fetchRequest.predicate = NSPredicate(
- format: "id == %@", recommendationID
- )
-
- var recommendation: Recommendation?
-
- context.performAndWait {
- recommendation = (try? context.fetch(fetchRequest))?.first
- }
-
- return recommendation
- }
-
static func byline(_ set: NSSet) -> String {
Array(set).reduce("") { str, item in
if let recommendation = item as? Recommendation, let userName = recommendation.user?.name {
diff --git a/apple/OmnivoreKit/Sources/Models/LinkedItemFilter.swift b/apple/OmnivoreKit/Sources/Models/LinkedItemFilter.swift
index abb5f387b..cca432f61 100644
--- a/apple/OmnivoreKit/Sources/Models/LinkedItemFilter.swift
+++ b/apple/OmnivoreKit/Sources/Models/LinkedItemFilter.swift
@@ -4,6 +4,7 @@ public enum LinkedItemFilter: String, CaseIterable {
case inbox
case readlater
case newsletters
+ case recommended
case all
case archived
case hasHighlights
@@ -19,6 +20,8 @@ public extension LinkedItemFilter {
return "Read Later"
case .newsletters:
return "Newsletters"
+ case .recommended:
+ return "Recommended"
case .all:
return "All"
case .archived:
@@ -38,6 +41,8 @@ public extension LinkedItemFilter {
return "in:inbox -label:Newsletter"
case .newsletters:
return "in:inbox label:Newsletter"
+ case .recommended:
+ return "recommendedBy:*"
case .all:
return "in:all"
case .archived:
@@ -75,6 +80,11 @@ public extension LinkedItemFilter {
format: "SUBQUERY(labels, $label, $label.name == \"Newsletter\").@count > 0"
)
return NSCompoundPredicate(andPredicateWithSubpredicates: [notInArchivePredicate, newsletterLabelPredicate])
+ case .recommended:
+ let recommendationsPredicate = NSPredicate(
+ format: "recommendations.@count > 0"
+ )
+ return NSCompoundPredicate(andPredicateWithSubpredicates: [notInArchivePredicate, recommendationsPredicate])
case .all:
// include everything undeleted
return undeletedPredicate
diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateHighlight.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateHighlight.swift
index 66878c579..4746ac9ca 100644
--- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateHighlight.swift
+++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateHighlight.swift
@@ -22,6 +22,7 @@ extension DataService {
createdAt: nil,
updatedAt: nil,
createdByMe: true,
+ createdBy: nil,
labels: []
)
diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/MergeHighlight.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/MergeHighlight.swift
index cdf78dc58..212ca184d 100644
--- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/MergeHighlight.swift
+++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/MergeHighlight.swift
@@ -24,6 +24,7 @@ extension DataService {
createdAt: nil,
updatedAt: nil,
createdByMe: true,
+ createdBy: nil,
labels: []
)
diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Queries/LinkedItemNetworkQuery.swift b/apple/OmnivoreKit/Sources/Services/DataService/Queries/LinkedItemNetworkQuery.swift
index 8e7be6b56..e01a01bc5 100644
--- a/apple/OmnivoreKit/Sources/Services/DataService/Queries/LinkedItemNetworkQuery.swift
+++ b/apple/OmnivoreKit/Sources/Services/DataService/Queries/LinkedItemNetworkQuery.swift
@@ -235,7 +235,7 @@ let recommendingUserSelection = Selection.RecommendingUser {
let recommendationSelection = Selection.Recommendation {
InternalRecommendation(
- id: try $0.id(),
+ groupID: try $0.id(),
name: try $0.name(),
note: try $0.note(),
user: try $0.user(selection: recommendingUserSelection.nullable),
diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Selections/HighlightSelection.swift b/apple/OmnivoreKit/Sources/Services/DataService/Selections/HighlightSelection.swift
index 5deb56277..52265149d 100644
--- a/apple/OmnivoreKit/Sources/Services/DataService/Selections/HighlightSelection.swift
+++ b/apple/OmnivoreKit/Sources/Services/DataService/Selections/HighlightSelection.swift
@@ -23,6 +23,7 @@ let highlightSelection = Selection.Highlight {
createdAt: try $0.createdAt().value,
updatedAt: try $0.updatedAt().value,
createdByMe: try $0.createdByMe(),
+ createdBy: try $0.user(selection: userProfileSelection),
labels: try $0.labels(selection: highlightLabelSelection.list.nullable) ?? []
)
}
diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Selections/RecommendationGroupSelection.swift b/apple/OmnivoreKit/Sources/Services/DataService/Selections/RecommendationGroupSelection.swift
index 7759f9814..383d6264e 100644
--- a/apple/OmnivoreKit/Sources/Services/DataService/Selections/RecommendationGroupSelection.swift
+++ b/apple/OmnivoreKit/Sources/Services/DataService/Selections/RecommendationGroupSelection.swift
@@ -6,6 +6,8 @@ let recommendationGroupSelection = Selection.RecommendationGroup {
id: try $0.id(),
name: try $0.name(),
inviteUrl: try $0.inviteUrl(),
+ canPost: true,
+ canSeeMembers: true,
admins: try $0.admins(selection: userProfileSelection.list),
members: try $0.members(selection: userProfileSelection.list)
)
diff --git a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift
index e1640bcb8..c20e2cdfc 100644
--- a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift
+++ b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift
@@ -13,6 +13,7 @@ struct InternalHighlight: Encodable {
let createdAt: Date?
let updatedAt: Date?
let createdByMe: Bool
+ let createdBy: InternalUserProfile?
var labels: [InternalLinkedItemLabel]
func asManagedObject(context: NSManagedObjectContext) -> Highlight {
@@ -35,6 +36,10 @@ struct InternalHighlight: Encodable {
highlight.updatedAt = updatedAt
highlight.createdByMe = createdByMe
+ if let createdBy = createdBy {
+ highlight.createdBy = createdBy.asManagedObject(inContext: context)
+ }
+
if let existingLabels = highlight.labels {
highlight.removeFromLabels(existingLabels)
}
@@ -58,6 +63,7 @@ struct InternalHighlight: Encodable {
createdAt: highlight.createdAt,
updatedAt: highlight.updatedAt,
createdByMe: highlight.createdByMe,
+ createdBy: InternalUserProfile.makeSingle(highlight.createdBy),
labels: InternalLinkedItemLabel.make(highlight.labels)
)
}
diff --git a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift
index e861acf30..c819a6fe9 100644
--- a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift
+++ b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift
@@ -3,16 +3,16 @@ import Foundation
import Models
public struct InternalRecommendation {
- let id: String
+ let groupID: String
let name: String
let note: String?
let user: InternalUserProfile?
let recommendedAt: Date
func asManagedObject(inContext context: NSManagedObjectContext) -> Recommendation {
- let existing = Recommendation.lookup(byID: id, inContext: context)
- let recommendation = existing ?? Recommendation(entity: Recommendation.entity(), insertInto: context)
- recommendation.id = id
+ // let existing = Recommendation.lookup(byID: id, inContext: context)
+ let recommendation = /* existing ?? */ Recommendation(entity: Recommendation.entity(), insertInto: context)
+ recommendation.groupID = groupID
recommendation.name = name
recommendation.note = note
recommendation.recommendedAt = recommendedAt
@@ -24,12 +24,12 @@ public struct InternalRecommendation {
recommendations?
.compactMap { recommendation in
if let recommendation = recommendation as? Recommendation,
- let id = recommendation.id,
+ let groupID = recommendation.groupID,
let name = recommendation.name,
let recommendedAt = recommendation.recommendedAt
{
return InternalRecommendation(
- id: id,
+ groupID: groupID,
name: name,
note: recommendation.note,
user: InternalUserProfile.makeSingle(recommendation.user),
diff --git a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendationGroup.swift b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendationGroup.swift
index dbfdfdffd..812db1249 100644
--- a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendationGroup.swift
+++ b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendationGroup.swift
@@ -13,6 +13,8 @@ public struct InternalRecommendationGroup: Identifiable {
public let id: String
public let name: String
public let inviteUrl: String
+ public let canPost: Bool
+ public let canSeeMembers: Bool
public let admins: [InternalUserProfile]
public let members: [InternalUserProfile]
@@ -40,6 +42,8 @@ public struct InternalRecommendationGroup: Identifiable {
id: id,
name: name,
inviteUrl: inviteUrl,
+ canPost: recommendationGroup.canPost,
+ canSeeMembers: recommendationGroup.canSeeMembers,
admins: InternalUserProfile.make(recommendationGroup.admins),
members: InternalUserProfile.make(recommendationGroup.members)
)
diff --git a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalUserProfile.swift b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalUserProfile.swift
index 53b656890..226ca3c31 100644
--- a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalUserProfile.swift
+++ b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalUserProfile.swift
@@ -2,7 +2,7 @@ import CoreData
import Foundation
import Models
-public struct InternalUserProfile: Identifiable {
+public struct InternalUserProfile: Identifiable, Encodable {
let userID: String
public let name: String
public let username: String
diff --git a/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_recommendedHighlightBackground.colorset/Contents.json b/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_recommendedHighlightBackground.colorset/Contents.json
new file mode 100644
index 000000000..15a38f4f8
--- /dev/null
+++ b/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_recommendedHighlightBackground.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors": [
+ {
+ "color": {
+ "color-space": "srgb",
+ "components": {
+ "alpha": "1.000",
+ "blue": "0xE5",
+ "green": "0xFF",
+ "red": "0xE5"
+ }
+ },
+ "idiom": "universal"
+ },
+ {
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ],
+ "color": {
+ "color-space": "srgb",
+ "components": {
+ "alpha": "1.000",
+ "blue": "0xE5",
+ "green": "0xFF",
+ "red": "0xE5"
+ }
+ },
+ "idiom": "universal"
+ }
+ ],
+ "info": {
+ "author": "xcode",
+ "version": 1
+ }
+}
\ No newline at end of file
diff --git a/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_yellow48.colorset/Contents.json b/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_yellow48.colorset/Contents.json
index 1fbe15d39..2d3f7d9c2 100644
--- a/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_yellow48.colorset/Contents.json
+++ b/apple/OmnivoreKit/Sources/Views/Colors/Colors.xcassets/_yellow48.colorset/Contents.json
@@ -1,38 +1,38 @@
{
- "colors" : [
+ "colors": [
{
- "color" : {
- "color-space" : "srgb",
- "components" : {
- "alpha" : "1.000",
- "blue" : "0x13",
- "green" : "0xB5",
- "red" : "0xE2"
+ "color": {
+ "color-space": "srgb",
+ "components": {
+ "alpha": "1.000",
+ "blue": "0x92",
+ "green": "0xe3",
+ "red": "0xfa"
}
},
- "idiom" : "universal"
+ "idiom": "universal"
},
{
- "appearances" : [
+ "appearances": [
{
- "appearance" : "luminosity",
- "value" : "dark"
+ "appearance": "luminosity",
+ "value": "dark"
}
],
- "color" : {
- "color-space" : "srgb",
- "components" : {
- "alpha" : "1.000",
- "blue" : "0x13",
- "green" : "0xB5",
- "red" : "0xE2"
+ "color": {
+ "color-space": "srgb",
+ "components": {
+ "alpha": "1.000",
+ "blue": "0x92",
+ "green": "0xe3",
+ "red": "0xfa"
}
},
- "idiom" : "universal"
+ "idiom": "universal"
}
],
- "info" : {
- "author" : "xcode",
- "version" : 1
+ "info": {
+ "author": "xcode",
+ "version": 1
}
-}
+}
\ No newline at end of file
diff --git a/apple/OmnivoreKit/Sources/Views/Resources/bundle.js b/apple/OmnivoreKit/Sources/Views/Resources/bundle.js
index cfa53f171..41b0c7f12 100644
--- a/apple/OmnivoreKit/Sources/Views/Resources/bundle.js
+++ b/apple/OmnivoreKit/Sources/Views/Resources/bundle.js
@@ -1,2 +1,2 @@
/*! For license information please see bundle.js.LICENSE.txt */
-(()=>{var e,t,n={7162:(e,t,n)=>{e.exports=n(5047)},6279:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];x.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;r(new x(o,n))},l.onerror=function(){i(new TypeError("Network request failed"))},l.ontimeout=function(){i(new TypeError("Network request failed"))},l.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&o&&(l.responseType="blob"),a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",s)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=x),t.Headers=f,t.Request=b,t.Response=x,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},1427:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,l=this.diff_commonPrefix(e,n),s=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var u=e.substring(e.length-l);e=e.substring(0,e.length-l),n=n.substring(0,n.length-l);var c=this.diff_compute_(e,n,a,i);return s&&c.unshift(new t.Diff(0,s)),u&&c.push(new t.Diff(0,u)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,r,o,i){var a;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var l=e.length>r.length?e:r,s=e.length>r.length?r:e,u=l.indexOf(s);if(-1!=u)return a=[new t.Diff(1,l.substring(0,u)),new t.Diff(0,s),new t.Diff(1,l.substring(u+s.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==s.length)return[new t.Diff(n,e),new t.Diff(1,r)];var c=this.diff_halfMatch_(e,r);if(c){var d=c[0],f=c[1],p=c[2],h=c[3],g=c[4],m=this.diff_main(d,p,o,i),v=this.diff_main(f,h,o,i);return m.concat([new t.Diff(0,g)],v)}return o&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,i):this.diff_bisect_(e,r,i)},t.prototype.diff_lineMode_=function(e,r,o){var i=this.diff_linesToChars_(e,r);e=i.chars1,r=i.chars2;var a=i.lineArray,l=this.diff_main(e,r,!1,o);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push(new t.Diff(0,""));for(var s=0,u=0,c=0,d="",f="";s=1&&c>=1){l.splice(s-u-c,u+c),s=s-u-c;for(var p=this.diff_main(d,f,!1,o),h=p.length-1;h>=0;h--)l.splice(s,0,p[h]);s+=p.length}c=0,u=0,d="",f=""}s++}return l.pop(),l},t.prototype.diff_bisect_=function(e,r,o){for(var i=e.length,a=r.length,l=Math.ceil((i+a)/2),s=l,u=2*l,c=new Array(u),d=new Array(u),f=0;fo);b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=s+w,k=(C=w==-b||w!=b&&c[x-1]i)m+=2;else if(k>a)g+=2;else if(h&&(_=s+p-w)>=0&&_=(S=i-d[_]))return this.diff_bisectSplit_(e,r,C,k,o)}for(var E=-b+v;E<=b-y;E+=2){for(var S,_=s+E,O=(S=E==-b||E!=b&&d[_-1]i)y+=2;else if(O>a)v+=2;else if(!h){var C;if((x=s+p-E)>=0&&x=(S=i-S))return this.diff_bisectSplit_(e,r,C,k,o)}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),s=t.substring(r),u=this.diff_main(i,a,!1,o),c=this.diff_main(l,s,!1,o);return u.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,l=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,l,c]:null}var a,l,s,u,c,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(l=a[0],s=a[1],u=a[2],c=a[3]):(u=a[0],c=a[1],l=a[2],s=a[3]),[l,s,u,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,o=[],i=0,a=null,l=0,s=0,u=0,c=0,d=0;l0?o[i-1]:-1,s=0,u=0,c=0,d=0,a=null,r=!0)),l++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l=g?(h>=f.length/2||h>=p.length/2)&&(e.splice(l,0,new t.Diff(0,p.substring(0,h))),e[l-1][1]=f.substring(0,f.length-h),e[l+1][1]=p.substring(h),l++):(g>=f.length/2||g>=p.length/2)&&(e.splice(l,0,new t.Diff(0,f.substring(0,g))),e[l-1][0]=1,e[l-1][1]=p.substring(0,p.length-g),e[l+1][0]=n,e[l+1][1]=f.substring(g),l++),l++}l++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),o=n.charAt(0),i=r.match(t.nonAlphaNumericRegex_),a=o.match(t.nonAlphaNumericRegex_),l=i&&r.match(t.whitespaceRegex_),s=a&&o.match(t.whitespaceRegex_),u=l&&r.match(t.linebreakRegex_),c=s&&o.match(t.linebreakRegex_),d=u&&e.match(t.blanklineEndRegex_),f=c&&n.match(t.blanklineStartRegex_);return d||f?5:u||c?4:i&&!l&&s?3:l||s?2:i||a?1:0}for(var r=1;r=f&&(f=p,u=o,c=i,d=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,o=[],i=0,a=null,l=0,s=!1,u=!1,c=!1,d=!1;l0?o[i-1]:-1,c=d=!1),r=!0)),l++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,o=0,i=0,a=0,l="",s="";o1?(0!==i&&0!==a&&(0!==(r=this.diff_commonPrefix(s,l))&&(o-i-a>0&&0==e[o-i-a-1][0]?e[o-i-a-1][1]+=s.substring(0,r):(e.splice(0,0,new t.Diff(0,s.substring(0,r))),o++),s=s.substring(r),l=l.substring(r)),0!==(r=this.diff_commonSuffix(s,l))&&(e[o][1]=s.substring(s.length-r)+e[o][1],s=s.substring(0,s.length-r),l=l.substring(0,l.length-r))),o-=i+a,e.splice(o,i+a),l.length&&(e.splice(o,0,new t.Diff(n,l)),o++),s.length&&(e.splice(o,0,new t.Diff(1,s)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,a=0,i=0,l="",s=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(o=1;ot));r++)a=o,l=i;return e.length!=r&&e[r][0]===n?l:l+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,o=//g,a=/\n/g,l=0;l");switch(s){case 1:t[l]=''+u+"";break;case n:t[l]=''+u+"";break;case 0:t[l]=""+u+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(i(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,l),a)));var s,u,c=1<=h;v--){var y=r[e.charAt(v-1)];if(m[v]=0===p?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],m[v]&c){var b=i(p,v-1);if(b<=a){if(a=b,!((l=v-1)>n))break;h=Math.max(1,2*n-l)}}}if(i(p+1,n)>a)break;d=m}return l},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===r&&void 0===o)a=e,i=this.diff_text1(a);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===o)i=e,a=r;else{if("string"!=typeof e||"string"!=typeof r||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=e,a=o}if(0===a.length)return[];for(var l=[],s=new t.patch_obj,u=0,c=0,d=0,f=i,p=i,h=0;h=2*this.Patch_Margin&&u&&(this.patch_addContext_(s,f),l.push(s),s=new t.patch_obj,u=0,f=p,c=d)}1!==g&&(c+=m.length),g!==n&&(d+=m.length)}return u&&(this.patch_addContext_(s,f),l.push(s)),l},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;rthis.Match_MaxBits?-1!=(l=this.match_main(t,c.substring(0,this.Match_MaxBits),u))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),u+c.length-this.Match_MaxBits))||l>=d)&&(l=-1):l=this.match_main(t,c,u),-1==l)i[a]=!1,o-=e[a].length2-e[a].length1;else if(i[a]=!0,o=l-u,c==(s=-1==d?t.substring(l,l+c.length):t.substring(l,d+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[a].diffs)+t.substring(l+c.length);else{var f=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(f);for(var p,h=0,g=0;ga[0][1].length){var l=n-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=l,i.start2-=l,i.length1+=l,i.length2+=l}return 0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0]?(a.push(new t.Diff(0,r)),i.length1+=n,i.length2+=n):n>a[a.length-1][1].length&&(l=n-a[a.length-1][1].length,a[a.length-1][1]+=r.substring(0,l),i.length1+=l,i.length2+=l),r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,o=0;o2*r?(u.length1+=f.length,a+=f.length,c=!1,u.diffs.push(new t.Diff(d,f)),i.diffs.shift()):(f=f.substring(0,r-u.length1-this.Patch_Margin),u.length1+=f.length,a+=f.length,0===d?(u.length2+=f.length,l+=f.length):c=!1,u.diffs.push(new t.Diff(d,f)),f==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(f.length))}s=(s=this.diff_text2(u.diffs)).substring(s.length-this.Patch_Margin);var p=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==p&&(u.length1+=p.length,u.length2+=p.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=p:u.diffs.push(new t.Diff(0,p))),c||e.splice(++o,0,u)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n{"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},2929:(e,t,n)=>{"use strict";var r=n(1278);e.exports=function e(t,n,o){var i;void 0===n&&(n=""),void 0===o&&(o=r);var a=new Map;function l(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(o(t))i=null,l([n],t);else{var s=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){return l([""+s+t],e),null}));else if(Array.isArray(t))i=t.map((function(t,n){var r=e(t,""+s+n,o);return r.files.forEach(l),r.clone}));else if(t&&t.constructor===Object)for(var u in i={},t){var c=e(t[u],""+s+u,o);c.files.forEach(l),i[u]=c.clone}else i=t}return{clone:i,files:a}}},9384:(e,t,n)=>{"use strict";t.ReactNativeFile=n(7570),t.extractFiles=n(2929),t.isExtractableFile=n(1278)},1278:(e,t,n)=>{"use strict";var r=n(7570);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},1688:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8749:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(9384),i=r(n(1688)),a=function(e){return o.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n){var r=o.extractFiles({query:e,variables:t,operationName:n},"",a),l=r.clone,s=r.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(l);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var u=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return JSON.stringify(u)}var c=new("undefined"==typeof FormData?i.default:FormData);c.append("operations",JSON.stringify(l));var d={},f=0;return s.forEach((function(e){d[++f]=e})),c.append("map",JSON.stringify(d)),f=0,s.forEach((function(e,t){c.append(""+ ++f,t)})),c}},6647:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,o.default&&(e.prototype[o.default]=t)};var r=i(n(5006)),o=i(n(8019));function i(e){return e&&e.__esModule?e:{default:e}}},8048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,o=(r=n(8019))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(o.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:a(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,o=[],i=0;i1&&o.push("... ".concat(r," more items")),"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},8019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},4560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,o=(r=n(2678))&&r.__esModule?r:{default:r},i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=i,(0,o.default)(i);var a=function(){function e(e,t,n,r,o,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=i,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,o.default)(a)},9501:(e,t)=>{"use strict";function n(e){for(var t=0;ta&&n(t[l-1]);)--l;return t.slice(a,l).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],a="\\"===e[e.length-1],l=!r||i||a||n,s="";return!l||r&&o||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,l&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}},3083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n(2624),o=n(9501),i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",l(e.variableDefinitions,", "),")"),o=l(e.directives," "),i=e.selectionSet;return n||o||r||"query"!==t?l([t,l([n,r]),o,i]," "):i},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+u(" = ",r)+u(" ",l(o," "))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=u("",t,": ")+n,s=a+u("(",l(r,", "),")");return s.length>80&&(s=a+u("(\n",c(l(r,"\n")),"\n)")),l([s,l(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",u("on ",t),l(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(u("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(u("",l(o," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,o.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return l(["schema",l(t," "),s(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return l(["scalar",e.name,l(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["type",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(f(n)?u("(\n",c(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+": "+r+u(" ",l(o," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return l([t+": "+n,u("= ",r),l(o," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["interface",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return l(["union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return l(["enum",t,l(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){return l([e.name,l(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return l(["input",t,l(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(f(n)?u("(\n",c(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),s(n)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend type",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend interface",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),s(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),s(r)]," ")}};function a(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function s(e){return u("{\n",c(l(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},2624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,h=void 0,g=void 0,m=[],v=[],y=e;do{var b=++d===c.length,w=b&&0!==f.length;if(b){if(h=0===v.length?void 0:m[m.length-1],p=g,g=v.pop(),w){if(u)p=p.slice();else{for(var x={},k=0,E=Object.keys(p);k{var r=n(7772).Symbol;e.exports=r},3366:(e,t,n)=>{var r=n(857),o=n(2107),i=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},1704:(e,t,n)=>{var r=n(2153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),o=n(1100),i=n(7642),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,u,c,d,f,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(x,t),g?y(e):d}function w(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=c}function x(){var e=o();if(w(e))return k(e);f=setTimeout(x,function(e){var n=t-(e-p);return m?l(n,c-(e-h)):n}(e))}function k(e){return f=void 0,v&&s?y(e):(s=u=void 0,d)}function E(){var e=o(),n=w(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(m)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=u=f=void 0},E.flush=function(){return void 0===f?d:k(o())},E}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},7642:(e,t,n)=>{var r=n(1704),o=n(9259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=null;return{mountedInstances:new Set,updateHead:t=>{const n=e=Promise.resolve().then((()=>{if(n!==e)return;e=null;const i={};t.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector(`style[data-href="${e.props["data-href"]}"]`))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const t=i[e.type]||[];t.push(e),i[e.type]=t}));const a=i.title?i.title[0]:null;let l="";if(a){const{children:e}=a.props;l="string"==typeof e?e:Array.isArray(e)?e.join(""):""}l!==document.title&&(document.title=l),["meta","base","link","style","script"].forEach((e=>{!function(e,t){const n=document.getElementsByTagName("head")[0],i=n.querySelector("meta[name=next-head-count]"),a=Number(i.content),l=[];for(let t=0,n=i.previousElementSibling;t{for(let t=0,n=l.length;t{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})),u.forEach((e=>n.insertBefore(e,i))),i.content=(a-l.length+u.length).toString()}(e,i[e]||[])}))}))}}},t.isEqualNode=o,t.DOMAttributeNames=void 0;const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r({type:e,props:t}){const r=document.createElement(e);for(const o in t){if(!t.hasOwnProperty(o))continue;if("children"===o||"dangerouslySetInnerHTML"===o)continue;if(void 0===t[o])continue;const i=n[o]||o.toLowerCase();"script"!==e||"async"!==i&&"defer"!==i&&"noModule"!==i?r.setAttribute(i,t[o]):r[i]=!!t[o]}const{children:o,dangerouslySetInnerHTML:i}=t;return i?r.innerHTML=i.__html||"":o&&(r.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),r}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}t.DOMAttributeNames=n,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var{src:t,sizes:n,unoptimized:r=!1,priority:o=!1,loading:c,lazyRoot:d=null,lazyBoundary:v="200px",className:k,quality:S,width:_,height:O,style:C,objectFit:L,objectPosition:j,onLoadingComplete:P,placeholder:R="empty",blurDataURL:T}=e,A=p(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]);const M=i.useContext(u.ImageConfigContext),I=i.useMemo((()=>{const e=h||M||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort(((e,t)=>e-t)),n=e.deviceSizes.sort(((e,t)=>e-t));return f({},e,{allSizes:t,deviceSizes:n})}),[M]);let D=A,N=n?"responsive":"intrinsic";"layout"in D&&(D.layout&&(N=D.layout),delete D.layout);let F=x;if("loader"in D){if(D.loader){const e=D.loader;F=t=>{const{config:n}=t,r=p(t,["config"]);return e(r)}}delete D.loader}let z="";if(function(e){return"object"==typeof e&&(y(e)||function(e){return void 0!==e.src}(e))}(t)){const e=y(t)?t.default:t;if(!e.src)throw new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`);if(T=T||e.blurDataURL,z=e.src,!(N&&"fill"===N||(O=O||e.height,_=_||e.width,e.height&&e.width)))throw new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`)}t="string"==typeof t?t:z;const $=w(_),B=w(O),W=w(S);let H=!o&&("lazy"===c||void 0===c);(t.startsWith("data:")||t.startsWith("blob:"))&&(r=!0,H=!1),"undefined"!=typeof window&&g.has(t)&&(H=!1);const[U,V]=i.useState(!1),[q,G,X]=s.useIntersection({rootRef:d,rootMargin:v,disabled:!H}),K=!H||G,Y={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Z={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0};let Q,J=!1;const ee={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:L,objectPosition:j},te=Object.assign({},C,"raw"===N?{}:ee),ne="blur"!==R||U?{}:{filter:"blur(20px)",backgroundSize:L||"cover",backgroundImage:`url("${T}")`,backgroundPosition:j||"0% 0%"};if("fill"===N)Y.display="block",Y.position="absolute",Y.top=0,Y.left=0,Y.bottom=0,Y.right=0;else if(void 0!==$&&void 0!==B){const e=B/$,t=isNaN(e)?"100%":100*e+"%";"responsive"===N?(Y.display="block",Y.position="relative",J=!0,Z.paddingTop=t):"intrinsic"===N?(Y.display="inline-block",Y.position="relative",Y.maxWidth="100%",J=!0,Z.maxWidth="100%",Q=`data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27${$}%27%20height=%27${B}%27/%3e`):"fixed"===N&&(Y.display="inline-block",Y.position="relative",Y.width=$,Y.height=B)}let re={src:m,srcSet:void 0,sizes:void 0};K&&(re=b({config:I,src:t,unoptimized:r,layout:N,width:$,quality:W,sizes:n,loader:F}));let oe=t,ie="imagesrcset",ae="imagesizes";window.omnivoreEnv.__NEXT_REACT_ROOT&&(ie="imageSrcSet",ae="imageSizes");const le={[ie]:re.srcSet,[ae]:re.sizes},se="undefined"==typeof window?i.default.useEffect:i.default.useLayoutEffect,ue=i.useRef(P),ce=i.useRef(t);i.useEffect((()=>{ue.current=P}),[P]),se((()=>{ce.current!==t&&(X(),ce.current=t)}),[X,t]);const de=f({isLazy:H,imgAttributes:re,heightInt:B,widthInt:$,qualityInt:W,layout:N,className:k,imgStyle:te,blurStyle:ne,loading:c,config:I,unoptimized:r,placeholder:R,loader:F,srcString:oe,onLoadingCompleteRef:ue,setBlurComplete:V,setIntersection:q,isVisible:K},D);return i.default.createElement(i.default.Fragment,null,"raw"===N?i.default.createElement(E,Object.assign({},de)):i.default.createElement("span",{style:Y},J?i.default.createElement("span",{style:Z},Q?i.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:Q}):null):null,i.default.createElement(E,Object.assign({},de))),o?i.default.createElement(a.default,null,i.default.createElement("link",Object.assign({key:"__nimg-"+re.src+re.srcSet+re.sizes,rel:"preload",as:"image",href:re.srcSet?void 0:re.src},le))):null)};var r,o,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),a=(r=n(5977))&&r.__esModule?r:{default:r},l=n(8467),s=n(3321),u=n(4329),c=(n(1624),n(1119));function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}null===(o=window.omnivoreEnv.__NEXT_IMAGE_OPTS)||void 0===o||o.experimentalLayoutRaw;const h=window.omnivoreEnv.__NEXT_IMAGE_OPTS,g=new Set;new Map;const m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";"undefined"==typeof window&&(n.g.__NEXT_IMAGE_IMPORTED=!0);const v=new Map([["default",function({config:e,src:t,width:n,quality:r}){return t.endsWith(".svg")&&!e.dangerouslyAllowSVG?t:`${c.normalizePathTrailingSlash(e.path)}?url=${encodeURIComponent(t)}&w=${n}&q=${r||75}`}],["imgix",function({config:e,src:t,width:n,quality:r}){const o=new URL(`${e.path}${S(t)}`),i=o.searchParams;return i.set("auto",i.get("auto")||"format"),i.set("fit",i.get("fit")||"max"),i.set("w",i.get("w")||n.toString()),r&&i.set("q",r.toString()),o.href}],["cloudinary",function({config:e,src:t,width:n,quality:r}){const o=["f_auto","c_limit","w_"+n,"q_"+(r||"auto")].join(",")+"/";return`${e.path}${o}${S(t)}`}],["akamai",function({config:e,src:t,width:n}){return`${e.path}${S(t)}?imwidth=${n}`}],["custom",function({src:e}){throw new Error(`Image with src "${e}" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader`)}]]);function y(e){return void 0!==e.default}function b({config:e,src:t,unoptimized:n,layout:r,width:o,quality:i,sizes:a,loader:l}){if(n)return{src:t,srcSet:void 0,sizes:void 0};const{widths:s,kind:u}=function({deviceSizes:e,allSizes:t},n,r,o){if(o&&("fill"===r||"responsive"===r||"raw"===r)){const n=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=n.exec(o);e)r.push(parseInt(e[2]));if(r.length){const n=.01*Math.min(...r);return{widths:t.filter((t=>t>=e[0]*n)),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n||"fill"===r||"responsive"===r?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map((e=>t.find((t=>t>=e))||t[t.length-1])))],kind:"x"}}(e,o,r,a),c=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map(((n,r)=>`${l({config:e,src:t,quality:i,width:n})} ${"w"===u?n:r+1}${u}`)).join(", "),src:l({config:e,src:t,quality:i,width:s[c]})}}function w(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function x(e){var t;const n=(null===(t=e.config)||void 0===t?void 0:t.loader)||"default",r=v.get(n);if(r)return r(e);throw new Error(`Unknown "loader" found in "next.config.js". Expected: ${l.VALID_LOADERS.join(", ")}. Received: ${n}`)}function k(e,t,n,r,o,i){e&&e.src!==m&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{if(e.parentNode&&(g.add(t),"blur"===r&&i(!0),null==o?void 0:o.current)){const{naturalWidth:t,naturalHeight:n}=e;o.current({naturalWidth:t,naturalHeight:n})}})))}const E=e=>{var{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:o,layout:a,className:l,imgStyle:s,blurStyle:u,isLazy:c,placeholder:d,loading:h,srcString:g,config:m,unoptimized:v,loader:y,onLoadingCompleteRef:w,setBlurComplete:x,setIntersection:E,onLoad:S,onError:_,isVisible:O}=e,C=p(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible"]);return i.default.createElement(i.default.Fragment,null,i.default.createElement("img",Object.assign({},C,t,"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,className:l,style:f({},s,u),ref:i.useCallback((e=>{E(e),(null==e?void 0:e.complete)&&k(e,g,0,d,w,x)}),[E,g,a,d,w,x]),onLoad:e=>{k(e.currentTarget,g,0,d,w,x),S&&S(e)},onError:e=>{"blur"===d&&x(!0),_&&_(e)}})),(c||"blur"===d)&&i.default.createElement("noscript",null,i.default.createElement("img",Object.assign({},C,b({config:m,src:g,unoptimized:v,layout:a,width:r,quality:o,sizes:t.sizes,loader:y}),"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,style:s,className:l,loading:h||"lazy"}))))};function S(e){return"/"===e[0]?e.slice(1):e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},4529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(6640),a=n(9518),l=n(3321);const s={};function u(e,t,n,r){if("undefined"==typeof window||!e)return;if(!i.isLocalURL(t))return;e.prefetch(t,n,r).catch((e=>{}));const o=r&&void 0!==r.locale?r.locale:e&&e.locale;s[t+"%"+n+(o?"%"+o:"")]=!0}var c=o.default.forwardRef(((e,t)=>{const{legacyBehavior:n=!0!==Boolean(window.omnivoreEnv.__NEXT_NEW_LINK_BEHAVIOR)}=e;let r;const{href:c,as:d,children:f,prefetch:p,passHref:h,replace:g,shallow:m,scroll:v,locale:y,onClick:b,onMouseEnter:w}=e,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter"]);r=f,n&&"string"==typeof r&&(r=o.default.createElement("a",null,r));const k=!1!==p,E=a.useRouter(),{href:S,as:_}=o.default.useMemo((()=>{const[e,t]=i.resolveHref(E,c,!0);return{href:e,as:d?i.resolveHref(E,d):t||e}}),[E,c,d]),O=o.default.useRef(S),C=o.default.useRef(_);let L;n&&(L=o.default.Children.only(r));const j=n?L&&"object"==typeof L&&L.ref:t,[P,R,T]=l.useIntersection({rootMargin:"200px"}),A=o.default.useCallback((e=>{C.current===_&&O.current===S||(T(),C.current=_,O.current=S),P(e),j&&("function"==typeof j?j(e):"object"==typeof j&&(j.current=e))}),[_,j,S,T,P]);o.default.useEffect((()=>{const e=R&&k&&i.isLocalURL(S),t=void 0!==y?y:E&&E.locale,n=s[S+"%"+_+(t?"%"+t:"")];e&&!n&&u(E,S,_,{locale:t})}),[_,S,R,y,k,E]);const M={ref:A,onClick:e=>{n||"function"!=typeof b||b(e),n&&L.props&&"function"==typeof L.props.onClick&&L.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,a,l,s){const{nodeName:u}=e.currentTarget;("A"!==u.toUpperCase()||!function(e){const{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&i.isLocalURL(n))&&(e.preventDefault(),t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:l}))}(e,E,S,_,g,m,v,y)},onMouseEnter:e=>{n||"function"!=typeof w||w(e),n&&L.props&&"function"==typeof L.props.onMouseEnter&&L.props.onMouseEnter(e),i.isLocalURL(S)&&u(E,S,_,{priority:!0})}};if(!n||h||"a"===L.type&&!("href"in L.props)){const e=void 0!==y?y:E&&E.locale,t=E&&E.isLocaleDomain&&i.getDomainLocale(_,e,E&&E.locales,E&&E.domainLocales);M.href=t||i.addBasePath(i.addLocale(_,e,E&&E.defaultLocale))}return n?o.default.cloneElement(L,M):o.default.createElement("a",Object.assign({},x,M),r)}));t.default=c,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},1119:(e,t)=>{"use strict";function n(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.removePathTrailingSlash=n,t.normalizePathTrailingSlash=void 0;const r=window.omnivoreEnv.__NEXT_TRAILING_SLASH?e=>/\.[^/]+\/?$/.test(e)?n(e):e.endsWith("/")?e:e+"/":n;t.normalizePathTrailingSlash=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},1976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIdleCallback=t.requestIdleCallback=void 0;const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=n;const r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},7928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=u,t.isAssetError=function(e){return e&&s in e},t.getClientBuildManifest=d,t.getMiddlewareManifest=function(){return self.__MIDDLEWARE_MANIFEST?Promise.resolve(self.__MIDDLEWARE_MANIFEST):c(new Promise((e=>{const t=self.__MIDDLEWARE_MANIFEST_CB;self.__MIDDLEWARE_MANIFEST_CB=()=>{e(self.__MIDDLEWARE_MANIFEST),t&&t()}})),i,u(new Error("Failed to load client middleware manifest")))},t.createRouteLoader=function(e){const t=new Map,n=new Map,r=new Map,s=new Map;function d(e){{let t=n.get(e);return t||(document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(n.set(e,t=function(e,t){return new Promise(((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(u(new Error(`Failed to load script: ${e}`))),t.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,t.src=e,document.body.appendChild(t)}))}(e)),t))}}function p(e){let t=r.get(e);return t||(r.set(e,t=fetch(e).then((t=>{if(!t.ok)throw new Error(`Failed to load stylesheet: ${e}`);return t.text().then((t=>({href:e,content:t})))})).catch((e=>{throw u(e)}))),t)}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,n){(n?Promise.resolve().then((()=>n())).then((e=>({component:e&&e.default||e,exports:e})),(e=>({error:e}))):Promise.resolve(void 0)).then((n=>{const r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),s.delete(e))}))},loadRoute(n,r){return a(n,s,(()=>c(f(e,n).then((({scripts:e,css:r})=>Promise.all([t.has(n)?[]:Promise.all(e.map(d)),Promise.all(r.map(p))]))).then((e=>this.whenEntrypoint(n).then((t=>({entrypoint:t,styles:e[1]}))))),i,u(new Error(`Route did not complete loading: ${n}`))).then((({entrypoint:e,styles:t})=>{const n=Object.assign({styles:t},e);return"error"in e?e:n})).catch((e=>{if(r)throw e;return{error:e}})).finally((()=>{}))))},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():f(e,t).then((e=>Promise.all(l?e.scripts.map((e=>{return t=e,n="script",new Promise(((e,o)=>{const i=`\n link[rel="prefetch"][href^="${t}"],\n link[rel="preload"][href^="${t}"],\n script[src^="${t}"]`;if(document.querySelector(i))return e();(r=document.createElement("link")).as=n,r.rel="prefetch",r.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,r.onload=e,r.onerror=o,r.href=t,document.head.appendChild(r)}));var t,n,r})):[]))).then((()=>{o.requestIdleCallback((()=>this.loadRoute(t,!0).catch((()=>{}))))})).catch((()=>{}))}}},(r=n(9983))&&r.__esModule;var r,o=n(1976);const i=3800;function a(e,t,n){let r,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);const i=new Promise((e=>{r=e}));return t.set(e,o={resolve:r,future:i}),n?n().then((e=>(r(e),e))).catch((n=>{throw t.delete(e),n})):i}const l=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),s=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,s,{})}function c(e,t,n){return new Promise(((r,i)=>{let a=!1;e.then((e=>{a=!0,r(e)})).catch(i),o.requestIdleCallback((()=>setTimeout((()=>{a||i(n)}),t)))}))}function d(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):c(new Promise((e=>{const t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}})),i,u(new Error("Failed to load client build manifest")))}function f(e,t){return d().then((n=>{if(!(t in n))throw u(new Error(`Failed to lookup route: ${t}`));const r=n[t].map((t=>e+"/_next/"+encodeURI(t)));return{scripts:r.filter((e=>e.endsWith(".js"))),css:r.filter((e=>e.endsWith(".css")))}}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return l.default}}),t.useRouter=function(){return r.default.useContext(i.RouterContext)},t.createRouter=function(...e){return u.router=new o.default(...e),u.readyCallbacks.forEach((e=>e())),u.readyCallbacks=[],u.router},t.makePublicRouterInstance=function(e){const t=e,n={};for(const e of c)"object"!=typeof t[e]?n[e]=t[e]:n[e]=Object.assign(Array.isArray(t[e])?[]:{},t[e]);return n.events=o.default.events,d.forEach((e=>{n[e]=(...n)=>t[e](...n)})),n},t.default=void 0;var r=s(n(2784)),o=s(n(6640)),i=n(6510),a=s(n(274)),l=s(n(9564));function s(e){return e&&e.__esModule?e:{default:e}}const u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>o.default.events}),c.forEach((e=>{Object.defineProperty(u,e,{get:()=>f()[e]})})),d.forEach((e=>{u[e]=(...t)=>f()[e](...t)})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((e=>{u.ready((()=>{o.default.events.on(e,((...t)=>{const n=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`,r=u;if(r[n])try{r[n](...t)}catch(e){console.error(`Error when running the Router event: ${n}`),console.error(a.default(e)?`${e.message}\n${e.stack}`:e+"")}}))}))}));var p=u;t.default=p,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleClientScriptLoad=p,t.initScriptLoader=function(e){e.forEach(p),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");c.add(t)}))},t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),o=n(7177),i=n(9410),a=n(1976);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t{const{src:t,id:n,onLoad:r=(()=>{}),dangerouslySetInnerHTML:o,children:a="",strategy:l="afterInteractive",onError:s}=e,f=n||t;if(f&&c.has(f))return;if(u.has(t))return c.add(f),void u.get(t).then(r,s);const p=document.createElement("script"),h=new Promise(((e,t)=>{p.addEventListener("load",(function(t){e(),r&&r.call(this,t)})),p.addEventListener("error",(function(e){t(e)}))})).catch((function(e){s&&s(e)}));t&&u.set(t,h),c.add(f),o?p.innerHTML=o.__html||"":a?p.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"":t&&(p.src=t);for(const[t,n]of Object.entries(e)){if(void 0===n||d.includes(t))continue;const e=i.DOMAttributeNames[t]||t.toLowerCase();p.setAttribute(e,n)}"worker"===l&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",l),document.body.appendChild(p)};function p(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{a.requestIdleCallback((()=>f(e)))})):f(e)}t.default=function(e){const{src:t="",onLoad:n=(()=>{}),strategy:i="afterInteractive",onError:l}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["src","onLoad","strategy","onError"]),{updateScripts:d,scripts:p,getIsSsr:h}=r.useContext(o.HeadManagerContext);return r.useEffect((()=>{"afterInteractive"===i?f(e):"lazyOnload"===i&&function(e){"complete"===document.readyState?a.requestIdleCallback((()=>f(e))):window.addEventListener("load",(()=>{a.requestIdleCallback((()=>f(e)))}))}(e)}),[e,i]),"beforeInteractive"!==i&&"worker"!==i||(d?(p[i]=(p[i]||[]).concat([s({src:t,onLoad:n,onError:l},u)]),d(p)):h&&h()?c.add(u.id||t):h&&!h()&&f(e)),null},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},3321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function({rootRef:e,rootMargin:t,disabled:n}){const s=n||!i,u=r.useRef(),[c,d]=r.useState(!1),[f,p]=r.useState(e?e.current:null),h=r.useCallback((e=>{u.current&&(u.current(),u.current=void 0),s||c||e&&e.tagName&&(u.current=function(e,t,n){const{id:r,observer:o,elements:i}=function(e){const t={root:e.root||null,margin:e.rootMargin||""};let n,r=l.find((e=>e.root===t.root&&e.margin===t.margin));if(r?n=a.get(r):(n=a.get(t),l.push(t)),n)return n;const o=new Map,i=new IntersectionObserver((e=>{e.forEach((e=>{const t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return a.set(t,n={id:t,observer:i,elements:o}),n}(n);return i.set(e,(e=>e&&d(e))),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex((e=>e.root===r.root&&e.margin===r.margin));e>-1&&l.splice(e,1)}}}(e,0,{root:f,rootMargin:t}))}),[s,f,t,c]),g=r.useCallback((()=>{d(!1)}),[]);return r.useEffect((()=>{if(!i&&!c){const e=o.requestIdleCallback((()=>d(!0)));return()=>o.cancelIdleCallback(e)}}),[c]),r.useEffect((()=>{e&&p(e.current)}),[e]),[h,c,g]};var r=n(2784),o=n(1976);const i="undefined"!=typeof IntersectionObserver,a=new Map,l=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return o.default.createElement(e,Object.assign({router:i.useRouter()},t))}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(9518);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9264:(e,t)=>{"use strict";function n(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;a+=e[l++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=l}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a="[^"+i(t.delimiter||"/#?")+"]+?",l=[],s=0,u=0,c="",d=function(e){if(u-1:void 0===k;o||(g+="(?:"+h+"(?="+p+"))?"),E||(g+="(?="+h+"|"+p+")")}return new RegExp(g,a(n))}function s(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.getProperError=function(e){return o(e)?e:new Error(r.isPlainObject(e)?JSON.stringify(e):e+"")};var r=n(9910);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}},1719:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},9739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(1719);function a({ampFirst:e=!1,hybrid:t=!1,hasQuery:n=!1}={}){return e||t&&n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},8058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){return n.test(e)?e.replace(r,"\\$&"):e};const n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g},7177:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.HeadManagerContext=o},5977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=u,t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),i=(r=n(1889))&&r.__esModule?r:{default:r},a=n(1719),l=n(7177),s=n(9739);function u(e=!1){const t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t)),[])):e.concat(t)}n(1624);const d=["name","httpEquiv","charSet","itemProp"];function f(e,t){return e.reduce(((e,t)=>{const n=o.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(c,[]).reverse().concat(u(t.inAmpMode)).filter(function(){const e=new Set,t=new Set,n=new Set,r={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;const t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=d.length;e{const r=e.key||n;if(window.omnivoreEnv.__NEXT_OPTIMIZE_FONTS&&!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((t=>e.props.href.startsWith(t)))){const t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})}))}t.default=function({children:e}){const t=o.useContext(a.AmpStateContext),n=o.useContext(l.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:f,headManager:n,inAmpMode:s.isInAmpMode(t)},e)},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},927:(e,t)=>{"use strict";t.D=function(e,t,n){let r;if(e){n&&(n=n.toLowerCase());for(const a of e){var o,i;if(t===(null===(o=a.domain)||void 0===o?void 0:o.split(":")[0].toLowerCase())||n===a.defaultLocale.toLowerCase()||(null===(i=a.locales)||void 0===i?void 0:i.some((e=>e.toLowerCase()===n)))){r=a;break}}}return r}},816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){let n;const r=e.split("/");return(t||[]).some((t=>!(!r[1]||r[1].toLowerCase()!==t.toLowerCase()||(n=t,r.splice(1,1),e=r.join("/")||"/",0)))),{pathname:e,detectedLocale:n}}},4329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConfigContext=void 0;var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(8467);const a=o.default.createContext(i.imageConfigDefault);t.ImageConfigContext=a},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0,t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;"}},9910:(e,t)=>{"use strict";function n(e){return Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectClassLabel=n,t.isPlainObject=function(e){if("[object Object]"!==n(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},7471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t,...n){(e[t]||[]).slice().map((e=>{e(...n)}))}}}},997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalizePagePath=function(e){let t=o.normalizePathSep(e);return t.startsWith("/index/")&&!r.isDynamicRoute(t)?t.slice(6):"/index"!==t?t:"/"};var r=n(9150),o=n(9356)},9356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=function(e){return e.replace(/\\/g,"/")}},6510:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext(null);t.RouterContext=o},6640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){t=t||s.normalizeLocalePath(e,n).detectedLocale;const o=w(r,void 0,t);return!!o&&`http${o.http?"":"s"}://${o.domain}${x||""}${t===o.defaultLocale?"":`/${t}`}${e}`}return!1},t.addLocale=_,t.delLocale=O,t.hasBasePath=L,t.addBasePath=j,t.delBasePath=P,t.isLocalURL=R,t.interpolateAs=T,t.resolveHref=M,t.default=void 0;var r=n(1119),o=n(7928),i=n(9515),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(274)),l=n(997),s=n(816),u=b(n(7471)),c=n(1624),d=n(7482),f=n(1577),p=n(646),h=b(n(5317)),g=n(3107),m=n(4794),v=n(2763),y=n(6555);function b(e){return e&&e.__esModule?e:{default:e}}let w;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(w=n(927).D);const x=window.omnivoreEnv.__NEXT_ROUTER_BASEPATH||"";function k(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function E(e,t){if(!e.startsWith("/")||!t)return e;const n=C(e);return r.normalizePathTrailingSlash(`${t}${n}`)+e.slice(n.length)}function S(e,t){return(e=C(e))===t||e.startsWith(t+"/")}function _(e,t,n){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&t&&t!==n){const n=C(e).toLowerCase();if(!S(n,"/"+t.toLowerCase())&&!S(n,"/api"))return E(e,"/"+t)}return e}function O(e,t){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){const n=C(e),r=n.toLowerCase(),o=t&&t.toLowerCase();return t&&(r.startsWith("/"+o+"/")||r==="/"+o)?(n.length===t.length+1?"/":"")+e.slice(t.length+1):e}return e}function C(e){const t=e.indexOf("?"),n=e.indexOf("#");return(t>-1||n>-1)&&(e=e.substring(0,t>-1?t:n)),e}function L(e){return S(e,x)}function j(e){return E(e,x)}function P(e){return(e=e.slice(x.length)).startsWith("/")||(e=`/${e}`),e}function R(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{const t=c.getLocationOrigin(),n=new URL(e,t);return n.origin===t&&L(n.pathname)}catch(e){return!1}}function T(e,t,n){let r="";const o=m.getRouteRegex(e),i=o.groups,a=(t!==e?g.getRouteMatcher(o)(t):"")||n;r=e;const l=Object.keys(i);return l.every((e=>{let t=a[e]||"";const{repeat:n,optional:o}=i[e];let l=`[${n?"...":""}${e}]`;return o&&(l=`${t?"":"/"}[${l}]`),n&&!Array.isArray(t)&&(t=[t]),(o||e in a)&&(r=r.replace(l,n?t.map((e=>encodeURIComponent(e))).join("/"):encodeURIComponent(t))||"/")}))||(r=""),{params:l,result:r}}function A(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}function M(e,t,n){let o,i="string"==typeof t?t:y.formatWithValidation(t);const a=i.match(/^[a-zA-Z]{1,}:\/\//),l=a?i.slice(a[0].length):i;if((l.split("?")[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href passed to next/router: ${i}, repeated forward-slashes (//) or backslashes \\ are not valid in the href`);const e=c.normalizeRepeatedSlashes(l);i=(a?a[0]:"")+e}if(!R(i))return n?[i]:i;try{o=new URL(i.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){o=new URL("/","http://n")}try{const e=new URL(i,o);e.pathname=r.normalizePathTrailingSlash(e.pathname);let t="";if(d.isDynamicRoute(e.pathname)&&e.searchParams&&n){const n=p.searchParamsToUrlQuery(e.searchParams),{result:r,params:o}=T(e.pathname,e.pathname,n);r&&(t=y.formatWithValidation({pathname:r,hash:e.hash,query:A(n,o)}))}const a=e.origin===o.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[i]:i}}function I(e){const t=c.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function D(e,t,n){let[r,o]=M(e,t,!0);const i=c.getLocationOrigin(),a=r.startsWith(i),l=o&&o.startsWith(i);r=I(r),o=o?I(o):o;const s=a?r:j(r),u=n?I(M(e,n)):o||r;return{url:s,as:l?u:j(u)}}function N(e,t){const n=r.removePathTrailingSlash(l.denormalizePagePath(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some((t=>{if(d.isDynamicRoute(t)&&m.getRouteRegex(t).re.test(n))return e=t,!0})),r.removePathTrailingSlash(e))}const F=window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&"undefined"!=typeof window&&"scrollRestoration"in window.history&&!!function(){try{let e="__next";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){}}(),z=Symbol("SSG_DATA_NOT_FOUND");function $(e,t,n){return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok){if(t>1&&r.status>=500)return $(e,t-1,n);if(404===r.status)return r.json().then((e=>{if(e.notFound)return{notFound:z};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return n.text?r.text():r.json()}))}function B(e,t,n,r,i){const{href:a}=new URL(e,window.location.href);return void 0!==r[a]?r[a]:r[a]=$(e,t?3:1,{text:n}).catch((e=>{throw t||o.markAssetError(e),e})).then((e=>(i||delete r[a],e))).catch((e=>{throw delete r[a],e}))}class W{constructor(e,t,n,{initialProps:o,pageLoader:i,App:a,wrapApp:l,Component:s,err:u,subscription:p,isFallback:h,locale:g,locales:m,defaultLocale:v,domainLocales:b,isPreview:k,isRsc:E}){this.sdc={},this.sdr={},this.sde={},this._idx=0,this.onPopState=e=>{const t=e.state;if(!t){const{pathname:e,query:t}=this;return void this.changeState("replaceState",y.formatWithValidation({pathname:j(e),query:t}),c.getURL())}if(!t.__N)return;let n;const{url:r,as:o,options:i,idx:a}=t;if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F&&this._idx!==a){try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{const e=sessionStorage.getItem("__next_scroll_"+a);n=JSON.parse(e)}catch{n={x:0,y:0}}}this._idx=a;const{pathname:l}=f.parseRelativeUrl(r);this.isSsr&&o===j(this.asPath)&&l===j(this.pathname)||this._bps&&!this._bps(t)||this.change("replaceState",r,o,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale}),n)};const S=r.removePathTrailingSlash(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:u,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP,__N_RSC:!!E}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=W.events,this.pageLoader=i;const _=d.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=x,this.sub=p,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!(!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp)&&(_||self.location.search||window.omnivoreEnv.__NEXT_HAS_REWRITES)),window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(this.locales=m,this.defaultLocale=v,this.domainLocales=b,this.isLocaleDomain=!!w(b,self.location.hostname)),this.state={route:S,pathname:e,query:t,asPath:_?e:n,isPreview:!!k,locale:window.omnivoreEnv.__NEXT_I18N_SUPPORT?g:void 0,isFallback:h},"undefined"!=typeof window){if(!n.startsWith("//")){const r={locale:g};r._shouldResolveHref=n!==e,this.changeState("replaceState",y.formatWithValidation({pathname:j(e),query:t}),c.getURL(),r)}window.addEventListener("popstate",this.onPopState),window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}push(e,t,n={}){if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F)try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return({url:e,as:t}=D(this,e,t)),this.change("pushState",e,t,n)}replace(e,t,n={}){return({url:e,as:t}=D(this,e,t)),this.change("replaceState",e,t,n)}async change(e,t,n,l,u){if(!R(t))return window.location.href=t,!1;const p=l._h||l._shouldResolveHref||C(t)===C(n),v={...this.state};l._h&&(this.isReady=!0);const b=v.locale;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){v.locale=!1===l.locale?this.defaultLocale:l.locale||v.locale,void 0===l.locale&&(l.locale=v.locale);const e=f.parseRelativeUrl(L(n)?P(n):n),r=s.normalizeLocalePath(e.pathname,this.locales);r.detectedLocale&&(v.locale=r.detectedLocale,e.pathname=j(e.pathname),n=y.formatWithValidation(e),t=j(s.normalizeLocalePath(L(t)?P(t):t,this.locales).pathname));let o=!1;var x;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&((null===(x=this.locales)||void 0===x?void 0:x.includes(v.locale))||(e.pathname=_(e.pathname,v.locale),window.location.href=y.formatWithValidation(e),o=!0));const i=w(this.domainLocales,void 0,v.locale);if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!o&&i&&this.isLocaleDomain&&self.location.hostname!==i.domain){const e=P(n);window.location.href=`http${i.http?"":"s"}://${i.domain}${j(`${v.locale===i.defaultLocale?"":`/${v.locale}`}${"/"===e?"":e}`||"/")}`,o=!0}if(o)return new Promise((()=>{}))}l._h||(this.isSsr=!1),c.ST&&performance.mark("routeChange");const{shallow:k=!1,scroll:E=!0}=l,S={shallow:k};this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,S),n=j(_(L(n)?P(n):n,l.locale,this.defaultLocale));const M=O(L(n)?P(n):n,v.locale);this._inFlightRoute=n;let I=b!==v.locale;if(!l._h&&this.onlyAHashChange(M)&&!I)return v.asPath=M,W.events.emit("hashChangeStart",n,S),this.changeState(e,t,n,{...l,scroll:!1}),E&&this.scrollToHash(M),this.set(v,this.components[v.route],null),W.events.emit("hashChangeComplete",n,S),!0;let F,$,B=f.parseRelativeUrl(t),{pathname:H,query:U}=B;try{[F,{__rewrites:$}]=await Promise.all([this.pageLoader.getPageList(),o.getClientBuildManifest(),this.pageLoader.getMiddlewareList()])}catch(e){return window.location.href=n,!1}this.urlIsNew(M)||I||(e="replaceState");let V=n;if(H=H?r.removePathTrailingSlash(P(H)):H,p&&"/_error"!==H)if(l._shouldResolveHref=!0,window.omnivoreEnv.__NEXT_HAS_REWRITES&&n.startsWith("/")){const e=h.default(j(_(M,v.locale)),F,$,U,(e=>N(e,F)),this.locales);if(e.externalDest)return location.href=n,!0;V=e.asPath,e.matchedPage&&e.resolvedHref&&(H=e.resolvedHref,B.pathname=j(H),t=y.formatWithValidation(B))}else B.pathname=N(H,F),B.pathname!==H&&(H=B.pathname,B.pathname=j(H),t=y.formatWithValidation(B));if(!R(n))return window.location.href=n,!1;if(V=O(P(V),v.locale),(!l.shallow||1===l._h)&&(1!==l._h||d.isDynamicRoute(r.removePathTrailingSlash(H)))){const r=await this._preflightRequest({as:n,cache:!0,pages:F,pathname:H,query:U,locale:v.locale,isPreview:v.isPreview});if("rewrite"===r.type)U={...U,...r.parsedAs.query},V=r.asPath,H=r.resolvedHref,B.pathname=r.resolvedHref,t=y.formatWithValidation(B);else{if("redirect"===r.type&&r.newAs)return this.change(e,r.newUrl,r.newAs,l);if("redirect"===r.type&&r.destination)return window.location.href=r.destination,new Promise((()=>{}));if("refresh"===r.type&&n!==window.location.pathname)return window.location.href=n,new Promise((()=>{}))}}const q=r.removePathTrailingSlash(H);if(d.isDynamicRoute(q)){const e=f.parseRelativeUrl(V),r=e.pathname,o=m.getRouteRegex(q),i=g.getRouteMatcher(o)(r),a=q===r,l=a?T(q,r,U):{};if(!i||a&&!l.result){const e=Object.keys(o.groups).filter((e=>!U[e]));if(e.length>0)throw new Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${r}) is incompatible with the \`href\` value (${q}). `)+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}else a?n=y.formatWithValidation(Object.assign({},e,{pathname:l.result,query:A(U,l.params)})):Object.assign(U,i)}W.events.emit("routeChangeStart",n,S);try{var G,X;let r=await this.getRouteInfo(q,H,U,n,V,S,v.locale,v.isPreview),{error:o,props:a,__N_SSG:s,__N_SSP:c}=r;const d=r.Component;if(d&&d.unstable_scriptLoader&&[].concat(d.unstable_scriptLoader()).forEach((e=>{i.handleClientScriptLoad(e.props)})),(s||c)&&a){if(a.pageProps&&a.pageProps.__N_REDIRECT){const t=a.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.pageProps.__N_REDIRECT_BASE_PATH){const n=f.parseRelativeUrl(t);n.pathname=N(n.pathname,F);const{url:r,as:o}=D(this,t,t);return this.change(e,r,o,l)}return window.location.href=t,new Promise((()=>{}))}if(v.isPreview=!!a.__N_PREVIEW,a.notFound===z){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}r=await this.getRouteInfo(e,e,U,n,V,{shallow:!1},v.locale,v.isPreview)}}W.events.emit("beforeHistoryChange",n,S),this.changeState(e,t,n,l),l._h&&"/_error"===H&&500===(null===(G=self.__NEXT_DATA__.props)||void 0===G||null===(X=G.pageProps)||void 0===X?void 0:X.statusCode)&&(null==a?void 0:a.pageProps)&&(a.pageProps.statusCode=500);const p=l.shallow&&v.route===q;var K;const h=(null!==(K=l.scroll)&&void 0!==K?K:!p)?{x:0,y:0}:null;if(await this.set({...v,route:q,pathname:H,query:U,asPath:M,isFallback:!1},r,null!=u?u:h).catch((e=>{if(!e.cancelled)throw e;o=o||e})),o)throw W.events.emit("routeChangeError",o,M,S),o;return window.omnivoreEnv.__NEXT_I18N_SUPPORT&&v.locale&&(document.documentElement.lang=v.locale),W.events.emit("routeChangeComplete",n,S),!0}catch(e){if(a.default(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r={}){"pushState"===e&&c.getURL()===n||(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",n))}async handleRouteInfoError(e,t,n,r,i,l){if(e.cancelled)throw e;if(o.isAssetError(e)||l)throw W.events.emit("routeChangeError",e,r,i),window.location.href=r,k();try{let r,o,i;void 0!==r&&void 0!==o||({page:r,styleSheets:o}=await this.fetchComponent("/_error"));const a={props:i,Component:r,styleSheets:o,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(r,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError(a.default(e)?e:new Error(e+""),t,n,r,i,!0)}}async getRouteInfo(e,t,n,r,o,i,l,s){try{const a=this.components[e];if(i.shallow&&a&&this.route===e)return a;let u;a&&!("initial"in a)&&(u=a);const c=u||await this.fetchComponent(e).then((e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP,__N_RSC:!!e.mod.__next_rsc__}))),{Component:d,__N_SSG:f,__N_SSP:p,__N_RSC:h}=c;let g;const m=p&&h;(f||p||h)&&(g=this.pageLoader.getDataHref({href:y.formatWithValidation({pathname:t,query:n}),asPath:o,ssg:f,flight:m,locale:l}));const v=await this._getData((()=>(f||p||h)&&!m?B(g,this.isSsr,!1,f?this.sdc:this.sdr,!!f&&!s):this.getInitialProps(d,{pathname:t,query:n,asPath:r,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})));if(h)if(m){const{data:e}=await this._getData((()=>this._getFlightData(g)));v.pageProps=Object.assign(v.pageProps,{__flight__:e})}else{const{__flight__:e}=v;v.pageProps=Object.assign({},v.pageProps,{__flight__:e})}return c.props=v,this.components[e]=c,c}catch(e){return this.handleRouteInfoError(a.getProperError(e),t,n,r,i)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;const[t,n]=this.asPath.split("#"),[r,o]=e.split("#");return!(!o||t!==r||n!==o)||t===r&&n!==o}scrollToHash(e){const[,t=""]=e.split("#");if(""===t||"top"===t)return void window.scrollTo(0,0);const n=document.getElementById(t);if(n)return void n.scrollIntoView();const r=document.getElementsByName(t)[0];r&&r.scrollIntoView()}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,n={}){let i=f.parseRelativeUrl(e),{pathname:a,query:l}=i;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!1===n.locale){a=s.normalizeLocalePath(a,this.locales).pathname,i.pathname=a,e=y.formatWithValidation(i);let r=f.parseRelativeUrl(t);const o=s.normalizeLocalePath(r.pathname,this.locales);r.pathname=o.pathname,n.locale=o.detectedLocale||this.defaultLocale,t=y.formatWithValidation(r)}const u=await this.pageLoader.getPageList();let c=t;if(window.omnivoreEnv.__NEXT_HAS_REWRITES&&t.startsWith("/")){let n;({__rewrites:n}=await o.getClientBuildManifest());const r=h.default(j(_(t,this.locale)),u,n,i.query,(e=>N(e,u)),this.locales);if(r.externalDest)return;c=O(P(r.asPath),this.locale),r.matchedPage&&r.resolvedHref&&(a=r.resolvedHref,i.pathname=a,e=y.formatWithValidation(i))}else i.pathname=N(i.pathname,u),i.pathname!==a&&(a=i.pathname,i.pathname=a,e=y.formatWithValidation(i));const d=await this._preflightRequest({as:j(t),cache:!0,pages:u,pathname:a,query:l,locale:this.locale,isPreview:this.isPreview});"rewrite"===d.type&&(i.pathname=d.resolvedHref,a=d.resolvedHref,l={...l,...d.parsedAs.query},c=d.asPath,e=y.formatWithValidation(i));const p=r.removePathTrailingSlash(a);await Promise.all([this.pageLoader._isSsg(p).then((t=>!!t&&B(this.pageLoader.getDataHref({href:e,asPath:c,ssg:!0,locale:void 0!==n.locale?n.locale:this.locale}),!1,!1,this.sdc,!0))),this.pageLoader[n.priority?"loadPage":"prefetch"](p)])}async fetchComponent(e){let t=!1;const n=this.clc=()=>{t=!0},r=()=>{if(t){const t=new Error(`Abort fetching component for route: "${e}"`);throw t.cancelled=!0,t}n===this.clc&&(this.clc=null)};try{const t=await this.pageLoader.loadPage(e);return r(),t}catch(e){throw r(),e}}_getData(e){let t=!1;const n=()=>{t=!0};return this.clc=n,e().then((e=>{if(n===this.clc&&(this.clc=null),t){const e=new Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e}))}_getFlightData(e){return B(e,!0,!0,this.sdc,!1).then((e=>({data:e})))}async _preflightRequest(e){const t=C(e.as),n=O(L(t)?P(t):t,e.locale);if(!(await this.pageLoader.getMiddlewareList()).some((([e,t])=>g.getRouteMatcher(v.getMiddlewareRegex(e,!t))(n))))return{type:"next"};const o=_(e.as,e.locale);let i;try{i=await this._getPreflightData({preflightHref:o,shouldCache:e.cache,isPreview:e.isPreview})}catch(t){return{type:"redirect",destination:e.as}}if(i.rewrite){if(!i.rewrite.startsWith("/"))return{type:"redirect",destination:e.as};const t=f.parseRelativeUrl(s.normalizeLocalePath(L(i.rewrite)?P(i.rewrite):i.rewrite,this.locales).pathname),n=r.removePathTrailingSlash(t.pathname);let o,a;return e.pages.includes(n)?(o=!0,a=n):(a=N(n,e.pages),a!==t.pathname&&e.pages.includes(a)&&(o=!0)),{type:"rewrite",asPath:t.pathname,parsedAs:t,matchedPage:o,resolvedHref:a}}if(i.redirect){if(i.redirect.startsWith("/")){const e=r.removePathTrailingSlash(s.normalizeLocalePath(L(i.redirect)?P(i.redirect):i.redirect,this.locales).pathname),{url:t,as:n}=D(this,e,e);return{type:"redirect",newUrl:t,newAs:n}}return{type:"redirect",destination:i.redirect}}return i.refresh&&!i.ssr?{type:"refresh"}:{type:"next"}}_getPreflightData(e){const{preflightHref:t,shouldCache:n=!1,isPreview:r}=e,{href:o}=new URL(t,window.location.href);return!r&&n&&this.sde[o]?Promise.resolve(this.sde[o]):fetch(t,{method:"HEAD",credentials:"same-origin",headers:{"x-middleware-preflight":"1"}}).then((e=>{if(!e.ok)throw new Error("Failed to preflight request");return{cache:e.headers.get("x-middleware-cache"),redirect:e.headers.get("Location"),refresh:e.headers.has("x-middleware-refresh"),rewrite:e.headers.get("x-middleware-rewrite"),ssr:!!e.headers.get("x-middleware-ssr")}})).then((e=>(n&&"no-cache"!==e.cache&&(this.sde[o]=e),e))).catch((e=>{throw delete this.sde[o],e}))}getInitialProps(e,t){const{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,c.loadGetInitialProps(n,{AppTree:r,Component:e,router:this,ctx:t})}abortComponentLoad(e,t){this.clc&&(W.events.emit("routeChangeError",k(),e,t),this.clc(),this.clc=null)}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}t.default=W,W.events=u.default()},6555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=i,t.formatWithValidation=function(e){return i(e)},t.urlObjectKeys=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(646));const o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${i}${u}${a}${c}${l}`}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},9983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:`${e}`)+t}},2763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMiddlewareRegex=function(e,t=!0){const n=r.getParametrizedRoute(e);let o=t?"(?!_next).*":"",i=t?"(?:(/.*)?)":"";return"routeKeys"in n?"/"===n.parameterizedRoute?{groups:{},namedRegex:`^/${o}$`,re:new RegExp(`^/${o}$`),routeKeys:{}}:{groups:n.groups,namedRegex:`^${n.namedParameterizedRoute}${i}$`,re:new RegExp(`^${n.parameterizedRoute}${i}$`),routeKeys:n.routeKeys}:"/"===n.parameterizedRoute?{groups:{},re:new RegExp(`^/${o}$`)}:{groups:{},re:new RegExp(`^${n.parameterizedRoute}${i}$`)}};var r=n(4794)},9150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getMiddlewareRegex",{enumerable:!0,get:function(){return r.getMiddlewareRegex}}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o.getRouteMatcher}}),Object.defineProperty(t,"getRouteRegex",{enumerable:!0,get:function(){return i.getRouteRegex}}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return a.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return l.isDynamicRoute}});var r=n(2763),o=n(3107),i=n(4794),a=n(9036),l=n(7482)},7482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return n.test(e)};const n=/\/\[[^/]+?\](?=\/|$)/},1577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){const n=new URL("undefined"==typeof window?"http://n":r.getLocationOrigin()),i=t?new URL(t,n):n,{pathname:a,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,i);if(d!==n.origin)throw new Error(`invariant: invalid relative URL, router received ${e}`);return{pathname:a,query:o.searchParamsToUrlQuery(l),search:s,hash:u,href:c.slice(n.origin.length)}};var r=n(1624),o=n(646)},2011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return o.parseRelativeUrl(e);const t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:r.searchParamsToUrlQuery(t.searchParams),search:t.search}};var r=n(646),o=n(1577)},1095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathMatch=function(e,t){const n=[],o=r.pathToRegexp(e,n,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=r.regexpToFunction((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,n);return(e,r)=>{const o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(const e of n)"number"==typeof e.name&&delete o.params[e.name];return{...r,...o.params}}};var r=n(9264)},9716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,n){const r={};return!!t.every((t=>{let o,i=t.key;switch(t.type){case"header":i=i.toLowerCase(),o=e.headers[i];break;case"cookie":o=e.cookies[t.key];break;case"query":o=n[i];break;case"host":{const{host:t}=(null==e?void 0:e.headers)||{};o=null==t?void 0:t.split(":")[0].toLowerCase();break}}if(!t.value&&o)return r[function(e){let t="";for(let n=0;n64&&r<91||r>96&&r<123)&&(t+=e[n])}return t}(i)]=o,!0;if(o){const e=new RegExp(`^${t.value}$`),n=Array.isArray(o)?o.slice(-1)[0].match(e):o.match(e);if(n)return Array.isArray(n)&&(n.groups?Object.keys(n.groups).forEach((e=>{r[e]=n.groups[e]})):"host"===t.type&&n[0]&&(r.host=n[0])),!0}return!1}))&&r},t.compileNonPath=a,t.prepareDestination=function(e){const t=Object.assign({},e.query);delete t.__nextLocale,delete t.__nextDefaultLocale;let n=e.destination;for(const r of Object.keys({...e.params,...t}))s=r,n=n.replace(new RegExp(`:${o.escapeStringRegexp(s)}`,"g"),`__ESC_COLON_${s}`);var s;const u=i.parseUrl(n),c=u.query,d=l(`${u.pathname}${u.hash||""}`),f=l(u.hostname||""),p=[],h=[];r.pathToRegexp(d,p),r.pathToRegexp(f,h);const g=[];p.forEach((e=>g.push(e.name))),h.forEach((e=>g.push(e.name)));const m=r.compile(d,{validate:!1}),v=r.compile(f,{validate:!1});for(const[t,n]of Object.entries(c))Array.isArray(n)?c[t]=n.map((t=>a(l(t),e.params))):c[t]=a(l(n),e.params);let y,b=Object.keys(e.params).filter((e=>"nextInternalLocale"!==e));if(e.appendParamsToQuery&&!b.some((e=>g.includes(e))))for(const t of b)t in c||(c[t]=e.params[t]);try{y=m(e.params);const[t,n]=y.split("#");u.hostname=v(e.params),u.pathname=t,u.hash=`${n?"#":""}${n||""}`,delete u.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return u.query={...t,...u.query},{newUrl:y,destQuery:c,parsedDestination:u}};var r=n(9264),o=n(8058),i=n(2011);function a(e,t){if(!e.includes(":"))return e;for(const n of Object.keys(t))e.includes(`:${n}`)&&(e=e.replace(new RegExp(`:${n}\\*`,"g"),`:${n}--ESCAPED_PARAM_ASTERISKS`).replace(new RegExp(`:${n}\\?`,"g"),`:${n}--ESCAPED_PARAM_QUESTION`).replace(new RegExp(`:${n}\\+`,"g"),`:${n}--ESCAPED_PARAM_PLUS`).replace(new RegExp(`:${n}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${n}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),r.compile(`/${e}`,{validate:!1})(t).slice(1)}function l(e){return e.replace(/__ESC_COLON_/gi,":")}},646:(e,t)=>{"use strict";function n(e){return"string"==typeof e||"number"==typeof e&&!isNaN(e)||"boolean"==typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){const t={};return e.forEach(((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]})),t},t.urlQueryToSearchParams=function(e){const t=new URLSearchParams;return Object.entries(e).forEach((([e,r])=>{Array.isArray(r)?r.forEach((r=>t.append(e,n(r)))):t.set(e,n(r))})),t},t.assign=function(e,...t){return t.forEach((t=>{Array.from(t.keys()).forEach((t=>e.delete(t))),t.forEach(((t,n)=>e.append(n,t)))})),e}},5317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,u,c,d){let f,p=!1,h=!1,g=l.parseRelativeUrl(e),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(g.pathname),d).pathname);const v=n=>{let l=r.getPathMatch(n.source,{removeUnnamedParams:!0,strict:!0})(g.pathname);if(n.has&&l){const e=o.matchHas({headers:{host:document.location.hostname},cookies:document.cookie.split("; ").reduce(((e,t)=>{const[n,...r]=t.split("=");return e[n]=r.join("="),e}),{})},n.has,g.query);e?Object.assign(l,e):l=!1}if(l){if(!n.destination)return h=!0,!0;const r=o.prepareDestination({appendParamsToQuery:!0,destination:n.destination,params:l,query:u});if(g=r.parsedDestination,e=r.newUrl,Object.assign(u,r.parsedDestination.query),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(e),d).pathname),t.includes(m))return p=!0,f=m,!0;if(f=c(m),f!==e&&t.includes(f))return p=!0,!0}};let y=!1;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteMatcher=function(e){const{re:t,groups:n}=e;return e=>{const o=t.exec(e);if(!o)return!1;const i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach((e=>{const t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map((e=>i(e))):t.repeat?[i(r)]:i(r))})),a}};var r=n(1624)},4794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParametrizedRoute=i,t.getRouteRegex=function(e){const t=i(e);return"routeKeys"in t?{re:new RegExp(`^${t.parameterizedRoute}(?:/)?$`),groups:t.groups,routeKeys:t.routeKeys,namedRegex:`^${t.namedParameterizedRoute}(?:/)?$`}:{re:new RegExp(`^${t.parameterizedRoute}(?:/)?$`),groups:t.groups}};var r=n(8058);function o(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){const t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),n={};let i=1;const a=t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:r,repeat:a}=o(e.slice(1,-1));return n[t]={pos:i++,repeat:a,optional:r},a?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return`/${r.escapeStringRegexp(e)}`})).join("");if("undefined"==typeof window){let e=97,i=1;const l=()=>{let t="";for(let n=0;n122&&(i++,e=97);return t},s={};return{parameterizedRoute:a,namedParameterizedRoute:t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:n,repeat:r}=o(e.slice(1,-1));let i=t.replace(/\W/g,""),a=!1;return(0===i.length||i.length>30)&&(a=!0),isNaN(parseInt(i.slice(0,1)))||(a=!0),a&&(i=l()),s[i]=t,r?n?`(?:/(?<${i}>.+?))?`:`/(?<${i}>.+?)`:`/(?<${i}>[^/]+?)`}return`/${r.escapeStringRegexp(e)}`})).join(""),groups:n,routeKeys:s}}return{parameterizedRoute:a,groups:n}}},9036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){const t=new n;return e.forEach((e=>t.insert(e))),t.smoosh()};class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const n=t.map((t=>this.children.get(t)._smoosh(`${e}${t}/`))).reduce(((e,t)=>[...e,...t]),[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`);n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),n}_insert(e,t,r){if(0===e.length)return void(this.placeholder=!1);if(r)throw new Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let i=o.slice(1,-1),a=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),a=!0),i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw new Error(`Segment names may not start or end with extra brackets ('${i}').`);if(i.startsWith("."))throw new Error(`Segment names may not start with erroneous periods ('${i}').`);function l(e,n){if(null!==e&&e!==n)throw new Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${n}').`);t.forEach((e=>{if(e===n)throw new Error(`You cannot have the same slug name "${n}" repeat within a single dynamic path`);if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error(`You cannot have the slug names "${e}" and "${n}" differ only by non-word symbols within a single dynamic path`)})),t.push(n)}if(r)if(a){if(null!=this.restSlugName)throw new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`);l(this.optionalRestSlugName,i),this.optionalRestSlugName=i,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`);l(this.restSlugName,i),this.restSlugName=i,o="[...]"}else{if(a)throw new Error(`Optional route parameters are not yet supported ("${e[0]}").`);l(this.slugName,i),this.slugName=i,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}},1889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784));const o="undefined"==typeof window;class i extends r.Component{constructor(e){super(e),this.emitChange=()=>{this._hasHeadManager&&this.props.headManager.updateHead(this.props.reduceComponentsToState([...this.props.headManager.mountedInstances],this.props))},this._hasHeadManager=this.props.headManager&&this.props.headManager.mountedInstances,o&&this._hasHeadManager&&(this.props.headManager.mountedInstances.add(this),this.emitChange())}componentDidMount(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}componentDidUpdate(){this.emitChange()}componentWillUnmount(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}render(){return null}}t.default=i},1624:(e,t)=>{"use strict";function n(){const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function r(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function o(e){return e.finished||e.headersSent}Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)},t.getLocationOrigin=n,t.getURL=function(){const{href:e}=window.location,t=n();return e.substring(t.length)},t.getDisplayName=r,t.isResSent=o,t.normalizeRepeatedSlashes=function(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")},t.loadGetInitialProps=async function e(t,n){const i=n.res||n.ctx&&n.ctx.res;if(!t.getInitialProps)return n.ctx&&n.Component?{pageProps:await e(n.Component,n.ctx)}:{};const a=await t.getInitialProps(n);if(i&&o(i))return a;if(!a){const e=`"${r(t)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`;throw new Error(e)}return a},t.ST=t.SP=t.warnOnce=void 0,t.warnOnce=e=>{};const i="undefined"!=typeof performance;t.SP=i;const a=i&&"function"==typeof performance.mark&&"function"==typeof performance.measure;t.ST=a;class l extends Error{}t.DecodeError=l;class s extends Error{}t.NormalizeError=s},6577:(e,t,n)=>{n(104)},9097:(e,t,n)=>{e.exports=n(4529)},5632:(e,t,n)=>{e.exports=n(9518)},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,s=o(e),u=1;u{"use strict";var r=n(2784),o=n(7320),i=n(4616);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(g,e)||!p.call(h,e)&&(f.test(e)?g[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,_=60108,O=60114,C=60109,L=60110,j=60112,P=60113,R=60120,T=60115,A=60116,M=60121,I=60128,D=60129,N=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;k=z("react.element"),E=z("react.portal"),S=z("react.fragment"),_=z("react.strict_mode"),O=z("react.profiler"),C=z("react.provider"),L=z("react.context"),j=z("react.forward_ref"),P=z("react.suspense"),R=z("react.suspense_list"),T=z("react.memo"),A=z("react.lazy"),M=z("react.block"),z("react.scope"),I=z("react.opaque.id"),D=z("react.debug_trace_mode"),N=z("react.offscreen"),F=z("react.legacy_hidden")}var $,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var U=!1;function V(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 22:return V(e.type._render,!1);case 1:return V(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case O:return"Profiler";case _:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case L:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case M:return G(e._render);case A:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ue(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ce=null,Le=null;function je(e){if(e=Jr(e)){if("function"!=typeof Oe)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),Oe(e.stateNode,e.type,t))}}function Pe(e){Ce?Le?Le.push(e):Le=[e]:Ce=e}function Re(){if(Ce){var e=Ce,t=Le;if(Le=Ce=null,je(e),t)for(e=0;e(r=31-Ht(r))?0:1<n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Vt|0)|0},Ut=Math.log,Vt=Math.LN2,qt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Xt=!0;function Kt(e,t,n,r){De||Me();var o=Zt,i=De;De=!0;try{Ae(o,e,t,n,r)}finally{(De=i)||Fe()}}function Yt(e,t,n,r){Gt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if(Xt)if((o=0==(4&t))&&0=Mn),Nn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Pe(r),0<(t=Ar(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Gn(e){_r(e,0)}function Xn(e){if(Z(eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(d){var Zn;if(d){var Qn="oninput"in document;if(!Qn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Qn="function"==typeof Jn.oninput}Zn=Qn}else Zn=!1;Yn=Zn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=d&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=Ar(mr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(At,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xroo||(e.current=ro[oo],ro[oo]=null,oo--)}function lo(e,t){oo++,ro[oo]=e.current,e.current=t}var so={},uo=io(so),co=io(!1),fo=so;function po(e,t){var n=e.type.contextTypes;if(!n)return so;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ho(e){return null!=e.childContextTypes}function go(){ao(co),ao(uo)}function mo(e,t,n){if(uo.current!==so)throw Error(a(168));lo(uo,t),lo(co,n)}function vo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,fo=uo.current,lo(uo,e),lo(co,co.current),!0}function bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,ao(co),ao(uo),lo(uo,e)):ao(co),lo(co,n)}var wo=null,xo=null,ko=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,_o=i.unstable_shouldYield,Oo=i.unstable_requestPaint,Co=i.unstable_now,Lo=i.unstable_getCurrentPriorityLevel,jo=i.unstable_ImmediatePriority,Po=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,To=i.unstable_LowPriority,Ao=i.unstable_IdlePriority,Mo={},Io=void 0!==Oo?Oo:function(){},Do=null,No=null,Fo=!1,zo=Co(),$o=1e4>zo?Co:function(){return Co()-zo};function Bo(){switch(Lo()){case jo:return 99;case Po:return 98;case Ro:return 97;case To:return 96;case Ao:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return jo;case 98:return Po;case 97:return Ro;case 96:return To;case 95:return Ao;default:throw Error(a(332))}}function Ho(e,t){return e=Wo(e),ko(e,t)}function Uo(e,t,n){return e=Wo(e),Eo(e,t,n)}function Vo(){if(null!==No){var e=No;No=null,So(e)}qo()}function qo(){if(!Fo&&null!==Do){Fo=!0;var e=0;try{var t=Do;Ho(99,(function(){for(;eg?(m=d,d=null):m=d.sibling;var v=p(o,d,l[g],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===l.length)return n(o,d),u;if(null===d){for(;gm?(v=g,g=null):v=g.sibling;var b=p(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(o,g);!y.done;m++,y=s.next())null!==(y=h(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,s){var u="object"==typeof i&&null!==i&&i.type===S&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===S){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=wi(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===S?((r=Ws(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Bs(i.type,i.key,i.props,null,e.mode,s)).ref=wi(e,r,i),s.return=e,e=s)}return l(e);case E:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Vs(i,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Us(i,e.mode,s)).return=e,e=r),l(e);if(bi(i))return g(e,r,i,s);if(W(i))return m(e,r,i,s);if(c&&xi(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Ei=ki(!0),Si=ki(!1),_i={},Oi=io(_i),Ci=io(_i),Li=io(_i);function ji(e){if(e===_i)throw Error(a(174));return e}function Pi(e,t){switch(lo(Li,t),lo(Ci,e),lo(Oi,_i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ao(Oi),lo(Oi,t)}function Ri(){ao(Oi),ao(Ci),ao(Li)}function Ti(e){ji(Li.current);var t=ji(Oi.current),n=pe(t,e.type);t!==n&&(lo(Ci,e),lo(Oi,n))}function Ai(e){Ci.current===e&&(ao(Oi),ao(Ci))}var Mi=io(0);function Ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Di=null,Ni=null,Fi=!1;function zi(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function $i(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Bi(e){if(Fi){var t=Ni;if(t){var n=t;if(!$i(e,t)){if(!(t=Ur(n.nextSibling))||!$i(e,t))return e.flags=-1025&e.flags|2,Fi=!1,void(Di=e);zi(Di,n)}Di=e,Ni=Ur(t.firstChild)}else e.flags=-1025&e.flags|2,Fi=!1,Di=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Di=e}function Hi(e){if(e!==Di)return!1;if(!Fi)return Wi(e),Fi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=Ni;t;)zi(e,t),t=Ur(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ni=Ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ni=null}}else Ni=Di?Ur(e.stateNode.nextSibling):null;return!0}function Ui(){Ni=Di=null,Fi=!1}var Vi=[];function qi(){for(var e=0;ei))throw Error(a(301));i+=1,Qi=Zi=null,t.updateQueue=null,Gi.current=Ra,e=n(r,o)}while(ea)}if(Gi.current=La,t=null!==Zi&&null!==Zi.next,Ki=0,Qi=Zi=Yi=null,Ji=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qi?Yi.memoizedState=Qi=e:Qi=Qi.next=e,Qi}function ia(){if(null===Zi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Zi.next;var t=null===Qi?Yi.memoizedState:Qi.next;if(null!==t)Qi=t,Zi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Zi=e).memoizedState,baseState:Zi.baseState,baseQueue:Zi.baseQueue,queue:Zi.queue,next:null},null===Qi?Yi.memoizedState=Qi=e:Qi=Qi.next=e}return Qi}function aa(e,t){return"function"==typeof t?t(e):t}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Zi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=l=i=null,u=o;do{var c=u.lane;if((Ki&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Yi.lanes|=c,Il|=c}u=u.next}while(null!==u&&u!==o);null===s?i=r:s.next=l,ar(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ar(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(a(350))}function ca(e,t,n,r){var o=Cl;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),s=Gi.current,u=s.useState((function(){return ua(o,t,n)})),c=u[1],d=u[0];u=Qi;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,g=f.source;f=f.subscribe;var m=Yi;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!ar(l,e)){e=n(t._source),ar(d,e)||(c(e),e=ls(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0n?98:n,(function(){e(!0)})),Ho(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Xr]=t,e[Kr]=r,Ua(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i$l&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ii(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),el(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Fi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$o()-r.renderingStartTime>$l&&1073741824!==n&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$o(),n.sibling=null,t=Mi.current,lo(Mi,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function nl(e){switch(e.tag){case 1:ho(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ri(),ao(co),ao(uo),qi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ai(e),null;case 13:return ao(Mi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ao(Mi),null;case 4:return Ri(),null;case 10:return ei(e),null;case 23:case 24:return vs(),null;default:return null}}function rl(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ua=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ji(Oi.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(d in Ee(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var u=i[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Or("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===I?c.toString():(l=l||[]).push(d,c))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var il="function"==typeof WeakMap?WeakMap:Map;function al(e,t,n){(n=li(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Vl=r),ol(0,t)},n}function ll(e,t,n){(n=li(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ol(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var sl="function"==typeof WeakSet?WeakSet:Set;function ul(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ms(e,t)}else t.current=null}function cl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo))}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Rs(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function fl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function pl(e,t){if(xo&&"function"==typeof xo.onCommitFiberUnmount)try{xo.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Rs(t,n);else{r=t;try{o()}catch(e){Ms(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ul(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ms(t,e)}break;case 5:ul(t);break;case 4:bl(e,t)}}function hl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gl(e){return 5===e.tag||3===e.tag||4===e.tag}function ml(e){e:{for(var t=e.return;null!==t;){if(gl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?vl(e,n,t):yl(e,n,t)}function vl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(vl(e,t,n),e=e.sibling;null!==e;)vl(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function bl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,s=o,u=s;;)if(pl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=o.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(pl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function wl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;oo&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=$o()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=Br(Os.bind(null,e),n);break}Os(e);break;default:throw Error(a(329))}}return cs(e,$o()),e.callbackNode===t?ds.bind(null,e):null}function fs(e,t){for(t&=~Nl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Tl&&(Tl=2),s=rl(s,l),f=a;do{switch(f.tag){case 3:i=s,f.flags|=4096,t&=-t,f.lanes|=t,ui(f,al(0,i,t));break e;case 1:i=s;var x=f.type,k=f.stateNode;if(0==(64&f.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===ql||!ql.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,ui(f,ll(f,i,t));break e}}f=f.return}while(null!==f)}_s(n)}catch(e){t=e,Ll===n&&null!==n&&(Ll=n=n.return);continue}break}}function ws(){var e=Sl.current;return Sl.current=La,null===e?La:e}function xs(e,t){var n=Ol;Ol|=16;var r=ws();for(Cl===e&&jl===t||ys(e,t);;)try{ks();break}catch(t){bs(e,t)}if(Jo(),Ol=n,Sl.current=r,null!==Ll)throw Error(a(261));return Cl=null,jl=0,Tl}function ks(){for(;null!==Ll;)Ss(Ll)}function Es(){for(;null!==Ll&&!_o();)Ss(Ll)}function Ss(e){var t=Wl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?_s(e):Ll=t,_l.current=null}function _s(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=tl(n,t,Pl)))return void(Ll=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1l&&(s=l,l=k,k=s),s=cr(b,k),i=cr(b,l),s&&i&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),k>l?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b$o()-zl?ys(e,0):Nl|=n),cs(e,t)}function Ds(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Bo()?1:2:(0===ns&&(ns=Ml),0===(t=$t(62914560&~ns))&&(t=4194304))),n=as(),null!==(e=us(e,t))&&(Wt(e,t,n),cs(e,n))}function Ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fs(e,t,n,r){return new Ns(e,t,n,r)}function zs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $s(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bs(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)zs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Ws(n.children,o,i,t);case D:l=8,o|=16;break;case _:l=8,o|=1;break;case O:return(e=Fs(12,n,t,8|o)).elementType=O,e.type=O,e.lanes=i,e;case P:return(e=Fs(13,n,t,o)).type=P,e.elementType=P,e.lanes=i,e;case R:return(e=Fs(19,n,t,o)).elementType=R,e.lanes=i,e;case N:return Hs(n,o,i,t);case F:return(e=Fs(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case L:l=9;break e;case j:l=11;break e;case T:l=14;break e;case A:l=16,r=null;break e;case M:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Fs(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ws(e,t,n,r){return(e=Fs(7,e,r,t)).lanes=n,e}function Hs(e,t,n,r){return(e=Fs(23,e,r,t)).elementType=N,e.lanes=n,e}function Us(e,t,n){return(e=Fs(6,e,null,t)).lanes=n,e}function Vs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Gs(e,t,n){var r=3{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2967)},1837:(e,t,n)=>{"use strict";n(7320);var r=n(2784),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},3426:(e,t,n)=>{"use strict";var r=n(7320),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),l=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n{"use strict";e.exports=n(3426)},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=c(e,t,n);if("normal"===s.type){if(r=n.done?h:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",g={};function m(){}function v(){}function y(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==n&&r.call(x,i)&&(b=x);var k=y.prototype=m.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,l){var s=c(e[o],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6475:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r_(a,n))void 0!==s&&0>_(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>_(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],C=[],L=1,j=null,P=3,R=!1,T=!1,A=!1;function M(e){for(var t=E(C);null!==t;){if(null===t.callback)S(C);else{if(!(t.startTime<=e))break;S(C),t.sortIndex=t.expirationTime,k(O,t)}t=E(C)}}function I(e){if(A=!1,M(e),!T)if(null!==E(O))T=!0,n(D);else{var t=E(C);null!==t&&r(I,t.startTime-e)}}function D(e,n){T=!1,A&&(A=!1,o()),R=!0;var i=P;try{for(M(n),j=E(O);null!==j&&(!(j.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=j.callback;if("function"==typeof a){j.callback=null,P=j.priorityLevel;var l=a(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?j.callback=l:j===E(O)&&S(O),M(n)}else S(O);j=E(O)}if(null!==j)var s=!0;else{var u=E(C);null!==u&&r(I,u.startTime-n),s=!1}return s}finally{j=null,P=i,R=!1}}var N=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||R||(T=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return E(O)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,k(C,e),null===E(O)&&e===E(C)&&(A?o():A=!0,r(I,a-l))):(e.sortIndex=s,k(O,e),T||R||(T=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},2778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".article-inner-css * {\n max-width: 100%;\n}\n\n:root {\n color-scheme: light dark;\n}\n\n.speakingSection {\n color: var(--colors-highlightText);\n background-color: rgba(255, 210, 52, 0.2);\n}\n\n.highlight {\n color: var(--colors-highlightText);\n background-color: rgb(var(--colors-highlightBackground));\n cursor: pointer;\n}\n\n.highlight_with_note {\n color: var(--colors-highlightText);\n background-color: rgba(var(--colors-highlightBackground), 0.35);\n border-bottom: 2px rgb(var(--colors-highlightBackground)) solid;\n border-radius: 2px;\n cursor: pointer;\n}\n\n.article-inner-css .highlight_with_note .highlight_note_button {\n display: unset !important;\n margin: 0px !important;\n max-width: unset !important;\n height: unset !important;\n padding: 0px 8px;\n cursor: pointer;\n}\n/* \non smaller screens we display the note icon\n@media (max-width: 768px) {\n .highlight_with_note.last_element:after { \n content: url(/static/icons/highlight-note-icon.svg);\n padding: 0 3px;\n cursor: pointer;\n }\n} */\n\n.article-inner-css h1,\n.article-inner-css h2,\n.article-inner-css h3,\n.article-inner-css h4,\n.article-inner-css h5,\n.article-inner-css h6 {\n margin-block-start: 0.83em;\n margin-block-end: 0.83em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n line-height: var(--line-height);\n font-size: var(--text-font-size);\n color: var(--headers-color);\n font-weight: bold;\n}\n.article-inner-css h1 {\n font-size: 1.5em !important;\n line-height: 1.4em !important;\n}\n.article-inner-css h2 {\n font-size: 1.43em !important;\n}\n.article-inner-css h3 {\n font-size: 1.25em !important;\n}\n.article-inner-css h4,\n.article-inner-css h5,\n.article-inner-css h6 {\n font-size: 1em !important;\n margin: 1em 0 !important;\n}\n\n.article-inner-css .scrollable {\n overflow: auto;\n}\n\n.article-inner-css div {\n line-height: var(--line-height);\n /* font-size: var(--text-font-size); */\n color: var(--font-color);\n}\n\n.article-inner-css p {\n font-family: var(--text-font-family);\n font-style: normal;\n font-weight: normal;\n\n color: var(--font-color);\n\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n\n > img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n }\n\n > iframe {\n width: 100%;\n height: 350px;\n }\n}\n\n.article-inner-css section {\n line-height: 1.65em;\n font-size: var(--text-font-size);\n}\n\n.article-inner-css blockquote {\n display: block;\n border-left: 1px solid var(--font-color-transparent);\n padding-left: 16px;\n font-style: italic;\n margin-inline-start: 0px;\n > * {\n font-style: italic;\n }\n p:last-of-type {\n margin-bottom: 0;\n }\n}\n\n.article-inner-css a {\n color: var(--font-color-readerFont);\n}\n\n.article-inner-css .highlight a {\n color: var(--colors-highlightText);\n}\n\n.article-inner-css figure {\n * {\n color: var(--font-color-transparent);\n }\n\n margin: 30px 0;\n font-size: 0.75em;\n line-height: 1.5em;\n\n figcaption {\n color: var(--font-color);\n opacity: 0.7;\n margin: 10px 20px 10px 0;\n }\n\n figcaption * {\n color: var(--font-color);\n opacity: 0.7;\n }\n figcaption a {\n color: var(--font-color);\n /* margin: 10px 20px 10px 0; */\n opacity: 0.6;\n }\n\n > div {\n max-width: 100%;\n }\n}\n\n.article-inner-css figure[aria-label='media'] {\n margin: var(--figure-margin);\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.article-inner-css hr {\n margin-bottom: var(--hr-margin);\n border: none;\n}\n\n.article-inner-css table {\n display: block;\n word-break: normal;\n white-space: nowrap;\n border: 1px solid rgb(216, 216, 216);\n border-spacing: 0;\n border-collapse: collapse;\n font-size: 0.8rem;\n margin: auto;\n line-height: 1.5em;\n font-size: 0.9em;\n max-width: -moz-fit-content;\n max-width: fit-content;\n margin: 0 auto;\n overflow-x: auto;\n caption {\n margin: 0.5em 0;\n }\n th {\n border: 1px solid rgb(216, 216, 216);\n background-color: var(--table-header-color);\n padding: 5px;\n }\n td {\n border: 1px solid rgb(216, 216, 216);\n padding: 0.5em;\n padding: 5px;\n }\n\n p {\n margin: 0;\n padding: 0;\n }\n\n img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n }\n}\n\n.article-inner-css ul,\n.article-inner-css ol {\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n margin-top: 18px;\n\n font-family: var(--text-font-family);\n font-style: normal;\n font-weight: normal;\n\n line-height: var(--line-height);\n font-size: var(--text-font-size);\n\n color: var(--font-color);\n}\n\n.article-inner-css li {\n word-break: break-word;\n ol,\n ul {\n margin: 0;\n }\n}\n\n.article-inner-css sup,\n.article-inner-css sub {\n position: relative;\n a {\n color: inherit;\n pointer-events: none;\n }\n}\n\n.article-inner-css sup {\n top: -0.3em;\n}\n\n.article-inner-css sub {\n bottom: 0.3em;\n}\n\n.article-inner-css cite {\n font-style: normal;\n}\n\n.article-inner-css .page {\n width: 100%;\n}\n\n/* Collapse excess whitespace. */\n.page p > p:empty,\n.page div > p:empty,\n.page p > div:empty,\n.page div > div:empty,\n.page p + br,\n.page p > br:only-child,\n.page div > br:only-child,\n.page img + br {\n display: none;\n}\n\n.article-inner-css video {\n max-width: 100%;\n}\n\n.article-inner-css dl {\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n}\n\n.article-inner-css dd {\n display: block;\n margin-inline-start: 40px;\n}\n\n.article-inner-css pre,\n.article-inner-css code {\n vertical-align: bottom;\n word-wrap: initial;\n font-family: 'SF Mono', monospace !important;\n white-space: pre;\n direction: ltr;\n unicode-bidi: embed;\n color: var(--font-color);\n margin: 0;\n overflow-x: auto;\n word-wrap: normal;\n border-radius: 4px;\n}\n\n.article-inner-css img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n height: auto;\n}\n\n.article-inner-css .page {\n text-align: start;\n word-wrap: break-word;\n\n font-size: var(--text-font-size);\n line-height: var(--line-height);\n}\n\n.article-inner-css .omnivore-instagram-embed {\n img {\n margin: 0 !important;\n }\n}\n\n.article-inner-css .morning-brew-markets {\n max-width: 100% !important;\n}\n\n.article-inner-css .morning-brew-markets tbody{\n width: 100%;\n display: table;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(1) {\n width: 20%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(2) {\n width: 30%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(3) {\n width: 30%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(4) {\n width: 20%;\n}\n\n.article-inner-css ._omnivore-static-tweet {\n color: #0F1419 !important;\n background: #ffffff !important;\n display: flex;\n flex-direction: column;\n gap: 12px;\n max-width: 550px;\n margin: 32px auto;\n border: 1px solid #e0e0e0;\n direction: ltr;\n border-radius: 8px;\n padding: 16px 16px ;\n box-sizing: border-box;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-header {\n display: flex;\n align-items: center;\n flex-direction: row;\n gap: 12px;\n margin: unset;\n justify-content: flex-start;\n color: #0F1419 !important;\n}\n\n\n._omnivore-static-tweet-header ._omnivore-static-tweet-header-text {\n display: flex;\n flex-direction: column;\n color: #0F1419 !important;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet-header-text .tweet-author-name {\n font-weight: 600;\n}\n\n._omnivore-static-tweet-header-text .tweet-author-handle {\n color: #808080;\n}\n\n\n._omnivore-static-tweet ._omnivore-static-tweet-fake-link {\n color: #1da1f2;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-text {\n font-size: 14px;\n line-height: 20px;\n color: #0F1419 !important;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-link-top {\n text-decoration: none;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-header-avatar {\n -ms-interpolation-mode: bicubic; \n border: none !important;\n border-radius: 50%;\n float: left;\n height: 48px;\n width: 48px;\n margin: unset !important;\n margin-right: 12px;\n max-width: 100%;\n vertical-align: middle;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-link-bottom {\n display: flex;\n flex-direction: column;\n text-decoration: none;\n white-space: pre-wrap;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-footer {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n color: #808080;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-footer hr {\n background: #e0e0e0;\n border: none;\n height: 1px;\n margin: 12px 0;\n padding: 0;\n width: 100%;\n color: #496F72;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-author-handle {\n display: block;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-ufi {\n display: flex;\n gap: 24px;\n align-items: center;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-ufi .likes, .retweets {\n display: flex;\n gap: 4px;\n text-decoration: none;\n color: #808080;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-photo {\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: 2px;\n}\n\n._omnivore-static-tweet .expanded-link {\n display: flex;\n flex-direction: column;\n text-decoration: none;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n._omnivore-static-tweet .expanded-link-img {\n cursor: pointer;\n width: 100%;\n max-height: 280px;\n max-width: 100%;\n object-fit: cover;\n margin: 0px auto !important\n}\n\n._omnivore-static-tweet .expanded-link img {\n margin: 0px auto !important\n}\n\n._omnivore-static-tweet .expanded-link-bottom {\n display: flex;\n flex-direction: column;\n padding: 12px;\n gap: 2px;\n font-size: 14px;\n line-height: 20px;\n text-decoration: none;\n}\n\n.expanded-link-bottom .expanded-link-domain {\n color: #808080;\n text-transform: lowercase;\n text-decoration: none;\n}\n\n.expanded-link-bottom .expanded-link-title {\n color: #0F1419 !important;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n\n.expanded-link-bottom .expanded-link-description {\n color: #808080;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n",""]);const l=a},7420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,"html,\nbody {\n padding: 0;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,\n Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1.6;\n font-size: 18px;\n}\n\n.disable-webkit-callout {\n -webkit-touch-callout: none;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\ndiv#appleid-signin {\n min-width: 300px;\n min-height: 40px;\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 200;\n font-style: normal;\n src: url(Inter-ExtraLight-200.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 300;\n font-style: normal;\n src: url(Inter-Light-300.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 400;\n font-style: normal;\n src: url(Inter-Regular-400.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 500;\n font-style: normal;\n src: url(Inter-Medium-500.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 600;\n font-style: normal;\n src: url(Inter-SemiBold-600.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 700;\n font-style: normal;\n src: url(Inter-Bold-700.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 800;\n font-style: normal;\n src: url(Inter-ExtraBold-800.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 900;\n font-style: normal;\n src: url(Inter-Black-900.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 400;\n font-style: normal;\n src: url(Lora-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 700;\n font-style: normal;\n src: url(Lora-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 400;\n font-style: italic;\n src: url(Lora-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 400;\n font-style: normal;\n src: url(Merriweather-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 700;\n font-style: normal;\n src: url(Merriweather-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 400;\n font-style: italic;\n src: url(Merriweather-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 400;\n font-style: normal;\n src: url(OpenSans-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 700;\n font-style: normal;\n src: url(OpenSans-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 400;\n font-style: italic;\n src: url(OpenSans-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: normal;\n src: url(Roboto-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 700;\n font-style: normal;\n src: url(Roboto-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: italic;\n src: url(Roboto-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 400;\n font-style: normal;\n src: url(CrimsonText-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 700;\n font-style: normal;\n src: url(CrimsonText-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 400;\n font-style: italic;\n src: url(CrimsonText-Italic.ttf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 400;\n font-style: normal;\n src: url(OpenDyslexicAlta-Regular.otf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 700;\n font-style: normal;\n src: url(OpenDyslexicAlta-Bold.otf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 400;\n font-style: italic;\n src: url(OpenDyslexicAlta-Italic.otf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 400;\n font-style: normal;\n src: url(SourceSerifPro-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 700;\n font-style: normal;\n src: url(SourceSerifPro-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 400;\n font-style: italic;\n src: url(SourceSerifPro-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 400;\n font-style: normal;\n src: url(Montserrat-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 700;\n font-style: normal;\n src: url(Montserrat-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 400;\n font-style: italic;\n src: url(Montserrat-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 400;\n font-style: normal;\n src: url(Georgia-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 700;\n font-style: normal;\n src: url(Georgia-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 400;\n font-style: italic;\n src: url(Georgia-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 400;\n font-style: normal;\n src: url(Newsreader-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 700;\n font-style: normal;\n src: url(Newsreader-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 400;\n font-style: italic;\n src: url(Newsreader-Italic.ttf);\n}\n\n@font-face {\n font-family: 'SF Mono';\n font-weight: 400;\n font-style: normal;\n src: url(SFMonoRegular.otf);\n}\n\n.dropdown-arrow {\n display: inline-block;\n width: 0;\n height: 0;\n vertical-align: middle;\n border-style: solid;\n border-width: 4px 4px 0;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n}\n\n.slider {\n -webkit-appearance: none;\n appearance: none;\n width: 100%;\n height: 1px;\n background: var(--colors-grayBorderHover);\n}\n\n.slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 16px !important;\n height: 16px;\n border-radius: 50%;\n background: var(--colors-utilityTextContrast);\n cursor: pointer;\n}\n\n.slider::-moz-range-thumb {\n -webkit-appearance: none;\n width: 16px !important;\n height: 16px;\n border-radius: 50%;\n background: var(--colors-utilityTextContrast);\n cursor: pointer;\n}\n\nselect {\n color: var(--colors-grayTextContrast);\n background-color: transparent;\n}\n\nselect option {\n background-color: transparent;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: var(--colors-grayTextContrast);\n}\n\nbutton {\n padding: 0px;\n margin: 0px;\n}\n\n.omnivore-masonry-grid {\n display: -webkit-box; /* Not needed if autoprefixing */\n display: -ms-flexbox; /* Not needed if autoprefixing */\n display: flex;\n margin-left: -16px; /* gutter size offset */\n margin-right: 14px;\n width: auto;\n}\n.omnivore-masonry-grid_column {\n padding-left: 16px; /* gutter size */\n background-clip: padding-box;\n}\n\n/* .omnivore-masonry-grid_column > div {\n background: grey;\n margin-bottom: 16px;\n} */\n\n.ProgressRoot {\n overflow: hidden;\n background: var(--colors-omnivoreGray);\n border-radius: 99999px;\n height: 25px;\n transform: translateZ(0);\n}\n\n.ProgressIndicator {\n background-color: var(--colors-omnivoreCtaYellow) ;\n width: 100%;\n height: 100%;\n transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);\n}",""]);const l=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var n,r,i,a=o(7162),l=o.n(a),s=o(2784),u=o.t(s,2),c=o(8316),d="colors",f="sizes",p="space",h={gap:p,gridGap:p,columnGap:p,gridColumnGap:p,rowGap:p,gridRowGap:p,inset:p,insetBlock:p,insetBlockEnd:p,insetBlockStart:p,insetInline:p,insetInlineEnd:p,insetInlineStart:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,marginBlock:p,marginBlockEnd:p,marginBlockStart:p,marginInline:p,marginInlineEnd:p,marginInlineStart:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,paddingBlock:p,paddingBlockEnd:p,paddingBlockStart:p,paddingInline:p,paddingInlineEnd:p,paddingInlineStart:p,top:p,right:p,bottom:p,left:p,scrollMargin:p,scrollMarginTop:p,scrollMarginRight:p,scrollMarginBottom:p,scrollMarginLeft:p,scrollMarginX:p,scrollMarginY:p,scrollMarginBlock:p,scrollMarginBlockEnd:p,scrollMarginBlockStart:p,scrollMarginInline:p,scrollMarginInlineEnd:p,scrollMarginInlineStart:p,scrollPadding:p,scrollPaddingTop:p,scrollPaddingRight:p,scrollPaddingBottom:p,scrollPaddingLeft:p,scrollPaddingX:p,scrollPaddingY:p,scrollPaddingBlock:p,scrollPaddingBlockEnd:p,scrollPaddingBlockStart:p,scrollPaddingInline:p,scrollPaddingInlineEnd:p,scrollPaddingInlineStart:p,fontSize:"fontSizes",background:d,backgroundColor:d,backgroundImage:d,borderImage:d,border:d,borderBlock:d,borderBlockEnd:d,borderBlockStart:d,borderBottom:d,borderBottomColor:d,borderColor:d,borderInline:d,borderInlineEnd:d,borderInlineStart:d,borderLeft:d,borderLeftColor:d,borderRight:d,borderRightColor:d,borderTop:d,borderTopColor:d,caretColor:d,color:d,columnRuleColor:d,fill:d,outline:d,outlineColor:d,stroke:d,textDecorationColor:d,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:f,minBlockSize:f,maxBlockSize:f,inlineSize:f,minInlineSize:f,maxInlineSize:f,width:f,minWidth:f,maxWidth:f,height:f,minHeight:f,maxHeight:f,flexBasis:f,gridTemplateColumns:f,gridTemplateRows:f,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},g=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,m=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,g))(t);return o in e?e[o]:e[o]=n(t,...r)}},v=Symbol.for("sxs.internal"),y=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),b=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:w}=Object.prototype,x=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),k=/\s+(?![^()]*\))/,E=e=>t=>e(..."string"==typeof t?String(t).split(k):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:E(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:E(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:E(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:E(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:E(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:E(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},_=/([\d.]+)([^]*)/,O=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,C=(e,t)=>e in L&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${x(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${x(e)}:${n}fit-content`)+o)):String(t),L={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},j=e=>e?e+"-":"",P=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?j(t)+(a.includes("$")?"":j(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),R=/\s*,\s*(?![^()]*\))/,T=Object.prototype.toString,A=(e,t,n,r,o)=>{let i,a,l;const s=(e,t,n)=>{let u,c;const d=e=>{for(u in e){const h=64===u.charCodeAt(0),g=h&&Array.isArray(e[u])?e[u]:[e[u]];for(c of g){const e=/[A-Z]/.test(p=u)?p:p.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===T&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in S){const t=S[e];if(t!==l){l=t,d(t(c)),l=null;continue}}if(h&&(f=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=_.test(t),l=.0625*(a?-1:1),[s,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+s+":"+("="!==n[0]&&1===n.length?u.replace(_,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+s+":"+(1===o.length?i.replace(_,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=h?n.concat(u):[...n],r=h?[...t]:O(t,u.split(R));void 0!==i&&o(M(...i)),i=void 0,s(c,r,e)}else void 0===i&&(i=[[],t,n]),u=h||36!==u.charCodeAt(0)?u:`--${j(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in I?String(c)+"px":String(c):P(C(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${h?`${u} `:`${x(u)}:`}${c}`)}}var f,p};d(e),void 0!==i&&o(M(...i)),i=void 0};s(e,t,n)},M=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},D=e=>String.fromCharCode(e+(e>25?39:97)),N=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return D(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),F=["themed","global","styled","onevar","resonevar","allvar","inline"],z=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},$=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")},r=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(z(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:s}=a;if(!s.startsWith("--sxs"))continue;const u=s.slice(14,-3).trim().split(/\s+/),c=F[u[0]];c&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),t.rules[c]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:o("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=F.length-1;e>=0;--e){const t=F[e];if(!a[t]){const n=F[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}B(a[t])}};return r(),t},B=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},W=Symbol(),H=m(),U=(e,t)=>H(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[v]){null==r.type&&(r.type=t[v].type);for(const e of t[v].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(V(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),q(e,r,t)})),V=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${j(o.prefix)}c-${N(r)}`,a=[],l=[],s=Object.create(null),u=[];for(const e in n)s[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){c=s,d=t,w.call(c,d)||(s[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=n[e],i=[r,o,!b(o)];a.push(i)}}var c,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!b(t)];l.push(r)}return[i,r,a,l,s,u]},q=(e,t,n)=>{const[r,o,i,a]=G(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[W].push([e,n])})),t})(n):null,s=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||K;const{css:d,...f}=c,p={};for(const e in i)if(delete f[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":i[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:i[e])}else p[e]=i[e];const h=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),A(o,[`.${r}`],[],e,(e=>{s.styled.apply(e)})));const t=X(i,p,e.media),l=X(a,p,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${N(i)}-${t}`;h.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?s.resonevar:s.onevar;l.has(o)||(l.add(o),A(i,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${N(i)}-${o}`;h.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),A(i,[`.${t}`],[],e,(e=>{s.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${N(d)}-css`;h.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),A(d,[`.${t}`],[],e,(e=>{s.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&h.add(e);const g=f.className=[...h].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:l}};return y(c,{className:r,selector:u,[v]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},G=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},X=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,s=0,u=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}s+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[s]=o[s]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},K={},Y=m(),Z=(e,t)=>Y(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=N(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}A(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return y(r,{toString:r})})),Q=m(),J=(e,t)=>Q(e,(()=>n=>{const r=`${j(e.prefix)}k-${N(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];A(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return y(o,{get name(){return o()},toString:o})})),ee=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+j(this.prefix)+j(this.scale)+this.token}toString(){return this.computedValue}},te=m(),ne=(e,t)=>te(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${j(e.prefix)}t-${N(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${j(e.prefix)}${t}-${n}`,l=P(String(r[t][n]),e.prefix,t);i[t][n]=new ee(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),re=m(),oe=m(),ie=e=>{const t=(e=>{let t=!1;const n=re(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...h},utils:"object"==typeof e.utils&&e.utils||{}},l=$(o),s={css:U(a,l),globalCss:Z(a,l),keyframes:J(a,l),createTheme:ne(a,l),reset(){l.reset(),s.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(s.theme=s.createTheme(i)),s}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>oe(e,(()=>{const n=U(e,t);return(...e)=>{const t=n(...e),r=t[v].type,o=s.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?s.createElement(s.Fragment,null,s.createElement(o,i),s.createElement(a,null)):s.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[v]=t[v],o}})))(t),t},ae=()=>n||(n=ie()),le=(...e)=>ae().createTheme(...e),se=(...e)=>ae().keyframes(...e),ue=(...e)=>ae().styled(...e);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Ee(){return Ee=Object.assign||function(e){for(var t=1;t{const{children:n,...r}=e;return s.Children.toArray(n).some(Ce)?s.createElement(s.Fragment,null,s.Children.map(n,(e=>Ce(e)?s.createElement(_e,Ee({},r,{ref:t}),e.props.children):e))):s.createElement(_e,Ee({},r,{ref:t}),n)}));Se.displayName="Slot";const _e=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...Le(r,n.props),ref:ke(t,n.ref)}):s.Children.count(n)>1?s.Children.only(null):null}));_e.displayName="SlotClone";const Oe=({children:e})=>s.createElement(s.Fragment,null,e);function Ce(e){return s.isValidElement(e)&&e.type===Oe}function Le(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const je=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Se:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Pe),s.createElement(i,Ee({},o,{ref:n}))}))})),{}),Pe="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",Re="horizontal",Te=["horizontal","vertical"],Ae=s.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Re,...o}=e,i=Me(r)?r:Re,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return s.createElement(je.div,Ee({"data-orientation":i},a,o,{ref:t}))}));function Me(e){return Te.includes(e)}Ae.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Me(r)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${Re}\`.`}(o,n)):null}};const Ie=Ae;var De=o(2322),Ne={alignment:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"end"}},distribution:{around:{justifyContent:"space-around"},between:{justifyContent:"space-between"},evenly:{justifyContent:"space-evenly"},start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"}}},Fe=he("div",{}),ze=he("span",{}),$e=he("a",{}),Be=he("blockquote",{}),We=he(Fe,{display:"flex",flexDirection:"row",variants:Ne,defaultVariants:{alignment:"start",distribution:"around"}}),He=he(Fe,{display:"flex",flexDirection:"column",variants:Ne,defaultVariants:{alignment:"start",distribution:"around"}});he(Ie,{backgroundColor:"$grayLine","&[data-orientation=horizontal]":{height:1,width:"100%"},"&[data-orientation=vertical]":{height:"100%",width:1}});var Ue=["omnivore-highlight-id","data-twitter-tweet-id","data-instagram-id"];function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,l,o)},onDiscarded:bt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Wt?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Wt?5e3:3e3,compare:function(e,t){return jt(e)==jt(t)},isPaused:function(){return!1},cache:Qt,mutate:Jt,fallback:{}},Nt),tn=function(e,t){var n=St(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=St(o,a))}return n},nn=(0,s.createContext)({}),rn=function(e){return Et(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},on=function(){return St(en,(0,s.useContext)(nn))},an=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},ln={dedupe:!0},sn=(xt.defineProperty((function(e){var t=e.value,n=tn((0,s.useContext)(nn),t),r=t&&t.provider,o=(0,s.useState)((function(){return r?Yt(r(n.cache||Qt),t):wt}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),$t((function(){return o?o[2]:wt}),[]),(0,s.createElement)(nn.Provider,St(e,{value:n}))}),"default",{value:en}),at=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,u=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,f=Ut.get(r),p=f[0],h=f[1],g=f[2],m=f[3],v=Ht(e),y=v[0],b=v[1],w=v[2],x=(0,s.useRef)(!1),k=(0,s.useRef)(!1),E=(0,s.useRef)(y),S=(0,s.useRef)(t),_=(0,s.useRef)(n),O=function(){return _.current},C=function(){return O().isVisible()&&O().isOnline()},L=function(e){return r.set(w,St(r.get(w),e))},j=r.get(y),P=kt(i)?n.fallback[y]:i,R=kt(j)?P:j,T=r.get(w)||{},A=T.error,M=!x.current,I=function(){return M&&!kt(l)?l:!O().isPaused()&&(a?!kt(R)&&n.revalidateIfStale:kt(R)||n.revalidateIfStale)},D=!(!y||!t)&&(!!T.isValidating||M&&I()),N=function(e,t){var n=(0,s.useState)({})[1],r=(0,s.useRef)(e),o=(0,s.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,s.useCallback)((function(e){var i=!1,a=r.current;for(var l in e){var s=l;a[s]!==e[s]&&(a[s]=e[s],o.current[s]&&(i=!0))}i&&!t.current&&n({})}),[]);return $t((function(){r.current=e})),[r,o.current,i]}({data:R,error:A,isValidating:D},k),F=N[0],z=N[1],$=N[2],B=(0,s.useCallback)((function(e){return ot(void 0,void 0,void 0,(function(){var t,i,a,l,s,u,c,d,f,p,h,v,w;return it(this,(function(_){switch(_.label){case 0:if(t=S.current,!y||!t||k.current||O().isPaused())return[2,!1];l=!0,s=e||{},u=!m[y]||!s.dedupe,c=function(){return!k.current&&y===E.current&&x.current},d=function(){var e=m[y];e&&e[1]===a&&delete m[y]},f={isValidating:!1},p=function(){L({isValidating:!1}),c()&&$(f)},L({isValidating:!0}),$({isValidating:!0}),_.label=1;case 1:return _.trys.push([1,3,,4]),u&&(Vt(r,y,F.current.data,F.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){l&&c()&&O().onLoadingSlow(y,n)}),n.loadingTimeout),m[y]=[t.apply(void 0,b),Gt()]),w=m[y],i=w[0],a=w[1],[4,i];case 2:return i=_.sent(),u&&setTimeout(d,n.dedupingInterval),m[y]&&m[y][1]===a?(L({error:wt}),f.error=wt,h=g[y],!kt(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(p(),u&&c()&&O().onDiscarded(y),[2,!1]):(o(F.current.data,i)?f.data=F.current.data:f.data=i,o(r.get(y),i)||r.set(y,i),u&&c()&&O().onSuccess(i,y,n),[3,4])):(u&&c()&&O().onDiscarded(y),[2,!1]);case 3:return v=_.sent(),d(),O().isPaused()||(L({error:v}),f.error=v,u&&c()&&(O().onError(v,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Et(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&C()&&O().onErrorRetry(v,y,n,B,{retryCount:(s.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,p(),c()&&u&&Vt(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),W=(0,s.useCallback)(Xt.bind(wt,r,(function(){return E.current})),[]);if($t((function(){S.current=t,_.current=n})),$t((function(){if(y){var e=y!==E.current,t=B.bind(wt,ln),n=0,r=an(y,h,(function(e,t,n){$(St({error:t,isValidating:n},o(F.current.data,e)?wt:{data:e}))})),i=an(y,p,(function(e){if(0==e){var r=Date.now();O().revalidateOnFocus&&r>n&&C()&&(n=r+O().focusThrottleInterval,t())}else if(1==e)O().revalidateOnReconnect&&C()&&t();else if(2==e)return B()}));return k.current=!1,E.current=y,x.current=!0,e&&$({data:R,error:A,isValidating:D}),I()&&(kt(R)||zt?t():(a=t,Ot()&&typeof window.requestAnimationFrame!=_t?window.requestAnimationFrame(a):setTimeout(a,1))),function(){k.current=!0,r(),i()}}var a}),[y,B]),$t((function(){var e;function t(){var t=Et(u)?u(R):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F.current.error||!c&&!O().isVisible()||!d&&!O().isOnline()?t():B(ln).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,d,B]),(0,s.useDebugValue)(R),a&&kt(R)&&y)throw S.current=t,_.current=n,k.current=!1,kt(A)?B(ln):A;return{mutate:W,get data(){return z.data=!0,R},get error(){return z.error=!0,A},get isValidating(){return z.isValidating=!0,D}}},function(){for(var e=[],t=0;t0;)s=u[c](s);return s(o,i||l.fetcher,l)}),un={prod:{webBaseURL:null!==(lt=window.omnivoreEnv.NEXT_PUBLIC_BASE_URL)&&void 0!==lt?lt:"",serverBaseURL:null!==(st=window.omnivoreEnv.NEXT_PUBLIC_SERVER_BASE_URL)&&void 0!==st?st:"",highlightsBaseURL:null!==(ut=window.omnivoreEnv.NEXT_PUBLIC_HIGHLIGHTS_BASE_URL)&&void 0!==ut?ut:""},dev:{webBaseURL:null!==(ct=window.omnivoreEnv.NEXT_PUBLIC_DEV_BASE_URL)&&void 0!==ct?ct:"",serverBaseURL:null!==(dt=window.omnivoreEnv.NEXT_PUBLIC_DEV_SERVER_BASE_URL)&&void 0!==dt?dt:"",highlightsBaseURL:null!==(ft=window.omnivoreEnv.NEXT_PUBLIC_DEV_HIGHLIGHTS_BASE_URL)&&void 0!==ft?ft:""},demo:{webBaseURL:null!==(pt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_BASE_URL)&&void 0!==pt?pt:"",serverBaseURL:null!==(ht=window.omnivoreEnv.NEXT_PUBLIC_DEMO_SERVER_BASE_URL)&&void 0!==ht?ht:"",highlightsBaseURL:null!==(gt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_HIGHLIGHTS_BASE_URL)&&void 0!==gt?gt:""},local:{webBaseURL:null!==(mt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_BASE_URL)&&void 0!==mt?mt:"",serverBaseURL:null!==(vt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_SERVER_BASE_URL)&&void 0!==vt?vt:"",highlightsBaseURL:null!==(yt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_HIGHLIGHTS_BASE_URL)&&void 0!==yt?yt:""}};function cn(e){var t=un[fn].serverBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for server base url in ".concat(e," environment"));return t}var dn,fn=window.omnivoreEnv.NEXT_PUBLIC_APP_ENV||"prod",pn=(window.omnivoreEnv.SENTRY_DSN||window.omnivoreEnv.NEXT_PUBLIC_SENTRY_DSN,window.omnivoreEnv.NEXT_PUBLIC_PSPDFKIT_LICENSE_KEY,window.omnivoreEnv.SSO_JWT_SECRET,"".concat(un[fn].serverBaseURL,"local"==fn?"/api/auth/gauth-redirect-localhost":"/api/auth/vercel/gauth-redirect"),"".concat(un[fn].serverBaseURL,"local"==fn?"/api/auth/apple-redirect-localhost":"/api/auth/vercel/apple-redirect"),window.omnivoreEnv.NEXT_PUBLIC_INTERCOM_APP_ID,window.omnivoreEnv.NEXT_PUBLIC_SEGMENT_API_KEY,"prod"==fn?window.omnivoreEnv.NEXT_PUBLIC_GOOGLE_ID:window.omnivoreEnv.NEXT_PUBLIC_DEV_GOOGLE_ID,"".concat(cn(fn),"/api/graphql")),hn="".concat(cn(fn),"/api");function gn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function mn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){gn(i,r,o,a,l,"next",e)}function l(e){gn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function vn(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.localStorage.getItem("authToken"))||void 0,r=(null===(t=window)||void 0===t?void 0:t.localStorage.getItem("pendingUserAuth"))||void 0;return n?{authorization:n}:r?{pendingUserAuth:r}:{}}function yn(e,t){return bn(e,t,!1)}function bn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&wn();var r=new rt.GraphQLClient(pn,{credentials:"include",mode:"cors"});return r.request(e,t,vn())}function wn(){return xn.apply(this,arguments)}function xn(){return(xn=mn(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return");case 2:if(!window.localStorage.getItem("authVerified")){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(hn,"/auth/verify"),{credentials:"include",mode:"cors",headers:vn()});case 7:if(200===(t=e.sent).status){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t.json();case 12:n=e.sent,r=n.authStatus,e.t0=r,e.next="AUTHENTICATED"===e.t0?17:"PENDING_USER"===e.t0?19:"NOT_AUTHENTICATED"===e.t0?21:22;break;case 17:return window.localStorage.setItem("authVerified","true"),e.abrupt("break",22);case 19:return"/confirm-profile"!==window.location.pathname&&(window.location.href="/confirm-profile"),e.abrupt("break",22);case 21:"/login"!==window.location.pathname&&(window.location.href="/login?errorCodes=AUTH_FAILED");case 22:e.next=27;break;case 24:return e.prev=24,e.t1=e.catch(4),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[4,24]])})))).apply(this,arguments)}(function(e){if(0==un[fn].highlightsBaseURL.length)throw new Error("Couldn't find environment variable for highlights base url in ".concat(e," environment"))})(fn),function(e){if(0==un[fn].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(fn);var kn,En,Sn,_n=(0,rt.gql)(dn||(kn=["\n query GetUserPersonalization {\n getUserPersonalization {\n ... on GetUserPersonalizationSuccess {\n userPersonalization {\n id\n theme\n margin\n fontSize\n fontFamily\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on GetUserPersonalizationError {\n errorCodes\n }\n }\n }\n"],En||(En=kn.slice(0)),dn=Object.freeze(Object.defineProperties(kn,{raw:{value:Object.freeze(En)}}))));function On(e){Jt(_n,{getUserPersonalization:{userPersonalization:e}},!1)}function Cn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ln(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function jn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ln(i,r,o,a,l,"next",e)}function l(e){Ln(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Pn(e){return Rn.apply(this,arguments)}function Rn(){return Rn=jn(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,rt.gql)(Sn||(Sn=Cn(["\n mutation SetUserPersonalization($input: SetUserPersonalizationInput!) {\n setUserPersonalization(input: $input) {\n ... on SetUserPersonalizationSuccess {\n updatedUserPersonalization {\n id\n theme\n fontSize\n fontFamily\n margin\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on SetUserPersonalizationError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,bn(n,{input:t});case 4:if(o=e.sent,null==(i=o)||null===(r=i.setUserPersonalization)||void 0===r||!r.updatedUserPersonalization){e.next=9;break}return On(i.setUserPersonalization.updatedUserPersonalization),e.abrupt("return",null===(a=i.setUserPersonalization)||void 0===a?void 0:a.updatedUserPersonalization);case 9:return e.abrupt("return",void 0);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Rn.apply(this,arguments)}var Tn="theme";function An(e){"undefined"!=typeof window&&(Mn(e),Pn({theme:e}))}function Mn(e){"undefined"!=typeof window&&window.localStorage.setItem(Tn,e),document.body.classList.remove(xe,be,we,r.Light,r.Dark,r.Darker,r.Lighter,r.Sepia,r.Charcoal),document.body.classList.add(e)}function In(){switch(function(){if("undefined"!=typeof window)return window.localStorage.getItem(Tn)}()){case r.Light:return"Light";case r.Dark:return"Dark";case r.Darker:return"Darker";case r.Lighter:return"Lighter";case r.Sepia:return"Sepia";case r.Charcoal:return"Charcoal";default:return""}}function Dn(){var e=In();return"Dark"===e||"Darker"===e}var Nn=o(4073),Fn=o.n(Nn);function zn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)r();return n.shift(),n.forEach((function(e,t){e.setAttribute("data-omnivore-anchor-idx",(t+1).toString())})),n}(e.current),r=new IntersectionObserver((function(e){var n=0,r=1e5;if(e.forEach((function(e){var t=e.target.getAttribute("data-omnivore-anchor-idx")||"0";e.isIntersecting&&1===e.intersectionRatio&&e.boundingClientRect.top0){for(var o=n;o-1>0;){var i=document.querySelector("[data-omnivore-anchor-idx='".concat((o-1).toString(),"']"));if(!i)throw new Error("Unable to find previous intersection element!");var a=i.getBoundingClientRect();if(!(a.top>=0&&a.left>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)))break;o-=1}t(o)}}),{root:null,rootMargin:"0px",threshold:[1]});return null==n||n.forEach((function(e){r.observe(e)})),function(){r.disconnect()}}),[e,t])}(p,l);var h=(0,s.useMemo)((function(){return Fn()((function(e){o(e)}),2e3)}),[]);(0,s.useEffect)((function(){return function(){h.cancel()}}),[]),(0,s.useEffect)((function(){var t;(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.articleMutations.articleReadingProgressMutation({id:e.articleId,readingProgressPercent:r>100?100:r,readingProgressAnchorIndex:a});case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){zn(i,r,o,a,l,"next",e)}function l(e){zn(i,r,o,a,l,"throw",e)}a(void 0)}))})()}),[e.articleId,r]),(0,s.useEffect)((function(){var e,t;void 0!==(null===(e=window)||void 0===e?void 0:e.webkit)&&(null===(t=window.webkit.messageHandlers.readingProgressUpdate)||void 0===t||t.postMessage({progress:r}))}),[r]),function(e,t){var n,r,o=(0,s.useRef)(void 0),i=(n=(0,s.useState)({x:0,y:0}),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];(0,s.useEffect)((function(){var t=function(){var t,n,r,i,a,s,u={x:null!==(t=null!==(n=window.document.documentElement.scrollLeft)&&void 0!==n?n:null===(r=window)||void 0===r?void 0:r.scrollX)&&void 0!==t?t:0,y:null!==(i=null!==(a=window.document.documentElement.scrollTop)&&void 0!==a?a:null===(s=window)||void 0===s?void 0:s.scrollY)&&void 0!==i?i:0};e(),l(u),o.current=void 0},n=function(){void 0===o.current&&(o.current=setTimeout(t,1e3))};return window.addEventListener("scroll",n),function(){return window.removeEventListener("scroll",n)}}),[a,1e3,e])}((function(e){if(window&&window.document.scrollingElement){var t=window.scrollY/window.document.scrollingElement.scrollHeight;h(100*(t>.92?1:t))}}));var g=(0,s.useCallback)((function(e,t){if(t){var n=t.clientWidth+140;if(!e.closest("blockquote, table")){var r=parseFloat(e.getAttribute("width")||"");(r=isNaN(r)?e.naturalWidth:r)>n&&(e.style.setProperty("width","".concat(Math.min(r,n),"px")),e.style.setProperty("max-width","unset"),e.style.setProperty("margin-left","-".concat(Math.round(70),"px")))}}}),[]);(0,s.useEffect)((function(){if("undefined"!=typeof window&&d&&(f(!1),!(e.highlightHref.current||e.initialReadingProgress&&e.initialReadingProgress>=98))){var t=e.highlightHref.current?document.querySelector('[omnivore-highlight-id="'.concat(e.highlightHref.current,'"]')):document.querySelector("[data-omnivore-anchor-idx='".concat(e.initialAnchorIndex.toString(),"']"));if(t){var n=function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return t}return 0}(t);window.document.documentElement.scroll(0,n-100)}}}),[e.initialAnchorIndex,e.initialReadingProgress,d]),(0,s.useEffect)((function(){var e,t;"function"==typeof(null===(e=window)||void 0===e||null===(t=e.MathJax)||void 0===t?void 0:t.typeset)&&window.MathJax.typeset(),Array.from(document.getElementsByClassName("tweet-placeholder")).forEach((function(e){(0,c.render)((0,De.jsx)(nt,{tweetId:e.getAttribute("data-tweet-id")||"",options:{theme:Dn()?"dark":"light",align:"center"}}),e)}))}),[]);var m=(0,s.useCallback)((function(){var e,t=null===(e=p.current)||void 0===e?void 0:e.querySelectorAll("img");null==t||t.forEach((function(e){g(e,p.current)}))}),[g]);return(0,s.useEffect)((function(){return window.addEventListener("load",m),function(){window.removeEventListener("load",m)}}),[m]),(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/".concat(t,".min.css")}),(0,De.jsx)(Fe,{ref:p,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}})]})}var Hn=he("p",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"120%",color:"$grayTextContrast",variants:{style:{body:{fontSize:"$2",lineHeight:"1.25"},logoTitle:{fontFamily:"Inter",fontWeight:700,fontSize:"18px",textTransform:"uppercase",letterSpacing:"0.15em"},bodyBold:{fontWeight:"bold",fontSize:"$2",lineHeight:"1.25"},recommendedByline:{fontSize:"13.5px",paddingTop:"4px",mt:"0px",mb:"24px",color:"$grayText"},userName:{fontWeight:"600",fontSize:"13.5px",paddingTop:"4px",my:"6px",color:"$grayText"},userNote:{fontSize:"16px",paddingTop:"0px",marginTop:"0px",lineHeight:"1.5",color:"$grayTextContrast"},headline:{fontSize:"$4","@md":{fontSize:"$6"}},fixedHeadline:{fontSize:"24px",fontWeight:"500"},subHeadline:{fontSize:"24px",fontWeight:"500"},boldHeadline:{fontWeight:"bold",fontSize:"$4","@md":{fontSize:"$6"},margin:0},modalHeadline:{fontWeight:"500",fontSize:"24px",lineHeight:"1",color:"$grayText",margin:0},modalTitle:{fontSize:"16px",fontWeight:"600",color:"$grayText",lineHeight:"1.50",margin:0},boldText:{fontWeight:"600",fontSize:"16px",lineHeight:"1",color:"$textDefault"},shareHighlightModalAnnotation:{fontSize:"18px",lineHeight:"23.4px",color:"$utilityTextSubtle",m:0},footnote:{fontSize:"$1"},shareTitle:{fontSize:"$1",fontWeight:"600",color:"$grayText"},shareSubtitle:{fontSize:"$1",color:"$grayText"},listTitle:{fontSize:"16px",fontWeight:"500",color:"$grayTextContrast",lineHeight:"1.5",wordBreak:"break-word"},caption:{color:"$grayText",fontSize:"12px",lineHeight:"1.5",wordBreak:"break-word"},captionLink:{fontSize:"$2",textDecoration:"underline",lineHeight:"1.5",cursor:"pointer"},action:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5"},actionLink:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5",textDecoration:"underline",cursor:"pointer"},navLink:{m:0,fontSize:"$1",fontWeight:400,color:"$graySolid",cursor:"pointer","&:hover":{opacity:.7}},controlButton:{color:"$grayText",fontWeight:"500",fontFamily:"inter",fontSize:"14px"},menuTitle:{pt:"0px",m:"0px",color:"$utilityTextDefault",fontSize:16,fontFamily:"inter",fontWeight:"500",lineHeight:"unset"},libraryHeader:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"$textSubtle"},error:{color:"$error",fontSize:"$2",lineHeight:"1.25"}}},defaultVariants:{style:"footnote"}});function Un(e){var t,n=e.style||"footnote",r=function(e,t){var n=new URL(e).origin,r=Vn(e);if(t){var o="".concat(function(e){return"by ".concat("string"==typeof(t=e)?t.replace(/(<([^>]+)>)/gi,""):"");var t}(t));return r?o:"".concat(o,", ").concat(new URL(e).hostname)}if(!r)return n}(e.href,e.author);return(0,De.jsx)(Fe,{children:(0,De.jsxs)(Hn,{style:n,css:{wordBreak:"break-word"},children:[r," ",r&&(0,De.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(t=e.rawDisplayDate,new Intl.DateTimeFormat("en-US",{dateStyle:"long"}).format(new Date(t)))," ",!e.hideButton&&!Vn(e.href)&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(0,De.jsx)($e,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})]})]})})}function Vn(e){var t=new URL(e).origin;return-1!=["https://storage.googleapis.com","https://omnivore.app"].indexOf(t)}he("span",Hn),he("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("img",{}),he("a",{textDecoration:"none"}),he("mark",{});var qn=o(1427);function Gn(e,t){for(var n=0,r=e.length-1;n=e[l+1]))return l;n=l+1}}throw new Error("Unable to find text node")}var Xn="omnivore-highlight-id",Kn="omnivore-highlight-note-id",Yn="omnivore_highlight",Zn="article-container",Qn=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,Jn=new RegExp("<".concat(Yn,">([\\s\\S]*)<\\/").concat(Yn,">"),"i"),er=2e3;function tr(e,t,n,r,o){var i,a=ar({patch:e}),l=a.prefix,s=a.suffix,u=a.highlightTextStart,c=a.highlightTextEnd,d=a.textNodes,f=a.textNodeIndex,p="";if(sr(t).length)return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c};for(var h=function(){var e=lr({textNodes:d,startingTextNodeIndex:f,highlightTextStart:u,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,h=a.parentNode,g=a.nextSibling,m=!1,v=a instanceof HTMLElement?a:a.parentElement;v&&(m=window.getComputedStyle(v).whiteSpace.startsWith("pre")),null==h||h.removeChild(a),l.forEach((function(e,a){var l=e.highlight,u=e.text,c=m?u:u.replace(/\n/g,""),d=document.createTextNode(c);if(l){c&&(s&&!a&&p&&(p+="\n"),p+=c);var f=document.createElement("span");return f.className=n?"highlight_with_note":"highlight",f.setAttribute(Xn,t),r&&f.setAttribute("style","background-color: ".concat(r," !important")),o&&f.setAttribute("title",o),f.appendChild(d),i=f,null==h?void 0:h.insertBefore(f,g)}return null==h?void 0:h.insertBefore(d,g)})),f++};c>d[f].startIndex;)h();if(n&&i){i.classList.add("last_element");var g=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("viewBox","0 0 14 14"),t.setAttribute("width","14"),t.setAttribute("height","14"),t.setAttribute("fill","none");var n=document.createElementNS(e,"path");return n.setAttribute("d","M1 5.66602C1 3.7804 1 2.83759 1.58579 2.2518C2.17157 1.66602 3.11438 1.66602 5 1.66602H9C10.8856 1.66602 11.8284 1.66602 12.4142 2.2518C13 2.83759 13 3.7804 13 5.66602V7.66601C13 9.55163 13 10.4944 12.4142 11.0802C11.8284 11.666 10.8856 11.666 9 11.666H4.63014C4.49742 11.666 4.43106 11.666 4.36715 11.6701C3.92582 11.6984 3.50632 11.8722 3.17425 12.1642C3.12616 12.2065 3.07924 12.2534 2.98539 12.3473V12.3473C2.75446 12.5782 2.639 12.6937 2.55914 12.7475C1.96522 13.1481 1.15512 12.8125 1.01838 12.1093C1 12.0148 1 11.8515 1 11.5249V5.66602Z"),n.setAttribute("stroke","rgba(255, 210, 52, 0.8)"),n.setAttribute("stroke-width","1.8"),n.setAttribute("stroke-linejoin","round"),t.appendChild(n),t}();g.setAttribute(Kn,t);var m=document.createElement("div");m.className="highlight_note_button",m.appendChild(g),m.setAttribute(Kn,t),m.setAttribute("width","14px"),m.setAttribute("height","14px"),i.appendChild(m)}return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c}}function nr(e){var t=document.getElementById(Zn);if(!t)throw new Error("Unable to find article content element");var n=new Range,r=new Range,o=new Range;o.selectNode(t),n.setStart(o.startContainer,o.startOffset),n.setEnd(e.startContainer,e.startOffset),r.setStart(e.endContainer,e.endOffset),r.setEnd(o.endContainer,o.endOffset);var i="".concat(n.toString(),"<").concat(Yn,">").concat(e.toString(),"").concat(Yn,">").concat(r.toString()),a=new qn.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function rr(e){var t=nr(e),n=ir(t);return[n.highlightTextStart,n.highlightTextEnd]}var or=function(e){var t=(null==e?void 0:e.current)||document.getElementById(Zn);if(!t)throw new Error("Unable to find article content element");var n=0,r="",o=!1,i=[];return t.childNodes.forEach((function e(t){var a;t.nodeType===Node.TEXT_NODE?(i.push({startIndex:n,node:t,startsParagraph:o}),n+=(null===(a=t.nodeValue)||void 0===a?void 0:a.length)||0,r+=t.nodeValue,o=!1):(Qn.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},ir=function(e){if(!e)throw new Error("Invalid patch");var t,n=or().articleText,r=new qn.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=Jn.exec(o[0]);else{r.Match_Threshold=.5,r.Match_Distance=4e3;var i=r.patch_apply(r.patch_fromText(e),n);if(!i[1][0])throw new Error("Unable to find the highlight");t=Jn.exec(i[0])}if(!t)throw new Error("Unable to find the highlight from patch");var a=t.index;return{highlightTextStart:a,highlightTextEnd:a+t[1].length,matchingHighlightContent:t}};function ar(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=or().textNodes,r=ir(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=Gn(n.map((function(e){return e.startIndex})),o),l=Gn(n.map((function(e){return e.startIndex})),i);return{prefix:ur({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:ur({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var lr=function(e){var t=e.textNodes,n=e.startingTextNodeIndex,r=e.highlightTextStart,o=e.highlightTextEnd,i=t[n],a=i.node,l=i.startIndex,s=i.startsParagraph,u=a.nodeValue||"",c=r-l,d=o-l,f=[];return c>0&&f.push({text:u.substring(0,c),highlight:!1}),f.push({text:u.substring(c,d),highlight:!0}),d<=u.length&&f.push({text:u.substring(d),highlight:!1}),{node:a,textPartsToHighlight:f,startsParagraph:s}},sr=function(e){return Array.from(document.querySelectorAll("[".concat(Xn,"='").concat(e,"']")))},ur=function(e){var t,n=e.textNodes,r=e.startingTextNodeIndex,o=e.startingOffset,i="prefix"===e.side,a=r,l=function e(){var t=n[a+=i?-1:1],r=t.node,o=t.startsParagraph,l=r.nodeValue||"";return i?o||l.length>er?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>er?l:l+e()},s=n[r],u=s.startsParagraph,c=s.node.nodeValue||"",d=i?c.substring(0,o):c.substring(o);return(t=i?u?d:l()+d:!n[a+1]||n[a+1].startsParagraph?d:d+l()).length<=er?t:i?t.slice(t.length-er):t.substring(0,er)},cr=function(e){var t=ar({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<2e3};function dr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function fr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){dr(i,r,o,a,l,"next",e)}function l(e){dr(i,r,o,a,l,"throw",e)}a(void 0)}))}}function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&a<=0,s=o.startContainer===t.focusNode&&o.endOffset===t.anchorOffset,e.abrupt("return",l?{range:o,isReverseSelected:s,selection:t}:void 0);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"==typeof window||!e)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var n=e.getClientRects();if(!n||!n.length)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var r=n[t?0:n.length-1];return{left:window.scrollX+r.left,top:window.scrollY+r.top,right:window.scrollX+r.right,bottom:window.scrollY+r.bottom,width:r.width,height:r.height}};function yr(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function br(){return navigator.userAgent.includes("Android")}function wr(){return br()||yr()}var xr=he("button",{fontFamily:"inter",fontSize:"$2",lineHeight:"1.25",color:"$grayText",variants:{style:{ctaYellow:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $yellow3",bg:"$yellow3","&:hover":{bg:"$yellow4",border:"1px solid $grayBorderHover"}},ctaDarkYellow:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$omnivoreCtaYellow",p:"10px 13px"},ctaOutlineYellow:{boxSizing:"border-box","-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",borderColor:"unset",border:"1px solid $omnivoreCtaYellow",fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$utilityTextDefault",bg:"transparent",p:"9px 12px"},ctaLightGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$grayTextContrast",p:"10px 12px",bg:"rgb(125, 125, 125, 0.1)","&:hover":{bg:"rgb(47, 47, 47, 0.1)",".ctaButtonIcon":{visibility:"visible"}},".ctaButtonIcon":{visibility:"hidden"}},ctaGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$grayBgActive",p:"10px 12px"},ctaWhite:{borderRadius:"$3",px:"$3",py:"$2",cursor:"pointer",border:"1px solid $grayBgSubtle",bg:"$grayBgSubtle","&:hover":{border:"1px solid $grayBorderHover"}},modalOption:{style:"ghost",height:"52px",width:"100%",textAlign:"left",verticalAlign:"middle",color:"#0A0806",backgroundColor:"unset",outlineColor:"rgba(0, 0, 0, 0)",border:"1px solid rgba(0, 0, 0, 0.06)",cursor:"pointer","&:focus":{outline:"none"}},ctaModal:{height:"32px",verticalAlign:"middle",color:"$textDefault",backgroundColor:"$grayBase",fontWeight:"600",padding:"0px 12px",fontSize:"16px",border:"1px solid $grayBorder",cursor:"pointer",borderRadius:"8px","&:focus":{outline:"none"}},ctaSecondary:{color:"$grayText",border:"none",bg:"transparent","&:hover":{opacity:.8}},ctaPill:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $grayBorder",bg:"$grayBgActive","&:hover":{bg:"$grayBgHover",border:"1px solid $grayBorderHover"}},circularIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,borderRadius:"50%",justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",opacity:.9,"&:hover":{opacity:1}},squareIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",borderRight:"1px solid $grayText",opacity:.9,"&:hover":{opacity:1}},plainIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.8}},articleActionIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.8}},ghost:{color:"transparent",border:"none",bg:"transparent",cursor:"pointer","&:hover":{opacity:.8}},themeSwitch:{p:"0px",m:"0px",ml:"0px",width:"60px",height:"48px",fontSize:"14px",border:"unset",borderRadius:"6px","&:hover":{transform:"scale(1.1)",border:"2px solid #F9D354"},'&[data-state="selected"]':{border:"2px solid #F9D354"}}}},defaultVariants:{style:"ctaWhite"}});function kr(e){return e.color,e.height,e.width,(0,De.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,De.jsx)("path",{d:"M4.5 20.25H8.68934C8.78783 20.25 8.88536 20.2306 8.97635 20.1929C9.06735 20.1552 9.15003 20.1 9.21967 20.0303L18 11.25L12.75 6.00001L3.96967 14.7803C3.90003 14.85 3.84478 14.9327 3.80709 15.0237C3.80379 15.0316 3.80063 15.0396 3.79761 15.0477C3.76615 15.1317 3.75 15.2208 3.75 15.3107V19.5C3.75 19.6989 3.82902 19.8897 3.96967 20.0303C4.11032 20.171 4.30109 20.25 4.5 20.25Z",fill:"#FFD234"}),(0,De.jsx)("path",{d:"M15.2197 3.53034L12.75 6.00001L18 11.25L20.4697 8.78034C20.6103 8.63969 20.6893 8.44892 20.6893 8.25001C20.6893 8.0511 20.6103 7.86033 20.4697 7.71968L16.2803 3.53034C16.1397 3.38969 15.9489 3.31067 15.75 3.31067C15.5511 3.31067 15.3603 3.38969 15.2197 3.53034Z",fill:"#FFD234"}),(0,De.jsx)("path",{d:"M8.68934 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V15.3107C3.75 15.2122 3.7694 15.1147 3.80709 15.0237C3.84478 14.9327 3.90003 14.85 3.96967 14.7803L15.2197 3.53034C15.3603 3.38969 15.5511 3.31067 15.75 3.31067C15.9489 3.31067 16.1397 3.38969 16.2803 3.53034L20.4697 7.71968C20.6103 7.86033 20.6893 8.0511 20.6893 8.25001C20.6893 8.44892 20.6103 8.63969 20.4697 8.78034L9.21967 20.0303C9.15003 20.1 9.06735 20.1552 8.97635 20.1929C8.88536 20.2306 8.78783 20.25 8.68934 20.25Z",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M12.75 6L18 11.25",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M8.95223 20.2021L3.79785 15.0477",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}he(xr,{variants:{style:{ctaWhite:{color:"red",padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid $grayBorder",boxSizing:"border-box",borderRadius:6,width:40,height:40}}}});var Er=(0,s.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Sr=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function _r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Or=(0,s.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,a=e.mirrored,l=e.children,u=e.renderPath,c=_r(e,["alt","color","size","weight","mirrored","children","renderPath"]),d=(0,s.useContext)(Er),f=d.color,p=void 0===f?"currentColor":f,h=d.size,g=d.weight,m=void 0===g?"regular":g,v=d.mirrored,y=void 0!==v&&v,b=_r(d,["color","size","weight","mirrored"]);return s.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=o?o:h,height:null!=o?o:h,fill:null!=r?r:p,viewBox:"0 0 256 256",transform:a||y?"scale(-1, 1)":void 0},b,c),!!n&&s.createElement("title",null,n),l,s.createElement("rect",{width:"256",height:"256",fill:"none"}),u(null!=i?i:m,null!=r?r:p))}));Or.displayName="IconBase";const Cr=Or;var Lr=new Map;Lr.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M200,60V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M168,60V36a16,16,0,0,0-16-16H104A16,16,0,0,0,88,36V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Lr.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Lr.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M216,48H176V40a24.1,24.1,0,0,0-24-24H104A24.1,24.1,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))})),Lr.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Lr.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Lr.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var jr=function(e,t){return Sr(e,t,Lr)},Pr=(0,s.forwardRef)((function(e,t){return s.createElement(Cr,Object.assign({ref:t},e,{renderPath:jr}))}));Pr.displayName="Trash";const Rr=Pr;var Tr=new Map;Tr.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"108",x2:"160",y2:"108",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"96",y1:"148",x2:"116",y2:"148",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("polyline",{points:"215.3 156 156 156 156 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Tr.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("polygon",{points:"216 160 160 160 160 216 216 160",opacity:"0.2"}),s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Tr.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.7a15.9,15.9,0,0,0,11.3-4.7L219.3,168a15.9,15.9,0,0,0,4.7-11.3V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.7V160h44.7Z"}))})),Tr.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Tr.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Tr.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Ar=function(e,t){return Sr(e,t,Tr)},Mr=(0,s.forwardRef)((function(e,t){return s.createElement(Cr,Object.assign({ref:t},e,{renderPath:Ar}))}));Mr.displayName="Note";const Ir=Mr;function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=(Gr[e[t+0]]+Gr[e[t+1]]+Gr[e[t+2]]+Gr[e[t+3]]+"-"+Gr[e[t+4]]+Gr[e[t+5]]+"-"+Gr[e[t+6]]+Gr[e[t+7]]+"-"+Gr[e[t+8]]+Gr[e[t+9]]+"-"+Gr[e[t+10]]+Gr[e[t+11]]+Gr[e[t+12]]+Gr[e[t+13]]+Gr[e[t+14]]+Gr[e[t+15]]).toLowerCase();if(!qr(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let Yr=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function Zr(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=!!e.toString().match(/[\u1C88\u3131-\uD79D]/gi),o=r?e.startOffset:Jr(e.startOffset,!1,t),i=r?e.endOffset:Jr(e.endOffset,!0,n);try{e.setStart(e.startContainer,o),e.setEnd(e.endContainer,i)}catch(e){console.warn("Unable to snap selection to the next word")}}var Qr=function(e){return!!e&&/\u2014|\u2013|,|\s/.test(e)};function Jr(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(Qr(r[o-1]))return o-1;for(;o0;){if(Qr(r[o-1]))return o;o--}}return o}function eo(e){return function(e){if(Array.isArray(e))return to(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return to(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?to(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,o=t.selection,i=o.range,a=o.selection,Zr(i),l=Kr(),s=nr(i),cr(s)){e.next=9;break}return e.abrupt("return",{errorMessage:"Highlight is too long"});case 9:if(a.isCollapsed||a.collapseToStart(),u=[],t.annotation&&u.push(t.annotation),r&&(t.selection.overlapHighlights.forEach((function(e){var n=t.existingHighlights.find((function(t){return t.id===e})),r=null==n?void 0:n.annotation;r&&u.push(r)})),Br(t.selection.overlapHighlights,t.highlightStartEndOffsets)),c=tr(s,l,u.length>0),d={prefix:c.prefix,suffix:c.suffix,quote:c.quote,id:l,shortId:Yr(8),patch:s,annotation:u.length>0?u.join("\n"):void 0,articleId:t.articleId},p=t.existingHighlights,!r){e.next=23;break}return e.next=19,n.mergeHighlightMutation(ro(ro({},d),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 19:f=e.sent,p=t.existingHighlights.filter((function(e){return!t.selection.overlapHighlights.includes(e.id)})),e.next=26;break;case 23:return e.next=25,n.createHighlightMutation(d);case 25:f=e.sent;case 26:if(!f){e.next=31;break}return h=[].concat(eo(p),[f]),e.abrupt("return",{highlights:h,newHighlightIndex:h.length>0?h.length-1:void 0});case 31:return e.abrupt("return",{highlights:t.existingHighlights,errorMessage:"Could not create highlight"});case 32:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uo(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function co(...e){return s.useCallback(uo(...e),e)}const fo=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.Children.toArray(n).some(go)?s.createElement(s.Fragment,null,s.Children.map(n,(e=>go(e)?s.createElement(po,Ee({},r,{ref:t}),e.props.children):e))):s.createElement(po,Ee({},r,{ref:t}),n)}));fo.displayName="Slot";const po=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...mo(r,n.props),ref:uo(t,n.ref)}):s.Children.count(n)>1?s.Children.only(null):null}));po.displayName="SlotClone";const ho=({children:e})=>s.createElement(s.Fragment,null,e);function go(e){return s.isValidElement(e)&&e.type===ho}function mo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var vo=new WeakMap,yo=new WeakMap,bo={},wo=0,xo=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];bo[n]||(bo[n]=new WeakMap);var o=bo[n],i=[],a=new Set,l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};r.forEach(l);var s=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))s(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,l=(vo.get(e)||0)+1,u=(o.get(e)||0)+1;vo.set(e,l),o.set(e,u),i.push(e),1===l&&r&&yo.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),wo++,function(){i.forEach((function(e){var t=vo.get(e)-1,r=o.get(e)-1;vo.set(e,t),o.set(e,r),t||(yo.has(e)||e.removeAttribute("aria-hidden"),yo.delete(e)),r||e.removeAttribute(n)})),--wo||(vo=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo={})}},ko=function(){return ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$o=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"range"===e.type||"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Bo=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Wo=!1;if("undefined"!=typeof window)try{var Ho=Object.defineProperty({},"passive",{get:function(){return Wo=!0,!0}});window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch(e){Wo=!1}var Uo=!!Wo&&{passive:!1},Vo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qo=function(e){return[e.deltaX,e.deltaY]},Go=function(e){return e&&"current"in e?e.current:e},Xo=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Ko=0,Yo=[];const Zo=(Qo=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(Ko++)[0],i=s.useState((function(){return To()}))[0],a=s.useRef(e);s.useEffect((function(){a.current=e}),[e]),s.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Go)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Vo(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v",f=zo(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=zo(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,l=t.contains(a),s=!1,u=i>0,c=0,d=0;do{var f=Bo(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&$o(e,a)&&(c+=h,d+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(0===c||!1)||!u&&(0===d||!1))&&(s=!0),s}(p,t,e,"h"===p?s:u)}),[]),u=s.useCallback((function(e){var n=e;if(Yo.length&&Yo[Yo.length-1]===i){var r="deltaY"in n?qo(n):Vo(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Go).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),c=s.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=s.useCallback((function(e){n.current=Vo(e),r.current=void 0}),[]),f=s.useCallback((function(t){c(t.type,qo(t),t.target,l(t,e.lockRef.current))}),[]),p=s.useCallback((function(t){c(t.type,Vo(t),t.target,l(t,e.lockRef.current))}),[]);s.useEffect((function(){return Yo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Uo),document.addEventListener("touchmove",u,Uo),document.addEventListener("touchstart",d,Uo),function(){Yo=Yo.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Uo),document.removeEventListener("touchmove",u,Uo),document.removeEventListener("touchstart",d,Uo)}}),[]);var h=e.removeScrollBar,g=e.inert;return s.createElement(s.Fragment,null,g?s.createElement(i,{styles:Xo(o)}):null,h?s.createElement(Fo,{gapMode:"margin"}):null)},Co.useMedium(Qo),Po);var Qo,Jo=s.forwardRef((function(e,t){return s.createElement(jo,ko({},e,{ref:t,sideCar:Zo}))}));Jo.classNames=jo.classNames;const ei=Jo;let ti=0;function ni(){s.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ri()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ri()),ti++,()=>{1===ti&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ti--}}),[])}function ri(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const oi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?fo:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),s.createElement(i,Ee({},o,{ref:n}))}))})),{}),ii=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?s.useLayoutEffect:()=>{},ai=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=s.useState(),r=s.useRef({}),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[l,u]=function(e,t){return s.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect((()=>{const e=li(r.current);i.current="mounted"===l?e:"none"}),[l]),ii((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=li(t);if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{const e=r!==a;u(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),ii((()=>{if(t){const e=e=>{const n=li(r.current).includes(e.animationName);e.target===t&&n&&u("ANIMATION_END")},n=e=>{e.target===t&&(i.current=li(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),i=co(r.ref,o.ref);return"function"==typeof n||r.isPresent?s.cloneElement(o,{ref:i}):null};function li(e){return(null==e?void 0:e.animationName)||"none"}function si(e){const t=s.useRef(e);return s.useEffect((()=>{t.current=e})),s.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}ai.displayName="Presence";const ui={bubbles:!1,cancelable:!0},ci=s.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=s.useState(null),c=si(o),d=si(i),f=s.useRef(null),p=co(t,(e=>u(e))),h=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:hi(f.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||hi(f.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),s.useEffect((()=>{if(l){gi.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new Event("focusScope.autoFocusOnMount",ui);l.addEventListener("focusScope.autoFocusOnMount",c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hi(r,{select:t}),document.activeElement!==n)return}(di(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&hi(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",ui);l.addEventListener("focusScope.autoFocusOnUnmount",d),l.dispatchEvent(t),t.defaultPrevented||hi(null!=e?e:document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",d),gi.remove(h)}),0)}}}),[l,c,d,h]);const g=s.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=di(e);return[fi(t,e),fi(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&hi(i,{select:!0})):(e.preventDefault(),n&&hi(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return s.createElement(oi.div,Ee({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function di(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fi(e,t){for(const n of e)if(!pi(n,{upTo:t}))return n}function pi(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function hi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const gi=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=mi(e,t),e.unshift(t)},remove(t){var n;e=mi(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function mi(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function vi(e){const t=si(e);s.useEffect((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}let yi,bi=0;function wi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const xi=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ki=s.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...u}=e,c=s.useContext(xi),[d,f]=s.useState(null),[,p]=s.useState({}),h=co(t,(e=>f(e))),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=d?g.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e){const t=si((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));w&&!n&&(null==o||o(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!n.current&&Si("dismissableLayer.pointerDownOutside",t,{originalEvent:e}),n.current=!1},r=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}(),k=function(e){const t=si((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!n.current&&Si("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}();return vi((e=>{y===c.layers.size-1&&(null==r||r(e),e.defaultPrevented||null==l||l())})),function({disabled:e}){const t=s.useRef(!1);ii((()=>{if(e){function n(){bi--,0===bi&&(document.body.style.pointerEvents=yi)}function r(e){t.current="mouse"!==e.pointerType}return 0===bi&&(yi=document.body.style.pointerEvents),document.body.style.pointerEvents="none",bi++,document.addEventListener("pointerup",r),()=>{t.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",r)}}}),[e])}({disabled:n}),s.useEffect((()=>{d&&(n&&c.layersWithOutsidePointerEventsDisabled.add(d),c.layers.add(d),Ei())}),[d,n,c]),s.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ei())}),[d,c]),s.useEffect((()=>{const e=()=>p({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),s.createElement(oi.div,Ee({},u,{ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:wi(e.onFocusCapture,k.onFocusCapture),onBlurCapture:wi(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wi(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Ei(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Si(e,t,n){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return t&&r.addEventListener(e,t,{once:!0}),!r.dispatchEvent(o)}function _i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,o=s.useRef(r),i=si(t);return s.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=si(n);return[a,s.useCallback((t=>{if(i){const n=t,r="function"==typeof t?n(e):t;r!==e&&l(r)}else o(t)}),[i,e,o,l])]}const Oi=u["useId".toString()]||(()=>{});let Ci=0;function Li(e){const[t,n]=s.useState(Oi());return ii((()=>{e||n((e=>null!=e?e:String(Ci++)))}),[e]),e||(t?`radix-${t}`:"")}function ji(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>s.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return s.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=s.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,u=s.useMemo((()=>a),Object.values(a));return s.createElement(l.Provider,{value:u},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,u=s.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Pi(r,...t)]}function Pi(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return s.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const[Ri,Ti]=ji("Dialog"),[Ai,Mi]=Ri("Dialog"),Ii=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Mi("DialogOverlay",e.__scopeDialog);return o.modal?s.createElement(ai,{present:n||o.open},s.createElement(Di,Ee({},r,{ref:t}))):null})),Di=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mi("DialogOverlay",n);return s.createElement(ei,{as:fo,allowPinchZoom:o.allowPinchZoom,shards:[o.contentRef]},s.createElement(oi.div,Ee({"data-state":Bi(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Ni=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Mi("DialogContent",e.__scopeDialog);return s.createElement(ai,{present:n||o.open},o.modal?s.createElement(Fi,Ee({},r,{ref:t})):s.createElement(zi,Ee({},r,{ref:t})))})),Fi=s.forwardRef(((e,t)=>{const n=Mi("DialogContent",e.__scopeDialog),r=s.useRef(null),o=co(t,n.contentRef,r);return s.useEffect((()=>{const e=r.current;if(e)return xo(e)}),[]),s.createElement($i,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wi(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:wi(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:wi(e.onFocusOutside,(e=>e.preventDefault()))}))})),zi=s.forwardRef(((e,t)=>{const n=Mi("DialogContent",e.__scopeDialog),r=s.useRef(!1);return s.createElement($i,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),$i=s.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Mi("DialogContent",n),u=co(t,s.useRef(null));return ni(),s.createElement(s.Fragment,null,s.createElement(ci,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},s.createElement(ki,Ee({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Bi(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function Bi(e){return e?"open":"closed"}const[Wi,Hi]=function(e,t){const n=s.createContext(t);function r(e){const{children:t,...r}=e,o=s.useMemo((()=>r),Object.values(r));return s.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=s.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"}),Ui=Ii,Vi=Ni;var qi=new Map;qi.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),qi.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),qi.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"}))})),qi.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),qi.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),qi.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Gi=function(e,t){return Sr(e,t,qi)},Xi=(0,s.forwardRef)((function(e,t){return s.createElement(Cr,Object.assign({ref:t},e,{renderPath:Gi}))}));Xi.displayName="X";const Ki=Xi;var Yi,Zi,Qi=he((e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0,allowPinchZoom:l}=e,u=s.useRef(null),c=s.useRef(null),[d=!1,f]=_i({prop:r,defaultProp:o,onChange:i});return s.createElement(Ai,{scope:t,triggerRef:u,contentRef:c,contentId:Li(),titleId:Li(),descriptionId:Li(),open:d,onOpenChange:f,onOpenToggle:s.useCallback((()=>f((e=>!e))),[f]),modal:a,allowPinchZoom:l},n)}),{}),Ji=ve({"0%":{opacity:0},"100%":{opacity:1}}),ea=he(Ui,{backgroundColor:"$overlay",width:"100vw",height:"100vh",position:"fixed",inset:0,"@media (prefers-reduced-motion: no-preference)":{animation:"".concat(Ji," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}}),ta=he(Vi,{backgroundColor:"$grayBg",borderRadius:6,boxShadow:ge.shadows.cardBoxShadow.toString(),position:"fixed","&:focus":{outline:"none"},zIndex:"1"}),na=he(ta,{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90vw",maxWidth:"450px",maxHeight:"85vh","@smDown":{maxWidth:"95%",width:"95%"},zIndex:"10"}),ra=function(e){return(0,De.jsxs)(We,{distribution:"between",alignment:"center",css:{height:"68px",width:"100%"},children:[(0,De.jsx)(Hn,{style:"modalHeadline",children:e.title}),(0,De.jsx)(xr,{css:{ml:"auto"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,De.jsx)(Ki,{size:24,color:ge.colors.textNonessential.toString()})})]})},oa=function(e){return(0,De.jsxs)(We,{alignment:"center",distribution:"end",css:{gap:"10px",width:"100%",height:"80px","input:focus":{outline:"5px auto -webkit-focus-ring-color"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"}},children:[(0,De.jsx)(xr,{style:"ctaOutlineYellow",type:"button",onClick:function(t){t.preventDefault(),e.onOpenChange(!1)},children:"Cancel"}),(0,De.jsx)(xr,{style:"ctaDarkYellow",children:e.acceptButtonLabel||"Submit"})]})},ia=he("textarea",{outline:"none",border:"none",overflow:"auto",resize:"none",background:"unset",color:"$grayText",fontSize:"$3",fontFamily:"inter",lineHeight:"1.35","&::placeholder":{opacity:.7}});function aa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function la(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function sa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){la(i,r,o,a,l,"next",e)}function l(e){la(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ua(e){return ca.apply(this,arguments)}function ca(){return ca=sa(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,rt.gql)(Yi||(Yi=aa(["\n mutation UpdateHighlight($input: UpdateHighlightInput!) {\n updateHighlight(input: $input) {\n ... on UpdateHighlightSuccess {\n highlight {\n id\n }\n }\n\n ... on UpdateHighlightError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,bn(n,{input:t});case 4:return r=e.sent,o=r,e.abrupt("return",null==o?void 0:o.updateHighlight.highlight.id);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),ca.apply(this,arguments)}he(ia,{borderRadius:"6px",border:"1px solid $grayBorder",p:"$3",fontSize:"$1"}),function(e){e[e.SET_KEY_DOWN=0]="SET_KEY_DOWN",e[e.SET_KEY_UP=1]="SET_KEY_UP"}(Zi||(Zi={}));let da,fa,pa,ha={data:""},ga=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ha,ma=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,va=/\/\*[^]*?\*\/|\s\s+|\n/g,ya=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?ya(a,i):i+"{"+ya(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=ya(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ya.p?ya.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ba={},wa=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+wa(e[n]);return t}return e},xa=(e,t,n,r,o)=>{let i=wa(e),a=ba[i]||(ba[i]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(i));if(!ba[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=ma.exec(e.replace(va,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);ba[a]=ya(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(ba[a],t,r),a},ka=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":ya(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ea(e){let t=this||{},n=e.call?e(t.p):e;return xa(n.unshift?n.raw?ka(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,ga(t.target),t.g,t.o,t.k)}function Sa(){return Sa=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2],r=(0,s.useCallback)((function(r){var o=r.key.toLowerCase();if(e&&"enter"===o){if(n&&!r.metaKey&&!r.ctrlKey)return;e()}else t&&"escape"===o&&t()}),[t,e]);(0,s.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keydown",r),function(){window.removeEventListener("keydown",r)}}),[r])}((function(){h()}),void 0,!0),e.highlight&&(c=null===(r=e.highlight)||void 0===r?void 0:r.updatedAt,d="Updated ",(f=Math.ceil((new Date).valueOf()-new Date(c).valueOf())/1e3)<60?"".concat(d," a few seconds ago"):f<3600?"".concat(d," ").concat(Math.floor(f/60)," minutes ago"):f<86400?"".concat(d," ").concat(Math.floor(f/3600)," hours ago"):f<604800?"".concat(d," ").concat(Math.floor(f/86400)," days ago"):f<2592e3?"".concat(d," ").concat(Math.floor(f/604800)," weeks ago"):f<31536e3?"".concat(d," ").concat(Math.floor(f/2592e3)," months ago"):f<31536e4?"".concat(d," ").concat(Math.floor(f/31536e3)," years ago"):f<31536e5&&"".concat(d," ").concat(Math.floor(f/31536e4)," decades ago"));var c,d,f,p=(0,s.useCallback)((function(e){u(e.target.value)}),[u]),h=(0,s.useCallback)(ol(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l==(null===(n=e.highlight)||void 0===n?void 0:n.annotation)||null===(r=e.highlight)||void 0===r||!r.id){t.next=5;break}return t.next=3,ua({highlightId:null===(o=e.highlight)||void 0===o?void 0:o.id,annotation:l});case 3:t.sent?(e.onUpdate(tl(tl({},e.highlight),{},{annotation:l})),e.onOpenChange(!1)):Ja("Error updating your note",{position:"bottom-right"});case 5:if(e.highlight||!e.createHighlightForNote){t.next=12;break}return t.next=8,e.createHighlightForNote(l);case 8:t.sent?e.onOpenChange(!0):Ja("Error saving highlight",{position:"bottom-right"}),t.next=13;break;case 12:e.onOpenChange(!1);case 13:case"end":return t.stop()}}),t)}))),[l,e]);return(0,De.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,De.jsx)(ea,{}),(0,De.jsx)(na,{css:{bg:"$grayBg",px:"24px"},onPointerDownOutside:function(e){e.preventDefault()},children:(0,De.jsx)("form",{onSubmit:function(t){t.preventDefault(),h(),e.onOpenChange(!1)},children:(0,De.jsxs)(He,{children:[(0,De.jsx)(ra,{title:"Notes",onOpenChange:e.onOpenChange}),(0,De.jsx)(ia,{css:{mt:"16px",p:"6px",width:"100%",height:"248px",fontSize:"14px",border:"1px solid $textNonessential",borderRadius:"6px"},autoFocus:!0,placeholder:"Add your note here",value:l,onChange:p,maxLength:4e3}),(0,De.jsx)(oa,{onOpenChange:e.onOpenChange,acceptButtonLabel:"Save"})]})})})]})}function ll(e,t,n){return Math.min(Math.max(e,n),t)}class sl extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ul=sl;function cl(e){if("string"!=typeof e)throw new ul(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=yl.test(e)?function(e){const t=e.toLowerCase().trim(),n=fl[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new ul(e);return`#${n}`}(e):e;const n=hl.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(pl(e,2),16))),parseInt(pl(e[3]||"f",2),16)/255]}const r=gl.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=ml.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=vl.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(ll(0,100,n)!==n)throw new ul(e);if(ll(0,100,r)!==r)throw new ul(e);return[...wl(t,n,r),o||1]}throw new ul(e)}const dl=e=>parseInt(e.replace(/_/g,""),36),fl="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const n=dl(t.substring(0,3)),r=dl(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),pl=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),hl=new RegExp(`^#${pl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gl=new RegExp(`^#${pl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ml=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vl=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,yl=/^[a-z]+$/i,bl=e=>Math.round(255*e),wl=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(bl);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);const c=r-i/2;return[l+c,s+c,u+c].map(bl)};function xl(e,t){return function(e,t){const[n,r,o,i]=function(e){const[t,n,r,o]=cl(e).map(((e,t)=>3===t?e:e/255)),i=Math.max(t,n,r),a=Math.min(t,n,r),l=(i+a)/2;if(i===a)return[0,0,l,o];const s=i-a;return[60*(t===i?(n-r)/s+(n.5?s/(2-i-a):s/(i+a),l,o]}(e);return function(e,t,n,r){return`hsla(${(e%360).toFixed()}, ${ll(0,100,100*t).toFixed()}%, ${ll(0,100,100*n).toFixed()}%, ${parseFloat(ll(0,1,r).toFixed(3))})`}(n,r,o-t,i)}(e,-t)}var kl=o(5632);function El(e){var t,n,r=(0,kl.useRouter)(),o=Dn(),i=function(e){if("transparent"===e)return 0;function t(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}const[n,r,o]=cl(e);return.2126*t(n)+.7152*t(r)+.0722*t(o)}(e.color),a=xl(e.color,.2),l=(t=e.color,[(n=parseInt(t.substring(1),16))>>16&255,n>>8&255,255&n]),s=i>.2?"rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 1)"):a,u=i>.5?"#000000":"#ffffff";return(0,De.jsx)(xr,{style:"plainIcon",onClick:function(t){r.push('/home?q=label:"'.concat(e.text,'"')),t.stopPropagation()},children:(0,De.jsx)(ze,{css:{display:"inline-table",margin:"4px",borderRadius:"4px",color:o?s:u,fontSize:"12px",fontWeight:"bold",padding:"2px 5px 2px 5px",whiteSpace:"nowrap",cursor:"pointer",backgroundClip:"padding-box",border:o?"1px solid ".concat(s):"1px solid rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 0.7)"),backgroundColor:o?"rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 0.08)"):e.color},children:e.text})})}function Sl(e){var t,n=(0,s.useMemo)((function(){return e.highlight.quote.split("\n")}),[e.highlight.quote]),r=he(Be,{margin:"0px 0px 0px 0px",fontSize:"18px",lineHeight:"27px",color:"$grayText",padding:"0px 16px",borderLeft:"2px solid $omnivoreCtaYellow"});return(0,De.jsx)(He,{css:{width:"100%",boxSizing:"border-box"},children:(0,De.jsxs)(r,{onClick:function(){e.scrollToHighlight&&e.scrollToHighlight(e.highlight.id)},children:[(0,De.jsx)(ze,{css:{p:"1px",borderRadius:"2px"},children:n.map((function(e,t){return(0,De.jsxs)(s.Fragment,{children:[e,t!==n.length-1&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("br",{}),(0,De.jsx)("br",{})]})]},t)}))}),(0,De.jsx)(Fe,{css:{display:"block",pt:"16px"},children:null===(t=e.highlight.labels)||void 0===t?void 0:t.map((function(e,t){var n=e.name,r=e.color;return(0,De.jsx)(El,{text:n||"",color:r},t)}))})]})})}function _l(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){_l(i,r,o,a,l,"next",e)}function l(e){_l(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns.createElement(oi.span,Ee({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Al=s.forwardRef(((e,t)=>{var n,r;const{containerRef:o,style:i,...a}=e,l=null!==(n=null==o?void 0:o.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body,[,u]=s.useState({});return ii((()=>{u({})}),[]),l?c.createPortal(s.createElement(oi.div,Ee({"data-radix-portal":""},a,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...i}:void 0})),l):null})),Ml=s.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s.createElement(oi.svg,Ee({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:s.createElement("polygon",{points:"0,0 30,0 15,10"}))})),Il=Ml;function Dl(e){const[t,n]=s.useState(void 0);return s.useEffect((()=>{if(e){const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else{const t=e.getBoundingClientRect();o=t.width,i=t.height}n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}let Nl;const Fl=new Map;function zl(){const e=[];Fl.forEach(((t,n)=>{const r=n.getBoundingClientRect();var o,i;i=r,((o=t.rect).width!==i.width||o.height!==i.height||o.top!==i.top||o.right!==i.right||o.bottom!==i.bottom||o.left!==i.left)&&(t.rect=r,e.push(t))})),e.forEach((e=>{e.callbacks.forEach((t=>t(e.rect)))})),Nl=requestAnimationFrame(zl)}function $l(e){const[t,n]=s.useState();return s.useEffect((()=>{if(e){const t=function(e,t){const n=Fl.get(e);return void 0===n?(Fl.set(e,{rect:{},callbacks:[t]}),1===Fl.size&&(Nl=requestAnimationFrame(zl))):(n.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Fl.get(e);if(void 0===n)return;const r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(Fl.delete(e),0===Fl.size&&cancelAnimationFrame(Nl))}}(e,n);return()=>{n(void 0),t()}}}),[e]),t}function Bl(e,t,n){const r=e["x"===n?"left":"top"],o="x"===n?"width":"height",i=e[o],a=t[o];return{before:r-a,start:r,center:r+(i-a)/2,end:r+i-a,after:r+i}}function Wl(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Hl(e,t,n,r,o){const i="top"===t||"bottom"===t,a=o?o.width:0,l=o?o.height:0,s=a/2+r;let u="",c="";return i?(u={start:`${s}px`,center:"center",end:e.width-s+"px"}[n],c="top"===t?`${e.height+l}px`:-l+"px"):(u="left"===t?`${e.width+l}px`:-l+"px",c={start:`${s}px`,center:"center",end:e.height-s+"px"}[n]),`${u} ${c}`}const Ul={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Vl={position:"absolute",opacity:0};function ql({popperSize:e,arrowSize:t,arrowOffset:n,side:r,align:o}){const i=(e.width-t.width)/2,a=(e.height-t.width)/2,l={top:0,right:90,bottom:180,left:-90}[r],s=Math.max(t.width,t.height),u={width:`${s}px`,height:`${s}px`,transform:`rotate(${l}deg)`,willChange:"transform",position:"absolute",[r]:"100%",direction:Gl(r,o)};return"top"!==r&&"bottom"!==r||("start"===o&&(u.left=`${n}px`),"center"===o&&(u.left=`${i}px`),"end"===o&&(u.right=`${n}px`)),"left"!==r&&"right"!==r||("start"===o&&(u.top=`${n}px`),"center"===o&&(u.top=`${a}px`),"end"===o&&(u.bottom=`${n}px`)),u}function Gl(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}function Xl(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Kl(e,t){return{top:e.topt.right,bottom:e.bottom>t.bottom,left:e.left{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jl("PopperAnchor",n),a=s.useRef(null),l=co(t,a);return s.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:s.createElement(oi.div,Ee({},o,{ref:l}))})),[ts,ns]=Yl("PopperContent"),rs=s.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o,align:i="center",alignOffset:a,collisionTolerance:l,avoidCollisions:u=!0,...c}=e,d=Jl("PopperContent",n),[f,p]=s.useState(),h=$l(d.anchor),[g,m]=s.useState(null),v=Dl(g),[y,b]=s.useState(null),w=Dl(y),x=co(t,(e=>m(e))),k=function(){const[e,t]=s.useState(void 0);return s.useEffect((()=>{let e;function n(){t({width:window.innerWidth,height:window.innerHeight})}function r(){window.clearTimeout(e),e=window.setTimeout(n,100)}return n(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[]),e}(),E=k?DOMRect.fromRect({...k,x:0,y:0}):void 0,{popperStyles:S,arrowStyles:_,placedSide:O,placedAlign:C}=function({anchorRect:e,popperSize:t,arrowSize:n,arrowOffset:r=0,side:o,sideOffset:i=0,align:a,alignOffset:l=0,shouldAvoidCollisions:s=!0,collisionBoundariesRect:u,collisionTolerance:c=0}){if(!e||!t||!u)return{popperStyles:Ul,arrowStyles:Vl};const d=function(e,t,n=0,r=0,o){const i=o?o.height:0,a=Bl(t,e,"x"),l=Bl(t,e,"y"),s=l.before-n-i,u=l.after+n+i,c=a.before-n-i,d=a.after+n+i;return{top:{start:{x:a.start+r,y:s},center:{x:a.center,y:s},end:{x:a.end-r,y:s}},right:{start:{x:d,y:l.start+r},center:{x:d,y:l.center},end:{x:d,y:l.end-r}},bottom:{start:{x:a.start+r,y:u},center:{x:a.center,y:u},end:{x:a.end-r,y:u}},left:{start:{x:c,y:l.start+r},center:{x:c,y:l.center},end:{x:c,y:l.end-r}}}}(t,e,i,l,n),f=d[o][a];if(!1===s){const e=Wl(f);let i=Vl;return n&&(i=ql({popperSize:t,arrowSize:n,arrowOffset:r,side:o,align:a})),{popperStyles:{...e,"--radix-popper-transform-origin":Hl(t,o,a,r,n)},arrowStyles:i,placedSide:o,placedAlign:a}}const p=DOMRect.fromRect({...t,...f}),h=(g=u,m=c,DOMRect.fromRect({width:g.width-2*m,height:g.height-2*m,x:g.left+m,y:g.top+m}));var g,m;const v=Kl(p,h),y=d[Xl(o)][a],b=function(e,t,n){const r=Xl(e);return t[e]&&!n[r]?r:e}(o,v,Kl(DOMRect.fromRect({...t,...y}),h)),w=function(e,t,n,r,o){const i="top"===n||"bottom"===n,a=i?"left":"top",l=i?"right":"bottom",s=i?"width":"height",u=t[s]>e[s];return"start"!==r&&"center"!==r||!(o[a]&&u||o[l]&&!u)?"end"!==r&&"center"!==r||!(o[l]&&u||o[a]&&!u)?r:"start":"end"}(t,e,o,a,v),x=Wl(d[b][w]);let k=Vl;return n&&(k=ql({popperSize:t,arrowSize:n,arrowOffset:r,side:b,align:w})),{popperStyles:{...x,"--radix-popper-transform-origin":Hl(t,b,w,r,n)},arrowStyles:k,placedSide:b,placedAlign:w}}({anchorRect:h,popperSize:v,arrowSize:w,arrowOffset:f,side:r,sideOffset:o,align:i,alignOffset:a,shouldAvoidCollisions:u,collisionBoundariesRect:E,collisionTolerance:l}),L=void 0!==O;return s.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},s.createElement(ts,{scope:n,arrowStyles:_,onArrowChange:b,onArrowOffsetChange:p},s.createElement(oi.div,Ee({"data-side":O,"data-align":C},c,{style:{...c.style,animation:L?void 0:"none"},ref:x}))))})),os=s.forwardRef((function(e,t){const{__scopePopper:n,offset:r,...o}=e,i=ns("PopperArrow",n),{onArrowOffsetChange:a}=i;return s.useEffect((()=>a(r)),[a,r]),s.createElement("span",{style:{...i.arrowStyles,pointerEvents:"none"}},s.createElement("span",{ref:i.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},s.createElement(Il,Ee({},o,{ref:t,style:{...o.style,display:"block"}}))))})),is=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return s.createElement(Ql,{scope:t,anchor:r,onAnchorChange:o},n)},as=es,ls=rs,ss=os;function us(e){const t=s.useRef({value:e,previous:e});return s.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[cs,ds]=ji("Tooltip",[Zl]),fs=Zl(),[ps,hs]=cs("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:()=>{},onClose:()=>{}}),[gs,ms]=cs("Tooltip"),vs=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ms("TooltipTrigger",n),i=fs(n),a=co(t,o.onTriggerChange),l=s.useRef(!1),u=s.useCallback((()=>l.current=!1),[]);return s.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),s.createElement(as,Ee({asChild:!0},i),s.createElement(oi.button,Ee({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onMouseEnter:wi(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:wi(e.onMouseLeave,o.onClose),onMouseDown:wi(e.onMouseDown,(()=>{o.onClose(),l.current=!0,document.addEventListener("mouseup",u,{once:!0})})),onFocus:wi(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:wi(e.onBlur,o.onClose),onClick:wi(e.onClick,(e=>{0===e.detail&&o.onClose()}))})))})),ys=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ms("TooltipContent",e.__scopeTooltip);return s.createElement(ai,{present:n||o.open},s.createElement(bs,Ee({ref:t},r)))})),bs=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,portalled:i=!0,...a}=e,l=ms("TooltipContent",n),u=fs(n),c=i?Al:s.Fragment,{onClose:d}=l;return vi((()=>d())),s.useEffect((()=>(document.addEventListener("tooltip.open",d),()=>document.removeEventListener("tooltip.open",d))),[d]),s.createElement(c,null,s.createElement(ws,{__scopeTooltip:n}),s.createElement(ls,Ee({"data-state":l.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),s.createElement(ho,null,r),s.createElement(Tl,{id:l.contentId,role:"tooltip"},o||r)))}));function ws(e){const{__scopeTooltip:t}=e,n=ms("CheckTriggerMoved",t),r=$l(n.trigger),o=null==r?void 0:r.left,i=us(o),a=null==r?void 0:r.top,l=us(a),u=n.onClose;return s.useEffect((()=>{(void 0!==i&&i!==o||void 0!==l&&l!==a)&&u()}),[u,i,l,o,a]),null}const xs=vs,ks=ys,Es=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fs(n);return s.createElement(ss,Ee({},o,r,{ref:t}))}));var Ss=["children","active","tooltipContent","tooltipSide","arrowStyles"];function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,delayDuration:a}=e,l=hs("Tooltip",t),u=fs(t),[c,d]=s.useState(null),f=Li(),p=s.useRef(0),h=null!=a?a:l.delayDuration,g=s.useRef(!1),{onOpen:m,onClose:v}=l,[y=!1,b]=_i({prop:r,defaultProp:o,onChange:e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),m()),null==i||i(e)}}),w=s.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=s.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),k=s.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),h)}),[h,b]);return s.useEffect((()=>()=>window.clearTimeout(p.current)),[]),s.createElement(is,u,s.createElement(gs,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:s.useCallback((()=>{l.isOpenDelayed?k():x()}),[l.isOpenDelayed,k,x]),onOpen:s.useCallback(x,[x]),onClose:s.useCallback((()=>{window.clearTimeout(p.current),b(!1),v()}),[b,v])},n))},As=xs,Ms=Ps,Is=Rs,Ds={backgroundColor:"#F9D354",color:"#0A0806"},Ns={fill:"#F9D354"},Fs=function(e){var t=e.children,n=e.active,r=e.tooltipContent,o=e.tooltipSide,i=e.arrowStyles,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ss);return(0,De.jsxs)(Ts,{open:n,children:[(0,De.jsx)(As,{asChild:!0,children:t}),(0,De.jsxs)(Ms,Os(Os({sideOffset:5,side:o,style:Ds},a),{},{children:[r,(0,De.jsx)(Is,{style:null!=i?i:Ns})]}))]})},zs=new Map;zs.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),zs.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),zs.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M232,128a104.3,104.3,0,0,1-91.5,103.3,4.1,4.1,0,0,1-4.5-4V152h24a8,8,0,0,0,8-8.5,8.2,8.2,0,0,0-8.3-7.5H136V112a16,16,0,0,1,16-16h16a8,8,0,0,0,8-8.5,8.2,8.2,0,0,0-8.3-7.5H152a32,32,0,0,0-32,32v24H96a8,8,0,0,0-8,8.5,8.2,8.2,0,0,0,8.3,7.5H120v75.3a4,4,0,0,1-4.4,4C62.8,224.9,22,179,24.1,124.1A104,104,0,0,1,232,128Z"}))})),zs.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),zs.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),zs.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var $s=function(e,t){return Sr(e,t,zs)},Bs=(0,s.forwardRef)((function(e,t){return s.createElement(Cr,Object.assign({ref:t},e,{renderPath:$s}))}));Bs.displayName="FacebookLogo";const Ws=Bs;var Hs=new Map;Hs.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Hs.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",opacity:"0.2"}),s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Hs.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M245.7,77.7l-30.2,30.1C209.5,177.7,150.5,232,80,232c-14.5,0-26.5-2.3-35.6-6.8-7.3-3.7-10.3-7.6-11.1-8.8a8,8,0,0,1,3.9-11.9c.2-.1,23.8-9.1,39.1-26.4a108.6,108.6,0,0,1-24.7-24.4c-13.7-18.6-28.2-50.9-19.5-99.1a8.1,8.1,0,0,1,5.5-6.2,8,8,0,0,1,8.1,1.9c.3.4,33.6,33.2,74.3,43.8V88a48.3,48.3,0,0,1,48.6-48,48.2,48.2,0,0,1,41,24H240a8,8,0,0,1,7.4,4.9A8.4,8.4,0,0,1,245.7,77.7Z"}))})),Hs.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Hs.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Hs.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Us=function(e,t){return Sr(e,t,Hs)},Vs=(0,s.forwardRef)((function(e,t){return s.createElement(Cr,Object.assign({ref:t},e,{renderPath:Us}))}));Vs.displayName="TwitterLogo";const qs=Vs;function Gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const{scope:n,children:r}=e,o=co(t,i(a,n).collectionRef);return s.createElement(fo,{ref:o},r)})),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=s.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=s.useRef(null),l=co(t,a),d=i(u,n);return s.useEffect((()=>(d.itemMap.set(a,{ref:a,...o}),()=>{d.itemMap.delete(a)}))),s.createElement(fo,{[c]:"",ref:l},r)}));return[{Provider:e=>{const{scope:t,children:n}=e,r=s.useRef(null),i=s.useRef(new Map).current;return s.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t);return s.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}const ru={bubbles:!1,cancelable:!0},[ou,iu,au]=nu("RovingFocusGroup"),[lu,su]=ji("RovingFocusGroup",[au]),[uu,cu]=lu("RovingFocusGroup"),du=s.forwardRef(((e,t)=>s.createElement(ou.Provider,{scope:e.__scopeRovingFocusGroup},s.createElement(ou.Slot,{scope:e.__scopeRovingFocusGroup},s.createElement(fu,Ee({},e,{ref:t})))))),fu=s.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,dir:o="ltr",loop:i=!1,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,f=s.useRef(null),p=co(t,f),[h=null,g]=_i({prop:a,defaultProp:l,onChange:u}),[m,v]=s.useState(!1),y=si(c),b=iu(n),w=s.useRef(!1);return s.useEffect((()=>{const e=f.current;if(e)return e.addEventListener("rovingFocusGroup.onEntryFocus",y),()=>e.removeEventListener("rovingFocusGroup.onEntryFocus",y)}),[y]),s.createElement(uu,{scope:n,orientation:r,dir:o,loop:i,currentTabStopId:h,onItemFocus:s.useCallback((e=>g(e)),[g]),onItemShiftTab:s.useCallback((()=>v(!0)),[])},s.createElement(oi.div,Ee({tabIndex:m?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:wi(e.onMouseDown,(()=>{w.current=!0})),onFocus:wi(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!m){const t=new Event("rovingFocusGroup.onEntryFocus",ru);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));gu([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:wi(e.onBlur,(()=>v(!1)))})))})),pu=s.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,...i}=e,a=Li(),l=cu("RovingFocusGroupItem",n),u=l.currentTabStopId===a,c=iu(n);return s.createElement(ou.ItemSlot,{scope:n,id:a,focusable:r,active:o},s.createElement(oi.span,Ee({tabIndex:u?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:wi(e.onMouseDown,(e=>{r?l.onItemFocus(a):e.preventDefault()})),onFocus:wi(e.onFocus,(()=>l.onItemFocus(a))),onKeyDown:wi(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:hu[r]}(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let o=c().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=l.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>gu(o)))}var n,r}))})))})),hu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gu(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const mu=du,vu=pu,yu=["Enter"," "],bu=["ArrowUp","PageDown","End"],wu=["ArrowDown","PageUp","Home",...bu],xu={ltr:[...yu,"ArrowRight"],rtl:[...yu,"ArrowLeft"]},ku={ltr:["ArrowLeft"],rtl:["ArrowRight"]},[Eu,Su,_u]=nu("Menu"),[Ou,Cu]=ji("Menu",[_u,Zl,su]),Lu=Zl(),ju=su(),[Pu,Ru]=Ou("Menu"),Tu=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lu(n);return s.createElement(as,Ee({},o,r,{ref:t}))})),[Au,Mu]=Ou("MenuContent"),Iu=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Ru("MenuContent",e.__scopeMenu);return s.createElement(Eu.Provider,{scope:e.__scopeMenu},s.createElement(ai,{present:n||o.open},s.createElement(Eu.Slot,{scope:e.__scopeMenu},o.isSubmenu?s.createElement(zu,Ee({},r,{ref:t})):s.createElement(Du,Ee({},r,{ref:t})))))})),Du=s.forwardRef(((e,t)=>Ru("MenuContent",e.__scopeMenu).modal?s.createElement(Nu,Ee({},e,{ref:t})):s.createElement(Fu,Ee({},e,{ref:t})))),Nu=s.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu),r=s.useRef(null),o=co(t,r);return s.useEffect((()=>{const e=r.current;if(e)return xo(e)}),[]),s.createElement($u,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:wi(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Fu=s.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu);return s.createElement($u,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),zu=s.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu),r=s.useRef(null),o=co(t,r);return n.isSubmenu?s.createElement($u,Ee({id:n.contentId,"aria-labelledby":n.triggerId},e,{ref:o,align:"start",side:"rtl"===n.dir?"left":"right",portalled:!0,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;n.isUsingKeyboardRef.current&&(null===(t=r.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:wi(e.onFocusOutside,(e=>{e.target!==n.trigger&&n.onOpenChange(!1)})),onEscapeKeyDown:wi(e.onEscapeKeyDown,n.onRootClose),onKeyDown:wi(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=ku[n.dir].includes(e.key);var o;t&&r&&(n.onOpenChange(!1),null===(o=n.trigger)||void 0===o||o.focus(),e.preventDefault())}))})):null})),$u=s.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,allowPinchZoom:g,portalled:m,...v}=e,y=Ru("MenuContent",n),b=Lu(n),w=ju(n),x=Su(n),[k,E]=s.useState(null),S=s.useRef(null),_=co(t,S,y.onContentChange),O=s.useRef(0),C=s.useRef(""),L=s.useRef(0),j=s.useRef(null),P=s.useRef("right"),R=s.useRef(0),T=m?Al:s.Fragment,A=h?ei:s.Fragment,M=h?{allowPinchZoom:g}:void 0;s.useEffect((()=>()=>window.clearTimeout(O.current)),[]),ni();const I=s.useCallback((e=>{var t,n;return P.current===(null===(t=j.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;er!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=j.current)||void 0===n?void 0:n.area)}),[]);return s.createElement(T,null,s.createElement(A,M,s.createElement(Au,{scope:n,searchRef:C,onItemEnter:s.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),onItemLeave:s.useCallback((e=>{var t;I(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))}),[I]),onTriggerLeave:s.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),pointerGraceTimerRef:L,onPointerGraceIntentChange:s.useCallback((e=>{j.current=e}),[])},s.createElement(ci,{asChild:!0,trapped:o,onMountAutoFocus:wi(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},s.createElement(ki,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},s.createElement(mu,Ee({asChild:!0},w,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:e=>{y.isUsingKeyboardRef.current||e.preventDefault()}}),s.createElement(ls,Ee({role:"menu","aria-orientation":"vertical","data-state":Ku(y.open),dir:y.dir},b,v,{ref:_,style:{outline:"none",...v.style},onKeyDown:wi(v.onKeyDown,(e=>{const t=e.target,n=e.currentTarget.contains(t),r=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&o&&(e=>{var t,n;const r=C.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(o,0),a.map(((e,t)=>a[(l+t)%a.length])));var a,l;1===r.length&&(i=i.filter((e=>e!==n)));const s=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return s!==n?s:void 0}(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){C.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout((()=>e("")),1e3))}(r),s&&setTimeout((()=>s.focus()))})(e.key));const i=S.current;if(e.target!==i)return;if(!wu.includes(e.key))return;e.preventDefault();const a=x().filter((e=>!e.disabled)).map((e=>e.ref.current));bu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:wi(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),C.current="")})),onPointerMove:wi(e.onPointerMove,Yu((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";P.current=t,R.current=e.clientX}})))}))))))))})),Bu=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return s.createElement(oi.div,Ee({},r,{ref:t}))})),Wu=s.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=s.useRef(null),a=Ru("MenuItem",e.__scopeMenu),l=Mu("MenuItem",e.__scopeMenu),u=co(t,i),c=s.useRef(!1);return s.createElement(Uu,Ee({},o,{ref:u,disabled:n,onClick:wi(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new Event("menu.itemSelect",{bubbles:!0,cancelable:!0});e.addEventListener("menu.itemSelect",(e=>null==r?void 0:r(e)),{once:!0}),e.dispatchEvent(t),t.defaultPrevented?c.current=!1:a.onRootClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:wi(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:wi(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||yu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Hu=s.forwardRef(((e,t)=>{const n=Ru("MenuSubTrigger",e.__scopeMenu),r=Mu("MenuSubTrigger",e.__scopeMenu),o=s.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:a}=r,l={__scopeMenu:e.__scopeMenu},u=s.useCallback((()=>{o.current&&window.clearTimeout(o.current),o.current=null}),[]);return s.useEffect((()=>u),[u]),s.useEffect((()=>{const e=i.current;return()=>{window.clearTimeout(e),a(null)}}),[i,a]),n.isSubmenu?s.createElement(Tu,Ee({asChild:!0},l),s.createElement(Uu,Ee({id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Ku(n.open)},e,{ref:uo(t,n.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:wi(e.onPointerMove,Yu((t=>{r.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(r.onPointerGraceIntentChange(null),o.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:wi(e.onPointerLeave,Yu((e=>{var t;u();const o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,l="right"===t,s=l?-5:5,u=o[l?"left":"right"],c=o[l?"right":"left"];r.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:u,y:o.top},{x:c,y:o.top},{x:c,y:o.bottom},{x:u,y:o.bottom}],side:t}),window.clearTimeout(i.current),i.current=window.setTimeout((()=>r.onPointerGraceIntentChange(null)),300)}else{if(r.onTriggerLeave(e),e.defaultPrevented)return;r.onPointerGraceIntentChange(null)}}))),onKeyDown:wi(e.onKeyDown,(t=>{const o=""!==r.searchRef.current;var i;e.disabled||o&&" "===t.key||xu[n.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))}))):null})),Uu=s.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Mu("MenuItem",n),l=ju(n),u=s.useRef(null),c=co(t,u),[d,f]=s.useState("");return s.useEffect((()=>{const e=u.current;var t;e&&f((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),s.createElement(Eu.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:d},s.createElement(vu,Ee({asChild:!0},l,{focusable:!r}),s.createElement(oi.div,Ee({role:"menuitem","aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:wi(e.onPointerMove,Yu((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:wi(e.onPointerLeave,Yu((e=>a.onItemLeave(e))))}))))})),[Vu,qu]=Ou("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),[Gu,Xu]=Ou("MenuItemIndicator",{checked:!1});function Ku(e){return e?"open":"closed"}function Yu(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Zu=e=>{const{__scopeMenu:t,open:n=!1,children:r,onOpenChange:o,modal:i=!0}=e,a=Lu(t),[l,u]=s.useState(null),c=s.useRef(!1),d=si(o),f=function(e,t){const[n,r]=s.useState("ltr"),[o,i]=s.useState(),a=s.useRef(0);return s.useEffect((()=>{if(void 0===t&&null!=e&&e.parentElement){const t=getComputedStyle(e.parentElement);i(t)}}),[e,t]),s.useEffect((()=>(void 0===t&&function e(){a.current=requestAnimationFrame((()=>{const t=null==o?void 0:o.direction;t&&r(t),e()}))}(),()=>cancelAnimationFrame(a.current))),[o,t,r]),t||n}(l,e.dir);return s.useEffect((()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),s.createElement(is,a,s.createElement(Pu,{scope:t,isSubmenu:!1,isUsingKeyboardRef:c,dir:f,open:n,onOpenChange:d,content:l,onContentChange:u,onRootClose:s.useCallback((()=>d(!1)),[d]),modal:i},r))},Qu=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Ru("MenuSub",t),a=Lu(t),[l,u]=s.useState(null),[c,d]=s.useState(null),f=si(o);return s.useEffect((()=>(!1===i.open&&f(!1),()=>f(!1))),[i.open,f]),s.createElement(is,a,s.createElement(Pu,{scope:t,isSubmenu:!0,isUsingKeyboardRef:i.isUsingKeyboardRef,dir:i.dir,open:r,onOpenChange:f,content:c,onContentChange:d,onRootClose:i.onRootClose,contentId:Li(),trigger:l,onTriggerChange:u,triggerId:Li(),modal:!1},n))},Ju=Tu,ec=Hu,tc=Iu,nc=Bu,rc=Wu,oc=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return s.createElement(oi.div,Ee({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),ic=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lu(n);return s.createElement(ss,Ee({},o,r,{ref:t}))})),[ac,lc]=ji("DropdownMenu",[Cu]),sc=Cu(),[uc,cc]=ac("DropdownMenu"),dc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,onOpenChange:i,onOpenToggle:a,modal:l=!0}=e,u=sc(t),c=s.useRef(null);return s.createElement(uc,{scope:t,isRootMenu:!0,triggerId:Li(),triggerRef:c,contentId:Li(),open:o,onOpenChange:i,onOpenToggle:a,modal:l},s.createElement(Zu,Ee({},u,{open:o,onOpenChange:i,dir:r,modal:l}),n))},fc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=cc("DropdownMenuTrigger",n),a=sc(n);return i.isRootMenu?s.createElement(Ju,Ee({asChild:!0},a),s.createElement(oi.button,Ee({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":!!i.open||void 0,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:uo(t,i.triggerRef),onPointerDown:wi(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.open||e.preventDefault(),i.onOpenToggle())})),onKeyDown:wi(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())}))}))):null})),[pc,hc]=ac("DropdownMenuContent",{isInsideContent:!1}),gc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=cc("DropdownMenuContent",n),i=sc(n),a={...r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};return s.createElement(pc,{scope:n,isInsideContent:!0},o.isRootMenu?s.createElement(mc,Ee({__scopeDropdownMenu:n},a,{ref:t})):s.createElement(tc,Ee({},i,a,{ref:t})))})),mc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,portalled:r=!0,...o}=e,i=cc("DropdownMenuContent",n),a=sc(n),l=s.useRef(!1);return i.isRootMenu?s.createElement(tc,Ee({id:i.contentId,"aria-labelledby":i.triggerId},a,o,{ref:t,portalled:r,onCloseAutoFocus:wi(e.onCloseAutoFocus,(e=>{var t;l.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:wi(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)}))})):null})),vc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(nc,Ee({},o,r,{ref:t}))})),yc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(rc,Ee({},o,r,{ref:t}))})),bc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(ec,Ee({},o,r,{ref:t}))})),wc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(oc,Ee({},o,r,{ref:t}))})),xc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(ic,Ee({},o,r,{ref:t}))})),kc=e=>{const{__scopeDropdownMenu:t,children:n,open:r,defaultOpen:o,onOpenChange:i}=e,a=hc("DropdownMenu",t),l=sc(t),[u=!1,c]=_i({prop:r,defaultProp:o,onChange:i}),d=s.useCallback((()=>c((e=>!e))),[c]);return a.isInsideContent?s.createElement(uc,{scope:t,isRootMenu:!1,open:u,onOpenChange:c,onOpenToggle:d},s.createElement(Qu,Ee({},l,{open:u,onOpenChange:c}),n)):s.createElement(dc,Ee({},e,{open:u,onOpenChange:c,onOpenToggle:d}),n)},Ec=fc,Sc=gc,_c=vc,Oc=bc,Cc=wc,Lc=xc;function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rc,Tc={fontSize:"16px",fontWeight:"500",py:"12px",px:"24px",borderRadius:3,cursor:"default",color:"$utilityTextDefault","&:focus":{outline:"none",backgroundColor:"$grayBgHover"}},Ac=he(yc,Tc),Mc=he(Ec,{fontSize:"100%",border:0,padding:0,backgroundColor:"transparent","&:hover":{opacity:.7}}),Ic=(he(Oc,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.start?1:0})).forEach((function(e){h>=e.start&&g<=e.end?v=!0:h<=e.end&&e.start<=g&&y.push(e)})),b=null,!y.length){t.next=23;break}if(S=!1,h<=y[0].start?(w=u.startContainer,x=u.startOffset):(_=sr(y[0].id),w=_.shift(),x=0),g>=y[y.length-1].end?(k=u.endContainer,E=u.endOffset):(O=sr(y[y.length-1].id),k=O.pop(),E=0,S=!0),w&&k){t.next=20;break}throw new Error("Failed to query node for computing new merged range");case 20:(b=new Range).setStart(w,x),S?b.setEndAfter(k):b.setEnd(k,E);case 23:if(!v){t.next=25;break}return t.abrupt("return",setTimeout((function(){o(null)}),100));case 25:return t.abrupt("return",o({selection:d,mouseEvent:n,range:null!==(a=b)&&void 0!==a?a:u,focusPosition:{x:m[c?"left":"right"],y:m[c?"top":"bottom"],isReverseSelected:c},overlapHighlights:y.map((function(e){return e.id}))}));case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e]),a=(0,s.useCallback)(fr(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=window.AndroidWebKitMessenger)||void 0===t||t.handleIdentifiableMessage("writeToClipboard",JSON.stringify({quote:null==r?void 0:r.selection.toString()}));case 1:case"end":return e.stop()}}),e)}))),[null==r?void 0:r.selection]);return(0,s.useEffect)((function(){return document.addEventListener("mouseup",i),document.addEventListener("touchend",i),document.addEventListener("contextmenu",i),document.addEventListener("copyTextSelection",a),function(){document.removeEventListener("mouseup",i),document.removeEventListener("touchend",i),document.removeEventListener("contextmenu",i),document.removeEventListener("copyTextSelection",a)}}),[e,i,false,a]),[r,o]}(u),m=qd(g,2),v=m[0],y=m[1],b=(0,s.useMemo)((function(){var e;return"undefined"!=typeof window&&!(!br()&&!yr())&&"function"==typeof(null===(e=navigator)||void 0===e?void 0:e.share)}),[]);(0,s.useEffect)((function(){var t=[];if(n.forEach((function(e){try{var n=function(e){var t=function(e){return tr(e.patch,e.id,!!e.annotation,void 0,void 0)}(e),n=t.startLocation,r=t.endLocation;return{id:e.id,start:n,end:r}}(e);t.push(n)}catch(e){console.error(e)}})),c(t),e.scrollToHighlight.current){var r=document.querySelector('[omnivore-highlight-id="'.concat(e.scrollToHighlight.current,'"]'));r&&r.scrollIntoView({behavior:"auto"})}}),[n,c]);var w=(0,s.useCallback)(function(){var t=Vd(regeneratorRuntime.mark((function t(o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o||(null==p?void 0:p.id)){t.next=4;break}return console.error("Failed to identify highlight to be removed"),t.abrupt("return");case 4:return t.next=6,e.articleMutations.deleteHighlightMutation(i);case 6:t.sent?(Br(n.map((function(e){return e.id}))),r(n.filter((function(e){return e.id!==i}))),h(void 0)):console.error("Failed to delete highlight");case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[p,n,u]),x=(0,s.useCallback)((function(e){Br([e.id]);var t,o=n.filter((function(t){return t.id!==e.id}));r([].concat(function(e){if(Array.isArray(e))return Xd(e)}(t=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Gd(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))}),[n,u]),k=(0,s.useCallback)((function(t){var n;null===(n=navigator)||void 0===n||n.share({title:e.articleTitle,url:"".concat(e.highlightsBaseURL,"/").concat(t)}).then((function(){h(void 0)})).catch((function(e){console.log(e),h(void 0)}))}),[e.articleTitle,e.highlightsBaseURL]),E=(0,s.useCallback)((function(t){var n,r,o,i,l,s,u,c;if(void 0!==(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r?void 0:r.messageHandlers.highlightAction)&&e.highlightBarDisabled)null===(i=window)||void 0===i||null===(l=i.webkit)||void 0===l||null===(s=l.messageHandlers.highlightAction)||void 0===s||s.postMessage({actionID:"annotate",annotation:null!==(u=null===(c=t.highlight)||void 0===c?void 0:c.annotation)&&void 0!==u?u:""});else if(void 0!==(null===(o=window)||void 0===o?void 0:o.AndroidWebKitMessenger)){var d,f;window.AndroidWebKitMessenger.handleIdentifiableMessage("annotate",JSON.stringify({annotation:null!==(d=null===(f=t.highlight)||void 0===f?void 0:f.annotation)&&void 0!==d?d:""}))}else t.createHighlightForNote=function(){var e=Vd(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.selectionData){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.next=4,S(t.selectionData,n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a(t)}),[e.highlightBarDisabled]),S=function(){var t=Vd(regeneratorRuntime.mark((function t(o,i){var l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lo({selection:o,articleId:e.articleId,existingHighlights:n,highlightStartEndOffsets:u,annotation:i},e.articleMutations);case 2:if(!(l=t.sent).errorMessage){t.next=5;break}throw"Failed to create highlight: "+l.errorMessage;case 5:if(l.highlights&&0!=l.highlights.length){t.next=8;break}return console.error("Failed to create highlight"),t.abrupt("return",void 0);case 8:if(y(null),r(l.highlights),void 0!==l.newHighlightIndex){t.next=13;break}return a({highlightModalAction:"none"}),t.abrupt("return",void 0);case 13:return t.abrupt("return",l.highlights[l.newHighlightIndex]);case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),_=(0,s.useCallback)(function(){var e=Vd(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,S(v,n);case 5:if(e.sent){e.next=9;break}throw Ja("Error saving highlight",{position:"bottom-right"}),"Error creating highlight";case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(2),e.t0;case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t,n){return e.apply(this,arguments)}}(),[k,n,E,e.articleId,v,y,b,u]),O=(0,s.useCallback)((function(e){var t,r,o=e.target,i=e.pageX,a=e.pageY;if(o&&(null==o?void 0:o.nodeType)===Node.ELEMENT_NODE){var l={tapX:e.clientX,tapY:e.clientY};if(null===(t=window)||void 0===t||null===(r=t.AndroidWebKitMessenger)||void 0===r||r.handleIdentifiableMessage("userTap",JSON.stringify(l)),d.current={pageX:i,pageY:a},o.hasAttribute(Xn)){var s=o.getAttribute(Xn),u=n.find((function(e){return e.id===s}));if(u){var c,f,p,g,m;h(u);var v=o.getBoundingClientRect();null===(c=window)||void 0===c||null===(f=c.webkit)||void 0===f||null===(p=f.messageHandlers.viewerAction)||void 0===p||p.postMessage({actionID:"showMenu",rectX:v.x,rectY:v.y,rectWidth:v.width,rectHeight:v.height}),null===(g=window)||void 0===g||null===(m=g.AndroidWebKitMessenger)||void 0===m||m.handleIdentifiableMessage("existingHighlightTap",JSON.stringify(Wd({},l)))}}else if(o.hasAttribute(Kn)){var y=o.getAttribute(Kn),b=n.find((function(e){return e.id===y}));E({highlight:b,highlightModalAction:"addComment"})}else h(void 0)}}),[n,u]);(0,s.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("click",O),function(){return document.removeEventListener("click",O)}}),[O]);var C,L,j,P,R,T,A=(0,s.useCallback)(function(){var t=Vd(regeneratorRuntime.mark((function t(n){var r,o,i,l,s,u,c,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=n,t.next="delete"===t.t0?3:"create"===t.t0?6:"comment"===t.t0?9:"share"===t.t0?11:"unshare"===t.t0?20:"setHighlightLabels"===t.t0?22:24;break;case 3:return t.next=5,w();case 5:case 8:case 19:return t.abrupt("break",24);case 6:return t.next=8,_("none");case 9:return e.highlightBarDisabled||p?E({highlight:p,highlightModalAction:"addComment"}):E({highlight:void 0,selectionData:v||void 0,highlightModalAction:"addComment"}),t.abrupt("break",24);case 11:if(e.isAppleAppEmbed&&(null===(i=window)||void 0===i||null===(l=i.webkit)||void 0===l||null===(s=l.messageHandlers.highlightAction)||void 0===s||s.postMessage({actionID:"share",highlightID:null==p?void 0:p.id})),null===(r=window)||void 0===r||null===(o=r.AndroidWebKitMessenger)||void 0===o||o.handleIdentifiableMessage("shareHighlight",JSON.stringify({highlightID:null==p?void 0:p.id})),!p){t.next=17;break}b?k(p.shortId):a({highlight:p,highlightModalAction:"share"}),t.next=19;break;case 17:return t.next=19,_("share");case 20:return console.log("unshare"),t.abrupt("break",24);case 22:return e.isAppleAppEmbed&&(null===(u=window)||void 0===u||null===(c=u.webkit)||void 0===c||null===(d=c.messageHandlers.highlightAction)||void 0===d||d.postMessage({actionID:"setHighlightLabels",highlightID:null==p?void 0:p.id})),t.abrupt("break",24);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[_,p,k,E,e.highlightBarDisabled,e.isAppleAppEmbed,w,b]),M=function(t,n){var r,o,i;e.isAppleAppEmbed&&(null===(r=window)||void 0===r||null===(o=r.webkit)||void 0===o||null===(i=o.messageHandlers.highlightAction)||void 0===i||i.postMessage({actionID:"highlightError",highlightAction:t,highlightID:null==p?void 0:p.id,error:"string"==typeof n?n:JSON.stringify(n)}))},I=function(t){var n,r,o;e.isAppleAppEmbed&&(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r||null===(o=r.messageHandlers.highlightAction)||void 0===o||o.postMessage({actionID:t,highlightID:null==p?void 0:p.id}))};return(0,s.useEffect)((function(){var t=function(){var e=Vd(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A(t);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),M(t,e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),n=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("comment");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("create");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("share");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("delete");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){h(void 0)},l=function(){A("setHighlightLabels")},s=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=8;break}if(!window.AndroidWebKitMessenger){e.next=5;break}window.AndroidWebKitMessenger.handleIdentifiableMessage("writeToClipboard",JSON.stringify({quote:p.quote})),e.next=7;break;case 5:return e.next=7,navigator.clipboard.writeText(p.quote);case 7:h(void 0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=Vd(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=document.querySelector('[data-omnivore-anchor-idx="'.concat(t.anchorIdx,'"]')),document.querySelectorAll(".speakingSection").forEach((function(e){e!=n&&(null==e||e.classList.remove("speakingSection"))})),null==n||n.classList.add("speakingSection");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var t=Vd(regeneratorRuntime.mark((function t(n){var r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p){t.next=10;break}return i=null!==(r=n.annotation)&&void 0!==r?r:"",t.next=4,e.articleMutations.updateHighlightMutation({highlightId:p.id,annotation:null!==(o=n.annotation)&&void 0!==o?o:""});case 4:t.sent?x(Wd(Wd({},p),{},{annotation:i})):(console.log("failed to change annotation for highlight with id",p.id),M("saveAnnotation","Failed to create highlight.")),h(void 0),I("noteCreated"),t.next=19;break;case 10:return t.prev=10,t.next=13,_("none",n.annotation);case 13:I("noteCreated"),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(10),M("saveAnnotation",t.t0);case 19:case"end":return t.stop()}}),t,null,[[10,16]])})));return function(e){return t.apply(this,arguments)}}();return document.addEventListener("annotate",n),document.addEventListener("highlight",r),document.addEventListener("share",o),document.addEventListener("remove",i),document.addEventListener("copyHighlight",s),document.addEventListener("dismissHighlight",a),document.addEventListener("saveAnnotation",c),document.addEventListener("speakingSection",u),document.addEventListener("setHighlightLabels",l),function(){document.removeEventListener("annotate",n),document.removeEventListener("highlight",r),document.removeEventListener("share",o),document.removeEventListener("remove",i),document.removeEventListener("copyHighlight",s),document.removeEventListener("dismissHighlight",a),document.removeEventListener("saveAnnotation",c),document.removeEventListener("speakingSection",u),document.removeEventListener("setHighlightLabels",l)}})),"addComment"==(null==i?void 0:i.highlightModalAction)?(0,De.jsx)(al,{highlight:i.highlight,author:e.articleAuthor,title:e.articleTitle,onUpdate:x,onOpenChange:function(){return a({highlightModalAction:"none"})},createHighlightForNote:null==i?void 0:i.createHighlightForNote}):"share"==(null==i?void 0:i.highlightModalAction)&&i.highlight?(0,De.jsx)(Ks,{url:"".concat(e.highlightsBaseURL,"/").concat(i.highlight.shortId),title:e.articleTitle,author:e.articleAuthor,highlight:i.highlight,onOpenChange:function(){a({highlightModalAction:"none"})}}):e.highlightBarDisabled||!p&&!v?e.showHighlightsModal?(0,De.jsx)(Nd,{highlights:n,onOpenChange:function(){return e.setShowHighlightsModal(!1)},deleteHighlightAction:function(e){w(e)}}):(0,De.jsx)(De.Fragment,{}):(0,De.jsx)(De.Fragment,{children:(0,De.jsx)(zr,{anchorCoordinates:{pageX:null!==(C=null!==(L=null===(j=d.current)||void 0===j?void 0:j.pageX)&&void 0!==L?L:null==v?void 0:v.focusPosition.x)&&void 0!==C?C:0,pageY:null!==(P=null!==(R=null===(T=d.current)||void 0===T?void 0:T.pageY)&&void 0!==R?R:null==v?void 0:v.focusPosition.y)&&void 0!==P?P:0},isNewHighlight:!!v,handleButtonClick:A,isSharedToFeed:null!=(null==p?void 0:p.sharedAt),displayAtBottom:wr()})})}function Yd(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Zd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Yd(i,r,o,a,l,"next",e)}function l(e){Yd(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=100&&r<=300&&E(r)},n=function(e){var t,n,r=null!==(t=null!==(n=e.maxWidthPercentage)&&void 0!==n?n:b)&&void 0!==t?t:100;r>=40&&r<=100&&w(r)},o=function(t){var n,r,o,i=null!==(n=null!==(r=null!==(o=t.fontFamily)&&void 0!==o?o:_)&&void 0!==r?r:e.fontFamily)&&void 0!==n?n:"inter";console.log("setting font fam to",t.fontFamily),O(i)},i=function(){var e=cf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="high"==t.fontContrast,j(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=cf(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=null!==(n=t.fontSize)&&void 0!==n?n:18)>=10&&r<=28&&R(r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=cf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.themeName)&&An(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(e){var t;Mn("true"===(null!==(t=e.isDark)&&void 0!==t?t:"false")?r.Dark:r.Light)},u=function(){navigator.share&&navigator.share({title:e.article.title,url:e.article.originalArticleUrl})};return document.addEventListener("updateFontFamily",o),document.addEventListener("updateLineHeight",t),document.addEventListener("updateMaxWidthPercentage",n),document.addEventListener("updateTheme",l),document.addEventListener("updateFontSize",a),document.addEventListener("updateColorMode",s),document.addEventListener("handleFontContrastChange",i),document.addEventListener("share",u),function(){document.removeEventListener("updateFontFamily",o),document.removeEventListener("updateLineHeight",t),document.removeEventListener("updateMaxWidthPercentage",n),document.removeEventListener("updateTheme",l),document.removeEventListener("updateFontSize",a),document.removeEventListener("updateColorMode",s),document.removeEventListener("handleFontContrastChange",i),document.removeEventListener("share",u)}}));var T={fontSize:m,margin:null!==(o=e.margin)&&void 0!==o?o:360,maxWidthPercentage:null!=b?b:e.maxWidthPercentage,lineHeight:null!==(i=null!=k?k:e.lineHeight)&&void 0!==i?i:150,fontFamily:null!==(a=null!=_?_:e.fontFamily)&&void 0!==a?a:"inter",readerFontColor:L?ge.colors.readerFontHighContrast.toString():ge.colors.readerFont.toString(),readerTableHeaderColor:ge.colors.readerTableHeader.toString(),readerHeadersColor:ge.colors.readerHeader.toString()},A=(0,s.useMemo)((function(){var t;return null===(t=e.article.recommendations)||void 0===t?void 0:t.flatMap((function(e){var t;return null===(t=e.user)||void 0===t?void 0:t.name})).join(", ")}),[e.article.recommendations]),M=(0,s.useMemo)((function(){var t,n;return null!==(t=null===(n=e.article.recommendations)||void 0===n?void 0:n.filter((function(e){return e.note})))&&void 0!==t?t:[]}),[e.article.recommendations]);return he(Be,{margin:"0px 0px 0px 0px",fontSize:"18px",lineHeight:"27px",color:"$grayText",padding:"0px 16px",borderLeft:"2px solid $omnivoreCtaYellow"}),(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(Fe,{id:"article-container",css:{padding:"16px",maxWidth:"".concat(null!==(l=T.maxWidthPercentage)&&void 0!==l?l:100,"%"),background:e.isAppleAppEmbed?"unset":ge.colors.readerBg.toString(),"--text-font-family":T.fontFamily,"--text-font-size":"".concat(T.fontSize,"px"),"--line-height":"".concat(T.lineHeight,"%"),"--blockquote-padding":"0.5em 1em","--blockquote-icon-font-size":"1.3rem","--figure-margin":"1.6rem auto","--hr-margin":"1em","--font-color":T.readerFontColor,"--table-header-color":T.readerTableHeaderColor,"--headers-color":T.readerHeadersColor,"@sm":{"--blockquote-padding":"1em 2em","--blockquote-icon-font-size":"1.7rem","--figure-margin":"2.6875rem auto","--hr-margin":"2em",margin:"30px 0px"},"@md":{maxWidth:T.maxWidthPercentage?"".concat(T.maxWidthPercentage,"%"):1024-T.margin}},children:[(0,De.jsxs)(He,{alignment:"start",distribution:"start",children:[(0,De.jsx)(Hn,{style:"boldHeadline","data-testid":"article-headline",css:{fontFamily:T.fontFamily,width:"100%",wordWrap:"break-word"},children:e.article.title}),(0,De.jsx)(Un,{rawDisplayDate:null!==(u=e.article.publishedAt)&&void 0!==u?u:e.article.createdAt,author:e.article.author,href:e.article.url}),e.labels?(0,De.jsx)(ze,{css:{pb:"16px",width:"100%","&:empty":{display:"none"}},children:null===(c=e.labels)||void 0===c?void 0:c.map((function(e){return(0,De.jsx)(El,{text:e.name,color:e.color},e.id)}))}):null,A&&(0,De.jsxs)(He,{css:{borderRadius:"6px",bg:"$grayBase",p:"16px",pt:"16px",width:"100%",marginTop:"24px",color:"$grayText",lineHeight:"2.0"},children:[(0,De.jsxs)(We,{css:{gap:"8px"},children:[(0,De.jsx)(sf,{size:"14"}),(0,De.jsxs)(Hn,{style:"recommendedByline",css:{paddingTop:"0px"},children:["Recommended by ",A]})]}),M.map((function(e,t){var n;return(0,De.jsx)(He,{alignment:"start",distribution:"start",children:(0,De.jsxs)(We,{css:{},alignment:"start",children:[(0,De.jsxs)(Hn,{style:"userNote",children:[(0,De.jsxs)(ze,{css:{opacity:"0.5"},children:[null===(n=e.user)||void 0===n?void 0:n.name,":"]})," ",e.note]}),":"]})},e.id)}))]})]}),(0,De.jsx)(Wn,{articleId:e.article.id,content:e.article.content,highlightHref:P,initialAnchorIndex:e.article.readingProgressAnchorIndex,articleMutations:e.articleMutations}),(0,De.jsxs)(xr,{style:"ghost",css:{p:0,my:"$4",color:"$error",fontSize:"$1","&:hover":{opacity:.8}},onClick:function(){return h(!0)},children:["Report issues with this page -",">"]}),(0,De.jsx)(Fe,{css:{height:"100px"}})]}),(0,De.jsx)(Kd,{scrollToHighlight:P,highlights:e.article.highlights,articleTitle:e.article.title,articleAuthor:null!==(d=e.article.author)&&void 0!==d?d:"",articleId:e.article.id,isAppleAppEmbed:e.isAppleAppEmbed,highlightsBaseURL:e.highlightsBaseURL,highlightBarDisabled:e.highlightBarDisabled,showHighlightsModal:e.showHighlightsModal,setShowHighlightsModal:e.setShowHighlightsModal,articleMutations:e.articleMutations}),p?(0,De.jsx)(Jd,{onCommit:function(t){!function(e){rf.apply(this,arguments)}({pageId:e.article.id,itemUrl:e.article.url,reportTypes:["CONTENT_DISPLAY"],reportComment:t})},onOpenChange:function(e){return h(e)}}):null]})}var hf=o(3379),gf=o.n(hf),mf=o(7795),vf=o.n(mf),yf=o(569),bf=o.n(yf),wf=o(3565),xf=o.n(wf),kf=o(9216),Ef=o.n(kf),Sf=o(4589),_f=o.n(Sf),Of=o(7420),Cf={};Cf.styleTagTransform=_f(),Cf.setAttributes=xf(),Cf.insert=bf().bind(null,"head"),Cf.domAPI=vf(),Cf.insertStyleElement=Ef(),gf()(Of.Z,Cf),Of.Z&&Of.Z.locals&&Of.Z.locals;var Lf=o(2778),jf={};function Pf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rf(t){for(var n=1;n0&&void 0!==arguments[0])||arguments[0];if("undefined"!=typeof window){var t=window.localStorage.getItem(Tn);t&&Object.values(r).includes(t)&&(e?An(t):Mn(t))}}(!1),(0,De.jsx)(De.Fragment,{children:(0,De.jsx)(Fe,{css:{overflowY:"auto",height:"100%",width:"100vw"},children:(0,De.jsx)(He,{alignment:"center",distribution:"center",className:"disable-webkit-callout",children:(0,De.jsx)(pf,{article:window.omnivoreArticle,labels:window.omnivoreArticle.labels,isAppleAppEmbed:!0,highlightBarDisabled:!window.enableHighlightBar,highlightsBaseURL:"https://example.com",fontSize:null!==(e=window.fontSize)&&void 0!==e?e:18,fontFamily:null!==(t=window.fontFamily)&&void 0!==t?t:"inter",margin:window.margin,maxWidthPercentage:window.maxWidthPercentage,lineHeight:window.lineHeight,highContrastFont:null===(n=window.prefersHighContrastFont)||void 0===n||n,articleMutations:{createHighlightMutation:function(e){return Tf("createHighlight",e)},deleteHighlightMutation:function(e){return Tf("deleteHighlight",{highlightId:e})},mergeHighlightMutation:function(e){return Tf("mergeHighlight",e)},updateHighlightMutation:function(e){return Tf("updateHighlight",e)},articleReadingProgressMutation:function(e){return Tf("articleReadingProgress",e)}}})})})})};c.render((0,De.jsx)(Af,{}),document.getElementById("root"))})()})();
\ No newline at end of file
+(()=>{var e,t,n={7162:(e,t,n)=>{e.exports=n(5047)},6279:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];x.redirect=function(e,t){if(-1===k.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;r(new x(o,n))},l.onerror=function(){i(new TypeError("Network request failed"))},l.ontimeout=function(){i(new TypeError("Network request failed"))},l.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&o&&(l.responseType="blob"),a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",s)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=x),t.Headers=f,t.Request=b,t.Response=x,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},1427:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,l=this.diff_commonPrefix(e,n),s=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var u=e.substring(e.length-l);e=e.substring(0,e.length-l),n=n.substring(0,n.length-l);var c=this.diff_compute_(e,n,a,i);return s&&c.unshift(new t.Diff(0,s)),u&&c.push(new t.Diff(0,u)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,r,o,i){var a;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var l=e.length>r.length?e:r,s=e.length>r.length?r:e,u=l.indexOf(s);if(-1!=u)return a=[new t.Diff(1,l.substring(0,u)),new t.Diff(0,s),new t.Diff(1,l.substring(u+s.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==s.length)return[new t.Diff(n,e),new t.Diff(1,r)];var c=this.diff_halfMatch_(e,r);if(c){var d=c[0],f=c[1],p=c[2],h=c[3],g=c[4],m=this.diff_main(d,p,o,i),v=this.diff_main(f,h,o,i);return m.concat([new t.Diff(0,g)],v)}return o&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,i):this.diff_bisect_(e,r,i)},t.prototype.diff_lineMode_=function(e,r,o){var i=this.diff_linesToChars_(e,r);e=i.chars1,r=i.chars2;var a=i.lineArray,l=this.diff_main(e,r,!1,o);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push(new t.Diff(0,""));for(var s=0,u=0,c=0,d="",f="";s=1&&c>=1){l.splice(s-u-c,u+c),s=s-u-c;for(var p=this.diff_main(d,f,!1,o),h=p.length-1;h>=0;h--)l.splice(s,0,p[h]);s+=p.length}c=0,u=0,d="",f=""}s++}return l.pop(),l},t.prototype.diff_bisect_=function(e,r,o){for(var i=e.length,a=r.length,l=Math.ceil((i+a)/2),s=l,u=2*l,c=new Array(u),d=new Array(u),f=0;fo);b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=s+w,k=(O=w==-b||w!=b&&c[x-1]i)m+=2;else if(k>a)g+=2;else if(h&&(_=s+p-w)>=0&&_=(S=i-d[_]))return this.diff_bisectSplit_(e,r,O,k,o)}for(var E=-b+v;E<=b-y;E+=2){for(var S,_=s+E,C=(S=E==-b||E!=b&&d[_-1]i)y+=2;else if(C>a)v+=2;else if(!h){var O;if((x=s+p-E)>=0&&x=(S=i-S))return this.diff_bisectSplit_(e,r,O,k,o)}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),s=t.substring(r),u=this.diff_main(i,a,!1,o),c=this.diff_main(l,s,!1,o);return u.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,l=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,a,l,c]:null}var a,l,s,u,c,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(l=a[0],s=a[1],u=a[2],c=a[3]):(u=a[0],c=a[1],l=a[2],s=a[3]),[l,s,u,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,o=[],i=0,a=null,l=0,s=0,u=0,c=0,d=0;l0?o[i-1]:-1,s=0,u=0,c=0,d=0,a=null,r=!0)),l++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l=g?(h>=f.length/2||h>=p.length/2)&&(e.splice(l,0,new t.Diff(0,p.substring(0,h))),e[l-1][1]=f.substring(0,f.length-h),e[l+1][1]=p.substring(h),l++):(g>=f.length/2||g>=p.length/2)&&(e.splice(l,0,new t.Diff(0,f.substring(0,g))),e[l-1][0]=1,e[l-1][1]=p.substring(0,p.length-g),e[l+1][0]=n,e[l+1][1]=f.substring(g),l++),l++}l++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),o=n.charAt(0),i=r.match(t.nonAlphaNumericRegex_),a=o.match(t.nonAlphaNumericRegex_),l=i&&r.match(t.whitespaceRegex_),s=a&&o.match(t.whitespaceRegex_),u=l&&r.match(t.linebreakRegex_),c=s&&o.match(t.linebreakRegex_),d=u&&e.match(t.blanklineEndRegex_),f=c&&n.match(t.blanklineStartRegex_);return d||f?5:u||c?4:i&&!l&&s?3:l||s?2:i||a?1:0}for(var r=1;r=f&&(f=p,u=o,c=i,d=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,o=[],i=0,a=null,l=0,s=!1,u=!1,c=!1,d=!1;l0?o[i-1]:-1,c=d=!1),r=!0)),l++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,o=0,i=0,a=0,l="",s="";o1?(0!==i&&0!==a&&(0!==(r=this.diff_commonPrefix(s,l))&&(o-i-a>0&&0==e[o-i-a-1][0]?e[o-i-a-1][1]+=s.substring(0,r):(e.splice(0,0,new t.Diff(0,s.substring(0,r))),o++),s=s.substring(r),l=l.substring(r)),0!==(r=this.diff_commonSuffix(s,l))&&(e[o][1]=s.substring(s.length-r)+e[o][1],s=s.substring(0,s.length-r),l=l.substring(0,l.length-r))),o-=i+a,e.splice(o,i+a),l.length&&(e.splice(o,0,new t.Diff(n,l)),o++),s.length&&(e.splice(o,0,new t.Diff(1,s)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,a=0,i=0,l="",s=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(o=1;ot));r++)a=o,l=i;return e.length!=r&&e[r][0]===n?l:l+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,o=//g,a=/\n/g,l=0;l");switch(s){case 1:t[l]=''+u+"";break;case n:t[l]=''+u+"";break;case 0:t[l]=""+u+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(i(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,l),a)));var s,u,c=1<=h;v--){var y=r[e.charAt(v-1)];if(m[v]=0===p?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],m[v]&c){var b=i(p,v-1);if(b<=a){if(a=b,!((l=v-1)>n))break;h=Math.max(1,2*n-l)}}}if(i(p+1,n)>a)break;d=m}return l},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===r&&void 0===o)a=e,i=this.diff_text1(a);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===o)i=e,a=r;else{if("string"!=typeof e||"string"!=typeof r||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=e,a=o}if(0===a.length)return[];for(var l=[],s=new t.patch_obj,u=0,c=0,d=0,f=i,p=i,h=0;h=2*this.Patch_Margin&&u&&(this.patch_addContext_(s,f),l.push(s),s=new t.patch_obj,u=0,f=p,c=d)}1!==g&&(c+=m.length),g!==n&&(d+=m.length)}return u&&(this.patch_addContext_(s,f),l.push(s)),l},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;rthis.Match_MaxBits?-1!=(l=this.match_main(t,c.substring(0,this.Match_MaxBits),u))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),u+c.length-this.Match_MaxBits))||l>=d)&&(l=-1):l=this.match_main(t,c,u),-1==l)i[a]=!1,o-=e[a].length2-e[a].length1;else if(i[a]=!0,o=l-u,c==(s=-1==d?t.substring(l,l+c.length):t.substring(l,d+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[a].diffs)+t.substring(l+c.length);else{var f=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(f);for(var p,h=0,g=0;ga[0][1].length){var l=n-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=l,i.start2-=l,i.length1+=l,i.length2+=l}return 0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0]?(a.push(new t.Diff(0,r)),i.length1+=n,i.length2+=n):n>a[a.length-1][1].length&&(l=n-a[a.length-1][1].length,a[a.length-1][1]+=r.substring(0,l),i.length1+=l,i.length2+=l),r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,o=0;o2*r?(u.length1+=f.length,a+=f.length,c=!1,u.diffs.push(new t.Diff(d,f)),i.diffs.shift()):(f=f.substring(0,r-u.length1-this.Patch_Margin),u.length1+=f.length,a+=f.length,0===d?(u.length2+=f.length,l+=f.length):c=!1,u.diffs.push(new t.Diff(d,f)),f==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(f.length))}s=(s=this.diff_text2(u.diffs)).substring(s.length-this.Patch_Margin);var p=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==p&&(u.length1+=p.length,u.length2+=p.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=p:u.diffs.push(new t.Diff(0,p))),c||e.splice(++o,0,u)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n{"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},2929:(e,t,n)=>{"use strict";var r=n(1278);e.exports=function e(t,n,o){var i;void 0===n&&(n=""),void 0===o&&(o=r);var a=new Map;function l(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(o(t))i=null,l([n],t);else{var s=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){return l([""+s+t],e),null}));else if(Array.isArray(t))i=t.map((function(t,n){var r=e(t,""+s+n,o);return r.files.forEach(l),r.clone}));else if(t&&t.constructor===Object)for(var u in i={},t){var c=e(t[u],""+s+u,o);c.files.forEach(l),i[u]=c.clone}else i=t}return{clone:i,files:a}}},9384:(e,t,n)=>{"use strict";t.ReactNativeFile=n(7570),t.extractFiles=n(2929),t.isExtractableFile=n(1278)},1278:(e,t,n)=>{"use strict";var r=n(7570);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},1688:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8749:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(9384),i=r(n(1688)),a=function(e){return o.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n){var r=o.extractFiles({query:e,variables:t,operationName:n},"",a),l=r.clone,s=r.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(l);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var u=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return JSON.stringify(u)}var c=new("undefined"==typeof FormData?i.default:FormData);c.append("operations",JSON.stringify(l));var d={},f=0;return s.forEach((function(e){d[++f]=e})),c.append("map",JSON.stringify(d)),f=0,s.forEach((function(e,t){c.append(""+ ++f,t)})),c}},6647:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,o.default&&(e.prototype[o.default]=t)};var r=i(n(5006)),o=i(n(8019));function i(e){return e&&e.__esModule?e:{default:e}}},8048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,o=(r=n(8019))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(o.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:a(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,o=[],i=0;i1&&o.push("... ".concat(r," more items")),"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},8019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},4560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,o=(r=n(2678))&&r.__esModule?r:{default:r},i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=i,(0,o.default)(i);var a=function(){function e(e,t,n,r,o,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=i,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,o.default)(a)},9501:(e,t)=>{"use strict";function n(e){for(var t=0;ta&&n(t[l-1]);)--l;return t.slice(a,l).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],a="\\"===e[e.length-1],l=!r||i||a||n,s="";return!l||r&&o||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,l&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}},3083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n(2624),o=n(9501),i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=u("(",l(e.variableDefinitions,", "),")"),o=l(e.directives," "),i=e.selectionSet;return n||o||r||"query"!==t?l([t,l([n,r]),o,i]," "):i},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+u(" = ",r)+u(" ",l(o," "))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=u("",t,": ")+n,s=a+u("(",l(r,", "),")");return s.length>80&&(s=a+u("(\n",c(l(r,"\n")),"\n)")),l([s,l(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",u("on ",t),l(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(u("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(u("",l(o," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,o.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+u("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return l(["schema",l(t," "),s(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return l(["scalar",e.name,l(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["type",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(f(n)?u("(\n",c(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+": "+r+u(" ",l(o," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return l([t+": "+n,u("= ",r),l(o," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["interface",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return l(["union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return l(["enum",t,l(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){return l([e.name,l(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return l(["input",t,l(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(f(n)?u("(\n",c(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),s(n)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend type",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend interface",t,u("implements ",l(n," & ")),l(r," "),s(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),s(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),s(r)]," ")}};function a(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function s(e){return u("{\n",c(l(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},2624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,u=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,h=void 0,g=void 0,m=[],v=[],y=e;do{var b=++d===c.length,w=b&&0!==f.length;if(b){if(h=0===v.length?void 0:m[m.length-1],p=g,g=v.pop(),w){if(u)p=p.slice();else{for(var x={},k=0,E=Object.keys(p);k{var r=n(7772).Symbol;e.exports=r},3366:(e,t,n)=>{var r=n(857),o=n(2107),i=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},1704:(e,t,n)=>{var r=n(2153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),o=n(1100),i=n(7642),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,u,c,d,f,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,h=t,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(x,t),g?y(e):d}function w(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=c}function x(){var e=o();if(w(e))return k(e);f=setTimeout(x,function(e){var n=t-(e-p);return m?l(n,c-(e-h)):n}(e))}function k(e){return f=void 0,v&&s?y(e):(s=u=void 0,d)}function E(){var e=o(),n=w(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(m)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=u=f=void 0},E.flush=function(){return void 0===f?d:k(o())},E}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},7642:(e,t,n)=>{var r=n(1704),o=n(9259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=null;return{mountedInstances:new Set,updateHead:t=>{const n=e=Promise.resolve().then((()=>{if(n!==e)return;e=null;const i={};t.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector(`style[data-href="${e.props["data-href"]}"]`))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const t=i[e.type]||[];t.push(e),i[e.type]=t}));const a=i.title?i.title[0]:null;let l="";if(a){const{children:e}=a.props;l="string"==typeof e?e:Array.isArray(e)?e.join(""):""}l!==document.title&&(document.title=l),["meta","base","link","style","script"].forEach((e=>{!function(e,t){const n=document.getElementsByTagName("head")[0],i=n.querySelector("meta[name=next-head-count]"),a=Number(i.content),l=[];for(let t=0,n=i.previousElementSibling;t{for(let t=0,n=l.length;t{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})),u.forEach((e=>n.insertBefore(e,i))),i.content=(a-l.length+u.length).toString()}(e,i[e]||[])}))}))}}},t.isEqualNode=o,t.DOMAttributeNames=void 0;const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r({type:e,props:t}){const r=document.createElement(e);for(const o in t){if(!t.hasOwnProperty(o))continue;if("children"===o||"dangerouslySetInnerHTML"===o)continue;if(void 0===t[o])continue;const i=n[o]||o.toLowerCase();"script"!==e||"async"!==i&&"defer"!==i&&"noModule"!==i?r.setAttribute(i,t[o]):r[i]=!!t[o]}const{children:o,dangerouslySetInnerHTML:i}=t;return i?r.innerHTML=i.__html||"":o&&(r.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),r}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}t.DOMAttributeNames=n,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var{src:t,sizes:n,unoptimized:r=!1,priority:o=!1,loading:c,lazyRoot:d=null,lazyBoundary:v="200px",className:k,quality:S,width:_,height:C,style:O,objectFit:P,objectPosition:j,onLoadingComplete:L,placeholder:R="empty",blurDataURL:T}=e,A=p(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]);const M=i.useContext(u.ImageConfigContext),I=i.useMemo((()=>{const e=h||M||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort(((e,t)=>e-t)),n=e.deviceSizes.sort(((e,t)=>e-t));return f({},e,{allSizes:t,deviceSizes:n})}),[M]);let D=A,N=n?"responsive":"intrinsic";"layout"in D&&(D.layout&&(N=D.layout),delete D.layout);let F=x;if("loader"in D){if(D.loader){const e=D.loader;F=t=>{const{config:n}=t,r=p(t,["config"]);return e(r)}}delete D.loader}let z="";if(function(e){return"object"==typeof e&&(y(e)||function(e){return void 0!==e.src}(e))}(t)){const e=y(t)?t.default:t;if(!e.src)throw new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`);if(T=T||e.blurDataURL,z=e.src,!(N&&"fill"===N||(C=C||e.height,_=_||e.width,e.height&&e.width)))throw new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`)}t="string"==typeof t?t:z;const $=w(_),B=w(C),W=w(S);let H=!o&&("lazy"===c||void 0===c);(t.startsWith("data:")||t.startsWith("blob:"))&&(r=!0,H=!1),"undefined"!=typeof window&&g.has(t)&&(H=!1);const[U,V]=i.useState(!1),[q,G,X]=s.useIntersection({rootRef:d,rootMargin:v,disabled:!H}),K=!H||G,Y={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Z={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0};let Q,J=!1;const ee={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:j},te=Object.assign({},O,"raw"===N?{}:ee),ne="blur"!==R||U?{}:{filter:"blur(20px)",backgroundSize:P||"cover",backgroundImage:`url("${T}")`,backgroundPosition:j||"0% 0%"};if("fill"===N)Y.display="block",Y.position="absolute",Y.top=0,Y.left=0,Y.bottom=0,Y.right=0;else if(void 0!==$&&void 0!==B){const e=B/$,t=isNaN(e)?"100%":100*e+"%";"responsive"===N?(Y.display="block",Y.position="relative",J=!0,Z.paddingTop=t):"intrinsic"===N?(Y.display="inline-block",Y.position="relative",Y.maxWidth="100%",J=!0,Z.maxWidth="100%",Q=`data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27${$}%27%20height=%27${B}%27/%3e`):"fixed"===N&&(Y.display="inline-block",Y.position="relative",Y.width=$,Y.height=B)}let re={src:m,srcSet:void 0,sizes:void 0};K&&(re=b({config:I,src:t,unoptimized:r,layout:N,width:$,quality:W,sizes:n,loader:F}));let oe=t,ie="imagesrcset",ae="imagesizes";window.omnivoreEnv.__NEXT_REACT_ROOT&&(ie="imageSrcSet",ae="imageSizes");const le={[ie]:re.srcSet,[ae]:re.sizes},se="undefined"==typeof window?i.default.useEffect:i.default.useLayoutEffect,ue=i.useRef(L),ce=i.useRef(t);i.useEffect((()=>{ue.current=L}),[L]),se((()=>{ce.current!==t&&(X(),ce.current=t)}),[X,t]);const de=f({isLazy:H,imgAttributes:re,heightInt:B,widthInt:$,qualityInt:W,layout:N,className:k,imgStyle:te,blurStyle:ne,loading:c,config:I,unoptimized:r,placeholder:R,loader:F,srcString:oe,onLoadingCompleteRef:ue,setBlurComplete:V,setIntersection:q,isVisible:K},D);return i.default.createElement(i.default.Fragment,null,"raw"===N?i.default.createElement(E,Object.assign({},de)):i.default.createElement("span",{style:Y},J?i.default.createElement("span",{style:Z},Q?i.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:Q}):null):null,i.default.createElement(E,Object.assign({},de))),o?i.default.createElement(a.default,null,i.default.createElement("link",Object.assign({key:"__nimg-"+re.src+re.srcSet+re.sizes,rel:"preload",as:"image",href:re.srcSet?void 0:re.src},le))):null)};var r,o,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),a=(r=n(5977))&&r.__esModule?r:{default:r},l=n(8467),s=n(3321),u=n(4329),c=(n(1624),n(1119));function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}null===(o=window.omnivoreEnv.__NEXT_IMAGE_OPTS)||void 0===o||o.experimentalLayoutRaw;const h=window.omnivoreEnv.__NEXT_IMAGE_OPTS,g=new Set;new Map;const m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";"undefined"==typeof window&&(n.g.__NEXT_IMAGE_IMPORTED=!0);const v=new Map([["default",function({config:e,src:t,width:n,quality:r}){return t.endsWith(".svg")&&!e.dangerouslyAllowSVG?t:`${c.normalizePathTrailingSlash(e.path)}?url=${encodeURIComponent(t)}&w=${n}&q=${r||75}`}],["imgix",function({config:e,src:t,width:n,quality:r}){const o=new URL(`${e.path}${S(t)}`),i=o.searchParams;return i.set("auto",i.get("auto")||"format"),i.set("fit",i.get("fit")||"max"),i.set("w",i.get("w")||n.toString()),r&&i.set("q",r.toString()),o.href}],["cloudinary",function({config:e,src:t,width:n,quality:r}){const o=["f_auto","c_limit","w_"+n,"q_"+(r||"auto")].join(",")+"/";return`${e.path}${o}${S(t)}`}],["akamai",function({config:e,src:t,width:n}){return`${e.path}${S(t)}?imwidth=${n}`}],["custom",function({src:e}){throw new Error(`Image with src "${e}" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader`)}]]);function y(e){return void 0!==e.default}function b({config:e,src:t,unoptimized:n,layout:r,width:o,quality:i,sizes:a,loader:l}){if(n)return{src:t,srcSet:void 0,sizes:void 0};const{widths:s,kind:u}=function({deviceSizes:e,allSizes:t},n,r,o){if(o&&("fill"===r||"responsive"===r||"raw"===r)){const n=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=n.exec(o);e)r.push(parseInt(e[2]));if(r.length){const n=.01*Math.min(...r);return{widths:t.filter((t=>t>=e[0]*n)),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n||"fill"===r||"responsive"===r?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map((e=>t.find((t=>t>=e))||t[t.length-1])))],kind:"x"}}(e,o,r,a),c=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map(((n,r)=>`${l({config:e,src:t,quality:i,width:n})} ${"w"===u?n:r+1}${u}`)).join(", "),src:l({config:e,src:t,quality:i,width:s[c]})}}function w(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function x(e){var t;const n=(null===(t=e.config)||void 0===t?void 0:t.loader)||"default",r=v.get(n);if(r)return r(e);throw new Error(`Unknown "loader" found in "next.config.js". Expected: ${l.VALID_LOADERS.join(", ")}. Received: ${n}`)}function k(e,t,n,r,o,i){e&&e.src!==m&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{if(e.parentNode&&(g.add(t),"blur"===r&&i(!0),null==o?void 0:o.current)){const{naturalWidth:t,naturalHeight:n}=e;o.current({naturalWidth:t,naturalHeight:n})}})))}const E=e=>{var{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:o,layout:a,className:l,imgStyle:s,blurStyle:u,isLazy:c,placeholder:d,loading:h,srcString:g,config:m,unoptimized:v,loader:y,onLoadingCompleteRef:w,setBlurComplete:x,setIntersection:E,onLoad:S,onError:_,isVisible:C}=e,O=p(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible"]);return i.default.createElement(i.default.Fragment,null,i.default.createElement("img",Object.assign({},O,t,"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,className:l,style:f({},s,u),ref:i.useCallback((e=>{E(e),(null==e?void 0:e.complete)&&k(e,g,0,d,w,x)}),[E,g,a,d,w,x]),onLoad:e=>{k(e.currentTarget,g,0,d,w,x),S&&S(e)},onError:e=>{"blur"===d&&x(!0),_&&_(e)}})),(c||"blur"===d)&&i.default.createElement("noscript",null,i.default.createElement("img",Object.assign({},O,b({config:m,src:g,unoptimized:v,layout:a,width:r,quality:o,sizes:t.sizes,loader:y}),"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,style:s,className:l,loading:h||"lazy"}))))};function S(e){return"/"===e[0]?e.slice(1):e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},4529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(6640),a=n(9518),l=n(3321);const s={};function u(e,t,n,r){if("undefined"==typeof window||!e)return;if(!i.isLocalURL(t))return;e.prefetch(t,n,r).catch((e=>{}));const o=r&&void 0!==r.locale?r.locale:e&&e.locale;s[t+"%"+n+(o?"%"+o:"")]=!0}var c=o.default.forwardRef(((e,t)=>{const{legacyBehavior:n=!0!==Boolean(window.omnivoreEnv.__NEXT_NEW_LINK_BEHAVIOR)}=e;let r;const{href:c,as:d,children:f,prefetch:p,passHref:h,replace:g,shallow:m,scroll:v,locale:y,onClick:b,onMouseEnter:w}=e,x=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter"]);r=f,n&&"string"==typeof r&&(r=o.default.createElement("a",null,r));const k=!1!==p,E=a.useRouter(),{href:S,as:_}=o.default.useMemo((()=>{const[e,t]=i.resolveHref(E,c,!0);return{href:e,as:d?i.resolveHref(E,d):t||e}}),[E,c,d]),C=o.default.useRef(S),O=o.default.useRef(_);let P;n&&(P=o.default.Children.only(r));const j=n?P&&"object"==typeof P&&P.ref:t,[L,R,T]=l.useIntersection({rootMargin:"200px"}),A=o.default.useCallback((e=>{O.current===_&&C.current===S||(T(),O.current=_,C.current=S),L(e),j&&("function"==typeof j?j(e):"object"==typeof j&&(j.current=e))}),[_,j,S,T,L]);o.default.useEffect((()=>{const e=R&&k&&i.isLocalURL(S),t=void 0!==y?y:E&&E.locale,n=s[S+"%"+_+(t?"%"+t:"")];e&&!n&&u(E,S,_,{locale:t})}),[_,S,R,y,k,E]);const M={ref:A,onClick:e=>{n||"function"!=typeof b||b(e),n&&P.props&&"function"==typeof P.props.onClick&&P.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,a,l,s){const{nodeName:u}=e.currentTarget;("A"!==u.toUpperCase()||!function(e){const{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&i.isLocalURL(n))&&(e.preventDefault(),t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:l}))}(e,E,S,_,g,m,v,y)},onMouseEnter:e=>{n||"function"!=typeof w||w(e),n&&P.props&&"function"==typeof P.props.onMouseEnter&&P.props.onMouseEnter(e),i.isLocalURL(S)&&u(E,S,_,{priority:!0})}};if(!n||h||"a"===P.type&&!("href"in P.props)){const e=void 0!==y?y:E&&E.locale,t=E&&E.isLocaleDomain&&i.getDomainLocale(_,e,E&&E.locales,E&&E.domainLocales);M.href=t||i.addBasePath(i.addLocale(_,e,E&&E.defaultLocale))}return n?o.default.cloneElement(P,M):o.default.createElement("a",Object.assign({},x,M),r)}));t.default=c,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},1119:(e,t)=>{"use strict";function n(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.removePathTrailingSlash=n,t.normalizePathTrailingSlash=void 0;const r=window.omnivoreEnv.__NEXT_TRAILING_SLASH?e=>/\.[^/]+\/?$/.test(e)?n(e):e.endsWith("/")?e:e+"/":n;t.normalizePathTrailingSlash=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},1976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIdleCallback=t.requestIdleCallback=void 0;const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=n;const r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=r,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},7928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=u,t.isAssetError=function(e){return e&&s in e},t.getClientBuildManifest=d,t.getMiddlewareManifest=function(){return self.__MIDDLEWARE_MANIFEST?Promise.resolve(self.__MIDDLEWARE_MANIFEST):c(new Promise((e=>{const t=self.__MIDDLEWARE_MANIFEST_CB;self.__MIDDLEWARE_MANIFEST_CB=()=>{e(self.__MIDDLEWARE_MANIFEST),t&&t()}})),i,u(new Error("Failed to load client middleware manifest")))},t.createRouteLoader=function(e){const t=new Map,n=new Map,r=new Map,s=new Map;function d(e){{let t=n.get(e);return t||(document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(n.set(e,t=function(e,t){return new Promise(((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(u(new Error(`Failed to load script: ${e}`))),t.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,t.src=e,document.body.appendChild(t)}))}(e)),t))}}function p(e){let t=r.get(e);return t||(r.set(e,t=fetch(e).then((t=>{if(!t.ok)throw new Error(`Failed to load stylesheet: ${e}`);return t.text().then((t=>({href:e,content:t})))})).catch((e=>{throw u(e)}))),t)}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,n){(n?Promise.resolve().then((()=>n())).then((e=>({component:e&&e.default||e,exports:e})),(e=>({error:e}))):Promise.resolve(void 0)).then((n=>{const r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),s.delete(e))}))},loadRoute(n,r){return a(n,s,(()=>c(f(e,n).then((({scripts:e,css:r})=>Promise.all([t.has(n)?[]:Promise.all(e.map(d)),Promise.all(r.map(p))]))).then((e=>this.whenEntrypoint(n).then((t=>({entrypoint:t,styles:e[1]}))))),i,u(new Error(`Route did not complete loading: ${n}`))).then((({entrypoint:e,styles:t})=>{const n=Object.assign({styles:t},e);return"error"in e?e:n})).catch((e=>{if(r)throw e;return{error:e}})).finally((()=>{}))))},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():f(e,t).then((e=>Promise.all(l?e.scripts.map((e=>{return t=e,n="script",new Promise(((e,o)=>{const i=`\n link[rel="prefetch"][href^="${t}"],\n link[rel="preload"][href^="${t}"],\n script[src^="${t}"]`;if(document.querySelector(i))return e();(r=document.createElement("link")).as=n,r.rel="prefetch",r.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,r.onload=e,r.onerror=o,r.href=t,document.head.appendChild(r)}));var t,n,r})):[]))).then((()=>{o.requestIdleCallback((()=>this.loadRoute(t,!0).catch((()=>{}))))})).catch((()=>{}))}}},(r=n(9983))&&r.__esModule;var r,o=n(1976);const i=3800;function a(e,t,n){let r,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);const i=new Promise((e=>{r=e}));return t.set(e,o={resolve:r,future:i}),n?n().then((e=>(r(e),e))).catch((n=>{throw t.delete(e),n})):i}const l=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),s=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,s,{})}function c(e,t,n){return new Promise(((r,i)=>{let a=!1;e.then((e=>{a=!0,r(e)})).catch(i),o.requestIdleCallback((()=>setTimeout((()=>{a||i(n)}),t)))}))}function d(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):c(new Promise((e=>{const t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}})),i,u(new Error("Failed to load client build manifest")))}function f(e,t){return d().then((n=>{if(!(t in n))throw u(new Error(`Failed to lookup route: ${t}`));const r=n[t].map((t=>e+"/_next/"+encodeURI(t)));return{scripts:r.filter((e=>e.endsWith(".js"))),css:r.filter((e=>e.endsWith(".css")))}}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return l.default}}),t.useRouter=function(){return r.default.useContext(i.RouterContext)},t.createRouter=function(...e){return u.router=new o.default(...e),u.readyCallbacks.forEach((e=>e())),u.readyCallbacks=[],u.router},t.makePublicRouterInstance=function(e){const t=e,n={};for(const e of c)"object"!=typeof t[e]?n[e]=t[e]:n[e]=Object.assign(Array.isArray(t[e])?[]:{},t[e]);return n.events=o.default.events,d.forEach((e=>{n[e]=(...n)=>t[e](...n)})),n},t.default=void 0;var r=s(n(2784)),o=s(n(6640)),i=n(6510),a=s(n(274)),l=s(n(9564));function s(e){return e&&e.__esModule?e:{default:e}}const u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>o.default.events}),c.forEach((e=>{Object.defineProperty(u,e,{get:()=>f()[e]})})),d.forEach((e=>{u[e]=(...t)=>f()[e](...t)})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((e=>{u.ready((()=>{o.default.events.on(e,((...t)=>{const n=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`,r=u;if(r[n])try{r[n](...t)}catch(e){console.error(`Error when running the Router event: ${n}`),console.error(a.default(e)?`${e.message}\n${e.stack}`:e+"")}}))}))}));var p=u;t.default=p,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleClientScriptLoad=p,t.initScriptLoader=function(e){e.forEach(p),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");c.add(t)}))},t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),o=n(7177),i=n(9410),a=n(1976);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t{const{src:t,id:n,onLoad:r=(()=>{}),dangerouslySetInnerHTML:o,children:a="",strategy:l="afterInteractive",onError:s}=e,f=n||t;if(f&&c.has(f))return;if(u.has(t))return c.add(f),void u.get(t).then(r,s);const p=document.createElement("script"),h=new Promise(((e,t)=>{p.addEventListener("load",(function(t){e(),r&&r.call(this,t)})),p.addEventListener("error",(function(e){t(e)}))})).catch((function(e){s&&s(e)}));t&&u.set(t,h),c.add(f),o?p.innerHTML=o.__html||"":a?p.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"":t&&(p.src=t);for(const[t,n]of Object.entries(e)){if(void 0===n||d.includes(t))continue;const e=i.DOMAttributeNames[t]||t.toLowerCase();p.setAttribute(e,n)}"worker"===l&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",l),document.body.appendChild(p)};function p(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{a.requestIdleCallback((()=>f(e)))})):f(e)}t.default=function(e){const{src:t="",onLoad:n=(()=>{}),strategy:i="afterInteractive",onError:l}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["src","onLoad","strategy","onError"]),{updateScripts:d,scripts:p,getIsSsr:h}=r.useContext(o.HeadManagerContext);return r.useEffect((()=>{"afterInteractive"===i?f(e):"lazyOnload"===i&&function(e){"complete"===document.readyState?a.requestIdleCallback((()=>f(e))):window.addEventListener("load",(()=>{a.requestIdleCallback((()=>f(e)))}))}(e)}),[e,i]),"beforeInteractive"!==i&&"worker"!==i||(d?(p[i]=(p[i]||[]).concat([s({src:t,onLoad:n,onError:l},u)]),d(p)):h&&h()?c.add(u.id||t):h&&!h()&&f(e)),null},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},3321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function({rootRef:e,rootMargin:t,disabled:n}){const s=n||!i,u=r.useRef(),[c,d]=r.useState(!1),[f,p]=r.useState(e?e.current:null),h=r.useCallback((e=>{u.current&&(u.current(),u.current=void 0),s||c||e&&e.tagName&&(u.current=function(e,t,n){const{id:r,observer:o,elements:i}=function(e){const t={root:e.root||null,margin:e.rootMargin||""};let n,r=l.find((e=>e.root===t.root&&e.margin===t.margin));if(r?n=a.get(r):(n=a.get(t),l.push(t)),n)return n;const o=new Map,i=new IntersectionObserver((e=>{e.forEach((e=>{const t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return a.set(t,n={id:t,observer:i,elements:o}),n}(n);return i.set(e,(e=>e&&d(e))),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex((e=>e.root===r.root&&e.margin===r.margin));e>-1&&l.splice(e,1)}}}(e,0,{root:f,rootMargin:t}))}),[s,f,t,c]),g=r.useCallback((()=>{d(!1)}),[]);return r.useEffect((()=>{if(!i&&!c){const e=o.requestIdleCallback((()=>d(!0)));return()=>o.cancelIdleCallback(e)}}),[c]),r.useEffect((()=>{e&&p(e.current)}),[e]),[h,c,g]};var r=n(2784),o=n(1976);const i="undefined"!=typeof IntersectionObserver,a=new Map,l=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return o.default.createElement(e,Object.assign({router:i.useRouter()},t))}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(9518);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9264:(e,t)=>{"use strict";function n(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;a+=e[l++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=l}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a="[^"+i(t.delimiter||"/#?")+"]+?",l=[],s=0,u=0,c="",d=function(e){if(u-1:void 0===k;o||(g+="(?:"+h+"(?="+p+"))?"),E||(g+="(?="+h+"|"+p+")")}return new RegExp(g,a(n))}function s(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.getProperError=function(e){return o(e)?e:new Error(r.isPlainObject(e)?JSON.stringify(e):e+"")};var r=n(9910);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}},1719:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},9739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(1719);function a({ampFirst:e=!1,hybrid:t=!1,hasQuery:n=!1}={}){return e||t&&n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},8058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){return n.test(e)?e.replace(r,"\\$&"):e};const n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g},7177:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.HeadManagerContext=o},5977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=u,t.default=void 0;var r,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),i=(r=n(1889))&&r.__esModule?r:{default:r},a=n(1719),l=n(7177),s=n(9739);function u(e=!1){const t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t)),[])):e.concat(t)}n(1624);const d=["name","httpEquiv","charSet","itemProp"];function f(e,t){return e.reduce(((e,t)=>{const n=o.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(c,[]).reverse().concat(u(t.inAmpMode)).filter(function(){const e=new Set,t=new Set,n=new Set,r={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;const t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=d.length;e{const r=e.key||n;if(window.omnivoreEnv.__NEXT_OPTIMIZE_FONTS&&!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((t=>e.props.href.startsWith(t)))){const t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})}))}t.default=function({children:e}){const t=o.useContext(a.AmpStateContext),n=o.useContext(l.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:f,headManager:n,inAmpMode:s.isInAmpMode(t)},e)},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},927:(e,t)=>{"use strict";t.D=function(e,t,n){let r;if(e){n&&(n=n.toLowerCase());for(const a of e){var o,i;if(t===(null===(o=a.domain)||void 0===o?void 0:o.split(":")[0].toLowerCase())||n===a.defaultLocale.toLowerCase()||(null===(i=a.locales)||void 0===i?void 0:i.some((e=>e.toLowerCase()===n)))){r=a;break}}}return r}},816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){let n;const r=e.split("/");return(t||[]).some((t=>!(!r[1]||r[1].toLowerCase()!==t.toLowerCase()||(n=t,r.splice(1,1),e=r.join("/")||"/",0)))),{pathname:e,detectedLocale:n}}},4329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConfigContext=void 0;var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(8467);const a=o.default.createContext(i.imageConfigDefault);t.ImageConfigContext=a},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0,t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;"}},9910:(e,t)=>{"use strict";function n(e){return Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectClassLabel=n,t.isPlainObject=function(e){if("[object Object]"!==n(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},7471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t,...n){(e[t]||[]).slice().map((e=>{e(...n)}))}}}},997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalizePagePath=function(e){let t=o.normalizePathSep(e);return t.startsWith("/index/")&&!r.isDynamicRoute(t)?t.slice(6):"/index"!==t?t:"/"};var r=n(9150),o=n(9356)},9356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=function(e){return e.replace(/\\/g,"/")}},6510:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext(null);t.RouterContext=o},6640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){t=t||s.normalizeLocalePath(e,n).detectedLocale;const o=w(r,void 0,t);return!!o&&`http${o.http?"":"s"}://${o.domain}${x||""}${t===o.defaultLocale?"":`/${t}`}${e}`}return!1},t.addLocale=_,t.delLocale=C,t.hasBasePath=P,t.addBasePath=j,t.delBasePath=L,t.isLocalURL=R,t.interpolateAs=T,t.resolveHref=M,t.default=void 0;var r=n(1119),o=n(7928),i=n(9515),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(274)),l=n(997),s=n(816),u=b(n(7471)),c=n(1624),d=n(7482),f=n(1577),p=n(646),h=b(n(5317)),g=n(3107),m=n(4794),v=n(2763),y=n(6555);function b(e){return e&&e.__esModule?e:{default:e}}let w;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(w=n(927).D);const x=window.omnivoreEnv.__NEXT_ROUTER_BASEPATH||"";function k(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function E(e,t){if(!e.startsWith("/")||!t)return e;const n=O(e);return r.normalizePathTrailingSlash(`${t}${n}`)+e.slice(n.length)}function S(e,t){return(e=O(e))===t||e.startsWith(t+"/")}function _(e,t,n){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&t&&t!==n){const n=O(e).toLowerCase();if(!S(n,"/"+t.toLowerCase())&&!S(n,"/api"))return E(e,"/"+t)}return e}function C(e,t){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){const n=O(e),r=n.toLowerCase(),o=t&&t.toLowerCase();return t&&(r.startsWith("/"+o+"/")||r==="/"+o)?(n.length===t.length+1?"/":"")+e.slice(t.length+1):e}return e}function O(e){const t=e.indexOf("?"),n=e.indexOf("#");return(t>-1||n>-1)&&(e=e.substring(0,t>-1?t:n)),e}function P(e){return S(e,x)}function j(e){return E(e,x)}function L(e){return(e=e.slice(x.length)).startsWith("/")||(e=`/${e}`),e}function R(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{const t=c.getLocationOrigin(),n=new URL(e,t);return n.origin===t&&P(n.pathname)}catch(e){return!1}}function T(e,t,n){let r="";const o=m.getRouteRegex(e),i=o.groups,a=(t!==e?g.getRouteMatcher(o)(t):"")||n;r=e;const l=Object.keys(i);return l.every((e=>{let t=a[e]||"";const{repeat:n,optional:o}=i[e];let l=`[${n?"...":""}${e}]`;return o&&(l=`${t?"":"/"}[${l}]`),n&&!Array.isArray(t)&&(t=[t]),(o||e in a)&&(r=r.replace(l,n?t.map((e=>encodeURIComponent(e))).join("/"):encodeURIComponent(t))||"/")}))||(r=""),{params:l,result:r}}function A(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}function M(e,t,n){let o,i="string"==typeof t?t:y.formatWithValidation(t);const a=i.match(/^[a-zA-Z]{1,}:\/\//),l=a?i.slice(a[0].length):i;if((l.split("?")[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href passed to next/router: ${i}, repeated forward-slashes (//) or backslashes \\ are not valid in the href`);const e=c.normalizeRepeatedSlashes(l);i=(a?a[0]:"")+e}if(!R(i))return n?[i]:i;try{o=new URL(i.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){o=new URL("/","http://n")}try{const e=new URL(i,o);e.pathname=r.normalizePathTrailingSlash(e.pathname);let t="";if(d.isDynamicRoute(e.pathname)&&e.searchParams&&n){const n=p.searchParamsToUrlQuery(e.searchParams),{result:r,params:o}=T(e.pathname,e.pathname,n);r&&(t=y.formatWithValidation({pathname:r,hash:e.hash,query:A(n,o)}))}const a=e.origin===o.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[i]:i}}function I(e){const t=c.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function D(e,t,n){let[r,o]=M(e,t,!0);const i=c.getLocationOrigin(),a=r.startsWith(i),l=o&&o.startsWith(i);r=I(r),o=o?I(o):o;const s=a?r:j(r),u=n?I(M(e,n)):o||r;return{url:s,as:l?u:j(u)}}function N(e,t){const n=r.removePathTrailingSlash(l.denormalizePagePath(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some((t=>{if(d.isDynamicRoute(t)&&m.getRouteRegex(t).re.test(n))return e=t,!0})),r.removePathTrailingSlash(e))}const F=window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&"undefined"!=typeof window&&"scrollRestoration"in window.history&&!!function(){try{let e="__next";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){}}(),z=Symbol("SSG_DATA_NOT_FOUND");function $(e,t,n){return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok){if(t>1&&r.status>=500)return $(e,t-1,n);if(404===r.status)return r.json().then((e=>{if(e.notFound)return{notFound:z};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return n.text?r.text():r.json()}))}function B(e,t,n,r,i){const{href:a}=new URL(e,window.location.href);return void 0!==r[a]?r[a]:r[a]=$(e,t?3:1,{text:n}).catch((e=>{throw t||o.markAssetError(e),e})).then((e=>(i||delete r[a],e))).catch((e=>{throw delete r[a],e}))}class W{constructor(e,t,n,{initialProps:o,pageLoader:i,App:a,wrapApp:l,Component:s,err:u,subscription:p,isFallback:h,locale:g,locales:m,defaultLocale:v,domainLocales:b,isPreview:k,isRsc:E}){this.sdc={},this.sdr={},this.sde={},this._idx=0,this.onPopState=e=>{const t=e.state;if(!t){const{pathname:e,query:t}=this;return void this.changeState("replaceState",y.formatWithValidation({pathname:j(e),query:t}),c.getURL())}if(!t.__N)return;let n;const{url:r,as:o,options:i,idx:a}=t;if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F&&this._idx!==a){try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{const e=sessionStorage.getItem("__next_scroll_"+a);n=JSON.parse(e)}catch{n={x:0,y:0}}}this._idx=a;const{pathname:l}=f.parseRelativeUrl(r);this.isSsr&&o===j(this.asPath)&&l===j(this.pathname)||this._bps&&!this._bps(t)||this.change("replaceState",r,o,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale}),n)};const S=r.removePathTrailingSlash(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:u,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP,__N_RSC:!!E}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=W.events,this.pageLoader=i;const _=d.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=x,this.sub=p,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!(!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp)&&(_||self.location.search||window.omnivoreEnv.__NEXT_HAS_REWRITES)),window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(this.locales=m,this.defaultLocale=v,this.domainLocales=b,this.isLocaleDomain=!!w(b,self.location.hostname)),this.state={route:S,pathname:e,query:t,asPath:_?e:n,isPreview:!!k,locale:window.omnivoreEnv.__NEXT_I18N_SUPPORT?g:void 0,isFallback:h},"undefined"!=typeof window){if(!n.startsWith("//")){const r={locale:g};r._shouldResolveHref=n!==e,this.changeState("replaceState",y.formatWithValidation({pathname:j(e),query:t}),c.getURL(),r)}window.addEventListener("popstate",this.onPopState),window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}push(e,t,n={}){if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F)try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return({url:e,as:t}=D(this,e,t)),this.change("pushState",e,t,n)}replace(e,t,n={}){return({url:e,as:t}=D(this,e,t)),this.change("replaceState",e,t,n)}async change(e,t,n,l,u){if(!R(t))return window.location.href=t,!1;const p=l._h||l._shouldResolveHref||O(t)===O(n),v={...this.state};l._h&&(this.isReady=!0);const b=v.locale;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){v.locale=!1===l.locale?this.defaultLocale:l.locale||v.locale,void 0===l.locale&&(l.locale=v.locale);const e=f.parseRelativeUrl(P(n)?L(n):n),r=s.normalizeLocalePath(e.pathname,this.locales);r.detectedLocale&&(v.locale=r.detectedLocale,e.pathname=j(e.pathname),n=y.formatWithValidation(e),t=j(s.normalizeLocalePath(P(t)?L(t):t,this.locales).pathname));let o=!1;var x;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&((null===(x=this.locales)||void 0===x?void 0:x.includes(v.locale))||(e.pathname=_(e.pathname,v.locale),window.location.href=y.formatWithValidation(e),o=!0));const i=w(this.domainLocales,void 0,v.locale);if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!o&&i&&this.isLocaleDomain&&self.location.hostname!==i.domain){const e=L(n);window.location.href=`http${i.http?"":"s"}://${i.domain}${j(`${v.locale===i.defaultLocale?"":`/${v.locale}`}${"/"===e?"":e}`||"/")}`,o=!0}if(o)return new Promise((()=>{}))}l._h||(this.isSsr=!1),c.ST&&performance.mark("routeChange");const{shallow:k=!1,scroll:E=!0}=l,S={shallow:k};this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,S),n=j(_(P(n)?L(n):n,l.locale,this.defaultLocale));const M=C(P(n)?L(n):n,v.locale);this._inFlightRoute=n;let I=b!==v.locale;if(!l._h&&this.onlyAHashChange(M)&&!I)return v.asPath=M,W.events.emit("hashChangeStart",n,S),this.changeState(e,t,n,{...l,scroll:!1}),E&&this.scrollToHash(M),this.set(v,this.components[v.route],null),W.events.emit("hashChangeComplete",n,S),!0;let F,$,B=f.parseRelativeUrl(t),{pathname:H,query:U}=B;try{[F,{__rewrites:$}]=await Promise.all([this.pageLoader.getPageList(),o.getClientBuildManifest(),this.pageLoader.getMiddlewareList()])}catch(e){return window.location.href=n,!1}this.urlIsNew(M)||I||(e="replaceState");let V=n;if(H=H?r.removePathTrailingSlash(L(H)):H,p&&"/_error"!==H)if(l._shouldResolveHref=!0,window.omnivoreEnv.__NEXT_HAS_REWRITES&&n.startsWith("/")){const e=h.default(j(_(M,v.locale)),F,$,U,(e=>N(e,F)),this.locales);if(e.externalDest)return location.href=n,!0;V=e.asPath,e.matchedPage&&e.resolvedHref&&(H=e.resolvedHref,B.pathname=j(H),t=y.formatWithValidation(B))}else B.pathname=N(H,F),B.pathname!==H&&(H=B.pathname,B.pathname=j(H),t=y.formatWithValidation(B));if(!R(n))return window.location.href=n,!1;if(V=C(L(V),v.locale),(!l.shallow||1===l._h)&&(1!==l._h||d.isDynamicRoute(r.removePathTrailingSlash(H)))){const r=await this._preflightRequest({as:n,cache:!0,pages:F,pathname:H,query:U,locale:v.locale,isPreview:v.isPreview});if("rewrite"===r.type)U={...U,...r.parsedAs.query},V=r.asPath,H=r.resolvedHref,B.pathname=r.resolvedHref,t=y.formatWithValidation(B);else{if("redirect"===r.type&&r.newAs)return this.change(e,r.newUrl,r.newAs,l);if("redirect"===r.type&&r.destination)return window.location.href=r.destination,new Promise((()=>{}));if("refresh"===r.type&&n!==window.location.pathname)return window.location.href=n,new Promise((()=>{}))}}const q=r.removePathTrailingSlash(H);if(d.isDynamicRoute(q)){const e=f.parseRelativeUrl(V),r=e.pathname,o=m.getRouteRegex(q),i=g.getRouteMatcher(o)(r),a=q===r,l=a?T(q,r,U):{};if(!i||a&&!l.result){const e=Object.keys(o.groups).filter((e=>!U[e]));if(e.length>0)throw new Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${r}) is incompatible with the \`href\` value (${q}). `)+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}else a?n=y.formatWithValidation(Object.assign({},e,{pathname:l.result,query:A(U,l.params)})):Object.assign(U,i)}W.events.emit("routeChangeStart",n,S);try{var G,X;let r=await this.getRouteInfo(q,H,U,n,V,S,v.locale,v.isPreview),{error:o,props:a,__N_SSG:s,__N_SSP:c}=r;const d=r.Component;if(d&&d.unstable_scriptLoader&&[].concat(d.unstable_scriptLoader()).forEach((e=>{i.handleClientScriptLoad(e.props)})),(s||c)&&a){if(a.pageProps&&a.pageProps.__N_REDIRECT){const t=a.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.pageProps.__N_REDIRECT_BASE_PATH){const n=f.parseRelativeUrl(t);n.pathname=N(n.pathname,F);const{url:r,as:o}=D(this,t,t);return this.change(e,r,o,l)}return window.location.href=t,new Promise((()=>{}))}if(v.isPreview=!!a.__N_PREVIEW,a.notFound===z){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}r=await this.getRouteInfo(e,e,U,n,V,{shallow:!1},v.locale,v.isPreview)}}W.events.emit("beforeHistoryChange",n,S),this.changeState(e,t,n,l),l._h&&"/_error"===H&&500===(null===(G=self.__NEXT_DATA__.props)||void 0===G||null===(X=G.pageProps)||void 0===X?void 0:X.statusCode)&&(null==a?void 0:a.pageProps)&&(a.pageProps.statusCode=500);const p=l.shallow&&v.route===q;var K;const h=(null!==(K=l.scroll)&&void 0!==K?K:!p)?{x:0,y:0}:null;if(await this.set({...v,route:q,pathname:H,query:U,asPath:M,isFallback:!1},r,null!=u?u:h).catch((e=>{if(!e.cancelled)throw e;o=o||e})),o)throw W.events.emit("routeChangeError",o,M,S),o;return window.omnivoreEnv.__NEXT_I18N_SUPPORT&&v.locale&&(document.documentElement.lang=v.locale),W.events.emit("routeChangeComplete",n,S),!0}catch(e){if(a.default(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r={}){"pushState"===e&&c.getURL()===n||(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",n))}async handleRouteInfoError(e,t,n,r,i,l){if(e.cancelled)throw e;if(o.isAssetError(e)||l)throw W.events.emit("routeChangeError",e,r,i),window.location.href=r,k();try{let r,o,i;void 0!==r&&void 0!==o||({page:r,styleSheets:o}=await this.fetchComponent("/_error"));const a={props:i,Component:r,styleSheets:o,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(r,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError(a.default(e)?e:new Error(e+""),t,n,r,i,!0)}}async getRouteInfo(e,t,n,r,o,i,l,s){try{const a=this.components[e];if(i.shallow&&a&&this.route===e)return a;let u;a&&!("initial"in a)&&(u=a);const c=u||await this.fetchComponent(e).then((e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP,__N_RSC:!!e.mod.__next_rsc__}))),{Component:d,__N_SSG:f,__N_SSP:p,__N_RSC:h}=c;let g;const m=p&&h;(f||p||h)&&(g=this.pageLoader.getDataHref({href:y.formatWithValidation({pathname:t,query:n}),asPath:o,ssg:f,flight:m,locale:l}));const v=await this._getData((()=>(f||p||h)&&!m?B(g,this.isSsr,!1,f?this.sdc:this.sdr,!!f&&!s):this.getInitialProps(d,{pathname:t,query:n,asPath:r,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})));if(h)if(m){const{data:e}=await this._getData((()=>this._getFlightData(g)));v.pageProps=Object.assign(v.pageProps,{__flight__:e})}else{const{__flight__:e}=v;v.pageProps=Object.assign({},v.pageProps,{__flight__:e})}return c.props=v,this.components[e]=c,c}catch(e){return this.handleRouteInfoError(a.getProperError(e),t,n,r,i)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;const[t,n]=this.asPath.split("#"),[r,o]=e.split("#");return!(!o||t!==r||n!==o)||t===r&&n!==o}scrollToHash(e){const[,t=""]=e.split("#");if(""===t||"top"===t)return void window.scrollTo(0,0);const n=document.getElementById(t);if(n)return void n.scrollIntoView();const r=document.getElementsByName(t)[0];r&&r.scrollIntoView()}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,n={}){let i=f.parseRelativeUrl(e),{pathname:a,query:l}=i;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!1===n.locale){a=s.normalizeLocalePath(a,this.locales).pathname,i.pathname=a,e=y.formatWithValidation(i);let r=f.parseRelativeUrl(t);const o=s.normalizeLocalePath(r.pathname,this.locales);r.pathname=o.pathname,n.locale=o.detectedLocale||this.defaultLocale,t=y.formatWithValidation(r)}const u=await this.pageLoader.getPageList();let c=t;if(window.omnivoreEnv.__NEXT_HAS_REWRITES&&t.startsWith("/")){let n;({__rewrites:n}=await o.getClientBuildManifest());const r=h.default(j(_(t,this.locale)),u,n,i.query,(e=>N(e,u)),this.locales);if(r.externalDest)return;c=C(L(r.asPath),this.locale),r.matchedPage&&r.resolvedHref&&(a=r.resolvedHref,i.pathname=a,e=y.formatWithValidation(i))}else i.pathname=N(i.pathname,u),i.pathname!==a&&(a=i.pathname,i.pathname=a,e=y.formatWithValidation(i));const d=await this._preflightRequest({as:j(t),cache:!0,pages:u,pathname:a,query:l,locale:this.locale,isPreview:this.isPreview});"rewrite"===d.type&&(i.pathname=d.resolvedHref,a=d.resolvedHref,l={...l,...d.parsedAs.query},c=d.asPath,e=y.formatWithValidation(i));const p=r.removePathTrailingSlash(a);await Promise.all([this.pageLoader._isSsg(p).then((t=>!!t&&B(this.pageLoader.getDataHref({href:e,asPath:c,ssg:!0,locale:void 0!==n.locale?n.locale:this.locale}),!1,!1,this.sdc,!0))),this.pageLoader[n.priority?"loadPage":"prefetch"](p)])}async fetchComponent(e){let t=!1;const n=this.clc=()=>{t=!0},r=()=>{if(t){const t=new Error(`Abort fetching component for route: "${e}"`);throw t.cancelled=!0,t}n===this.clc&&(this.clc=null)};try{const t=await this.pageLoader.loadPage(e);return r(),t}catch(e){throw r(),e}}_getData(e){let t=!1;const n=()=>{t=!0};return this.clc=n,e().then((e=>{if(n===this.clc&&(this.clc=null),t){const e=new Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e}))}_getFlightData(e){return B(e,!0,!0,this.sdc,!1).then((e=>({data:e})))}async _preflightRequest(e){const t=O(e.as),n=C(P(t)?L(t):t,e.locale);if(!(await this.pageLoader.getMiddlewareList()).some((([e,t])=>g.getRouteMatcher(v.getMiddlewareRegex(e,!t))(n))))return{type:"next"};const o=_(e.as,e.locale);let i;try{i=await this._getPreflightData({preflightHref:o,shouldCache:e.cache,isPreview:e.isPreview})}catch(t){return{type:"redirect",destination:e.as}}if(i.rewrite){if(!i.rewrite.startsWith("/"))return{type:"redirect",destination:e.as};const t=f.parseRelativeUrl(s.normalizeLocalePath(P(i.rewrite)?L(i.rewrite):i.rewrite,this.locales).pathname),n=r.removePathTrailingSlash(t.pathname);let o,a;return e.pages.includes(n)?(o=!0,a=n):(a=N(n,e.pages),a!==t.pathname&&e.pages.includes(a)&&(o=!0)),{type:"rewrite",asPath:t.pathname,parsedAs:t,matchedPage:o,resolvedHref:a}}if(i.redirect){if(i.redirect.startsWith("/")){const e=r.removePathTrailingSlash(s.normalizeLocalePath(P(i.redirect)?L(i.redirect):i.redirect,this.locales).pathname),{url:t,as:n}=D(this,e,e);return{type:"redirect",newUrl:t,newAs:n}}return{type:"redirect",destination:i.redirect}}return i.refresh&&!i.ssr?{type:"refresh"}:{type:"next"}}_getPreflightData(e){const{preflightHref:t,shouldCache:n=!1,isPreview:r}=e,{href:o}=new URL(t,window.location.href);return!r&&n&&this.sde[o]?Promise.resolve(this.sde[o]):fetch(t,{method:"HEAD",credentials:"same-origin",headers:{"x-middleware-preflight":"1"}}).then((e=>{if(!e.ok)throw new Error("Failed to preflight request");return{cache:e.headers.get("x-middleware-cache"),redirect:e.headers.get("Location"),refresh:e.headers.has("x-middleware-refresh"),rewrite:e.headers.get("x-middleware-rewrite"),ssr:!!e.headers.get("x-middleware-ssr")}})).then((e=>(n&&"no-cache"!==e.cache&&(this.sde[o]=e),e))).catch((e=>{throw delete this.sde[o],e}))}getInitialProps(e,t){const{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,c.loadGetInitialProps(n,{AppTree:r,Component:e,router:this,ctx:t})}abortComponentLoad(e,t){this.clc&&(W.events.emit("routeChangeError",k(),e,t),this.clc(),this.clc=null)}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}t.default=W,W.events=u.default()},6555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=i,t.formatWithValidation=function(e){return i(e)},t.urlObjectKeys=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(646));const o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${i}${u}${a}${c}${l}`}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},9983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:`${e}`)+t}},2763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMiddlewareRegex=function(e,t=!0){const n=r.getParametrizedRoute(e);let o=t?"(?!_next).*":"",i=t?"(?:(/.*)?)":"";return"routeKeys"in n?"/"===n.parameterizedRoute?{groups:{},namedRegex:`^/${o}$`,re:new RegExp(`^/${o}$`),routeKeys:{}}:{groups:n.groups,namedRegex:`^${n.namedParameterizedRoute}${i}$`,re:new RegExp(`^${n.parameterizedRoute}${i}$`),routeKeys:n.routeKeys}:"/"===n.parameterizedRoute?{groups:{},re:new RegExp(`^/${o}$`)}:{groups:{},re:new RegExp(`^${n.parameterizedRoute}${i}$`)}};var r=n(4794)},9150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getMiddlewareRegex",{enumerable:!0,get:function(){return r.getMiddlewareRegex}}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o.getRouteMatcher}}),Object.defineProperty(t,"getRouteRegex",{enumerable:!0,get:function(){return i.getRouteRegex}}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return a.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return l.isDynamicRoute}});var r=n(2763),o=n(3107),i=n(4794),a=n(9036),l=n(7482)},7482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return n.test(e)};const n=/\/\[[^/]+?\](?=\/|$)/},1577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){const n=new URL("undefined"==typeof window?"http://n":r.getLocationOrigin()),i=t?new URL(t,n):n,{pathname:a,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,i);if(d!==n.origin)throw new Error(`invariant: invalid relative URL, router received ${e}`);return{pathname:a,query:o.searchParamsToUrlQuery(l),search:s,hash:u,href:c.slice(n.origin.length)}};var r=n(1624),o=n(646)},2011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return o.parseRelativeUrl(e);const t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:r.searchParamsToUrlQuery(t.searchParams),search:t.search}};var r=n(646),o=n(1577)},1095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathMatch=function(e,t){const n=[],o=r.pathToRegexp(e,n,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=r.regexpToFunction((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,n);return(e,r)=>{const o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(const e of n)"number"==typeof e.name&&delete o.params[e.name];return{...r,...o.params}}};var r=n(9264)},9716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,n){const r={};return!!t.every((t=>{let o,i=t.key;switch(t.type){case"header":i=i.toLowerCase(),o=e.headers[i];break;case"cookie":o=e.cookies[t.key];break;case"query":o=n[i];break;case"host":{const{host:t}=(null==e?void 0:e.headers)||{};o=null==t?void 0:t.split(":")[0].toLowerCase();break}}if(!t.value&&o)return r[function(e){let t="";for(let n=0;n64&&r<91||r>96&&r<123)&&(t+=e[n])}return t}(i)]=o,!0;if(o){const e=new RegExp(`^${t.value}$`),n=Array.isArray(o)?o.slice(-1)[0].match(e):o.match(e);if(n)return Array.isArray(n)&&(n.groups?Object.keys(n.groups).forEach((e=>{r[e]=n.groups[e]})):"host"===t.type&&n[0]&&(r.host=n[0])),!0}return!1}))&&r},t.compileNonPath=a,t.prepareDestination=function(e){const t=Object.assign({},e.query);delete t.__nextLocale,delete t.__nextDefaultLocale;let n=e.destination;for(const r of Object.keys({...e.params,...t}))s=r,n=n.replace(new RegExp(`:${o.escapeStringRegexp(s)}`,"g"),`__ESC_COLON_${s}`);var s;const u=i.parseUrl(n),c=u.query,d=l(`${u.pathname}${u.hash||""}`),f=l(u.hostname||""),p=[],h=[];r.pathToRegexp(d,p),r.pathToRegexp(f,h);const g=[];p.forEach((e=>g.push(e.name))),h.forEach((e=>g.push(e.name)));const m=r.compile(d,{validate:!1}),v=r.compile(f,{validate:!1});for(const[t,n]of Object.entries(c))Array.isArray(n)?c[t]=n.map((t=>a(l(t),e.params))):c[t]=a(l(n),e.params);let y,b=Object.keys(e.params).filter((e=>"nextInternalLocale"!==e));if(e.appendParamsToQuery&&!b.some((e=>g.includes(e))))for(const t of b)t in c||(c[t]=e.params[t]);try{y=m(e.params);const[t,n]=y.split("#");u.hostname=v(e.params),u.pathname=t,u.hash=`${n?"#":""}${n||""}`,delete u.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return u.query={...t,...u.query},{newUrl:y,destQuery:c,parsedDestination:u}};var r=n(9264),o=n(8058),i=n(2011);function a(e,t){if(!e.includes(":"))return e;for(const n of Object.keys(t))e.includes(`:${n}`)&&(e=e.replace(new RegExp(`:${n}\\*`,"g"),`:${n}--ESCAPED_PARAM_ASTERISKS`).replace(new RegExp(`:${n}\\?`,"g"),`:${n}--ESCAPED_PARAM_QUESTION`).replace(new RegExp(`:${n}\\+`,"g"),`:${n}--ESCAPED_PARAM_PLUS`).replace(new RegExp(`:${n}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${n}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),r.compile(`/${e}`,{validate:!1})(t).slice(1)}function l(e){return e.replace(/__ESC_COLON_/gi,":")}},646:(e,t)=>{"use strict";function n(e){return"string"==typeof e||"number"==typeof e&&!isNaN(e)||"boolean"==typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){const t={};return e.forEach(((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]})),t},t.urlQueryToSearchParams=function(e){const t=new URLSearchParams;return Object.entries(e).forEach((([e,r])=>{Array.isArray(r)?r.forEach((r=>t.append(e,n(r)))):t.set(e,n(r))})),t},t.assign=function(e,...t){return t.forEach((t=>{Array.from(t.keys()).forEach((t=>e.delete(t))),t.forEach(((t,n)=>e.append(n,t)))})),e}},5317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,u,c,d){let f,p=!1,h=!1,g=l.parseRelativeUrl(e),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(g.pathname),d).pathname);const v=n=>{let l=r.getPathMatch(n.source,{removeUnnamedParams:!0,strict:!0})(g.pathname);if(n.has&&l){const e=o.matchHas({headers:{host:document.location.hostname},cookies:document.cookie.split("; ").reduce(((e,t)=>{const[n,...r]=t.split("=");return e[n]=r.join("="),e}),{})},n.has,g.query);e?Object.assign(l,e):l=!1}if(l){if(!n.destination)return h=!0,!0;const r=o.prepareDestination({appendParamsToQuery:!0,destination:n.destination,params:l,query:u});if(g=r.parsedDestination,e=r.newUrl,Object.assign(u,r.parsedDestination.query),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(e),d).pathname),t.includes(m))return p=!0,f=m,!0;if(f=c(m),f!==e&&t.includes(f))return p=!0,!0}};let y=!1;for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteMatcher=function(e){const{re:t,groups:n}=e;return e=>{const o=t.exec(e);if(!o)return!1;const i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach((e=>{const t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map((e=>i(e))):t.repeat?[i(r)]:i(r))})),a}};var r=n(1624)},4794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParametrizedRoute=i,t.getRouteRegex=function(e){const t=i(e);return"routeKeys"in t?{re:new RegExp(`^${t.parameterizedRoute}(?:/)?$`),groups:t.groups,routeKeys:t.routeKeys,namedRegex:`^${t.namedParameterizedRoute}(?:/)?$`}:{re:new RegExp(`^${t.parameterizedRoute}(?:/)?$`),groups:t.groups}};var r=n(8058);function o(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function i(e){const t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),n={};let i=1;const a=t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:r,repeat:a}=o(e.slice(1,-1));return n[t]={pos:i++,repeat:a,optional:r},a?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return`/${r.escapeStringRegexp(e)}`})).join("");if("undefined"==typeof window){let e=97,i=1;const l=()=>{let t="";for(let n=0;n122&&(i++,e=97);return t},s={};return{parameterizedRoute:a,namedParameterizedRoute:t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:n,repeat:r}=o(e.slice(1,-1));let i=t.replace(/\W/g,""),a=!1;return(0===i.length||i.length>30)&&(a=!0),isNaN(parseInt(i.slice(0,1)))||(a=!0),a&&(i=l()),s[i]=t,r?n?`(?:/(?<${i}>.+?))?`:`/(?<${i}>.+?)`:`/(?<${i}>[^/]+?)`}return`/${r.escapeStringRegexp(e)}`})).join(""),groups:n,routeKeys:s}}return{parameterizedRoute:a,groups:n}}},9036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){const t=new n;return e.forEach((e=>t.insert(e))),t.smoosh()};class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const n=t.map((t=>this.children.get(t)._smoosh(`${e}${t}/`))).reduce(((e,t)=>[...e,...t]),[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`);n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),n}_insert(e,t,r){if(0===e.length)return void(this.placeholder=!1);if(r)throw new Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let i=o.slice(1,-1),a=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),a=!0),i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw new Error(`Segment names may not start or end with extra brackets ('${i}').`);if(i.startsWith("."))throw new Error(`Segment names may not start with erroneous periods ('${i}').`);function l(e,n){if(null!==e&&e!==n)throw new Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${n}').`);t.forEach((e=>{if(e===n)throw new Error(`You cannot have the same slug name "${n}" repeat within a single dynamic path`);if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error(`You cannot have the slug names "${e}" and "${n}" differ only by non-word symbols within a single dynamic path`)})),t.push(n)}if(r)if(a){if(null!=this.restSlugName)throw new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`);l(this.optionalRestSlugName,i),this.optionalRestSlugName=i,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`);l(this.restSlugName,i),this.restSlugName=i,o="[...]"}else{if(a)throw new Error(`Optional route parameters are not yet supported ("${e[0]}").`);l(this.slugName,i),this.slugName=i,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}},1889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784));const o="undefined"==typeof window;class i extends r.Component{constructor(e){super(e),this.emitChange=()=>{this._hasHeadManager&&this.props.headManager.updateHead(this.props.reduceComponentsToState([...this.props.headManager.mountedInstances],this.props))},this._hasHeadManager=this.props.headManager&&this.props.headManager.mountedInstances,o&&this._hasHeadManager&&(this.props.headManager.mountedInstances.add(this),this.emitChange())}componentDidMount(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}componentDidUpdate(){this.emitChange()}componentWillUnmount(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}render(){return null}}t.default=i},1624:(e,t)=>{"use strict";function n(){const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function r(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function o(e){return e.finished||e.headersSent}Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)},t.getLocationOrigin=n,t.getURL=function(){const{href:e}=window.location,t=n();return e.substring(t.length)},t.getDisplayName=r,t.isResSent=o,t.normalizeRepeatedSlashes=function(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")},t.loadGetInitialProps=async function e(t,n){const i=n.res||n.ctx&&n.ctx.res;if(!t.getInitialProps)return n.ctx&&n.Component?{pageProps:await e(n.Component,n.ctx)}:{};const a=await t.getInitialProps(n);if(i&&o(i))return a;if(!a){const e=`"${r(t)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`;throw new Error(e)}return a},t.ST=t.SP=t.warnOnce=void 0,t.warnOnce=e=>{};const i="undefined"!=typeof performance;t.SP=i;const a=i&&"function"==typeof performance.mark&&"function"==typeof performance.measure;t.ST=a;class l extends Error{}t.DecodeError=l;class s extends Error{}t.NormalizeError=s},6577:(e,t,n)=>{n(104)},9097:(e,t,n)=>{e.exports=n(4529)},5632:(e,t,n)=>{e.exports=n(9518)},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,s=o(e),u=1;u{"use strict";var r=n(2784),o=n(7320),i=n(4616);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(g,e)||!p.call(h,e)&&(f.test(e)?g[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,_=60108,C=60114,O=60109,P=60110,j=60112,L=60113,R=60120,T=60115,A=60116,M=60121,I=60128,D=60129,N=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;k=z("react.element"),E=z("react.portal"),S=z("react.fragment"),_=z("react.strict_mode"),C=z("react.profiler"),O=z("react.provider"),P=z("react.context"),j=z("react.forward_ref"),L=z("react.suspense"),R=z("react.suspense_list"),T=z("react.memo"),A=z("react.lazy"),M=z("react.block"),z("react.scope"),I=z("react.opaque.id"),D=z("react.debug_trace_mode"),N=z("react.offscreen"),F=z("react.legacy_hidden")}var $,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var U=!1;function V(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 22:return V(e.type._render,!1);case 1:return V(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case C:return"Profiler";case _:return"StrictMode";case L:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case M:return G(e._render);case A:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ue(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml";function fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Oe=null,Pe=null;function je(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),Ce(e.stateNode,e.type,t))}}function Le(e){Oe?Pe?Pe.push(e):Pe=[e]:Oe=e}function Re(){if(Oe){var e=Oe,t=Pe;if(Pe=Oe=null,je(e),t)for(e=0;e(r=31-Ht(r))?0:1<n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Vt|0)|0},Ut=Math.log,Vt=Math.LN2,qt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Xt=!0;function Kt(e,t,n,r){De||Me();var o=Zt,i=De;De=!0;try{Ae(o,e,t,n,r)}finally{(De=i)||Fe()}}function Yt(e,t,n,r){Gt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if(Xt)if((o=0==(4&t))&&0=Mn),Nn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Le(r),0<(t=Ar(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Gn(e){_r(e,0)}function Xn(e){if(Z(eo(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(d){var Zn;if(d){var Qn="oninput"in document;if(!Qn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Qn="function"==typeof Jn.oninput}Zn=Qn}else Zn=!1;Yn=Zn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var hr=d&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Q(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=Ar(mr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(At,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xroo||(e.current=ro[oo],ro[oo]=null,oo--)}function lo(e,t){oo++,ro[oo]=e.current,e.current=t}var so={},uo=io(so),co=io(!1),fo=so;function po(e,t){var n=e.type.contextTypes;if(!n)return so;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ho(e){return null!=e.childContextTypes}function go(){ao(co),ao(uo)}function mo(e,t,n){if(uo.current!==so)throw Error(a(168));lo(uo,t),lo(co,n)}function vo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,fo=uo.current,lo(uo,e),lo(co,co.current),!0}function bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,ao(co),ao(uo),lo(uo,e)):ao(co),lo(co,n)}var wo=null,xo=null,ko=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,_o=i.unstable_shouldYield,Co=i.unstable_requestPaint,Oo=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,jo=i.unstable_ImmediatePriority,Lo=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,To=i.unstable_LowPriority,Ao=i.unstable_IdlePriority,Mo={},Io=void 0!==Co?Co:function(){},Do=null,No=null,Fo=!1,zo=Oo(),$o=1e4>zo?Oo:function(){return Oo()-zo};function Bo(){switch(Po()){case jo:return 99;case Lo:return 98;case Ro:return 97;case To:return 96;case Ao:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return jo;case 98:return Lo;case 97:return Ro;case 96:return To;case 95:return Ao;default:throw Error(a(332))}}function Ho(e,t){return e=Wo(e),ko(e,t)}function Uo(e,t,n){return e=Wo(e),Eo(e,t,n)}function Vo(){if(null!==No){var e=No;No=null,So(e)}qo()}function qo(){if(!Fo&&null!==Do){Fo=!0;var e=0;try{var t=Do;Ho(99,(function(){for(;eg?(m=d,d=null):m=d.sibling;var v=p(o,d,l[g],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===l.length)return n(o,d),u;if(null===d){for(;gm?(v=g,g=null):v=g.sibling;var b=p(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(o,g);!y.done;m++,y=s.next())null!==(y=h(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=i(y,l,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,s){var u="object"==typeof i&&null!==i&&i.type===S&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case k:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===S){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=wi(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===S?((r=Ws(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Bs(i.type,i.key,i.props,null,e.mode,s)).ref=wi(e,r,i),s.return=e,e=s)}return l(e);case E:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Vs(i,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Us(i,e.mode,s)).return=e,e=r),l(e);if(bi(i))return g(e,r,i,s);if(W(i))return m(e,r,i,s);if(c&&xi(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Ei=ki(!0),Si=ki(!1),_i={},Ci=io(_i),Oi=io(_i),Pi=io(_i);function ji(e){if(e===_i)throw Error(a(174));return e}function Li(e,t){switch(lo(Pi,t),lo(Oi,e),lo(Ci,_i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ao(Ci),lo(Ci,t)}function Ri(){ao(Ci),ao(Oi),ao(Pi)}function Ti(e){ji(Pi.current);var t=ji(Ci.current),n=pe(t,e.type);t!==n&&(lo(Oi,e),lo(Ci,n))}function Ai(e){Oi.current===e&&(ao(Ci),ao(Oi))}var Mi=io(0);function Ii(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Di=null,Ni=null,Fi=!1;function zi(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function $i(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Bi(e){if(Fi){var t=Ni;if(t){var n=t;if(!$i(e,t)){if(!(t=Ur(n.nextSibling))||!$i(e,t))return e.flags=-1025&e.flags|2,Fi=!1,void(Di=e);zi(Di,n)}Di=e,Ni=Ur(t.firstChild)}else e.flags=-1025&e.flags|2,Fi=!1,Di=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Di=e}function Hi(e){if(e!==Di)return!1;if(!Fi)return Wi(e),Fi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=Ni;t;)zi(e,t),t=Ur(t.nextSibling);if(Wi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ni=Ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ni=null}}else Ni=Di?Ur(e.stateNode.nextSibling):null;return!0}function Ui(){Ni=Di=null,Fi=!1}var Vi=[];function qi(){for(var e=0;ei))throw Error(a(301));i+=1,Qi=Zi=null,t.updateQueue=null,Gi.current=Ra,e=n(r,o)}while(ea)}if(Gi.current=Pa,t=null!==Zi&&null!==Zi.next,Ki=0,Qi=Zi=Yi=null,Ji=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qi?Yi.memoizedState=Qi=e:Qi=Qi.next=e,Qi}function ia(){if(null===Zi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Zi.next;var t=null===Qi?Yi.memoizedState:Qi.next;if(null!==t)Qi=t,Zi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Zi=e).memoizedState,baseState:Zi.baseState,baseQueue:Zi.baseQueue,queue:Zi.queue,next:null},null===Qi?Yi.memoizedState=Qi=e:Qi=Qi.next=e}return Qi}function aa(e,t){return"function"==typeof t?t(e):t}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Zi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=l=i=null,u=o;do{var c=u.lane;if((Ki&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Yi.lanes|=c,Il|=c}u=u.next}while(null!==u&&u!==o);null===s?i=r:s.next=l,ar(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ar(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ki&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(a(350))}function ca(e,t,n,r){var o=Ol;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),s=Gi.current,u=s.useState((function(){return ua(o,t,n)})),c=u[1],d=u[0];u=Qi;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,g=f.source;f=f.subscribe;var m=Yi;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!ar(l,e)){e=n(t._source),ar(d,e)||(c(e),e=ls(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0n?98:n,(function(){e(!0)})),Ho(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Xr]=t,e[Kr]=r,Ua(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;i$l&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ii(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),el(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Fi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$o()-r.renderingStartTime>$l&&1073741824!==n&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$o(),n.sibling=null,t=Mi.current,lo(Mi,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function nl(e){switch(e.tag){case 1:ho(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ri(),ao(co),ao(uo),qi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ai(e),null;case 13:return ao(Mi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ao(Mi),null;case 4:return Ri(),null;case 10:return ei(e),null;case 23:case 24:return vs(),null;default:return null}}function rl(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ua=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ji(Ci.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(d in Ee(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var u=i[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Cr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===I?c.toString():(l=l||[]).push(d,c))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var il="function"==typeof WeakMap?WeakMap:Map;function al(e,t,n){(n=li(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ul||(Ul=!0,Vl=r),ol(0,t)},n}function ll(e,t,n){(n=li(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ol(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var sl="function"==typeof WeakSet?WeakSet:Set;function ul(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ms(e,t)}else t.current=null}function cl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo))}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Rs(n,e),Ls(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&di(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}di(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function fl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function pl(e,t){if(xo&&"function"==typeof xo.onCommitFiberUnmount)try{xo.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Rs(t,n);else{r=t;try{o()}catch(e){Ms(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ul(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ms(t,e)}break;case 5:ul(t);break;case 4:bl(e,t)}}function hl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gl(e){return 5===e.tag||3===e.tag||4===e.tag}function ml(e){e:{for(var t=e.return;null!==t;){if(gl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?vl(e,n,t):yl(e,n,t)}function vl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(vl(e,t,n),e=e.sibling;null!==e;)vl(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function bl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,s=o,u=s;;)if(pl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=o.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(pl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function wl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;oo&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=$o()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=Br(Cs.bind(null,e),n);break}Cs(e);break;default:throw Error(a(329))}}return cs(e,$o()),e.callbackNode===t?ds.bind(null,e):null}function fs(e,t){for(t&=~Nl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Tl&&(Tl=2),s=rl(s,l),f=a;do{switch(f.tag){case 3:i=s,f.flags|=4096,t&=-t,f.lanes|=t,ui(f,al(0,i,t));break e;case 1:i=s;var x=f.type,k=f.stateNode;if(0==(64&f.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===ql||!ql.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,ui(f,ll(f,i,t));break e}}f=f.return}while(null!==f)}_s(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function ws(){var e=Sl.current;return Sl.current=Pa,null===e?Pa:e}function xs(e,t){var n=Cl;Cl|=16;var r=ws();for(Ol===e&&jl===t||ys(e,t);;)try{ks();break}catch(t){bs(e,t)}if(Jo(),Cl=n,Sl.current=r,null!==Pl)throw Error(a(261));return Ol=null,jl=0,Tl}function ks(){for(;null!==Pl;)Ss(Pl)}function Es(){for(;null!==Pl&&!_o();)Ss(Pl)}function Ss(e){var t=Wl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?_s(e):Pl=t,_l.current=null}function _s(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=tl(n,t,Ll)))return void(Pl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ll)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1l&&(s=l,l=k,k=s),s=cr(b,k),i=cr(b,l),s&&i&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),k>l?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b$o()-zl?ys(e,0):Nl|=n),cs(e,t)}function Ds(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Bo()?1:2:(0===ns&&(ns=Ml),0===(t=$t(62914560&~ns))&&(t=4194304))),n=as(),null!==(e=us(e,t))&&(Wt(e,t,n),cs(e,n))}function Ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fs(e,t,n,r){return new Ns(e,t,n,r)}function zs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $s(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Bs(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)zs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Ws(n.children,o,i,t);case D:l=8,o|=16;break;case _:l=8,o|=1;break;case C:return(e=Fs(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case L:return(e=Fs(13,n,t,o)).type=L,e.elementType=L,e.lanes=i,e;case R:return(e=Fs(19,n,t,o)).elementType=R,e.lanes=i,e;case N:return Hs(n,o,i,t);case F:return(e=Fs(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case P:l=9;break e;case j:l=11;break e;case T:l=14;break e;case A:l=16,r=null;break e;case M:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Fs(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ws(e,t,n,r){return(e=Fs(7,e,r,t)).lanes=n,e}function Hs(e,t,n,r){return(e=Fs(23,e,r,t)).elementType=N,e.lanes=n,e}function Us(e,t,n){return(e=Fs(6,e,null,t)).lanes=n,e}function Vs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Gs(e,t,n){var r=3{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2967)},1837:(e,t,n)=>{"use strict";n(7320);var r=n(2784),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},3426:(e,t,n)=>{"use strict";var r=n(7320),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),l=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n{"use strict";e.exports=n(3426)},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=_(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=c(e,t,n);if("normal"===s.type){if(r=n.done?h:f,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",g={};function m(){}function v(){}function y(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(j([])));x&&x!==n&&r.call(x,i)&&(b=x);var k=y.prototype=m.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,l){var s=c(e[o],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(s.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function _(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,_(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function j(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6475:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r_(a,n))void 0!==s&&0>_(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>_(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],P=1,j=null,L=3,R=!1,T=!1,A=!1;function M(e){for(var t=E(O);null!==t;){if(null===t.callback)S(O);else{if(!(t.startTime<=e))break;S(O),t.sortIndex=t.expirationTime,k(C,t)}t=E(O)}}function I(e){if(A=!1,M(e),!T)if(null!==E(C))T=!0,n(D);else{var t=E(O);null!==t&&r(I,t.startTime-e)}}function D(e,n){T=!1,A&&(A=!1,o()),R=!0;var i=L;try{for(M(n),j=E(C);null!==j&&(!(j.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=j.callback;if("function"==typeof a){j.callback=null,L=j.priorityLevel;var l=a(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?j.callback=l:j===E(C)&&S(C),M(n)}else S(C);j=E(C)}if(null!==j)var s=!0;else{var u=E(O);null!==u&&r(I,u.startTime-n),s=!1}return s}finally{j=null,L=i,R=!1}}var N=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){T||R||(T=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return E(C)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0l?(e.sortIndex=a,k(O,e),null===E(C)&&e===E(O)&&(A?o():A=!0,r(I,a-l))):(e.sortIndex=s,k(C,e),T||R||(T=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},2778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,".article-inner-css * {\n max-width: 100%;\n}\n\n:root {\n color-scheme: light dark;\n}\n\n.speakingSection {\n color: var(--colors-highlightText);\n background-color: rgba(255, 210, 52, 0.2);\n}\n\n.highlight {\n color: var(--colors-highlightText);\n background-color: rgb(var(--colors-highlightBackground));\n cursor: pointer;\n}\n\n.highlight_with_note {\n color: var(--colors-highlightText);\n background-color: rgba(var(--colors-highlightBackground), 0.35);\n border-bottom: 2px rgb(var(--colors-highlightBackground)) solid;\n border-radius: 2px;\n cursor: pointer;\n}\n\n.article-inner-css .highlight_with_note .highlight_note_button {\n display: unset !important;\n margin: 0px !important;\n max-width: unset !important;\n height: unset !important;\n padding: 0px 8px;\n cursor: pointer;\n}\n/* \non smaller screens we display the note icon\n@media (max-width: 768px) {\n .highlight_with_note.last_element:after { \n content: url(/static/icons/highlight-note-icon.svg);\n padding: 0 3px;\n cursor: pointer;\n }\n} */\n\n.article-inner-css h1,\n.article-inner-css h2,\n.article-inner-css h3,\n.article-inner-css h4,\n.article-inner-css h5,\n.article-inner-css h6 {\n margin-block-start: 0.83em;\n margin-block-end: 0.83em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n line-height: var(--line-height);\n font-size: var(--text-font-size);\n color: var(--headers-color);\n font-weight: bold;\n}\n.article-inner-css h1 {\n font-size: 1.5em !important;\n line-height: 1.4em !important;\n}\n.article-inner-css h2 {\n font-size: 1.43em !important;\n}\n.article-inner-css h3 {\n font-size: 1.25em !important;\n}\n.article-inner-css h4,\n.article-inner-css h5,\n.article-inner-css h6 {\n font-size: 1em !important;\n margin: 1em 0 !important;\n}\n\n.article-inner-css .scrollable {\n overflow: auto;\n}\n\n.article-inner-css div {\n line-height: var(--line-height);\n /* font-size: var(--text-font-size); */\n color: var(--font-color);\n}\n\n.article-inner-css p {\n font-family: var(--text-font-family);\n font-style: normal;\n font-weight: normal;\n\n color: var(--font-color);\n\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n\n > img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n }\n\n > iframe {\n width: 100%;\n height: 350px;\n }\n}\n\n.article-inner-css section {\n line-height: 1.65em;\n font-size: var(--text-font-size);\n}\n\n.article-inner-css blockquote {\n display: block;\n border-left: 1px solid var(--font-color-transparent);\n padding-left: 16px;\n font-style: italic;\n margin-inline-start: 0px;\n > * {\n font-style: italic;\n }\n p:last-of-type {\n margin-bottom: 0;\n }\n}\n\n.article-inner-css a {\n color: var(--font-color-readerFont);\n}\n\n.article-inner-css .highlight a {\n color: var(--colors-highlightText);\n}\n\n.article-inner-css figure {\n * {\n color: var(--font-color-transparent);\n }\n\n margin: 30px 0;\n font-size: 0.75em;\n line-height: 1.5em;\n\n figcaption {\n color: var(--font-color);\n opacity: 0.7;\n margin: 10px 20px 10px 0;\n }\n\n figcaption * {\n color: var(--font-color);\n opacity: 0.7;\n }\n figcaption a {\n color: var(--font-color);\n /* margin: 10px 20px 10px 0; */\n opacity: 0.6;\n }\n\n > div {\n max-width: 100%;\n }\n}\n\n.article-inner-css figure[aria-label='media'] {\n margin: var(--figure-margin);\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.article-inner-css hr {\n margin-bottom: var(--hr-margin);\n border: none;\n}\n\n.article-inner-css table {\n display: block;\n word-break: normal;\n white-space: nowrap;\n border: 1px solid rgb(216, 216, 216);\n border-spacing: 0;\n border-collapse: collapse;\n font-size: 0.8rem;\n margin: auto;\n line-height: 1.5em;\n font-size: 0.9em;\n max-width: -moz-fit-content;\n max-width: fit-content;\n margin: 0 auto;\n overflow-x: auto;\n caption {\n margin: 0.5em 0;\n }\n th {\n border: 1px solid rgb(216, 216, 216);\n background-color: var(--table-header-color);\n padding: 5px;\n }\n td {\n border: 1px solid rgb(216, 216, 216);\n padding: 0.5em;\n padding: 5px;\n }\n\n p {\n margin: 0;\n padding: 0;\n }\n\n img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n }\n}\n\n.article-inner-css ul,\n.article-inner-css ol {\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n margin-top: 18px;\n\n font-family: var(--text-font-family);\n font-style: normal;\n font-weight: normal;\n\n line-height: var(--line-height);\n font-size: var(--text-font-size);\n\n color: var(--font-color);\n}\n\n.article-inner-css li {\n word-break: break-word;\n ol,\n ul {\n margin: 0;\n }\n}\n\n.article-inner-css sup,\n.article-inner-css sub {\n position: relative;\n a {\n color: inherit;\n pointer-events: none;\n }\n}\n\n.article-inner-css sup {\n top: -0.3em;\n}\n\n.article-inner-css sub {\n bottom: 0.3em;\n}\n\n.article-inner-css cite {\n font-style: normal;\n}\n\n.article-inner-css .page {\n width: 100%;\n}\n\n/* Collapse excess whitespace. */\n.page p > p:empty,\n.page div > p:empty,\n.page p > div:empty,\n.page div > div:empty,\n.page p + br,\n.page p > br:only-child,\n.page div > br:only-child,\n.page img + br {\n display: none;\n}\n\n.article-inner-css video {\n max-width: 100%;\n}\n\n.article-inner-css dl {\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n}\n\n.article-inner-css dd {\n display: block;\n margin-inline-start: 40px;\n}\n\n.article-inner-css pre,\n.article-inner-css code {\n vertical-align: bottom;\n word-wrap: initial;\n font-family: 'SF Mono', monospace !important;\n white-space: pre;\n direction: ltr;\n unicode-bidi: embed;\n color: var(--font-color);\n margin: 0;\n overflow-x: auto;\n word-wrap: normal;\n border-radius: 4px;\n}\n\n.article-inner-css img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n height: auto;\n}\n\n.article-inner-css .page {\n text-align: start;\n word-wrap: break-word;\n\n font-size: var(--text-font-size);\n line-height: var(--line-height);\n}\n\n.article-inner-css .omnivore-instagram-embed {\n img {\n margin: 0 !important;\n }\n}\n\n.article-inner-css .morning-brew-markets {\n max-width: 100% !important;\n}\n\n.article-inner-css .morning-brew-markets tbody{\n width: 100%;\n display: table;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(1) {\n width: 20%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(2) {\n width: 30%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(3) {\n width: 30%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(4) {\n width: 20%;\n}\n\n.article-inner-css ._omnivore-static-tweet {\n color: #0F1419 !important;\n background: #ffffff !important;\n display: flex;\n flex-direction: column;\n gap: 12px;\n max-width: 550px;\n margin: 32px auto;\n border: 1px solid #e0e0e0;\n direction: ltr;\n border-radius: 8px;\n padding: 16px 16px ;\n box-sizing: border-box;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-header {\n display: flex;\n align-items: center;\n flex-direction: row;\n gap: 12px;\n margin: unset;\n justify-content: flex-start;\n color: #0F1419 !important;\n}\n\n\n._omnivore-static-tweet-header ._omnivore-static-tweet-header-text {\n display: flex;\n flex-direction: column;\n color: #0F1419 !important;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet-header-text .tweet-author-name {\n font-weight: 600;\n}\n\n._omnivore-static-tweet-header-text .tweet-author-handle {\n color: #808080;\n}\n\n\n._omnivore-static-tweet ._omnivore-static-tweet-fake-link {\n color: #1da1f2;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-text {\n font-size: 14px;\n line-height: 20px;\n color: #0F1419 !important;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-link-top {\n text-decoration: none;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-header-avatar {\n -ms-interpolation-mode: bicubic; \n border: none !important;\n border-radius: 50%;\n float: left;\n height: 48px;\n width: 48px;\n margin: unset !important;\n margin-right: 12px;\n max-width: 100%;\n vertical-align: middle;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-link-bottom {\n display: flex;\n flex-direction: column;\n text-decoration: none;\n white-space: pre-wrap;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-footer {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n color: #808080;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-footer hr {\n background: #e0e0e0;\n border: none;\n height: 1px;\n margin: 12px 0;\n padding: 0;\n width: 100%;\n color: #496F72;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-author-handle {\n display: block;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-ufi {\n display: flex;\n gap: 24px;\n align-items: center;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-ufi .likes, .retweets {\n display: flex;\n gap: 4px;\n text-decoration: none;\n color: #808080;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-photo {\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: 2px;\n}\n\n._omnivore-static-tweet .expanded-link {\n display: flex;\n flex-direction: column;\n text-decoration: none;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n._omnivore-static-tweet .expanded-link-img {\n cursor: pointer;\n width: 100%;\n max-height: 280px;\n max-width: 100%;\n object-fit: cover;\n margin: 0px auto !important\n}\n\n._omnivore-static-tweet .expanded-link img {\n margin: 0px auto !important\n}\n\n._omnivore-static-tweet .expanded-link-bottom {\n display: flex;\n flex-direction: column;\n padding: 12px;\n gap: 2px;\n font-size: 14px;\n line-height: 20px;\n text-decoration: none;\n}\n\n.expanded-link-bottom .expanded-link-domain {\n color: #808080;\n text-transform: lowercase;\n text-decoration: none;\n}\n\n.expanded-link-bottom .expanded-link-title {\n color: #0F1419 !important;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n\n.expanded-link-bottom .expanded-link-description {\n color: #808080;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n",""]);const l=a},7420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([e.id,"html,\nbody {\n padding: 0;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,\n Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1.6;\n font-size: 18px;\n}\n\n.disable-webkit-callout {\n -webkit-touch-callout: none;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\ndiv#appleid-signin {\n min-width: 300px;\n min-height: 40px;\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 200;\n font-style: normal;\n src: url(Inter-ExtraLight-200.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 300;\n font-style: normal;\n src: url(Inter-Light-300.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 400;\n font-style: normal;\n src: url(Inter-Regular-400.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 500;\n font-style: normal;\n src: url(Inter-Medium-500.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 600;\n font-style: normal;\n src: url(Inter-SemiBold-600.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 700;\n font-style: normal;\n src: url(Inter-Bold-700.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 800;\n font-style: normal;\n src: url(Inter-ExtraBold-800.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 900;\n font-style: normal;\n src: url(Inter-Black-900.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 400;\n font-style: normal;\n src: url(Lora-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 700;\n font-style: normal;\n src: url(Lora-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 400;\n font-style: italic;\n src: url(Lora-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 400;\n font-style: normal;\n src: url(Merriweather-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 700;\n font-style: normal;\n src: url(Merriweather-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 400;\n font-style: italic;\n src: url(Merriweather-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 400;\n font-style: normal;\n src: url(OpenSans-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 700;\n font-style: normal;\n src: url(OpenSans-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 400;\n font-style: italic;\n src: url(OpenSans-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: normal;\n src: url(Roboto-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 700;\n font-style: normal;\n src: url(Roboto-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: italic;\n src: url(Roboto-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 400;\n font-style: normal;\n src: url(CrimsonText-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 700;\n font-style: normal;\n src: url(CrimsonText-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 400;\n font-style: italic;\n src: url(CrimsonText-Italic.ttf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 400;\n font-style: normal;\n src: url(OpenDyslexicAlta-Regular.otf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 700;\n font-style: normal;\n src: url(OpenDyslexicAlta-Bold.otf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 400;\n font-style: italic;\n src: url(OpenDyslexicAlta-Italic.otf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 400;\n font-style: normal;\n src: url(SourceSerifPro-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 700;\n font-style: normal;\n src: url(SourceSerifPro-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 400;\n font-style: italic;\n src: url(SourceSerifPro-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 400;\n font-style: normal;\n src: url(Montserrat-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 700;\n font-style: normal;\n src: url(Montserrat-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 400;\n font-style: italic;\n src: url(Montserrat-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 400;\n font-style: normal;\n src: url(Georgia-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 700;\n font-style: normal;\n src: url(Georgia-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 400;\n font-style: italic;\n src: url(Georgia-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 400;\n font-style: normal;\n src: url(Newsreader-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 700;\n font-style: normal;\n src: url(Newsreader-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 400;\n font-style: italic;\n src: url(Newsreader-Italic.ttf);\n}\n\n@font-face {\n font-family: 'SF Mono';\n font-weight: 400;\n font-style: normal;\n src: url(SFMonoRegular.otf);\n}\n\n.dropdown-arrow {\n display: inline-block;\n width: 0;\n height: 0;\n vertical-align: middle;\n border-style: solid;\n border-width: 4px 4px 0;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n}\n\n.slider {\n -webkit-appearance: none;\n appearance: none;\n width: 100%;\n height: 1px;\n background: var(--colors-grayBorderHover);\n}\n\n.slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 16px !important;\n height: 16px;\n border-radius: 50%;\n background: var(--colors-utilityTextContrast);\n cursor: pointer;\n}\n\n.slider::-moz-range-thumb {\n -webkit-appearance: none;\n width: 16px !important;\n height: 16px;\n border-radius: 50%;\n background: var(--colors-utilityTextContrast);\n cursor: pointer;\n}\n\nselect {\n color: var(--colors-grayTextContrast);\n background-color: transparent;\n}\n\nselect option {\n background-color: transparent;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: var(--colors-grayTextContrast);\n}\n\nbutton {\n padding: 0px;\n margin: 0px;\n}\n\n.omnivore-masonry-grid {\n display: -webkit-box; /* Not needed if autoprefixing */\n display: -ms-flexbox; /* Not needed if autoprefixing */\n display: flex;\n margin-left: -16px; /* gutter size offset */\n margin-right: 14px;\n width: auto;\n}\n.omnivore-masonry-grid_column {\n padding-left: 16px; /* gutter size */\n background-clip: padding-box;\n}\n\n/* .omnivore-masonry-grid_column > div {\n background: grey;\n margin-bottom: 16px;\n} */\n\n.ProgressRoot {\n overflow: hidden;\n background: var(--colors-omnivoreGray);\n border-radius: 99999px;\n height: 25px;\n transform: translateZ(0);\n}\n\n.ProgressIndicator {\n background-color: var(--colors-omnivoreCtaYellow) ;\n width: 100%;\n height: 100%;\n transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);\n}",""]);const l=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var n,r,i,a=o(7162),l=o.n(a),s=o(2784),u=o.t(s,2),c=o(8316),d="colors",f="sizes",p="space",h={gap:p,gridGap:p,columnGap:p,gridColumnGap:p,rowGap:p,gridRowGap:p,inset:p,insetBlock:p,insetBlockEnd:p,insetBlockStart:p,insetInline:p,insetInlineEnd:p,insetInlineStart:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,marginBlock:p,marginBlockEnd:p,marginBlockStart:p,marginInline:p,marginInlineEnd:p,marginInlineStart:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,paddingBlock:p,paddingBlockEnd:p,paddingBlockStart:p,paddingInline:p,paddingInlineEnd:p,paddingInlineStart:p,top:p,right:p,bottom:p,left:p,scrollMargin:p,scrollMarginTop:p,scrollMarginRight:p,scrollMarginBottom:p,scrollMarginLeft:p,scrollMarginX:p,scrollMarginY:p,scrollMarginBlock:p,scrollMarginBlockEnd:p,scrollMarginBlockStart:p,scrollMarginInline:p,scrollMarginInlineEnd:p,scrollMarginInlineStart:p,scrollPadding:p,scrollPaddingTop:p,scrollPaddingRight:p,scrollPaddingBottom:p,scrollPaddingLeft:p,scrollPaddingX:p,scrollPaddingY:p,scrollPaddingBlock:p,scrollPaddingBlockEnd:p,scrollPaddingBlockStart:p,scrollPaddingInline:p,scrollPaddingInlineEnd:p,scrollPaddingInlineStart:p,fontSize:"fontSizes",background:d,backgroundColor:d,backgroundImage:d,borderImage:d,border:d,borderBlock:d,borderBlockEnd:d,borderBlockStart:d,borderBottom:d,borderBottomColor:d,borderColor:d,borderInline:d,borderInlineEnd:d,borderInlineStart:d,borderLeft:d,borderLeftColor:d,borderRight:d,borderRightColor:d,borderTop:d,borderTopColor:d,caretColor:d,color:d,columnRuleColor:d,fill:d,outline:d,outlineColor:d,stroke:d,textDecorationColor:d,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:f,minBlockSize:f,maxBlockSize:f,inlineSize:f,minInlineSize:f,maxInlineSize:f,width:f,minWidth:f,maxWidth:f,height:f,minHeight:f,maxHeight:f,flexBasis:f,gridTemplateColumns:f,gridTemplateRows:f,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},g=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,m=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,g))(t);return o in e?e[o]:e[o]=n(t,...r)}},v=Symbol.for("sxs.internal"),y=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),b=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:w}=Object.prototype,x=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),k=/\s+(?![^()]*\))/,E=e=>t=>e(..."string"==typeof t?String(t).split(k):[t]),S={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:E(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:E(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:E(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:E(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:E(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:E(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},_=/([\d.]+)([^]*)/,C=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,O=(e,t)=>e in P&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${x(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${x(e)}:${n}fit-content`)+o)):String(t),P={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},j=e=>e?e+"-":"",L=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?j(t)+(a.includes("$")?"":j(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),R=/\s*,\s*(?![^()]*\))/,T=Object.prototype.toString,A=(e,t,n,r,o)=>{let i,a,l;const s=(e,t,n)=>{let u,c;const d=e=>{for(u in e){const h=64===u.charCodeAt(0),g=h&&Array.isArray(e[u])?e[u]:[e[u]];for(c of g){const e=/[A-Z]/.test(p=u)?p:p.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===T&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in S){const t=S[e];if(t!==l){l=t,d(t(c)),l=null;continue}}if(h&&(f=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=_.test(t),l=.0625*(a?-1:1),[s,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+s+":"+("="!==n[0]&&1===n.length?u.replace(_,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+s+":"+(1===o.length?i.replace(_,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=h?n.concat(u):[...n],r=h?[...t]:C(t,u.split(R));void 0!==i&&o(M(...i)),i=void 0,s(c,r,e)}else void 0===i&&(i=[[],t,n]),u=h||36!==u.charCodeAt(0)?u:`--${j(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in I?String(c)+"px":String(c):L(O(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${h?`${u} `:`${x(u)}:`}${c}`)}}var f,p};d(e),void 0!==i&&o(M(...i)),i=void 0};s(e,t,n)},M=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,I={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},D=e=>String.fromCharCode(e+(e>25?39:97)),N=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return D(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),F=["themed","global","styled","onevar","resonevar","allvar","inline"],z=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},$=e=>{let t;const n=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")},r=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const o=Object(e).styleSheets||[];for(const e of o)if(z(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:s}=a;if(!s.startsWith("--sxs"))continue;const u=s.slice(14,-3).trim().split(/\s+/),c=F[u[0]];c&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),t.rules[c]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:o("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=F.length-1;e>=0;--e){const t=F[e];if(!a[t]){const n=F[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}B(a[t])}};return r(),t},B=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},W=Symbol(),H=m(),U=(e,t)=>H(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[v]){null==r.type&&(r.type=t[v].type);for(const e of t[v].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(V(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),q(e,r,t)})),V=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${j(o.prefix)}c-${N(r)}`,a=[],l=[],s=Object.create(null),u=[];for(const e in n)s[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){c=s,d=t,w.call(c,d)||(s[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=n[e],i=[r,o,!b(o)];a.push(i)}}var c,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!b(t)];l.push(r)}return[i,r,a,l,s,u]},q=(e,t,n)=>{const[r,o,i,a]=G(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;nt.rules[e]={apply:n=>t[W].push([e,n])})),t})(n):null,s=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||K;const{css:d,...f}=c,p={};for(const e in i)if(delete f[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":i[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:i[e])}else p[e]=i[e];const h=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),A(o,[`.${r}`],[],e,(e=>{s.styled.apply(e)})));const t=X(i,p,e.media),l=X(a,p,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${N(i)}-${t}`;h.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?s.resonevar:s.onevar;l.has(o)||(l.add(o),A(i,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${N(i)}-${o}`;h.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),A(i,[`.${t}`],[],e,(e=>{s.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${N(d)}-css`;h.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),A(d,[`.${t}`],[],e,(e=>{s.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&h.add(e);const g=f.className=[...h].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:l}};return y(c,{className:r,selector:u,[v]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},G=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},X=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,s=0,u=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}s+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[s]=o[s]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},K={},Y=m(),Z=(e,t)=>Y(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=N(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}A(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return y(r,{toString:r})})),Q=m(),J=(e,t)=>Q(e,(()=>n=>{const r=`${j(e.prefix)}k-${N(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];A(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return y(o,{get name(){return o()},toString:o})})),ee=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+j(this.prefix)+j(this.scale)+this.token}toString(){return this.computedValue}},te=m(),ne=(e,t)=>te(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${j(e.prefix)}t-${N(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${j(e.prefix)}${t}-${n}`,l=L(String(r[t][n]),e.prefix,t);i[t][n]=new ee(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),re=m(),oe=m(),ie=e=>{const t=(e=>{let t=!1;const n=re(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...h},utils:"object"==typeof e.utils&&e.utils||{}},l=$(o),s={css:U(a,l),globalCss:Z(a,l),keyframes:J(a,l),createTheme:ne(a,l),reset(){l.reset(),s.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(s.theme=s.createTheme(i)),s}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>oe(e,(()=>{const n=U(e,t);return(...e)=>{const t=n(...e),r=t[v].type,o=s.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?s.createElement(s.Fragment,null,s.createElement(o,i),s.createElement(a,null)):s.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[v]=t[v],o}})))(t),t},ae=()=>n||(n=ie()),le=(...e)=>ae().createTheme(...e),se=(...e)=>ae().keyframes(...e),ue=(...e)=>ae().styled(...e);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Ee(){return Ee=Object.assign||function(e){for(var t=1;t{const{children:n,...r}=e;return s.Children.toArray(n).some(Oe)?s.createElement(s.Fragment,null,s.Children.map(n,(e=>Oe(e)?s.createElement(_e,Ee({},r,{ref:t}),e.props.children):e))):s.createElement(_e,Ee({},r,{ref:t}),n)}));Se.displayName="Slot";const _e=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...Pe(r,n.props),ref:ke(t,n.ref)}):s.Children.count(n)>1?s.Children.only(null):null}));_e.displayName="SlotClone";const Ce=({children:e})=>s.createElement(s.Fragment,null,e);function Oe(e){return s.isValidElement(e)&&e.type===Ce}function Pe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const je=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Se:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Le),s.createElement(i,Ee({},o,{ref:n}))}))})),{}),Le="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",Re="horizontal",Te=["horizontal","vertical"],Ae=s.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Re,...o}=e,i=Me(r)?r:Re,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return s.createElement(je.div,Ee({"data-orientation":i},a,o,{ref:t}))}));function Me(e){return Te.includes(e)}Ae.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Me(r)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${Re}\`.`}(o,n)):null}};const Ie=Ae;var De=o(2322),Ne={alignment:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"end"}},distribution:{around:{justifyContent:"space-around"},between:{justifyContent:"space-between"},evenly:{justifyContent:"space-evenly"},start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"}}},Fe=he("div",{}),ze=he("span",{}),$e=he("a",{}),Be=he("blockquote",{}),We=he(Fe,{display:"flex",flexDirection:"row",variants:Ne,defaultVariants:{alignment:"start",distribution:"around"}}),He=he(Fe,{display:"flex",flexDirection:"column",variants:Ne,defaultVariants:{alignment:"start",distribution:"around"}});he(Ie,{backgroundColor:"$grayLine","&[data-orientation=horizontal]":{height:1,width:"100%"},"&[data-orientation=vertical]":{height:"100%",width:1}});var Ue=["omnivore-highlight-id","data-twitter-tweet-id","data-instagram-id"];function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,l,o)},onDiscarded:bt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Wt?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Wt?5e3:3e3,compare:function(e,t){return jt(e)==jt(t)},isPaused:function(){return!1},cache:Qt,mutate:Jt,fallback:{}},Nt),tn=function(e,t){var n=St(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=St(o,a))}return n},nn=(0,s.createContext)({}),rn=function(e){return Et(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},on=function(){return St(en,(0,s.useContext)(nn))},an=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},ln={dedupe:!0},sn=(xt.defineProperty((function(e){var t=e.value,n=tn((0,s.useContext)(nn),t),r=t&&t.provider,o=(0,s.useState)((function(){return r?Yt(r(n.cache||Qt),t):wt}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),$t((function(){return o?o[2]:wt}),[]),(0,s.createElement)(nn.Provider,St(e,{value:n}))}),"default",{value:en}),at=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,u=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,f=Ut.get(r),p=f[0],h=f[1],g=f[2],m=f[3],v=Ht(e),y=v[0],b=v[1],w=v[2],x=(0,s.useRef)(!1),k=(0,s.useRef)(!1),E=(0,s.useRef)(y),S=(0,s.useRef)(t),_=(0,s.useRef)(n),C=function(){return _.current},O=function(){return C().isVisible()&&C().isOnline()},P=function(e){return r.set(w,St(r.get(w),e))},j=r.get(y),L=kt(i)?n.fallback[y]:i,R=kt(j)?L:j,T=r.get(w)||{},A=T.error,M=!x.current,I=function(){return M&&!kt(l)?l:!C().isPaused()&&(a?!kt(R)&&n.revalidateIfStale:kt(R)||n.revalidateIfStale)},D=!(!y||!t)&&(!!T.isValidating||M&&I()),N=function(e,t){var n=(0,s.useState)({})[1],r=(0,s.useRef)(e),o=(0,s.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,s.useCallback)((function(e){var i=!1,a=r.current;for(var l in e){var s=l;a[s]!==e[s]&&(a[s]=e[s],o.current[s]&&(i=!0))}i&&!t.current&&n({})}),[]);return $t((function(){r.current=e})),[r,o.current,i]}({data:R,error:A,isValidating:D},k),F=N[0],z=N[1],$=N[2],B=(0,s.useCallback)((function(e){return ot(void 0,void 0,void 0,(function(){var t,i,a,l,s,u,c,d,f,p,h,v,w;return it(this,(function(_){switch(_.label){case 0:if(t=S.current,!y||!t||k.current||C().isPaused())return[2,!1];l=!0,s=e||{},u=!m[y]||!s.dedupe,c=function(){return!k.current&&y===E.current&&x.current},d=function(){var e=m[y];e&&e[1]===a&&delete m[y]},f={isValidating:!1},p=function(){P({isValidating:!1}),c()&&$(f)},P({isValidating:!0}),$({isValidating:!0}),_.label=1;case 1:return _.trys.push([1,3,,4]),u&&(Vt(r,y,F.current.data,F.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){l&&c()&&C().onLoadingSlow(y,n)}),n.loadingTimeout),m[y]=[t.apply(void 0,b),Gt()]),w=m[y],i=w[0],a=w[1],[4,i];case 2:return i=_.sent(),u&&setTimeout(d,n.dedupingInterval),m[y]&&m[y][1]===a?(P({error:wt}),f.error=wt,h=g[y],!kt(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(p(),u&&c()&&C().onDiscarded(y),[2,!1]):(o(F.current.data,i)?f.data=F.current.data:f.data=i,o(r.get(y),i)||r.set(y,i),u&&c()&&C().onSuccess(i,y,n),[3,4])):(u&&c()&&C().onDiscarded(y),[2,!1]);case 3:return v=_.sent(),d(),C().isPaused()||(P({error:v}),f.error=v,u&&c()&&(C().onError(v,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Et(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&O()&&C().onErrorRetry(v,y,n,B,{retryCount:(s.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,p(),c()&&u&&Vt(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),W=(0,s.useCallback)(Xt.bind(wt,r,(function(){return E.current})),[]);if($t((function(){S.current=t,_.current=n})),$t((function(){if(y){var e=y!==E.current,t=B.bind(wt,ln),n=0,r=an(y,h,(function(e,t,n){$(St({error:t,isValidating:n},o(F.current.data,e)?wt:{data:e}))})),i=an(y,p,(function(e){if(0==e){var r=Date.now();C().revalidateOnFocus&&r>n&&O()&&(n=r+C().focusThrottleInterval,t())}else if(1==e)C().revalidateOnReconnect&&O()&&t();else if(2==e)return B()}));return k.current=!1,E.current=y,x.current=!0,e&&$({data:R,error:A,isValidating:D}),I()&&(kt(R)||zt?t():(a=t,Ct()&&typeof window.requestAnimationFrame!=_t?window.requestAnimationFrame(a):setTimeout(a,1))),function(){k.current=!0,r(),i()}}var a}),[y,B]),$t((function(){var e;function t(){var t=Et(u)?u(R):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F.current.error||!c&&!C().isVisible()||!d&&!C().isOnline()?t():B(ln).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,d,B]),(0,s.useDebugValue)(R),a&&kt(R)&&y)throw S.current=t,_.current=n,k.current=!1,kt(A)?B(ln):A;return{mutate:W,get data(){return z.data=!0,R},get error(){return z.error=!0,A},get isValidating(){return z.isValidating=!0,D}}},function(){for(var e=[],t=0;t0;)s=u[c](s);return s(o,i||l.fetcher,l)}),un={prod:{webBaseURL:null!==(lt=window.omnivoreEnv.NEXT_PUBLIC_BASE_URL)&&void 0!==lt?lt:"",serverBaseURL:null!==(st=window.omnivoreEnv.NEXT_PUBLIC_SERVER_BASE_URL)&&void 0!==st?st:"",highlightsBaseURL:null!==(ut=window.omnivoreEnv.NEXT_PUBLIC_HIGHLIGHTS_BASE_URL)&&void 0!==ut?ut:""},dev:{webBaseURL:null!==(ct=window.omnivoreEnv.NEXT_PUBLIC_DEV_BASE_URL)&&void 0!==ct?ct:"",serverBaseURL:null!==(dt=window.omnivoreEnv.NEXT_PUBLIC_DEV_SERVER_BASE_URL)&&void 0!==dt?dt:"",highlightsBaseURL:null!==(ft=window.omnivoreEnv.NEXT_PUBLIC_DEV_HIGHLIGHTS_BASE_URL)&&void 0!==ft?ft:""},demo:{webBaseURL:null!==(pt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_BASE_URL)&&void 0!==pt?pt:"",serverBaseURL:null!==(ht=window.omnivoreEnv.NEXT_PUBLIC_DEMO_SERVER_BASE_URL)&&void 0!==ht?ht:"",highlightsBaseURL:null!==(gt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_HIGHLIGHTS_BASE_URL)&&void 0!==gt?gt:""},local:{webBaseURL:null!==(mt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_BASE_URL)&&void 0!==mt?mt:"",serverBaseURL:null!==(vt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_SERVER_BASE_URL)&&void 0!==vt?vt:"",highlightsBaseURL:null!==(yt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_HIGHLIGHTS_BASE_URL)&&void 0!==yt?yt:""}};function cn(e){var t=un[fn].serverBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for server base url in ".concat(e," environment"));return t}var dn,fn=window.omnivoreEnv.NEXT_PUBLIC_APP_ENV||"prod",pn=(window.omnivoreEnv.SENTRY_DSN||window.omnivoreEnv.NEXT_PUBLIC_SENTRY_DSN,window.omnivoreEnv.NEXT_PUBLIC_PSPDFKIT_LICENSE_KEY,window.omnivoreEnv.SSO_JWT_SECRET,"".concat(un[fn].serverBaseURL,"local"==fn?"/api/auth/gauth-redirect-localhost":"/api/auth/vercel/gauth-redirect"),"".concat(un[fn].serverBaseURL,"local"==fn?"/api/auth/apple-redirect-localhost":"/api/auth/vercel/apple-redirect"),window.omnivoreEnv.NEXT_PUBLIC_INTERCOM_APP_ID,window.omnivoreEnv.NEXT_PUBLIC_SEGMENT_API_KEY,"prod"==fn?window.omnivoreEnv.NEXT_PUBLIC_GOOGLE_ID:window.omnivoreEnv.NEXT_PUBLIC_DEV_GOOGLE_ID,"".concat(cn(fn),"/api/graphql")),hn="".concat(cn(fn),"/api");function gn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function mn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){gn(i,r,o,a,l,"next",e)}function l(e){gn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function vn(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.localStorage.getItem("authToken"))||void 0,r=(null===(t=window)||void 0===t?void 0:t.localStorage.getItem("pendingUserAuth"))||void 0;return n?{authorization:n}:r?{pendingUserAuth:r}:{}}function yn(e,t){return bn(e,t,!1)}function bn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&wn();var r=new rt.GraphQLClient(pn,{credentials:"include",mode:"cors"});return r.request(e,t,vn())}function wn(){return xn.apply(this,arguments)}function xn(){return(xn=mn(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return");case 2:if(!window.localStorage.getItem("authVerified")){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(hn,"/auth/verify"),{credentials:"include",mode:"cors",headers:vn()});case 7:if(200===(t=e.sent).status){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t.json();case 12:n=e.sent,r=n.authStatus,e.t0=r,e.next="AUTHENTICATED"===e.t0?17:"PENDING_USER"===e.t0?19:"NOT_AUTHENTICATED"===e.t0?21:22;break;case 17:return window.localStorage.setItem("authVerified","true"),e.abrupt("break",22);case 19:return"/confirm-profile"!==window.location.pathname&&(window.location.href="/confirm-profile"),e.abrupt("break",22);case 21:"/login"!==window.location.pathname&&(window.location.href="/login?errorCodes=AUTH_FAILED");case 22:e.next=27;break;case 24:return e.prev=24,e.t1=e.catch(4),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[4,24]])})))).apply(this,arguments)}(function(e){if(0==un[fn].highlightsBaseURL.length)throw new Error("Couldn't find environment variable for highlights base url in ".concat(e," environment"))})(fn),function(e){if(0==un[fn].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(fn);var kn,En,Sn,_n=(0,rt.gql)(dn||(kn=["\n query GetUserPersonalization {\n getUserPersonalization {\n ... on GetUserPersonalizationSuccess {\n userPersonalization {\n id\n theme\n margin\n fontSize\n fontFamily\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on GetUserPersonalizationError {\n errorCodes\n }\n }\n }\n"],En||(En=kn.slice(0)),dn=Object.freeze(Object.defineProperties(kn,{raw:{value:Object.freeze(En)}}))));function Cn(e){Jt(_n,{getUserPersonalization:{userPersonalization:e}},!1)}function On(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Pn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function jn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Pn(i,r,o,a,l,"next",e)}function l(e){Pn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ln(e){return Rn.apply(this,arguments)}function Rn(){return Rn=jn(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,rt.gql)(Sn||(Sn=On(["\n mutation SetUserPersonalization($input: SetUserPersonalizationInput!) {\n setUserPersonalization(input: $input) {\n ... on SetUserPersonalizationSuccess {\n updatedUserPersonalization {\n id\n theme\n fontSize\n fontFamily\n margin\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on SetUserPersonalizationError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,bn(n,{input:t});case 4:if(o=e.sent,null==(i=o)||null===(r=i.setUserPersonalization)||void 0===r||!r.updatedUserPersonalization){e.next=9;break}return Cn(i.setUserPersonalization.updatedUserPersonalization),e.abrupt("return",null===(a=i.setUserPersonalization)||void 0===a?void 0:a.updatedUserPersonalization);case 9:return e.abrupt("return",void 0);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Rn.apply(this,arguments)}var Tn="theme";function An(e){"undefined"!=typeof window&&(Mn(e),Ln({theme:e}))}function Mn(e){"undefined"!=typeof window&&window.localStorage.setItem(Tn,e),document.body.classList.remove(xe,be,we,r.Light,r.Dark,r.Darker,r.Lighter,r.Sepia,r.Charcoal),document.body.classList.add(e)}function In(){switch(function(){if("undefined"!=typeof window)return window.localStorage.getItem(Tn)}()){case r.Light:return"Light";case r.Dark:return"Dark";case r.Darker:return"Darker";case r.Lighter:return"Lighter";case r.Sepia:return"Sepia";case r.Charcoal:return"Charcoal";default:return""}}function Dn(){var e=In();return"Dark"===e||"Darker"===e}var Nn=o(4073),Fn=o.n(Nn);function zn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;)r();return n.shift(),n.forEach((function(e,t){e.setAttribute("data-omnivore-anchor-idx",(t+1).toString())})),n}(e.current),r=new IntersectionObserver((function(e){var n=0,r=1e5;if(e.forEach((function(e){var t=e.target.getAttribute("data-omnivore-anchor-idx")||"0";e.isIntersecting&&1===e.intersectionRatio&&e.boundingClientRect.top0){for(var o=n;o-1>0;){var i=document.querySelector("[data-omnivore-anchor-idx='".concat((o-1).toString(),"']"));if(!i)throw new Error("Unable to find previous intersection element!");var a=i.getBoundingClientRect();if(!(a.top>=0&&a.left>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)))break;o-=1}t(o)}}),{root:null,rootMargin:"0px",threshold:[1]});return null==n||n.forEach((function(e){r.observe(e)})),function(){r.disconnect()}}),[e,t])}(p,l);var h=(0,s.useMemo)((function(){return Fn()((function(e){o(e)}),2e3)}),[]);(0,s.useEffect)((function(){return function(){h.cancel()}}),[]),(0,s.useEffect)((function(){var t;(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.articleMutations.articleReadingProgressMutation({id:e.articleId,readingProgressPercent:r>100?100:r,readingProgressAnchorIndex:a});case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){zn(i,r,o,a,l,"next",e)}function l(e){zn(i,r,o,a,l,"throw",e)}a(void 0)}))})()}),[e.articleId,r]),(0,s.useEffect)((function(){var e,t;void 0!==(null===(e=window)||void 0===e?void 0:e.webkit)&&(null===(t=window.webkit.messageHandlers.readingProgressUpdate)||void 0===t||t.postMessage({progress:r}))}),[r]),function(e,t){var n,r,o=(0,s.useRef)(void 0),i=(n=(0,s.useState)({x:0,y:0}),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],l=i[1];(0,s.useEffect)((function(){var t=function(){var t,n,r,i,a,s,u={x:null!==(t=null!==(n=window.document.documentElement.scrollLeft)&&void 0!==n?n:null===(r=window)||void 0===r?void 0:r.scrollX)&&void 0!==t?t:0,y:null!==(i=null!==(a=window.document.documentElement.scrollTop)&&void 0!==a?a:null===(s=window)||void 0===s?void 0:s.scrollY)&&void 0!==i?i:0};e(),l(u),o.current=void 0},n=function(){void 0===o.current&&(o.current=setTimeout(t,1e3))};return window.addEventListener("scroll",n),function(){return window.removeEventListener("scroll",n)}}),[a,1e3,e])}((function(e){if(window&&window.document.scrollingElement){var t=window.scrollY/window.document.scrollingElement.scrollHeight;h(100*(t>.92?1:t))}}));var g=(0,s.useCallback)((function(e,t){if(t){var n=t.clientWidth+140;if(!e.closest("blockquote, table")){var r=parseFloat(e.getAttribute("width")||"");(r=isNaN(r)?e.naturalWidth:r)>n&&(e.style.setProperty("width","".concat(Math.min(r,n),"px")),e.style.setProperty("max-width","unset"),e.style.setProperty("margin-left","-".concat(Math.round(70),"px")))}}}),[]);(0,s.useEffect)((function(){if("undefined"!=typeof window&&d&&(f(!1),!(e.highlightHref.current||e.initialReadingProgress&&e.initialReadingProgress>=98))){var t=e.highlightHref.current?document.querySelector('[omnivore-highlight-id="'.concat(e.highlightHref.current,'"]')):document.querySelector("[data-omnivore-anchor-idx='".concat(e.initialAnchorIndex.toString(),"']"));if(t){var n=function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return t}return 0}(t);window.document.documentElement.scroll(0,n-100)}}}),[e.initialAnchorIndex,e.initialReadingProgress,d]),(0,s.useEffect)((function(){var e,t;"function"==typeof(null===(e=window)||void 0===e||null===(t=e.MathJax)||void 0===t?void 0:t.typeset)&&window.MathJax.typeset(),Array.from(document.getElementsByClassName("tweet-placeholder")).forEach((function(e){(0,c.render)((0,De.jsx)(nt,{tweetId:e.getAttribute("data-tweet-id")||"",options:{theme:Dn()?"dark":"light",align:"center"}}),e)}))}),[]);var m=(0,s.useCallback)((function(){var e,t=null===(e=p.current)||void 0===e?void 0:e.querySelectorAll("img");null==t||t.forEach((function(e){g(e,p.current)}))}),[g]);return(0,s.useEffect)((function(){return window.addEventListener("load",m),function(){window.removeEventListener("load",m)}}),[m]),(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/".concat(t,".min.css")}),(0,De.jsx)(Fe,{ref:p,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}})]})}var Hn=he("p",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"120%",color:"$grayTextContrast",variants:{style:{body:{fontSize:"$2",lineHeight:"1.25"},logoTitle:{fontFamily:"Inter",fontWeight:700,fontSize:"18px",textTransform:"uppercase",letterSpacing:"0.15em"},bodyBold:{fontWeight:"bold",fontSize:"$2",lineHeight:"1.25"},recommendedByline:{fontWeight:"bold",fontSize:"13.5px",paddingTop:"4px",mt:"0px",mb:"16px",color:"$grayTextContrast"},userName:{fontWeight:"600",fontSize:"13.5px",paddingTop:"4px",my:"6px",color:"$grayText"},userNote:{fontSize:"16px",paddingTop:"0px",marginTop:"0px",lineHeight:"1.5",color:"$grayTextContrast"},headline:{fontSize:"$4","@md":{fontSize:"$6"}},fixedHeadline:{fontSize:"24px",fontWeight:"500"},subHeadline:{fontSize:"24px",fontWeight:"500"},boldHeadline:{fontWeight:"bold",fontSize:"$4","@md":{fontSize:"$6"},margin:0},modalHeadline:{fontWeight:"500",fontSize:"24px",lineHeight:"1",color:"$grayText",margin:0},modalTitle:{fontSize:"16px",fontWeight:"600",color:"$grayText",lineHeight:"1.50",margin:0},boldText:{fontWeight:"600",fontSize:"16px",lineHeight:"1",color:"$textDefault"},shareHighlightModalAnnotation:{fontSize:"18px",lineHeight:"23.4px",color:"$utilityTextSubtle",m:0},footnote:{fontSize:"$1"},shareTitle:{fontSize:"$1",fontWeight:"600",color:"$grayText"},shareSubtitle:{fontSize:"$1",color:"$grayText"},listTitle:{fontSize:"16px",fontWeight:"500",color:"$grayTextContrast",lineHeight:"1.5",wordBreak:"break-word"},caption:{color:"$grayText",fontSize:"12px",lineHeight:"1.5",wordBreak:"break-word"},captionLink:{fontSize:"$2",textDecoration:"underline",lineHeight:"1.5",cursor:"pointer"},action:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5"},actionLink:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5",textDecoration:"underline",cursor:"pointer"},navLink:{m:0,fontSize:"$1",fontWeight:400,color:"$graySolid",cursor:"pointer","&:hover":{opacity:.7}},controlButton:{color:"$grayText",fontWeight:"500",fontFamily:"inter",fontSize:"14px"},menuTitle:{pt:"0px",m:"0px",color:"$utilityTextDefault",fontSize:16,fontFamily:"inter",fontWeight:"500",lineHeight:"unset"},libraryHeader:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"$textSubtle"},error:{color:"$error",fontSize:"$2",lineHeight:"1.25"}}},defaultVariants:{style:"footnote"}});function Un(e){var t,n=e.style||"footnote",r=function(e,t){var n=new URL(e).origin,r=Vn(e);if(t){var o="".concat(function(e){return"by ".concat("string"==typeof(t=e)?t.replace(/(<([^>]+)>)/gi,""):"");var t}(t));return r?o:"".concat(o,", ").concat(new URL(e).hostname)}if(!r)return n}(e.href,e.author);return(0,De.jsx)(Fe,{children:(0,De.jsxs)(Hn,{style:n,css:{wordBreak:"break-word"},children:[r," ",r&&(0,De.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(t=e.rawDisplayDate,new Intl.DateTimeFormat("en-US",{dateStyle:"long"}).format(new Date(t)))," ",!e.hideButton&&!Vn(e.href)&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(0,De.jsx)($e,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})]})]})})}function Vn(e){var t=new URL(e).origin;return-1!=["https://storage.googleapis.com","https://omnivore.app"].indexOf(t)}he("span",Hn),he("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),he("img",{}),he("a",{textDecoration:"none"}),he("mark",{});var qn=o(1427);function Gn(e,t){for(var n=0,r=e.length-1;n=e[l+1]))return l;n=l+1}}throw new Error("Unable to find text node")}var Xn="omnivore-highlight-id",Kn="omnivore-highlight-note-id",Yn="omnivore_highlight",Zn="article-container",Qn=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,Jn=new RegExp("<".concat(Yn,">([\\s\\S]*)<\\/").concat(Yn,">"),"i"),er=2e3;function tr(e,t,n,r,o){var i,a=ar({patch:e}),l=a.prefix,s=a.suffix,u=a.highlightTextStart,c=a.highlightTextEnd,d=a.textNodes,f=a.textNodeIndex,p="";if(sr(t).length)return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c};for(var h=function(){var e=lr({textNodes:d,startingTextNodeIndex:f,highlightTextStart:u,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,h=a.parentNode,g=a.nextSibling,m=!1,v=a instanceof HTMLElement?a:a.parentElement;v&&(m=window.getComputedStyle(v).whiteSpace.startsWith("pre")),null==h||h.removeChild(a),l.forEach((function(e,a){var l=e.highlight,u=e.text,c=m?u:u.replace(/\n/g,""),d=document.createTextNode(c);if(l){c&&(s&&!a&&p&&(p+="\n"),p+=c);var f=document.createElement("span");return f.className=n?"highlight_with_note":"highlight",f.setAttribute(Xn,t),r&&f.setAttribute("style","background-color: ".concat(r," !important")),o&&f.setAttribute("title",o),f.appendChild(d),i=f,null==h?void 0:h.insertBefore(f,g)}return null==h?void 0:h.insertBefore(d,g)})),f++};c>d[f].startIndex;)h();if(n&&i){i.classList.add("last_element");var g=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("viewBox","0 0 14 14"),t.setAttribute("width","14"),t.setAttribute("height","14"),t.setAttribute("fill","none");var n=document.createElementNS(e,"path");return n.setAttribute("d","M1 5.66602C1 3.7804 1 2.83759 1.58579 2.2518C2.17157 1.66602 3.11438 1.66602 5 1.66602H9C10.8856 1.66602 11.8284 1.66602 12.4142 2.2518C13 2.83759 13 3.7804 13 5.66602V7.66601C13 9.55163 13 10.4944 12.4142 11.0802C11.8284 11.666 10.8856 11.666 9 11.666H4.63014C4.49742 11.666 4.43106 11.666 4.36715 11.6701C3.92582 11.6984 3.50632 11.8722 3.17425 12.1642C3.12616 12.2065 3.07924 12.2534 2.98539 12.3473V12.3473C2.75446 12.5782 2.639 12.6937 2.55914 12.7475C1.96522 13.1481 1.15512 12.8125 1.01838 12.1093C1 12.0148 1 11.8515 1 11.5249V5.66602Z"),n.setAttribute("stroke","rgba(255, 210, 52, 0.8)"),n.setAttribute("stroke-width","1.8"),n.setAttribute("stroke-linejoin","round"),t.appendChild(n),t}();g.setAttribute(Kn,t);var m=document.createElement("div");m.className="highlight_note_button",m.appendChild(g),m.setAttribute(Kn,t),m.setAttribute("width","14px"),m.setAttribute("height","14px"),i.appendChild(m)}return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c}}function nr(e){var t=document.getElementById(Zn);if(!t)throw new Error("Unable to find article content element");var n=new Range,r=new Range,o=new Range;o.selectNode(t),n.setStart(o.startContainer,o.startOffset),n.setEnd(e.startContainer,e.startOffset),r.setStart(e.endContainer,e.endOffset),r.setEnd(o.endContainer,o.endOffset);var i="".concat(n.toString(),"<").concat(Yn,">").concat(e.toString(),"").concat(Yn,">").concat(r.toString()),a=new qn.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function rr(e){var t=nr(e),n=ir(t);return[n.highlightTextStart,n.highlightTextEnd]}var or=function(e){var t=(null==e?void 0:e.current)||document.getElementById(Zn);if(!t)throw new Error("Unable to find article content element");var n=0,r="",o=!1,i=[];return t.childNodes.forEach((function e(t){var a;t.nodeType===Node.TEXT_NODE?(i.push({startIndex:n,node:t,startsParagraph:o}),n+=(null===(a=t.nodeValue)||void 0===a?void 0:a.length)||0,r+=t.nodeValue,o=!1):(Qn.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},ir=function(e){if(!e)throw new Error("Invalid patch");var t,n=or().articleText,r=new qn.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=Jn.exec(o[0]);else{r.Match_Threshold=.5,r.Match_Distance=4e3;var i=r.patch_apply(r.patch_fromText(e),n);if(!i[1][0])throw new Error("Unable to find the highlight");t=Jn.exec(i[0])}if(!t)throw new Error("Unable to find the highlight from patch");var a=t.index;return{highlightTextStart:a,highlightTextEnd:a+t[1].length,matchingHighlightContent:t}};function ar(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=or().textNodes,r=ir(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=Gn(n.map((function(e){return e.startIndex})),o),l=Gn(n.map((function(e){return e.startIndex})),i);return{prefix:ur({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:ur({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var lr=function(e){var t=e.textNodes,n=e.startingTextNodeIndex,r=e.highlightTextStart,o=e.highlightTextEnd,i=t[n],a=i.node,l=i.startIndex,s=i.startsParagraph,u=a.nodeValue||"",c=r-l,d=o-l,f=[];return c>0&&f.push({text:u.substring(0,c),highlight:!1}),f.push({text:u.substring(c,d),highlight:!0}),d<=u.length&&f.push({text:u.substring(d),highlight:!1}),{node:a,textPartsToHighlight:f,startsParagraph:s}},sr=function(e){return Array.from(document.querySelectorAll("[".concat(Xn,"='").concat(e,"']")))},ur=function(e){var t,n=e.textNodes,r=e.startingTextNodeIndex,o=e.startingOffset,i="prefix"===e.side,a=r,l=function e(){var t=n[a+=i?-1:1],r=t.node,o=t.startsParagraph,l=r.nodeValue||"";return i?o||l.length>er?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>er?l:l+e()},s=n[r],u=s.startsParagraph,c=s.node.nodeValue||"",d=i?c.substring(0,o):c.substring(o);return(t=i?u?d:l()+d:!n[a+1]||n[a+1].startsParagraph?d:d+l()).length<=er?t:i?t.slice(t.length-er):t.substring(0,er)},cr=function(e){var t=ar({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<2e3};function dr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function fr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){dr(i,r,o,a,l,"next",e)}function l(e){dr(i,r,o,a,l,"throw",e)}a(void 0)}))}}function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&l<=0,u=i.startContainer===t.focusNode&&i.endOffset===t.anchorOffset,e.abrupt("return",s?{range:i,isReverseSelected:u,selection:t}:void 0);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"==typeof window||!e)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var n=e.getClientRects();if(!n||!n.length)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var r=n[t?0:n.length-1];return{left:window.scrollX+r.left,top:window.scrollY+r.top,right:window.scrollX+r.right,bottom:window.scrollY+r.bottom,width:r.width,height:r.height}};function yr(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function br(){return navigator.userAgent.includes("Android")}function wr(){return br()||yr()}var xr=he("button",{fontFamily:"inter",fontSize:"$2",lineHeight:"1.25",color:"$grayText",variants:{style:{ctaYellow:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $yellow3",bg:"$yellow3","&:hover":{bg:"$yellow4",border:"1px solid $grayBorderHover"}},ctaDarkYellow:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$omnivoreCtaYellow",p:"10px 13px"},ctaOutlineYellow:{boxSizing:"border-box","-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",borderColor:"unset",border:"1px solid $omnivoreCtaYellow",fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$utilityTextDefault",bg:"transparent",p:"9px 12px"},ctaLightGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$grayTextContrast",p:"10px 12px",bg:"rgb(125, 125, 125, 0.1)","&:hover":{bg:"rgb(47, 47, 47, 0.1)",".ctaButtonIcon":{visibility:"visible"}},".ctaButtonIcon":{visibility:"hidden"}},ctaGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$grayBgActive",p:"10px 12px"},ctaWhite:{borderRadius:"$3",px:"$3",py:"$2",cursor:"pointer",border:"1px solid $grayBgSubtle",bg:"$grayBgSubtle","&:hover":{border:"1px solid $grayBorderHover"}},modalOption:{style:"ghost",height:"52px",width:"100%",textAlign:"left",verticalAlign:"middle",color:"#0A0806",backgroundColor:"unset",outlineColor:"rgba(0, 0, 0, 0)",border:"1px solid rgba(0, 0, 0, 0.06)",cursor:"pointer","&:focus":{outline:"none"}},ctaModal:{height:"32px",verticalAlign:"middle",color:"$textDefault",backgroundColor:"$grayBase",fontWeight:"600",padding:"0px 12px",fontSize:"16px",border:"1px solid $grayBorder",cursor:"pointer",borderRadius:"8px","&:focus":{outline:"none"}},ctaSecondary:{color:"$grayText",border:"none",bg:"transparent","&:hover":{opacity:.8}},ctaPill:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $grayBorder",bg:"$grayBgActive","&:hover":{bg:"$grayBgHover",border:"1px solid $grayBorderHover"}},circularIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,borderRadius:"50%",justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",opacity:.9,"&:hover":{opacity:1}},squareIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",borderRight:"1px solid $grayText",opacity:.9,"&:hover":{opacity:1}},plainIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.8}},articleActionIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.8}},ghost:{color:"transparent",border:"none",bg:"transparent",cursor:"pointer","&:hover":{opacity:.8}},themeSwitch:{p:"0px",m:"0px",ml:"0px",width:"60px",height:"48px",fontSize:"14px",border:"unset",borderRadius:"6px","&:hover":{transform:"scale(1.1)",border:"2px solid #F9D354"},'&[data-state="selected"]':{border:"2px solid #F9D354"}}}},defaultVariants:{style:"ctaWhite"}});function kr(e){return e.color,e.height,e.width,(0,De.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,De.jsx)("path",{d:"M4.5 20.25H8.68934C8.78783 20.25 8.88536 20.2306 8.97635 20.1929C9.06735 20.1552 9.15003 20.1 9.21967 20.0303L18 11.25L12.75 6.00001L3.96967 14.7803C3.90003 14.85 3.84478 14.9327 3.80709 15.0237C3.80379 15.0316 3.80063 15.0396 3.79761 15.0477C3.76615 15.1317 3.75 15.2208 3.75 15.3107V19.5C3.75 19.6989 3.82902 19.8897 3.96967 20.0303C4.11032 20.171 4.30109 20.25 4.5 20.25Z",fill:"#FFD234"}),(0,De.jsx)("path",{d:"M15.2197 3.53034L12.75 6.00001L18 11.25L20.4697 8.78034C20.6103 8.63969 20.6893 8.44892 20.6893 8.25001C20.6893 8.0511 20.6103 7.86033 20.4697 7.71968L16.2803 3.53034C16.1397 3.38969 15.9489 3.31067 15.75 3.31067C15.5511 3.31067 15.3603 3.38969 15.2197 3.53034Z",fill:"#FFD234"}),(0,De.jsx)("path",{d:"M8.68934 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V15.3107C3.75 15.2122 3.7694 15.1147 3.80709 15.0237C3.84478 14.9327 3.90003 14.85 3.96967 14.7803L15.2197 3.53034C15.3603 3.38969 15.5511 3.31067 15.75 3.31067C15.9489 3.31067 16.1397 3.38969 16.2803 3.53034L20.4697 7.71968C20.6103 7.86033 20.6893 8.0511 20.6893 8.25001C20.6893 8.44892 20.6103 8.63969 20.4697 8.78034L9.21967 20.0303C9.15003 20.1 9.06735 20.1552 8.97635 20.1929C8.88536 20.2306 8.78783 20.25 8.68934 20.25Z",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M12.75 6L18 11.25",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,De.jsx)("path",{d:"M8.95223 20.2021L3.79785 15.0477",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}he(xr,{variants:{style:{ctaWhite:{color:"red",padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid $grayBorder",boxSizing:"border-box",borderRadius:6,width:40,height:40}}}});var Er=(0,s.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Sr=function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function _r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Cr=(0,s.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,a=e.mirrored,l=e.children,u=e.renderPath,c=_r(e,["alt","color","size","weight","mirrored","children","renderPath"]),d=(0,s.useContext)(Er),f=d.color,p=void 0===f?"currentColor":f,h=d.size,g=d.weight,m=void 0===g?"regular":g,v=d.mirrored,y=void 0!==v&&v,b=_r(d,["color","size","weight","mirrored"]);return s.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=o?o:h,height:null!=o?o:h,fill:null!=r?r:p,viewBox:"0 0 256 256",transform:a||y?"scale(-1, 1)":void 0},b,c),!!n&&s.createElement("title",null,n),l,s.createElement("rect",{width:"256",height:"256",fill:"none"}),u(null!=i?i:m,null!=r?r:p))}));Cr.displayName="IconBase";const Or=Cr;var Pr=new Map;Pr.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M200,60V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M168,60V36a16,16,0,0,0-16-16H104A16,16,0,0,0,88,36V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Pr.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Pr.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M216,48H176V40a24.1,24.1,0,0,0-24-24H104A24.1,24.1,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))})),Pr.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Pr.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Pr.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var jr=function(e,t){return Sr(e,t,Pr)},Lr=(0,s.forwardRef)((function(e,t){return s.createElement(Or,Object.assign({ref:t},e,{renderPath:jr}))}));Lr.displayName="Trash";const Rr=Lr;var Tr=new Map;Tr.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"108",x2:"160",y2:"108",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"96",y1:"148",x2:"116",y2:"148",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("polyline",{points:"215.3 156 156 156 156 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Tr.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("polygon",{points:"216 160 160 160 160 216 216 160",opacity:"0.2"}),s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Tr.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.7a15.9,15.9,0,0,0,11.3-4.7L219.3,168a15.9,15.9,0,0,0,4.7-11.3V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.7V160h44.7Z"}))})),Tr.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Tr.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Tr.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Ar=function(e,t){return Sr(e,t,Tr)},Mr=(0,s.forwardRef)((function(e,t){return s.createElement(Or,Object.assign({ref:t},e,{renderPath:Ar}))}));Mr.displayName="Note";const Ir=Mr;function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=(Gr[e[t+0]]+Gr[e[t+1]]+Gr[e[t+2]]+Gr[e[t+3]]+"-"+Gr[e[t+4]]+Gr[e[t+5]]+"-"+Gr[e[t+6]]+Gr[e[t+7]]+"-"+Gr[e[t+8]]+Gr[e[t+9]]+"-"+Gr[e[t+10]]+Gr[e[t+11]]+Gr[e[t+12]]+Gr[e[t+13]]+Gr[e[t+14]]+Gr[e[t+15]]).toLowerCase();if(!qr(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let Yr=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function Zr(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=!!e.toString().match(/[\u1C88\u3131-\uD79D]/gi),o=r?e.startOffset:Jr(e.startOffset,!1,t),i=r?e.endOffset:Jr(e.endOffset,!0,n);try{e.setStart(e.startContainer,o),e.setEnd(e.endContainer,i)}catch(e){console.warn("Unable to snap selection to the next word")}}var Qr=function(e){return!!e&&/\u2014|\u2013|,|\s/.test(e)};function Jr(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(Qr(r[o-1]))return o-1;for(;o0;){if(Qr(r[o-1]))return o;o--}}return o}function eo(e){return function(e){if(Array.isArray(e))return to(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return to(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?to(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,o=t.selection,i=o.range,a=o.selection,Zr(i),l=Kr(),s=nr(i),cr(s)){e.next=9;break}return e.abrupt("return",{errorMessage:"Highlight is too long"});case 9:if(a.isCollapsed||a.collapseToStart(),u=[],t.annotation&&u.push(t.annotation),r&&(t.selection.overlapHighlights.forEach((function(e){var n=t.existingHighlights.find((function(t){return t.id===e})),r=null==n?void 0:n.annotation;r&&u.push(r)})),Br(t.selection.overlapHighlights,t.highlightStartEndOffsets)),c=tr(s,l,u.length>0),d={prefix:c.prefix,suffix:c.suffix,quote:c.quote,id:l,shortId:Yr(8),patch:s,annotation:u.length>0?u.join("\n"):void 0,articleId:t.articleId},p=t.existingHighlights,!r){e.next=23;break}return e.next=19,n.mergeHighlightMutation(ro(ro({},d),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 19:f=e.sent,p=t.existingHighlights.filter((function(e){return!t.selection.overlapHighlights.includes(e.id)})),e.next=26;break;case 23:return e.next=25,n.createHighlightMutation(d);case 25:f=e.sent;case 26:if(!f){e.next=31;break}return h=[].concat(eo(p),[f]),e.abrupt("return",{highlights:h,newHighlightIndex:h.length>0?h.length-1:void 0});case 31:return e.abrupt("return",{highlights:t.existingHighlights,errorMessage:"Could not create highlight"});case 32:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uo(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function co(...e){return s.useCallback(uo(...e),e)}const fo=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.Children.toArray(n).some(go)?s.createElement(s.Fragment,null,s.Children.map(n,(e=>go(e)?s.createElement(po,Ee({},r,{ref:t}),e.props.children):e))):s.createElement(po,Ee({},r,{ref:t}),n)}));fo.displayName="Slot";const po=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...mo(r,n.props),ref:uo(t,n.ref)}):s.Children.count(n)>1?s.Children.only(null):null}));po.displayName="SlotClone";const ho=({children:e})=>s.createElement(s.Fragment,null,e);function go(e){return s.isValidElement(e)&&e.type===ho}function mo(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}var vo=new WeakMap,yo=new WeakMap,bo={},wo=0,xo=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];bo[n]||(bo[n]=new WeakMap);var o=bo[n],i=[],a=new Set,l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};r.forEach(l);var s=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))s(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,l=(vo.get(e)||0)+1,u=(o.get(e)||0)+1;vo.set(e,l),o.set(e,u),i.push(e),1===l&&r&&yo.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),wo++,function(){i.forEach((function(e){var t=vo.get(e)-1,r=o.get(e)-1;vo.set(e,t),o.set(e,r),t||(yo.has(e)||e.removeAttribute("aria-hidden"),yo.delete(e)),r||e.removeAttribute(n)})),--wo||(vo=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo={})}},ko=function(){return ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;nr[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$o=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"range"===e.type||"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Bo=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Wo=!1;if("undefined"!=typeof window)try{var Ho=Object.defineProperty({},"passive",{get:function(){return Wo=!0,!0}});window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch(e){Wo=!1}var Uo=!!Wo&&{passive:!1},Vo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qo=function(e){return[e.deltaX,e.deltaY]},Go=function(e){return e&&"current"in e?e.current:e},Xo=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Ko=0,Yo=[];const Zo=(Qo=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(Ko++)[0],i=s.useState((function(){return To()}))[0],a=s.useRef(e);s.useEffect((function(){a.current=e}),[e]),s.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Go)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Vo(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v",f=zo(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=zo(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,l=t.contains(a),s=!1,u=i>0,c=0,d=0;do{var f=Bo(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&$o(e,a)&&(c+=h,d+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(0===c||!1)||!u&&(0===d||!1))&&(s=!0),s}(p,t,e,"h"===p?s:u)}),[]),u=s.useCallback((function(e){var n=e;if(Yo.length&&Yo[Yo.length-1]===i){var r="deltaY"in n?qo(n):Vo(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var s=(a.current.shards||[]).map(Go).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),c=s.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=s.useCallback((function(e){n.current=Vo(e),r.current=void 0}),[]),f=s.useCallback((function(t){c(t.type,qo(t),t.target,l(t,e.lockRef.current))}),[]),p=s.useCallback((function(t){c(t.type,Vo(t),t.target,l(t,e.lockRef.current))}),[]);s.useEffect((function(){return Yo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Uo),document.addEventListener("touchmove",u,Uo),document.addEventListener("touchstart",d,Uo),function(){Yo=Yo.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Uo),document.removeEventListener("touchmove",u,Uo),document.removeEventListener("touchstart",d,Uo)}}),[]);var h=e.removeScrollBar,g=e.inert;return s.createElement(s.Fragment,null,g?s.createElement(i,{styles:Xo(o)}):null,h?s.createElement(Fo,{gapMode:"margin"}):null)},Oo.useMedium(Qo),Lo);var Qo,Jo=s.forwardRef((function(e,t){return s.createElement(jo,ko({},e,{ref:t,sideCar:Zo}))}));Jo.classNames=jo.classNames;const ei=Jo;let ti=0;function ni(){s.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:ri()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ri()),ti++,()=>{1===ti&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ti--}}),[])}function ri(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const oi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?fo:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),s.createElement(i,Ee({},o,{ref:n}))}))})),{}),ii=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?s.useLayoutEffect:()=>{},ai=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=s.useState(),r=s.useRef({}),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[l,u]=function(e,t){return s.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect((()=>{const e=li(r.current);i.current="mounted"===l?e:"none"}),[l]),ii((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=li(t);if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{const e=r!==a;u(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),ii((()=>{if(t){const e=e=>{const n=li(r.current).includes(e.animationName);e.target===t&&n&&u("ANIMATION_END")},n=e=>{e.target===t&&(i.current=li(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),i=co(r.ref,o.ref);return"function"==typeof n||r.isPresent?s.cloneElement(o,{ref:i}):null};function li(e){return(null==e?void 0:e.animationName)||"none"}function si(e){const t=s.useRef(e);return s.useEffect((()=>{t.current=e})),s.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}ai.displayName="Presence";const ui={bubbles:!1,cancelable:!0},ci=s.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=s.useState(null),c=si(o),d=si(i),f=s.useRef(null),p=co(t,(e=>u(e))),h=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:hi(f.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||hi(f.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),s.useEffect((()=>{if(l){gi.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new Event("focusScope.autoFocusOnMount",ui);l.addEventListener("focusScope.autoFocusOnMount",c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hi(r,{select:t}),document.activeElement!==n)return}(di(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&hi(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",ui);l.addEventListener("focusScope.autoFocusOnUnmount",d),l.dispatchEvent(t),t.defaultPrevented||hi(null!=e?e:document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",d),gi.remove(h)}),0)}}}),[l,c,d,h]);const g=s.useCallback((e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=di(e);return[fi(t,e),fi(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&hi(i,{select:!0})):(e.preventDefault(),n&&hi(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return s.createElement(oi.div,Ee({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function di(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fi(e,t){for(const n of e)if(!pi(n,{upTo:t}))return n}function pi(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function hi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const gi=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=mi(e,t),e.unshift(t)},remove(t){var n;e=mi(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function mi(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function vi(e){const t=si(e);s.useEffect((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}let yi,bi=0;function wi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const xi=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ki=s.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...u}=e,c=s.useContext(xi),[d,f]=s.useState(null),[,p]=s.useState({}),h=co(t,(e=>f(e))),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=d?g.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e){const t=si((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));w&&!n&&(null==o||o(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!n.current&&Si("dismissableLayer.pointerDownOutside",t,{originalEvent:e}),n.current=!1},r=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}(),k=function(e){const t=si((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!n.current&&Si("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}();return vi((e=>{y===c.layers.size-1&&(null==r||r(e),e.defaultPrevented||null==l||l())})),function({disabled:e}){const t=s.useRef(!1);ii((()=>{if(e){function n(){bi--,0===bi&&(document.body.style.pointerEvents=yi)}function r(e){t.current="mouse"!==e.pointerType}return 0===bi&&(yi=document.body.style.pointerEvents),document.body.style.pointerEvents="none",bi++,document.addEventListener("pointerup",r),()=>{t.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",r)}}}),[e])}({disabled:n}),s.useEffect((()=>{d&&(n&&c.layersWithOutsidePointerEventsDisabled.add(d),c.layers.add(d),Ei())}),[d,n,c]),s.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ei())}),[d,c]),s.useEffect((()=>{const e=()=>p({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),s.createElement(oi.div,Ee({},u,{ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:wi(e.onFocusCapture,k.onFocusCapture),onBlurCapture:wi(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wi(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Ei(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Si(e,t,n){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return t&&r.addEventListener(e,t,{once:!0}),!r.dispatchEvent(o)}function _i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,o=s.useRef(r),i=si(t);return s.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=si(n);return[a,s.useCallback((t=>{if(i){const n=t,r="function"==typeof t?n(e):t;r!==e&&l(r)}else o(t)}),[i,e,o,l])]}const Ci=u["useId".toString()]||(()=>{});let Oi=0;function Pi(e){const[t,n]=s.useState(Ci());return ii((()=>{e||n((e=>null!=e?e:String(Oi++)))}),[e]),e||(t?`radix-${t}`:"")}function ji(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>s.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return s.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=s.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,u=s.useMemo((()=>a),Object.values(a));return s.createElement(l.Provider,{value:u},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,u=s.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Li(r,...t)]}function Li(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return s.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const[Ri,Ti]=ji("Dialog"),[Ai,Mi]=Ri("Dialog"),Ii=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Mi("DialogOverlay",e.__scopeDialog);return o.modal?s.createElement(ai,{present:n||o.open},s.createElement(Di,Ee({},r,{ref:t}))):null})),Di=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mi("DialogOverlay",n);return s.createElement(ei,{as:fo,allowPinchZoom:o.allowPinchZoom,shards:[o.contentRef]},s.createElement(oi.div,Ee({"data-state":Bi(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Ni=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Mi("DialogContent",e.__scopeDialog);return s.createElement(ai,{present:n||o.open},o.modal?s.createElement(Fi,Ee({},r,{ref:t})):s.createElement(zi,Ee({},r,{ref:t})))})),Fi=s.forwardRef(((e,t)=>{const n=Mi("DialogContent",e.__scopeDialog),r=s.useRef(null),o=co(t,n.contentRef,r);return s.useEffect((()=>{const e=r.current;if(e)return xo(e)}),[]),s.createElement($i,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wi(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:wi(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:wi(e.onFocusOutside,(e=>e.preventDefault()))}))})),zi=s.forwardRef(((e,t)=>{const n=Mi("DialogContent",e.__scopeDialog),r=s.useRef(!1);return s.createElement($i,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),$i=s.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Mi("DialogContent",n),u=co(t,s.useRef(null));return ni(),s.createElement(s.Fragment,null,s.createElement(ci,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},s.createElement(ki,Ee({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Bi(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function Bi(e){return e?"open":"closed"}const[Wi,Hi]=function(e,t){const n=s.createContext(t);function r(e){const{children:t,...r}=e,o=s.useMemo((()=>r),Object.values(r));return s.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=s.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"}),Ui=Ii,Vi=Ni;var qi=new Map;qi.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),qi.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),qi.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"}))})),qi.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),qi.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),qi.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Gi=function(e,t){return Sr(e,t,qi)},Xi=(0,s.forwardRef)((function(e,t){return s.createElement(Or,Object.assign({ref:t},e,{renderPath:Gi}))}));Xi.displayName="X";const Ki=Xi;var Yi,Zi,Qi=he((e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0,allowPinchZoom:l}=e,u=s.useRef(null),c=s.useRef(null),[d=!1,f]=_i({prop:r,defaultProp:o,onChange:i});return s.createElement(Ai,{scope:t,triggerRef:u,contentRef:c,contentId:Pi(),titleId:Pi(),descriptionId:Pi(),open:d,onOpenChange:f,onOpenToggle:s.useCallback((()=>f((e=>!e))),[f]),modal:a,allowPinchZoom:l},n)}),{}),Ji=ve({"0%":{opacity:0},"100%":{opacity:1}}),ea=he(Ui,{backgroundColor:"$overlay",width:"100vw",height:"100vh",position:"fixed",inset:0,"@media (prefers-reduced-motion: no-preference)":{animation:"".concat(Ji," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}}),ta=he(Vi,{backgroundColor:"$grayBg",borderRadius:6,boxShadow:ge.shadows.cardBoxShadow.toString(),position:"fixed","&:focus":{outline:"none"},zIndex:"1"}),na=he(ta,{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90vw",maxWidth:"450px",maxHeight:"85vh","@smDown":{maxWidth:"95%",width:"95%"},zIndex:"10"}),ra=function(e){return(0,De.jsxs)(We,{distribution:"between",alignment:"center",css:{height:"68px",width:"100%"},children:[(0,De.jsx)(Hn,{style:"modalHeadline",children:e.title}),(0,De.jsx)(xr,{css:{ml:"auto"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,De.jsx)(Ki,{size:24,color:ge.colors.textNonessential.toString()})})]})},oa=function(e){return(0,De.jsxs)(We,{alignment:"center",distribution:"end",css:{gap:"10px",width:"100%",height:"80px","input:focus":{outline:"5px auto -webkit-focus-ring-color"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"}},children:[(0,De.jsx)(xr,{style:"ctaOutlineYellow",type:"button",onClick:function(t){t.preventDefault(),e.onOpenChange(!1)},children:"Cancel"}),(0,De.jsx)(xr,{style:"ctaDarkYellow",children:e.acceptButtonLabel||"Submit"})]})},ia=he("textarea",{outline:"none",border:"none",overflow:"auto",resize:"none",background:"unset",color:"$grayText",fontSize:"$3",fontFamily:"inter",lineHeight:"1.35","&::placeholder":{opacity:.7}});function aa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function la(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function sa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){la(i,r,o,a,l,"next",e)}function l(e){la(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ua(e){return ca.apply(this,arguments)}function ca(){return ca=sa(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,rt.gql)(Yi||(Yi=aa(["\n mutation UpdateHighlight($input: UpdateHighlightInput!) {\n updateHighlight(input: $input) {\n ... on UpdateHighlightSuccess {\n highlight {\n id\n }\n }\n\n ... on UpdateHighlightError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,bn(n,{input:t});case 4:return r=e.sent,o=r,e.abrupt("return",null==o?void 0:o.updateHighlight.highlight.id);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),ca.apply(this,arguments)}he(ia,{borderRadius:"6px",border:"1px solid $grayBorder",p:"$3",fontSize:"$1"}),function(e){e[e.SET_KEY_DOWN=0]="SET_KEY_DOWN",e[e.SET_KEY_UP=1]="SET_KEY_UP"}(Zi||(Zi={}));let da,fa,pa,ha={data:""},ga=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ha,ma=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,va=/\/\*[^]*?\*\/|\s\s+|\n/g,ya=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?ya(a,i):i+"{"+ya(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=ya(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ya.p?ya.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ba={},wa=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+wa(e[n]);return t}return e},xa=(e,t,n,r,o)=>{let i=wa(e),a=ba[i]||(ba[i]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(i));if(!ba[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=ma.exec(e.replace(va,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);ba[a]=ya(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(ba[a],t,r),a},ka=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":ya(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ea(e){let t=this||{},n=e.call?e(t.p):e;return xa(n.unshift?n.raw?ka(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,ga(t.target),t.g,t.o,t.k)}function Sa(){return Sa=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2])||arguments[2],r=(0,s.useCallback)((function(r){var o=r.key.toLowerCase();if(e&&"enter"===o){if(n&&!r.metaKey&&!r.ctrlKey)return;e()}else t&&"escape"===o&&t()}),[t,e]);(0,s.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keydown",r),function(){window.removeEventListener("keydown",r)}}),[r])}((function(){h()}),void 0,!0),e.highlight&&(c=null===(r=e.highlight)||void 0===r?void 0:r.updatedAt,d="Updated ",(f=Math.ceil((new Date).valueOf()-new Date(c).valueOf())/1e3)<60?"".concat(d," a few seconds ago"):f<3600?"".concat(d," ").concat(Math.floor(f/60)," minutes ago"):f<86400?"".concat(d," ").concat(Math.floor(f/3600)," hours ago"):f<604800?"".concat(d," ").concat(Math.floor(f/86400)," days ago"):f<2592e3?"".concat(d," ").concat(Math.floor(f/604800)," weeks ago"):f<31536e3?"".concat(d," ").concat(Math.floor(f/2592e3)," months ago"):f<31536e4?"".concat(d," ").concat(Math.floor(f/31536e3)," years ago"):f<31536e5&&"".concat(d," ").concat(Math.floor(f/31536e4)," decades ago"));var c,d,f,p=(0,s.useCallback)((function(e){u(e.target.value)}),[u]),h=(0,s.useCallback)(ol(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l==(null===(n=e.highlight)||void 0===n?void 0:n.annotation)||null===(r=e.highlight)||void 0===r||!r.id){t.next=5;break}return t.next=3,ua({highlightId:null===(o=e.highlight)||void 0===o?void 0:o.id,annotation:l});case 3:t.sent?(e.onUpdate(tl(tl({},e.highlight),{},{annotation:l})),e.onOpenChange(!1)):Ja("Error updating your note",{position:"bottom-right"});case 5:if(e.highlight||!e.createHighlightForNote){t.next=12;break}return t.next=8,e.createHighlightForNote(l);case 8:t.sent?e.onOpenChange(!0):Ja("Error saving highlight",{position:"bottom-right"}),t.next=13;break;case 12:e.onOpenChange(!1);case 13:case"end":return t.stop()}}),t)}))),[l,e]);return(0,De.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,De.jsx)(ea,{}),(0,De.jsx)(na,{css:{bg:"$grayBg",px:"24px"},onPointerDownOutside:function(e){e.preventDefault()},children:(0,De.jsx)("form",{onSubmit:function(t){t.preventDefault(),h(),e.onOpenChange(!1)},children:(0,De.jsxs)(He,{children:[(0,De.jsx)(ra,{title:"Notes",onOpenChange:e.onOpenChange}),(0,De.jsx)(ia,{css:{mt:"16px",p:"6px",width:"100%",height:"248px",fontSize:"14px",border:"1px solid $textNonessential",borderRadius:"6px"},autoFocus:!0,placeholder:"Add your note here",value:l,onChange:p,maxLength:4e3}),(0,De.jsx)(oa,{onOpenChange:e.onOpenChange,acceptButtonLabel:"Save"})]})})})]})}function ll(e,t,n){return Math.min(Math.max(e,n),t)}class sl extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ul=sl;function cl(e){if("string"!=typeof e)throw new ul(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=yl.test(e)?function(e){const t=e.toLowerCase().trim(),n=fl[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new ul(e);return`#${n}`}(e):e;const n=hl.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(pl(e,2),16))),parseInt(pl(e[3]||"f",2),16)/255]}const r=gl.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=ml.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=vl.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(ll(0,100,n)!==n)throw new ul(e);if(ll(0,100,r)!==r)throw new ul(e);return[...wl(t,n,r),o||1]}throw new ul(e)}const dl=e=>parseInt(e.replace(/_/g,""),36),fl="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const n=dl(t.substring(0,3)),r=dl(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),pl=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),hl=new RegExp(`^#${pl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gl=new RegExp(`^#${pl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ml=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vl=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,yl=/^[a-z]+$/i,bl=e=>Math.round(255*e),wl=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(bl);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);const c=r-i/2;return[l+c,s+c,u+c].map(bl)};function xl(e,t){return function(e,t){const[n,r,o,i]=function(e){const[t,n,r,o]=cl(e).map(((e,t)=>3===t?e:e/255)),i=Math.max(t,n,r),a=Math.min(t,n,r),l=(i+a)/2;if(i===a)return[0,0,l,o];const s=i-a;return[60*(t===i?(n-r)/s+(n.5?s/(2-i-a):s/(i+a),l,o]}(e);return function(e,t,n,r){return`hsla(${(e%360).toFixed()}, ${ll(0,100,100*t).toFixed()}%, ${ll(0,100,100*n).toFixed()}%, ${parseFloat(ll(0,1,r).toFixed(3))})`}(n,r,o-t,i)}(e,-t)}var kl=o(5632);function El(e){var t,n,r=(0,kl.useRouter)(),o=Dn(),i=function(e){if("transparent"===e)return 0;function t(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}const[n,r,o]=cl(e);return.2126*t(n)+.7152*t(r)+.0722*t(o)}(e.color),a=xl(e.color,.2),l=(t=e.color,[(n=parseInt(t.substring(1),16))>>16&255,n>>8&255,255&n]),s=i>.2?"rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 1)"):a,u=i>.5?"#000000":"#ffffff";return(0,De.jsx)(xr,{style:"plainIcon",onClick:function(t){r.push('/home?q=label:"'.concat(e.text,'"')),t.stopPropagation()},children:(0,De.jsx)(ze,{css:{display:"inline-table",margin:"4px",borderRadius:"4px",color:o?s:u,fontSize:"12px",fontWeight:"bold",padding:"2px 5px 2px 5px",whiteSpace:"nowrap",cursor:"pointer",backgroundClip:"padding-box",border:o?"1px solid ".concat(s):"1px solid rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 0.7)"),backgroundColor:o?"rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 0.08)"):e.color},children:e.text})})}function Sl(e){var t,n=(0,s.useMemo)((function(){return e.highlight.quote.split("\n")}),[e.highlight.quote]),r=he(Be,{margin:"0px 0px 0px 0px",fontSize:"18px",lineHeight:"27px",color:"$grayText",padding:"0px 16px",borderLeft:"2px solid $omnivoreCtaYellow"});return(0,De.jsx)(He,{css:{width:"100%",boxSizing:"border-box"},children:(0,De.jsxs)(r,{onClick:function(){e.scrollToHighlight&&e.scrollToHighlight(e.highlight.id)},children:[(0,De.jsx)(ze,{css:{p:"1px",borderRadius:"2px"},children:n.map((function(e,t){return(0,De.jsxs)(s.Fragment,{children:[e,t!==n.length-1&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("br",{}),(0,De.jsx)("br",{})]})]},t)}))}),(0,De.jsx)(Fe,{css:{display:"block",pt:"16px"},children:null===(t=e.highlight.labels)||void 0===t?void 0:t.map((function(e,t){var n=e.name,r=e.color;return(0,De.jsx)(El,{text:n||"",color:r},t)}))})]})})}function _l(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Cl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){_l(i,r,o,a,l,"next",e)}function l(e){_l(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ns.createElement(oi.span,Ee({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Al=s.forwardRef(((e,t)=>{var n,r;const{containerRef:o,style:i,...a}=e,l=null!==(n=null==o?void 0:o.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body,[,u]=s.useState({});return ii((()=>{u({})}),[]),l?c.createPortal(s.createElement(oi.div,Ee({"data-radix-portal":""},a,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...i}:void 0})),l):null})),Ml=s.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s.createElement(oi.svg,Ee({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:s.createElement("polygon",{points:"0,0 30,0 15,10"}))})),Il=Ml;function Dl(e){const[t,n]=s.useState(void 0);return s.useEffect((()=>{if(e){const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else{const t=e.getBoundingClientRect();o=t.width,i=t.height}n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}let Nl;const Fl=new Map;function zl(){const e=[];Fl.forEach(((t,n)=>{const r=n.getBoundingClientRect();var o,i;i=r,((o=t.rect).width!==i.width||o.height!==i.height||o.top!==i.top||o.right!==i.right||o.bottom!==i.bottom||o.left!==i.left)&&(t.rect=r,e.push(t))})),e.forEach((e=>{e.callbacks.forEach((t=>t(e.rect)))})),Nl=requestAnimationFrame(zl)}function $l(e){const[t,n]=s.useState();return s.useEffect((()=>{if(e){const t=function(e,t){const n=Fl.get(e);return void 0===n?(Fl.set(e,{rect:{},callbacks:[t]}),1===Fl.size&&(Nl=requestAnimationFrame(zl))):(n.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Fl.get(e);if(void 0===n)return;const r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(Fl.delete(e),0===Fl.size&&cancelAnimationFrame(Nl))}}(e,n);return()=>{n(void 0),t()}}}),[e]),t}function Bl(e,t,n){const r=e["x"===n?"left":"top"],o="x"===n?"width":"height",i=e[o],a=t[o];return{before:r-a,start:r,center:r+(i-a)/2,end:r+i-a,after:r+i}}function Wl(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Hl(e,t,n,r,o){const i="top"===t||"bottom"===t,a=o?o.width:0,l=o?o.height:0,s=a/2+r;let u="",c="";return i?(u={start:`${s}px`,center:"center",end:e.width-s+"px"}[n],c="top"===t?`${e.height+l}px`:-l+"px"):(u="left"===t?`${e.width+l}px`:-l+"px",c={start:`${s}px`,center:"center",end:e.height-s+"px"}[n]),`${u} ${c}`}const Ul={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Vl={position:"absolute",opacity:0};function ql({popperSize:e,arrowSize:t,arrowOffset:n,side:r,align:o}){const i=(e.width-t.width)/2,a=(e.height-t.width)/2,l={top:0,right:90,bottom:180,left:-90}[r],s=Math.max(t.width,t.height),u={width:`${s}px`,height:`${s}px`,transform:`rotate(${l}deg)`,willChange:"transform",position:"absolute",[r]:"100%",direction:Gl(r,o)};return"top"!==r&&"bottom"!==r||("start"===o&&(u.left=`${n}px`),"center"===o&&(u.left=`${i}px`),"end"===o&&(u.right=`${n}px`)),"left"!==r&&"right"!==r||("start"===o&&(u.top=`${n}px`),"center"===o&&(u.top=`${a}px`),"end"===o&&(u.bottom=`${n}px`)),u}function Gl(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}function Xl(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Kl(e,t){return{top:e.topt.right,bottom:e.bottom>t.bottom,left:e.left{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jl("PopperAnchor",n),a=s.useRef(null),l=co(t,a);return s.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:s.createElement(oi.div,Ee({},o,{ref:l}))})),[ts,ns]=Yl("PopperContent"),rs=s.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o,align:i="center",alignOffset:a,collisionTolerance:l,avoidCollisions:u=!0,...c}=e,d=Jl("PopperContent",n),[f,p]=s.useState(),h=$l(d.anchor),[g,m]=s.useState(null),v=Dl(g),[y,b]=s.useState(null),w=Dl(y),x=co(t,(e=>m(e))),k=function(){const[e,t]=s.useState(void 0);return s.useEffect((()=>{let e;function n(){t({width:window.innerWidth,height:window.innerHeight})}function r(){window.clearTimeout(e),e=window.setTimeout(n,100)}return n(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[]),e}(),E=k?DOMRect.fromRect({...k,x:0,y:0}):void 0,{popperStyles:S,arrowStyles:_,placedSide:C,placedAlign:O}=function({anchorRect:e,popperSize:t,arrowSize:n,arrowOffset:r=0,side:o,sideOffset:i=0,align:a,alignOffset:l=0,shouldAvoidCollisions:s=!0,collisionBoundariesRect:u,collisionTolerance:c=0}){if(!e||!t||!u)return{popperStyles:Ul,arrowStyles:Vl};const d=function(e,t,n=0,r=0,o){const i=o?o.height:0,a=Bl(t,e,"x"),l=Bl(t,e,"y"),s=l.before-n-i,u=l.after+n+i,c=a.before-n-i,d=a.after+n+i;return{top:{start:{x:a.start+r,y:s},center:{x:a.center,y:s},end:{x:a.end-r,y:s}},right:{start:{x:d,y:l.start+r},center:{x:d,y:l.center},end:{x:d,y:l.end-r}},bottom:{start:{x:a.start+r,y:u},center:{x:a.center,y:u},end:{x:a.end-r,y:u}},left:{start:{x:c,y:l.start+r},center:{x:c,y:l.center},end:{x:c,y:l.end-r}}}}(t,e,i,l,n),f=d[o][a];if(!1===s){const e=Wl(f);let i=Vl;return n&&(i=ql({popperSize:t,arrowSize:n,arrowOffset:r,side:o,align:a})),{popperStyles:{...e,"--radix-popper-transform-origin":Hl(t,o,a,r,n)},arrowStyles:i,placedSide:o,placedAlign:a}}const p=DOMRect.fromRect({...t,...f}),h=(g=u,m=c,DOMRect.fromRect({width:g.width-2*m,height:g.height-2*m,x:g.left+m,y:g.top+m}));var g,m;const v=Kl(p,h),y=d[Xl(o)][a],b=function(e,t,n){const r=Xl(e);return t[e]&&!n[r]?r:e}(o,v,Kl(DOMRect.fromRect({...t,...y}),h)),w=function(e,t,n,r,o){const i="top"===n||"bottom"===n,a=i?"left":"top",l=i?"right":"bottom",s=i?"width":"height",u=t[s]>e[s];return"start"!==r&&"center"!==r||!(o[a]&&u||o[l]&&!u)?"end"!==r&&"center"!==r||!(o[l]&&u||o[a]&&!u)?r:"start":"end"}(t,e,o,a,v),x=Wl(d[b][w]);let k=Vl;return n&&(k=ql({popperSize:t,arrowSize:n,arrowOffset:r,side:b,align:w})),{popperStyles:{...x,"--radix-popper-transform-origin":Hl(t,b,w,r,n)},arrowStyles:k,placedSide:b,placedAlign:w}}({anchorRect:h,popperSize:v,arrowSize:w,arrowOffset:f,side:r,sideOffset:o,align:i,alignOffset:a,shouldAvoidCollisions:u,collisionBoundariesRect:E,collisionTolerance:l}),P=void 0!==C;return s.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},s.createElement(ts,{scope:n,arrowStyles:_,onArrowChange:b,onArrowOffsetChange:p},s.createElement(oi.div,Ee({"data-side":C,"data-align":O},c,{style:{...c.style,animation:P?void 0:"none"},ref:x}))))})),os=s.forwardRef((function(e,t){const{__scopePopper:n,offset:r,...o}=e,i=ns("PopperArrow",n),{onArrowOffsetChange:a}=i;return s.useEffect((()=>a(r)),[a,r]),s.createElement("span",{style:{...i.arrowStyles,pointerEvents:"none"}},s.createElement("span",{ref:i.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},s.createElement(Il,Ee({},o,{ref:t,style:{...o.style,display:"block"}}))))})),is=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return s.createElement(Ql,{scope:t,anchor:r,onAnchorChange:o},n)},as=es,ls=rs,ss=os;function us(e){const t=s.useRef({value:e,previous:e});return s.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[cs,ds]=ji("Tooltip",[Zl]),fs=Zl(),[ps,hs]=cs("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:()=>{},onClose:()=>{}}),[gs,ms]=cs("Tooltip"),vs=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ms("TooltipTrigger",n),i=fs(n),a=co(t,o.onTriggerChange),l=s.useRef(!1),u=s.useCallback((()=>l.current=!1),[]);return s.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),s.createElement(as,Ee({asChild:!0},i),s.createElement(oi.button,Ee({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onMouseEnter:wi(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:wi(e.onMouseLeave,o.onClose),onMouseDown:wi(e.onMouseDown,(()=>{o.onClose(),l.current=!0,document.addEventListener("mouseup",u,{once:!0})})),onFocus:wi(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:wi(e.onBlur,o.onClose),onClick:wi(e.onClick,(e=>{0===e.detail&&o.onClose()}))})))})),ys=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ms("TooltipContent",e.__scopeTooltip);return s.createElement(ai,{present:n||o.open},s.createElement(bs,Ee({ref:t},r)))})),bs=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,portalled:i=!0,...a}=e,l=ms("TooltipContent",n),u=fs(n),c=i?Al:s.Fragment,{onClose:d}=l;return vi((()=>d())),s.useEffect((()=>(document.addEventListener("tooltip.open",d),()=>document.removeEventListener("tooltip.open",d))),[d]),s.createElement(c,null,s.createElement(ws,{__scopeTooltip:n}),s.createElement(ls,Ee({"data-state":l.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),s.createElement(ho,null,r),s.createElement(Tl,{id:l.contentId,role:"tooltip"},o||r)))}));function ws(e){const{__scopeTooltip:t}=e,n=ms("CheckTriggerMoved",t),r=$l(n.trigger),o=null==r?void 0:r.left,i=us(o),a=null==r?void 0:r.top,l=us(a),u=n.onClose;return s.useEffect((()=>{(void 0!==i&&i!==o||void 0!==l&&l!==a)&&u()}),[u,i,l,o,a]),null}const xs=vs,ks=ys,Es=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fs(n);return s.createElement(ss,Ee({},o,r,{ref:t}))}));var Ss=["children","active","tooltipContent","tooltipSide","arrowStyles"];function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,delayDuration:a}=e,l=hs("Tooltip",t),u=fs(t),[c,d]=s.useState(null),f=Pi(),p=s.useRef(0),h=null!=a?a:l.delayDuration,g=s.useRef(!1),{onOpen:m,onClose:v}=l,[y=!1,b]=_i({prop:r,defaultProp:o,onChange:e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),m()),null==i||i(e)}}),w=s.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=s.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),k=s.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),h)}),[h,b]);return s.useEffect((()=>()=>window.clearTimeout(p.current)),[]),s.createElement(is,u,s.createElement(gs,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:s.useCallback((()=>{l.isOpenDelayed?k():x()}),[l.isOpenDelayed,k,x]),onOpen:s.useCallback(x,[x]),onClose:s.useCallback((()=>{window.clearTimeout(p.current),b(!1),v()}),[b,v])},n))},As=xs,Ms=Ls,Is=Rs,Ds={backgroundColor:"#F9D354",color:"#0A0806"},Ns={fill:"#F9D354"},Fs=function(e){var t=e.children,n=e.active,r=e.tooltipContent,o=e.tooltipSide,i=e.arrowStyles,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ss);return(0,De.jsxs)(Ts,{open:n,children:[(0,De.jsx)(As,{asChild:!0,children:t}),(0,De.jsxs)(Ms,Cs(Cs({sideOffset:5,side:o,style:Ds},a),{},{children:[r,(0,De.jsx)(Is,{style:null!=i?i:Ns})]}))]})},zs=new Map;zs.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),zs.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),zs.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M232,128a104.3,104.3,0,0,1-91.5,103.3,4.1,4.1,0,0,1-4.5-4V152h24a8,8,0,0,0,8-8.5,8.2,8.2,0,0,0-8.3-7.5H136V112a16,16,0,0,1,16-16h16a8,8,0,0,0,8-8.5,8.2,8.2,0,0,0-8.3-7.5H152a32,32,0,0,0-32,32v24H96a8,8,0,0,0-8,8.5,8.2,8.2,0,0,0,8.3,7.5H120v75.3a4,4,0,0,1-4.4,4C62.8,224.9,22,179,24.1,124.1A104,104,0,0,1,232,128Z"}))})),zs.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),zs.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),zs.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var $s=function(e,t){return Sr(e,t,zs)},Bs=(0,s.forwardRef)((function(e,t){return s.createElement(Or,Object.assign({ref:t},e,{renderPath:$s}))}));Bs.displayName="FacebookLogo";const Ws=Bs;var Hs=new Map;Hs.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Hs.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",opacity:"0.2"}),s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Hs.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M245.7,77.7l-30.2,30.1C209.5,177.7,150.5,232,80,232c-14.5,0-26.5-2.3-35.6-6.8-7.3-3.7-10.3-7.6-11.1-8.8a8,8,0,0,1,3.9-11.9c.2-.1,23.8-9.1,39.1-26.4a108.6,108.6,0,0,1-24.7-24.4c-13.7-18.6-28.2-50.9-19.5-99.1a8.1,8.1,0,0,1,5.5-6.2,8,8,0,0,1,8.1,1.9c.3.4,33.6,33.2,74.3,43.8V88a48.3,48.3,0,0,1,48.6-48,48.2,48.2,0,0,1,41,24H240a8,8,0,0,1,7.4,4.9A8.4,8.4,0,0,1,245.7,77.7Z"}))})),Hs.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Hs.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Hs.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Us=function(e,t){return Sr(e,t,Hs)},Vs=(0,s.forwardRef)((function(e,t){return s.createElement(Or,Object.assign({ref:t},e,{renderPath:Us}))}));Vs.displayName="TwitterLogo";const qs=Vs;function Gs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const{scope:n,children:r}=e,o=co(t,i(a,n).collectionRef);return s.createElement(fo,{ref:o},r)})),u=e+"CollectionItemSlot",c="data-radix-collection-item",d=s.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=s.useRef(null),l=co(t,a),d=i(u,n);return s.useEffect((()=>(d.itemMap.set(a,{ref:a,...o}),()=>{d.itemMap.delete(a)}))),s.createElement(fo,{[c]:"",ref:l},r)}));return[{Provider:e=>{const{scope:t,children:n}=e,r=s.useRef(null),i=s.useRef(new Map).current;return s.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t);return s.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}const ru={bubbles:!1,cancelable:!0},[ou,iu,au]=nu("RovingFocusGroup"),[lu,su]=ji("RovingFocusGroup",[au]),[uu,cu]=lu("RovingFocusGroup"),du=s.forwardRef(((e,t)=>s.createElement(ou.Provider,{scope:e.__scopeRovingFocusGroup},s.createElement(ou.Slot,{scope:e.__scopeRovingFocusGroup},s.createElement(fu,Ee({},e,{ref:t})))))),fu=s.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,dir:o="ltr",loop:i=!1,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,...d}=e,f=s.useRef(null),p=co(t,f),[h=null,g]=_i({prop:a,defaultProp:l,onChange:u}),[m,v]=s.useState(!1),y=si(c),b=iu(n),w=s.useRef(!1);return s.useEffect((()=>{const e=f.current;if(e)return e.addEventListener("rovingFocusGroup.onEntryFocus",y),()=>e.removeEventListener("rovingFocusGroup.onEntryFocus",y)}),[y]),s.createElement(uu,{scope:n,orientation:r,dir:o,loop:i,currentTabStopId:h,onItemFocus:s.useCallback((e=>g(e)),[g]),onItemShiftTab:s.useCallback((()=>v(!0)),[])},s.createElement(oi.div,Ee({tabIndex:m?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:wi(e.onMouseDown,(()=>{w.current=!0})),onFocus:wi(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!m){const t=new Event("rovingFocusGroup.onEntryFocus",ru);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));gu([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:wi(e.onBlur,(()=>v(!1)))})))})),pu=s.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,...i}=e,a=Pi(),l=cu("RovingFocusGroupItem",n),u=l.currentTabStopId===a,c=iu(n);return s.createElement(ou.ItemSlot,{scope:n,id:a,focusable:r,active:o},s.createElement(oi.span,Ee({tabIndex:u?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:wi(e.onMouseDown,(e=>{r?l.onItemFocus(a):e.preventDefault()})),onFocus:wi(e.onFocus,(()=>l.onItemFocus(a))),onKeyDown:wi(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:hu[r]}(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let o=c().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=l.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>gu(o)))}var n,r}))})))})),hu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gu(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const mu=du,vu=pu,yu=["Enter"," "],bu=["ArrowUp","PageDown","End"],wu=["ArrowDown","PageUp","Home",...bu],xu={ltr:[...yu,"ArrowRight"],rtl:[...yu,"ArrowLeft"]},ku={ltr:["ArrowLeft"],rtl:["ArrowRight"]},[Eu,Su,_u]=nu("Menu"),[Cu,Ou]=ji("Menu",[_u,Zl,su]),Pu=Zl(),ju=su(),[Lu,Ru]=Cu("Menu"),Tu=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Pu(n);return s.createElement(as,Ee({},o,r,{ref:t}))})),[Au,Mu]=Cu("MenuContent"),Iu=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Ru("MenuContent",e.__scopeMenu);return s.createElement(Eu.Provider,{scope:e.__scopeMenu},s.createElement(ai,{present:n||o.open},s.createElement(Eu.Slot,{scope:e.__scopeMenu},o.isSubmenu?s.createElement(zu,Ee({},r,{ref:t})):s.createElement(Du,Ee({},r,{ref:t})))))})),Du=s.forwardRef(((e,t)=>Ru("MenuContent",e.__scopeMenu).modal?s.createElement(Nu,Ee({},e,{ref:t})):s.createElement(Fu,Ee({},e,{ref:t})))),Nu=s.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu),r=s.useRef(null),o=co(t,r);return s.useEffect((()=>{const e=r.current;if(e)return xo(e)}),[]),s.createElement($u,Ee({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:wi(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Fu=s.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu);return s.createElement($u,Ee({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),zu=s.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu),r=s.useRef(null),o=co(t,r);return n.isSubmenu?s.createElement($u,Ee({id:n.contentId,"aria-labelledby":n.triggerId},e,{ref:o,align:"start",side:"rtl"===n.dir?"left":"right",portalled:!0,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;n.isUsingKeyboardRef.current&&(null===(t=r.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:wi(e.onFocusOutside,(e=>{e.target!==n.trigger&&n.onOpenChange(!1)})),onEscapeKeyDown:wi(e.onEscapeKeyDown,n.onRootClose),onKeyDown:wi(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=ku[n.dir].includes(e.key);var o;t&&r&&(n.onOpenChange(!1),null===(o=n.trigger)||void 0===o||o.focus(),e.preventDefault())}))})):null})),$u=s.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,allowPinchZoom:g,portalled:m,...v}=e,y=Ru("MenuContent",n),b=Pu(n),w=ju(n),x=Su(n),[k,E]=s.useState(null),S=s.useRef(null),_=co(t,S,y.onContentChange),C=s.useRef(0),O=s.useRef(""),P=s.useRef(0),j=s.useRef(null),L=s.useRef("right"),R=s.useRef(0),T=m?Al:s.Fragment,A=h?ei:s.Fragment,M=h?{allowPinchZoom:g}:void 0;s.useEffect((()=>()=>window.clearTimeout(C.current)),[]),ni();const I=s.useCallback((e=>{var t,n;return L.current===(null===(t=j.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;er!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=j.current)||void 0===n?void 0:n.area)}),[]);return s.createElement(T,null,s.createElement(A,M,s.createElement(Au,{scope:n,searchRef:O,onItemEnter:s.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),onItemLeave:s.useCallback((e=>{var t;I(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))}),[I]),onTriggerLeave:s.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),pointerGraceTimerRef:P,onPointerGraceIntentChange:s.useCallback((e=>{j.current=e}),[])},s.createElement(ci,{asChild:!0,trapped:o,onMountAutoFocus:wi(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},s.createElement(ki,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},s.createElement(mu,Ee({asChild:!0},w,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:e=>{y.isUsingKeyboardRef.current||e.preventDefault()}}),s.createElement(ls,Ee({role:"menu","aria-orientation":"vertical","data-state":Ku(y.open),dir:y.dir},b,v,{ref:_,style:{outline:"none",...v.style},onKeyDown:wi(v.onKeyDown,(e=>{const t=e.target,n=e.currentTarget.contains(t),r=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&o&&(e=>{var t,n;const r=O.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(o,0),a.map(((e,t)=>a[(l+t)%a.length])));var a,l;1===r.length&&(i=i.filter((e=>e!==n)));const s=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return s!==n?s:void 0}(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout((()=>e("")),1e3))}(r),s&&setTimeout((()=>s.focus()))})(e.key));const i=S.current;if(e.target!==i)return;if(!wu.includes(e.key))return;e.preventDefault();const a=x().filter((e=>!e.disabled)).map((e=>e.ref.current));bu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:wi(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),O.current="")})),onPointerMove:wi(e.onPointerMove,Yu((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";L.current=t,R.current=e.clientX}})))}))))))))})),Bu=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return s.createElement(oi.div,Ee({},r,{ref:t}))})),Wu=s.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=s.useRef(null),a=Ru("MenuItem",e.__scopeMenu),l=Mu("MenuItem",e.__scopeMenu),u=co(t,i),c=s.useRef(!1);return s.createElement(Uu,Ee({},o,{ref:u,disabled:n,onClick:wi(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new Event("menu.itemSelect",{bubbles:!0,cancelable:!0});e.addEventListener("menu.itemSelect",(e=>null==r?void 0:r(e)),{once:!0}),e.dispatchEvent(t),t.defaultPrevented?c.current=!1:a.onRootClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:wi(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:wi(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||yu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Hu=s.forwardRef(((e,t)=>{const n=Ru("MenuSubTrigger",e.__scopeMenu),r=Mu("MenuSubTrigger",e.__scopeMenu),o=s.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:a}=r,l={__scopeMenu:e.__scopeMenu},u=s.useCallback((()=>{o.current&&window.clearTimeout(o.current),o.current=null}),[]);return s.useEffect((()=>u),[u]),s.useEffect((()=>{const e=i.current;return()=>{window.clearTimeout(e),a(null)}}),[i,a]),n.isSubmenu?s.createElement(Tu,Ee({asChild:!0},l),s.createElement(Uu,Ee({id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Ku(n.open)},e,{ref:uo(t,n.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:wi(e.onPointerMove,Yu((t=>{r.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(r.onPointerGraceIntentChange(null),o.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:wi(e.onPointerLeave,Yu((e=>{var t;u();const o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,l="right"===t,s=l?-5:5,u=o[l?"left":"right"],c=o[l?"right":"left"];r.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:u,y:o.top},{x:c,y:o.top},{x:c,y:o.bottom},{x:u,y:o.bottom}],side:t}),window.clearTimeout(i.current),i.current=window.setTimeout((()=>r.onPointerGraceIntentChange(null)),300)}else{if(r.onTriggerLeave(e),e.defaultPrevented)return;r.onPointerGraceIntentChange(null)}}))),onKeyDown:wi(e.onKeyDown,(t=>{const o=""!==r.searchRef.current;var i;e.disabled||o&&" "===t.key||xu[n.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))}))):null})),Uu=s.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Mu("MenuItem",n),l=ju(n),u=s.useRef(null),c=co(t,u),[d,f]=s.useState("");return s.useEffect((()=>{const e=u.current;var t;e&&f((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),s.createElement(Eu.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:d},s.createElement(vu,Ee({asChild:!0},l,{focusable:!r}),s.createElement(oi.div,Ee({role:"menuitem","aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:wi(e.onPointerMove,Yu((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:wi(e.onPointerLeave,Yu((e=>a.onItemLeave(e))))}))))})),[Vu,qu]=Cu("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),[Gu,Xu]=Cu("MenuItemIndicator",{checked:!1});function Ku(e){return e?"open":"closed"}function Yu(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Zu=e=>{const{__scopeMenu:t,open:n=!1,children:r,onOpenChange:o,modal:i=!0}=e,a=Pu(t),[l,u]=s.useState(null),c=s.useRef(!1),d=si(o),f=function(e,t){const[n,r]=s.useState("ltr"),[o,i]=s.useState(),a=s.useRef(0);return s.useEffect((()=>{if(void 0===t&&null!=e&&e.parentElement){const t=getComputedStyle(e.parentElement);i(t)}}),[e,t]),s.useEffect((()=>(void 0===t&&function e(){a.current=requestAnimationFrame((()=>{const t=null==o?void 0:o.direction;t&&r(t),e()}))}(),()=>cancelAnimationFrame(a.current))),[o,t,r]),t||n}(l,e.dir);return s.useEffect((()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),s.createElement(is,a,s.createElement(Lu,{scope:t,isSubmenu:!1,isUsingKeyboardRef:c,dir:f,open:n,onOpenChange:d,content:l,onContentChange:u,onRootClose:s.useCallback((()=>d(!1)),[d]),modal:i},r))},Qu=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Ru("MenuSub",t),a=Pu(t),[l,u]=s.useState(null),[c,d]=s.useState(null),f=si(o);return s.useEffect((()=>(!1===i.open&&f(!1),()=>f(!1))),[i.open,f]),s.createElement(is,a,s.createElement(Lu,{scope:t,isSubmenu:!0,isUsingKeyboardRef:i.isUsingKeyboardRef,dir:i.dir,open:r,onOpenChange:f,content:c,onContentChange:d,onRootClose:i.onRootClose,contentId:Pi(),trigger:l,onTriggerChange:u,triggerId:Pi(),modal:!1},n))},Ju=Tu,ec=Hu,tc=Iu,nc=Bu,rc=Wu,oc=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return s.createElement(oi.div,Ee({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),ic=s.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Pu(n);return s.createElement(ss,Ee({},o,r,{ref:t}))})),[ac,lc]=ji("DropdownMenu",[Ou]),sc=Ou(),[uc,cc]=ac("DropdownMenu"),dc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,onOpenChange:i,onOpenToggle:a,modal:l=!0}=e,u=sc(t),c=s.useRef(null);return s.createElement(uc,{scope:t,isRootMenu:!0,triggerId:Pi(),triggerRef:c,contentId:Pi(),open:o,onOpenChange:i,onOpenToggle:a,modal:l},s.createElement(Zu,Ee({},u,{open:o,onOpenChange:i,dir:r,modal:l}),n))},fc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=cc("DropdownMenuTrigger",n),a=sc(n);return i.isRootMenu?s.createElement(Ju,Ee({asChild:!0},a),s.createElement(oi.button,Ee({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":!!i.open||void 0,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:uo(t,i.triggerRef),onPointerDown:wi(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.open||e.preventDefault(),i.onOpenToggle())})),onKeyDown:wi(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())}))}))):null})),[pc,hc]=ac("DropdownMenuContent",{isInsideContent:!1}),gc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=cc("DropdownMenuContent",n),i=sc(n),a={...r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};return s.createElement(pc,{scope:n,isInsideContent:!0},o.isRootMenu?s.createElement(mc,Ee({__scopeDropdownMenu:n},a,{ref:t})):s.createElement(tc,Ee({},i,a,{ref:t})))})),mc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,portalled:r=!0,...o}=e,i=cc("DropdownMenuContent",n),a=sc(n),l=s.useRef(!1);return i.isRootMenu?s.createElement(tc,Ee({id:i.contentId,"aria-labelledby":i.triggerId},a,o,{ref:t,portalled:r,onCloseAutoFocus:wi(e.onCloseAutoFocus,(e=>{var t;l.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:wi(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)}))})):null})),vc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(nc,Ee({},o,r,{ref:t}))})),yc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(rc,Ee({},o,r,{ref:t}))})),bc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(ec,Ee({},o,r,{ref:t}))})),wc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(oc,Ee({},o,r,{ref:t}))})),xc=s.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return s.createElement(ic,Ee({},o,r,{ref:t}))})),kc=e=>{const{__scopeDropdownMenu:t,children:n,open:r,defaultOpen:o,onOpenChange:i}=e,a=hc("DropdownMenu",t),l=sc(t),[u=!1,c]=_i({prop:r,defaultProp:o,onChange:i}),d=s.useCallback((()=>c((e=>!e))),[c]);return a.isInsideContent?s.createElement(uc,{scope:t,isRootMenu:!1,open:u,onOpenChange:c,onOpenToggle:d},s.createElement(Qu,Ee({},l,{open:u,onOpenChange:c}),n)):s.createElement(dc,Ee({},e,{open:u,onOpenChange:c,onOpenToggle:d}),n)},Ec=fc,Sc=gc,_c=vc,Cc=bc,Oc=wc,Pc=xc;function jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rc,Tc={fontSize:"16px",fontWeight:"500",py:"12px",px:"24px",borderRadius:3,cursor:"default",color:"$utilityTextDefault","&:focus":{outline:"none",backgroundColor:"$grayBgHover"}},Ac=he(yc,Tc),Mc=he(Ec,{fontSize:"100%",border:0,padding:0,backgroundColor:"transparent","&:hover":{opacity:.7}}),Ic=(he(Cc,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.start?1:0})).forEach((function(e){h>=e.start&&g<=e.end?v=!0:h<=e.end&&e.start<=g&&y.push(e)})),b=null,!y.length){t.next=23;break}if(S=!1,h<=y[0].start?(w=u.startContainer,x=u.startOffset):(_=sr(y[0].id),w=_.shift(),x=0),g>=y[y.length-1].end?(k=u.endContainer,E=u.endOffset):(C=sr(y[y.length-1].id),k=C.pop(),E=0,S=!0),w&&k){t.next=20;break}throw new Error("Failed to query node for computing new merged range");case 20:(b=new Range).setStart(w,x),S?b.setEndAfter(k):b.setEnd(k,E);case 23:if(!v){t.next=25;break}return t.abrupt("return",setTimeout((function(){o(null)}),100));case 25:return t.abrupt("return",o({selection:d,mouseEvent:n,range:null!==(a=b)&&void 0!==a?a:u,focusPosition:{x:m[c?"left":"right"],y:m[c?"top":"bottom"],isReverseSelected:c},overlapHighlights:y.map((function(e){return e.id}))}));case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e]),a=(0,s.useCallback)(fr(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=window.AndroidWebKitMessenger)||void 0===t||t.handleIdentifiableMessage("writeToClipboard",JSON.stringify({quote:null==r?void 0:r.selection.toString()}));case 1:case"end":return e.stop()}}),e)}))),[null==r?void 0:r.selection]);return(0,s.useEffect)((function(){return document.addEventListener("mouseup",i),document.addEventListener("touchend",i),document.addEventListener("contextmenu",i),document.addEventListener("copyTextSelection",a),function(){document.removeEventListener("mouseup",i),document.removeEventListener("touchend",i),document.removeEventListener("contextmenu",i),document.removeEventListener("copyTextSelection",a)}}),[e,i,false,a]),[r,o]}(u),m=qd(g,2),v=m[0],y=m[1],b=(0,s.useMemo)((function(){var e;return"undefined"!=typeof window&&!(!br()&&!yr())&&"function"==typeof(null===(e=navigator)||void 0===e?void 0:e.share)}),[]);(0,s.useEffect)((function(){var t=[];if(n.forEach((function(e){try{var n=function(e){var t=function(e){var t=e.patch,n=e.id,r=!!e.annotation,o=void 0;return e.createdByMe||(o="var(--colors-recommendedHighlightBackground)"),tr(t,n,r,o,void 0)}(e),n=t.startLocation,r=t.endLocation;return{id:e.id,start:n,end:r}}(e);t.push(n)}catch(e){console.error(e)}})),c(t),e.scrollToHighlight.current){var r=document.querySelector('[omnivore-highlight-id="'.concat(e.scrollToHighlight.current,'"]'));r&&r.scrollIntoView({behavior:"auto"})}}),[n,c]);var w=(0,s.useCallback)(function(){var t=Vd(regeneratorRuntime.mark((function t(o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o||(null==p?void 0:p.id)){t.next=4;break}return console.error("Failed to identify highlight to be removed"),t.abrupt("return");case 4:return t.next=6,e.articleMutations.deleteHighlightMutation(i);case 6:t.sent?(Br(n.map((function(e){return e.id}))),r(n.filter((function(e){return e.id!==i}))),h(void 0)):console.error("Failed to delete highlight");case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[p,n,u]),x=(0,s.useCallback)((function(e){Br([e.id]);var t,o=n.filter((function(t){return t.id!==e.id}));r([].concat(function(e){if(Array.isArray(e))return Xd(e)}(t=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Gd(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))}),[n,u]),k=(0,s.useCallback)((function(t){var n;null===(n=navigator)||void 0===n||n.share({title:e.articleTitle,url:"".concat(e.highlightsBaseURL,"/").concat(t)}).then((function(){h(void 0)})).catch((function(e){console.log(e),h(void 0)}))}),[e.articleTitle,e.highlightsBaseURL]),E=(0,s.useCallback)((function(t){var n,r,o,i,l,s,u,c;if(void 0!==(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r?void 0:r.messageHandlers.highlightAction)&&e.highlightBarDisabled)null===(i=window)||void 0===i||null===(l=i.webkit)||void 0===l||null===(s=l.messageHandlers.highlightAction)||void 0===s||s.postMessage({actionID:"annotate",annotation:null!==(u=null===(c=t.highlight)||void 0===c?void 0:c.annotation)&&void 0!==u?u:""});else if(void 0!==(null===(o=window)||void 0===o?void 0:o.AndroidWebKitMessenger)){var d,f;window.AndroidWebKitMessenger.handleIdentifiableMessage("annotate",JSON.stringify({annotation:null!==(d=null===(f=t.highlight)||void 0===f?void 0:f.annotation)&&void 0!==d?d:""}))}else t.createHighlightForNote=function(){var e=Vd(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.selectionData){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.next=4,S(t.selectionData,n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a(t)}),[e.highlightBarDisabled]),S=function(){var t=Vd(regeneratorRuntime.mark((function t(o,i){var l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lo({selection:o,articleId:e.articleId,existingHighlights:n,highlightStartEndOffsets:u,annotation:i},e.articleMutations);case 2:if(!(l=t.sent).errorMessage){t.next=5;break}throw"Failed to create highlight: "+l.errorMessage;case 5:if(l.highlights&&0!=l.highlights.length){t.next=8;break}return console.error("Failed to create highlight"),t.abrupt("return",void 0);case 8:if(y(null),r(l.highlights),void 0!==l.newHighlightIndex){t.next=13;break}return a({highlightModalAction:"none"}),t.abrupt("return",void 0);case 13:return t.abrupt("return",l.highlights[l.newHighlightIndex]);case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),_=(0,s.useCallback)(function(){var e=Vd(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,S(v,n);case 5:if(e.sent){e.next=9;break}throw Ja("Error saving highlight",{position:"bottom-right"}),"Error creating highlight";case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(2),e.t0;case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t,n){return e.apply(this,arguments)}}(),[k,n,E,e.articleId,v,y,b,u]),C=(0,s.useCallback)((function(e){var t,r,o=e.target,i=e.pageX,a=e.pageY;if(o&&(null==o?void 0:o.nodeType)===Node.ELEMENT_NODE){var l={tapX:e.clientX,tapY:e.clientY};if(null===(t=window)||void 0===t||null===(r=t.AndroidWebKitMessenger)||void 0===r||r.handleIdentifiableMessage("userTap",JSON.stringify(l)),d.current={pageX:i,pageY:a},o.hasAttribute(Xn)){var s=o.getAttribute(Xn),u=n.find((function(e){return e.id===s}));if(u){var c,f,p,g,m;h(u);var v=o.getBoundingClientRect();null===(c=window)||void 0===c||null===(f=c.webkit)||void 0===f||null===(p=f.messageHandlers.viewerAction)||void 0===p||p.postMessage({actionID:"showMenu",rectX:v.x,rectY:v.y,rectWidth:v.width,rectHeight:v.height}),null===(g=window)||void 0===g||null===(m=g.AndroidWebKitMessenger)||void 0===m||m.handleIdentifiableMessage("existingHighlightTap",JSON.stringify(Wd({},l)))}}else if(o.hasAttribute(Kn)){var y=o.getAttribute(Kn),b=n.find((function(e){return e.id===y}));E({highlight:b,highlightModalAction:"addComment"})}else h(void 0)}}),[n,u]);(0,s.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("click",C),function(){return document.removeEventListener("click",C)}}),[C]);var O,P,j,L,R,T,A=(0,s.useCallback)(function(){var t=Vd(regeneratorRuntime.mark((function t(n){var r,o,i,l,s,u,c,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=n,t.next="delete"===t.t0?3:"create"===t.t0?6:"comment"===t.t0?9:"share"===t.t0?11:"unshare"===t.t0?20:"setHighlightLabels"===t.t0?22:24;break;case 3:return t.next=5,w();case 5:case 8:case 19:return t.abrupt("break",24);case 6:return t.next=8,_("none");case 9:return e.highlightBarDisabled||p?E({highlight:p,highlightModalAction:"addComment"}):E({highlight:void 0,selectionData:v||void 0,highlightModalAction:"addComment"}),t.abrupt("break",24);case 11:if(e.isAppleAppEmbed&&(null===(i=window)||void 0===i||null===(l=i.webkit)||void 0===l||null===(s=l.messageHandlers.highlightAction)||void 0===s||s.postMessage({actionID:"share",highlightID:null==p?void 0:p.id})),null===(r=window)||void 0===r||null===(o=r.AndroidWebKitMessenger)||void 0===o||o.handleIdentifiableMessage("shareHighlight",JSON.stringify({highlightID:null==p?void 0:p.id})),!p){t.next=17;break}b?k(p.shortId):a({highlight:p,highlightModalAction:"share"}),t.next=19;break;case 17:return t.next=19,_("share");case 20:return console.log("unshare"),t.abrupt("break",24);case 22:return e.isAppleAppEmbed&&(null===(u=window)||void 0===u||null===(c=u.webkit)||void 0===c||null===(d=c.messageHandlers.highlightAction)||void 0===d||d.postMessage({actionID:"setHighlightLabels",highlightID:null==p?void 0:p.id})),t.abrupt("break",24);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[_,p,k,E,e.highlightBarDisabled,e.isAppleAppEmbed,w,b]),M=function(t,n){var r,o,i;e.isAppleAppEmbed&&(null===(r=window)||void 0===r||null===(o=r.webkit)||void 0===o||null===(i=o.messageHandlers.highlightAction)||void 0===i||i.postMessage({actionID:"highlightError",highlightAction:t,highlightID:null==p?void 0:p.id,error:"string"==typeof n?n:JSON.stringify(n)}))},I=function(t){var n,r,o;e.isAppleAppEmbed&&(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r||null===(o=r.messageHandlers.highlightAction)||void 0===o||o.postMessage({actionID:t,highlightID:null==p?void 0:p.id}))};return(0,s.useEffect)((function(){var t=function(){var e=Vd(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A(t);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),M(t,e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),n=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("comment");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("create");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("share");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("delete");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){h(void 0)},l=function(){A("setHighlightLabels")},s=function(){var e=Vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=8;break}if(!window.AndroidWebKitMessenger){e.next=5;break}window.AndroidWebKitMessenger.handleIdentifiableMessage("writeToClipboard",JSON.stringify({quote:p.quote})),e.next=7;break;case 5:return e.next=7,navigator.clipboard.writeText(p.quote);case 7:h(void 0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=Vd(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=document.querySelector('[data-omnivore-anchor-idx="'.concat(t.anchorIdx,'"]')),document.querySelectorAll(".speakingSection").forEach((function(e){e!=n&&(null==e||e.classList.remove("speakingSection"))})),null==n||n.classList.add("speakingSection");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var t=Vd(regeneratorRuntime.mark((function t(n){var r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p){t.next=10;break}return i=null!==(r=n.annotation)&&void 0!==r?r:"",t.next=4,e.articleMutations.updateHighlightMutation({highlightId:p.id,annotation:null!==(o=n.annotation)&&void 0!==o?o:""});case 4:t.sent?x(Wd(Wd({},p),{},{annotation:i})):(console.log("failed to change annotation for highlight with id",p.id),M("saveAnnotation","Failed to create highlight.")),h(void 0),I("noteCreated"),t.next=19;break;case 10:return t.prev=10,t.next=13,_("none",n.annotation);case 13:I("noteCreated"),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(10),M("saveAnnotation",t.t0);case 19:case"end":return t.stop()}}),t,null,[[10,16]])})));return function(e){return t.apply(this,arguments)}}();return document.addEventListener("annotate",n),document.addEventListener("highlight",r),document.addEventListener("share",o),document.addEventListener("remove",i),document.addEventListener("copyHighlight",s),document.addEventListener("dismissHighlight",a),document.addEventListener("saveAnnotation",c),document.addEventListener("speakingSection",u),document.addEventListener("setHighlightLabels",l),function(){document.removeEventListener("annotate",n),document.removeEventListener("highlight",r),document.removeEventListener("share",o),document.removeEventListener("remove",i),document.removeEventListener("copyHighlight",s),document.removeEventListener("dismissHighlight",a),document.removeEventListener("saveAnnotation",c),document.removeEventListener("speakingSection",u),document.removeEventListener("setHighlightLabels",l)}})),"addComment"==(null==i?void 0:i.highlightModalAction)?(0,De.jsx)(al,{highlight:i.highlight,author:e.articleAuthor,title:e.articleTitle,onUpdate:x,onOpenChange:function(){return a({highlightModalAction:"none"})},createHighlightForNote:null==i?void 0:i.createHighlightForNote}):"share"==(null==i?void 0:i.highlightModalAction)&&i.highlight?(0,De.jsx)(Ks,{url:"".concat(e.highlightsBaseURL,"/").concat(i.highlight.shortId),title:e.articleTitle,author:e.articleAuthor,highlight:i.highlight,onOpenChange:function(){a({highlightModalAction:"none"})}}):e.highlightBarDisabled||!p&&!v?e.showHighlightsModal?(0,De.jsx)(Nd,{highlights:n,onOpenChange:function(){return e.setShowHighlightsModal(!1)},deleteHighlightAction:function(e){w(e)}}):(0,De.jsx)(De.Fragment,{}):(0,De.jsx)(De.Fragment,{children:(0,De.jsx)(zr,{anchorCoordinates:{pageX:null!==(O=null!==(P=null===(j=d.current)||void 0===j?void 0:j.pageX)&&void 0!==P?P:null==v?void 0:v.focusPosition.x)&&void 0!==O?O:0,pageY:null!==(L=null!==(R=null===(T=d.current)||void 0===T?void 0:T.pageY)&&void 0!==R?R:null==v?void 0:v.focusPosition.y)&&void 0!==L?L:0},isNewHighlight:!!v,handleButtonClick:A,isSharedToFeed:null!=(null==p?void 0:p.sharedAt),displayAtBottom:wr()})})}function Yd(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Zd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Yd(i,r,o,a,l,"next",e)}function l(e){Yd(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{const{__scopeAvatar:n,...r}=e,[o,i]=s.useState("idle");return s.createElement(lf,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i},s.createElement(oi.span,Ee({},r,{ref:t})))})),cf=s.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=(()=>{}),...i}=e,a=sf("AvatarImage",n),l=function(e){const[t,n]=s.useState("idle");return s.useEffect((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}(r),u=si((e=>{o(e),a.onImageLoadingStatusChange(e)}));return ii((()=>{"idle"!==l&&u(l)}),[l,u]),"loaded"===l?s.createElement(oi.img,Ee({},i,{ref:t,src:r})):null})),df=s.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=sf("AvatarFallback",n),[a,l]=s.useState(void 0===r);return s.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>l(!0)),r);return()=>window.clearTimeout(e)}}),[r]),a&&"loaded"!==i.imageLoadingStatus?s.createElement(oi.span,Ee({},o,{ref:t})):null})),ff=cf,pf=df;function hf(e){return(0,De.jsxs)(gf,{title:e.tooltip,css:{width:e.height,height:e.height,borderRadius:"50%"},children:[(0,De.jsx)(mf,{src:e.imageURL,css:{opacity:e.noFade?"unset":"48%"}}),(0,De.jsx)(vf,{children:e.fallbackText})]})}var gf=he(uf,{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",border:"1px solid $grayBorder"}),mf=he(ff,{width:"100%",height:"100%",objectFit:"cover","&:hover":{opacity:"100%"}}),vf=he(pf,{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"$2",fontWeight:700,backgroundColor:"$avatarBg",color:"$avatarFont"});function yf(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function bf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yf(i,r,o,a,l,"next",e)}function l(e){yf(i,r,o,a,l,"throw",e)}a(void 0)}))}}function wf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=100&&r<=300&&E(r)},n=function(e){var t,n,r=null!==(t=null!==(n=e.maxWidthPercentage)&&void 0!==n?n:b)&&void 0!==t?t:100;r>=40&&r<=100&&w(r)},o=function(t){var n,r,o,i=null!==(n=null!==(r=null!==(o=t.fontFamily)&&void 0!==o?o:_)&&void 0!==r?r:e.fontFamily)&&void 0!==n?n:"inter";console.log("setting font fam to",t.fontFamily),C(i)},i=function(){var e=bf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="high"==t.fontContrast,j(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=bf(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=null!==(n=t.fontSize)&&void 0!==n?n:18)>=10&&r<=28&&R(r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=bf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.themeName)&&An(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(e){var t;Mn("true"===(null!==(t=e.isDark)&&void 0!==t?t:"false")?r.Dark:r.Light)},u=function(){navigator.share&&navigator.share({title:e.article.title,url:e.article.originalArticleUrl})};return document.addEventListener("updateFontFamily",o),document.addEventListener("updateLineHeight",t),document.addEventListener("updateMaxWidthPercentage",n),document.addEventListener("updateTheme",l),document.addEventListener("updateFontSize",a),document.addEventListener("updateColorMode",s),document.addEventListener("handleFontContrastChange",i),document.addEventListener("share",u),function(){document.removeEventListener("updateFontFamily",o),document.removeEventListener("updateLineHeight",t),document.removeEventListener("updateMaxWidthPercentage",n),document.removeEventListener("updateTheme",l),document.removeEventListener("updateFontSize",a),document.removeEventListener("updateColorMode",s),document.removeEventListener("handleFontContrastChange",i),document.removeEventListener("share",u)}}));var T={fontSize:m,margin:null!==(o=e.margin)&&void 0!==o?o:360,maxWidthPercentage:null!=b?b:e.maxWidthPercentage,lineHeight:null!==(i=null!=k?k:e.lineHeight)&&void 0!==i?i:150,fontFamily:null!==(a=null!=_?_:e.fontFamily)&&void 0!==a?a:"inter",readerFontColor:P?ge.colors.readerFontHighContrast.toString():ge.colors.readerFont.toString(),readerTableHeaderColor:ge.colors.readerTableHeader.toString(),readerHeadersColor:ge.colors.readerHeader.toString()},A=(0,s.useMemo)((function(){var t,n;return null!==(t=null===(n=e.article.recommendations)||void 0===n?void 0:n.filter((function(e){return e.note})))&&void 0!==t?t:[]}),[e.article.recommendations]);return he(Be,{margin:"0px 0px 0px 0px",fontSize:"18px",lineHeight:"27px",color:"$grayText",padding:"0px 16px",borderLeft:"2px solid $omnivoreCtaYellow"}),(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(Fe,{id:"article-container",css:{padding:"16px",maxWidth:"".concat(null!==(l=T.maxWidthPercentage)&&void 0!==l?l:100,"%"),background:e.isAppleAppEmbed?"unset":ge.colors.readerBg.toString(),"--text-font-family":T.fontFamily,"--text-font-size":"".concat(T.fontSize,"px"),"--line-height":"".concat(T.lineHeight,"%"),"--blockquote-padding":"0.5em 1em","--blockquote-icon-font-size":"1.3rem","--figure-margin":"1.6rem auto","--hr-margin":"1em","--font-color":T.readerFontColor,"--table-header-color":T.readerTableHeaderColor,"--headers-color":T.readerHeadersColor,"@sm":{"--blockquote-padding":"1em 2em","--blockquote-icon-font-size":"1.7rem","--figure-margin":"2.6875rem auto","--hr-margin":"2em",margin:"30px 0px"},"@md":{maxWidth:T.maxWidthPercentage?"".concat(T.maxWidthPercentage,"%"):1024-T.margin}},children:[(0,De.jsxs)(He,{alignment:"start",distribution:"start",children:[(0,De.jsx)(Hn,{style:"boldHeadline","data-testid":"article-headline",css:{fontFamily:T.fontFamily,width:"100%",wordWrap:"break-word"},children:e.article.title}),(0,De.jsx)(Un,{rawDisplayDate:null!==(u=e.article.publishedAt)&&void 0!==u?u:e.article.createdAt,author:e.article.author,href:e.article.url}),e.labels?(0,De.jsx)(ze,{css:{pb:"16px",width:"100%","&:empty":{display:"none"}},children:null===(c=e.labels)||void 0===c?void 0:c.map((function(e){return(0,De.jsx)(El,{text:e.name,color:e.color},e.id)}))}):null,A.length>0&&(0,De.jsxs)(He,{id:"recommendations-container",css:{borderRadius:"6px",bg:"$grayBgSubtle",p:"16px",pt:"16px",pb:"2px",width:"100%",marginTop:"24px",color:"$grayText",lineHeight:"2.0"},children:[(0,De.jsx)(We,{css:{pb:"0px",mb:"0px"},children:(0,De.jsxs)(Hn,{style:"recommendedByline",css:{paddingTop:"0px",mb:"16px"},children:["Comments"," ",(0,De.jsxs)(ze,{css:{color:"grayText",fontWeight:"400"},children:[" "," ".concat(A.length)]})]})}),A.map((function(e,t){var n,r,o,i;return(0,De.jsx)(He,{alignment:"start",distribution:"start",css:{pt:"0px",pb:"8px"},children:(0,De.jsxs)(We,{children:[(0,De.jsx)(ze,{css:{verticalAlign:"top",minWidth:"28px",display:"flex"},children:(0,De.jsx)(hf,{imageURL:null===(n=e.user)||void 0===n?void 0:n.profileImageURL,height:"28px",noFade:!0,tooltip:null===(r=e.user)||void 0===r?void 0:r.name,fallbackText:null!==(o=null===(i=e.user)||void 0===i?void 0:i.username[0])&&void 0!==o?o:"U"})}),(0,De.jsx)(Hn,{style:"userNote",css:{pl:"16px"},children:e.note})]})},e.id)}))]})]}),(0,De.jsx)(Wn,{articleId:e.article.id,content:e.article.content,highlightHref:L,initialAnchorIndex:e.article.readingProgressAnchorIndex,articleMutations:e.articleMutations}),(0,De.jsxs)(xr,{style:"ghost",css:{p:0,my:"$4",color:"$error",fontSize:"$1","&:hover":{opacity:.8}},onClick:function(){return h(!0)},children:["Report issues with this page -",">"]}),(0,De.jsx)(Fe,{css:{height:"100px"}})]}),(0,De.jsx)(Kd,{scrollToHighlight:L,highlights:e.article.highlights,articleTitle:e.article.title,articleAuthor:null!==(d=e.article.author)&&void 0!==d?d:"",articleId:e.article.id,isAppleAppEmbed:e.isAppleAppEmbed,highlightsBaseURL:e.highlightsBaseURL,highlightBarDisabled:e.highlightBarDisabled,showHighlightsModal:e.showHighlightsModal,setShowHighlightsModal:e.setShowHighlightsModal,articleMutations:e.articleMutations}),p?(0,De.jsx)(Jd,{onCommit:function(t){!function(e){rf.apply(this,arguments)}({pageId:e.article.id,itemUrl:e.article.url,reportTypes:["CONTENT_DISPLAY"],reportComment:t})},onOpenChange:function(e){return h(e)}}):null]})}var Ef=o(3379),Sf=o.n(Ef),_f=o(7795),Cf=o.n(_f),Of=o(569),Pf=o.n(Of),jf=o(3565),Lf=o.n(jf),Rf=o(9216),Tf=o.n(Rf),Af=o(4589),Mf=o.n(Af),If=o(7420),Df={};Df.styleTagTransform=Mf(),Df.setAttributes=Lf(),Df.insert=Pf().bind(null,"head"),Df.domAPI=Cf(),Df.insertStyleElement=Tf(),Sf()(If.Z,Df),If.Z&&If.Z.locals&&If.Z.locals;var Nf=o(2778),Ff={};function zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $f(t){for(var n=1;n0&&void 0!==arguments[0])||arguments[0];if("undefined"!=typeof window){var t=window.localStorage.getItem(Tn);t&&Object.values(r).includes(t)&&(e?An(t):Mn(t))}}(!1),(0,De.jsx)(De.Fragment,{children:(0,De.jsx)(Fe,{css:{overflowY:"auto",height:"100%",width:"100vw"},children:(0,De.jsx)(He,{alignment:"center",distribution:"center",className:"disable-webkit-callout",children:(0,De.jsx)(kf,{article:window.omnivoreArticle,labels:window.omnivoreArticle.labels,isAppleAppEmbed:!0,highlightBarDisabled:!window.enableHighlightBar,highlightsBaseURL:"https://example.com",fontSize:null!==(e=window.fontSize)&&void 0!==e?e:18,fontFamily:null!==(t=window.fontFamily)&&void 0!==t?t:"inter",margin:window.margin,maxWidthPercentage:window.maxWidthPercentage,lineHeight:window.lineHeight,highContrastFont:null===(n=window.prefersHighContrastFont)||void 0===n||n,articleMutations:{createHighlightMutation:function(e){return Bf("createHighlight",e)},deleteHighlightMutation:function(e){return Bf("deleteHighlight",{highlightId:e})},mergeHighlightMutation:function(e){return Bf("mergeHighlight",e)},updateHighlightMutation:function(e){return Bf("updateHighlight",e)},articleReadingProgressMutation:function(e){return Bf("articleReadingProgress",e)}}})})})})};c.render((0,De.jsx)(Wf,{}),document.getElementById("root"))})()})();
\ No newline at end of file
diff --git a/packages/web/components/elements/Avatar.tsx b/packages/web/components/elements/Avatar.tsx
index bce69524c..50c47fc12 100644
--- a/packages/web/components/elements/Avatar.tsx
+++ b/packages/web/components/elements/Avatar.tsx
@@ -5,18 +5,24 @@ type AvatarProps = {
imageURL?: string
height: string
fallbackText: string
+ tooltip?: string
+ noFade?: boolean
}
export function Avatar(props: AvatarProps): JSX.Element {
return (
-
+
{props.fallbackText}
)
@@ -36,7 +42,6 @@ const StyledImage = styled(Image, {
width: '100%',
height: '100%',
objectFit: 'cover',
- opacity: '48%',
'&:hover': {
opacity: '100%',
diff --git a/packages/web/components/elements/StyledText.tsx b/packages/web/components/elements/StyledText.tsx
index 618bb30df..215bcfd4c 100644
--- a/packages/web/components/elements/StyledText.tsx
+++ b/packages/web/components/elements/StyledText.tsx
@@ -23,12 +23,12 @@ const textVariants = {
lineHeight: '1.25',
},
recommendedByline: {
- // fontWeight: 'bold',
+ fontWeight: 'bold',
fontSize: '13.5px',
paddingTop: '4px',
mt: '0px',
- mb: '24px',
- color: '$grayText',
+ mb: '16px',
+ color: '$grayTextContrast',
},
userName: {
fontWeight: '600',
diff --git a/packages/web/components/templates/article/ArticleContainer.tsx b/packages/web/components/templates/article/ArticleContainer.tsx
index aab1d0da1..a3e6a63f9 100644
--- a/packages/web/components/templates/article/ArticleContainer.tsx
+++ b/packages/web/components/templates/article/ArticleContainer.tsx
@@ -7,7 +7,7 @@ import {
SpanBox,
VStack,
} from './../../elements/LayoutPrimitives'
-import { StyledText } from './../../elements/StyledText'
+import { StyledText, StyledTextSpan } from './../../elements/StyledText'
import { ArticleSubtitle } from './../../patterns/ArticleSubtitle'
import { styled, theme, ThemeId } from './../../tokens/stitches.config'
import { HighlightsLayer } from '../../templates/article/HighlightsLayer'
@@ -215,14 +215,6 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
readerHeadersColor: theme.colors.readerHeader.toString(),
}
- const recommendationByline = useMemo(() => {
- return props.article.recommendations
- ?.flatMap((recommendation) => {
- return recommendation.user?.name
- })
- .join(', ')
- }, [props.article.recommendations])
-
const recommendationsWithNotes = useMemo(() => {
return (
props.article.recommendations?.filter((recommendation) => {
@@ -310,40 +302,60 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
))}
) : null}
- {recommendationByline && (
+ {recommendationsWithNotes.length > 0 && (
-
-
+
- Recommended by {recommendationByline}
+ Comments{' '}
+
+ {` ${recommendationsWithNotes.length}`}
+
{recommendationsWithNotes.map((item, idx) => (
-
+
{/* {item.note} */}
-
-
-
- {item.user?.name}:
- {' '}
+
+
+
+
+
{item.note}
- :
))}
diff --git a/packages/web/components/tokens/stitches.config.ts b/packages/web/components/tokens/stitches.config.ts
index 5b849f488..d3f42cbcc 100644
--- a/packages/web/components/tokens/stitches.config.ts
+++ b/packages/web/components/tokens/stitches.config.ts
@@ -7,7 +7,7 @@ export enum ThemeId {
Dark = 'Gray',
Darker = 'Dark',
Sepia = 'Sepia',
- Charcoal = 'Charcoal'
+ Charcoal = 'Charcoal',
}
export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
@@ -132,6 +132,7 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
// Semantic Colors
highlightBackground: '250, 227, 146',
+ recommendedHighlightBackground: '#E5FFE5',
highlight: '#FFD234',
highlightText: '#3D3D3D',
error: '#FA5E4A',
@@ -165,7 +166,6 @@ export const { styled, css, theme, getCssText, globalCss, keyframes, config } =
libraryActiveMenuItem: '#F8F8F8',
border: '#F0F0F0',
-
//utility
textNonEssential: 'rgba(10, 8, 6, 0.4)',
overlay: 'rgba(63, 62, 60, 0.2)',
@@ -205,6 +205,7 @@ const darkThemeSpec = {
// Semantic Colors
highlightBackground: '134, 119, 64',
+ recommendedHighlightBackground: '#1F4315',
highlight: '#FFD234',
highlightText: 'white',
error: '#FA5E4A',
@@ -245,7 +246,7 @@ const sepiaThemeSpec = {
readerFontHighContrast: 'black',
readerHeader: '554A34',
readerTableHeader: '#FFFFFF',
- }
+ },
}
const charcoalThemeSpec = {
@@ -256,16 +257,21 @@ const charcoalThemeSpec = {
readerFontHighContrast: 'white',
readerHeader: '#b9b9b9',
readerTableHeader: '#FFFFFF',
- }
+ },
}
-
// Dark and Darker theme now match each other.
// Use the darkThemeSpec object to make updates.
export const darkTheme = createTheme(ThemeId.Dark, darkThemeSpec)
export const darkerTheme = createTheme(ThemeId.Darker, darkThemeSpec)
-export const sepiaTheme = createTheme(ThemeId.Sepia, {...darkThemeSpec, ...sepiaThemeSpec})
-export const charcoalTheme = createTheme(ThemeId.Charcoal, {...darkThemeSpec, ...charcoalThemeSpec})
+export const sepiaTheme = createTheme(ThemeId.Sepia, {
+ ...darkThemeSpec,
+ ...sepiaThemeSpec,
+})
+export const charcoalTheme = createTheme(ThemeId.Charcoal, {
+ ...darkThemeSpec,
+ ...charcoalThemeSpec,
+})
// Lighter theme now matches the default theme.
// This only exists for users that might still have a lighter theme set
@@ -273,8 +279,8 @@ export const lighterTheme = createTheme(ThemeId.Lighter, {})
// Apply global styles in here
export const globalStyles = globalCss({
- 'body': {
- backgroundColor: '$grayBase'
+ body: {
+ backgroundColor: '$grayBase',
},
'*': {
'&:focus': {
diff --git a/packages/web/lib/highlights/highlightGenerator.ts b/packages/web/lib/highlights/highlightGenerator.ts
index 519e4549e..d50631188 100644
--- a/packages/web/lib/highlights/highlightGenerator.ts
+++ b/packages/web/lib/highlights/highlightGenerator.ts
@@ -67,7 +67,7 @@ function nodeAttributesFromHighlight(
const patch = highlight.patch
const id = highlight.id
const withNote = !!highlight.annotation
- const customColor = undefined
+ var customColor = undefined
const tooltip = undefined
// We've disabled shared highlights, so passing undefined
// here now, and removing the user object from highlights
@@ -78,6 +78,10 @@ function nodeAttributesFromHighlight(
// ? `Created by: @${highlight.user.profile.username}`
// : undefined
+ if (!highlight.createdByMe) {
+ customColor = 'var(--colors-recommendedHighlightBackground)'
+ }
+
return makeHighlightNodeAttributes(patch, id, withNote, customColor, tooltip)
}
diff --git a/packages/web/lib/highlights/useSelection.tsx b/packages/web/lib/highlights/useSelection.tsx
index dd3b99ec2..5070b182e 100644
--- a/packages/web/lib/highlights/useSelection.tsx
+++ b/packages/web/lib/highlights/useSelection.tsx
@@ -184,6 +184,9 @@ async function makeSelectionRange(): Promise<
}
const articleContentElement = document.getElementById('article-container')
+ const recommendationsElement = document.getElementById(
+ 'recommendations-container'
+ )
if (!articleContentElement)
throw new Error('Unable to find the article content element')
@@ -193,6 +196,11 @@ async function makeSelectionRange(): Promise<
const range = selection.getRangeAt(0)
+ if (recommendationsElement && range.intersectsNode(recommendationsElement)) {
+ console.log('attempt to highlight in recommendations area')
+ return undefined
+ }
+
const start = range.compareBoundaryPoints(Range.START_TO_START, allowedRange)
const end = range.compareBoundaryPoints(Range.END_TO_END, allowedRange)
const isRangeAllowed = start >= 0 && end <= 0
diff --git a/packages/web/utils/settings-page/labels/labelColorObjects.tsx b/packages/web/utils/settings-page/labels/labelColorObjects.tsx
index ac4f1fbe6..5d4ea5655 100644
--- a/packages/web/utils/settings-page/labels/labelColorObjects.tsx
+++ b/packages/web/utils/settings-page/labels/labelColorObjects.tsx
@@ -47,6 +47,7 @@ export const labelColorObjects: LabelColorObjects = {
export const randomLabelColorHex = () => {
const colorHexes = Object.keys(labelColorObjects).slice(0, -1)
- const randomColorHex = colorHexes[Math.floor(Math.random() * colorHexes.length)]
+ const randomColorHex =
+ colorHexes[Math.floor(Math.random() * colorHexes.length)]
return randomColorHex
-}
\ No newline at end of file
+}
diff --git a/pkg/extension/.env.production b/pkg/extension/.env.production
index 939062848..74044519e 100644
--- a/pkg/extension/.env.production
+++ b/pkg/extension/.env.production
@@ -1,3 +1,3 @@
OMNIVORE_URL="https://omnivore.app"
OMNIVORE_GRAPHQL_URL="https://api-prod.omnivore.app/api/"
-EXTENSION_NAME="Omnivore"
+EXTENSION_NAME="Omnivore: Read-it-later for serious readers"
diff --git a/pkg/extension/src/manifest.json b/pkg/extension/src/manifest.json
index 25b2d5a32..46d182511 100644
--- a/pkg/extension/src/manifest.json
+++ b/pkg/extension/src/manifest.json
@@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "process.env.EXTENSION_NAME",
"short_name": "process.env.EXTENSION_NAME",
- "version": "0.1.26",
- "description": "Save articles to your Omnivore library",
+ "version": "0.1.28",
+ "description": "Read-it-later for serious readers",
"author": "Omnivore Media, Inc",
"default_locale": "en",
"developer": {
@@ -21,14 +21,17 @@
"128": "/images/extension/icon-128.png",
"256": "/images/extension/icon-256.png"
},
-
- "permissions": ["activeTab", "storage", "contextMenus", "https://*/**", "http://*/**"],
-
+ "permissions": [
+ "activeTab",
+ "storage",
+ "contextMenus",
+ "https://*/**",
+ "http://*/**"
+ ],
"background": {
"page": "/views/background.html",
"persistent": true
},
-
"minimum_chrome_version": "21",
"minimum_opera_version": "15",
"applications": {
@@ -41,10 +44,12 @@
"id": "save-extension@omnivore.app"
}
},
-
"content_scripts": [
{
- "matches": ["https://*/**", "http://*/**"],
+ "matches": [
+ "https://*/**",
+ "http://*/**"
+ ],
"js": [
"/scripts/constants.js",
"/scripts/content/page-info.js",
@@ -54,12 +59,16 @@
]
},
{
- "matches": ["https://*/**", "http://*/**"],
- "js": ["/scripts/content/grab-iframe-content.js"],
+ "matches": [
+ "https://*/**",
+ "http://*/**"
+ ],
+ "js": [
+ "/scripts/content/grab-iframe-content.js"
+ ],
"all_frames": true
}
],
-
"browser_action": {
"default_icon": {
"16": "/images/toolbar/icon-16.png",
@@ -69,17 +78,17 @@
"38": "/images/toolbar/icon-38.png",
"48": "/images/toolbar/icon-48.png"
},
- "default_title": "Omnivore Save Article"
+ "default_title": "Omnivore: Read-it-later for serious readers"
},
-
"commands": {
"_execute_browser_action": {
- "suggested_key": {
- "default": "Alt + O"
- },
- "description": "Save the current tab to Omnivore"
+ "suggested_key": {
+ "default": "Alt + O"
+ },
+ "description": "Save the current tab to Omnivore"
}
},
-
- "web_accessible_resources": ["views/cta-popup.html"]
-}
+ "web_accessible_resources": [
+ "views/cta-popup.html"
+ ]
+}
\ No newline at end of file