@sniptide/ui 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -3
- package/package.json +13 -31
- package/src/components/alert-dialog.tsx +3 -3
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +1 -1
- package/src/components/button.tsx +72 -13
- package/src/components/checkbox.tsx +24 -0
- package/src/components/combobox.tsx +127 -0
- package/src/components/dialog.tsx +3 -3
- package/src/components/dropdown-menu.tsx +35 -8
- package/src/components/form-error.tsx +33 -0
- package/src/components/input.tsx +1 -1
- package/src/components/kbd.tsx +1 -1
- package/src/components/logo.tsx +173 -31
- package/src/components/popover.tsx +40 -0
- package/src/components/progress.tsx +1 -1
- package/src/components/reveal.tsx +51 -0
- package/src/components/segmented-control.tsx +2 -2
- package/src/components/select.tsx +3 -3
- package/src/components/sheet.tsx +60 -4
- package/src/components/skeleton.tsx +15 -0
- package/src/components/spinner.tsx +33 -0
- package/src/components/step-slider.tsx +83 -0
- package/src/components/stripes.tsx +22 -12
- package/src/components/success-check.tsx +27 -0
- package/src/components/switch.tsx +2 -2
- package/src/components/table.tsx +124 -7
- package/src/components/tabs.tsx +1 -1
- package/src/components/textarea.tsx +1 -1
- package/src/components/toast.tsx +140 -0
- package/src/components/tooltip.tsx +1 -1
- package/src/fonts/OFL.txt +93 -0
- package/src/fonts/PaperMono-Regular.ttf +0 -0
- package/src/fonts/PaperMono[wght].ttf +0 -0
- package/src/lib/confetti.ts +112 -0
- package/src/lib/logo-paths.ts +17 -0
- package/src/styles/globals.css +121 -20
- package/src/styles/shadcn.css +677 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cn } from "cn"
|
|
2
|
+
|
|
3
|
+
// The success mark: a check that draws itself in. Reduced motion shows it fully drawn at once.
|
|
4
|
+
function SuccessCheck({ className, ...props }: Omit<React.ComponentProps<"svg">, "children">) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
data-slot="success-check"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
fill="none"
|
|
10
|
+
stroke="currentColor"
|
|
11
|
+
strokeWidth={2.5}
|
|
12
|
+
strokeLinecap="square"
|
|
13
|
+
strokeLinejoin="miter"
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
className={cn("size-4 shrink-0", className)}
|
|
16
|
+
{...props}
|
|
17
|
+
>
|
|
18
|
+
<path
|
|
19
|
+
d="M4.5 12.5 9.5 17.5 19.5 6.5"
|
|
20
|
+
pathLength={1}
|
|
21
|
+
className="animate-[check-draw_300ms_ease-out_both] [stroke-dasharray:1] motion-reduce:animate-none motion-reduce:[stroke-dashoffset:0]"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { SuccessCheck }
|
|
@@ -8,12 +8,12 @@ function Switch({ className, ...props }: SwitchPrimitive.Root.Props) {
|
|
|
8
8
|
<SwitchPrimitive.Root
|
|
9
9
|
data-slot="switch"
|
|
10
10
|
className={cn(
|
|
11
|
-
"inline-flex h-[18px] w-[30px] shrink-0 items-center bg-input p-0.5 outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 data-checked:bg-primary",
|
|
11
|
+
"rounded-sm inline-flex h-[18px] w-[30px] shrink-0 items-center bg-input p-0.5 outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 data-checked:bg-primary",
|
|
12
12
|
className,
|
|
13
13
|
)}
|
|
14
14
|
{...props}
|
|
15
15
|
>
|
|
16
|
-
<SwitchPrimitive.Thumb className="size-3.5 bg-background shadow-[0_1px_2px_rgb(0_0_0/0.15)] transition-[translate,background-color] duration-150 data-checked:translate-x-3 data-checked:bg-primary-foreground data-checked:shadow-none" />
|
|
16
|
+
<SwitchPrimitive.Thumb className="rounded-[2px] size-3.5 bg-background shadow-[0_1px_2px_rgb(0_0_0/0.15)] transition-[translate,background-color] duration-150 data-checked:translate-x-3 data-checked:bg-primary-foreground data-checked:shadow-none" />
|
|
17
17
|
</SwitchPrimitive.Root>
|
|
18
18
|
)
|
|
19
19
|
}
|
package/src/components/table.tsx
CHANGED
|
@@ -1,16 +1,45 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
1
3
|
import { cn } from "cn"
|
|
2
|
-
import
|
|
4
|
+
import { ArrowDownIcon, ArrowUpIcon } from "lucide-react"
|
|
5
|
+
import * as React from "react"
|
|
3
6
|
|
|
7
|
+
// The pinned actions column fades the columns scrolling under it, and the fade goes away once the
|
|
8
|
+
// table is scrolled to its right edge or fits without scrolling.
|
|
4
9
|
function Table({ className, ...props }: React.ComponentProps<"table">) {
|
|
10
|
+
const container = React.useRef<HTMLDivElement>(null)
|
|
11
|
+
const [atEnd, setAtEnd] = React.useState(true)
|
|
12
|
+
|
|
13
|
+
React.useEffect(() => {
|
|
14
|
+
const element = container.current
|
|
15
|
+
if (!element) return
|
|
16
|
+
const measure = () =>
|
|
17
|
+
setAtEnd(element.scrollWidth - element.clientWidth - element.scrollLeft < 1)
|
|
18
|
+
measure()
|
|
19
|
+
element.addEventListener("scroll", measure, { passive: true })
|
|
20
|
+
const observer = new ResizeObserver(measure)
|
|
21
|
+
observer.observe(element)
|
|
22
|
+
if (element.firstElementChild) observer.observe(element.firstElementChild)
|
|
23
|
+
return () => {
|
|
24
|
+
element.removeEventListener("scroll", measure)
|
|
25
|
+
observer.disconnect()
|
|
26
|
+
}
|
|
27
|
+
}, [])
|
|
28
|
+
|
|
5
29
|
return (
|
|
6
|
-
<div
|
|
30
|
+
<div
|
|
31
|
+
ref={container}
|
|
32
|
+
data-slot="table-container"
|
|
33
|
+
data-at-end={atEnd}
|
|
34
|
+
className="group/scroll relative w-full overflow-x-auto"
|
|
35
|
+
>
|
|
7
36
|
<table className={cn("w-full caption-bottom text-sm", className)} {...props} />
|
|
8
37
|
</div>
|
|
9
38
|
)
|
|
10
39
|
}
|
|
11
40
|
|
|
12
41
|
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
|
|
13
|
-
return <thead className={cn("
|
|
42
|
+
return <thead className={cn("[&_tr]:border-b", className)} {...props} />
|
|
14
43
|
}
|
|
15
44
|
|
|
16
45
|
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
|
|
@@ -20,7 +49,10 @@ function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
|
|
|
20
49
|
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
|
|
21
50
|
return (
|
|
22
51
|
<tr
|
|
23
|
-
className={cn(
|
|
52
|
+
className={cn(
|
|
53
|
+
"group/row border-b border-border/70 transition-colors hover:bg-muted/40",
|
|
54
|
+
className,
|
|
55
|
+
)}
|
|
24
56
|
{...props}
|
|
25
57
|
/>
|
|
26
58
|
)
|
|
@@ -30,7 +62,7 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {
|
|
|
30
62
|
return (
|
|
31
63
|
<th
|
|
32
64
|
className={cn(
|
|
33
|
-
"h-
|
|
65
|
+
"h-10 px-5 text-left align-middle text-xs font-medium whitespace-nowrap text-muted-foreground",
|
|
34
66
|
className,
|
|
35
67
|
)}
|
|
36
68
|
{...props}
|
|
@@ -39,7 +71,92 @@ function TableHead({ className, ...props }: React.ComponentProps<"th">) {
|
|
|
39
71
|
}
|
|
40
72
|
|
|
41
73
|
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
|
|
42
|
-
return <td className={cn("h-
|
|
74
|
+
return <td className={cn("h-16 px-5 align-middle whitespace-nowrap", className)} {...props} />
|
|
43
75
|
}
|
|
44
76
|
|
|
45
|
-
|
|
77
|
+
// The actions column stays at the right edge while the other columns scroll under it. It paints an
|
|
78
|
+
// opaque fill, so the row's hover tint is mixed into it rather than layered on top. A short fade on
|
|
79
|
+
// its left edge shows that more columns sit behind it.
|
|
80
|
+
const pinned =
|
|
81
|
+
"sticky right-0 bg-background before:pointer-events-none before:absolute before:inset-y-0 before:right-full before:w-8 before:bg-linear-to-l before:from-background before:to-transparent before:transition-opacity group-data-[at-end=true]/scroll:before:opacity-0 group-hover/row:bg-[color-mix(in_oklab,var(--background),var(--muted)_40%)] group-hover/row:before:from-[color-mix(in_oklab,var(--background),var(--muted)_40%)]"
|
|
82
|
+
|
|
83
|
+
function TablePinnedHead({ className, ...props }: React.ComponentProps<"th">) {
|
|
84
|
+
return (
|
|
85
|
+
<TableHead
|
|
86
|
+
className={cn(
|
|
87
|
+
pinned,
|
|
88
|
+
"group-hover/row:bg-background group-hover/row:before:from-background",
|
|
89
|
+
className,
|
|
90
|
+
)}
|
|
91
|
+
{...props}
|
|
92
|
+
/>
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function TablePinnedCell({ className, ...props }: React.ComponentProps<"td">) {
|
|
97
|
+
return <TableCell className={cn(pinned, "px-3", className)} {...props} />
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type SortDirection = "asc" | "desc"
|
|
101
|
+
|
|
102
|
+
// A column header that sorts by its column. The first click applies `firstDirection`, and each
|
|
103
|
+
// click after that flips it. An idle header only shows its arrow on hover.
|
|
104
|
+
function TableSortHead({
|
|
105
|
+
direction,
|
|
106
|
+
firstDirection = "asc",
|
|
107
|
+
onSort,
|
|
108
|
+
alignEnd = false,
|
|
109
|
+
className,
|
|
110
|
+
children,
|
|
111
|
+
...props
|
|
112
|
+
}: Omit<React.ComponentProps<"th">, "onClick"> & {
|
|
113
|
+
direction: SortDirection | null
|
|
114
|
+
firstDirection?: SortDirection
|
|
115
|
+
onSort: (direction: SortDirection) => void
|
|
116
|
+
alignEnd?: boolean
|
|
117
|
+
}) {
|
|
118
|
+
const Arrow = (direction ?? firstDirection) === "asc" ? ArrowUpIcon : ArrowDownIcon
|
|
119
|
+
return (
|
|
120
|
+
<TableHead
|
|
121
|
+
aria-sort={direction === "asc" ? "ascending" : direction === "desc" ? "descending" : "none"}
|
|
122
|
+
className={cn(alignEnd && "text-right", className)}
|
|
123
|
+
{...props}
|
|
124
|
+
>
|
|
125
|
+
<button
|
|
126
|
+
type="button"
|
|
127
|
+
onClick={() =>
|
|
128
|
+
onSort(direction === null ? firstDirection : direction === "asc" ? "desc" : "asc")
|
|
129
|
+
}
|
|
130
|
+
className={cn(
|
|
131
|
+
"group/sort -mx-1.5 inline-flex items-center gap-1 rounded-md px-1.5 py-1 outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40",
|
|
132
|
+
direction && "text-foreground",
|
|
133
|
+
alignEnd && "flex-row-reverse",
|
|
134
|
+
)}
|
|
135
|
+
>
|
|
136
|
+
{children}
|
|
137
|
+
<Arrow
|
|
138
|
+
aria-hidden="true"
|
|
139
|
+
className={cn(
|
|
140
|
+
"size-3 transition-opacity",
|
|
141
|
+
direction
|
|
142
|
+
? "opacity-100"
|
|
143
|
+
: "opacity-0 group-hover/sort:opacity-60 group-focus-visible/sort:opacity-60",
|
|
144
|
+
)}
|
|
145
|
+
/>
|
|
146
|
+
</button>
|
|
147
|
+
</TableHead>
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export {
|
|
152
|
+
type SortDirection,
|
|
153
|
+
Table,
|
|
154
|
+
TableBody,
|
|
155
|
+
TableCell,
|
|
156
|
+
TableHead,
|
|
157
|
+
TableHeader,
|
|
158
|
+
TablePinnedCell,
|
|
159
|
+
TablePinnedHead,
|
|
160
|
+
TableRow,
|
|
161
|
+
TableSortHead,
|
|
162
|
+
}
|
package/src/components/tabs.tsx
CHANGED
|
@@ -21,7 +21,7 @@ function TabsTab({ className, ...props }: TabsPrimitive.Tab.Props) {
|
|
|
21
21
|
<TabsPrimitive.Tab
|
|
22
22
|
data-slot="tabs-tab"
|
|
23
23
|
className={cn(
|
|
24
|
-
"inline-flex h-8 items-center px-3 text-sm whitespace-nowrap text-muted-foreground outline-none select-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-active:border data-active:border-border data-active:bg-background data-active:text-foreground",
|
|
24
|
+
"inline-flex h-8 items-center rounded-md px-3 text-sm whitespace-nowrap text-muted-foreground outline-none select-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40 data-active:border data-active:border-border data-active:bg-background data-active:text-foreground",
|
|
25
25
|
className,
|
|
26
26
|
)}
|
|
27
27
|
{...props}
|
|
@@ -6,7 +6,7 @@ function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
|
|
|
6
6
|
<textarea
|
|
7
7
|
data-slot="textarea"
|
|
8
8
|
className={cn(
|
|
9
|
-
"min-h-24 w-full border border-input bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-primary disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive",
|
|
9
|
+
"min-h-24 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors placeholder:text-muted-foreground focus-visible:border-primary disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive",
|
|
10
10
|
className,
|
|
11
11
|
)}
|
|
12
12
|
{...props}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
|
|
3
|
+
import { SuccessCheck } from "@sniptide/ui/components/success-check"
|
|
4
|
+
import { cn } from "cn"
|
|
5
|
+
import { AlertCircleIcon, XIcon } from "lucide-react"
|
|
6
|
+
import * as React from "react"
|
|
7
|
+
|
|
8
|
+
type ToastKind = "success" | "error" | "info"
|
|
9
|
+
type ToastAction = { label: string; run: () => void | Promise<void> }
|
|
10
|
+
type ToastItem = {
|
|
11
|
+
id: number
|
|
12
|
+
kind: ToastKind
|
|
13
|
+
message: string
|
|
14
|
+
action?: ToastAction
|
|
15
|
+
duration: number
|
|
16
|
+
}
|
|
17
|
+
type ToastOptions = {
|
|
18
|
+
// A button on the toast, e.g. Undo. Clicking it closes the toast and then runs `run`.
|
|
19
|
+
action?: ToastAction
|
|
20
|
+
// How long it stays up, in ms. Toasts with an action default to longer.
|
|
21
|
+
duration?: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const DURATION: Record<ToastKind, number> = { success: 3000, error: 6000, info: 3000 }
|
|
25
|
+
const ACTION_DURATION = 8000
|
|
26
|
+
const MAX_VISIBLE = 3
|
|
27
|
+
const EMPTY: ToastItem[] = []
|
|
28
|
+
|
|
29
|
+
let items: ToastItem[] = EMPTY
|
|
30
|
+
let nextId = 1
|
|
31
|
+
const listeners = new Set<() => void>()
|
|
32
|
+
const timers = new Map<number, ReturnType<typeof setTimeout>>()
|
|
33
|
+
|
|
34
|
+
function emit(next: ToastItem[]) {
|
|
35
|
+
items = next
|
|
36
|
+
for (const listener of listeners) listener()
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function dismiss(id: number) {
|
|
40
|
+
clearTimeout(timers.get(id))
|
|
41
|
+
timers.delete(id)
|
|
42
|
+
emit(items.filter((item) => item.id !== id))
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function show(kind: ToastKind, message: string, options: ToastOptions = {}) {
|
|
46
|
+
const id = nextId++
|
|
47
|
+
const duration = options.duration ?? (options.action ? ACTION_DURATION : DURATION[kind])
|
|
48
|
+
const dropped = items.slice(0, Math.max(0, items.length - (MAX_VISIBLE - 1)))
|
|
49
|
+
for (const item of dropped) {
|
|
50
|
+
clearTimeout(timers.get(item.id))
|
|
51
|
+
timers.delete(item.id)
|
|
52
|
+
}
|
|
53
|
+
emit([...items.slice(dropped.length), { id, kind, message, action: options.action, duration }])
|
|
54
|
+
timers.set(
|
|
55
|
+
id,
|
|
56
|
+
setTimeout(() => dismiss(id), duration),
|
|
57
|
+
)
|
|
58
|
+
return id
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Feedback for actions that have no button or form of their own to report on, like a menu item.
|
|
62
|
+
// `info` is neutral; pass `action` for something the reader can take back, like Undo.
|
|
63
|
+
// Mount <Toaster /> once near the root.
|
|
64
|
+
const toast = {
|
|
65
|
+
success: (message: string, options?: ToastOptions) => show("success", message, options),
|
|
66
|
+
error: (message: string, options?: ToastOptions) => show("error", message, options),
|
|
67
|
+
info: (message: string, options?: ToastOptions) => show("info", message, options),
|
|
68
|
+
dismiss,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function subscribe(listener: () => void) {
|
|
72
|
+
listeners.add(listener)
|
|
73
|
+
return () => {
|
|
74
|
+
listeners.delete(listener)
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function Toaster({
|
|
79
|
+
className,
|
|
80
|
+
dismissLabel = "Dismiss",
|
|
81
|
+
}: {
|
|
82
|
+
className?: string
|
|
83
|
+
dismissLabel?: string
|
|
84
|
+
}) {
|
|
85
|
+
const current = React.useSyncExternalStore(
|
|
86
|
+
subscribe,
|
|
87
|
+
() => items,
|
|
88
|
+
() => EMPTY,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
return (
|
|
92
|
+
<div
|
|
93
|
+
data-slot="toaster"
|
|
94
|
+
className={cn(
|
|
95
|
+
"pointer-events-none fixed inset-x-0 bottom-[calc(env(safe-area-inset-bottom)+5rem)] z-100 flex flex-col items-center gap-2 px-4 lg:bottom-6",
|
|
96
|
+
className,
|
|
97
|
+
)}
|
|
98
|
+
>
|
|
99
|
+
{current.map((item) => (
|
|
100
|
+
<div
|
|
101
|
+
key={item.id}
|
|
102
|
+
role={item.kind === "error" ? "alert" : "status"}
|
|
103
|
+
className={cn(
|
|
104
|
+
"pointer-events-auto flex max-w-sm items-center gap-2 rounded-lg border bg-popover py-2 pr-1.5 pl-3 text-[13px] text-popover-foreground shadow-md animate-in fade-in slide-in-from-bottom-2 duration-200 motion-reduce:animate-none",
|
|
105
|
+
item.kind === "error" ? "border-destructive/40" : "border-border",
|
|
106
|
+
)}
|
|
107
|
+
>
|
|
108
|
+
{item.kind === "error" ? (
|
|
109
|
+
<AlertCircleIcon className="size-4 shrink-0 text-destructive" aria-hidden="true" />
|
|
110
|
+
) : item.kind === "success" ? (
|
|
111
|
+
<SuccessCheck className="text-primary" />
|
|
112
|
+
) : null}
|
|
113
|
+
<span className="min-w-0 flex-1">{item.message}</span>
|
|
114
|
+
{item.action ? (
|
|
115
|
+
<button
|
|
116
|
+
type="button"
|
|
117
|
+
onClick={() => {
|
|
118
|
+
dismiss(item.id)
|
|
119
|
+
void item.action?.run()
|
|
120
|
+
}}
|
|
121
|
+
className="rounded-md shrink-0 px-2 py-1 text-[13px] font-semibold text-link outline-none hover:bg-muted focus-visible:ring-2 focus-visible:ring-ring/40"
|
|
122
|
+
>
|
|
123
|
+
{item.action.label}
|
|
124
|
+
</button>
|
|
125
|
+
) : null}
|
|
126
|
+
<button
|
|
127
|
+
type="button"
|
|
128
|
+
aria-label={dismissLabel}
|
|
129
|
+
onClick={() => dismiss(item.id)}
|
|
130
|
+
className="rounded-md flex size-6 shrink-0 items-center justify-center text-muted-foreground outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/40"
|
|
131
|
+
>
|
|
132
|
+
<XIcon className="size-3.5" />
|
|
133
|
+
</button>
|
|
134
|
+
</div>
|
|
135
|
+
))}
|
|
136
|
+
</div>
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export { Toaster, toast }
|
|
@@ -19,7 +19,7 @@ function TooltipContent({
|
|
|
19
19
|
<TooltipPrimitive.Popup
|
|
20
20
|
data-slot="tooltip-content"
|
|
21
21
|
className={cn(
|
|
22
|
-
"bg-foreground px-2 py-1 font-mono text-xs text-background transition-opacity data-ending-style:opacity-0 data-starting-style:opacity-0",
|
|
22
|
+
"rounded-md bg-foreground px-2 py-1 font-mono text-xs text-background transition-opacity data-ending-style:opacity-0 data-starting-style:opacity-0",
|
|
23
23
|
className,
|
|
24
24
|
)}
|
|
25
25
|
{...props}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2025 The Paper-Mono.Git Project Authors (https://github.com/paper-design/paper-mono.git)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://openfontlicense.org
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/** Theme variables the pieces take their colors from, so they follow light and dark. */
|
|
2
|
+
const colorVariables = [
|
|
3
|
+
"--primary",
|
|
4
|
+
"--link",
|
|
5
|
+
"--syntax-string",
|
|
6
|
+
"--syntax-constant",
|
|
7
|
+
"--syntax-function",
|
|
8
|
+
"--syntax-property",
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
const pieceCount = 180
|
|
12
|
+
const maxDuration = 8000
|
|
13
|
+
|
|
14
|
+
type Piece = {
|
|
15
|
+
x: number
|
|
16
|
+
y: number
|
|
17
|
+
size: number
|
|
18
|
+
color: string
|
|
19
|
+
fall: number
|
|
20
|
+
sway: number
|
|
21
|
+
swaySpeed: number
|
|
22
|
+
phase: number
|
|
23
|
+
rotation: number
|
|
24
|
+
spin: number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Pours square confetti down over the whole viewport from a fixed canvas that
|
|
29
|
+
* ignores the pointer and removes itself once the last piece has fallen out of
|
|
30
|
+
* view. Does nothing under prefers-reduced-motion.
|
|
31
|
+
*/
|
|
32
|
+
export function launchConfetti() {
|
|
33
|
+
if (typeof window === "undefined") return
|
|
34
|
+
if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return
|
|
35
|
+
|
|
36
|
+
const canvas = document.createElement("canvas")
|
|
37
|
+
const context = canvas.getContext("2d")
|
|
38
|
+
if (!context) return
|
|
39
|
+
|
|
40
|
+
const width = window.innerWidth
|
|
41
|
+
const height = window.innerHeight
|
|
42
|
+
const ratio = window.devicePixelRatio || 1
|
|
43
|
+
canvas.width = width * ratio
|
|
44
|
+
canvas.height = height * ratio
|
|
45
|
+
canvas.setAttribute("aria-hidden", "true")
|
|
46
|
+
Object.assign(canvas.style, {
|
|
47
|
+
position: "fixed",
|
|
48
|
+
inset: "0",
|
|
49
|
+
width: "100%",
|
|
50
|
+
height: "100%",
|
|
51
|
+
pointerEvents: "none",
|
|
52
|
+
zIndex: "2147483647",
|
|
53
|
+
})
|
|
54
|
+
context.scale(ratio, ratio)
|
|
55
|
+
document.body.append(canvas)
|
|
56
|
+
|
|
57
|
+
const styles = getComputedStyle(document.documentElement)
|
|
58
|
+
const colors = colorVariables.map((name) => styles.getPropertyValue(name).trim()).filter(Boolean)
|
|
59
|
+
if (colors.length === 0) colors.push("currentColor")
|
|
60
|
+
|
|
61
|
+
// Pieces start staggered above the top edge, so they pour in rather than
|
|
62
|
+
// arriving as one sheet.
|
|
63
|
+
const pieces: Piece[] = Array.from({ length: pieceCount }, () => ({
|
|
64
|
+
x: Math.random() * width,
|
|
65
|
+
y: -Math.random() * height * 0.5 - 20,
|
|
66
|
+
size: 6 + Math.random() * 6,
|
|
67
|
+
color: colors[Math.floor(Math.random() * colors.length)] ?? "currentColor",
|
|
68
|
+
fall: 260 + Math.random() * 260,
|
|
69
|
+
sway: 20 + Math.random() * 40,
|
|
70
|
+
swaySpeed: 1.5 + Math.random() * 2.5,
|
|
71
|
+
phase: Math.random() * Math.PI * 2,
|
|
72
|
+
rotation: Math.random() * Math.PI * 2,
|
|
73
|
+
spin: (Math.random() - 0.5) * 8,
|
|
74
|
+
}))
|
|
75
|
+
|
|
76
|
+
const start = performance.now()
|
|
77
|
+
let previous = start
|
|
78
|
+
|
|
79
|
+
const frame = (now: number) => {
|
|
80
|
+
const delta = Math.min((now - previous) / 1000, 0.05)
|
|
81
|
+
const elapsed = (now - start) / 1000
|
|
82
|
+
previous = now
|
|
83
|
+
|
|
84
|
+
context.clearRect(0, 0, width, height)
|
|
85
|
+
let visible = 0
|
|
86
|
+
for (const piece of pieces) {
|
|
87
|
+
piece.y += piece.fall * delta
|
|
88
|
+
piece.rotation += piece.spin * delta
|
|
89
|
+
if (piece.y > height + piece.size) continue
|
|
90
|
+
visible++
|
|
91
|
+
|
|
92
|
+
const x = piece.x + Math.sin(elapsed * piece.swaySpeed + piece.phase) * piece.sway
|
|
93
|
+
// Squashing one axis with the spin reads as a piece tumbling in 3D.
|
|
94
|
+
const tumble = Math.cos(piece.rotation * 1.5)
|
|
95
|
+
context.save()
|
|
96
|
+
context.translate(x, piece.y)
|
|
97
|
+
context.rotate(piece.rotation)
|
|
98
|
+
context.scale(1, tumble)
|
|
99
|
+
context.fillStyle = piece.color
|
|
100
|
+
context.fillRect(-piece.size / 2, -piece.size / 2, piece.size, piece.size)
|
|
101
|
+
context.restore()
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (visible > 0 && now - start < maxDuration) {
|
|
105
|
+
requestAnimationFrame(frame)
|
|
106
|
+
} else {
|
|
107
|
+
canvas.remove()
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
requestAnimationFrame(frame)
|
|
112
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// The shapes of the Sniptide logo, shared by the Logo component and images drawn on the server
|
|
2
|
+
// (the paste preview card), which cannot import a client component.
|
|
3
|
+
|
|
4
|
+
// The mark: six stripes on a 20 by 19.27 view box starting at 2, 2.
|
|
5
|
+
export const markStripes = [
|
|
6
|
+
"2,2.56 22,2.00 22,2.74 2,2.74",
|
|
7
|
+
"2,4.59 22,3.48 22,4.96 2,4.96",
|
|
8
|
+
"2,7.37 22,5.70 22,7.92 2,7.92",
|
|
9
|
+
"2,10.89 22,8.66 22,11.63 2,11.63",
|
|
10
|
+
"2,15.15 22,12.36 22,16.08 2,16.08",
|
|
11
|
+
"2,20.15 22,16.81 22,21.27 2,21.27",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
// The SNIPTIDE wordmark, drawn in a 4340 by 683 view box at 1341, 238 under
|
|
15
|
+
// transform="translate(0,1080) scale(0.1,-0.1)".
|
|
16
|
+
export const wordmarkPath =
|
|
17
|
+
"M16210 8410 c-293 -15 -450 -29 -565 -49 -60 -11 -144 -22 -185 -26 -41 -3 -115 -17 -165 -30 -49 -13 -117 -26 -150 -30 -33 -4 -79 -15 -103 -25 -24 -11 -71 -24 -105 -31 -34 -6 -87 -21 -117 -34 -30 -12 -71 -26 -90 -30 -19 -4 -48 -15 -65 -25 -16 -10 -50 -24 -75 -30 -25 -7 -57 -21 -72 -31 -15 -11 -45 -26 -68 -34 -23 -8 -53 -24 -67 -35 -14 -11 -31 -20 -39 -20 -7 0 -25 -11 -41 -24 -15 -13 -44 -31 -63 -41 -88 -45 -324 -255 -379 -339 -9 -13 -35 -51 -57 -84 -44 -64 -124 -220 -124 -243 0 -8 -11 -37 -24 -66 -14 -29 -27 -74 -31 -100 -4 -26 -14 -84 -23 -128 l-17 -80 0 -180 1 -180 16 -75 c9 -41 20 -97 23 -125 4 -27 17 -70 30 -95 12 -25 25 -61 29 -81 4 -21 16 -48 27 -63 11 -14 25 -39 31 -56 37 -106 258 -366 397 -465 23 -16 56 -42 74 -56 18 -14 47 -35 65 -45 60 -34 117 -69 153 -91 18 -13 41 -23 49 -23 9 0 31 -11 51 -24 19 -13 51 -29 72 -34 20 -6 49 -20 63 -31 15 -12 32 -21 38 -21 10 0 100 -41 207 -95 26 -13 64 -27 85 -31 21 -4 66 -20 99 -36 33 -15 67 -28 77 -28 9 0 45 -13 80 -30 34 -16 71 -30 81 -30 10 0 36 -9 59 -21 22 -11 72 -27 111 -35 39 -8 91 -24 116 -34 25 -10 73 -24 106 -31 33 -6 73 -18 88 -26 16 -8 61 -21 100 -29 40 -8 99 -23 132 -34 33 -10 95 -24 138 -30 43 -6 102 -20 131 -30 29 -9 77 -21 107 -24 30 -4 92 -18 139 -31 47 -13 122 -29 167 -35 45 -6 107 -19 137 -30 30 -10 81 -22 113 -25 32 -4 85 -18 118 -30 34 -12 85 -26 115 -30 30 -4 80 -18 110 -30 30 -13 73 -26 95 -30 22 -4 70 -20 107 -36 36 -16 74 -29 82 -29 9 0 42 -13 73 -30 31 -16 63 -30 72 -30 9 0 32 -11 51 -23 19 -13 49 -28 65 -34 17 -6 48 -22 69 -37 21 -14 44 -26 51 -26 6 0 22 -11 35 -25 13 -14 29 -25 37 -25 15 0 155 -120 204 -175 48 -54 99 -135 99 -155 0 -10 13 -41 29 -71 15 -30 31 -67 35 -82 11 -44 37 -196 46 -266 22 -169 -60 -537 -144 -643 -11 -15 -37 -52 -56 -83 -35 -56 -168 -187 -219 -215 -15 -8 -40 -25 -55 -38 -16 -12 -34 -22 -41 -22 -7 0 -30 -12 -51 -26 -36 -25 -73 -40 -184 -77 -165 -55 -216 -68 -302 -77 -54 -5 -137 -17 -185 -25 -48 -9 -180 -18 -293 -22 l-205 -6 -155 12 c-190 14 -390 38 -490 58 -41 8 -116 23 -165 33 -50 10 -106 27 -125 38 -19 11 -53 24 -75 27 -72 13 -261 99 -336 154 -15 11 -42 26 -60 34 -62 26 -300 255 -340 327 -11 19 -35 60 -54 90 -79 130 -107 186 -119 244 -7 33 -20 75 -29 93 -26 49 -75 285 -86 411 -5 62 -15 119 -21 127 l-12 15 -614 0 -613 0 -16 -16 -16 -17 5 -22 c3 -12 12 -85 20 -163 14 -126 38 -237 83 -372 43 -129 65 -185 78 -200 8 -9 20 -32 27 -50 6 -19 25 -57 41 -85 34 -55 34 -55 114 -175 l57 -85 141 -140 c125 -125 191 -181 303 -257 19 -13 48 -35 65 -49 18 -14 49 -32 69 -38 21 -7 40 -17 44 -22 5 -9 39 -27 154 -83 19 -9 46 -23 60 -31 14 -8 53 -28 86 -44 34 -16 64 -34 68 -39 3 -6 30 -16 58 -22 29 -7 69 -21 88 -30 19 -10 59 -23 88 -29 29 -6 66 -18 82 -26 16 -8 59 -22 96 -31 37 -8 83 -23 103 -33 20 -11 70 -24 111 -30 41 -7 111 -20 155 -31 44 -10 123 -24 177 -29 53 -6 134 -20 180 -31 l83 -21 255 -9 c140 -5 318 -15 395 -21 143 -11 221 -9 690 17 273 15 323 21 450 48 39 9 86 16 105 16 19 0 76 9 125 20 50 11 131 29 180 39 50 11 106 27 126 35 19 8 67 20 105 26 38 7 84 21 102 31 18 10 54 24 80 30 26 7 68 23 94 35 26 13 55 24 64 24 17 0 142 56 194 86 14 8 41 22 60 30 19 8 44 20 55 26 11 7 43 25 70 40 28 16 70 44 95 63 25 19 61 44 80 55 187 110 490 452 548 619 6 18 20 44 31 60 11 15 25 50 32 77 6 27 18 62 26 78 22 42 49 192 64 343 l13 132 -13 158 c-14 190 -34 311 -67 416 -13 43 -24 86 -24 96 0 10 -13 42 -29 72 -15 30 -31 66 -35 82 -7 28 -61 127 -102 187 -83 120 -122 167 -229 276 -66 66 -147 141 -179 165 -104 78 -154 114 -188 134 -84 51 -126 76 -164 94 -22 11 -52 29 -66 40 -13 11 -38 23 -54 27 -16 4 -53 20 -83 35 -30 16 -60 29 -68 29 -7 0 -39 14 -70 30 -31 17 -67 30 -80 30 -13 0 -45 11 -71 24 -27 13 -66 28 -88 32 -21 3 -59 17 -84 29 -25 12 -65 26 -90 30 -25 4 -72 18 -106 30 -33 13 -87 28 -120 35 -32 7 -72 19 -87 27 -16 8 -63 21 -105 29 -42 8 -95 21 -117 30 -22 9 -74 22 -115 30 -41 8 -97 23 -125 33 -27 10 -82 24 -120 30 -39 6 -96 19 -127 30 -31 11 -83 23 -115 26 -32 4 -92 18 -133 31 -41 13 -105 28 -141 33 -36 6 -90 19 -121 30 -31 10 -88 24 -128 30 -39 6 -85 18 -102 27 -16 8 -67 22 -111 31 -45 8 -94 21 -109 29 -15 8 -57 21 -94 30 -37 8 -83 24 -103 34 -21 10 -55 22 -76 26 -22 4 -67 20 -100 36 -33 15 -69 28 -80 28 -11 0 -36 11 -56 24 -19 13 -54 29 -77 35 -23 7 -44 16 -47 22 -4 5 -30 21 -58 35 -64 30 -134 72 -167 99 -66 54 -154 143 -169 171 -96 181 -118 270 -107 434 l7 95 19 37 c10 20 22 52 25 72 12 63 100 189 195 279 85 80 145 126 184 140 17 5 44 21 59 34 16 12 34 23 40 23 7 0 37 12 67 26 30 14 79 30 107 35 29 6 72 18 95 29 24 10 90 24 148 30 58 6 130 15 160 20 30 5 127 14 215 20 l160 12 175 -12 c96 -6 204 -15 240 -20 36 -5 115 -14 175 -20 141 -14 437 -92 550 -145 28 -13 90 -42 139 -65 76 -36 169 -96 186 -119 3 -4 25 -21 50 -38 84 -57 299 -326 300 -374 0 -9 13 -36 30 -60 16 -24 30 -51 30 -59 0 -8 11 -39 25 -68 13 -28 29 -80 35 -115 15 -80 52 -162 82 -179 l23 -13 595 5 595 5 3 33 c2 19 -4 51 -12 72 -8 22 -21 81 -27 132 -11 86 -49 208 -84 268 -8 14 -20 36 -26 50 -88 191 -109 223 -278 423 -68 81 -173 175 -296 267 -25 19 -61 47 -78 61 -18 14 -48 34 -67 44 -19 9 -42 23 -50 30 -8 7 -30 17 -48 23 -18 6 -45 20 -60 30 -15 10 -42 24 -60 30 -18 6 -45 20 -60 30 -15 11 -38 23 -52 27 -14 4 -41 17 -60 30 -19 13 -55 26 -80 30 -25 4 -71 18 -102 30 -31 13 -76 26 -100 30 -24 4 -70 17 -103 30 -86 32 -274 74 -390 86 -55 6 -158 22 -230 36 l-130 26 -240 8 c-407 14 -872 18 -1055 9z M20171 8326 l-11 -13 0 -3306 0 -3306 19 -11 20 -10 716 0 716 0 20 10 19 11 0 2589 0 2590 15 0 c21 0 71 -52 128 -135 27 -39 72 -100 100 -137 29 -37 72 -94 97 -128 25 -33 60 -80 77 -103 18 -23 41 -53 50 -67 10 -14 38 -51 63 -84 58 -76 95 -125 117 -156 10 -14 38 -51 63 -83 25 -32 52 -69 60 -81 8 -12 49 -66 90 -120 41 -54 85 -113 97 -130 12 -17 46 -63 75 -102 29 -39 81 -109 115 -155 34 -46 81 -109 105 -139 24 -30 59 -77 78 -103 43 -60 100 -135 162 -215 25 -33 51 -69 57 -80 6 -11 34 -49 63 -85 29 -36 69 -88 88 -117 33 -48 81 -110 118 -155 9 -11 26 -33 38 -50 48 -70 83 -118 154 -211 41 -54 83 -110 92 -124 10 -14 33 -44 50 -67 18 -23 53 -70 78 -104 25 -33 59 -78 75 -100 17 -21 44 -57 60 -79 17 -22 44 -58 60 -80 17 -22 44 -58 60 -80 17 -22 44 -58 60 -79 17 -22 50 -67 75 -100 25 -34 60 -81 78 -104 17 -23 40 -53 50 -67 9 -14 51 -70 92 -124 41 -54 85 -113 97 -130 13 -17 33 -45 45 -62 13 -17 57 -76 98 -130 41 -54 82 -108 90 -120 8 -12 47 -64 86 -115 38 -52 81 -110 94 -129 14 -19 32 -42 40 -52 15 -17 24 -29 137 -183 36 -49 77 -104 92 -122 14 -17 42 -55 61 -83 19 -29 60 -83 90 -121 30 -37 70 -90 88 -116 18 -26 39 -57 46 -68 l14 -20 519 -2 518 -3 23 13 23 12 0 3305 -1 3305 -17 13 -17 12 -727 0 -728 0 -15 -16 -16 -16 0 -2200 1 -2201 -10 -10 c-18 -18 -48 4 -91 71 -24 37 -55 81 -69 99 -60 75 -135 172 -179 233 -25 36 -51 70 -57 75 -6 6 -19 21 -28 35 -9 14 -39 54 -66 90 -27 36 -65 85 -83 109 -18 24 -46 60 -63 81 -16 21 -50 66 -75 99 -25 34 -58 79 -75 101 -16 22 -50 67 -75 101 -25 33 -58 78 -75 99 -16 21 -53 69 -82 106 -99 131 -138 182 -185 242 -25 33 -51 69 -57 81 -7 12 -37 52 -69 90 -31 38 -91 115 -132 170 -41 56 -90 120 -107 144 -18 23 -44 58 -58 77 -33 46 -61 83 -115 151 -25 31 -63 82 -85 113 -22 32 -65 89 -95 126 -30 37 -73 94 -95 125 -22 32 -47 65 -56 74 -14 15 -117 151 -149 197 -8 12 -35 48 -60 79 -57 73 -93 121 -125 165 -14 19 -40 54 -58 77 -17 23 -52 70 -77 104 -43 58 -85 112 -133 171 -12 14 -40 52 -62 84 -22 31 -60 82 -85 113 -25 31 -60 76 -78 101 -18 25 -56 76 -85 113 -29 38 -61 80 -72 95 -11 15 -54 72 -95 126 -41 54 -87 115 -102 135 -26 34 -48 65 -104 141 -14 19 -30 38 -37 42 -7 4 -361 8 -788 8 l-777 0 -11 -14z M27246 8324 l-16 -15 0 -3299 0 -3299 16 -16 16 -15 778 2 779 3 11 11 10 10 0 3305 0 3304 -17 13 -17 12 -772 0 -773 0 -15 -16z M29411 8321 l-11 -20 0 -3295 0 -3295 16 -15 15 -16 779 0 779 0 15 16 16 16 0 1232 c0 678 2 1240 5 1249 l6 15 672 5 672 4 235 16 c417 29 513 38 608 58 51 10 145 24 210 30 66 6 139 20 166 31 27 10 79 25 115 33 36 7 93 22 126 33 33 11 87 27 120 35 87 23 185 59 225 83 19 12 48 24 64 28 16 4 45 18 65 32 19 13 41 24 47 24 6 0 35 13 65 29 30 15 65 32 79 36 14 4 37 17 52 29 15 11 51 37 79 56 153 103 349 305 409 421 10 19 26 41 34 48 9 8 16 19 16 25 0 7 13 33 29 59 17 25 35 65 42 89 6 24 19 54 29 68 10 14 23 52 30 84 7 33 21 79 31 103 10 24 23 83 29 131 6 48 18 121 27 162 l18 75 0 245 0 245 -18 75 c-9 41 -21 115 -27 165 -6 49 -20 109 -30 133 -11 23 -24 68 -29 98 -6 31 -20 71 -31 89 -11 18 -26 53 -34 78 -7 25 -23 59 -35 75 -11 17 -21 34 -21 39 0 5 -13 27 -30 49 -16 21 -30 44 -30 51 0 21 -188 235 -245 281 -52 41 -68 73 -45 87 5 3 555 6 1222 6 l1213 -1 12 -17 13 -17 0 -3008 0 -3007 19 -11 20 -10 768 0 c422 0 774 4 781 8 l12 8 3 3017 2 3016 11 11 11 11 1324 -1 1324 0 12 -13 13 -13 0 -3006 0 -3006 16 -16 16 -16 778 2 779 3 11 11 10 10 0 3305 0 3304 -17 13 -17 12 -4307 0 -4307 0 -12 -14 -12 -15 2 -182 1 -181 -12 -14 c-17 -21 -63 -17 -84 6 -10 11 -42 27 -71 36 -29 8 -58 21 -64 29 -7 8 -35 22 -62 30 -27 8 -64 23 -81 34 -18 10 -63 24 -101 30 -38 7 -82 19 -98 27 -16 8 -62 21 -102 29 -40 8 -96 23 -123 34 -28 11 -88 25 -134 31 -46 6 -129 19 -184 30 -55 11 -151 24 -214 30 -63 6 -134 15 -158 20 -24 6 -112 15 -196 21 l-152 12 -1597 4 -1597 4 -10 -20z m2589 -575 l595 -3 95 -26 c52 -14 120 -28 150 -32 30 -4 82 -20 115 -36 33 -16 68 -29 77 -29 19 0 162 -72 188 -94 8 -8 29 -21 47 -30 65 -33 250 -239 274 -304 5 -15 20 -49 33 -77 52 -107 76 -173 86 -245 6 -41 21 -106 33 -145 l22 -70 0 -375 0 -375 -22 -70 c-12 -38 -26 -104 -32 -145 -10 -74 -30 -130 -92 -255 -16 -33 -29 -65 -29 -71 0 -31 -189 -248 -234 -269 -31 -15 -78 -46 -129 -86 -15 -11 -49 -28 -74 -35 -26 -8 -56 -21 -68 -28 -12 -8 -42 -19 -66 -26 -24 -6 -65 -20 -90 -30 -25 -10 -86 -24 -135 -30 -49 -6 -118 -17 -154 -25 -113 -25 -403 -35 -978 -35 l-558 0 -17 13 -17 12 0 1455 -1 1455 14 10 14 10 179 -2 c99 -2 447 -5 774 -7z M43723 8330 l-23 -9 0 -3310 0 -3309 31 -11 32 -11 1426 1 c1471 0 1897 7 2061 33 52 8 160 20 240 26 79 6 192 21 250 34 58 13 136 27 173 30 38 4 92 16 120 27 29 10 84 24 122 30 39 6 93 19 120 29 28 10 78 26 113 34 34 9 72 22 85 30 12 9 47 20 77 27 30 6 69 19 86 29 17 10 56 25 86 34 31 9 61 22 68 30 6 8 35 22 65 30 29 9 58 23 65 31 7 8 31 20 53 26 23 6 54 22 70 35 16 13 34 24 41 24 7 0 30 14 51 30 21 17 43 30 50 30 7 0 29 13 50 30 21 16 43 30 49 30 6 0 25 11 41 25 17 13 59 46 95 72 36 26 72 54 80 60 8 7 37 31 65 54 161 136 398 396 488 538 12 19 34 53 49 75 15 23 38 62 52 87 13 25 32 51 40 58 9 8 16 18 16 25 0 12 53 127 100 218 17 31 30 63 30 70 0 8 9 32 20 53 12 22 28 69 36 105 9 36 24 79 34 95 9 17 23 62 30 100 7 39 19 88 27 110 16 44 46 198 68 344 8 52 19 205 25 340 5 135 13 263 15 285 11 81 -28 675 -51 781 -8 39 -20 99 -26 135 -6 36 -18 86 -28 111 -10 25 -24 75 -30 110 -6 35 -20 78 -30 94 -10 17 -24 53 -31 80 -6 28 -23 70 -35 95 -13 25 -24 52 -24 61 0 9 -12 34 -26 55 -15 21 -33 56 -40 77 -7 21 -23 50 -34 64 -11 14 -20 31 -20 37 0 11 -28 55 -130 206 -14 20 -35 51 -46 69 -50 75 -265 301 -398 416 -37 33 -77 68 -87 77 -19 18 -77 58 -135 94 -19 11 -44 30 -57 42 -13 12 -27 22 -32 22 -5 0 -17 8 -27 18 -19 17 -71 45 -173 95 -28 14 -57 32 -64 41 -7 9 -19 16 -25 16 -6 0 -42 16 -80 35 -39 19 -75 35 -82 35 -7 0 -38 14 -69 30 -31 17 -64 30 -73 30 -8 0 -34 11 -56 24 -23 13 -59 27 -81 31 -22 4 -65 18 -95 30 -30 13 -73 26 -95 30 -22 4 -65 18 -95 30 -30 13 -82 26 -115 30 -33 4 -94 18 -135 31 -41 12 -124 30 -185 39 -60 8 -139 22 -173 30 -35 7 -123 19 -195 25 -73 7 -199 21 -282 32 l-150 21 -1670 3 -1670 3 -22 -9z m3287 -591 c115 -6 224 -17 253 -25 29 -9 79 -21 112 -28 33 -7 95 -25 137 -39 42 -15 88 -27 102 -27 26 0 133 -49 251 -116 33 -18 83 -45 110 -59 95 -49 128 -74 233 -172 175 -163 272 -266 272 -287 0 -7 63 -103 135 -206 14 -19 32 -51 40 -70 9 -19 27 -58 40 -85 14 -28 25 -57 25 -65 0 -8 13 -42 29 -76 16 -34 32 -75 36 -93 4 -17 17 -51 30 -74 12 -23 26 -69 30 -102 4 -32 15 -87 26 -120 10 -33 25 -108 33 -165 8 -58 22 -125 31 -149 l15 -44 11 -303 11 -302 -11 -339 -11 -338 -19 -70 c-11 -38 -25 -113 -30 -165 -6 -53 -17 -118 -26 -145 -8 -28 -22 -92 -29 -143 -8 -51 -23 -107 -34 -125 -11 -17 -25 -56 -31 -86 -6 -30 -20 -68 -30 -85 -11 -17 -23 -49 -27 -71 -3 -22 -17 -60 -29 -85 -12 -25 -25 -58 -29 -75 -4 -16 -14 -37 -22 -46 -7 -8 -24 -33 -36 -55 -24 -42 -73 -122 -123 -203 -16 -26 -39 -63 -50 -82 -31 -52 -349 -364 -387 -379 -18 -8 -46 -24 -61 -37 -16 -13 -34 -23 -41 -23 -7 0 -30 -13 -51 -30 -21 -16 -43 -30 -50 -30 -7 0 -30 -13 -53 -30 -22 -16 -54 -32 -69 -36 -15 -4 -45 -15 -66 -26 -20 -10 -61 -23 -90 -28 -28 -5 -81 -21 -117 -34 -98 -36 -230 -64 -375 -78 l-130 -13 -808 0 -808 0 -9 15 -10 15 0 2712 0 2712 18 10 17 10 732 1 c403 0 822 -5 933 -11z M50667 8327 l-18 -12 0 -3304 0 -3304 11 -11 11 -11 3050 -3 3050 -2 20 10 19 11 0 272 0 273 -12 12 -12 12 -2247 0 -2248 0 -15 16 -16 15 0 1309 0 1308 18 21 17 21 1974 0 1975 0 18 17 18 16 0 258 0 258 -16 15 -15 16 -1979 0 -1979 0 -15 22 -16 22 0 1066 0 1066 13 17 12 17 2240 0 2241 0 22 16 22 15 0 269 0 269 -19 11 -20 10 -3043 0 -3044 0 -17 -13z"
|