diff --git a/apps/v-maps/CHANGES.md b/apps/v-maps/CHANGES.md new file mode 100644 index 0000000..0187756 --- /dev/null +++ b/apps/v-maps/CHANGES.md @@ -0,0 +1,20 @@ +# V-maps + +## 1.1.0 + +- A menu with two big rounded buttons, Home and Work. It is the screen you get when there is no drive ("Waiting for + Vela…" over it while the phone is out of reach, "Start a destination" once it is there), and during a drive you + swipe right to open it ("Go to", with a hint) and swipe left to close it. +- Pressing Home or Work sends `n1H` / `n1W` to the phone, which ends the drive that is on, if any, and starts one to + the place saved as Home or Work in Vela (needs the new phone patch). The watch shows "Getting the route…" until the + route arrives, and "Open Vela on the phone" if nothing comes within 12 seconds. +- Holding the screen still switches the map between turning with you and held, as before; a slow swipe is not a hold. +- No map is drawn while the menu is up, and the map drawing and rotation code are as they were. +- The big font has an H and a W now. + +## 1.0.0 + +First release as its own app, from Vela Nav 1.27.1: a live heading-up or north-up map with the route as blue dots, +the streets around you, a black dome at the bottom with the next turn, its distance and the time left, a light disc +as your position, and a smooth rotation. New: its own name, icon and listing; the title on the waiting screens; +rounded bends in the streets while the map moves. diff --git a/apps/v-maps/Cargo.toml b/apps/v-maps/Cargo.toml new file mode 100644 index 0000000..fe3be30 --- /dev/null +++ b/apps/v-maps/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "v-maps" +edition.workspace = true +license.workspace = true +version.workspace = true + +[dependencies] +cmf-wp2-app.workspace = true +cmf-wp2-ui.workspace = true + +[[bin]] +name = "v-maps" +bench = false diff --git a/apps/v-maps/NOTICE.md b/apps/v-maps/NOTICE.md new file mode 100644 index 0000000..8b78b48 --- /dev/null +++ b/apps/v-maps/NOTICE.md @@ -0,0 +1,9 @@ +# Notice + +- **V-maps began as Vela Nav**, the watch app by arunk140 in the CMF Tech Community apps repository (MIT). It has + since been rewritten and extended by Abdalrahman (a new screen, map, marker, route dots, animation and icon) and + is a separate app, `v-maps`, so it installs next to Vela Nav and never replaces it. +- **Fonts**: the glyph tables in `src/fonts.rs` are rendered from Noto Sans (SIL Open Font License 1.1), see + `fonts/OFL.txt`. +- **Vela for Android** (arunk140/esp32-vela, GPL-3.0) is a separate program that V-maps talks to over Bluetooth. No + code from it is in this app. diff --git a/apps/v-maps/fonts/OFL.txt b/apps/v-maps/fonts/OFL.txt new file mode 100644 index 0000000..c9af0d2 --- /dev/null +++ b/apps/v-maps/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/apps/v-maps/fonts/mkfont.py b/apps/v-maps/fonts/mkfont.py new file mode 100644 index 0000000..78fe3e9 --- /dev/null +++ b/apps/v-maps/fonts/mkfont.py @@ -0,0 +1,80 @@ +"""Renders Noto Sans into the antialiased glyph tables in ../src/fonts.rs. + + uv run --with pillow python fonts/mkfont.py [dir with NotoSans-*.ttf] + +The output is committed, so a build needs neither Python nor the font files. Noto Sans is under the SIL Open +Font License 1.1 (OFL.txt next to this script); the tables are a converted copy of it. +""" +import sys +from pathlib import Path +from PIL import Image, ImageDraw, ImageFont + +SRC = Path(sys.argv[1] if len(sys.argv) > 1 else "/usr/share/fonts/google-noto") +OUT = Path(__file__).resolve().parent.parent / "src" / "fonts.rs" +ASCII = "".join(chr(c) for c in range(32, 127)) + +# (Rust name, file, px, characters) +FONTS = [ + ("XL", "NotoSans-Bold.ttf", 84, "0123456789. "), + # units, the clock, the limit, titles + ("L", "NotoSans-SemiBold.ttf", 40, "0123456789:. abcdefghijklmnopqrstuvwxyzAVNROHW"), + ("S", "NotoSans-Medium.ttf", 26, ASCII + "…·"), +] + + +def glyphs(file, px, chars): + font = ImageFont.truetype(str(SRC / file), px) + ascent, descent = font.getmetrics() + rows, data = [], bytearray() + for ch in chars: + adv = round(font.getlength(ch)) + # draw on a roomy canvas, then crop to the ink (Pillow's bbox includes the side bearings) + big = Image.new("L", (px * 3, px * 3), 0) + ImageDraw.Draw(big).text((px, px * 2), ch, font=font, fill=255, anchor="ls") + q = big.point(lambda v: (v * 15 + 127) // 255 * 17) # 4-bit, so a faint edge pixel counts as nothing + box = q.getbbox() + x0, y0, w, h, off = 0, 0, 0, 0, len(data) + if box: + x0, y0 = box[0] - px, box[1] - px * 2 + w, h = box[2] - box[0], box[3] - box[1] + px4 = [v // 17 for v in q.crop(box).get_flattened_data()] + if len(px4) % 2: + px4.append(0) + data += bytes(px4[i] << 4 | px4[i + 1] for i in range(0, len(px4), 2)) + rows.append((ch, adv, x0, y0, w, h, off)) + cap = font.getbbox("H", anchor="ls")[1] # its top edge, so ink-exact + return ascent, descent, -cap, rows, data + + +def rust_char(c): + return {"'": "\\'", "\\": "\\\\"}.get(c, c) + + +out = [ + "//! Generated by `fonts/mkfont.py` from Noto Sans (SIL Open Font License 1.1, `fonts/OFL.txt`). Do not edit.", + "", + "use crate::font::{Font, Glyph};", + "", +] +total = 0 +for name, file, px, chars in FONTS: + ascent, descent, cap, rows, data = glyphs(file, px, chars) + total += len(data) + len(rows) * 12 + print(name, len(data)) + out.append(f"/// {file[:-4]} at {px} px: {len(rows)} glyphs, {len(data)} B of 4-bit coverage.") + out.append(f"pub static {name}: Font = Font {{") + out.append(f" ascent: {ascent},") + out.append(f" descent: {descent},") + out.append(f" cap: {cap},") + out.append(" glyphs: &[") + for ch, adv, x, y, w, h, off in rows: + out.append(f" Glyph {{ c: '{rust_char(ch)}', adv: {adv}, x: {x}, y: {y}, w: {w}, h: {h}, off: {off} }},") + out.append(" ],") + out.append(" bits: &[") + for i in range(0, len(data), 24): + out.append(" " + " ".join(f"{b},"for b in data[i:i + 24])) + out.append(" ],") + out.append("};") + out.append("") +OUT.write_text("\n".join(out)) +print(f"{OUT}: {total} B") diff --git a/apps/v-maps/icon.png b/apps/v-maps/icon.png new file mode 100644 index 0000000..1ac8c6e Binary files /dev/null and b/apps/v-maps/icon.png differ diff --git a/apps/v-maps/icon.svg b/apps/v-maps/icon.svg new file mode 100644 index 0000000..716220c --- /dev/null +++ b/apps/v-maps/icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/apps/v-maps/shots/driving.png b/apps/v-maps/shots/driving.png new file mode 100644 index 0000000..2393ee4 Binary files /dev/null and b/apps/v-maps/shots/driving.png differ diff --git a/apps/v-maps/shots/off-route.png b/apps/v-maps/shots/off-route.png new file mode 100644 index 0000000..5690625 Binary files /dev/null and b/apps/v-maps/shots/off-route.png differ diff --git a/apps/v-maps/shots/zoomed-out.png b/apps/v-maps/shots/zoomed-out.png new file mode 100644 index 0000000..247284c Binary files /dev/null and b/apps/v-maps/shots/zoomed-out.png differ diff --git a/apps/v-maps/src/font.rs b/apps/v-maps/src/font.rs new file mode 100644 index 0000000..ec989de --- /dev/null +++ b/apps/v-maps/src/font.rs @@ -0,0 +1,219 @@ +//! Antialiased text in the app's own fonts (`fonts.rs`, Noto Sans), drawn as runs of equal coverage blended +//! over a background colour the caller names, as every `cmf-wp2-ui` shape is. + +use cmf_wp2_ui::color::blend565; +use cmf_wp2_ui::{ONE, Surface}; + +pub struct Glyph { + pub c: char, + pub adv: u8, + /// Ink box from the pen position on the baseline. + pub x: i8, + pub y: i8, + pub w: u8, + pub h: u8, + /// Byte offset of the 4-bit coverage, two pixels a byte, rows packed. + pub off: u16, +} + +pub struct Font { + pub ascent: i32, + pub descent: i32, + /// Height of a capital above the baseline. + pub cap: i32, + pub glyphs: &'static [Glyph], + pub bits: &'static [u8], +} + +impl Font { + fn glyph(&self, c: char) -> Option<&Glyph> { + self.glyphs.iter().find(|g| g.c == c) + } + + /// Every character of `t` is in the font. + pub fn covers(&self, t: &str) -> bool { + t.chars().all(|c| self.glyph(c).is_some()) + } + + pub fn width(&self, t: &str) -> i32 { + t.chars().map(|c| self.glyph(c).map_or(0, |g| g.adv as i32)).sum() + } + + /// Draws `t` with its baseline at `y`, from `x`; returns the pen position after it. Characters the font + /// lacks are skipped. + pub fn draw(&self, s: &mut impl Surface, x: i32, y: i32, t: &str, fg: u16, bg: u16) -> i32 { + let mut shade = [0u16; 16]; + for (a, c) in shade.iter_mut().enumerate() { + *c = blend565(bg, fg, a as i32 * ONE / 15); + } + let mut pen = x; + for ch in t.chars() { + let Some(g) = self.glyph(ch) else { continue }; + let (gx, gy, w) = (pen + g.x as i32, y + g.y as i32, g.w as usize); + let at = |i: usize| { + let b = self.bits[g.off as usize + i / 2]; + if i.is_multiple_of(2) { b >> 4 } else { b & 15 } + }; + for row in 0..g.h as usize { + let base = row * w; + let mut col = 0; + while col < w { + let a = at(base + col); + let start = col; + while col < w && at(base + col) == a { + col += 1; + } + if a != 0 { + s.rect(gx + start as i32, gy + row as i32, (col - start) as i32, 1, shade[a as usize]); + } + } + } + pen += g.adv as i32; + } + pen + } + + /// The longest start of `t` that fits `max` px, and whether it was cut (then an ellipsis follows it). + pub fn fit<'a>(&self, t: &'a str, max: i32) -> (&'a str, bool) { + if self.width(t) <= max { + return (t, false); + } + let room = max - self.width("…"); + let mut w = 0; + for (i, c) in t.char_indices() { + w += self.glyph(c).map_or(0, |g| g.adv as i32); + if w > room { + return (t[..i].trim_end(), true); + } + } + (t, false) + } + + /// `t` centred on `cx`, cut with an ellipsis to `max` px. + #[allow(clippy::too_many_arguments)] + pub fn centre(&self, s: &mut impl Surface, cx: i32, y: i32, t: &str, max: i32, fg: u16, bg: u16) { + let (t, cut) = self.fit(t, max); + let w = self.width(t) + if cut { self.width("…") } else { 0 }; + let end = self.draw(s, cx - w / 2, y, t, fg, bg); + if cut { + self.draw(s, end, y, "…", fg, bg); + } + } +} + +/// A filled polygon (any shape, even-odd), antialiased: exact horizontal coverage on 4 sub-rows a pixel. +/// `paint(x)` picks the colour per column, so a shape can have two flat faces. Corners on whole pixels. +pub fn poly(s: &mut impl Surface, pts: &[(i32, i32)], bg: u16, paint: impl Fn(i32) -> u16) { + if pts.len() > 8 { + return; // icons and the car only + } + let mut h = [(0, 0); 8]; + for (d, p) in h.iter_mut().zip(pts) { + *d = (p.0 * 2, p.1 * 2); + } + poly_half(s, &h[..pts.len()], bg, paint) +} + +/// `poly` with the corners in half pixels (2 = the next pixel's left edge), so a shape can be centred on the +/// middle of a pixel, as the car's disc is. +pub fn poly_half(s: &mut impl Surface, pts: &[(i32, i32)], bg: u16, paint: impl Fn(i32) -> u16) { + const SUB: i32 = 4; // sub-rows a pixel + const FX: i32 = 16; // sub-pixel units a pixel, across + let y0 = pts.iter().map(|p| p.1).min().unwrap_or(0).div_euclid(2); + let y1 = (pts.iter().map(|p| p.1).max().unwrap_or(0) + 1).div_euclid(2); + let x0 = pts.iter().map(|p| p.0).min().unwrap_or(0).div_euclid(2); + let x1 = (pts.iter().map(|p| p.0).max().unwrap_or(0) + 1).div_euclid(2); + let wide = (x1 - x0 + 2) as usize; + if wide > 128 || pts.len() > 8 { + return; + } + for y in y0..y1 { + let mut cov = [0i32; 128]; + for k in 0..SUB { + // sample at the sub-row's middle, in 1/(2*SUB) px + let sy2 = y * 2 * SUB + 2 * k + 1; + let mut xs = [0i32; 8]; + let mut n = 0; + for i in 0..pts.len() { + let (a, b) = (pts[i], pts[(i + 1) % pts.len()]); + let (ay, by) = (a.1 * SUB, b.1 * SUB); + if (ay <= sy2) != (by <= sy2) { + xs[n] = (a.0 * (FX / 2)) + (b.0 - a.0) * (FX / 2) * (sy2 - ay) / (by - ay); + n += 1; + } + } + xs[..n].sort_unstable(); + for span in xs[..n].chunks(2) { + let [l, r] = span else { continue }; + for px in (l.div_euclid(FX))..=(r.div_euclid(FX)) { + let lo = (px * FX).max(*l); + let hi = ((px + 1) * FX).min(*r); + let i = px - x0 + 1; + if hi > lo && i >= 0 && (i as usize) < wide { + cov[i as usize] += hi - lo; + } + } + } + } + // runs of equal colour + let full = FX * SUB; + let mut i = 0; + while i < wide { + let c = cov[i]; + let x = x0 - 1 + i as i32; + let col = if c == 0 { None } else { Some(blend565(bg, paint(x), c * ONE / full)) }; + let start = i; + while i < wide && cov[i] == c && paint(x0 - 1 + i as i32) == paint(x) { + i += 1; + } + if let Some(col) = col { + s.rect(x, y, (i - start) as i32, 1, col); + } + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::fonts::{L, S, XL}; + use cmf_wp2_ui::{Fb, SIZE}; + use std::vec; + + #[test] + fn fonts_have_what_the_screens_need() { + assert!(XL.covers("0123456789.")); + assert!(L.covers("12:05 pm km mi ft V maps Vela Arrived Off route Home Work")); + assert!(S.covers("Bannerghatta Main Road · 4.7 km · 12 min Rerouting…")); + assert!(!S.covers("ಹೊಸೂರು ರಸ್ತೆ")); + } + + #[test] + fn text_is_antialiased_and_fits() { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + let end = XL.draw(&mut fb, 100, 200, "300", 0xFFFF, 0); + assert_eq!(end, 100 + XL.width("300")); + let mut shades = std::collections::BTreeSet::new(); + for y in 100..220 { + for x in 90..end + 10 { + shades.insert(fb.at(x, y)); + } + } + assert!(shades.len() > 8, "{}", shades.len()); + let (t, cut) = S.fit("Bannerghatta Main Road", 120); + assert!(cut && S.width(t) + S.width("…") <= 120, "{t}"); + assert_eq!(S.fit("Road", 120), ("Road", false)); + } + + #[test] + fn a_polygon_has_soft_edges_and_a_solid_middle() { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + poly(&mut fb, &[(100, 100), (140, 160), (60, 160)], 0, |_| 0xFFFF); + assert_eq!(fb.at(100, 150), 0xFFFF); + assert_eq!(fb.at(100, 90), 0); + let edge = fb.at(79, 130); // the left edge crosses it at x 79.7 + assert!(edge != 0 && edge != 0xFFFF, "{edge:x}"); + } +} diff --git a/apps/v-maps/src/fonts.rs b/apps/v-maps/src/fonts.rs new file mode 100644 index 0000000..bb35c35 --- /dev/null +++ b/apps/v-maps/src/fonts.rs @@ -0,0 +1,1640 @@ +//! Generated by `fonts/mkfont.py` from Noto Sans (SIL Open Font License 1.1, `fonts/OFL.txt`). Do not edit. + +use crate::font::{Font, Glyph}; + +/// NotoSans-Bold at 84 px: 12 glyphs, 12902 B of 4-bit coverage. +pub static XL: Font = Font { + ascent: 90, + descent: 25, + cap: 60, + glyphs: &[ + Glyph { c: '0', adv: 48, x: 3, y: -61, w: 42, h: 62, off: 0 }, + Glyph { c: '1', adv: 48, x: 5, y: -60, w: 30, h: 60, off: 1302 }, + Glyph { c: '2', adv: 48, x: 3, y: -61, w: 43, h: 61, off: 2202 }, + Glyph { c: '3', adv: 48, x: 3, y: -61, w: 42, h: 62, off: 3514 }, + Glyph { c: '4', adv: 48, x: 1, y: -60, w: 46, h: 60, off: 4816 }, + Glyph { c: '5', adv: 48, x: 4, y: -60, w: 41, h: 61, off: 6196 }, + Glyph { c: '6', adv: 48, x: 2, y: -61, w: 44, h: 62, off: 7447 }, + Glyph { c: '7', adv: 48, x: 2, y: -60, w: 44, h: 60, off: 8811 }, + Glyph { c: '8', adv: 48, x: 2, y: -61, w: 43, h: 62, off: 10131 }, + Glyph { c: '9', adv: 48, x: 2, y: -61, w: 43, h: 62, off: 11464 }, + Glyph { c: '.', adv: 24, x: 4, y: -13, w: 15, h: 14, off: 12797 }, + Glyph { c: ' ', adv: 22, x: 0, y: 0, w: 0, h: 0, off: 12902 }, + ], + bits: &[ + 0, 0, 0, 0, 0, 0, 0, 38, 156, 222, 255, 237, 184, 81, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1, 125, 255, 255, 255, 255, 255, 255, 255, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 3, 239, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 251, 16, 0, 0, 0, 0, 0, 0, 62, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 176, 0, 0, 0, 0, 0, 1, 239, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, + 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 0, 0, + 0, 0, 111, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 225, 0, 0, 0, 1, 239, + 255, 255, 255, 255, 255, 255, 253, 187, 223, 255, 255, 255, 255, 255, 255, 248, 0, 0, 0, 7, 255, 255, 255, 255, + 255, 255, 250, 32, 0, 3, 191, 255, 255, 255, 255, 255, 255, 32, 0, 0, 14, 255, 255, 255, 255, 255, 255, 112, + 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 128, 0, 0, 79, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, + 0, 207, 255, 255, 255, 255, 255, 225, 0, 0, 175, 255, 255, 255, 255, 255, 225, 0, 0, 0, 0, 0, 63, 255, + 255, 255, 255, 255, 245, 0, 0, 239, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, + 255, 250, 0, 4, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 6, 255, 255, 255, 255, 255, 255, 0, + 7, 255, 255, 255, 255, 255, 254, 0, 0, 0, 0, 0, 0, 1, 255, 255, 255, 255, 255, 255, 64, 11, 255, 255, + 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 0, 223, 255, 255, 255, 255, 255, 128, 14, 255, 255, 255, 255, 255, + 248, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 176, 31, 255, 255, 255, 255, 255, 246, 0, 0, + 0, 0, 0, 0, 0, 127, 255, 255, 255, 255, 255, 224, 79, 255, 255, 255, 255, 255, 243, 0, 0, 0, 0, 0, + 0, 0, 79, 255, 255, 255, 255, 255, 242, 111, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 0, 47, + 255, 255, 255, 255, 255, 244, 143, 255, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, + 255, 255, 246, 159, 255, 255, 255, 255, 255, 224, 0, 0, 0, 0, 0, 0, 0, 14, 255, 255, 255, 255, 255, 248, + 175, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 250, 207, 255, 255, + 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 251, 223, 255, 255, 255, 255, 255, + 176, 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 252, 223, 255, 255, 255, 255, 255, 160, 0, 0, + 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 253, 239, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, + 0, 0, 10, 255, 255, 255, 255, 255, 253, 239, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 10, + 255, 255, 255, 255, 255, 254, 239, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, + 255, 255, 254, 239, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 254, + 239, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 253, 239, 255, 255, + 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 253, 223, 255, 255, 255, 255, 255, + 160, 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 253, 207, 255, 255, 255, 255, 255, 176, 0, 0, + 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 252, 191, 255, 255, 255, 255, 255, 176, 0, 0, 0, 0, 0, + 0, 0, 12, 255, 255, 255, 255, 255, 251, 175, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 13, + 255, 255, 255, 255, 255, 250, 159, 255, 255, 255, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 14, 255, 255, 255, + 255, 255, 248, 127, 255, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 247, + 95, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 245, 63, 255, 255, + 255, 255, 255, 243, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 243, 15, 255, 255, 255, 255, 255, + 245, 0, 0, 0, 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 240, 12, 255, 255, 255, 255, 255, 248, 0, 0, + 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 208, 9, 255, 255, 255, 255, 255, 251, 0, 0, 0, 0, 0, + 0, 0, 207, 255, 255, 255, 255, 255, 160, 5, 255, 255, 255, 255, 255, 254, 0, 0, 0, 0, 0, 0, 1, 255, + 255, 255, 255, 255, 255, 96, 1, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, + 255, 255, 32, 0, 191, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 254, 0, + 0, 111, 255, 255, 255, 255, 255, 225, 0, 0, 0, 0, 0, 63, 255, 255, 255, 255, 255, 249, 0, 0, 31, 255, + 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 255, 243, 0, 0, 9, 255, 255, 255, 255, + 255, 255, 112, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 208, 0, 0, 3, 255, 255, 255, 255, 255, 255, 250, + 32, 0, 3, 191, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 175, 255, 255, 255, 255, 255, 255, 253, 187, 223, + 255, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 245, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 160, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 16, 0, 0, + 0, 0, 0, 28, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 227, 0, 0, 0, 0, 0, 0, + 1, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 48, 0, 0, 0, 0, 0, 0, 0, 26, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 93, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 231, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 255, 255, 255, 255, 255, + 255, 255, 198, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 155, 222, 255, 237, 185, 98, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 255, 250, 0, 0, 0, + 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 1, 191, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 45, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, + 4, 239, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 255, 255, 255, 255, 250, + 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 2, 207, 255, 255, 255, + 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 61, 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 5, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, 143, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 250, 0, 0, 27, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, 0, 2, 223, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 250, 0, 78, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, + 7, 255, 255, 255, 255, 255, 255, 255, 170, 255, 255, 255, 255, 255, 250, 159, 255, 255, 255, 255, 255, 255, 250, 11, + 255, 255, 255, 255, 255, 250, 127, 255, 255, 255, 255, 255, 255, 128, 11, 255, 255, 255, 255, 255, 250, 10, 255, 255, + 255, 255, 255, 247, 0, 12, 255, 255, 255, 255, 255, 250, 1, 207, 255, 255, 255, 254, 64, 0, 12, 255, 255, 255, + 255, 255, 250, 0, 46, 255, 255, 255, 194, 0, 0, 13, 255, 255, 255, 255, 255, 250, 0, 4, 255, 255, 250, 16, + 0, 0, 13, 255, 255, 255, 255, 255, 250, 0, 0, 127, 255, 112, 0, 0, 0, 14, 255, 255, 255, 255, 255, 250, + 0, 0, 9, 228, 0, 0, 0, 0, 14, 255, 255, 255, 255, 255, 250, 0, 0, 0, 32, 0, 0, 0, 0, 14, + 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, + 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, + 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, + 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, + 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, + 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, + 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, + 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, + 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, + 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, + 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, + 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, + 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, + 1, 71, 172, 222, 239, 238, 218, 133, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 255, 255, + 255, 255, 255, 255, 255, 255, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 239, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 253, 96, 0, 0, 0, 0, 0, 0, 0, 1, 143, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 194, 0, 0, 0, 0, 0, 0, 5, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 228, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, + 0, 0, 0, 0, 44, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 243, 0, 0, + 0, 62, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 209, 0, 0, 95, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 5, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 32, 0, 7, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 248, 0, 0, 10, 255, 255, 255, 255, 255, 255, 234, 99, + 16, 19, 108, 255, 255, 255, 255, 255, 255, 255, 208, 0, 0, 12, 255, 255, 255, 255, 253, 96, 0, 0, 0, 0, + 6, 255, 255, 255, 255, 255, 255, 255, 32, 0, 0, 29, 255, 255, 255, 230, 0, 0, 0, 0, 0, 0, 5, 255, + 255, 255, 255, 255, 255, 245, 0, 0, 0, 62, 255, 255, 161, 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, + 255, 255, 255, 112, 0, 0, 0, 95, 254, 80, 0, 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 255, 255, + 248, 0, 0, 0, 0, 124, 32, 0, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, 255, 255, 144, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 248, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 112, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 245, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 4, 255, 255, 255, 255, 255, 255, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 127, 255, 255, 255, 255, 255, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 12, 255, 255, 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 255, 255, + 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, + 255, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 249, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 255, 255, 255, 255, 255, 255, 32, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 6, 255, 255, 255, 255, 255, 255, 248, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, + 255, 255, 255, 255, 255, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 255, 255, 255, 255, + 255, 255, 253, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 239, 255, 255, 255, 255, 255, 254, + 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 239, 255, 255, 255, 255, 255, 254, 48, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 239, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 2, 223, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 2, 223, 255, 255, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 2, 223, 255, 255, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 223, + 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 223, 255, 255, 255, + 255, 255, 254, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 223, 255, 255, 255, 255, 255, 254, + 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 223, 255, 255, 255, 255, 255, 254, 48, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 223, 255, 255, 255, 255, 255, 253, 32, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 1, 223, 255, 255, 255, 255, 255, 253, 32, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 1, 207, 255, 255, 255, 255, 255, 252, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1, 207, 255, 255, 255, 255, 255, 252, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 207, + 255, 255, 255, 255, 255, 251, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 207, 255, 255, 255, + 255, 255, 251, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 207, 255, 255, 255, 255, 255, 250, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 65, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 244, 159, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 74, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 244, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 74, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 175, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 74, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 175, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 74, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 3, 104, 172, 222, 239, 238, 220, 184, 83, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 106, 239, 255, 255, 255, 255, 255, 255, 255, 255, 233, 64, 0, + 0, 0, 0, 0, 0, 0, 3, 174, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 80, 0, 0, 0, + 0, 0, 4, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 252, 48, 0, 0, 0, 3, 207, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 247, 0, 0, 0, 111, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 46, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 246, 0, 0, 7, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 254, 32, 0, 0, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 160, 0, 0, 46, 255, 255, 255, 255, 255, 255, 220, 187, 206, 255, 255, 255, 255, 255, 255, + 255, 255, 241, 0, 0, 7, 255, 255, 255, 255, 216, 48, 0, 0, 0, 38, 223, 255, 255, 255, 255, 255, 255, 246, + 0, 0, 0, 207, 255, 255, 197, 0, 0, 0, 0, 0, 0, 25, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, + 46, 255, 214, 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 255, 252, 0, 0, 0, 7, 248, 16, + 0, 0, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 48, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 9, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, + 255, 255, 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, + 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 246, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 242, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 176, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 4, 207, 255, 255, 255, 255, 255, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 72, 207, 255, 255, + 255, 255, 255, 253, 32, 0, 0, 0, 0, 0, 0, 6, 187, 187, 187, 205, 239, 255, 255, 255, 255, 255, 255, 255, + 193, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 248, 0, 0, 0, + 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 251, 48, 0, 0, 0, 0, 0, 0, + 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, 234, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, + 255, 255, 255, 255, 255, 255, 255, 255, 247, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 253, 166, 16, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 251, 48, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 251, 32, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 228, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, + 0, 0, 0, 0, 0, 0, 0, 0, 1, 18, 53, 122, 223, 255, 255, 255, 255, 255, 255, 255, 227, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 159, 255, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 2, 207, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 29, 255, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 5, 255, 255, 255, 255, 255, 255, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 239, 255, 255, 255, 255, 255, 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, + 255, 255, 255, 248, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, + 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 250, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 255, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 9, 255, 255, 255, 255, 255, 255, 244, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 63, + 255, 255, 255, 255, 255, 255, 241, 207, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 223, 255, 255, 255, + 255, 255, 255, 176, 207, 255, 217, 64, 0, 0, 0, 0, 0, 0, 0, 0, 94, 255, 255, 255, 255, 255, 255, 255, + 96, 207, 255, 255, 254, 167, 65, 0, 0, 0, 0, 3, 125, 255, 255, 255, 255, 255, 255, 255, 253, 0, 207, 255, + 255, 255, 255, 255, 237, 187, 187, 205, 255, 255, 255, 255, 255, 255, 255, 255, 255, 246, 0, 207, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 176, 0, 207, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 32, 0, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 227, 0, 0, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 254, 48, 0, 0, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 177, 0, 0, 0, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 214, 0, 0, 0, + 0, 21, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 215, 0, 0, 0, 0, 0, 0, 1, + 89, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 147, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 70, + 138, 205, 222, 239, 254, 221, 185, 117, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 4, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 29, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 175, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, + 255, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, + 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, + 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, + 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, 255, 255, 255, + 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, 255, + 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, 96, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 96, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, 255, 255, 239, 255, 255, 255, 255, 255, 96, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 253, 143, 255, 255, 255, 255, 255, 96, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 6, 255, 255, 255, 255, 246, 159, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 46, 255, 255, 255, 255, 208, 159, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 96, 175, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 6, 255, 255, 255, 255, 252, 0, 191, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 46, 255, 255, 255, 255, 243, 0, 207, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 191, 255, 255, 255, 255, 128, 0, 207, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 6, + 255, 255, 255, 255, 253, 0, 0, 223, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 46, 255, + 255, 255, 255, 243, 0, 0, 223, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, + 255, 255, 128, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 6, 255, 255, 255, 255, + 253, 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 46, 255, 255, 255, 255, 243, + 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 128, 0, + 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 253, 16, 0, 0, + 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 46, 255, 255, 255, 255, 243, 0, 0, 0, 0, + 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 128, 0, 0, 0, 0, 239, + 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 253, 16, 0, 0, 0, 0, 239, 255, + 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 239, 255, 255, + 255, 255, 255, 96, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 239, 255, 255, 255, + 255, 255, 96, 0, 0, 0, 0, 7, 255, 255, 255, 255, 253, 16, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, + 255, 96, 0, 0, 0, 0, 63, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, + 96, 0, 0, 0, 0, 207, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, + 0, 0, 0, 7, 255, 255, 255, 255, 253, 16, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, + 0, 0, 63, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 249, 159, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, + 159, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 159, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 159, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 159, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 159, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 159, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 159, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 107, 187, 187, 187, 187, 187, 187, + 187, 187, 187, 187, 187, 187, 255, 255, 255, 255, 255, 255, 203, 187, 187, 183, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 239, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, + 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, + 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, 255, + 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, + 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, + 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, + 96, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 16, 0, + 0, 0, 143, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 9, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 16, 0, 0, 0, 191, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 12, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 16, 0, 0, 0, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 241, 0, 0, 0, 14, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 16, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, + 0, 31, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 16, 0, 0, 2, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 63, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 16, 0, 0, 4, 255, 255, 255, 255, 255, 249, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 143, 255, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 9, 255, 255, 255, 255, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, + 255, 255, 255, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 241, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 254, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 31, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, + 255, 255, 255, 255, 255, 250, 88, 172, 238, 255, 237, 201, 98, 0, 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 114, 0, 0, 0, 0, 0, 4, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 249, 16, 0, 0, 0, 0, 95, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 254, 80, 0, 0, 0, 6, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 128, 0, 0, 0, 127, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 144, + 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 112, 0, 0, 175, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 48, 0, 6, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 0, 0, 2, 159, 255, 255, 255, 254, 203, 187, + 206, 255, 255, 255, 255, 255, 255, 255, 255, 255, 245, 0, 0, 0, 42, 253, 150, 49, 0, 0, 0, 1, 73, 239, + 255, 255, 255, 255, 255, 255, 255, 208, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, + 255, 255, 255, 255, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 255, 255, 255, 255, 255, 255, + 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 255, 176, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 3, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 255, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 191, 255, 255, 255, 255, 255, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, + 255, 255, 255, 255, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, + 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 255, 16, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 255, 224, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 5, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 223, 255, 255, 255, 255, 255, 246, 11, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, + 255, 255, 255, 32, 223, 215, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 255, 255, 255, 192, + 13, 255, 255, 199, 48, 0, 0, 0, 0, 0, 0, 4, 207, 255, 255, 255, 255, 255, 255, 246, 0, 223, 255, 255, + 255, 235, 133, 50, 16, 17, 53, 141, 255, 255, 255, 255, 255, 255, 255, 253, 0, 13, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 0, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 160, 0, 13, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 209, 0, 0, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 226, 0, 0, 13, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 210, 0, 0, 0, + 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 177, 0, 0, 0, 13, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 96, 0, 0, 0, 0, 24, 223, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 231, 16, 0, 0, 0, 0, 0, 0, 56, 207, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 234, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 88, 172, 221, 239, 255, 237, 202, 133, 32, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 138, 205, 238, 255, 255, + 255, 237, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 190, 255, 255, 255, 255, 255, 255, 255, 255, + 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 59, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, + 0, 0, 0, 0, 0, 25, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, + 0, 0, 3, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 0, + 95, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 5, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 2, 239, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 220, 187, 188, 222, 255, 241, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 255, 255, 252, 132, + 32, 0, 0, 0, 0, 20, 129, 0, 0, 0, 0, 0, 143, 255, 255, 255, 255, 255, 255, 232, 32, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, 255, 255, 250, 16, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 245, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 159, 255, 255, 255, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 239, 255, 255, 255, 255, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 255, + 255, 255, 255, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, + 255, 255, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, + 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 255, 255, 16, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 251, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 247, 0, 0, 0, 39, 172, 239, + 254, 219, 133, 16, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 244, 0, 0, 76, 255, 255, 255, 255, 255, + 255, 233, 32, 0, 0, 0, 0, 3, 255, 255, 255, 255, 255, 241, 0, 26, 255, 255, 255, 255, 255, 255, 255, 255, + 249, 16, 0, 0, 0, 5, 255, 255, 255, 255, 255, 224, 2, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 211, + 0, 0, 0, 7, 255, 255, 255, 255, 255, 192, 46, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 48, 0, + 0, 9, 255, 255, 255, 255, 255, 177, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 226, 0, 0, 10, + 255, 255, 255, 255, 255, 169, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 0, 0, 12, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 13, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 242, 0, 14, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 236, 187, 223, 255, 255, 255, 255, 255, 255, 255, 248, 0, 14, 255, 255, 255, 255, 255, 255, 255, 255, + 180, 0, 0, 1, 110, 255, 255, 255, 255, 255, 255, 254, 0, 15, 255, 255, 255, 255, 255, 255, 255, 229, 0, 0, + 0, 0, 1, 207, 255, 255, 255, 255, 255, 255, 64, 15, 255, 255, 255, 255, 255, 255, 254, 32, 0, 0, 0, 0, + 0, 29, 255, 255, 255, 255, 255, 255, 128, 31, 255, 255, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 4, + 255, 255, 255, 255, 255, 255, 176, 15, 255, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 207, 255, + 255, 255, 255, 255, 224, 15, 255, 255, 255, 255, 255, 255, 32, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, + 255, 255, 241, 14, 255, 255, 255, 255, 255, 252, 0, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, + 243, 13, 255, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 243, 12, + 255, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 244, 10, 255, 255, + 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 15, 255, 255, 255, 255, 255, 244, 8, 255, 255, 255, 255, + 255, 251, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 243, 5, 255, 255, 255, 255, 255, 253, + 0, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 243, 2, 255, 255, 255, 255, 255, 255, 32, 0, + 0, 0, 0, 0, 0, 0, 63, 255, 255, 255, 255, 255, 241, 0, 223, 255, 255, 255, 255, 255, 112, 0, 0, 0, + 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 224, 0, 159, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, + 0, 0, 175, 255, 255, 255, 255, 255, 192, 0, 95, 255, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 1, + 255, 255, 255, 255, 255, 255, 144, 0, 14, 255, 255, 255, 255, 255, 253, 16, 0, 0, 0, 0, 0, 8, 255, 255, + 255, 255, 255, 255, 64, 0, 8, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, + 255, 254, 16, 0, 2, 255, 255, 255, 255, 255, 255, 250, 16, 0, 0, 0, 5, 239, 255, 255, 255, 255, 255, 249, + 0, 0, 0, 143, 255, 255, 255, 255, 255, 255, 213, 0, 0, 3, 175, 255, 255, 255, 255, 255, 255, 243, 0, 0, + 0, 29, 255, 255, 255, 255, 255, 255, 255, 252, 188, 239, 255, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 4, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 32, 0, 0, 0, 0, 143, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 246, 0, 0, 0, 0, 0, 11, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 0, 94, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 142, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 249, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 124, 255, 255, 255, 255, 255, 255, 255, 216, 32, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 155, 222, 255, 237, 185, 99, 0, 0, 0, 0, + 0, 0, 0, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 244, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 242, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 176, 191, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 255, 255, 255, 255, + 255, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 246, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 255, 255, 225, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 255, 255, 255, 255, 255, 255, 32, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1, 255, 255, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, + 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, + 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 255, + 255, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 255, 255, 255, 255, 255, 144, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, 255, 255, 32, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 251, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 3, 255, 255, 255, 255, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 10, 255, 255, 255, 255, 255, 254, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 47, 255, 255, 255, 255, 255, 248, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, + 255, 255, 255, 255, 255, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 239, 255, 255, + 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, + 255, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, 255, 255, 255, 252, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 245, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 255, 255, 255, 255, 255, 208, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 254, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 191, 255, 255, 255, 255, 255, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 3, 255, 255, 255, 255, 255, 255, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, + 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, + 255, 255, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, 255, 255, + 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 239, 255, 255, 255, 255, 255, 224, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 255, 255, 255, 255, 255, 255, 16, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 223, 255, 255, 255, 255, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 5, 255, 255, 255, 255, 255, 255, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 12, 255, 255, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 63, 255, 255, 255, 255, 255, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, + 255, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, + 255, 255, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, + 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 255, 32, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 239, 255, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 122, 205, 239, 254, 220, 167, 65, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 5, 174, 255, 255, 255, 255, 255, 255, 255, 251, 97, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1, 126, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 232, 16, 0, 0, 0, 0, 0, 0, 0, 4, + 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 80, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 128, 0, 0, 0, 4, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 64, 0, 0, 0, 223, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 252, 0, 0, 0, 79, 255, 255, 255, 255, 255, 255, 255, 252, 187, 207, 255, 255, 255, 255, 255, 255, 255, + 244, 0, 0, 10, 255, 255, 255, 255, 255, 255, 252, 80, 0, 0, 21, 223, 255, 255, 255, 255, 255, 255, 144, 0, + 0, 223, 255, 255, 255, 255, 255, 248, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, 253, 0, 0, 31, 255, + 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 255, 255, 240, 0, 2, 255, 255, 255, 255, + 255, 255, 32, 0, 0, 0, 0, 0, 3, 255, 255, 255, 255, 255, 255, 16, 0, 63, 255, 255, 255, 255, 255, 208, + 0, 0, 0, 0, 0, 0, 13, 255, 255, 255, 255, 255, 242, 0, 2, 255, 255, 255, 255, 255, 251, 0, 0, 0, + 0, 0, 0, 0, 207, 255, 255, 255, 255, 255, 32, 0, 31, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, + 0, 12, 255, 255, 255, 255, 255, 240, 0, 0, 239, 255, 255, 255, 255, 254, 0, 0, 0, 0, 0, 0, 0, 239, + 255, 255, 255, 255, 253, 0, 0, 11, 255, 255, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, + 255, 255, 160, 0, 0, 127, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 246, + 0, 0, 2, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 254, 16, 0, 0, + 10, 255, 255, 255, 255, 255, 255, 178, 0, 0, 0, 26, 255, 255, 255, 255, 255, 255, 112, 0, 0, 0, 46, 255, + 255, 255, 255, 255, 255, 229, 0, 0, 77, 255, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 111, 255, 255, 255, + 255, 255, 255, 251, 51, 191, 255, 255, 255, 255, 255, 255, 226, 0, 0, 0, 0, 0, 159, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 227, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 227, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 194, 0, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94, 255, 255, 255, 255, 255, 255, 255, 255, 255, 251, 48, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 29, 255, 255, 255, 255, 255, 255, 255, 255, 252, 16, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 76, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 112, 0, 0, 0, 0, 0, 0, 0, + 0, 1, 159, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 211, 0, 0, 0, 0, 0, 0, 0, 3, 223, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 5, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 251, 16, 0, 0, 0, 0, 6, 255, 255, 255, 255, 255, 255, 255, + 254, 255, 255, 255, 255, 255, 255, 255, 253, 32, 0, 0, 0, 6, 255, 255, 255, 255, 255, 255, 255, 197, 6, 239, + 255, 255, 255, 255, 255, 255, 253, 16, 0, 0, 3, 255, 255, 255, 255, 255, 255, 254, 112, 0, 1, 175, 255, 255, + 255, 255, 255, 255, 252, 0, 0, 1, 223, 255, 255, 255, 255, 255, 252, 32, 0, 0, 0, 77, 255, 255, 255, 255, + 255, 255, 248, 0, 0, 127, 255, 255, 255, 255, 255, 251, 16, 0, 0, 0, 0, 26, 255, 255, 255, 255, 255, 255, + 243, 0, 13, 255, 255, 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 255, 176, 4, + 255, 255, 255, 255, 255, 254, 16, 0, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 32, 143, 255, 255, + 255, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 247, 11, 255, 255, 255, 255, 255, + 241, 0, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 176, 239, 255, 255, 255, 255, 253, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 253, 15, 255, 255, 255, 255, 255, 176, 0, 0, 0, 0, + 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 241, 255, 255, 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 207, 255, 255, 255, 255, 255, 31, 255, 255, 255, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 0, 13, + 255, 255, 255, 255, 255, 224, 255, 255, 255, 255, 255, 255, 48, 0, 0, 0, 0, 0, 0, 0, 3, 255, 255, 255, + 255, 255, 253, 13, 255, 255, 255, 255, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, + 176, 175, 255, 255, 255, 255, 255, 245, 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 255, 255, 248, 7, 255, + 255, 255, 255, 255, 255, 246, 0, 0, 0, 0, 0, 0, 127, 255, 255, 255, 255, 255, 255, 64, 47, 255, 255, 255, + 255, 255, 255, 252, 97, 0, 0, 0, 38, 207, 255, 255, 255, 255, 255, 255, 208, 0, 191, 255, 255, 255, 255, 255, + 255, 255, 253, 203, 188, 239, 255, 255, 255, 255, 255, 255, 255, 246, 0, 3, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 252, 0, 0, 9, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 254, 48, 0, 0, 12, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 80, 0, 0, 0, 28, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 96, 0, 0, 0, 0, 27, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 64, + 0, 0, 0, 0, 0, 7, 239, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 250, 16, 0, 0, 0, + 0, 0, 0, 1, 158, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 179, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 22, 191, 255, 255, 255, 255, 255, 255, 255, 255, 216, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 20, 121, 189, 238, 255, 238, 202, 133, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, + 155, 222, 255, 237, 184, 98, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 223, 255, 255, 255, + 255, 255, 255, 252, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 159, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 231, 16, 0, 0, 0, 0, 0, 0, 0, 0, 5, 239, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 253, 64, 0, 0, 0, 0, 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 128, + 0, 0, 0, 0, 0, 0, 10, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 144, 0, 0, + 0, 0, 0, 9, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, + 6, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 112, 0, 0, 0, 2, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 191, 255, 255, 255, 255, + 255, 255, 255, 236, 188, 239, 255, 255, 255, 255, 255, 255, 253, 0, 0, 0, 63, 255, 255, 255, 255, 255, 255, 250, + 48, 0, 0, 92, 255, 255, 255, 255, 255, 255, 247, 0, 0, 10, 255, 255, 255, 255, 255, 255, 228, 0, 0, 0, + 0, 9, 255, 255, 255, 255, 255, 255, 225, 0, 1, 255, 255, 255, 255, 255, 255, 243, 0, 0, 0, 0, 0, 10, + 255, 255, 255, 255, 255, 255, 112, 0, 95, 255, 255, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 29, 255, 255, + 255, 255, 255, 253, 0, 9, 255, 255, 255, 255, 255, 254, 16, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, + 255, 244, 0, 207, 255, 255, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, 255, 144, + 15, 255, 255, 255, 255, 255, 246, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 253, 2, 255, 255, + 255, 255, 255, 255, 48, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 241, 63, 255, 255, 255, 255, + 255, 241, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, 255, 255, 255, 255, 84, 255, 255, 255, 255, 255, 255, 0, + 0, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, 255, 255, 247, 79, 255, 255, 255, 255, 255, 240, 0, 0, 0, + 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, 148, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, + 0, 0, 9, 255, 255, 255, 255, 255, 251, 79, 255, 255, 255, 255, 255, 241, 0, 0, 0, 0, 0, 0, 0, 0, + 175, 255, 255, 255, 255, 255, 211, 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, + 255, 255, 255, 254, 47, 255, 255, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, 255, + 255, 224, 239, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 175, 255, 255, 255, 255, 255, 255, 12, + 255, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 255, 255, 255, 240, 159, 255, 255, + 255, 255, 255, 252, 16, 0, 0, 0, 0, 0, 62, 255, 255, 255, 255, 255, 255, 255, 5, 255, 255, 255, 255, 255, + 255, 251, 16, 0, 0, 0, 0, 111, 255, 255, 255, 255, 255, 255, 255, 224, 30, 255, 255, 255, 255, 255, 255, 253, + 97, 0, 0, 4, 191, 255, 255, 255, 255, 255, 255, 255, 254, 0, 159, 255, 255, 255, 255, 255, 255, 255, 253, 187, + 206, 255, 255, 255, 255, 255, 255, 255, 255, 255, 208, 2, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 253, 0, 9, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 176, 0, 29, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 249, 191, 255, 255, + 255, 255, 250, 0, 0, 62, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 252, 28, 255, 255, 255, 255, 255, + 128, 0, 0, 78, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 32, 223, 255, 255, 255, 255, 246, 0, 0, + 0, 61, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 32, 14, 255, 255, 255, 255, 255, 64, 0, 0, 0, 26, + 255, 255, 255, 255, 255, 255, 255, 255, 251, 16, 2, 255, 255, 255, 255, 255, 242, 0, 0, 0, 0, 3, 175, 255, + 255, 255, 255, 255, 255, 213, 0, 0, 79, 255, 255, 255, 255, 254, 0, 0, 0, 0, 0, 0, 21, 156, 222, 254, + 237, 167, 48, 0, 0, 8, 255, 255, 255, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 191, 255, 255, 255, 255, 248, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 31, 255, 255, 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 255, 255, + 255, 255, 255, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 255, 255, + 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 255, 255, 80, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 225, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 255, 255, 255, 249, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 43, 255, 255, 255, 255, 255, 255, 226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 159, 255, + 255, 255, 255, 255, 255, 247, 0, 0, 0, 0, 1, 116, 32, 0, 0, 0, 0, 36, 140, 255, 255, 255, 255, 255, + 255, 255, 252, 0, 0, 0, 0, 0, 47, 255, 237, 187, 187, 205, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, + 32, 0, 0, 0, 0, 2, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 64, 0, 0, + 0, 0, 0, 47, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 80, 0, 0, 0, 0, 0, + 2, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 64, 0, 0, 0, 0, 0, 0, 47, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 253, 48, 0, 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 249, 16, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 255, 179, 0, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 250, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 255, 255, 255, 255, 255, 255, 235, 97, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 173, 239, 255, 255, 254, 237, 202, 134, 48, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 1, 107, 223, 237, 147, 0, 0, 4, 223, 255, 255, 255, 250, 16, 3, 239, 255, 255, + 255, 255, 251, 0, 207, 255, 255, 255, 255, 255, 246, 47, 255, 255, 255, 255, 255, 255, 181, 255, 255, 255, 255, 255, + 255, 254, 111, 255, 255, 255, 255, 255, 255, 247, 255, 255, 255, 255, 255, 255, 255, 95, 255, 255, 255, 255, 255, 255, + 226, 255, 255, 255, 255, 255, 255, 251, 12, 255, 255, 255, 255, 255, 255, 80, 62, 255, 255, 255, 255, 255, 176, 0, + 61, 255, 255, 255, 255, 161, 0, 0, 6, 173, 254, 217, 48, 0, + ], +}; + +/// NotoSans-SemiBold at 40 px: 46 glyphs, 12066 B of 4-bit coverage. +pub static L: Font = Font { + ascent: 43, + descent: 12, + cap: 28, + glyphs: &[ + Glyph { c: '0', adv: 23, x: 1, y: -28, w: 21, h: 28, off: 0 }, + Glyph { c: '1', adv: 23, x: 3, y: -28, w: 13, h: 28, off: 294 }, + Glyph { c: '2', adv: 23, x: 1, y: -28, w: 21, h: 28, off: 476 }, + Glyph { c: '3', adv: 23, x: 1, y: -28, w: 20, h: 28, off: 770 }, + Glyph { c: '4', adv: 23, x: 0, y: -28, w: 23, h: 28, off: 1050 }, + Glyph { c: '5', adv: 23, x: 2, y: -28, w: 19, h: 28, off: 1372 }, + Glyph { c: '6', adv: 23, x: 1, y: -28, w: 21, h: 28, off: 1638 }, + Glyph { c: '7', adv: 23, x: 1, y: -28, w: 21, h: 28, off: 1932 }, + Glyph { c: '8', adv: 23, x: 1, y: -28, w: 21, h: 28, off: 2226 }, + Glyph { c: '9', adv: 23, x: 1, y: -28, w: 21, h: 28, off: 2520 }, + Glyph { c: ':', adv: 11, x: 2, y: -22, w: 7, h: 22, off: 2814 }, + Glyph { c: '.', adv: 11, x: 2, y: -6, w: 7, h: 6, off: 2891 }, + Glyph { c: ' ', adv: 10, x: 0, y: 0, w: 0, h: 0, off: 2912 }, + Glyph { c: 'a', adv: 23, x: 1, y: -22, w: 20, h: 22, off: 2912 }, + Glyph { c: 'b', adv: 25, x: 3, y: -30, w: 20, h: 30, off: 3132 }, + Glyph { c: 'c', adv: 20, x: 2, y: -22, w: 17, h: 22, off: 3432 }, + Glyph { c: 'd', adv: 25, x: 2, y: -30, w: 20, h: 30, off: 3619 }, + Glyph { c: 'e', adv: 23, x: 2, y: -22, w: 20, h: 22, off: 3919 }, + Glyph { c: 'f', adv: 15, x: 0, y: -30, w: 17, h: 30, off: 4139 }, + Glyph { c: 'g', adv: 25, x: 2, y: -22, w: 20, h: 32, off: 4394 }, + Glyph { c: 'h', adv: 26, x: 3, y: -30, w: 20, h: 30, off: 4714 }, + Glyph { c: 'i', adv: 11, x: 2, y: -30, w: 7, h: 30, off: 5014 }, + Glyph { c: 'j', adv: 11, x: -3, y: -30, w: 12, h: 40, off: 5119 }, + Glyph { c: 'k', adv: 24, x: 3, y: -30, w: 21, h: 30, off: 5359 }, + Glyph { c: 'l', adv: 11, x: 3, y: -30, w: 6, h: 30, off: 5674 }, + Glyph { c: 'm', adv: 38, x: 3, y: -22, w: 33, h: 22, off: 5764 }, + Glyph { c: 'n', adv: 26, x: 3, y: -22, w: 20, h: 22, off: 6127 }, + Glyph { c: 'o', adv: 25, x: 2, y: -22, w: 21, h: 22, off: 6347 }, + Glyph { c: 'p', adv: 25, x: 3, y: -22, w: 20, h: 32, off: 6578 }, + Glyph { c: 'q', adv: 25, x: 2, y: -22, w: 20, h: 32, off: 6898 }, + Glyph { c: 'r', adv: 17, x: 3, y: -22, w: 14, h: 22, off: 7218 }, + Glyph { c: 's', adv: 20, x: 1, y: -22, w: 17, h: 22, off: 7372 }, + Glyph { c: 't', adv: 16, x: 0, y: -27, w: 16, h: 27, off: 7559 }, + Glyph { c: 'u', adv: 26, x: 2, y: -22, w: 21, h: 22, off: 7775 }, + Glyph { c: 'v', adv: 22, x: 0, y: -22, w: 22, h: 22, off: 8006 }, + Glyph { c: 'w', adv: 33, x: 0, y: -22, w: 33, h: 22, off: 8248 }, + Glyph { c: 'x', adv: 22, x: 0, y: -22, w: 22, h: 22, off: 8611 }, + Glyph { c: 'y', adv: 22, x: 0, y: -22, w: 22, h: 32, off: 8853 }, + Glyph { c: 'z', adv: 19, x: 1, y: -22, w: 17, h: 22, off: 9205 }, + Glyph { c: 'A', adv: 27, x: 0, y: -28, w: 27, h: 28, off: 9392 }, + Glyph { c: 'V', adv: 25, x: 0, y: -28, w: 26, h: 28, off: 9770 }, + Glyph { c: 'N', adv: 32, x: 3, y: -28, w: 25, h: 28, off: 10134 }, + Glyph { c: 'R', adv: 26, x: 3, y: -28, w: 23, h: 28, off: 10484 }, + Glyph { c: 'O', adv: 31, x: 2, y: -28, w: 28, h: 28, off: 10806 }, + Glyph { c: 'H', adv: 30, x: 3, y: -28, w: 24, h: 28, off: 11198 }, + Glyph { c: 'W', adv: 38, x: 0, y: -28, w: 38, h: 28, off: 11534 }, + ], + bits: &[ + 0, 0, 0, 90, 222, 253, 200, 32, 0, 0, 0, 0, 3, 207, 255, 255, 255, 255, 128, 0, 0, 0, 3, 239, + 255, 255, 255, 255, 255, 176, 0, 0, 1, 223, 255, 255, 255, 255, 255, 255, 144, 0, 0, 159, 255, 255, 113, 2, + 143, 255, 255, 48, 0, 31, 255, 255, 80, 0, 0, 143, 255, 251, 0, 6, 255, 255, 176, 0, 0, 1, 239, 255, + 241, 0, 175, 255, 246, 0, 0, 0, 9, 255, 255, 96, 13, 255, 255, 48, 0, 0, 0, 95, 255, 250, 1, 255, + 255, 240, 0, 0, 0, 3, 255, 255, 192, 63, 255, 253, 0, 0, 0, 0, 31, 255, 255, 4, 255, 255, 192, 0, + 0, 0, 0, 239, 255, 241, 95, 255, 251, 0, 0, 0, 0, 14, 255, 255, 37, 255, 255, 176, 0, 0, 0, 0, + 223, 255, 243, 95, 255, 251, 0, 0, 0, 0, 13, 255, 255, 52, 255, 255, 176, 0, 0, 0, 0, 239, 255, 242, + 79, 255, 252, 0, 0, 0, 0, 14, 255, 255, 34, 255, 255, 208, 0, 0, 0, 1, 255, 255, 240, 15, 255, 255, + 0, 0, 0, 0, 47, 255, 253, 0, 207, 255, 243, 0, 0, 0, 5, 255, 255, 176, 9, 255, 255, 96, 0, 0, + 0, 159, 255, 247, 0, 79, 255, 251, 0, 0, 0, 14, 255, 255, 48, 0, 223, 255, 245, 0, 0, 8, 255, 255, + 208, 0, 6, 255, 255, 246, 16, 40, 255, 255, 246, 0, 0, 12, 255, 255, 255, 255, 255, 255, 252, 0, 0, 0, + 45, 255, 255, 255, 255, 255, 253, 32, 0, 0, 0, 27, 255, 255, 255, 255, 251, 16, 0, 0, 0, 0, 4, 156, + 239, 236, 147, 0, 0, 0, 0, 0, 0, 4, 239, 255, 160, 0, 0, 6, 255, 255, 250, 0, 0, 9, 255, 255, + 255, 160, 0, 28, 255, 255, 255, 250, 0, 61, 255, 255, 255, 255, 160, 95, 255, 255, 239, 255, 250, 143, 255, 255, + 181, 255, 255, 172, 255, 255, 144, 95, 255, 250, 29, 254, 80, 5, 255, 255, 160, 60, 48, 0, 111, 255, 250, 0, + 0, 0, 6, 255, 255, 160, 0, 0, 0, 111, 255, 250, 0, 0, 0, 6, 255, 255, 160, 0, 0, 0, 111, 255, + 250, 0, 0, 0, 6, 255, 255, 160, 0, 0, 0, 111, 255, 250, 0, 0, 0, 6, 255, 255, 160, 0, 0, 0, + 111, 255, 250, 0, 0, 0, 6, 255, 255, 160, 0, 0, 0, 111, 255, 250, 0, 0, 0, 6, 255, 255, 160, 0, + 0, 0, 111, 255, 250, 0, 0, 0, 6, 255, 255, 160, 0, 0, 0, 111, 255, 250, 0, 0, 0, 6, 255, 255, + 160, 0, 0, 0, 111, 255, 250, 0, 0, 0, 6, 255, 255, 160, 0, 0, 0, 111, 255, 250, 0, 0, 3, 139, + 222, 254, 201, 64, 0, 0, 0, 0, 76, 255, 255, 255, 255, 255, 195, 0, 0, 1, 175, 255, 255, 255, 255, 255, + 255, 244, 0, 1, 223, 255, 255, 255, 255, 255, 255, 255, 226, 0, 6, 255, 255, 215, 32, 2, 159, 255, 255, 160, + 0, 9, 255, 129, 0, 0, 0, 111, 255, 255, 16, 0, 11, 64, 0, 0, 0, 0, 239, 255, 243, 0, 0, 0, + 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, + 0, 14, 255, 255, 32, 0, 0, 0, 0, 0, 0, 5, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 207, 255, + 247, 0, 0, 0, 0, 0, 0, 0, 127, 255, 254, 16, 0, 0, 0, 0, 0, 0, 95, 255, 255, 96, 0, 0, + 0, 0, 0, 0, 62, 255, 255, 160, 0, 0, 0, 0, 0, 0, 62, 255, 255, 192, 0, 0, 0, 0, 0, 0, + 46, 255, 255, 193, 0, 0, 0, 0, 0, 0, 46, 255, 255, 209, 0, 0, 0, 0, 0, 0, 45, 255, 255, 193, + 0, 0, 0, 0, 0, 0, 45, 255, 255, 193, 0, 0, 0, 0, 0, 0, 45, 255, 255, 177, 0, 0, 0, 0, + 0, 0, 45, 255, 255, 177, 0, 0, 0, 0, 0, 0, 45, 255, 255, 160, 0, 0, 0, 0, 0, 0, 45, 255, + 255, 160, 0, 0, 0, 0, 0, 0, 45, 255, 255, 254, 238, 238, 238, 238, 238, 238, 68, 255, 255, 255, 255, 255, + 255, 255, 255, 255, 244, 79, 255, 255, 255, 255, 255, 255, 255, 255, 255, 68, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 244, 0, 0, 38, 173, 239, 254, 201, 81, 0, 0, 0, 91, 255, 255, 255, 255, 255, 254, 96, 0, 27, 255, + 255, 255, 255, 255, 255, 255, 249, 0, 10, 255, 255, 255, 255, 255, 255, 255, 255, 96, 1, 223, 251, 98, 16, 2, + 143, 255, 255, 208, 0, 58, 48, 0, 0, 0, 6, 255, 255, 241, 0, 0, 0, 0, 0, 0, 0, 239, 255, 242, + 0, 0, 0, 0, 0, 0, 0, 239, 255, 241, 0, 0, 0, 0, 0, 0, 3, 255, 255, 176, 0, 0, 0, 0, + 0, 0, 28, 255, 255, 64, 0, 0, 0, 0, 18, 72, 239, 255, 246, 0, 0, 0, 15, 255, 255, 255, 255, 252, + 64, 0, 0, 0, 15, 255, 255, 255, 250, 64, 0, 0, 0, 0, 15, 255, 255, 255, 255, 234, 64, 0, 0, 0, + 14, 238, 255, 255, 255, 255, 251, 16, 0, 0, 0, 0, 1, 54, 207, 255, 255, 176, 0, 0, 0, 0, 0, 0, + 7, 255, 255, 246, 0, 0, 0, 0, 0, 0, 0, 175, 255, 252, 0, 0, 0, 0, 0, 0, 0, 111, 255, 255, + 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 0, 0, 0, 0, 0, 0, 0, 127, 255, 255, 0, 0, 0, 0, + 0, 0, 0, 207, 255, 252, 71, 16, 0, 0, 0, 0, 8, 255, 255, 247, 95, 251, 116, 16, 0, 37, 191, 255, + 255, 225, 95, 255, 255, 255, 255, 255, 255, 255, 255, 80, 95, 255, 255, 255, 255, 255, 255, 255, 246, 0, 61, 255, + 255, 255, 255, 255, 255, 251, 32, 0, 0, 54, 172, 238, 255, 236, 167, 32, 0, 0, 0, 0, 0, 0, 0, 0, + 11, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 3, 255, + 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 207, 255, 255, 247, 0, 0, 0, 0, 0, 0, 0, 143, 255, 255, + 255, 112, 0, 0, 0, 0, 0, 0, 79, 255, 207, 255, 247, 0, 0, 0, 0, 0, 0, 29, 255, 230, 255, 255, + 112, 0, 0, 0, 0, 0, 10, 255, 247, 111, 255, 247, 0, 0, 0, 0, 0, 5, 255, 252, 7, 255, 255, 112, + 0, 0, 0, 0, 2, 239, 255, 48, 127, 255, 247, 0, 0, 0, 0, 0, 191, 255, 112, 8, 255, 255, 112, 0, + 0, 0, 0, 111, 255, 192, 0, 143, 255, 247, 0, 0, 0, 0, 46, 255, 226, 0, 8, 255, 255, 112, 0, 0, + 0, 12, 255, 246, 0, 0, 143, 255, 247, 0, 0, 0, 8, 255, 251, 0, 0, 8, 255, 255, 112, 0, 0, 3, + 255, 254, 32, 0, 0, 143, 255, 247, 0, 0, 1, 223, 255, 96, 0, 0, 8, 255, 255, 112, 0, 0, 159, 255, + 160, 0, 0, 0, 143, 255, 247, 0, 0, 63, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 36, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 255, 242, 79, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 35, 238, 238, 238, 238, + 238, 238, 255, 255, 255, 238, 226, 0, 0, 0, 0, 0, 0, 8, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, + 0, 143, 255, 247, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, + 143, 255, 247, 0, 0, 0, 0, 0, 0, 0, 0, 8, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 143, + 255, 247, 0, 0, 3, 255, 255, 255, 255, 255, 255, 255, 208, 0, 79, 255, 255, 255, 255, 255, 255, 253, 0, 5, + 255, 255, 255, 255, 255, 255, 255, 208, 0, 127, 255, 255, 238, 238, 238, 238, 237, 0, 8, 255, 255, 48, 0, 0, + 0, 0, 0, 0, 159, 255, 242, 0, 0, 0, 0, 0, 0, 10, 255, 255, 16, 0, 0, 0, 0, 0, 0, 191, + 255, 224, 0, 0, 0, 0, 0, 0, 13, 255, 253, 0, 0, 0, 0, 0, 0, 0, 239, 255, 192, 0, 0, 0, + 0, 0, 0, 15, 255, 254, 189, 255, 236, 165, 16, 0, 1, 255, 255, 255, 255, 255, 255, 254, 80, 0, 47, 255, + 255, 255, 255, 255, 255, 255, 144, 1, 207, 255, 255, 255, 255, 255, 255, 255, 96, 0, 104, 82, 16, 2, 108, 255, + 255, 254, 16, 0, 0, 0, 0, 0, 8, 255, 255, 247, 0, 0, 0, 0, 0, 0, 12, 255, 255, 160, 0, 0, + 0, 0, 0, 0, 127, 255, 252, 0, 0, 0, 0, 0, 0, 5, 255, 255, 208, 0, 0, 0, 0, 0, 0, 95, + 255, 252, 0, 0, 0, 0, 0, 0, 7, 255, 255, 160, 0, 0, 0, 0, 0, 0, 223, 255, 246, 115, 0, 0, + 0, 0, 0, 159, 255, 255, 45, 253, 133, 32, 0, 38, 207, 255, 255, 128, 223, 255, 255, 255, 255, 255, 255, 255, + 193, 13, 255, 255, 255, 255, 255, 255, 255, 193, 0, 159, 255, 255, 255, 255, 255, 254, 112, 0, 0, 21, 155, 222, + 254, 220, 149, 0, 0, 0, 0, 0, 0, 0, 21, 156, 222, 254, 220, 48, 0, 0, 0, 1, 142, 255, 255, 255, + 255, 244, 0, 0, 0, 4, 239, 255, 255, 255, 255, 255, 64, 0, 0, 5, 255, 255, 255, 255, 255, 255, 244, 0, + 0, 3, 255, 255, 254, 132, 32, 0, 19, 16, 0, 0, 223, 255, 248, 16, 0, 0, 0, 0, 0, 0, 127, 255, + 247, 0, 0, 0, 0, 0, 0, 0, 13, 255, 251, 0, 0, 0, 0, 0, 0, 0, 4, 255, 255, 80, 0, 0, + 0, 0, 0, 0, 0, 143, 255, 225, 2, 140, 222, 218, 80, 0, 0, 11, 255, 251, 7, 255, 255, 255, 255, 194, + 0, 0, 239, 255, 152, 255, 255, 255, 255, 255, 227, 0, 31, 255, 253, 255, 255, 255, 255, 255, 255, 209, 3, 255, + 255, 255, 249, 49, 20, 191, 255, 255, 112, 63, 255, 255, 228, 0, 0, 0, 175, 255, 253, 4, 255, 255, 246, 0, + 0, 0, 2, 255, 255, 241, 79, 255, 254, 0, 0, 0, 0, 12, 255, 255, 67, 255, 255, 192, 0, 0, 0, 0, + 175, 255, 245, 47, 255, 253, 0, 0, 0, 0, 9, 255, 255, 80, 255, 255, 241, 0, 0, 0, 0, 175, 255, 244, + 11, 255, 255, 80, 0, 0, 0, 13, 255, 255, 32, 127, 255, 252, 0, 0, 0, 3, 255, 255, 208, 1, 239, 255, + 248, 0, 0, 1, 207, 255, 249, 0, 7, 255, 255, 250, 48, 4, 207, 255, 255, 32, 0, 12, 255, 255, 255, 255, + 255, 255, 255, 112, 0, 0, 28, 255, 255, 255, 255, 255, 255, 144, 0, 0, 0, 24, 255, 255, 255, 255, 254, 96, + 0, 0, 0, 0, 2, 123, 239, 237, 166, 16, 0, 0, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, 90, 255, + 255, 255, 255, 255, 255, 255, 255, 255, 245, 175, 255, 255, 255, 255, 255, 255, 255, 255, 255, 90, 238, 238, 238, 238, + 238, 238, 238, 255, 255, 242, 0, 0, 0, 0, 0, 0, 0, 95, 255, 250, 0, 0, 0, 0, 0, 0, 0, 12, + 255, 255, 64, 0, 0, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, 0, 0, 0, 191, 255, 245, 0, + 0, 0, 0, 0, 0, 0, 63, 255, 253, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 112, 0, 0, 0, 0, + 0, 0, 2, 255, 255, 225, 0, 0, 0, 0, 0, 0, 0, 159, 255, 248, 0, 0, 0, 0, 0, 0, 0, 30, + 255, 255, 32, 0, 0, 0, 0, 0, 0, 7, 255, 255, 160, 0, 0, 0, 0, 0, 0, 1, 239, 255, 243, 0, + 0, 0, 0, 0, 0, 0, 111, 255, 252, 0, 0, 0, 0, 0, 0, 0, 13, 255, 255, 80, 0, 0, 0, 0, + 0, 0, 5, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 207, 255, 247, 0, 0, 0, 0, 0, 0, 0, 79, + 255, 254, 16, 0, 0, 0, 0, 0, 0, 11, 255, 255, 128, 0, 0, 0, 0, 0, 0, 3, 255, 255, 242, 0, + 0, 0, 0, 0, 0, 0, 175, 255, 250, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 48, 0, 0, 0, 0, + 0, 0, 9, 255, 255, 176, 0, 0, 0, 0, 0, 0, 1, 239, 255, 245, 0, 0, 0, 0, 0, 0, 0, 143, + 255, 253, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 1, 106, 222, 254, + 217, 97, 0, 0, 0, 0, 8, 239, 255, 255, 255, 255, 231, 0, 0, 0, 27, 255, 255, 255, 255, 255, 255, 249, + 0, 0, 10, 255, 255, 255, 255, 255, 255, 255, 247, 0, 2, 255, 255, 252, 81, 1, 109, 255, 255, 224, 0, 111, + 255, 252, 0, 0, 0, 30, 255, 255, 48, 7, 255, 255, 112, 0, 0, 0, 159, 255, 244, 0, 111, 255, 246, 0, + 0, 0, 8, 255, 255, 64, 3, 255, 255, 160, 0, 0, 0, 207, 255, 241, 0, 13, 255, 255, 96, 0, 0, 127, + 255, 249, 0, 0, 79, 255, 255, 161, 1, 175, 255, 253, 16, 0, 0, 95, 255, 255, 234, 255, 255, 252, 16, 0, + 0, 0, 78, 255, 255, 255, 255, 248, 0, 0, 0, 0, 0, 63, 255, 255, 255, 248, 0, 0, 0, 0, 0, 143, + 255, 255, 255, 255, 253, 64, 0, 0, 1, 207, 255, 255, 169, 255, 255, 255, 128, 0, 1, 223, 255, 252, 48, 2, + 175, 255, 255, 144, 0, 159, 255, 250, 0, 0, 0, 78, 255, 255, 80, 30, 255, 253, 0, 0, 0, 0, 63, 255, + 252, 4, 255, 255, 128, 0, 0, 0, 0, 191, 255, 241, 111, 255, 246, 0, 0, 0, 0, 9, 255, 255, 53, 255, + 255, 144, 0, 0, 0, 0, 207, 255, 242, 63, 255, 255, 48, 0, 0, 0, 95, 255, 254, 0, 223, 255, 254, 114, + 0, 3, 159, 255, 255, 144, 5, 255, 255, 255, 255, 255, 255, 255, 255, 209, 0, 7, 255, 255, 255, 255, 255, 255, + 255, 210, 0, 0, 4, 223, 255, 255, 255, 255, 255, 145, 0, 0, 0, 0, 72, 189, 239, 237, 166, 32, 0, 0, + 0, 0, 2, 123, 222, 253, 182, 16, 0, 0, 0, 0, 25, 255, 255, 255, 255, 254, 112, 0, 0, 0, 29, 255, + 255, 255, 255, 255, 255, 177, 0, 0, 12, 255, 255, 255, 255, 255, 255, 255, 160, 0, 6, 255, 255, 250, 48, 2, + 159, 255, 255, 96, 0, 223, 255, 247, 0, 0, 0, 95, 255, 254, 0, 47, 255, 253, 0, 0, 0, 0, 159, 255, + 245, 5, 255, 255, 144, 0, 0, 0, 3, 255, 255, 160, 111, 255, 248, 0, 0, 0, 0, 14, 255, 253, 6, 255, + 255, 144, 0, 0, 0, 0, 239, 255, 241, 95, 255, 252, 0, 0, 0, 0, 63, 255, 255, 34, 255, 255, 245, 0, + 0, 0, 45, 255, 255, 243, 12, 255, 255, 247, 32, 2, 126, 255, 255, 255, 48, 79, 255, 255, 255, 255, 255, 255, + 239, 255, 242, 0, 143, 255, 255, 255, 255, 255, 138, 255, 255, 16, 0, 127, 255, 255, 255, 255, 112, 207, 255, 240, + 0, 0, 23, 206, 254, 217, 48, 14, 255, 253, 0, 0, 0, 0, 0, 0, 0, 2, 255, 255, 160, 0, 0, 0, + 0, 0, 0, 0, 111, 255, 247, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 32, 0, 0, 0, 0, 0, 0, + 4, 255, 255, 192, 0, 0, 0, 0, 0, 0, 2, 239, 255, 245, 0, 0, 0, 0, 0, 0, 4, 223, 255, 252, + 0, 0, 2, 49, 0, 2, 107, 255, 255, 254, 32, 0, 0, 111, 255, 255, 255, 255, 255, 254, 64, 0, 0, 6, + 255, 255, 255, 255, 255, 253, 48, 0, 0, 0, 111, 255, 255, 255, 255, 231, 16, 0, 0, 0, 4, 222, 255, 237, + 201, 81, 0, 0, 0, 0, 6, 222, 214, 3, 255, 255, 244, 127, 255, 255, 135, 255, 255, 248, 63, 255, 255, 48, + 92, 237, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 206, 213, 3, 255, 255, 244, 127, 255, 255, + 135, 255, 255, 248, 63, 255, 255, 64, 93, 237, 80, 5, 206, 213, 3, 255, 255, 244, 127, 255, 255, 135, 255, 255, + 248, 63, 255, 255, 64, 93, 237, 80, 0, 0, 1, 89, 205, 239, 236, 148, 0, 0, 0, 3, 175, 255, 255, 255, + 255, 255, 177, 0, 0, 12, 255, 255, 255, 255, 255, 255, 252, 16, 0, 6, 255, 255, 255, 255, 255, 255, 255, 128, + 0, 0, 239, 215, 49, 1, 110, 255, 255, 224, 0, 0, 83, 0, 0, 0, 3, 255, 255, 243, 0, 0, 0, 0, + 0, 0, 0, 207, 255, 245, 0, 0, 0, 0, 0, 0, 0, 175, 255, 246, 0, 0, 0, 0, 0, 0, 0, 175, + 255, 246, 0, 0, 21, 156, 222, 255, 255, 255, 255, 246, 0, 8, 239, 255, 255, 255, 255, 255, 255, 246, 1, 207, + 255, 255, 255, 255, 255, 255, 255, 246, 9, 255, 255, 250, 82, 0, 0, 175, 255, 246, 30, 255, 255, 112, 0, 0, + 0, 175, 255, 246, 63, 255, 255, 0, 0, 0, 0, 191, 255, 246, 79, 255, 254, 0, 0, 0, 1, 239, 255, 246, + 79, 255, 255, 32, 0, 0, 10, 255, 255, 246, 31, 255, 255, 212, 16, 21, 207, 255, 255, 246, 11, 255, 255, 255, + 255, 255, 255, 207, 255, 246, 3, 255, 255, 255, 255, 255, 251, 13, 255, 246, 0, 94, 255, 255, 255, 255, 145, 9, + 255, 246, 0, 1, 124, 239, 237, 148, 0, 5, 255, 246, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, + 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, + 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 242, 1, + 108, 223, 235, 113, 0, 0, 223, 255, 242, 78, 255, 255, 255, 254, 80, 0, 223, 255, 244, 255, 255, 255, 255, 255, + 245, 0, 223, 255, 254, 255, 255, 255, 255, 255, 255, 32, 223, 255, 255, 248, 32, 2, 159, 255, 255, 176, 223, 255, + 255, 96, 0, 0, 8, 255, 255, 242, 223, 255, 253, 0, 0, 0, 1, 239, 255, 247, 223, 255, 248, 0, 0, 0, + 0, 159, 255, 250, 223, 255, 245, 0, 0, 0, 0, 111, 255, 253, 223, 255, 244, 0, 0, 0, 0, 79, 255, 254, + 223, 255, 243, 0, 0, 0, 0, 63, 255, 255, 223, 255, 243, 0, 0, 0, 0, 63, 255, 255, 223, 255, 244, 0, + 0, 0, 0, 79, 255, 254, 223, 255, 246, 0, 0, 0, 0, 111, 255, 253, 223, 255, 249, 0, 0, 0, 0, 175, + 255, 250, 223, 255, 253, 0, 0, 0, 1, 239, 255, 247, 223, 255, 255, 112, 0, 0, 9, 255, 255, 242, 223, 255, + 255, 249, 48, 2, 159, 255, 255, 176, 223, 255, 255, 255, 255, 255, 255, 255, 255, 32, 223, 255, 255, 255, 255, 255, + 255, 255, 245, 0, 223, 255, 148, 223, 255, 255, 255, 254, 80, 0, 223, 255, 32, 5, 173, 239, 235, 113, 0, 0, + 0, 0, 1, 90, 206, 254, 219, 131, 0, 0, 7, 239, 255, 255, 255, 255, 250, 0, 27, 255, 255, 255, 255, 255, + 255, 96, 11, 255, 255, 255, 255, 255, 255, 225, 6, 255, 255, 252, 81, 0, 55, 201, 1, 239, 255, 251, 16, 0, + 0, 0, 0, 95, 255, 255, 32, 0, 0, 0, 0, 9, 255, 255, 176, 0, 0, 0, 0, 0, 207, 255, 247, 0, + 0, 0, 0, 0, 14, 255, 255, 64, 0, 0, 0, 0, 0, 255, 255, 243, 0, 0, 0, 0, 0, 15, 255, 255, + 48, 0, 0, 0, 0, 0, 239, 255, 244, 0, 0, 0, 0, 0, 13, 255, 255, 96, 0, 0, 0, 0, 0, 175, + 255, 250, 0, 0, 0, 0, 0, 6, 255, 255, 242, 0, 0, 0, 0, 0, 31, 255, 255, 176, 0, 0, 0, 2, + 32, 143, 255, 255, 197, 16, 2, 90, 246, 1, 223, 255, 255, 255, 255, 255, 255, 96, 2, 223, 255, 255, 255, 255, + 255, 246, 0, 1, 159, 255, 255, 255, 255, 254, 64, 0, 0, 39, 189, 255, 237, 166, 16, 0, 0, 0, 0, 0, + 0, 0, 63, 255, 254, 0, 0, 0, 0, 0, 0, 0, 63, 255, 254, 0, 0, 0, 0, 0, 0, 0, 63, 255, + 254, 0, 0, 0, 0, 0, 0, 0, 63, 255, 254, 0, 0, 0, 0, 0, 0, 0, 63, 255, 254, 0, 0, 0, + 0, 0, 0, 0, 63, 255, 254, 0, 0, 0, 0, 0, 0, 0, 63, 255, 254, 0, 0, 0, 0, 0, 0, 0, + 63, 255, 254, 0, 0, 22, 189, 254, 199, 16, 47, 255, 254, 0, 4, 239, 255, 255, 255, 229, 31, 255, 254, 0, + 95, 255, 255, 255, 255, 255, 111, 255, 254, 2, 255, 255, 255, 255, 255, 255, 255, 255, 254, 11, 255, 255, 251, 48, + 2, 143, 255, 255, 254, 47, 255, 255, 176, 0, 0, 4, 255, 255, 254, 127, 255, 255, 32, 0, 0, 0, 191, 255, + 254, 175, 255, 250, 0, 0, 0, 0, 95, 255, 254, 223, 255, 247, 0, 0, 0, 0, 47, 255, 254, 239, 255, 244, + 0, 0, 0, 0, 15, 255, 254, 255, 255, 243, 0, 0, 0, 0, 14, 255, 254, 255, 255, 243, 0, 0, 0, 0, + 14, 255, 254, 239, 255, 244, 0, 0, 0, 0, 15, 255, 254, 223, 255, 246, 0, 0, 0, 0, 31, 255, 254, 175, + 255, 249, 0, 0, 0, 0, 79, 255, 254, 127, 255, 254, 16, 0, 0, 0, 159, 255, 254, 47, 255, 255, 144, 0, + 0, 3, 255, 255, 254, 11, 255, 255, 250, 48, 2, 126, 255, 255, 254, 2, 255, 255, 255, 255, 255, 255, 255, 255, + 254, 0, 111, 255, 255, 255, 255, 255, 93, 255, 254, 0, 5, 239, 255, 255, 255, 229, 8, 255, 254, 0, 0, 23, + 206, 253, 199, 16, 3, 255, 254, 0, 0, 1, 123, 222, 237, 183, 32, 0, 0, 0, 0, 142, 255, 255, 255, 255, + 249, 0, 0, 0, 27, 255, 255, 255, 255, 255, 255, 193, 0, 0, 191, 255, 255, 255, 255, 255, 255, 251, 0, 7, + 255, 255, 248, 48, 2, 126, 255, 255, 80, 14, 255, 255, 80, 0, 0, 4, 255, 255, 192, 95, 255, 251, 0, 0, + 0, 0, 191, 255, 241, 159, 255, 246, 0, 0, 0, 0, 127, 255, 245, 207, 255, 255, 238, 238, 238, 238, 255, 255, + 246, 223, 255, 255, 255, 255, 255, 255, 255, 255, 247, 239, 255, 255, 255, 255, 255, 255, 255, 255, 247, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 247, 239, 255, 244, 0, 0, 0, 0, 0, 0, 0, 207, 255, 246, 0, 0, 0, 0, + 0, 0, 0, 175, 255, 250, 0, 0, 0, 0, 0, 0, 0, 95, 255, 255, 32, 0, 0, 0, 0, 0, 0, 30, + 255, 255, 193, 0, 0, 0, 0, 2, 32, 6, 255, 255, 254, 114, 0, 1, 71, 207, 80, 0, 175, 255, 255, 255, + 255, 255, 255, 255, 80, 0, 26, 255, 255, 255, 255, 255, 255, 255, 80, 0, 0, 110, 255, 255, 255, 255, 255, 253, + 48, 0, 0, 0, 89, 206, 255, 237, 184, 48, 0, 0, 0, 0, 4, 156, 239, 237, 184, 32, 0, 0, 27, 255, + 255, 255, 255, 245, 0, 0, 11, 255, 255, 255, 255, 254, 16, 0, 4, 255, 255, 255, 255, 255, 160, 0, 0, 159, + 255, 254, 81, 1, 66, 0, 0, 11, 255, 255, 112, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, + 12, 255, 255, 64, 0, 0, 0, 0, 75, 255, 255, 255, 255, 255, 112, 2, 223, 255, 255, 255, 255, 255, 247, 0, + 79, 255, 255, 255, 255, 255, 255, 112, 4, 238, 239, 255, 255, 238, 238, 231, 0, 0, 0, 207, 255, 244, 0, 0, + 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 12, 255, 255, 64, + 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 207, 255, + 244, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 12, + 255, 255, 64, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, + 0, 207, 255, 244, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, + 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, + 0, 0, 0, 0, 23, 189, 254, 199, 32, 6, 255, 254, 0, 4, 223, 255, 255, 255, 231, 9, 255, 254, 0, 95, + 255, 255, 255, 255, 255, 139, 255, 254, 2, 239, 255, 255, 255, 255, 255, 255, 255, 254, 10, 255, 255, 250, 48, 2, + 143, 255, 255, 254, 31, 255, 255, 160, 0, 0, 4, 255, 255, 254, 111, 255, 254, 16, 0, 0, 0, 175, 255, 254, + 175, 255, 250, 0, 0, 0, 0, 79, 255, 254, 223, 255, 246, 0, 0, 0, 0, 31, 255, 254, 239, 255, 244, 0, + 0, 0, 0, 14, 255, 254, 255, 255, 243, 0, 0, 0, 0, 13, 255, 254, 255, 255, 243, 0, 0, 0, 0, 13, + 255, 254, 239, 255, 244, 0, 0, 0, 0, 14, 255, 254, 223, 255, 246, 0, 0, 0, 0, 15, 255, 254, 175, 255, + 249, 0, 0, 0, 0, 47, 255, 254, 127, 255, 254, 16, 0, 0, 0, 127, 255, 254, 47, 255, 255, 144, 0, 0, + 2, 239, 255, 254, 11, 255, 255, 250, 48, 2, 110, 255, 255, 254, 2, 255, 255, 255, 255, 255, 255, 255, 255, 254, + 0, 111, 255, 255, 255, 255, 255, 95, 255, 254, 0, 5, 239, 255, 255, 255, 229, 47, 255, 254, 0, 0, 23, 206, + 254, 199, 16, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 63, + 255, 253, 0, 0, 0, 0, 0, 0, 0, 111, 255, 251, 0, 0, 0, 0, 0, 0, 0, 207, 255, 248, 7, 80, + 0, 0, 0, 0, 8, 255, 255, 244, 9, 254, 149, 49, 0, 20, 191, 255, 255, 192, 9, 255, 255, 255, 255, 255, + 255, 255, 255, 64, 9, 255, 255, 255, 255, 255, 255, 255, 246, 0, 8, 255, 255, 255, 255, 255, 255, 252, 48, 0, + 0, 38, 155, 222, 255, 237, 184, 64, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, + 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, + 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 242, 1, 107, 223, + 237, 164, 0, 0, 223, 255, 242, 77, 255, 255, 255, 255, 194, 0, 223, 255, 244, 255, 255, 255, 255, 255, 253, 16, + 223, 255, 254, 255, 255, 255, 255, 255, 255, 144, 223, 255, 255, 251, 65, 1, 127, 255, 255, 241, 223, 255, 255, 160, + 0, 0, 5, 255, 255, 244, 223, 255, 254, 16, 0, 0, 0, 223, 255, 246, 223, 255, 250, 0, 0, 0, 0, 175, + 255, 247, 223, 255, 247, 0, 0, 0, 0, 159, 255, 248, 223, 255, 245, 0, 0, 0, 0, 143, 255, 248, 223, 255, + 244, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, + 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, + 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, + 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, + 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 4, 206, + 215, 0, 239, 255, 244, 31, 255, 255, 112, 239, 255, 244, 4, 206, 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 13, 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, 13, + 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, + 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, 13, 255, 255, 48, 223, 255, 243, + 13, 255, 255, 48, 223, 255, 243, 0, 0, 0, 76, 237, 112, 0, 0, 0, 239, 255, 244, 0, 0, 1, 255, 255, + 247, 0, 0, 0, 239, 255, 244, 0, 0, 0, 76, 237, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 223, 255, 243, 0, 0, 0, 239, 255, 242, 0, 0, 2, 255, 255, + 241, 19, 0, 60, 255, 255, 208, 47, 255, 255, 255, 255, 112, 47, 255, 255, 255, 253, 16, 47, 255, 255, 255, 227, + 0, 27, 222, 254, 183, 16, 0, 207, 255, 244, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, + 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 0, + 0, 207, 255, 244, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 207, 255, + 244, 0, 0, 0, 0, 0, 0, 0, 12, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, + 0, 6, 255, 255, 245, 12, 255, 255, 64, 0, 0, 5, 255, 255, 246, 0, 207, 255, 244, 0, 0, 4, 255, 255, + 248, 0, 12, 255, 255, 64, 0, 3, 239, 255, 249, 0, 0, 207, 255, 244, 0, 2, 239, 255, 250, 0, 0, 12, + 255, 255, 64, 2, 223, 255, 251, 0, 0, 0, 207, 255, 243, 1, 207, 255, 252, 16, 0, 0, 12, 255, 255, 48, + 191, 255, 253, 16, 0, 0, 0, 207, 255, 242, 159, 255, 254, 32, 0, 0, 0, 12, 255, 255, 111, 255, 255, 80, + 0, 0, 0, 0, 207, 255, 254, 255, 255, 252, 0, 0, 0, 0, 12, 255, 255, 255, 255, 255, 249, 0, 0, 0, + 0, 207, 255, 255, 253, 255, 255, 245, 0, 0, 0, 12, 255, 255, 250, 25, 255, 255, 226, 0, 0, 0, 207, 255, + 248, 0, 29, 255, 255, 192, 0, 0, 12, 255, 255, 64, 0, 63, 255, 255, 128, 0, 0, 207, 255, 244, 0, 0, + 127, 255, 255, 64, 0, 12, 255, 255, 64, 0, 0, 191, 255, 254, 32, 0, 207, 255, 244, 0, 0, 1, 239, 255, + 251, 0, 12, 255, 255, 64, 0, 0, 5, 255, 255, 248, 0, 207, 255, 244, 0, 0, 0, 9, 255, 255, 244, 12, + 255, 255, 64, 0, 0, 0, 29, 255, 255, 225, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, + 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, + 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, + 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, 243, 223, 255, + 243, 223, 255, 243, 223, 255, 48, 2, 124, 239, 236, 131, 0, 0, 5, 173, 238, 218, 96, 0, 13, 255, 246, 7, + 255, 255, 255, 255, 248, 0, 60, 255, 255, 255, 255, 211, 0, 223, 255, 168, 255, 255, 255, 255, 255, 247, 62, 255, + 255, 255, 255, 255, 225, 13, 255, 255, 255, 255, 255, 255, 255, 255, 254, 255, 255, 255, 255, 255, 255, 144, 223, 255, + 255, 249, 32, 3, 207, 255, 255, 255, 230, 16, 22, 239, 255, 254, 13, 255, 255, 247, 0, 0, 1, 239, 255, 255, + 226, 0, 0, 5, 255, 255, 243, 223, 255, 254, 0, 0, 0, 9, 255, 255, 248, 0, 0, 0, 14, 255, 255, 93, + 255, 255, 160, 0, 0, 0, 111, 255, 255, 32, 0, 0, 0, 191, 255, 246, 223, 255, 246, 0, 0, 0, 5, 255, + 255, 224, 0, 0, 0, 10, 255, 255, 109, 255, 255, 64, 0, 0, 0, 79, 255, 253, 0, 0, 0, 0, 175, 255, + 246, 223, 255, 244, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 10, 255, 255, 109, 255, 255, 48, 0, 0, 0, + 79, 255, 252, 0, 0, 0, 0, 175, 255, 246, 223, 255, 243, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 10, + 255, 255, 109, 255, 255, 48, 0, 0, 0, 79, 255, 252, 0, 0, 0, 0, 175, 255, 246, 223, 255, 243, 0, 0, + 0, 4, 255, 255, 192, 0, 0, 0, 10, 255, 255, 109, 255, 255, 48, 0, 0, 0, 79, 255, 252, 0, 0, 0, + 0, 175, 255, 246, 223, 255, 243, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 10, 255, 255, 109, 255, 255, 48, + 0, 0, 0, 79, 255, 252, 0, 0, 0, 0, 175, 255, 246, 223, 255, 243, 0, 0, 0, 4, 255, 255, 192, 0, + 0, 0, 10, 255, 255, 109, 255, 255, 48, 0, 0, 0, 79, 255, 252, 0, 0, 0, 0, 175, 255, 246, 223, 255, + 243, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 10, 255, 255, 109, 255, 255, 48, 0, 0, 0, 79, 255, 252, + 0, 0, 0, 0, 175, 255, 246, 223, 255, 48, 1, 107, 223, 237, 165, 0, 0, 223, 255, 96, 110, 255, 255, 255, + 255, 194, 0, 223, 255, 150, 255, 255, 255, 255, 255, 253, 16, 223, 255, 255, 255, 255, 255, 255, 255, 255, 144, 223, + 255, 255, 251, 65, 1, 110, 255, 255, 241, 223, 255, 255, 144, 0, 0, 5, 255, 255, 244, 223, 255, 254, 16, 0, + 0, 0, 223, 255, 246, 223, 255, 250, 0, 0, 0, 0, 159, 255, 247, 223, 255, 247, 0, 0, 0, 0, 143, 255, + 248, 223, 255, 245, 0, 0, 0, 0, 143, 255, 248, 223, 255, 244, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, + 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, + 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, + 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, + 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, + 248, 223, 255, 243, 0, 0, 0, 0, 143, 255, 248, 0, 0, 1, 106, 222, 254, 201, 64, 0, 0, 0, 0, 7, + 239, 255, 255, 255, 255, 195, 0, 0, 0, 27, 255, 255, 255, 255, 255, 255, 246, 0, 0, 11, 255, 255, 255, 255, + 255, 255, 255, 245, 0, 7, 255, 255, 251, 64, 1, 109, 255, 255, 226, 0, 239, 255, 250, 0, 0, 0, 45, 255, + 255, 144, 95, 255, 254, 16, 0, 0, 0, 111, 255, 254, 25, 255, 255, 160, 0, 0, 0, 0, 239, 255, 244, 207, + 255, 246, 0, 0, 0, 0, 11, 255, 255, 126, 255, 255, 64, 0, 0, 0, 0, 159, 255, 249, 255, 255, 243, 0, + 0, 0, 0, 8, 255, 255, 175, 255, 255, 48, 0, 0, 0, 0, 143, 255, 250, 239, 255, 244, 0, 0, 0, 0, + 9, 255, 255, 156, 255, 255, 112, 0, 0, 0, 0, 191, 255, 247, 159, 255, 250, 0, 0, 0, 0, 30, 255, 255, + 68, 255, 255, 242, 0, 0, 0, 6, 255, 255, 225, 13, 255, 255, 160, 0, 0, 2, 239, 255, 249, 0, 95, 255, + 255, 180, 0, 22, 239, 255, 254, 32, 0, 159, 255, 255, 255, 255, 255, 255, 255, 80, 0, 0, 175, 255, 255, 255, + 255, 255, 255, 96, 0, 0, 0, 110, 255, 255, 255, 255, 252, 64, 0, 0, 0, 0, 22, 173, 239, 236, 148, 0, + 0, 0, 223, 255, 80, 1, 124, 223, 236, 113, 0, 0, 223, 255, 144, 78, 255, 255, 255, 254, 80, 0, 223, 255, + 197, 255, 255, 255, 255, 255, 246, 0, 223, 255, 255, 255, 255, 255, 255, 255, 255, 48, 223, 255, 255, 248, 32, 3, + 175, 255, 255, 192, 223, 255, 255, 96, 0, 0, 9, 255, 255, 242, 223, 255, 253, 0, 0, 0, 1, 239, 255, 247, + 223, 255, 248, 0, 0, 0, 0, 175, 255, 250, 223, 255, 245, 0, 0, 0, 0, 111, 255, 253, 223, 255, 244, 0, + 0, 0, 0, 79, 255, 254, 223, 255, 243, 0, 0, 0, 0, 63, 255, 255, 223, 255, 243, 0, 0, 0, 0, 63, + 255, 255, 223, 255, 244, 0, 0, 0, 0, 79, 255, 254, 223, 255, 246, 0, 0, 0, 0, 111, 255, 252, 223, 255, + 249, 0, 0, 0, 0, 175, 255, 250, 223, 255, 253, 0, 0, 0, 1, 239, 255, 247, 223, 255, 255, 112, 0, 0, + 9, 255, 255, 242, 223, 255, 255, 249, 48, 3, 175, 255, 255, 160, 223, 255, 255, 255, 255, 255, 255, 255, 254, 32, + 223, 255, 249, 255, 255, 255, 255, 255, 245, 0, 223, 255, 241, 127, 255, 255, 255, 253, 64, 0, 223, 255, 242, 2, + 140, 239, 235, 97, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, + 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, + 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, + 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, + 223, 255, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 190, 254, 199, 16, 6, 255, 254, 0, 4, 223, 255, + 255, 255, 230, 9, 255, 254, 0, 95, 255, 255, 255, 255, 255, 108, 255, 254, 2, 239, 255, 255, 255, 255, 255, 255, + 255, 254, 11, 255, 255, 250, 48, 2, 126, 255, 255, 254, 47, 255, 255, 160, 0, 0, 4, 255, 255, 254, 127, 255, + 255, 16, 0, 0, 0, 175, 255, 254, 175, 255, 250, 0, 0, 0, 0, 95, 255, 254, 223, 255, 247, 0, 0, 0, + 0, 47, 255, 254, 239, 255, 244, 0, 0, 0, 0, 15, 255, 254, 255, 255, 243, 0, 0, 0, 0, 14, 255, 254, + 255, 255, 243, 0, 0, 0, 0, 14, 255, 254, 239, 255, 244, 0, 0, 0, 0, 14, 255, 254, 223, 255, 246, 0, + 0, 0, 0, 31, 255, 254, 175, 255, 249, 0, 0, 0, 0, 63, 255, 254, 127, 255, 254, 16, 0, 0, 0, 143, + 255, 254, 47, 255, 255, 144, 0, 0, 3, 239, 255, 254, 11, 255, 255, 250, 48, 2, 110, 255, 255, 254, 3, 255, + 255, 255, 255, 255, 255, 239, 255, 254, 0, 111, 255, 255, 255, 255, 255, 79, 255, 254, 0, 5, 239, 255, 255, 255, + 228, 47, 255, 254, 0, 0, 23, 206, 253, 199, 16, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, + 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, + 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, + 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, + 0, 0, 0, 0, 0, 47, 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 254, 223, 255, 32, 0, 74, 239, + 252, 223, 255, 64, 9, 255, 255, 250, 223, 255, 112, 175, 255, 255, 249, 223, 255, 150, 255, 255, 255, 248, 223, 255, + 238, 255, 255, 255, 246, 223, 255, 255, 254, 131, 17, 50, 223, 255, 255, 210, 0, 0, 0, 223, 255, 255, 48, 0, + 0, 0, 223, 255, 250, 0, 0, 0, 0, 223, 255, 246, 0, 0, 0, 0, 223, 255, 244, 0, 0, 0, 0, 223, + 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, + 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, + 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 223, 255, 243, + 0, 0, 0, 0, 0, 0, 39, 189, 239, 237, 167, 32, 0, 1, 175, 255, 255, 255, 255, 255, 196, 1, 223, 255, + 255, 255, 255, 255, 255, 80, 143, 255, 255, 255, 255, 255, 255, 224, 14, 255, 255, 146, 0, 20, 142, 249, 1, 255, + 255, 208, 0, 0, 0, 4, 32, 15, 255, 254, 0, 0, 0, 0, 0, 0, 207, 255, 251, 32, 0, 0, 0, 0, + 6, 255, 255, 255, 164, 0, 0, 0, 0, 10, 255, 255, 255, 254, 130, 0, 0, 0, 6, 239, 255, 255, 255, 249, + 16, 0, 0, 1, 126, 255, 255, 255, 254, 64, 0, 0, 0, 5, 191, 255, 255, 254, 32, 0, 0, 0, 0, 58, + 255, 255, 249, 0, 0, 0, 0, 0, 6, 255, 255, 208, 0, 0, 0, 0, 0, 14, 255, 255, 5, 16, 0, 0, + 0, 1, 255, 255, 225, 254, 166, 49, 0, 20, 207, 255, 251, 31, 255, 255, 255, 255, 255, 255, 255, 65, 255, 255, + 255, 255, 255, 255, 255, 144, 13, 255, 255, 255, 255, 255, 254, 112, 0, 4, 139, 222, 255, 237, 166, 16, 0, 0, + 0, 9, 255, 192, 0, 0, 0, 0, 0, 13, 255, 192, 0, 0, 0, 0, 0, 63, 255, 192, 0, 0, 0, 0, + 0, 143, 255, 192, 0, 0, 0, 0, 0, 223, 255, 192, 0, 0, 0, 0, 77, 255, 255, 255, 255, 255, 224, 27, + 255, 255, 255, 255, 255, 255, 224, 63, 255, 255, 255, 255, 255, 255, 224, 62, 239, 255, 255, 254, 238, 238, 208, 0, + 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, + 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, + 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, + 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 192, 0, 0, 0, 0, + 3, 255, 255, 241, 0, 0, 0, 0, 1, 255, 255, 252, 48, 2, 97, 0, 0, 191, 255, 255, 255, 255, 242, 0, + 0, 63, 255, 255, 255, 255, 242, 0, 0, 6, 239, 255, 255, 255, 242, 0, 0, 0, 40, 206, 253, 202, 96, 31, + 255, 255, 16, 0, 0, 0, 10, 255, 255, 97, 255, 255, 241, 0, 0, 0, 0, 175, 255, 246, 31, 255, 255, 16, + 0, 0, 0, 10, 255, 255, 97, 255, 255, 241, 0, 0, 0, 0, 175, 255, 246, 31, 255, 255, 16, 0, 0, 0, + 10, 255, 255, 97, 255, 255, 241, 0, 0, 0, 0, 175, 255, 246, 31, 255, 255, 16, 0, 0, 0, 10, 255, 255, + 97, 255, 255, 241, 0, 0, 0, 0, 175, 255, 246, 31, 255, 255, 16, 0, 0, 0, 10, 255, 255, 97, 255, 255, + 241, 0, 0, 0, 0, 175, 255, 246, 31, 255, 255, 16, 0, 0, 0, 10, 255, 255, 97, 255, 255, 241, 0, 0, + 0, 0, 191, 255, 246, 31, 255, 255, 16, 0, 0, 0, 12, 255, 255, 97, 255, 255, 241, 0, 0, 0, 0, 239, + 255, 246, 15, 255, 255, 32, 0, 0, 0, 63, 255, 255, 96, 239, 255, 246, 0, 0, 0, 8, 255, 255, 246, 12, + 255, 255, 192, 0, 0, 3, 239, 255, 255, 96, 143, 255, 255, 179, 0, 39, 239, 255, 255, 246, 2, 255, 255, 255, + 255, 255, 255, 255, 255, 255, 96, 8, 255, 255, 255, 255, 255, 254, 95, 255, 246, 0, 7, 255, 255, 255, 255, 252, + 48, 239, 255, 96, 0, 2, 140, 239, 237, 148, 0, 10, 255, 246, 207, 255, 248, 0, 0, 0, 0, 0, 175, 255, + 250, 127, 255, 253, 0, 0, 0, 0, 0, 239, 255, 245, 31, 255, 255, 48, 0, 0, 0, 5, 255, 255, 224, 10, + 255, 255, 112, 0, 0, 0, 10, 255, 255, 128, 5, 255, 255, 192, 0, 0, 0, 14, 255, 255, 48, 0, 239, 255, + 242, 0, 0, 0, 95, 255, 252, 0, 0, 159, 255, 247, 0, 0, 0, 175, 255, 246, 0, 0, 63, 255, 252, 0, + 0, 0, 239, 255, 241, 0, 0, 12, 255, 255, 32, 0, 5, 255, 255, 160, 0, 0, 7, 255, 255, 112, 0, 10, + 255, 255, 64, 0, 0, 1, 255, 255, 192, 0, 14, 255, 254, 0, 0, 0, 0, 191, 255, 242, 0, 95, 255, 248, + 0, 0, 0, 0, 95, 255, 246, 0, 175, 255, 243, 0, 0, 0, 0, 14, 255, 251, 0, 239, 255, 192, 0, 0, + 0, 0, 9, 255, 255, 20, 255, 255, 96, 0, 0, 0, 0, 3, 255, 255, 105, 255, 255, 16, 0, 0, 0, 0, + 0, 207, 255, 173, 255, 250, 0, 0, 0, 0, 0, 0, 127, 255, 239, 255, 244, 0, 0, 0, 0, 0, 0, 31, + 255, 255, 255, 208, 0, 0, 0, 0, 0, 0, 11, 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 5, 255, 255, + 255, 32, 0, 0, 0, 0, 0, 0, 0, 239, 255, 252, 0, 0, 0, 0, 127, 255, 249, 0, 0, 0, 4, 255, + 255, 248, 0, 0, 0, 6, 255, 255, 147, 255, 255, 208, 0, 0, 0, 143, 255, 255, 192, 0, 0, 0, 159, 255, + 245, 14, 255, 255, 32, 0, 0, 12, 255, 255, 255, 16, 0, 0, 13, 255, 255, 16, 159, 255, 246, 0, 0, 1, + 255, 255, 255, 245, 0, 0, 2, 255, 255, 192, 5, 255, 255, 144, 0, 0, 111, 255, 207, 255, 144, 0, 0, 111, + 255, 248, 0, 31, 255, 253, 0, 0, 10, 255, 245, 255, 253, 0, 0, 10, 255, 255, 48, 0, 207, 255, 242, 0, + 0, 239, 254, 13, 255, 242, 0, 0, 239, 255, 224, 0, 8, 255, 255, 96, 0, 63, 255, 176, 175, 255, 96, 0, + 63, 255, 250, 0, 0, 79, 255, 250, 0, 7, 255, 248, 6, 255, 250, 0, 7, 255, 255, 96, 0, 0, 239, 255, + 224, 0, 191, 255, 64, 47, 255, 224, 0, 175, 255, 242, 0, 0, 10, 255, 255, 32, 31, 255, 241, 0, 239, 255, + 48, 14, 255, 252, 0, 0, 0, 111, 255, 246, 5, 255, 252, 0, 10, 255, 247, 3, 255, 255, 128, 0, 0, 2, + 255, 255, 144, 143, 255, 128, 0, 111, 255, 160, 127, 255, 244, 0, 0, 0, 13, 255, 252, 11, 255, 244, 0, 3, + 255, 253, 10, 255, 254, 0, 0, 0, 0, 159, 255, 224, 239, 255, 16, 0, 14, 255, 241, 223, 255, 160, 0, 0, + 0, 5, 255, 255, 63, 255, 176, 0, 0, 175, 255, 95, 255, 246, 0, 0, 0, 0, 31, 255, 248, 255, 247, 0, + 0, 6, 255, 249, 255, 255, 32, 0, 0, 0, 0, 191, 255, 223, 255, 48, 0, 0, 47, 255, 239, 255, 208, 0, + 0, 0, 0, 7, 255, 255, 255, 224, 0, 0, 0, 223, 255, 255, 249, 0, 0, 0, 0, 0, 63, 255, 255, 250, + 0, 0, 0, 10, 255, 255, 255, 64, 0, 0, 0, 0, 0, 239, 255, 255, 96, 0, 0, 0, 111, 255, 255, 241, + 0, 0, 0, 0, 0, 10, 255, 255, 242, 0, 0, 0, 2, 255, 255, 251, 0, 0, 0, 29, 255, 255, 192, 0, + 0, 0, 6, 255, 255, 245, 4, 255, 255, 246, 0, 0, 0, 30, 255, 255, 160, 0, 159, 255, 254, 32, 0, 0, + 175, 255, 253, 16, 0, 29, 255, 255, 160, 0, 4, 255, 255, 244, 0, 0, 4, 255, 255, 245, 0, 29, 255, 255, + 144, 0, 0, 0, 159, 255, 253, 16, 143, 255, 253, 16, 0, 0, 0, 29, 255, 255, 131, 255, 255, 244, 0, 0, + 0, 0, 4, 255, 255, 253, 255, 255, 144, 0, 0, 0, 0, 0, 159, 255, 255, 255, 253, 16, 0, 0, 0, 0, + 0, 29, 255, 255, 255, 244, 0, 0, 0, 0, 0, 0, 4, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 9, + 255, 255, 255, 209, 0, 0, 0, 0, 0, 0, 79, 255, 255, 255, 249, 0, 0, 0, 0, 0, 1, 223, 255, 255, + 255, 255, 64, 0, 0, 0, 0, 9, 255, 255, 216, 255, 255, 209, 0, 0, 0, 0, 79, 255, 255, 64, 207, 255, + 249, 0, 0, 0, 1, 223, 255, 249, 0, 63, 255, 255, 64, 0, 0, 9, 255, 255, 225, 0, 9, 255, 255, 209, + 0, 0, 79, 255, 255, 80, 0, 1, 223, 255, 249, 0, 1, 223, 255, 251, 0, 0, 0, 95, 255, 255, 80, 9, + 255, 255, 226, 0, 0, 0, 10, 255, 255, 225, 79, 255, 255, 112, 0, 0, 0, 1, 239, 255, 250, 207, 255, 249, + 0, 0, 0, 0, 0, 159, 255, 251, 111, 255, 254, 0, 0, 0, 0, 0, 223, 255, 246, 30, 255, 255, 64, 0, + 0, 0, 3, 255, 255, 225, 10, 255, 255, 144, 0, 0, 0, 8, 255, 255, 160, 4, 255, 255, 224, 0, 0, 0, + 13, 255, 255, 64, 0, 223, 255, 244, 0, 0, 0, 63, 255, 253, 0, 0, 127, 255, 249, 0, 0, 0, 143, 255, + 248, 0, 0, 31, 255, 254, 0, 0, 0, 223, 255, 242, 0, 0, 10, 255, 255, 64, 0, 3, 255, 255, 192, 0, + 0, 5, 255, 255, 144, 0, 7, 255, 255, 96, 0, 0, 0, 223, 255, 224, 0, 12, 255, 255, 16, 0, 0, 0, + 143, 255, 244, 0, 47, 255, 250, 0, 0, 0, 0, 47, 255, 249, 0, 127, 255, 245, 0, 0, 0, 0, 11, 255, + 254, 0, 207, 255, 224, 0, 0, 0, 0, 5, 255, 255, 66, 255, 255, 144, 0, 0, 0, 0, 0, 239, 255, 134, + 255, 255, 48, 0, 0, 0, 0, 0, 159, 255, 186, 255, 253, 0, 0, 0, 0, 0, 0, 63, 255, 238, 255, 247, + 0, 0, 0, 0, 0, 0, 12, 255, 255, 255, 242, 0, 0, 0, 0, 0, 0, 6, 255, 255, 255, 176, 0, 0, + 0, 0, 0, 0, 1, 239, 255, 255, 96, 0, 0, 0, 0, 0, 0, 0, 159, 255, 254, 16, 0, 0, 0, 0, + 0, 0, 0, 111, 255, 250, 0, 0, 0, 0, 0, 0, 0, 0, 207, 255, 244, 0, 0, 0, 0, 0, 0, 0, + 3, 255, 255, 208, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 111, 255, + 254, 16, 0, 0, 0, 0, 1, 0, 23, 255, 255, 248, 0, 0, 0, 0, 0, 14, 255, 255, 255, 255, 192, 0, + 0, 0, 0, 0, 14, 255, 255, 255, 254, 32, 0, 0, 0, 0, 0, 14, 255, 255, 255, 211, 0, 0, 0, 0, + 0, 0, 11, 239, 253, 166, 0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 255, 255, 161, 255, 255, + 255, 255, 255, 255, 255, 250, 31, 255, 255, 255, 255, 255, 255, 255, 161, 238, 238, 238, 238, 238, 255, 255, 249, 0, + 0, 0, 0, 0, 127, 255, 253, 16, 0, 0, 0, 0, 63, 255, 255, 64, 0, 0, 0, 0, 12, 255, 255, 128, + 0, 0, 0, 0, 9, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, 226, 0, 0, 0, 0, 1, 239, 255, 246, + 0, 0, 0, 0, 0, 191, 255, 250, 0, 0, 0, 0, 0, 111, 255, 253, 16, 0, 0, 0, 0, 46, 255, 255, + 64, 0, 0, 0, 0, 12, 255, 255, 128, 0, 0, 0, 0, 8, 255, 255, 192, 0, 0, 0, 0, 4, 255, 255, + 226, 0, 0, 0, 0, 1, 223, 255, 246, 0, 0, 0, 0, 0, 175, 255, 250, 0, 0, 0, 0, 0, 111, 255, + 255, 254, 238, 238, 238, 238, 234, 255, 255, 255, 255, 255, 255, 255, 255, 175, 255, 255, 255, 255, 255, 255, 255, 250, + 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 191, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 31, 255, 255, 254, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 255, 255, 255, 244, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 207, 255, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 0, 63, 255, 251, 255, 255, 16, + 0, 0, 0, 0, 0, 0, 0, 9, 255, 255, 79, 255, 246, 0, 0, 0, 0, 0, 0, 0, 0, 239, 255, 176, + 239, 255, 192, 0, 0, 0, 0, 0, 0, 0, 95, 255, 247, 9, 255, 255, 32, 0, 0, 0, 0, 0, 0, 11, + 255, 255, 48, 95, 255, 248, 0, 0, 0, 0, 0, 0, 1, 255, 255, 208, 0, 239, 255, 224, 0, 0, 0, 0, + 0, 0, 127, 255, 248, 0, 9, 255, 255, 64, 0, 0, 0, 0, 0, 12, 255, 255, 32, 0, 79, 255, 250, 0, + 0, 0, 0, 0, 3, 255, 255, 192, 0, 0, 223, 255, 241, 0, 0, 0, 0, 0, 159, 255, 246, 0, 0, 8, + 255, 255, 96, 0, 0, 0, 0, 14, 255, 255, 16, 0, 0, 47, 255, 252, 0, 0, 0, 0, 5, 255, 255, 160, + 0, 0, 0, 207, 255, 242, 0, 0, 0, 0, 175, 255, 255, 238, 238, 238, 239, 255, 255, 128, 0, 0, 0, 31, + 255, 255, 255, 255, 255, 255, 255, 255, 253, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 255, 255, 255, 244, 0, + 0, 0, 207, 255, 255, 255, 255, 255, 255, 255, 255, 255, 160, 0, 0, 63, 255, 254, 0, 0, 0, 0, 0, 47, + 255, 255, 16, 0, 9, 255, 255, 144, 0, 0, 0, 0, 0, 207, 255, 246, 0, 0, 239, 255, 244, 0, 0, 0, + 0, 0, 7, 255, 255, 192, 0, 95, 255, 254, 0, 0, 0, 0, 0, 0, 47, 255, 255, 32, 10, 255, 255, 160, + 0, 0, 0, 0, 0, 0, 207, 255, 248, 1, 255, 255, 245, 0, 0, 0, 0, 0, 0, 7, 255, 255, 208, 127, + 255, 254, 0, 0, 0, 0, 0, 0, 0, 47, 255, 255, 76, 255, 255, 160, 0, 0, 0, 0, 0, 0, 0, 207, + 255, 250, 207, 255, 246, 0, 0, 0, 0, 0, 0, 2, 255, 255, 241, 127, 255, 251, 0, 0, 0, 0, 0, 0, + 8, 255, 255, 176, 47, 255, 255, 16, 0, 0, 0, 0, 0, 13, 255, 255, 80, 12, 255, 255, 96, 0, 0, 0, + 0, 0, 63, 255, 254, 16, 6, 255, 255, 176, 0, 0, 0, 0, 0, 143, 255, 250, 0, 1, 255, 255, 241, 0, + 0, 0, 0, 0, 223, 255, 244, 0, 0, 191, 255, 246, 0, 0, 0, 0, 3, 255, 255, 224, 0, 0, 95, 255, + 251, 0, 0, 0, 0, 8, 255, 255, 144, 0, 0, 30, 255, 255, 16, 0, 0, 0, 13, 255, 255, 64, 0, 0, + 10, 255, 255, 96, 0, 0, 0, 63, 255, 253, 0, 0, 0, 4, 255, 255, 176, 0, 0, 0, 143, 255, 248, 0, + 0, 0, 0, 239, 255, 241, 0, 0, 0, 223, 255, 243, 0, 0, 0, 0, 159, 255, 246, 0, 0, 3, 255, 255, + 192, 0, 0, 0, 0, 79, 255, 251, 0, 0, 8, 255, 255, 112, 0, 0, 0, 0, 13, 255, 255, 16, 0, 13, + 255, 255, 32, 0, 0, 0, 0, 8, 255, 255, 96, 0, 63, 255, 252, 0, 0, 0, 0, 0, 3, 255, 255, 176, + 0, 143, 255, 246, 0, 0, 0, 0, 0, 0, 207, 255, 241, 0, 223, 255, 241, 0, 0, 0, 0, 0, 0, 127, + 255, 246, 3, 255, 255, 176, 0, 0, 0, 0, 0, 0, 47, 255, 250, 7, 255, 255, 80, 0, 0, 0, 0, 0, + 0, 12, 255, 254, 11, 255, 254, 16, 0, 0, 0, 0, 0, 0, 6, 255, 255, 79, 255, 250, 0, 0, 0, 0, + 0, 0, 0, 1, 255, 255, 175, 255, 244, 0, 0, 0, 0, 0, 0, 0, 0, 191, 255, 255, 255, 224, 0, 0, + 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 144, 0, 0, 0, 0, 0, 0, 0, 0, 30, 255, 255, 255, 64, + 0, 0, 0, 0, 0, 0, 0, 0, 10, 255, 255, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, + 248, 0, 0, 0, 0, 0, 79, 255, 255, 245, 0, 0, 0, 0, 0, 0, 175, 255, 244, 255, 255, 255, 225, 0, + 0, 0, 0, 0, 10, 255, 255, 79, 255, 255, 255, 144, 0, 0, 0, 0, 0, 175, 255, 244, 255, 255, 255, 255, + 48, 0, 0, 0, 0, 10, 255, 255, 79, 255, 255, 255, 252, 0, 0, 0, 0, 0, 175, 255, 244, 255, 255, 255, + 255, 246, 0, 0, 0, 0, 10, 255, 255, 79, 255, 252, 255, 255, 225, 0, 0, 0, 0, 175, 255, 244, 255, 255, + 63, 255, 255, 160, 0, 0, 0, 10, 255, 255, 79, 255, 241, 143, 255, 255, 64, 0, 0, 0, 175, 255, 244, 255, + 255, 33, 223, 255, 253, 0, 0, 0, 10, 255, 255, 79, 255, 243, 4, 255, 255, 248, 0, 0, 0, 175, 255, 244, + 255, 255, 48, 10, 255, 255, 242, 0, 0, 10, 255, 255, 79, 255, 244, 0, 46, 255, 255, 176, 0, 0, 175, 255, + 244, 255, 255, 64, 0, 111, 255, 255, 80, 0, 10, 255, 255, 79, 255, 245, 0, 0, 207, 255, 254, 16, 0, 175, + 255, 244, 255, 255, 80, 0, 3, 255, 255, 249, 0, 9, 255, 255, 79, 255, 245, 0, 0, 8, 255, 255, 243, 0, + 159, 255, 244, 255, 255, 80, 0, 0, 29, 255, 255, 192, 8, 255, 255, 79, 255, 245, 0, 0, 0, 79, 255, 255, + 96, 143, 255, 244, 255, 255, 80, 0, 0, 0, 175, 255, 254, 23, 255, 255, 79, 255, 245, 0, 0, 0, 2, 239, + 255, 250, 111, 255, 244, 255, 255, 80, 0, 0, 0, 6, 255, 255, 250, 255, 255, 79, 255, 245, 0, 0, 0, 0, + 12, 255, 255, 255, 255, 244, 255, 255, 80, 0, 0, 0, 0, 63, 255, 255, 255, 255, 79, 255, 245, 0, 0, 0, + 0, 0, 143, 255, 255, 255, 244, 255, 255, 80, 0, 0, 0, 0, 1, 223, 255, 255, 255, 79, 255, 245, 0, 0, + 0, 0, 0, 4, 255, 255, 255, 244, 255, 255, 80, 0, 0, 0, 0, 0, 10, 255, 255, 255, 127, 255, 255, 255, + 255, 237, 184, 64, 0, 0, 0, 7, 255, 255, 255, 255, 255, 255, 255, 214, 0, 0, 0, 127, 255, 255, 255, 255, + 255, 255, 255, 250, 0, 0, 7, 255, 255, 254, 238, 255, 255, 255, 255, 248, 0, 0, 127, 255, 252, 0, 0, 20, + 159, 255, 255, 242, 0, 7, 255, 255, 192, 0, 0, 0, 95, 255, 255, 112, 0, 127, 255, 252, 0, 0, 0, 0, + 191, 255, 251, 0, 7, 255, 255, 192, 0, 0, 0, 7, 255, 255, 192, 0, 127, 255, 252, 0, 0, 0, 0, 111, + 255, 253, 0, 7, 255, 255, 192, 0, 0, 0, 8, 255, 255, 176, 0, 127, 255, 252, 0, 0, 0, 0, 223, 255, + 248, 0, 7, 255, 255, 192, 0, 0, 0, 127, 255, 255, 32, 0, 127, 255, 252, 0, 0, 37, 191, 255, 255, 128, + 0, 7, 255, 255, 255, 255, 255, 255, 255, 255, 160, 0, 0, 127, 255, 255, 255, 255, 255, 255, 255, 112, 0, 0, + 7, 255, 255, 255, 255, 255, 255, 252, 32, 0, 0, 0, 127, 255, 255, 238, 238, 255, 255, 226, 0, 0, 0, 7, + 255, 255, 192, 0, 10, 255, 255, 176, 0, 0, 0, 127, 255, 252, 0, 0, 46, 255, 255, 96, 0, 0, 7, 255, + 255, 192, 0, 0, 127, 255, 254, 16, 0, 0, 127, 255, 252, 0, 0, 0, 223, 255, 250, 0, 0, 7, 255, 255, + 192, 0, 0, 4, 255, 255, 245, 0, 0, 127, 255, 252, 0, 0, 0, 10, 255, 255, 225, 0, 7, 255, 255, 192, + 0, 0, 0, 47, 255, 255, 144, 0, 127, 255, 252, 0, 0, 0, 0, 127, 255, 255, 64, 7, 255, 255, 192, 0, + 0, 0, 0, 223, 255, 253, 16, 127, 255, 252, 0, 0, 0, 0, 5, 255, 255, 248, 7, 255, 255, 192, 0, 0, + 0, 0, 11, 255, 255, 243, 0, 0, 0, 0, 72, 189, 239, 238, 201, 97, 0, 0, 0, 0, 0, 0, 0, 109, + 255, 255, 255, 255, 255, 255, 146, 0, 0, 0, 0, 0, 44, 255, 255, 255, 255, 255, 255, 255, 254, 96, 0, 0, + 0, 3, 239, 255, 255, 255, 255, 255, 255, 255, 255, 248, 0, 0, 0, 29, 255, 255, 254, 131, 16, 2, 91, 255, + 255, 255, 96, 0, 0, 175, 255, 255, 177, 0, 0, 0, 0, 95, 255, 255, 242, 0, 3, 255, 255, 251, 0, 0, + 0, 0, 0, 5, 255, 255, 250, 0, 9, 255, 255, 242, 0, 0, 0, 0, 0, 0, 175, 255, 255, 16, 14, 255, + 255, 160, 0, 0, 0, 0, 0, 0, 63, 255, 255, 96, 63, 255, 255, 80, 0, 0, 0, 0, 0, 0, 13, 255, + 255, 160, 111, 255, 255, 16, 0, 0, 0, 0, 0, 0, 10, 255, 255, 224, 159, 255, 253, 0, 0, 0, 0, 0, + 0, 0, 7, 255, 255, 241, 175, 255, 252, 0, 0, 0, 0, 0, 0, 0, 6, 255, 255, 242, 191, 255, 251, 0, + 0, 0, 0, 0, 0, 0, 5, 255, 255, 243, 175, 255, 251, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 243, + 175, 255, 252, 0, 0, 0, 0, 0, 0, 0, 5, 255, 255, 242, 143, 255, 253, 0, 0, 0, 0, 0, 0, 0, + 7, 255, 255, 241, 111, 255, 255, 16, 0, 0, 0, 0, 0, 0, 10, 255, 255, 208, 63, 255, 255, 80, 0, 0, + 0, 0, 0, 0, 13, 255, 255, 160, 14, 255, 255, 160, 0, 0, 0, 0, 0, 0, 63, 255, 255, 96, 9, 255, + 255, 242, 0, 0, 0, 0, 0, 0, 175, 255, 255, 16, 3, 255, 255, 251, 0, 0, 0, 0, 0, 5, 255, 255, + 249, 0, 0, 159, 255, 255, 177, 0, 0, 0, 0, 95, 255, 255, 226, 0, 0, 29, 255, 255, 254, 131, 16, 2, + 91, 255, 255, 255, 96, 0, 0, 2, 223, 255, 255, 255, 255, 255, 255, 255, 255, 247, 0, 0, 0, 0, 44, 255, + 255, 255, 255, 255, 255, 255, 254, 96, 0, 0, 0, 0, 0, 109, 255, 255, 255, 255, 255, 255, 146, 0, 0, 0, + 0, 0, 0, 0, 72, 189, 239, 254, 201, 97, 0, 0, 0, 0, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 255, 238, 238, 238, 238, 238, 238, 255, 255, 248, 79, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 248, 79, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 248, 79, 255, 255, 255, 255, 255, 255, 255, 255, 255, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, + 255, 248, 79, 255, 253, 0, 0, 0, 0, 0, 0, 159, 255, 248, 175, 255, 246, 0, 0, 0, 0, 0, 159, 255, + 249, 0, 0, 0, 0, 0, 95, 255, 252, 111, 255, 250, 0, 0, 0, 0, 0, 223, 255, 254, 0, 0, 0, 0, + 0, 159, 255, 248, 47, 255, 254, 0, 0, 0, 0, 3, 255, 255, 255, 48, 0, 0, 0, 0, 207, 255, 244, 13, + 255, 255, 48, 0, 0, 0, 7, 255, 255, 255, 112, 0, 0, 0, 1, 255, 255, 240, 9, 255, 255, 96, 0, 0, + 0, 11, 255, 255, 255, 176, 0, 0, 0, 5, 255, 255, 176, 5, 255, 255, 160, 0, 0, 0, 31, 255, 255, 255, + 241, 0, 0, 0, 8, 255, 255, 112, 1, 255, 255, 224, 0, 0, 0, 79, 255, 238, 255, 245, 0, 0, 0, 12, + 255, 255, 48, 0, 207, 255, 242, 0, 0, 0, 143, 255, 187, 255, 249, 0, 0, 0, 31, 255, 254, 0, 0, 143, + 255, 246, 0, 0, 0, 207, 255, 136, 255, 253, 0, 0, 0, 79, 255, 250, 0, 0, 95, 255, 250, 0, 0, 2, + 255, 255, 85, 255, 255, 32, 0, 0, 143, 255, 246, 0, 0, 31, 255, 253, 0, 0, 6, 255, 255, 17, 255, 255, + 96, 0, 0, 207, 255, 242, 0, 0, 12, 255, 255, 32, 0, 10, 255, 253, 0, 207, 255, 176, 0, 1, 255, 255, + 208, 0, 0, 8, 255, 255, 96, 0, 14, 255, 248, 0, 143, 255, 224, 0, 4, 255, 255, 144, 0, 0, 4, 255, + 255, 144, 0, 63, 255, 244, 0, 79, 255, 244, 0, 8, 255, 255, 80, 0, 0, 0, 239, 255, 208, 0, 127, 255, + 241, 0, 14, 255, 248, 0, 11, 255, 255, 16, 0, 0, 0, 191, 255, 242, 0, 191, 255, 176, 0, 10, 255, 253, + 0, 15, 255, 252, 0, 0, 0, 0, 127, 255, 245, 1, 255, 255, 112, 0, 6, 255, 255, 32, 79, 255, 248, 0, + 0, 0, 0, 63, 255, 249, 4, 255, 255, 48, 0, 2, 255, 255, 96, 127, 255, 244, 0, 0, 0, 0, 14, 255, + 252, 8, 255, 253, 0, 0, 0, 223, 255, 144, 191, 255, 241, 0, 0, 0, 0, 10, 255, 255, 11, 255, 249, 0, + 0, 0, 143, 255, 192, 239, 255, 176, 0, 0, 0, 0, 6, 255, 255, 62, 255, 245, 0, 0, 0, 79, 255, 242, + 255, 255, 112, 0, 0, 0, 0, 2, 255, 255, 127, 255, 241, 0, 0, 0, 14, 255, 247, 255, 255, 48, 0, 0, + 0, 0, 0, 223, 255, 207, 255, 192, 0, 0, 0, 10, 255, 252, 255, 254, 0, 0, 0, 0, 0, 0, 159, 255, + 255, 255, 112, 0, 0, 0, 6, 255, 255, 255, 251, 0, 0, 0, 0, 0, 0, 95, 255, 255, 255, 48, 0, 0, + 0, 2, 255, 255, 255, 247, 0, 0, 0, 0, 0, 0, 31, 255, 255, 254, 0, 0, 0, 0, 0, 223, 255, 255, + 243, 0, 0, 0, 0, 0, 0, 13, 255, 255, 250, 0, 0, 0, 0, 0, 143, 255, 255, 224, 0, 0, 0, 0, + 0, 0, 9, 255, 255, 246, 0, 0, 0, 0, 0, 79, 255, 255, 160, 0, 0, 0, + ], +}; + +/// NotoSans-Medium at 26 px: 97 glyphs, 9784 B of 4-bit coverage. +pub static S: Font = Font { + ascent: 28, + descent: 8, + cap: 18, + glyphs: &[ + Glyph { c: ' ', adv: 7, x: 0, y: 0, w: 0, h: 0, off: 0 }, + Glyph { c: '!', adv: 7, x: 1, y: -18, w: 5, h: 18, off: 0 }, + Glyph { c: '"', adv: 11, x: 1, y: -18, w: 9, h: 7, off: 45 }, + Glyph { c: '#', adv: 17, x: 0, y: -18, w: 17, h: 18, off: 77 }, + Glyph { c: '$', adv: 15, x: 1, y: -19, w: 13, h: 21, off: 230 }, + Glyph { c: '%', adv: 22, x: 1, y: -18, w: 20, h: 18, off: 367 }, + Glyph { c: '&', adv: 19, x: 1, y: -18, w: 18, h: 18, off: 547 }, + Glyph { c: '\'', adv: 6, x: 1, y: -18, w: 4, h: 7, off: 709 }, + Glyph { c: '(', adv: 8, x: 1, y: -18, w: 7, h: 22, off: 723 }, + Glyph { c: ')', adv: 8, x: 0, y: -18, w: 8, h: 22, off: 800 }, + Glyph { c: '*', adv: 14, x: 1, y: -19, w: 13, h: 12, off: 888 }, + Glyph { c: '+', adv: 15, x: 1, y: -15, w: 13, h: 12, off: 966 }, + Glyph { c: ',', adv: 7, x: 1, y: -3, w: 5, h: 6, off: 1044 }, + Glyph { c: '-', adv: 8, x: 1, y: -9, w: 7, h: 3, off: 1059 }, + Glyph { c: '.', adv: 7, x: 1, y: -4, w: 5, h: 4, off: 1070 }, + Glyph { c: '/', adv: 10, x: 0, y: -18, w: 10, h: 18, off: 1080 }, + Glyph { c: '0', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 1170 }, + Glyph { c: '1', adv: 15, x: 2, y: -18, w: 8, h: 18, off: 1287 }, + Glyph { c: '2', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 1359 }, + Glyph { c: '3', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 1476 }, + Glyph { c: '4', adv: 15, x: 0, y: -18, w: 15, h: 18, off: 1593 }, + Glyph { c: '5', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 1728 }, + Glyph { c: '6', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 1845 }, + Glyph { c: '7', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 1962 }, + Glyph { c: '8', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 2079 }, + Glyph { c: '9', adv: 15, x: 1, y: -18, w: 13, h: 18, off: 2196 }, + Glyph { c: ':', adv: 7, x: 1, y: -14, w: 5, h: 14, off: 2313 }, + Glyph { c: ';', adv: 7, x: 0, y: -14, w: 6, h: 18, off: 2348 }, + Glyph { c: '<', adv: 15, x: 1, y: -16, w: 13, h: 13, off: 2402 }, + Glyph { c: '=', adv: 15, x: 1, y: -13, w: 13, h: 8, off: 2487 }, + Glyph { c: '>', adv: 15, x: 1, y: -16, w: 13, h: 13, off: 2539 }, + Glyph { c: '?', adv: 12, x: 0, y: -18, w: 11, h: 18, off: 2624 }, + Glyph { c: '@', adv: 23, x: 1, y: -18, w: 21, h: 20, off: 2723 }, + Glyph { c: 'A', adv: 17, x: 0, y: -18, w: 17, h: 18, off: 2933 }, + Glyph { c: 'B', adv: 17, x: 2, y: -18, w: 14, h: 18, off: 3086 }, + Glyph { c: 'C', adv: 17, x: 1, y: -18, w: 15, h: 18, off: 3212 }, + Glyph { c: 'D', adv: 19, x: 2, y: -18, w: 16, h: 18, off: 3347 }, + Glyph { c: 'E', adv: 14, x: 2, y: -18, w: 11, h: 18, off: 3491 }, + Glyph { c: 'F', adv: 14, x: 2, y: -18, w: 11, h: 18, off: 3590 }, + Glyph { c: 'G', adv: 19, x: 1, y: -18, w: 16, h: 18, off: 3689 }, + Glyph { c: 'H', adv: 19, x: 2, y: -18, w: 15, h: 18, off: 3833 }, + Glyph { c: 'I', adv: 9, x: 1, y: -18, w: 8, h: 18, off: 3968 }, + Glyph { c: 'J', adv: 8, x: -2, y: -18, w: 8, h: 23, off: 4040 }, + Glyph { c: 'K', adv: 16, x: 2, y: -18, w: 15, h: 18, off: 4132 }, + Glyph { c: 'L', adv: 14, x: 2, y: -18, w: 12, h: 18, off: 4267 }, + Glyph { c: 'M', adv: 24, x: 2, y: -18, w: 20, h: 18, off: 4375 }, + Glyph { c: 'N', adv: 20, x: 2, y: -18, w: 16, h: 18, off: 4555 }, + Glyph { c: 'O', adv: 20, x: 1, y: -18, w: 18, h: 18, off: 4699 }, + Glyph { c: 'P', adv: 16, x: 2, y: -18, w: 13, h: 18, off: 4861 }, + Glyph { c: 'Q', adv: 20, x: 1, y: -18, w: 18, h: 22, off: 4978 }, + Glyph { c: 'R', adv: 16, x: 2, y: -18, w: 14, h: 18, off: 5176 }, + Glyph { c: 'S', adv: 14, x: 1, y: -18, w: 13, h: 18, off: 5302 }, + Glyph { c: 'T', adv: 15, x: 0, y: -18, w: 15, h: 18, off: 5419 }, + Glyph { c: 'U', adv: 19, x: 2, y: -18, w: 15, h: 18, off: 5554 }, + Glyph { c: 'V', adv: 16, x: 0, y: -18, w: 16, h: 18, off: 5689 }, + Glyph { c: 'W', adv: 24, x: 0, y: -18, w: 25, h: 18, off: 5833 }, + Glyph { c: 'X', adv: 16, x: 0, y: -18, w: 16, h: 18, off: 6058 }, + Glyph { c: 'Y', adv: 15, x: 0, y: -18, w: 15, h: 18, off: 6202 }, + Glyph { c: 'Z', adv: 15, x: 0, y: -18, w: 14, h: 18, off: 6337 }, + Glyph { c: '[', adv: 9, x: 2, y: -18, w: 6, h: 23, off: 6463 }, + Glyph { c: '\\', adv: 10, x: 0, y: -18, w: 10, h: 18, off: 6532 }, + Glyph { c: ']', adv: 9, x: 0, y: -18, w: 7, h: 23, off: 6622 }, + Glyph { c: '^', adv: 15, x: 1, y: -19, w: 13, h: 12, off: 6703 }, + Glyph { c: '_', adv: 11, x: -1, y: 1, w: 13, h: 3, off: 6781 }, + Glyph { c: '`', adv: 8, x: 1, y: -19, w: 6, h: 4, off: 6801 }, + Glyph { c: 'a', adv: 15, x: 1, y: -14, w: 12, h: 14, off: 6813 }, + Glyph { c: 'b', adv: 16, x: 2, y: -19, w: 13, h: 19, off: 6897 }, + Glyph { c: 'c', adv: 13, x: 1, y: -14, w: 11, h: 14, off: 7021 }, + Glyph { c: 'd', adv: 16, x: 1, y: -19, w: 13, h: 19, off: 7098 }, + Glyph { c: 'e', adv: 15, x: 1, y: -14, w: 13, h: 14, off: 7222 }, + Glyph { c: 'f', adv: 9, x: 0, y: -19, w: 11, h: 19, off: 7313 }, + Glyph { c: 'g', adv: 16, x: 1, y: -14, w: 13, h: 20, off: 7418 }, + Glyph { c: 'h', adv: 16, x: 2, y: -19, w: 13, h: 19, off: 7548 }, + Glyph { c: 'i', adv: 7, x: 2, y: -19, w: 4, h: 19, off: 7672 }, + Glyph { c: 'j', adv: 7, x: -2, y: -19, w: 8, h: 25, off: 7710 }, + Glyph { c: 'k', adv: 15, x: 2, y: -19, w: 13, h: 19, off: 7810 }, + Glyph { c: 'l', adv: 7, x: 2, y: -19, w: 3, h: 19, off: 7934 }, + Glyph { c: 'm', adv: 25, x: 2, y: -14, w: 21, h: 14, off: 7963 }, + Glyph { c: 'n', adv: 16, x: 2, y: -14, w: 13, h: 14, off: 8110 }, + Glyph { c: 'o', adv: 16, x: 1, y: -14, w: 14, h: 14, off: 8201 }, + Glyph { c: 'p', adv: 16, x: 2, y: -14, w: 13, h: 20, off: 8299 }, + Glyph { c: 'q', adv: 16, x: 1, y: -14, w: 13, h: 20, off: 8429 }, + Glyph { c: 'r', adv: 11, x: 2, y: -14, w: 9, h: 14, off: 8559 }, + Glyph { c: 's', adv: 13, x: 1, y: -14, w: 11, h: 14, off: 8622 }, + Glyph { c: 't', adv: 10, x: 0, y: -17, w: 10, h: 17, off: 8699 }, + Glyph { c: 'u', adv: 16, x: 2, y: -14, w: 13, h: 14, off: 8784 }, + Glyph { c: 'v', adv: 14, x: 0, y: -14, w: 14, h: 14, off: 8875 }, + Glyph { c: 'w', adv: 21, x: 0, y: -14, w: 21, h: 14, off: 8973 }, + Glyph { c: 'x', adv: 14, x: 0, y: -14, w: 14, h: 14, off: 9120 }, + Glyph { c: 'y', adv: 14, x: 0, y: -14, w: 14, h: 20, off: 9218 }, + Glyph { c: 'z', adv: 12, x: 0, y: -14, w: 12, h: 14, off: 9358 }, + Glyph { c: '{', adv: 10, x: 0, y: -18, w: 10, h: 23, off: 9442 }, + Glyph { c: '|', adv: 14, x: 6, y: -19, w: 3, h: 25, off: 9557 }, + Glyph { c: '}', adv: 10, x: 0, y: -18, w: 10, h: 23, off: 9595 }, + Glyph { c: '~', adv: 15, x: 1, y: -11, w: 13, h: 4, off: 9710 }, + Glyph { c: '…', adv: 21, x: 1, y: -4, w: 19, h: 4, off: 9736 }, + Glyph { c: '·', adv: 7, x: 1, y: -12, w: 5, h: 4, off: 9774 }, + ], + bits: &[ + 31, 255, 32, 255, 241, 14, 255, 16, 239, 240, 13, 254, 0, 207, 224, 11, 253, 0, 191, 192, 10, 251, 0, 159, + 176, 8, 250, 0, 127, 144, 7, 248, 0, 0, 0, 10, 234, 3, 255, 244, 63, 255, 64, 174, 160, 95, 247, 5, + 255, 115, 255, 96, 79, 246, 47, 245, 2, 255, 65, 255, 64, 31, 243, 15, 242, 0, 255, 32, 239, 16, 14, 241, + 13, 240, 0, 223, 0, 0, 0, 0, 191, 96, 3, 253, 0, 0, 0, 0, 14, 243, 0, 111, 160, 0, 0, 0, + 3, 255, 0, 9, 247, 0, 0, 0, 0, 111, 192, 0, 207, 64, 0, 0, 0, 9, 249, 0, 31, 241, 0, 0, + 111, 255, 255, 255, 255, 255, 255, 242, 6, 255, 255, 255, 255, 255, 255, 255, 32, 19, 52, 255, 51, 59, 248, 51, + 48, 0, 0, 95, 192, 0, 223, 64, 0, 0, 0, 8, 249, 0, 31, 241, 0, 0, 19, 51, 191, 131, 54, 254, + 51, 49, 6, 255, 255, 255, 255, 255, 255, 255, 64, 111, 255, 255, 255, 255, 255, 255, 244, 0, 0, 79, 192, 0, + 207, 80, 0, 0, 0, 7, 249, 0, 31, 241, 0, 0, 0, 0, 175, 96, 4, 253, 0, 0, 0, 0, 13, 243, + 0, 127, 160, 0, 0, 0, 1, 255, 16, 10, 247, 0, 0, 0, 0, 0, 6, 244, 0, 0, 0, 0, 0, 111, + 64, 0, 0, 0, 23, 173, 252, 168, 64, 0, 94, 255, 255, 255, 255, 208, 46, 255, 204, 250, 173, 248, 7, 255, + 112, 111, 64, 3, 32, 143, 243, 6, 244, 0, 0, 6, 255, 144, 111, 64, 0, 0, 30, 255, 203, 244, 0, 0, + 0, 61, 255, 255, 198, 16, 0, 0, 23, 223, 255, 254, 112, 0, 0, 0, 143, 239, 255, 176, 0, 0, 6, 244, + 77, 255, 64, 0, 0, 111, 64, 79, 247, 0, 0, 6, 244, 5, 255, 120, 183, 49, 111, 102, 239, 242, 143, 255, + 255, 255, 255, 247, 4, 190, 255, 255, 254, 164, 0, 0, 1, 56, 245, 0, 0, 0, 0, 0, 111, 64, 0, 0, + 0, 0, 6, 244, 0, 0, 0, 2, 174, 235, 48, 0, 0, 4, 255, 32, 0, 29, 255, 255, 226, 0, 0, 12, + 248, 0, 0, 111, 246, 77, 250, 0, 0, 111, 209, 0, 0, 175, 160, 6, 254, 0, 1, 239, 96, 0, 0, 207, + 112, 2, 255, 16, 8, 252, 0, 0, 0, 223, 96, 1, 255, 32, 47, 243, 0, 0, 0, 207, 112, 2, 255, 16, + 175, 160, 0, 0, 0, 175, 160, 6, 254, 4, 254, 35, 190, 234, 32, 111, 246, 77, 250, 12, 248, 46, 254, 239, + 209, 12, 255, 255, 243, 111, 209, 143, 192, 29, 248, 1, 174, 235, 65, 239, 96, 207, 96, 7, 252, 0, 0, 0, + 8, 252, 0, 239, 64, 4, 254, 0, 0, 0, 47, 243, 0, 255, 64, 4, 255, 0, 0, 0, 175, 160, 0, 239, + 80, 5, 254, 0, 0, 4, 254, 32, 0, 207, 128, 8, 252, 0, 0, 12, 248, 0, 0, 127, 229, 94, 248, 0, + 0, 111, 209, 0, 0, 29, 255, 255, 225, 0, 1, 239, 80, 0, 0, 2, 190, 235, 32, 0, 2, 157, 254, 199, + 16, 0, 0, 0, 0, 62, 255, 255, 255, 192, 0, 0, 0, 0, 191, 248, 52, 207, 246, 0, 0, 0, 0, 255, + 176, 0, 47, 249, 0, 0, 0, 0, 239, 160, 0, 31, 249, 0, 0, 0, 0, 191, 225, 0, 143, 245, 0, 0, + 0, 0, 63, 251, 25, 255, 160, 0, 0, 0, 0, 7, 255, 255, 249, 0, 0, 0, 0, 0, 6, 255, 255, 80, + 0, 0, 0, 0, 1, 191, 250, 239, 193, 0, 0, 223, 224, 12, 255, 96, 78, 253, 32, 4, 255, 144, 111, 249, + 0, 4, 239, 227, 10, 255, 48, 175, 244, 0, 0, 62, 254, 143, 250, 0, 175, 244, 0, 0, 3, 239, 255, 226, + 0, 143, 249, 0, 0, 0, 143, 255, 144, 0, 47, 255, 165, 52, 124, 255, 255, 248, 0, 5, 255, 255, 255, 255, + 250, 61, 255, 128, 0, 40, 206, 254, 200, 32, 2, 223, 249, 95, 247, 63, 246, 47, 245, 31, 244, 15, 242, 14, + 241, 13, 240, 0, 8, 254, 16, 4, 255, 96, 0, 223, 176, 0, 111, 245, 0, 12, 253, 0, 2, 255, 128, 0, + 95, 244, 0, 9, 255, 16, 0, 191, 208, 0, 13, 252, 0, 0, 239, 176, 0, 14, 251, 0, 0, 223, 192, 0, + 12, 253, 0, 0, 159, 241, 0, 6, 255, 64, 0, 47, 248, 0, 0, 207, 208, 0, 6, 255, 64, 0, 13, 251, + 0, 0, 79, 245, 0, 0, 143, 225, 29, 249, 0, 0, 4, 255, 80, 0, 0, 175, 225, 0, 0, 63, 247, 0, + 0, 12, 253, 0, 0, 7, 255, 48, 0, 3, 255, 112, 0, 0, 239, 176, 0, 0, 207, 208, 0, 0, 191, 224, + 0, 0, 159, 240, 0, 0, 159, 241, 0, 0, 175, 240, 0, 0, 207, 208, 0, 0, 239, 176, 0, 3, 255, 112, + 0, 6, 255, 64, 0, 12, 254, 0, 0, 63, 248, 0, 0, 175, 225, 0, 4, 255, 96, 0, 13, 250, 0, 0, + 0, 0, 79, 246, 0, 0, 0, 0, 2, 255, 80, 0, 0, 0, 0, 31, 243, 0, 0, 5, 48, 0, 239, 16, + 3, 96, 207, 234, 109, 245, 157, 255, 14, 255, 255, 255, 255, 255, 242, 18, 69, 207, 253, 84, 50, 0, 0, 79, + 237, 247, 0, 0, 0, 46, 248, 111, 244, 0, 0, 11, 255, 16, 223, 209, 0, 2, 207, 144, 6, 253, 64, 0, + 0, 66, 0, 6, 0, 0, 0, 0, 10, 247, 0, 0, 0, 0, 0, 175, 112, 0, 0, 0, 0, 10, 247, 0, + 0, 0, 0, 0, 175, 112, 0, 0, 35, 51, 59, 248, 51, 51, 27, 255, 255, 255, 255, 255, 249, 191, 255, 255, + 255, 255, 255, 144, 0, 0, 175, 112, 0, 0, 0, 0, 10, 247, 0, 0, 0, 0, 0, 175, 112, 0, 0, 0, + 0, 10, 247, 0, 0, 0, 0, 0, 175, 112, 0, 0, 12, 255, 32, 255, 208, 63, 247, 6, 255, 32, 175, 160, + 13, 243, 0, 51, 51, 51, 31, 255, 255, 246, 255, 255, 255, 96, 10, 234, 3, 255, 244, 63, 255, 64, 174, 160, + 0, 0, 0, 31, 249, 0, 0, 0, 111, 243, 0, 0, 0, 207, 192, 0, 0, 3, 255, 112, 0, 0, 9, 255, + 16, 0, 0, 14, 250, 0, 0, 0, 95, 244, 0, 0, 0, 191, 208, 0, 0, 2, 255, 128, 0, 0, 8, 255, + 32, 0, 0, 13, 251, 0, 0, 0, 79, 245, 0, 0, 0, 175, 225, 0, 0, 1, 255, 144, 0, 0, 6, 255, + 48, 0, 0, 12, 252, 0, 0, 0, 63, 247, 0, 0, 0, 159, 241, 0, 0, 0, 0, 5, 190, 253, 163, 0, + 0, 9, 255, 255, 255, 246, 0, 7, 255, 197, 54, 223, 243, 0, 239, 209, 0, 2, 255, 176, 79, 247, 0, 0, + 10, 255, 23, 255, 48, 0, 0, 111, 245, 175, 241, 0, 0, 3, 255, 139, 255, 0, 0, 0, 47, 249, 207, 224, + 0, 0, 1, 255, 172, 254, 0, 0, 0, 31, 250, 191, 240, 0, 0, 2, 255, 154, 255, 16, 0, 0, 63, 248, + 127, 243, 0, 0, 6, 255, 83, 255, 112, 0, 0, 175, 242, 13, 253, 16, 0, 47, 251, 0, 95, 252, 83, 109, + 255, 64, 0, 143, 255, 255, 255, 96, 0, 0, 75, 239, 234, 64, 0, 0, 0, 94, 250, 0, 8, 255, 250, 1, + 191, 255, 250, 78, 255, 111, 250, 159, 227, 15, 250, 8, 16, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, + 0, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, + 0, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, 0, 31, 250, 0, 56, 206, 254, 164, 0, 1, 175, 255, + 255, 255, 249, 0, 111, 253, 116, 55, 239, 246, 0, 169, 0, 0, 3, 255, 192, 0, 0, 0, 0, 13, 254, 0, + 0, 0, 0, 0, 223, 208, 0, 0, 0, 0, 47, 251, 0, 0, 0, 0, 8, 255, 80, 0, 0, 0, 4, 255, + 192, 0, 0, 0, 3, 239, 226, 0, 0, 0, 3, 239, 227, 0, 0, 0, 3, 239, 228, 0, 0, 0, 3, 239, + 227, 0, 0, 0, 3, 239, 227, 0, 0, 0, 3, 239, 210, 0, 0, 0, 3, 239, 229, 51, 51, 51, 50, 207, + 255, 255, 255, 255, 255, 172, 255, 255, 255, 255, 255, 250, 1, 106, 222, 254, 182, 0, 5, 239, 255, 255, 255, 252, + 16, 79, 233, 83, 54, 223, 249, 0, 49, 0, 0, 2, 255, 208, 0, 0, 0, 0, 13, 254, 0, 0, 0, 0, + 3, 255, 160, 0, 0, 0, 39, 239, 210, 0, 1, 255, 255, 252, 112, 0, 0, 31, 255, 255, 218, 48, 0, 0, + 51, 53, 142, 255, 96, 0, 0, 0, 0, 45, 255, 32, 0, 0, 0, 0, 127, 246, 0, 0, 0, 0, 6, 255, + 112, 0, 0, 0, 0, 143, 246, 48, 0, 0, 0, 46, 255, 45, 216, 83, 52, 142, 255, 128, 223, 255, 255, 255, + 255, 144, 3, 139, 222, 254, 200, 48, 0, 0, 0, 0, 0, 79, 252, 0, 0, 0, 0, 0, 30, 255, 192, 0, + 0, 0, 0, 11, 255, 252, 0, 0, 0, 0, 6, 253, 207, 192, 0, 0, 0, 3, 255, 92, 252, 0, 0, 0, + 0, 207, 160, 223, 192, 0, 0, 0, 159, 209, 13, 252, 0, 0, 0, 79, 243, 0, 223, 192, 0, 0, 30, 247, + 0, 13, 252, 0, 0, 11, 252, 0, 0, 223, 192, 0, 6, 254, 32, 0, 13, 252, 0, 3, 255, 131, 51, 51, + 223, 195, 49, 127, 255, 255, 255, 255, 255, 255, 103, 255, 255, 255, 255, 255, 255, 246, 0, 0, 0, 0, 13, 252, + 0, 0, 0, 0, 0, 0, 223, 192, 0, 0, 0, 0, 0, 13, 252, 0, 0, 0, 0, 0, 0, 223, 192, 0, + 6, 255, 255, 255, 255, 243, 0, 127, 255, 255, 255, 255, 48, 8, 255, 51, 51, 51, 48, 0, 159, 224, 0, 0, + 0, 0, 11, 253, 0, 0, 0, 0, 0, 207, 176, 0, 0, 0, 0, 13, 250, 18, 33, 0, 0, 0, 239, 255, + 255, 253, 129, 0, 14, 255, 255, 255, 255, 227, 0, 21, 33, 1, 92, 255, 192, 0, 0, 0, 0, 28, 255, 64, + 0, 0, 0, 0, 127, 246, 0, 0, 0, 0, 6, 255, 96, 0, 0, 0, 0, 143, 244, 32, 0, 0, 0, 46, + 254, 23, 217, 83, 53, 142, 255, 96, 127, 255, 255, 255, 255, 112, 1, 123, 222, 254, 200, 32, 0, 0, 0, 23, + 189, 239, 229, 0, 0, 110, 255, 255, 255, 96, 0, 127, 254, 133, 51, 66, 0, 63, 251, 16, 0, 0, 0, 11, + 254, 16, 0, 0, 0, 1, 255, 112, 0, 0, 0, 0, 95, 244, 58, 239, 217, 32, 8, 255, 111, 255, 255, 254, + 64, 159, 254, 214, 52, 175, 254, 26, 255, 193, 0, 0, 159, 246, 175, 244, 0, 0, 2, 255, 169, 255, 16, 0, + 0, 15, 251, 143, 243, 0, 0, 0, 255, 164, 255, 128, 0, 0, 63, 248, 13, 254, 32, 0, 10, 255, 64, 79, + 254, 99, 91, 255, 176, 0, 111, 255, 255, 255, 193, 0, 0, 57, 223, 236, 96, 0, 255, 255, 255, 255, 255, 255, + 191, 255, 255, 255, 255, 255, 251, 51, 51, 51, 51, 56, 255, 96, 0, 0, 0, 0, 223, 224, 0, 0, 0, 0, + 95, 247, 0, 0, 0, 0, 12, 254, 16, 0, 0, 0, 4, 255, 144, 0, 0, 0, 0, 191, 242, 0, 0, 0, + 0, 63, 250, 0, 0, 0, 0, 10, 255, 48, 0, 0, 0, 2, 255, 176, 0, 0, 0, 0, 159, 244, 0, 0, + 0, 0, 31, 253, 0, 0, 0, 0, 8, 255, 96, 0, 0, 0, 1, 239, 224, 0, 0, 0, 0, 127, 247, 0, + 0, 0, 0, 14, 254, 16, 0, 0, 0, 6, 255, 144, 0, 0, 0, 0, 23, 190, 254, 182, 0, 0, 45, 255, + 255, 255, 252, 16, 12, 255, 164, 53, 207, 250, 2, 255, 160, 0, 0, 223, 224, 63, 247, 0, 0, 10, 255, 17, + 255, 176, 0, 0, 223, 208, 8, 255, 145, 1, 175, 245, 0, 9, 255, 233, 239, 229, 0, 0, 7, 255, 255, 226, + 0, 0, 8, 255, 237, 255, 230, 0, 11, 255, 129, 4, 223, 248, 6, 255, 96, 0, 0, 175, 244, 191, 224, 0, + 0, 1, 255, 156, 254, 0, 0, 0, 31, 249, 175, 244, 0, 0, 7, 255, 116, 255, 232, 67, 89, 255, 225, 7, + 255, 255, 255, 255, 227, 0, 3, 156, 239, 236, 113, 0, 0, 23, 206, 237, 130, 0, 0, 45, 255, 255, 255, 229, + 0, 29, 255, 164, 54, 239, 243, 6, 255, 128, 0, 2, 239, 192, 175, 241, 0, 0, 7, 255, 60, 254, 0, 0, + 0, 63, 247, 207, 240, 0, 0, 3, 255, 137, 255, 80, 0, 0, 175, 249, 79, 254, 81, 19, 175, 255, 144, 159, + 255, 255, 255, 127, 248, 0, 109, 255, 252, 68, 255, 96, 0, 1, 33, 0, 111, 244, 0, 0, 0, 0, 11, 254, + 16, 0, 0, 0, 3, 255, 144, 0, 0, 0, 3, 223, 242, 0, 52, 51, 89, 255, 245, 0, 8, 255, 255, 255, + 229, 0, 0, 110, 254, 219, 97, 0, 0, 10, 234, 3, 255, 244, 63, 255, 64, 174, 160, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 234, 3, 255, 244, 63, 255, 64, 174, 160, 0, 174, 160, 3, + 255, 243, 3, 255, 243, 0, 174, 160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 224, 2, 255, 160, 5, 255, 80, 9, 254, 0, 12, 247, 0, 31, + 241, 0, 0, 0, 0, 0, 0, 6, 112, 0, 0, 0, 0, 109, 249, 0, 0, 0, 6, 223, 253, 80, 0, 0, + 109, 255, 197, 0, 0, 6, 223, 252, 80, 0, 0, 109, 255, 180, 0, 0, 0, 191, 251, 48, 0, 0, 0, 10, + 255, 233, 48, 0, 0, 0, 4, 175, 255, 181, 0, 0, 0, 0, 40, 239, 253, 113, 0, 0, 0, 1, 125, 255, + 250, 48, 0, 0, 0, 5, 191, 249, 0, 0, 0, 0, 0, 57, 144, 35, 51, 51, 51, 51, 51, 26, 255, 255, + 255, 255, 255, 247, 175, 255, 255, 255, 255, 255, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, + 51, 51, 51, 51, 51, 49, 175, 255, 255, 255, 255, 255, 122, 255, 255, 255, 255, 255, 247, 133, 0, 0, 0, 0, + 0, 11, 252, 80, 0, 0, 0, 0, 110, 255, 197, 0, 0, 0, 0, 23, 223, 252, 80, 0, 0, 0, 0, 109, + 255, 197, 0, 0, 0, 0, 5, 207, 252, 80, 0, 0, 0, 0, 76, 255, 128, 0, 0, 0, 58, 255, 247, 0, + 0, 22, 207, 255, 147, 0, 2, 142, 255, 231, 16, 0, 75, 255, 252, 80, 0, 0, 11, 255, 164, 0, 0, 0, + 0, 168, 32, 0, 0, 0, 0, 0, 3, 140, 239, 236, 113, 7, 255, 255, 255, 255, 209, 47, 182, 67, 91, 255, + 144, 16, 0, 0, 13, 253, 0, 0, 0, 0, 191, 224, 0, 0, 0, 30, 251, 0, 0, 0, 27, 255, 64, 0, + 0, 61, 255, 80, 0, 0, 78, 253, 48, 0, 0, 13, 252, 16, 0, 0, 3, 255, 32, 0, 0, 0, 95, 208, + 0, 0, 0, 1, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 237, 48, 0, 0, 0, 223, 249, 0, 0, + 0, 13, 255, 144, 0, 0, 0, 94, 210, 0, 0, 0, 0, 0, 21, 173, 239, 236, 148, 0, 0, 0, 0, 0, + 126, 255, 255, 255, 255, 252, 32, 0, 0, 2, 207, 253, 133, 51, 70, 175, 255, 80, 0, 1, 223, 230, 0, 0, + 0, 0, 43, 255, 48, 0, 191, 210, 0, 91, 239, 219, 129, 10, 253, 0, 95, 243, 0, 159, 255, 255, 255, 80, + 30, 245, 12, 248, 0, 111, 250, 67, 95, 244, 0, 143, 161, 255, 32, 14, 250, 0, 0, 255, 48, 5, 252, 95, + 208, 3, 255, 32, 0, 31, 243, 0, 63, 231, 251, 0, 95, 224, 0, 2, 255, 32, 3, 254, 143, 144, 5, 254, + 0, 0, 79, 241, 0, 95, 200, 250, 0, 79, 242, 0, 9, 255, 32, 10, 248, 127, 192, 1, 239, 178, 22, 254, + 248, 22, 255, 52, 255, 16, 7, 255, 255, 253, 63, 255, 255, 128, 14, 247, 0, 7, 239, 252, 32, 110, 254, 128, + 0, 143, 227, 0, 0, 33, 0, 0, 2, 0, 0, 1, 223, 229, 0, 0, 0, 0, 0, 0, 0, 0, 2, 223, + 253, 133, 51, 53, 122, 225, 0, 0, 0, 1, 159, 255, 255, 255, 255, 255, 16, 0, 0, 0, 0, 39, 189, 255, + 236, 166, 16, 0, 0, 0, 0, 0, 47, 255, 32, 0, 0, 0, 0, 0, 8, 255, 248, 0, 0, 0, 0, 0, + 0, 239, 239, 224, 0, 0, 0, 0, 0, 95, 247, 255, 80, 0, 0, 0, 0, 11, 254, 30, 251, 0, 0, 0, + 0, 2, 255, 160, 159, 242, 0, 0, 0, 0, 143, 244, 4, 255, 112, 0, 0, 0, 13, 254, 0, 13, 253, 0, + 0, 0, 4, 255, 128, 0, 143, 244, 0, 0, 0, 175, 242, 0, 2, 255, 160, 0, 0, 31, 254, 102, 102, 110, + 255, 16, 0, 7, 255, 255, 255, 255, 255, 247, 0, 0, 223, 255, 255, 255, 255, 255, 208, 0, 79, 251, 0, 0, + 0, 12, 255, 64, 10, 255, 80, 0, 0, 0, 95, 249, 1, 239, 224, 0, 0, 0, 0, 239, 225, 111, 248, 0, + 0, 0, 0, 8, 255, 108, 255, 32, 0, 0, 0, 0, 47, 252, 159, 255, 255, 254, 201, 64, 0, 159, 255, 255, + 255, 255, 251, 16, 159, 246, 51, 52, 142, 255, 128, 159, 244, 0, 0, 4, 255, 224, 159, 244, 0, 0, 0, 239, + 240, 159, 244, 0, 0, 0, 239, 224, 159, 244, 0, 0, 5, 255, 144, 159, 246, 51, 52, 126, 253, 16, 159, 255, + 255, 255, 254, 113, 0, 159, 255, 255, 255, 255, 232, 16, 159, 244, 0, 1, 58, 255, 193, 159, 244, 0, 0, 0, + 191, 246, 159, 244, 0, 0, 0, 111, 249, 159, 244, 0, 0, 0, 127, 249, 159, 244, 0, 0, 1, 223, 246, 159, + 246, 51, 51, 108, 255, 225, 159, 255, 255, 255, 255, 253, 48, 159, 255, 255, 255, 235, 97, 0, 0, 0, 4, 156, + 239, 237, 165, 16, 0, 27, 255, 255, 255, 255, 247, 0, 62, 255, 215, 67, 71, 206, 16, 12, 255, 144, 0, 0, + 0, 32, 8, 255, 176, 0, 0, 0, 0, 0, 239, 243, 0, 0, 0, 0, 0, 63, 252, 0, 0, 0, 0, 0, + 6, 255, 144, 0, 0, 0, 0, 0, 127, 248, 0, 0, 0, 0, 0, 6, 255, 128, 0, 0, 0, 0, 0, 95, + 249, 0, 0, 0, 0, 0, 3, 255, 192, 0, 0, 0, 0, 0, 14, 255, 32, 0, 0, 0, 0, 0, 159, 250, + 0, 0, 0, 0, 0, 2, 239, 248, 0, 0, 0, 0, 0, 5, 255, 252, 116, 52, 89, 192, 0, 4, 239, 255, + 255, 255, 255, 0, 0, 1, 107, 223, 254, 218, 96, 159, 255, 255, 253, 200, 48, 0, 0, 159, 255, 255, 255, 255, + 252, 32, 0, 159, 246, 51, 53, 141, 255, 227, 0, 159, 244, 0, 0, 0, 159, 253, 16, 159, 244, 0, 0, 0, + 10, 255, 144, 159, 244, 0, 0, 0, 2, 255, 224, 159, 244, 0, 0, 0, 0, 207, 244, 159, 244, 0, 0, 0, + 0, 159, 246, 159, 244, 0, 0, 0, 0, 143, 247, 159, 244, 0, 0, 0, 0, 143, 246, 159, 244, 0, 0, 0, + 0, 159, 245, 159, 244, 0, 0, 0, 0, 207, 242, 159, 244, 0, 0, 0, 3, 255, 208, 159, 244, 0, 0, 0, + 11, 255, 112, 159, 244, 0, 0, 1, 175, 253, 16, 159, 246, 51, 53, 158, 255, 210, 0, 159, 255, 255, 255, 255, + 250, 16, 0, 159, 255, 255, 237, 183, 32, 0, 0, 143, 255, 255, 255, 255, 232, 255, 255, 255, 255, 254, 143, 246, + 51, 51, 51, 40, 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, 8, 255, 64, 0, 0, 0, 143, 244, 0, 0, + 0, 8, 255, 255, 255, 255, 247, 143, 255, 255, 255, 255, 120, 255, 99, 51, 51, 49, 143, 244, 0, 0, 0, 8, + 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, 8, 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, 8, 255, 99, + 51, 51, 50, 143, 255, 255, 255, 255, 232, 255, 255, 255, 255, 254, 143, 255, 255, 255, 255, 232, 255, 255, 255, 255, + 254, 143, 246, 51, 51, 51, 40, 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, 8, 255, 64, 0, 0, 0, 143, + 244, 0, 0, 0, 8, 255, 64, 0, 0, 0, 143, 255, 255, 255, 255, 104, 255, 255, 255, 255, 246, 143, 246, 51, + 51, 51, 24, 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, 8, 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, + 8, 255, 64, 0, 0, 0, 143, 244, 0, 0, 0, 8, 255, 64, 0, 0, 0, 0, 0, 2, 123, 223, 254, 201, + 81, 0, 1, 159, 255, 255, 255, 255, 248, 0, 29, 255, 233, 83, 52, 123, 225, 0, 207, 252, 32, 0, 0, 0, + 16, 6, 255, 193, 0, 0, 0, 0, 0, 13, 255, 64, 0, 0, 0, 0, 0, 47, 253, 0, 0, 0, 0, 0, + 0, 95, 249, 0, 0, 0, 0, 0, 0, 111, 248, 0, 0, 12, 255, 255, 254, 111, 248, 0, 0, 12, 255, 255, + 254, 95, 249, 0, 0, 2, 51, 61, 254, 63, 252, 0, 0, 0, 0, 13, 254, 14, 255, 32, 0, 0, 0, 13, + 254, 8, 255, 160, 0, 0, 0, 13, 254, 1, 239, 249, 0, 0, 0, 13, 254, 0, 78, 255, 216, 83, 52, 126, + 254, 0, 3, 223, 255, 255, 255, 255, 254, 0, 0, 5, 173, 239, 254, 202, 99, 143, 244, 0, 0, 0, 0, 223, + 232, 255, 64, 0, 0, 0, 13, 254, 143, 244, 0, 0, 0, 0, 223, 232, 255, 64, 0, 0, 0, 13, 254, 143, + 244, 0, 0, 0, 0, 223, 232, 255, 64, 0, 0, 0, 13, 254, 143, 244, 0, 0, 0, 0, 223, 232, 255, 99, + 51, 51, 51, 61, 254, 143, 255, 255, 255, 255, 255, 255, 232, 255, 255, 255, 255, 255, 255, 254, 143, 244, 0, 0, + 0, 0, 223, 232, 255, 64, 0, 0, 0, 13, 254, 143, 244, 0, 0, 0, 0, 223, 232, 255, 64, 0, 0, 0, + 13, 254, 143, 244, 0, 0, 0, 0, 223, 232, 255, 64, 0, 0, 0, 13, 254, 143, 244, 0, 0, 0, 0, 223, + 232, 255, 64, 0, 0, 0, 13, 254, 255, 255, 255, 243, 207, 255, 255, 210, 1, 223, 242, 0, 0, 207, 240, 0, + 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, + 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 240, 0, 0, 207, 241, 0, + 174, 255, 255, 178, 255, 255, 255, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, + 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, + 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, 0, 0, 175, 243, + 0, 0, 175, 243, 0, 0, 175, 242, 0, 0, 191, 242, 0, 1, 239, 224, 83, 75, 255, 144, 255, 255, 252, 16, + 223, 252, 113, 0, 143, 244, 0, 0, 0, 127, 251, 8, 255, 64, 0, 0, 95, 252, 16, 143, 244, 0, 0, 79, + 253, 16, 8, 255, 64, 0, 46, 254, 32, 0, 143, 244, 0, 29, 254, 48, 0, 8, 255, 64, 28, 255, 64, 0, + 0, 143, 244, 11, 255, 96, 0, 0, 8, 255, 73, 255, 112, 0, 0, 0, 143, 251, 255, 248, 0, 0, 0, 8, + 255, 255, 239, 244, 0, 0, 0, 143, 254, 53, 255, 225, 0, 0, 8, 255, 80, 9, 255, 176, 0, 0, 143, 244, + 0, 28, 255, 112, 0, 8, 255, 64, 0, 62, 255, 48, 0, 143, 244, 0, 0, 111, 253, 16, 8, 255, 64, 0, + 0, 175, 249, 0, 143, 244, 0, 0, 1, 223, 245, 8, 255, 64, 0, 0, 3, 255, 226, 159, 244, 0, 0, 0, + 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, + 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, + 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, + 0, 159, 244, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 159, 248, 102, 102, 102, 97, 159, 255, 255, 255, 255, + 243, 159, 255, 255, 255, 255, 243, 143, 255, 160, 0, 0, 0, 0, 12, 255, 246, 143, 255, 225, 0, 0, 0, 0, + 63, 255, 246, 143, 222, 246, 0, 0, 0, 0, 143, 255, 246, 143, 217, 251, 0, 0, 0, 0, 239, 175, 246, 143, + 228, 255, 32, 0, 0, 5, 255, 95, 246, 143, 240, 223, 112, 0, 0, 10, 251, 79, 246, 143, 240, 143, 208, 0, + 0, 31, 245, 95, 246, 143, 240, 63, 243, 0, 0, 127, 224, 95, 246, 143, 240, 12, 249, 0, 0, 223, 144, 95, + 246, 143, 240, 7, 254, 0, 3, 255, 48, 95, 246, 143, 240, 2, 255, 80, 9, 252, 0, 95, 246, 143, 240, 0, + 191, 176, 14, 247, 0, 95, 246, 143, 240, 0, 111, 241, 95, 241, 0, 95, 246, 143, 240, 0, 31, 247, 191, 160, + 0, 95, 246, 143, 240, 0, 10, 253, 255, 64, 0, 95, 246, 143, 240, 0, 5, 255, 254, 0, 0, 95, 246, 143, + 240, 0, 0, 239, 248, 0, 0, 95, 246, 143, 240, 0, 0, 159, 242, 0, 0, 95, 246, 143, 255, 48, 0, 0, + 0, 13, 251, 143, 255, 192, 0, 0, 0, 13, 251, 143, 255, 246, 0, 0, 0, 13, 251, 143, 238, 254, 16, 0, + 0, 13, 251, 143, 215, 255, 160, 0, 0, 13, 251, 143, 224, 207, 244, 0, 0, 13, 251, 143, 224, 63, 253, 16, + 0, 13, 251, 143, 240, 8, 255, 128, 0, 13, 251, 143, 240, 0, 223, 243, 0, 13, 251, 143, 240, 0, 63, 252, + 0, 13, 251, 143, 240, 0, 9, 255, 96, 13, 251, 143, 240, 0, 1, 223, 226, 13, 251, 143, 240, 0, 0, 79, + 250, 12, 251, 143, 240, 0, 0, 9, 255, 92, 251, 143, 240, 0, 0, 1, 239, 220, 251, 143, 240, 0, 0, 0, + 95, 255, 251, 143, 240, 0, 0, 0, 10, 255, 251, 143, 240, 0, 0, 0, 1, 239, 251, 0, 0, 6, 173, 239, + 236, 130, 0, 0, 0, 3, 223, 255, 255, 255, 255, 112, 0, 0, 95, 255, 182, 51, 72, 239, 249, 0, 1, 239, + 246, 0, 0, 0, 45, 255, 96, 9, 255, 144, 0, 0, 0, 3, 255, 224, 14, 255, 32, 0, 0, 0, 0, 191, + 244, 63, 252, 0, 0, 0, 0, 0, 111, 249, 95, 249, 0, 0, 0, 0, 0, 79, 251, 111, 248, 0, 0, 0, + 0, 0, 63, 252, 111, 248, 0, 0, 0, 0, 0, 63, 252, 95, 249, 0, 0, 0, 0, 0, 79, 250, 63, 252, + 0, 0, 0, 0, 0, 111, 249, 14, 255, 32, 0, 0, 0, 0, 191, 244, 9, 255, 144, 0, 0, 0, 3, 255, + 224, 1, 239, 246, 0, 0, 0, 45, 255, 80, 0, 95, 255, 182, 51, 72, 239, 249, 0, 0, 3, 223, 255, 255, + 255, 255, 112, 0, 0, 0, 22, 189, 255, 236, 130, 0, 0, 159, 255, 255, 237, 166, 0, 9, 255, 255, 255, 255, + 253, 32, 159, 246, 51, 71, 223, 252, 9, 255, 64, 0, 1, 223, 245, 159, 244, 0, 0, 6, 255, 137, 255, 64, + 0, 0, 95, 248, 159, 244, 0, 0, 7, 255, 121, 255, 64, 0, 1, 223, 242, 159, 246, 51, 72, 239, 249, 9, + 255, 255, 255, 255, 249, 0, 159, 255, 255, 236, 147, 0, 9, 255, 64, 0, 0, 0, 0, 159, 244, 0, 0, 0, + 0, 9, 255, 64, 0, 0, 0, 0, 159, 244, 0, 0, 0, 0, 9, 255, 64, 0, 0, 0, 0, 159, 244, 0, + 0, 0, 0, 9, 255, 64, 0, 0, 0, 0, 0, 0, 6, 173, 239, 236, 130, 0, 0, 0, 3, 223, 255, 255, + 255, 255, 112, 0, 0, 95, 255, 182, 51, 72, 239, 249, 0, 1, 239, 246, 0, 0, 0, 45, 255, 80, 9, 255, + 144, 0, 0, 0, 3, 255, 224, 14, 255, 32, 0, 0, 0, 0, 191, 244, 63, 252, 0, 0, 0, 0, 0, 111, + 249, 95, 249, 0, 0, 0, 0, 0, 79, 251, 111, 248, 0, 0, 0, 0, 0, 63, 252, 111, 248, 0, 0, 0, + 0, 0, 63, 252, 95, 249, 0, 0, 0, 0, 0, 79, 251, 63, 252, 0, 0, 0, 0, 0, 111, 249, 14, 255, + 32, 0, 0, 0, 0, 191, 245, 9, 255, 144, 0, 0, 0, 3, 255, 225, 1, 239, 246, 0, 0, 0, 45, 255, + 112, 0, 95, 255, 182, 51, 72, 239, 250, 0, 0, 3, 223, 255, 255, 255, 255, 128, 0, 0, 0, 22, 189, 255, + 255, 226, 0, 0, 0, 0, 0, 0, 0, 191, 250, 0, 0, 0, 0, 0, 0, 0, 29, 255, 160, 0, 0, 0, + 0, 0, 0, 2, 239, 250, 0, 0, 0, 0, 0, 0, 0, 62, 255, 144, 159, 255, 255, 237, 182, 16, 0, 159, + 255, 255, 255, 255, 211, 0, 159, 246, 51, 54, 207, 253, 16, 159, 244, 0, 0, 28, 255, 80, 159, 244, 0, 0, + 7, 255, 144, 159, 244, 0, 0, 5, 255, 144, 159, 244, 0, 0, 7, 255, 112, 159, 244, 0, 0, 29, 255, 48, + 159, 246, 51, 54, 223, 248, 0, 159, 255, 255, 255, 255, 112, 0, 159, 255, 255, 255, 244, 0, 0, 159, 244, 0, + 63, 252, 0, 0, 159, 244, 0, 8, 255, 128, 0, 159, 244, 0, 1, 223, 243, 0, 159, 244, 0, 0, 95, 252, + 0, 159, 244, 0, 0, 10, 255, 128, 159, 244, 0, 0, 2, 239, 243, 159, 244, 0, 0, 0, 111, 252, 0, 23, + 206, 254, 218, 81, 0, 62, 255, 255, 255, 255, 144, 29, 255, 148, 52, 107, 243, 5, 255, 144, 0, 0, 1, 0, + 127, 245, 0, 0, 0, 0, 6, 255, 128, 0, 0, 0, 0, 47, 255, 96, 0, 0, 0, 0, 143, 255, 215, 16, + 0, 0, 0, 127, 255, 254, 146, 0, 0, 0, 41, 239, 255, 246, 0, 0, 0, 1, 109, 255, 246, 0, 0, 0, + 0, 8, 255, 208, 0, 0, 0, 0, 12, 255, 16, 0, 0, 0, 0, 191, 241, 32, 0, 0, 0, 46, 253, 11, + 217, 100, 52, 125, 255, 96, 191, 255, 255, 255, 255, 112, 3, 139, 222, 254, 200, 32, 0, 175, 255, 255, 255, 255, + 255, 255, 74, 255, 255, 255, 255, 255, 255, 244, 35, 51, 52, 255, 179, 51, 51, 16, 0, 0, 31, 251, 0, 0, + 0, 0, 0, 1, 255, 176, 0, 0, 0, 0, 0, 31, 251, 0, 0, 0, 0, 0, 1, 255, 176, 0, 0, 0, + 0, 0, 31, 251, 0, 0, 0, 0, 0, 1, 255, 176, 0, 0, 0, 0, 0, 31, 251, 0, 0, 0, 0, 0, + 1, 255, 176, 0, 0, 0, 0, 0, 31, 251, 0, 0, 0, 0, 0, 1, 255, 176, 0, 0, 0, 0, 0, 31, + 251, 0, 0, 0, 0, 0, 1, 255, 176, 0, 0, 0, 0, 0, 31, 251, 0, 0, 0, 0, 0, 1, 255, 176, + 0, 0, 0, 0, 0, 31, 251, 0, 0, 0, 175, 242, 0, 0, 0, 0, 239, 218, 255, 32, 0, 0, 0, 14, + 253, 175, 242, 0, 0, 0, 0, 239, 218, 255, 32, 0, 0, 0, 14, 253, 175, 242, 0, 0, 0, 0, 239, 218, + 255, 32, 0, 0, 0, 14, 253, 175, 242, 0, 0, 0, 0, 239, 218, 255, 32, 0, 0, 0, 14, 253, 175, 242, + 0, 0, 0, 0, 239, 218, 255, 32, 0, 0, 0, 14, 253, 175, 242, 0, 0, 0, 0, 239, 218, 255, 32, 0, + 0, 0, 14, 253, 159, 243, 0, 0, 0, 0, 255, 182, 255, 112, 0, 0, 0, 95, 248, 30, 254, 32, 0, 0, + 29, 255, 48, 111, 254, 132, 52, 125, 255, 128, 0, 127, 255, 255, 255, 255, 128, 0, 0, 40, 206, 254, 200, 48, + 0, 207, 241, 0, 0, 0, 0, 47, 252, 127, 246, 0, 0, 0, 0, 127, 247, 47, 252, 0, 0, 0, 0, 207, + 241, 11, 255, 32, 0, 0, 2, 255, 176, 6, 255, 112, 0, 0, 8, 255, 80, 1, 239, 192, 0, 0, 13, 254, + 16, 0, 175, 243, 0, 0, 63, 249, 0, 0, 79, 248, 0, 0, 159, 244, 0, 0, 14, 253, 0, 0, 239, 208, + 0, 0, 8, 255, 48, 4, 255, 128, 0, 0, 3, 255, 144, 10, 255, 32, 0, 0, 0, 207, 224, 14, 252, 0, + 0, 0, 0, 127, 244, 79, 247, 0, 0, 0, 0, 47, 248, 159, 241, 0, 0, 0, 0, 11, 252, 223, 176, 0, + 0, 0, 0, 6, 255, 255, 80, 0, 0, 0, 0, 1, 239, 254, 16, 0, 0, 0, 0, 0, 175, 249, 0, 0, + 0, 175, 243, 0, 0, 0, 111, 251, 0, 0, 0, 11, 255, 22, 255, 112, 0, 0, 10, 255, 241, 0, 0, 1, + 255, 192, 47, 251, 0, 0, 0, 239, 255, 80, 0, 0, 79, 248, 0, 223, 224, 0, 0, 79, 253, 249, 0, 0, + 8, 255, 64, 9, 255, 64, 0, 8, 254, 159, 224, 0, 0, 207, 241, 0, 95, 248, 0, 0, 223, 165, 255, 48, + 0, 31, 251, 0, 1, 255, 176, 0, 47, 246, 31, 248, 0, 4, 255, 112, 0, 12, 255, 16, 6, 255, 32, 191, + 192, 0, 143, 243, 0, 0, 143, 244, 0, 191, 208, 7, 255, 32, 12, 254, 0, 0, 4, 255, 128, 14, 248, 0, + 47, 246, 1, 255, 160, 0, 0, 14, 252, 4, 255, 64, 0, 223, 176, 95, 246, 0, 0, 0, 175, 241, 143, 224, + 0, 9, 254, 8, 255, 32, 0, 0, 6, 255, 76, 250, 0, 0, 79, 243, 207, 208, 0, 0, 0, 47, 247, 255, + 96, 0, 0, 239, 127, 248, 0, 0, 0, 0, 223, 207, 241, 0, 0, 10, 252, 255, 64, 0, 0, 0, 9, 255, + 252, 0, 0, 0, 111, 255, 241, 0, 0, 0, 0, 95, 255, 128, 0, 0, 1, 255, 251, 0, 0, 0, 0, 1, + 255, 243, 0, 0, 0, 12, 255, 112, 0, 0, 63, 253, 16, 0, 0, 2, 239, 225, 8, 255, 128, 0, 0, 10, + 255, 80, 0, 223, 243, 0, 0, 95, 250, 0, 0, 63, 252, 0, 1, 223, 225, 0, 0, 8, 255, 112, 9, 255, + 80, 0, 0, 0, 223, 242, 63, 250, 0, 0, 0, 0, 63, 251, 207, 225, 0, 0, 0, 0, 8, 255, 255, 80, + 0, 0, 0, 0, 0, 223, 251, 0, 0, 0, 0, 0, 4, 255, 254, 32, 0, 0, 0, 0, 29, 254, 255, 176, + 0, 0, 0, 0, 159, 245, 143, 246, 0, 0, 0, 4, 255, 160, 29, 254, 32, 0, 0, 29, 254, 16, 4, 255, + 176, 0, 0, 159, 246, 0, 0, 175, 247, 0, 4, 255, 176, 0, 0, 30, 254, 32, 29, 254, 32, 0, 0, 6, + 255, 192, 143, 247, 0, 0, 0, 0, 191, 247, 191, 245, 0, 0, 0, 2, 255, 211, 255, 192, 0, 0, 0, 175, + 245, 9, 255, 80, 0, 0, 63, 252, 0, 46, 253, 0, 0, 11, 255, 48, 0, 143, 246, 0, 3, 255, 160, 0, + 1, 239, 208, 0, 191, 242, 0, 0, 6, 255, 96, 79, 248, 0, 0, 0, 13, 254, 28, 254, 16, 0, 0, 0, + 95, 251, 255, 96, 0, 0, 0, 0, 191, 255, 208, 0, 0, 0, 0, 3, 255, 245, 0, 0, 0, 0, 0, 13, + 255, 0, 0, 0, 0, 0, 0, 223, 240, 0, 0, 0, 0, 0, 13, 255, 0, 0, 0, 0, 0, 0, 223, 240, + 0, 0, 0, 0, 0, 13, 255, 0, 0, 0, 0, 0, 0, 223, 240, 0, 0, 0, 0, 0, 13, 255, 0, 0, + 0, 12, 255, 255, 255, 255, 255, 252, 12, 255, 255, 255, 255, 255, 252, 2, 51, 51, 51, 51, 223, 245, 0, 0, + 0, 0, 7, 255, 144, 0, 0, 0, 0, 63, 253, 16, 0, 0, 0, 0, 207, 244, 0, 0, 0, 0, 8, 255, + 144, 0, 0, 0, 0, 63, 253, 16, 0, 0, 0, 1, 223, 244, 0, 0, 0, 0, 8, 255, 128, 0, 0, 0, + 0, 79, 253, 0, 0, 0, 0, 1, 223, 243, 0, 0, 0, 0, 9, 255, 128, 0, 0, 0, 0, 79, 252, 0, + 0, 0, 0, 1, 223, 243, 0, 0, 0, 0, 9, 255, 147, 51, 51, 51, 51, 31, 255, 255, 255, 255, 255, 255, + 47, 255, 255, 255, 255, 255, 255, 255, 255, 254, 255, 255, 254, 255, 147, 50, 255, 128, 0, 255, 128, 0, 255, 128, + 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, + 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 128, 0, 255, 255, 254, 255, 255, + 254, 51, 51, 50, 159, 241, 0, 0, 0, 63, 247, 0, 0, 0, 12, 252, 0, 0, 0, 6, 255, 48, 0, 0, + 1, 255, 144, 0, 0, 0, 175, 225, 0, 0, 0, 79, 245, 0, 0, 0, 13, 251, 0, 0, 0, 8, 255, 32, + 0, 0, 2, 255, 128, 0, 0, 0, 191, 208, 0, 0, 0, 95, 244, 0, 0, 0, 14, 250, 0, 0, 0, 9, + 255, 16, 0, 0, 3, 255, 112, 0, 0, 0, 207, 192, 0, 0, 0, 111, 243, 0, 0, 0, 31, 249, 95, 255, + 255, 149, 255, 255, 249, 19, 51, 255, 144, 0, 15, 249, 0, 0, 255, 144, 0, 15, 249, 0, 0, 255, 144, 0, + 15, 249, 0, 0, 255, 144, 0, 15, 249, 0, 0, 255, 144, 0, 15, 249, 0, 0, 255, 144, 0, 15, 249, 0, + 0, 255, 144, 0, 15, 249, 0, 0, 255, 144, 0, 15, 249, 0, 0, 255, 144, 0, 15, 249, 95, 255, 255, 149, + 255, 255, 249, 19, 51, 51, 16, 0, 0, 5, 112, 0, 0, 0, 0, 2, 255, 96, 0, 0, 0, 0, 159, 253, + 0, 0, 0, 0, 30, 252, 247, 0, 0, 0, 8, 249, 63, 225, 0, 0, 1, 239, 48, 191, 128, 0, 0, 127, + 176, 3, 254, 16, 0, 30, 244, 0, 10, 249, 0, 7, 252, 0, 0, 47, 242, 0, 223, 80, 0, 0, 159, 160, + 111, 208, 0, 0, 2, 255, 61, 246, 0, 0, 0, 9, 251, 3, 51, 51, 51, 51, 51, 17, 255, 255, 255, 255, + 255, 245, 31, 255, 255, 255, 255, 255, 80, 191, 249, 0, 28, 255, 64, 1, 191, 209, 0, 8, 251, 0, 39, 190, + 254, 199, 16, 2, 255, 255, 255, 255, 193, 0, 170, 100, 53, 207, 247, 0, 0, 0, 0, 31, 251, 0, 0, 0, + 0, 14, 252, 0, 57, 206, 255, 255, 253, 8, 255, 255, 255, 255, 253, 95, 255, 133, 51, 62, 253, 191, 246, 0, + 0, 14, 253, 223, 241, 0, 0, 31, 253, 207, 242, 0, 0, 159, 253, 143, 252, 83, 91, 254, 253, 29, 255, 255, + 255, 135, 253, 1, 157, 254, 181, 4, 253, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 223, 208, + 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 223, 208, 0, 0, 0, 0, 13, 253, 6, 206, 236, 113, 0, + 223, 202, 255, 255, 255, 193, 13, 255, 249, 67, 92, 255, 160, 223, 249, 0, 0, 29, 255, 61, 255, 32, 0, 0, + 111, 247, 223, 240, 0, 0, 3, 255, 173, 254, 0, 0, 0, 47, 251, 223, 224, 0, 0, 2, 255, 189, 255, 0, + 0, 0, 63, 249, 223, 243, 0, 0, 7, 255, 125, 255, 144, 0, 1, 223, 242, 223, 255, 164, 53, 207, 250, 13, + 250, 207, 255, 255, 252, 16, 223, 80, 124, 238, 199, 16, 0, 0, 3, 140, 238, 219, 96, 7, 255, 255, 255, 250, + 5, 255, 231, 52, 106, 64, 239, 242, 0, 0, 0, 79, 249, 0, 0, 0, 7, 255, 80, 0, 0, 0, 159, 244, + 0, 0, 0, 9, 255, 64, 0, 0, 0, 127, 245, 0, 0, 0, 5, 255, 144, 0, 0, 0, 30, 254, 32, 0, + 0, 0, 127, 254, 115, 69, 153, 0, 143, 255, 255, 255, 160, 0, 57, 222, 253, 147, 0, 0, 0, 0, 0, 207, + 240, 0, 0, 0, 0, 12, 255, 0, 0, 0, 0, 0, 207, 240, 0, 0, 0, 0, 12, 255, 0, 0, 0, 0, + 0, 191, 240, 0, 108, 238, 199, 11, 255, 1, 191, 255, 255, 251, 191, 240, 143, 253, 99, 73, 255, 255, 31, 255, + 32, 0, 7, 255, 245, 255, 160, 0, 0, 31, 255, 143, 246, 0, 0, 0, 207, 249, 255, 64, 0, 0, 11, 255, + 159, 244, 0, 0, 0, 175, 248, 255, 80, 0, 0, 11, 255, 95, 248, 0, 0, 0, 239, 241, 255, 226, 0, 0, + 111, 255, 9, 255, 213, 52, 143, 255, 240, 27, 255, 255, 255, 185, 255, 0, 7, 206, 236, 96, 95, 240, 0, 3, + 157, 254, 199, 16, 0, 7, 255, 255, 255, 252, 16, 5, 255, 197, 52, 159, 251, 0, 223, 193, 0, 0, 159, 244, + 79, 246, 0, 0, 3, 255, 119, 255, 255, 255, 255, 255, 249, 159, 255, 255, 255, 255, 255, 153, 255, 99, 51, 51, + 51, 50, 127, 246, 0, 0, 0, 0, 4, 255, 160, 0, 0, 0, 0, 13, 255, 80, 0, 0, 1, 0, 79, 255, + 148, 51, 106, 224, 0, 110, 255, 255, 255, 254, 0, 0, 40, 206, 254, 200, 64, 0, 0, 75, 223, 235, 48, 0, + 127, 255, 255, 241, 0, 14, 255, 115, 69, 0, 2, 255, 160, 0, 0, 0, 63, 248, 0, 0, 2, 142, 255, 255, + 255, 0, 159, 255, 255, 255, 240, 1, 53, 255, 147, 51, 0, 0, 63, 248, 0, 0, 0, 3, 255, 128, 0, 0, + 0, 63, 248, 0, 0, 0, 3, 255, 128, 0, 0, 0, 63, 248, 0, 0, 0, 3, 255, 128, 0, 0, 0, 63, + 248, 0, 0, 0, 3, 255, 128, 0, 0, 0, 63, 248, 0, 0, 0, 3, 255, 128, 0, 0, 0, 63, 248, 0, + 0, 0, 0, 6, 206, 236, 112, 95, 240, 11, 255, 255, 255, 200, 255, 8, 255, 214, 52, 159, 255, 241, 239, 226, + 0, 0, 127, 255, 95, 249, 0, 0, 0, 239, 248, 255, 80, 0, 0, 12, 255, 159, 244, 0, 0, 0, 175, 249, + 255, 64, 0, 0, 10, 255, 143, 245, 0, 0, 0, 191, 245, 255, 128, 0, 0, 14, 255, 31, 254, 16, 0, 5, + 255, 240, 143, 253, 83, 72, 255, 255, 1, 191, 255, 255, 251, 191, 240, 0, 124, 238, 199, 11, 255, 0, 0, 0, + 0, 0, 207, 224, 0, 0, 0, 0, 14, 253, 1, 0, 0, 0, 7, 255, 144, 172, 133, 51, 90, 255, 242, 10, + 255, 255, 255, 255, 245, 0, 56, 189, 255, 236, 130, 0, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, + 0, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 223, 208, 0, 0, 0, 0, 13, 253, 5, 190, + 253, 146, 0, 223, 201, 255, 255, 255, 244, 13, 255, 251, 83, 91, 255, 192, 223, 250, 0, 0, 13, 255, 45, 255, + 64, 0, 0, 159, 244, 223, 240, 0, 0, 7, 255, 77, 254, 0, 0, 0, 127, 244, 223, 208, 0, 0, 7, 255, + 77, 253, 0, 0, 0, 127, 244, 223, 208, 0, 0, 7, 255, 77, 253, 0, 0, 0, 127, 244, 223, 208, 0, 0, + 7, 255, 77, 253, 0, 0, 0, 127, 244, 223, 208, 0, 0, 7, 255, 64, 158, 160, 255, 241, 158, 160, 0, 0, + 0, 0, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, 223, 208, + 223, 208, 223, 208, 223, 208, 0, 0, 158, 160, 0, 0, 255, 241, 0, 0, 158, 160, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, + 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, + 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 223, 208, 0, 0, 255, 192, 36, 74, + 255, 144, 111, 255, 254, 32, 94, 254, 179, 0, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 223, + 208, 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, 10, 255, + 128, 223, 208, 0, 9, 255, 144, 13, 253, 0, 8, 255, 160, 0, 223, 208, 7, 255, 176, 0, 13, 253, 5, 255, + 177, 0, 0, 223, 196, 255, 193, 0, 0, 13, 253, 239, 251, 0, 0, 0, 223, 255, 239, 247, 0, 0, 13, 255, + 145, 223, 244, 0, 0, 223, 208, 3, 255, 225, 0, 13, 253, 0, 7, 255, 176, 0, 223, 208, 0, 11, 255, 112, + 13, 253, 0, 0, 30, 255, 64, 223, 208, 0, 0, 79, 254, 16, 223, 221, 253, 223, 221, 253, 223, 221, 253, 223, + 221, 253, 223, 221, 253, 223, 221, 253, 223, 221, 253, 223, 221, 253, 223, 221, 253, 223, 208, 223, 96, 108, 238, 199, + 0, 24, 223, 236, 96, 13, 249, 175, 255, 255, 251, 45, 255, 255, 255, 144, 223, 255, 148, 55, 239, 254, 248, 67, + 143, 255, 61, 255, 144, 0, 6, 255, 246, 0, 0, 143, 247, 223, 243, 0, 0, 47, 254, 16, 0, 4, 255, 141, + 255, 0, 0, 1, 255, 192, 0, 0, 47, 249, 223, 224, 0, 0, 15, 251, 0, 0, 2, 255, 157, 253, 0, 0, + 0, 255, 176, 0, 0, 47, 249, 223, 208, 0, 0, 15, 251, 0, 0, 2, 255, 157, 253, 0, 0, 0, 255, 176, + 0, 0, 47, 249, 223, 208, 0, 0, 15, 251, 0, 0, 2, 255, 157, 253, 0, 0, 0, 255, 176, 0, 0, 47, + 249, 223, 208, 0, 0, 15, 251, 0, 0, 2, 255, 157, 253, 0, 0, 0, 255, 176, 0, 0, 47, 249, 223, 96, + 91, 239, 218, 48, 13, 249, 175, 255, 255, 255, 64, 223, 255, 181, 53, 191, 252, 13, 255, 160, 0, 0, 223, 242, + 223, 243, 0, 0, 9, 255, 77, 255, 0, 0, 0, 127, 244, 223, 224, 0, 0, 7, 255, 77, 253, 0, 0, 0, + 127, 244, 223, 208, 0, 0, 7, 255, 77, 253, 0, 0, 0, 127, 244, 223, 208, 0, 0, 7, 255, 77, 253, 0, + 0, 0, 127, 244, 223, 208, 0, 0, 7, 255, 77, 253, 0, 0, 0, 127, 244, 0, 3, 157, 238, 200, 32, 0, + 0, 127, 255, 255, 255, 229, 0, 6, 255, 230, 51, 126, 255, 48, 30, 255, 32, 0, 4, 255, 192, 95, 249, 0, + 0, 0, 191, 243, 143, 246, 0, 0, 0, 127, 246, 159, 244, 0, 0, 0, 111, 247, 159, 244, 0, 0, 0, 111, + 247, 127, 246, 0, 0, 0, 143, 246, 79, 250, 0, 0, 0, 207, 243, 13, 255, 32, 0, 4, 255, 192, 4, 255, + 230, 51, 126, 255, 64, 0, 110, 255, 255, 255, 245, 0, 0, 2, 141, 238, 216, 32, 0, 223, 112, 108, 239, 199, + 16, 13, 250, 175, 255, 255, 252, 16, 223, 255, 164, 53, 207, 251, 13, 255, 144, 0, 1, 239, 243, 223, 243, 0, + 0, 7, 255, 125, 255, 0, 0, 0, 79, 250, 223, 224, 0, 0, 2, 255, 189, 254, 0, 0, 0, 47, 251, 223, + 240, 0, 0, 4, 255, 157, 255, 48, 0, 0, 143, 247, 223, 250, 0, 0, 30, 255, 45, 255, 250, 67, 92, 255, + 160, 223, 203, 255, 255, 255, 193, 13, 253, 6, 206, 236, 112, 0, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, + 0, 0, 0, 223, 208, 0, 0, 0, 0, 13, 253, 0, 0, 0, 0, 0, 223, 208, 0, 0, 0, 0, 13, 253, + 0, 0, 0, 0, 0, 0, 6, 206, 236, 96, 95, 240, 11, 255, 255, 255, 184, 255, 8, 255, 214, 52, 159, 255, + 241, 255, 242, 0, 0, 127, 255, 95, 250, 0, 0, 1, 255, 248, 255, 96, 0, 0, 12, 255, 159, 244, 0, 0, + 0, 191, 249, 255, 64, 0, 0, 10, 255, 143, 245, 0, 0, 0, 191, 245, 255, 128, 0, 0, 14, 255, 31, 254, + 16, 0, 6, 255, 240, 159, 253, 83, 72, 255, 255, 1, 191, 255, 255, 251, 191, 240, 0, 124, 238, 199, 11, 255, + 0, 0, 0, 0, 0, 207, 240, 0, 0, 0, 0, 12, 255, 0, 0, 0, 0, 0, 207, 240, 0, 0, 0, 0, + 12, 255, 0, 0, 0, 0, 0, 207, 240, 0, 0, 0, 0, 12, 255, 223, 96, 59, 239, 157, 248, 95, 255, 247, + 223, 223, 231, 52, 45, 255, 209, 0, 0, 223, 245, 0, 0, 13, 255, 0, 0, 0, 223, 224, 0, 0, 13, 253, + 0, 0, 0, 223, 208, 0, 0, 13, 253, 0, 0, 0, 223, 208, 0, 0, 13, 253, 0, 0, 0, 223, 208, 0, + 0, 13, 253, 0, 0, 0, 0, 107, 223, 236, 147, 1, 207, 255, 255, 255, 225, 143, 250, 67, 71, 201, 10, 255, + 0, 0, 0, 0, 159, 246, 0, 0, 0, 3, 239, 252, 81, 0, 0, 3, 207, 255, 233, 32, 0, 0, 74, 255, + 254, 96, 0, 0, 1, 143, 255, 32, 0, 0, 0, 95, 246, 16, 0, 0, 4, 255, 107, 199, 67, 54, 223, 243, + 191, 255, 255, 255, 247, 3, 140, 239, 253, 164, 0, 0, 10, 243, 0, 0, 0, 31, 243, 0, 0, 0, 111, 243, + 0, 0, 41, 255, 255, 255, 243, 143, 255, 255, 255, 243, 19, 175, 245, 51, 48, 0, 159, 243, 0, 0, 0, 159, + 243, 0, 0, 0, 159, 243, 0, 0, 0, 159, 243, 0, 0, 0, 159, 243, 0, 0, 0, 159, 243, 0, 0, 0, + 159, 243, 0, 0, 0, 143, 245, 0, 0, 0, 95, 253, 83, 82, 0, 12, 255, 255, 245, 0, 1, 157, 254, 179, + 255, 192, 0, 0, 9, 255, 63, 252, 0, 0, 0, 159, 243, 255, 192, 0, 0, 9, 255, 63, 252, 0, 0, 0, + 159, 243, 255, 192, 0, 0, 9, 255, 63, 252, 0, 0, 0, 159, 243, 255, 192, 0, 0, 9, 255, 63, 252, 0, + 0, 0, 159, 243, 255, 192, 0, 0, 11, 255, 63, 253, 0, 0, 0, 239, 243, 223, 243, 0, 0, 127, 255, 57, + 255, 231, 69, 159, 255, 243, 29, 255, 255, 255, 214, 255, 48, 24, 223, 236, 129, 47, 243, 207, 242, 0, 0, 0, + 111, 248, 127, 247, 0, 0, 0, 191, 242, 31, 252, 0, 0, 2, 255, 176, 10, 255, 32, 0, 7, 255, 80, 4, + 255, 112, 0, 12, 254, 16, 0, 239, 208, 0, 47, 249, 0, 0, 143, 243, 0, 143, 243, 0, 0, 47, 248, 0, + 223, 192, 0, 0, 12, 253, 3, 255, 112, 0, 0, 6, 255, 56, 255, 16, 0, 0, 1, 255, 141, 250, 0, 0, + 0, 0, 175, 223, 244, 0, 0, 0, 0, 79, 255, 224, 0, 0, 0, 0, 13, 255, 128, 0, 0, 159, 243, 0, + 0, 47, 255, 32, 0, 3, 255, 133, 255, 112, 0, 7, 255, 247, 0, 0, 127, 244, 31, 251, 0, 0, 191, 239, + 176, 0, 11, 254, 0, 191, 224, 0, 31, 248, 255, 16, 1, 255, 176, 7, 255, 64, 5, 254, 31, 245, 0, 79, + 247, 0, 63, 247, 0, 159, 176, 207, 144, 8, 255, 32, 0, 239, 176, 14, 247, 8, 253, 0, 207, 208, 0, 10, + 255, 3, 255, 48, 79, 243, 31, 249, 0, 0, 111, 243, 127, 208, 0, 239, 116, 255, 80, 0, 1, 255, 123, 249, + 0, 10, 250, 143, 241, 0, 0, 12, 250, 239, 64, 0, 111, 235, 251, 0, 0, 0, 143, 239, 224, 0, 1, 255, + 239, 112, 0, 0, 4, 255, 250, 0, 0, 12, 255, 243, 0, 0, 0, 14, 255, 96, 0, 0, 143, 254, 0, 0, + 46, 254, 32, 0, 1, 223, 243, 6, 255, 176, 0, 9, 255, 112, 0, 175, 246, 0, 79, 252, 0, 0, 30, 254, + 33, 223, 226, 0, 0, 4, 255, 184, 255, 96, 0, 0, 0, 159, 255, 251, 0, 0, 0, 0, 29, 255, 225, 0, + 0, 0, 0, 46, 255, 243, 0, 0, 0, 0, 207, 254, 253, 16, 0, 0, 7, 255, 133, 255, 144, 0, 0, 63, + 252, 0, 175, 245, 0, 1, 223, 243, 0, 30, 254, 16, 9, 255, 112, 0, 5, 255, 160, 79, 252, 0, 0, 0, + 175, 246, 207, 242, 0, 0, 0, 111, 248, 95, 248, 0, 0, 0, 191, 242, 14, 253, 0, 0, 1, 255, 192, 8, + 255, 64, 0, 7, 255, 96, 2, 255, 144, 0, 12, 254, 16, 0, 191, 225, 0, 47, 249, 0, 0, 95, 245, 0, + 127, 244, 0, 0, 14, 251, 0, 223, 208, 0, 0, 8, 255, 19, 255, 112, 0, 0, 2, 255, 104, 255, 32, 0, + 0, 0, 191, 172, 251, 0, 0, 0, 0, 95, 239, 245, 0, 0, 0, 0, 14, 255, 224, 0, 0, 0, 0, 8, + 255, 144, 0, 0, 0, 0, 9, 255, 48, 0, 0, 0, 0, 30, 252, 0, 0, 0, 0, 0, 159, 245, 0, 0, + 0, 35, 73, 255, 192, 0, 0, 0, 143, 255, 254, 32, 0, 0, 0, 126, 253, 146, 0, 0, 0, 0, 9, 255, + 255, 255, 255, 244, 9, 255, 255, 255, 255, 244, 2, 51, 51, 53, 255, 209, 0, 0, 0, 12, 255, 48, 0, 0, + 0, 143, 246, 0, 0, 0, 4, 255, 176, 0, 0, 0, 29, 254, 16, 0, 0, 0, 175, 244, 0, 0, 0, 6, + 255, 128, 0, 0, 0, 46, 252, 0, 0, 0, 0, 207, 226, 0, 0, 0, 8, 255, 131, 51, 51, 49, 31, 255, + 255, 255, 255, 247, 31, 255, 255, 255, 255, 247, 0, 0, 4, 173, 241, 0, 0, 111, 255, 241, 0, 0, 239, 248, + 64, 0, 2, 255, 144, 0, 0, 3, 255, 96, 0, 0, 3, 255, 96, 0, 0, 3, 255, 96, 0, 0, 3, 255, + 96, 0, 0, 5, 255, 80, 0, 1, 93, 254, 16, 0, 111, 255, 179, 0, 0, 111, 253, 129, 0, 0, 20, 143, + 253, 0, 0, 0, 6, 255, 64, 0, 0, 3, 255, 96, 0, 0, 3, 255, 96, 0, 0, 3, 255, 96, 0, 0, + 3, 255, 96, 0, 0, 2, 255, 128, 0, 0, 1, 255, 229, 16, 0, 0, 143, 255, 241, 0, 0, 7, 223, 241, + 0, 0, 0, 1, 32, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, + 78, 244, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, 78, 244, 239, 64, 47, 218, 64, 0, 0, + 47, 255, 246, 0, 0, 4, 143, 254, 0, 0, 0, 9, 255, 32, 0, 0, 6, 255, 32, 0, 0, 6, 255, 32, + 0, 0, 6, 255, 32, 0, 0, 6, 255, 32, 0, 0, 5, 255, 80, 0, 0, 1, 239, 213, 16, 0, 0, 59, + 255, 245, 0, 0, 24, 223, 245, 0, 1, 223, 231, 65, 0, 5, 255, 96, 0, 0, 6, 255, 48, 0, 0, 6, + 255, 32, 0, 0, 6, 255, 32, 0, 0, 6, 255, 32, 0, 0, 8, 255, 32, 0, 1, 94, 254, 0, 0, 47, + 255, 247, 0, 0, 47, 252, 96, 0, 0, 2, 16, 0, 0, 0, 7, 223, 217, 48, 0, 2, 120, 255, 255, 255, + 182, 54, 233, 189, 83, 108, 255, 255, 255, 103, 16, 0, 4, 173, 252, 80, 10, 234, 0, 0, 174, 160, 0, 10, + 234, 3, 255, 244, 0, 63, 255, 64, 3, 255, 243, 63, 255, 64, 3, 255, 244, 0, 63, 255, 48, 174, 160, 0, + 10, 234, 0, 0, 174, 160, 10, 234, 3, 255, 244, 63, 255, 64, 174, 160, + ], +}; diff --git a/apps/v-maps/src/gesture.rs b/apps/v-maps/src/gesture.rs new file mode 100644 index 0000000..ce31723 --- /dev/null +++ b/apps/v-maps/src/gesture.rs @@ -0,0 +1,60 @@ +//! What a touch was, from where the finger went down and came up. + +/// A touch that moved this far sideways (and mostly sideways) is a swipe. +pub const SWIPE_PX: i32 = 70; +/// A touch that stayed within this far is a tap or a hold. +pub const TAP_PX: i32 = 36; +/// A touch held this long (and still) switches between the map turning with you and the map held where it is. +pub const HOLD_MS: u32 = 600; + +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +pub enum Gesture { + None, + Tap, + Hold, + SwipeRight, + SwipeLeft, +} + +/// `dx`, `dy`: how far the finger went from where it came down (right and down are positive); `held_ms`: for how long. +pub fn classify(dx: i32, dy: i32, held_ms: u32) -> Gesture { + let (ax, ay) = (dx.abs(), dy.abs()); + if ax >= SWIPE_PX && ax >= 2 * ay { + return if dx > 0 { Gesture::SwipeRight } else { Gesture::SwipeLeft }; + } + if ax.max(ay) <= TAP_PX { + return if held_ms >= HOLD_MS { Gesture::Hold } else { Gesture::Tap }; + } + Gesture::None +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn taps_holds_and_swipes() { + assert_eq!(classify(3, -4, 120), Gesture::Tap); + assert_eq!(classify(0, 0, 700), Gesture::Hold); + assert_eq!(classify(150, 20, 200), Gesture::SwipeRight); + assert_eq!(classify(-150, -30, 400), Gesture::SwipeLeft); + // a slow swipe is still a swipe, not a hold + assert_eq!(classify(120, 0, 1500), Gesture::SwipeRight); + } + + #[test] + fn a_diagonal_or_short_drag_is_nothing() { + assert_eq!(classify(100, 100, 200), Gesture::None); + assert_eq!(classify(100, -80, 200), Gesture::None); + assert_eq!(classify(50, 0, 200), Gesture::None); + assert_eq!(classify(0, 120, 200), Gesture::None); + } + + #[test] + fn the_edges_of_the_ranges() { + assert_eq!(classify(SWIPE_PX, 0, 100), Gesture::SwipeRight); + assert_eq!(classify(SWIPE_PX - 1, 0, 100), Gesture::None); + assert_eq!(classify(TAP_PX, 0, 100), Gesture::Tap); + assert_eq!(classify(TAP_PX + 1, 0, 100), Gesture::None); + } +} diff --git a/apps/v-maps/src/main.rs b/apps/v-maps/src/main.rs new file mode 100644 index 0000000..f8d7024 --- /dev/null +++ b/apps/v-maps/src/main.rs @@ -0,0 +1,361 @@ +#![cfg_attr(any(target_os = "none", wp2_sim), no_main, cfg_attr(target_os = "none", no_std))] + +//! V-maps: shows the drive that the Vela maps app on the phone is navigating. Protocol: `proto.rs`. + +// the host build (tests) has no device loop, so some of the protocol is unused there +mod font; +mod gesture; +#[rustfmt::skip] +mod fonts; +mod proto; +mod sign; +mod view; + +#[cfg(not(any(target_os = "none", wp2_sim)))] +fn main() {} + +#[cfg(any(target_os = "none", wp2_sim))] +mod device { + use crate::gesture::{Gesture, classify}; + use crate::proto::{ASK, Effect, HOME, Model, WORK}; + use crate::view::{self, Choice, Ctx, ZOOMS}; + use cmf_wp2_app::{Api, BUTTON, MSG_MAX, PAUSE, RESUME, TOUCH_DOWN, TOUCH_UP}; + + cmf_wp2_app::entry!(main); + cmf_wp2_app::app_icon!(); + + /// Ask for a snapshot again this often while none comes. + const ASK_MS: u32 = 3000; + /// The phone sends the drive every second; after this long without one it is out of reach. + const STALE_MS: u32 = 6000; + /// Minimum gap between frames. The renderer now reuses one map transform per frame, making a 20 ms target + /// more realistic; actual frame rate remains bounded by the drawing time and loader. + const GAP_MS: u32 = 20; + /// Position glides over the GPS reporting interval. Kept independent from heading updates. + const POSITION_ANIM_MS: u32 = 1000; + /// Heading catches up between phone reports instead of sharing/restarting the position animation. + const HEADING_ANIM_MS: u32 = 240; + /// After the last frame of zooming or turning (drawn with cheaper hard-edged streets), this long later the + /// screen is drawn once more in full quality. + const SETTLE_MS: u32 = 300; + /// After Home or Work was pressed, this long for the phone's route to arrive before the watch gives up waiting. + const GOING_MS: u32 = 12_000; + /// A hint on the menu ("Open Vela on the phone") stays this long. + const NOTE_MS: u32 = 5000; + /// Between full frames the car moves on a cheap band-only frame; the text and the arc are refreshed this + /// often at most (they change in tens of metres). + const FULL_MS: u32 = 1000; + /// The phone already smooths its compass. Keep only a small watch-side deadband (about 0.35°) for jitter. + const HEADING_DEAD: i32 = 64; + /// The arrow is repainted only when it has turned this much (1.5 degrees). + const REPAINT: i32 = 273; + /// The most the heading on screen turns between two frames (22.5 degrees): after a slow frame the glide + /// catches up over several frames instead of jumping. + const MAX_TURN: i32 = 4096; + + /// What the text shows, to the precision they show it. + fn text_key(s: &crate::proto::State) -> [u32; 2] { + [s.dist_m as u32 / 10, s.remaining_s as u32 / 60] + } + + // 4 KiB of route: too big for the 8 KiB stack + static mut MODEL: Model = Model::new(); + + // true on RESUME, false on BUTTON + fn paused(api: &Api) -> bool { + loop { + match api.event(u32::MAX).map(|e| e.kind) { + Some(RESUME) => return true, + Some(BUTTON) => return false, + _ => {} + } + } + } + + fn main(api: &'static Api) -> i32 { + // SAFETY: the app has one thread and this is the only reference. + let m = unsafe { &mut *core::ptr::addr_of_mut!(MODEL) }; + let zoom = 0; // one zoom only: the closest (no zooming) + let mut want; + let mut asked: Option = None; + // asks so far without an answer: the gap doubles (3 s, 6 s ... 60 s) so a phone with no Vela hears almost nothing + let mut tries = 0u32; + let mut heard: Option = None; + let mut dirty = true; + let mut drawn_end = 0u32; + // Position and heading use separate animation clocks. A frequent GPS coordinate update must never + // restart an unfinished heading transition. + let mut shown_xy = (0i32, 0i32); + let (mut pos_from, mut pos_target, mut pos_last_raw) = (shown_xy, shown_xy, shown_xy); + let mut pos_t0 = 0u32; + let mut shown_heading = 0u16; + let (mut heading_from, mut heading_target, mut raw_heading_last) = (shown_heading, shown_heading, shown_heading); + let mut heading_t0 = 0u32; + let mut fresh = true; + let mut settle_at: Option = None; + let mut live = false; + // true: the arrow turns to where the phone looks and the map stays; false: the map turns, the arrow is up + let mut look = true; + // the way the map is turned while it is held still (north up at first); holding the screen freezes it where it is + let mut map_heading = 0u16; + // a touch: when and where the finger came down + let mut touch0: Option<(u32, i32, i32)> = None; + // the menu: swiped open during a drive (it is always there when there is no drive), the button under the finger, + // the button that was pressed while the phone's route is awaited (with when, and whether the old drive has + // ended), and a hint that Vela did not answer + let mut menu_open = false; + let mut menu_shown = false; + let mut menu_dirty = false; + let mut pressed: Option = None; + let mut going: Option<(Choice, u32, bool)> = None; + let mut note: Option = None; + let mut last_drawn_heading = 0u16; + let mut last_map_heading = 0u16; + let mut last_full = 0u32; + let mut stale = false; // the text or arc on screen is out of date + let mut drawn_at_xy = (i32::MIN, i32::MIN); + let mut screen_on = false; + loop { + let now = api.now(); + want = !m.synced; + if want && asked.is_none_or(|t| now.wrapping_sub(t) >= (ASK_MS << tries.min(4)).min(60_000)) { + api.send(&ASK); // -107 while Vela is not listening: asked again in 3 s + asked = Some(now); + tries += 1; + } + let is_live = heard.is_some_and(|t| now.wrapping_sub(t) < STALE_MS); + if is_live != live { + live = is_live; + dirty = true; + if !live { + (m.synced, asked) = (false, None); + m.reset_seq(); + } + } + let on = live && m.state.active(); + if on != screen_on { + screen_on = on; + api.keep_screen_on(on); + } + // The phone reports position and heading together, but they must not share an animation clock. + // Heading updates arrive more often and now animate independently between reports. + let raw = (m.state.x, m.state.y, m.state.course); + if !(live && m.state.active()) { + shown_xy = (raw.0, raw.1); + (pos_from, pos_target, pos_last_raw) = (shown_xy, shown_xy, shown_xy); + pos_t0 = now; + shown_heading = raw.2; + (heading_from, heading_target, raw_heading_last) = (raw.2, raw.2, raw.2); + heading_t0 = now; + fresh = true; + } else if fresh { + shown_xy = (raw.0, raw.1); + (pos_from, pos_target, pos_last_raw) = (shown_xy, shown_xy, shown_xy); + pos_t0 = now; + shown_heading = raw.2; + (heading_from, heading_target, raw_heading_last) = (raw.2, raw.2, raw.2); + heading_t0 = now; + fresh = false; + } else { + if (raw.0, raw.1) != pos_last_raw { + // Retarget from the current interpolated position, not from a stale frame or the old GPS fix. + let current = view::interpolate_position(pos_from, pos_target, now.wrapping_sub(pos_t0), POSITION_ANIM_MS); + let far = (raw.0 as i64 - current.0 as i64).abs() > 400 + || (raw.1 as i64 - current.1 as i64).abs() > 400; + pos_from = if far { (raw.0, raw.1) } else { current }; + pos_target = (raw.0, raw.1); + pos_last_raw = (raw.0, raw.1); + pos_t0 = now; + } + if raw.2 != raw_heading_last { + raw_heading_last = raw.2; + let d = heading_target.wrapping_sub(raw.2) as i16 as i32; + if d.abs() > HEADING_DEAD { + // Preserve the currently displayed heading when a newer compass sample arrives. + // This prevents the new sample from snapping or restarting the position animation. + // Start from the value actually shown on the previous frame. Using the ideal + // interpolation endpoint here would jump ahead if MAX_TURN had rate-limited it. + heading_from = shown_heading; + heading_target = raw.2; + heading_t0 = now; + } + } + } + shown_xy = view::interpolate_position(pos_from, pos_target, now.wrapping_sub(pos_t0), POSITION_ANIM_MS); + let before_heading = shown_heading; + shown_heading = view::interpolate_heading(heading_from, heading_target, now.wrapping_sub(heading_t0), HEADING_ANIM_MS); + shown_heading = view::limit_turn(before_heading, shown_heading, MAX_TURN); + let moving = shown_xy != pos_target || shown_heading != heading_target; + let gap = GAP_MS; + // the text in the dome is out of date: repaint just the dome, once a second at most + let dome = stale && !dirty && last_full != 0 && now.wrapping_sub(last_full) >= FULL_MS; + if settle_at.is_some_and(|t| now.wrapping_sub(t) as i32 >= 0) && !moving { + (dirty, settle_at) = (true, None); + } + // the menu: a still screen that takes the place of the map; nothing of the map is drawn meanwhile + if let Some((c, t0, mut left)) = going { + left |= !on; + going = if on && left { + menu_open = false; // the new drive is here + None + } else if now.wrapping_sub(t0) >= GOING_MS { + (menu_open, note, menu_dirty) = (on, Some(now), true); // the phone did not answer + None + } else { + Some((c, t0, left)) + }; + } + if note.is_some_and(|t| now.wrapping_sub(t) >= NOTE_MS) { + (note, menu_dirty) = (None, true); + } + let menu_screen = going.is_some() || menu_open || !on; + if menu_screen != menu_shown { + menu_shown = menu_screen; + // back to the map: it is drawn in full first (nothing of it is on the screen) + if menu_screen { menu_dirty = true } else { dirty = true } + (settle_at, last_full) = (None, 0); + } + let heading_moved = (shown_heading.wrapping_sub(last_drawn_heading) as i16 as i32).abs() >= REPAINT; + // with the map fixed, a change of heading alone repaints only the patch round the arrow + // has the map moved a whole pixel (or turned a quarter degree) since it was drawn? Less is the same picture + let mpp = ZOOMS[zoom.min(ZOOMS.len() - 1)]; + let shifted = (shown_xy.0 - drawn_at_xy.0).abs().max((shown_xy.1 - drawn_at_xy.1).abs()) >= mpp + || (!look && (shown_heading.wrapping_sub(last_map_heading) as i16 as i32).abs() >= 36); + let arrow_only = look && !dirty && !dome && !shifted && heading_moved; + // a moving car repaints the screen in the cheap style, when it would look different + let light = !dirty && !dome && !arrow_only && shifted && last_full != 0; + if menu_screen { + if (dirty || menu_dirty) && now.wrapping_sub(drawn_end) >= gap { + let mut screen = api; + if let Some((c, _, _)) = going { + view::going(&mut screen, c); + } else { + let title = if note.is_some() { + "Open Vela on the phone" + } else if !live { + "Waiting for Vela…" + } else if !on { + "Start a destination" + } else { + "Go to" + }; + view::menu(&mut screen, title, if menu_open && on { "Swipe left to go back" } else { "" }, pressed); + } + api.show(); + (dirty, menu_dirty, drawn_end, last_full) = (false, false, api.now(), 0); + continue; + } + } else if (dirty || dome || arrow_only || light) && now.wrapping_sub(drawn_end) >= gap { + let mut screen = api; + (m.state.x, m.state.y, m.state.course) = (shown_xy.0, shown_xy.1, shown_heading); + if look { + m.state.course = map_heading; + } + let fast = !arrow_only && !dome && moving; + let ctx = Ctx { live, zoom, fast, look: look.then_some(shown_heading.wrapping_sub(map_heading)), arrow_only, light, dome }; + view::draw(&mut screen, m, &ctx); + (m.state.x, m.state.y, m.state.course) = raw; + api.show(); + let end = api.now(); + (dirty, drawn_end) = (false, end); + if dome { + // the dome is fresh; the map and the arrow were not touched + (last_full, stale) = (end.max(1), false); + continue; + } + last_drawn_heading = shown_heading; + if !arrow_only { + (drawn_at_xy, last_map_heading) = (shown_xy, shown_heading); + } + if !arrow_only && !light { + (last_full, stale) = (end.max(1), false); + } + settle_at = (fast || light).then(|| end.wrapping_add(SETTLE_MS)); + continue; + } + let mut wait = if dirty || menu_dirty || moving || stale { gap.saturating_sub(now.wrapping_sub(drawn_end)).max(1) } else { 1000 }; + if let Some(t) = settle_at { + wait = wait.min((t.wrapping_sub(now) as i32).max(1) as u32); + } + let mut ev = api.event(wait); + // everything that is already waiting is handled before the next frame: several crown clicks are one + // zoom change, not one frame each + while let Some(e) = ev { + match e { + e if e.kind == BUTTON => return 0, + e if e.kind == TOUCH_DOWN => { + touch0 = Some((api.now(), e.x as i32, e.y as i32)); + if menu_screen && going.is_none() { + pressed = view::button_at(e.x as i32, e.y as i32); + menu_dirty = pressed.is_some(); + } + } + e if e.kind == TOUCH_UP => { + let Some((t, x0, y0)) = touch0.take() else { continue }; + let down = pressed.take(); + menu_dirty |= down.is_some(); // the button lets go + match classify(e.x as i32 - x0, e.y as i32 - y0, api.now().wrapping_sub(t)) { + Gesture::SwipeRight if !menu_screen => (menu_open, menu_dirty) = (true, true), + Gesture::SwipeLeft if menu_open && going.is_none() => (menu_open, dirty) = (false, true), + Gesture::Tap if menu_screen && going.is_none() => { + if let Some(c) = down.filter(|&c| view::button_at(e.x as i32, e.y as i32) == Some(c)) { + if api.send(if c == Choice::Home { &HOME } else { &WORK }) < 0 { + (note, menu_dirty) = (Some(api.now()), true); // Vela is not listening + } else { + (going, menu_open, menu_dirty) = (Some((c, api.now(), !on)), false, true); + } + } + } + Gesture::Hold if !menu_screen => { + look = !look; + if look { + map_heading = shown_heading; // hold the map as it is turned now + } + dirty = true; + } + _ => {} + } + } + e if e.kind == PAUSE => { + (screen_on, touch0, pressed) = (false, None, None); + if !paused(api) { + return 0; + } + // messages were refused meanwhile + (m.synced, asked, dirty) = (false, None, true); + m.reset_seq(); + } + _ => {} + } + ev = api.event(0); + } + let mut buf = [0u8; MSG_MAX]; + while let Some(msg) = api.recv(&mut buf) { + let before = m.state; + match m.apply(msg) { + Effect::Ignored => continue, + // a drive state: the car's own movement is glided in the loop above; a new manoeuvre, route + // state or the like is drawn at once, a changed distance or time within a second + Effect::Changed if msg.get(2) == Some(&b'S') => { + let (a, b) = (before, m.state); + if (a.flags, a.maneuver) != (b.flags, b.maneuver) { + dirty = true; + } else if text_key(&a) != text_key(&b) { + stale = true; + } + } + Effect::Changed => dirty = true, + Effect::Resync => { + dirty = true; + if !want { + asked = None; // ask right away + } + } + } + heard = Some(api.now()); + tries = 0; + want = !m.synced; + } + } + } +} diff --git a/apps/v-maps/src/proto.rs b/apps/v-maps/src/proto.rs new file mode 100644 index 0000000..8d892bd --- /dev/null +++ b/apps/v-maps/src/proto.rs @@ -0,0 +1,741 @@ +//! The Vela ↔ watch protocol and the navigation model it fills. Pure: no `Api`, so `make test` covers it. +//! +//! Every message starts with the magic `n1`. Phone → watch messages then carry a kind byte and a `seq` byte that +//! counts every phone message (wrapping); a gap makes the watch ask for a snapshot again. All numbers are +//! little-endian. +//! +//! | Kind | Body | Meaning | +//! |---|---|---| +//! | `S` | flags u8, maneuver u8, dist u16 m, after u8, after dist u16 m, remaining u16 (10 m), remaining u16 s, limit u8, x i32 m, y i32 m, course u16, progress u16 | the drive, about once a second | +//! | `T` | UTF-8, ≤ 100 B | the road being entered (or the destination on arrival) | +//! | `B` | id u8, count u16, scale u8 (m per unit) | a new route line begins | +//! | `R` | id u8, start u16, n u8, n × (x i16, y i16) | route points `start..start+n`, n ≤ 30 | +//! | `E` | id u8, count u16 | the route line is complete | +//! | `N` | id u8, lines u8, scale u8, centre x i32, centre y i32 | nearby-road context begins | +//! | `G` | id u8, line u8, start u8, n u8, n × (x i16, y i16) | nearby-road points, n ≤ 28 | +//! | `O` | id u8, lines u8, points u16 | nearby-road context is complete | +//! +//! Nearby-road points are local metre offsets from the phone fix at the time of collection. The `N` centre is +//! that fix in the route's coordinate frame. This keeps the BLE channel free of latitude/longitude. +//! +//! Watch → phone: `n1Q`, "send me everything" (on start, after a gap, after `RESUME`, and while nothing arrives); +//! `n1H` and `n1W`, "take me Home" and "take me to Work". +//! +//! Positions are metres east (`x`) and north (`y`) of an origin the phone picks per drive, never latitude and +//! longitude: the channel can be read by anyone in Bluetooth range. `course` is the heading in 1/65536 turns +//! clockwise from north. `progress` is the index of the first route point still ahead of the car. + +pub const ASK: [u8; 3] = *b"n1Q"; +/// Watch → phone: "navigate to Home" and "to Work" (the places saved in Vela). A drive that is on is ended first. +pub const HOME: [u8; 3] = *b"n1H"; +pub const WORK: [u8; 3] = *b"n1W"; +pub const ROUTE_MAX: usize = 512; +pub const TEXT_MAX: usize = 100; +pub const CHUNK_MAX: usize = 30; +pub const ROADS_POINTS_MAX: usize = 480; +pub const ROADS_LINES_MAX: usize = 40; +pub const ROADS_CHUNK_MAX: usize = 28; + +pub const F_ACTIVE: u8 = 1 << 0; +pub const F_ARRIVED: u8 = 1 << 1; +pub const F_IMPERIAL: u8 = 1 << 3; +pub const F_FIX: u8 = 1 << 4; +/// This state ends the snapshot the watch asked for with `n1Q`: everything before it in the run is current. +pub const F_SNAPSHOT: u8 = 1 << 6; + +/// Maneuver codes, the same numbers as Vela's `DeviceManeuver`. +pub mod man { + pub const CONTINUE: u8 = 1; + pub const SLIGHT_LEFT: u8 = 2; + pub const LEFT: u8 = 3; + pub const SHARP_LEFT: u8 = 4; + pub const SLIGHT_RIGHT: u8 = 5; + pub const RIGHT: u8 = 6; + pub const SHARP_RIGHT: u8 = 7; + pub const KEEP_LEFT: u8 = 8; + pub const KEEP_RIGHT: u8 = 9; + pub const UTURN: u8 = 10; + pub const ROUNDABOUT: u8 = 11; + pub const OFF_ROUTE: u8 = 12; + pub const ARRIVE: u8 = 13; +} + +#[derive(Clone, Copy, Default, PartialEq, Debug)] +pub struct State { + pub flags: u8, + pub maneuver: u8, + pub dist_m: u16, + pub after: u8, + pub after_m: u16, + pub remaining_10m: u16, + pub remaining_s: u16, + pub limit: u8, + pub x: i32, + pub y: i32, + pub course: u16, + pub progress: u16, +} + +impl State { + pub fn active(&self) -> bool { + self.flags & F_ACTIVE != 0 + } + pub fn arrived(&self) -> bool { + self.flags & F_ARRIVED != 0 + } + pub fn imperial(&self) -> bool { + self.flags & F_IMPERIAL != 0 + } + pub fn fix(&self) -> bool { + self.flags & F_FIX != 0 + } +} + +/// What a message did to the model. +#[derive(Clone, Copy, PartialEq, Debug)] +pub enum Effect { + /// Not ours or malformed: ignored. + Ignored, + /// Applied; the screen is out of date. + Changed, + /// Messages were lost: ask the phone for a snapshot (`ASK`). + Resync, +} + +pub struct Model { + pub state: State, + /// A state arrived since the last `reset` (the screen shows "waiting" until then). + pub has_state: bool, + /// A state with `F_SNAPSHOT` arrived after the last gap: the watch has everything. + pub synced: bool, + text: [u8; TEXT_MAX], + text_len: usize, + pub route: [[i32; 2]; ROUTE_MAX], + /// Points of a complete route line; 0 while none (or while a new one arrives). + pub route_len: usize, + route_id: Option, + route_count: usize, + route_got: usize, + route_scale: i32, + /// Nearby roads as local offsets from `roads_center`, with one start and length per polyline. + pub roads: [[i16; 2]; ROADS_POINTS_MAX], + pub roads_len: usize, + pub roads_starts: [u16; ROADS_LINES_MAX], + pub roads_sizes: [u8; ROADS_LINES_MAX], + pub roads_count: usize, + pub roads_center: [i32; 2], + // a set being received: the streets already shown stay until the whole new set has arrived + stage: [[i16; 2]; ROADS_POINTS_MAX], + stage_len: usize, + stage_starts: [u16; ROADS_LINES_MAX], + stage_sizes: [u8; ROADS_LINES_MAX], + stage_center: [i32; 2], + /// One bit per street segment (by the index of its first point): the segment lies along the route, which + /// is drawn over it, so it is not drawn. Worked out once per street set, not per frame. + hidden: [u32; ROADS_POINTS_MAX.div_ceil(32)], + roads_id: Option, + roads_expected: usize, + roads_got: usize, + roads_points_expected: usize, + last_seq: Option, +} + +fn u16_at(b: &[u8], i: usize) -> u16 { + u16::from_le_bytes([b[i], b[i + 1]]) +} +fn i16_at(b: &[u8], i: usize) -> i16 { + i16::from_le_bytes([b[i], b[i + 1]]) +} +fn i32_at(b: &[u8], i: usize) -> i32 { + i32::from_le_bytes([b[i], b[i + 1], b[i + 2], b[i + 3]]) +} + +impl Model { + pub const fn new() -> Model { + Model { + state: State { + flags: 0, + maneuver: 0, + dist_m: 0, + after: 0, + after_m: 0, + remaining_10m: 0, + remaining_s: 0, + limit: 0, + x: 0, + y: 0, + course: 0, + progress: 0, + }, + has_state: false, + synced: false, + text: [0; TEXT_MAX], + text_len: 0, + route: [[0; 2]; ROUTE_MAX], + route_len: 0, + route_id: None, + route_count: 0, + route_got: 0, + route_scale: 1, + roads: [[0; 2]; ROADS_POINTS_MAX], + roads_len: 0, + roads_starts: [0; ROADS_LINES_MAX], + roads_sizes: [0; ROADS_LINES_MAX], + roads_count: 0, + roads_center: [0; 2], + stage: [[0; 2]; ROADS_POINTS_MAX], + stage_len: 0, + stage_starts: [0; ROADS_LINES_MAX], + stage_sizes: [0; ROADS_LINES_MAX], + stage_center: [0; 2], + hidden: [0; ROADS_POINTS_MAX.div_ceil(32)], + roads_id: None, + roads_expected: 0, + roads_got: 0, + roads_points_expected: 0, + last_seq: None, + } + } + + /// Forget the sequence (after a pause or a resync request): the next message starts a new run. + pub fn reset_seq(&mut self) { + self.last_seq = None; + } + + /// The road line, cut on a character boundary. + pub fn text(&self) -> &str { + cmf_wp2_ui::text::fit(&self.text[..self.text_len], TEXT_MAX) + } + + pub fn apply(&mut self, m: &[u8]) -> Effect { + let [b'n', b'1', kind, seq, body @ ..] = m else { + return Effect::Ignored; + }; + let gap = self.last_seq.is_some_and(|l| *seq != l.wrapping_add(1)); + self.last_seq = Some(*seq); + if gap { + self.synced = false; + } + let applied = match kind { + b'S' => self.on_state(body), + b'T' => self.on_text(body), + b'B' => self.on_begin(body), + b'R' => self.on_points(body), + b'E' => self.on_end(body), + b'N' => self.on_roads_begin(body), + b'G' => self.on_roads_points(body), + b'O' => self.on_roads_end(body), + _ => Some(false), + }; + match applied { + None => { + self.synced = false; + Effect::Resync + } + Some(_) if gap => Effect::Resync, + Some(true) => Effect::Changed, + Some(false) => Effect::Ignored, + } + } + + // Each handler: Some(true) applied, Some(false) malformed (ignored), None the route broke (resync). + + fn on_state(&mut self, b: &[u8]) -> Option { + if b.len() < 24 { + return Some(false); + } + self.state = State { + flags: b[0], + maneuver: b[1], + dist_m: u16_at(b, 2), + after: b[4], + after_m: u16_at(b, 5), + remaining_10m: u16_at(b, 7), + remaining_s: u16_at(b, 9), + limit: b[11], + x: i32_at(b, 12), + y: i32_at(b, 16), + course: u16_at(b, 20), + progress: u16_at(b, 22), + }; + self.has_state = true; + if self.state.flags & F_SNAPSHOT != 0 { + self.synced = true; + } + if !self.state.active() { + // no drive: drop the line so a later drive never shows the previous one + self.route_len = 0; + self.route_id = None; + self.roads_len = 0; + self.roads_count = 0; + self.roads_id = None; + } + Some(true) + } + + fn on_text(&mut self, b: &[u8]) -> Option { + let t = cmf_wp2_ui::text::fit(b, TEXT_MAX); + self.text[..t.len()].copy_from_slice(t.as_bytes()); + self.text_len = t.len(); + Some(true) + } + + fn on_begin(&mut self, b: &[u8]) -> Option { + if b.len() < 4 { + return Some(false); + } + let count = u16_at(b, 1) as usize; + if count > ROUTE_MAX || b[3] == 0 { + return Some(false); + } + (self.route_id, self.route_count, self.route_got, self.route_scale) = (Some(b[0]), count, 0, b[3] as i32); + self.route_len = 0; + Some(true) + } + + fn on_points(&mut self, b: &[u8]) -> Option { + if b.len() < 4 { + return Some(false); + } + let (id, start, n) = (b[0], u16_at(b, 1) as usize, b[3] as usize); + if self.route_id != Some(id) { + self.route_len = 0; // a chunk of a line whose begin we missed: the line shown is old + return None; + } + if b.len() < 4 + 4 * n || n > CHUNK_MAX || start != self.route_got || start + n > self.route_count { + self.route_id = None; + return None; + } + for i in 0..n { + let at = 4 + 4 * i; + self.route[start + i] = + [i16_at(b, at) as i32 * self.route_scale, i16_at(b, at + 2) as i32 * self.route_scale]; + } + self.route_got += n; + Some(false) // nothing to show until the end + } + + fn on_end(&mut self, b: &[u8]) -> Option { + if b.len() < 3 { + return Some(false); + } + if self.route_id != Some(b[0]) || u16_at(b, 1) as usize != self.route_got || self.route_got != self.route_count + { + self.route_id = None; + return None; + } + self.route_len = self.route_got; + self.hide_under_route(); + Some(true) + } + + fn on_roads_begin(&mut self, b: &[u8]) -> Option { + if b.len() < 11 { + return Some(false); + } + let lines = b[1] as usize; + let scale = b[2] as i32; + if lines > ROADS_LINES_MAX || scale != 1 { + return Some(false); + } + self.roads_id = Some(b[0]); + self.roads_expected = lines; + self.roads_got = 0; + self.roads_points_expected = 0; + self.stage_len = 0; + self.stage_center = [i32_at(b, 3), i32_at(b, 7)]; + self.stage_starts = [0; ROADS_LINES_MAX]; + self.stage_sizes = [0; ROADS_LINES_MAX]; + Some(true) + } + + fn on_roads_points(&mut self, b: &[u8]) -> Option { + if b.len() < 4 { + return Some(false); + } + let (id, line, start, n) = (b[0], b[1] as usize, b[2] as usize, b[3] as usize); + if self.roads_id != Some(id) || line >= self.roads_expected { + self.roads_id = None; + return None; + } + if n == 0 || n > ROADS_CHUNK_MAX || b.len() < 4 + n * 4 + || start != self.stage_sizes[line] as usize + || self.stage_len + n > ROADS_POINTS_MAX + || start + n > u8::MAX as usize + { + self.roads_id = None; + return None; + } + if start == 0 { + self.stage_starts[line] = self.stage_len as u16; + self.roads_got += 1; + } + for i in 0..n { + let at = 4 + i * 4; + self.stage[self.stage_len + i] = [i16_at(b, at), i16_at(b, at + 2)]; + } + self.stage_len += n; + self.stage_sizes[line] = (start + n) as u8; + self.roads_points_expected += n; + Some(false) + } + + fn on_roads_end(&mut self, b: &[u8]) -> Option { + if b.len() < 4 { + return Some(false); + } + let (id, lines, points) = (b[0], b[1] as usize, u16_at(b, 2) as usize); + if self.roads_id != Some(id) || lines != self.roads_expected || self.roads_got != lines + || points != self.stage_len || points != self.roads_points_expected + || self.stage_sizes[..lines].iter().any(|n| *n < 2) + { + self.roads_id = None; + return None; + } + // the new set is whole: swap it in at once, the old streets stay on screen until this moment + self.roads_len = self.stage_len; + self.roads_center = self.stage_center; + self.roads_starts = self.stage_starts; + self.roads_sizes = self.stage_sizes; + let n = self.stage_len; + self.roads[..n].copy_from_slice(&self.stage[..n]); + self.roads_count = lines; + self.roads_id = None; + self.hide_under_route(); + Some(true) + } + /// Whether the street segment starting at point `i` lies along the route (see `hidden`). + pub fn under_route(&self, i: usize) -> bool { + self.route_len >= 2 && self.hidden.get(i / 32).is_some_and(|w| w >> (i % 32) & 1 != 0) + } + + /// Marks every street segment that lies within `UNDER_M` of the route, all of it: both ends and the middle. + /// Each street line only meets the route segments whose box overlaps its own, so this stays cheap. + fn hide_under_route(&mut self) { + self.hidden = [0; ROADS_POINTS_MAX.div_ceil(32)]; + if self.route_len < 2 || self.roads_count == 0 { + return; + } + let route = &self.route[..self.route_len]; + let at = |i: usize| [self.roads_center[0] + self.roads[i][0] as i32, self.roads_center[1] + self.roads[i][1] as i32]; + for l in 0..self.roads_count.min(ROADS_LINES_MAX) { + let start = self.roads_starts[l] as usize; + let end = (start + self.roads_sizes[l] as usize).min(self.roads_len); + if end < start + 2 { + continue; + } + let (mut lo, mut hi) = (at(start), at(start)); + for i in start..end { + let p = at(i); + (lo, hi) = ([lo[0].min(p[0]), lo[1].min(p[1])], [hi[0].max(p[0]), hi[1].max(p[1])]); + } + let (lo, hi) = ([lo[0] - UNDER_M, lo[1] - UNDER_M], [hi[0] + UNDER_M, hi[1] + UNDER_M]); + let meets = |w: &[[i32; 2]]| { + w[0][0].max(w[1][0]) >= lo[0] && w[0][0].min(w[1][0]) <= hi[0] + && w[0][1].max(w[1][1]) >= lo[1] && w[0][1].min(w[1][1]) <= hi[1] + }; + let near = |p: [i32; 2]| route.windows(2).any(|w| meets(w) && seg_dist2(p, w[0], w[1]) <= (UNDER_M * UNDER_M) as i64); + for i in start..end - 1 { + let (a, b) = (at(i), at(i + 1)); + let mid = [(a[0] + b[0]) / 2, (a[1] + b[1]) / 2]; + if near(a) && near(b) && near(mid) { + self.hidden[i / 32] |= 1 << (i % 32); + } + } + } + } +} + +/// How close to the route a street must be to be hidden under it (the route line is 16 px wide: 8 m at the +/// closest zoom). +const UNDER_M: i32 = 5; + +/// Squared distance from `p` to the segment `a`..`b`. +fn seg_dist2(p: [i32; 2], a: [i32; 2], b: [i32; 2]) -> i64 { + let (px, py, ax, ay) = (p[0] as i64, p[1] as i64, a[0] as i64, a[1] as i64); + let (dx, dy) = (b[0] as i64 - ax, b[1] as i64 - ay); + let len2 = dx * dx + dy * dy; + let t = if len2 == 0 { 0 } else { (((px - ax) * dx + (py - ay) * dy) * 1024 / len2).clamp(0, 1024) }; + let (cx, cy) = (ax + dx * t / 1024, ay + dy * t / 1024); + (px - cx) * (px - cx) + (py - cy) * (py - cy) +} + +impl Default for Model { + fn default() -> Self { + Model::new() + } +} + +#[cfg(test)] +pub mod enc { + //! The phone side, for tests: what Vela's encoder must produce. + use super::*; + use std::vec::Vec; + + pub fn msg(kind: u8, seq: u8, body: &[u8]) -> Vec { + let mut v = vec![b'n', b'1', kind, seq]; + v.extend_from_slice(body); + assert!(v.len() <= 128); + v + } + + pub fn state(seq: u8, s: &State) -> Vec { + let mut b = vec![s.flags, s.maneuver]; + b.extend(s.dist_m.to_le_bytes()); + b.push(s.after); + b.extend(s.after_m.to_le_bytes()); + b.extend(s.remaining_10m.to_le_bytes()); + b.extend(s.remaining_s.to_le_bytes()); + b.push(s.limit); + b.extend(s.x.to_le_bytes()); + b.extend(s.y.to_le_bytes()); + b.extend(s.course.to_le_bytes()); + b.extend(s.progress.to_le_bytes()); + msg(b'S', seq, &b) + } + + /// Begin, chunks and end for a line of points in metres; returns the messages and the next seq. + pub fn route(mut seq: u8, id: u8, pts: &[[i32; 2]]) -> (Vec>, u8) { + let max = pts.iter().flat_map(|p| p.iter()).map(|v| v.abs()).max().unwrap_or(0); + let scale = (max / i16::MAX as i32 + 1) as u8; + let mut out = Vec::new(); + let n = (pts.len() as u16).to_le_bytes(); + out.push(msg(b'B', seq, &[id, n[0], n[1], scale])); + seq = seq.wrapping_add(1); + for (c, chunk) in pts.chunks(CHUNK_MAX).enumerate() { + let start = ((c * CHUNK_MAX) as u16).to_le_bytes(); + let mut b = vec![id, start[0], start[1], chunk.len() as u8]; + for p in chunk { + b.extend(((p[0] / scale as i32) as i16).to_le_bytes()); + b.extend(((p[1] / scale as i32) as i16).to_le_bytes()); + } + out.push(msg(b'R', seq, &b)); + seq = seq.wrapping_add(1); + } + out.push(msg(b'E', seq, &[id, n[0], n[1]])); + (out, seq.wrapping_add(1)) + } + + + /// Nearby road context, local offsets from the supplied centre. Each polyline is independent. + pub fn roads(mut seq: u8, id: u8, centre: [i32; 2], lines: &[Vec<[i16; 2]>]) -> (Vec>, u8) { + let safe: Vec<&Vec<[i16; 2]>> = lines.iter().filter(|l| l.len() >= 2 && l.len() <= 255).take(ROADS_LINES_MAX).collect(); + let mut out = Vec::new(); + let mut begin = vec![id, safe.len() as u8, 1]; + begin.extend(centre[0].to_le_bytes()); + begin.extend(centre[1].to_le_bytes()); + out.push(msg(b'N', seq, &begin)); + seq = seq.wrapping_add(1); + let mut total = 0usize; + for (line_idx, line) in safe.iter().enumerate() { + for (chunk_idx, chunk) in line.chunks(ROADS_CHUNK_MAX).enumerate() { + let start = chunk_idx * ROADS_CHUNK_MAX; + let mut b = vec![id, line_idx as u8, start as u8, chunk.len() as u8]; + for p in chunk { + b.extend(p[0].to_le_bytes()); + b.extend(p[1].to_le_bytes()); + } + out.push(msg(b'G', seq, &b)); + seq = seq.wrapping_add(1); + total += chunk.len(); + } + } + let mut end = vec![id, safe.len() as u8]; + end.extend((total as u16).to_le_bytes()); + out.push(msg(b'O', seq, &end)); + (out, seq.wrapping_add(1)) + } +} + +#[cfg(test)] +mod tests { + use super::enc::*; + use super::*; + use std::boxed::Box; + + fn active() -> State { + State { + flags: F_ACTIVE | F_FIX, + maneuver: man::LEFT, + dist_m: 350, + x: -12, + y: 40000, + course: 16384, + ..State::default() + } + } + + #[test] + fn state_round_trips() { + let mut m = Box::new(Model::new()); + let s = State { + limit: 50, + remaining_10m: 820, + remaining_s: 840, + after: man::RIGHT, + after_m: 90, + progress: 7, + ..active() + }; + assert_eq!(m.apply(&state(0, &s)), Effect::Changed); + assert_eq!(m.state, s); + assert!(m.has_state); + } + + #[test] + fn route_is_shown_only_when_complete() { + let mut m = Box::new(Model::new()); + let pts: std::vec::Vec<[i32; 2]> = (0..100).map(|i| [i * 37 - 2000, i * i * 9]).collect(); + let (msgs, _) = route(0, 3, &pts); + assert_eq!(msgs.len(), 1 + 4 + 1); + for (i, msg) in msgs.iter().enumerate() { + m.apply(msg); + assert_eq!(m.route_len, if i + 1 == msgs.len() { 100 } else { 0 }); + } + // max |v| is 89100 m, so scale 3: points come back within 3 m + for (a, b) in m.route[..100].iter().zip(&pts) { + assert!((a[0] - b[0]).abs() < 3 && (a[1] - b[1]).abs() < 3, "{a:?} {b:?}"); + } + } + + #[test] + fn a_lost_chunk_asks_again_and_shows_no_line() { + let mut m = Box::new(Model::new()); + let pts: std::vec::Vec<[i32; 2]> = (0..90).map(|i| [i, -i]).collect(); + let (msgs, _) = route(10, 1, &pts); + assert_eq!(m.apply(&msgs[0]), Effect::Changed); + assert_eq!(m.apply(&msgs[1]), Effect::Ignored); + assert_eq!(m.apply(&msgs[3]), Effect::Resync); // chunk 2 lost + assert_eq!(m.apply(&msgs[4]), Effect::Resync); + assert_eq!(m.route_len, 0); + } + + #[test] + fn seq_gap_and_wrap() { + let mut m = Box::new(Model::new()); + assert_eq!(m.apply(&state(255, &active())), Effect::Changed); + assert_eq!(m.apply(&state(0, &active())), Effect::Changed); + assert_eq!(m.apply(&state(2, &active())), Effect::Resync); + m.reset_seq(); + assert_eq!(m.apply(&state(9, &active())), Effect::Changed); + } + + #[test] + fn synced_only_by_a_snapshot_end() { + let mut m = Box::new(Model::new()); + m.apply(&state(0, &active())); + assert!(!m.synced); + m.apply(&state(1, &State { flags: active().flags | F_SNAPSHOT, ..active() })); + assert!(m.synced); + m.apply(&state(5, &active())); // gap + assert!(!m.synced); + } + + #[test] + fn ending_the_drive_drops_the_line() { + let mut m = Box::new(Model::new()); + let (msgs, seq) = route(0, 1, &[[0, 0], [10, 10]]); + msgs.iter().for_each(|x| { + m.apply(x); + }); + assert_eq!(m.route_len, 2); + m.apply(&state(seq, &State::default())); + assert_eq!(m.route_len, 0); + } + + #[test] + fn streets_along_the_route_are_hidden_and_crossings_are_not() { + let mut m = Box::new(Model::new()); + let (r, seq) = route(0, 1, &[[0, 0], [0, 200], [0, 400]]); + for msg in r { m.apply(&msg); } + // a street 2 m beside the route (along it), one 30 m away (parallel), and one crossing it + let lines = vec![ + vec![[2, 50], [2, 150], [2, 250]], + vec![[30, 50], [30, 150]], + vec![[-100, 100], [0, 100], [100, 100]], + ]; + let (s, _) = roads(seq, 1, [0, 0], &lines); + for msg in s { m.apply(&msg); } + // points: line 0 = 0..3, line 1 = 3..5, line 2 = 5..8 + assert!(m.under_route(0) && m.under_route(1), "along the route"); + assert!(!m.under_route(3), "30 m away"); + assert!(!m.under_route(5) && !m.under_route(6), "a crossing street"); + } + + #[test] + fn the_old_streets_stay_until_the_new_set_is_whole() { + let mut m = Box::new(Model::new()); + let (a, seq) = roads(0, 1, [10, 20], &[vec![[0, 0], [50, 50]]]); + for msg in a { m.apply(&msg); } + let (b, _) = roads(seq, 2, [900, 900], &[vec![[1, 1], [2, 2], [3, 3]], vec![[5, 5], [6, 6]]]); + let last = b.len() - 1; + for msg in &b[..last] { + m.apply(msg); + assert_eq!((m.roads_count, m.roads_len, m.roads_center), (1, 2, [10, 20]), "old set still shown"); + } + m.apply(&b[last]); + assert_eq!((m.roads_count, m.roads_len, m.roads_center), (2, 5, [900, 900])); + assert_eq!(m.roads[4], [6, 6]); + } + + #[test] + fn nearby_roads_round_trip_as_separate_lines() { + let mut m = Box::new(Model::new()); + let lines = vec![ + vec![[0, 0], [120, 80], [240, 160]], + vec![[-150, 300], [-100, 350]], + ]; + let (msgs, _) = roads(0, 7, [1200, -3400], &lines); + for msg in msgs { m.apply(&msg); } + assert_eq!(m.roads_count, 2); + assert_eq!(m.roads_len, 5); + assert_eq!(m.roads_center, [1200, -3400]); + assert_eq!(m.roads_sizes[0], 3); + assert_eq!(m.roads_sizes[1], 2); + assert_eq!(m.roads[0], [0, 0]); + assert_eq!(m.roads[4], [-100, 350]); + } + + #[test] + fn empty_road_snapshot_clears_context() { + let mut m = Box::new(Model::new()); + let lines = vec![vec![[0, 0], [100, 100]]]; + let (msgs, seq) = roads(0, 1, [0, 0], &lines); + for msg in msgs { m.apply(&msg); } + assert_eq!(m.roads_count, 1); + let (clear, _) = roads(seq, 2, [0, 0], &[]); + for msg in clear { m.apply(&msg); } + assert_eq!(m.roads_count, 0); + assert_eq!(m.roads_len, 0); + } + + #[test] + fn junk_is_ignored() { + let mut m = Box::new(Model::new()); + for junk in [ + &b""[..], + b"n", + b"x1S\x00", + b"n1S\x00\x01", + b"n1Z\x00abc", + b"n1B\x00\x01\xff\xff\x01", + b"n1B\x00\x01\x02\x00\x00", + ] { + m.reset_seq(); + assert_eq!(m.apply(junk), Effect::Ignored, "{junk:?}"); + } + assert!(!m.has_state); + } + + #[test] + fn text_is_cut_on_a_char_boundary() { + let mut m = Box::new(Model::new()); + let mut long = std::vec::Vec::from(&b"Stra\xc3\x9fe "[..]); + long.resize(99, b'a'); + long.extend_from_slice("ß".as_bytes()); // 2 bytes, crosses 100 + m.apply(&msg(b'T', 0, &long)); + assert_eq!(m.text().len(), 99); + m.apply(&msg(b'T', 1, b"Main St\xff")); + assert_eq!(m.text(), "Main St"); + } +} diff --git a/apps/v-maps/src/sign.rs b/apps/v-maps/src/sign.rs new file mode 100644 index 0000000..30e4f35 --- /dev/null +++ b/apps/v-maps/src/sign.rs @@ -0,0 +1,197 @@ +//! Turn signs drawn in one pass: the sign is a union of strokes with round ends, rings and triangles, and each +//! pixel's coverage comes from its distance to that union. Shapes drawn one over another would leave a dark +//! seam wherever two antialiased edges meet; this has none. + +use cmf_wp2_ui::color::blend565; +use cmf_wp2_ui::motion::{cos, sin}; +use cmf_wp2_ui::{ONE, Surface}; + +/// Sub-pixel units a pixel. +const U: i64 = 16; + +#[derive(Clone, Copy)] +enum Part { + /// A stroke from one point to another, round ends. + Seg((i32, i32), (i32, i32)), + /// A circle of a radius, stroked. + Ring((i32, i32), i32), + /// A filled triangle. + Tri([(i32, i32); 3]), +} + +pub struct Sign { + parts: [Part; 24], + n: usize, + /// Stroke width in px. + w: i32, +} + +impl Sign { + pub fn new(w: i32) -> Sign { + Sign { parts: [Part::Ring((0, 0), 0); 24], n: 0, w } + } + + fn push(&mut self, p: Part) -> &mut Sign { + if self.n < self.parts.len() { + self.parts[self.n] = p; + self.n += 1; + } + self + } + + pub fn seg(&mut self, a: (i32, i32), b: (i32, i32)) -> &mut Sign { + self.push(Part::Seg(a, b)) + } + + pub fn ring(&mut self, c: (i32, i32), r: i32) -> &mut Sign { + self.push(Part::Ring(c, r)) + } + + pub fn tri(&mut self, t: [(i32, i32); 3]) -> &mut Sign { + self.push(Part::Tri(t)) + } + + /// A stroked arc around `c` of radius `r`, from angle `start` over `sweep` (u16 turns, 0 = 3 o'clock, + /// clockwise on screen; negative goes the other way), as `steps` straight pieces. + pub fn arc(&mut self, c: (i32, i32), r: i32, start: u16, sweep: i32, steps: i32) -> &mut Sign { + let at = |a: u16| (c.0 + ((r * cos(a)) >> 14), c.1 + ((r * sin(a)) >> 14)); + let mut prev = at(start); + for i in 1..=steps { + let p = at(start.wrapping_add((sweep * i / steps) as u16)); + self.seg(prev, p); + prev = p; + } + self + } + + /// Distance from `p` (in 1/U px) to the part's edge, in 1/U px; negative inside. + fn dist(&self, part: &Part, p: (i64, i64)) -> i64 { + let half = self.w as i64 * U / 2; + let q = |v: (i32, i32)| (v.0 as i64 * U + U / 2, v.1 as i64 * U + U / 2); + match *part { + Part::Seg(a, b) => { + let (a, b) = (q(a), q(b)); + let (dx, dy) = (b.0 - a.0, b.1 - a.1); + let len2 = dx * dx + dy * dy; + let t = if len2 == 0 { 0 } else { ((p.0 - a.0) * dx + (p.1 - a.1) * dy).clamp(0, len2) }; + let (cx, cy) = if len2 == 0 { a } else { (a.0 + dx * t / len2, a.1 + dy * t / len2) }; + near((p.0 - cx).pow(2) + (p.1 - cy).pow(2), half) + } + Part::Ring(c, r) => { + let c = q(c); + (isqrt((p.0 - c.0).pow(2) + (p.1 - c.1).pow(2)) - r as i64 * U).abs() - half + } + Part::Tri(t) => { + let v = [q(t[0]), q(t[1]), q(t[2])]; + let area = (v[1].0 - v[0].0) * (v[2].1 - v[0].1) - (v[1].1 - v[0].1) * (v[2].0 - v[0].0); + let sign = if area > 0 { 1 } else { -1 }; + (0..3) + .map(|i| { + let (a, b) = (v[i], v[(i + 1) % 3]); + let (ex, ey) = (b.0 - a.0, b.1 - a.1); + let len = isqrt(ex * ex + ey * ey).max(1); + // outward distance from the edge's line + -sign * (ex * (p.1 - a.1) - ey * (p.0 - a.0)) / len + }) + .max() + .unwrap_or(0) + } + } + } + + /// The part's box in px, grown by the stroke and a pixel of soft edge. + fn bbox(&self, part: &Part) -> (i32, i32, i32, i32) { + let g = self.w / 2 + 2; + let (x0, y0, x1, y1) = match *part { + Part::Seg(a, b) => (a.0.min(b.0), a.1.min(b.1), a.0.max(b.0), a.1.max(b.1)), + Part::Ring(c, r) => (c.0 - r, c.1 - r, c.0 + r, c.1 + r), + Part::Tri(t) => ( + t[0].0.min(t[1].0).min(t[2].0), + t[0].1.min(t[1].1).min(t[2].1), + t[0].0.max(t[1].0).max(t[2].0), + t[0].1.max(t[1].1).max(t[2].1), + ), + }; + (x0 - g, y0 - g, x1 + g, y1 + g) + } + + /// Draws the sign in colour `c` over `bg`, looking only inside the box `x0..x1`, `y0..y1`. + #[allow(clippy::too_many_arguments)] + pub fn draw(&self, s: &mut impl Surface, x0: i32, y0: i32, x1: i32, y1: i32, c: u16, bg: u16) { + let mut boxes = [(0, 0, 0, 0); 24]; + for (b, part) in boxes.iter_mut().zip(&self.parts[..self.n]) { + *b = self.bbox(part); + } + let mut shade = [0u16; 17]; + for (k, v) in shade.iter_mut().enumerate() { + *v = blend565(bg, c, k as i32 * ONE / 16); + } + for y in y0..y1 { + let mut run: Option<(i32, usize)> = None; + for x in x0..=x1 { + let k = if x == x1 { + usize::MAX // flush + } else { + let p = (x as i64 * U + U / 2, y as i64 * U + U / 2); + let d = self.parts[..self.n] + .iter() + .zip(&boxes) + .filter(|(_, b)| x >= b.0 && x <= b.2 && y >= b.1 && y <= b.3) + .map(|(part, _)| self.dist(part, p)) + .min() + .unwrap_or(U); + (U / 2 - d).clamp(0, U) as usize + }; + match run { + Some((_, rk)) if rk == k => {} + _ => { + if let Some((rx, rk)) = run + && rk > 0 + { + s.rect(rx, y, x - rx, 1, shade[rk]); + } + run = Some((x, k)); + } + } + } + } + } +} + +/// The three corners of an arrowhead with its tip at `tip`, pointing along `a` (turns clockwise from up), `h` px +/// long. +pub fn head(tip: (i32, i32), a: u16, h: i32) -> [(i32, i32); 3] { + let d = |a: u16, r: i32| ((r * sin(a)) >> 14, -(r * cos(a)) >> 14); + let back = d(a, -h); + let side = d(a.wrapping_add(0x4000), h * 4 / 5); + let base = (tip.0 + back.0, tip.1 + back.1); + [tip, (base.0 + side.0, base.1 + side.1), (base.0 - side.0, base.1 - side.1)] +} + +/// The distance from `d2`, a squared distance, to a stroke of half width `half`, with the square root taken only +/// on the soft edge: well inside is `-U`, well outside `U`. +fn near(d2: i64, half: i64) -> i64 { + let out = half + U; + if d2 >= out * out { + return U; + } + let inn = (half - U).max(0); + if d2 <= inn * inn && half >= U { + return -U; + } + isqrt(d2) - half +} + +fn isqrt(n: i64) -> i64 { + if n < 2 { + return n.max(0); + } + let mut x = 1i64 << ((64 - n.leading_zeros()).div_ceil(2)); + loop { + let y = (x + n / x) / 2; + if y >= x { + return x; + } + x = y; + } +} diff --git a/apps/v-maps/src/view.rs b/apps/v-maps/src/view.rs new file mode 100644 index 0000000..6899796 --- /dev/null +++ b/apps/v-maps/src/view.rs @@ -0,0 +1,1646 @@ +//! Drawing, against `Surface`: the watch through `&Api`, a host framebuffer in tests. +//! +//! Layout on the round 466 px panel, black like the stock faces: the time left, big, at the top; a heading-up map +//! below it: the route in blue, the streets around you in grey (enough to see which turn to take), the car; the +//! next turn big at the bottom (arrow, distance) over an arc that fills as the drive goes. Text is Noto +//! Sans (`font`, `fonts`), with the loader's pixel font for a road name in a script those fonts lack. + +use crate::font::{poly, poly_half}; +use crate::fonts::{L, S, XL}; +use crate::proto::{Model, ROADS_LINES_MAX, man}; +use crate::sign::{Sign, head}; +use cmf_wp2_ui::draw::{disc, line, ring}; +use cmf_wp2_ui::motion::{Q14, cos, sin}; +use cmf_wp2_ui::text::fitted; +use cmf_wp2_ui::{C, CHAR, Rgb, SIZE, Surface, geom}; +use core::fmt::Write; + +const BLACK: Rgb = Rgb(0, 0, 0); +const WHITE: Rgb = Rgb(255, 255, 255); +const SHADE: Rgb = Rgb(178, 180, 186); +const GREY: Rgb = Rgb(140, 140, 146); +const BLUE: Rgb = Rgb(52, 138, 255); +/// The map's background: a dark slate blue (the dome is black). +const MAP_BG: Rgb = Rgb(22, 30, 42); +const STREET: Rgb = Rgb(46, 58, 76); +const MAJOR: Rgb = Rgb(78, 94, 118); // main roads: dimmer than the text, which is 178 and 255 +const ACCENT: Rgb = Rgb(255, 160, 0); +const RED: Rgb = Rgb(228, 36, 36); + +/// The map fills the whole face; the time left and the next turn are drawn over it. +pub const TOP: i32 = 0; +pub const BOTTOM: i32 = SIZE; +/// The car, heading up. +pub const CAR: (i32, i32) = (C, 278); +/// The marker's disc. +const CAR_R: i32 = 27; +/// Metres between the route's dots (about 3.4 times the radius of an ahead dot). +const ROUTE_STEP: i32 = 24; +/// Map scales the crown steps through, in metres per pixel. +pub const ZOOMS: [i32; 6] = [1, 2, 3, 5, 8, 13]; +#[cfg(test)] +const ZOOM_DEFAULT: usize = 2; + +/// What the screen is about, besides the model itself. +pub struct Ctx { + /// The phone has been heard from recently. + pub live: bool, + /// Local time of day (hours, minutes), when the watch has it. + pub zoom: usize, + /// The map is being zoomed or turned: the grey streets are drawn with hard edges (cheaper) until it settles. + pub fast: bool, + /// Where the phone is looking (a turn, 65536 = 360 degrees clockwise from north): the arrow points that way + /// while the map stays put. `None`: the map is turned to the heading instead, and the arrow points up. + pub look: Option, + /// Only the arrow changed: repaint the patch of map round it, not the whole screen. + pub arrow_only: bool, + /// The car is moving: repaint the whole screen + /// in the cheap hard-edged style. + pub light: bool, + /// Only the text in the dome changed: repaint the dome and nothing else. + pub dome: bool, +} + +/// A small text buffer for `write!` without a heap. +pub struct Buf { + b: [u8; 32], + n: usize, +} + +impl Buf { + pub fn new() -> Buf { + Buf { b: [0; 32], n: 0 } + } + pub fn as_str(&self) -> &str { + core::str::from_utf8(&self.b[..self.n]).unwrap_or("") + } +} + +impl Default for Buf { + fn default() -> Self { + Buf::new() + } +} + +impl Write for Buf { + fn write_str(&mut self, s: &str) -> core::fmt::Result { + let k = s.len().min(self.b.len() - self.n); + self.b[self.n..self.n + k].copy_from_slice(&s.as_bytes()[..k]); + self.n += k; + Ok(()) + } +} + +/// "350 m", "1.2 km", "14 km"; "500 ft", "0.3 mi", "12 mi". +pub fn distance(m: u32, imperial: bool) -> Buf { + let mut b = Buf::new(); + let _ = if imperial { + if m < 161 { + write!(b, "{} ft", (m * 3281 / 1000 + 25) / 50 * 50) + } else { + let tenths = (m * 100 + 8047) / 16093; // m / 160.93, rounded + if tenths < 100 { + write!(b, "{}.{} mi", tenths / 10, tenths % 10) + } else { + write!(b, "{} mi", (tenths + 5) / 10) + } + } + } else if m < 1000 { + write!(b, "{} m", if m < 100 { m / 5 * 5 } else { m / 10 * 10 }) + } else if m < 10_000 { + let h = (m + 50) / 100; + write!(b, "{}.{} km", h / 10, h % 10) + } else { + write!(b, "{} km", (m + 500) / 1000) + }; + b +} + +/// "14 min", "1 h 05". +pub fn duration(s: u32) -> Buf { + let mut b = Buf::new(); + let min = (s + 30) / 60; + let _ = if min < 60 { write!(b, "{} min", min) } else { write!(b, "{} h {:02}", min / 60, min % 60) }; + b +} + +/// One map-frame transform. Heading sine/cosine and the metre scale are calculated once, then reused for +/// every route and street point in that frame. This removes two fixed-point trig calls per projected point. +#[derive(Clone, Copy, Debug)] +pub struct Projector { + car: [i32; 2], + s: i32, + c: i32, + mpp: i32, +} + +impl Projector { + #[inline] + pub fn new(car: [i32; 2], course: u16, mpp: i32) -> Self { + Self { car, s: sin(course) as i32, c: cos(course) as i32, mpp: mpp.max(1) } + } + + #[inline(always)] + pub fn project(&self, p: [i32; 2]) -> (i32, i32) { + const LIM: i64 = 1 << 20; + let (dx, dy) = (p[0] as i64 - self.car[0] as i64, p[1] as i64 - self.car[1] as i64); + if dx.abs().max(dy.abs()) <= 60_000 { + // 32 bits and the hardware divide for nearby points. + let (dx, dy) = (dx as i32, dy as i32); + let d = Q14 as i32 * self.mpp; + let (right, ahead) = ((dx * self.c - dy * self.s) / d, (dx * self.s + dy * self.c) / d); + return (CAR.0 + right, CAR.1 - ahead); + } + let (s, c) = (self.s as i64, self.c as i64); + let d = Q14 as i64 * self.mpp as i64; + let right = (dx * c - dy * s) / d; + let ahead = (dx * s + dy * c) / d; + ((CAR.0 as i64 + right.clamp(-LIM, LIM)) as i32, (CAR.1 as i64 - ahead.clamp(-LIM, LIM)) as i32) + } +} + +/// Convenience projection for tests and one-off geometry. Render frames should share a `Projector`. +#[cfg(test)] +#[inline] +pub fn project(p: [i32; 2], car: [i32; 2], course: u16, mpp: i32) -> (i32, i32) { + Projector::new(car, course, mpp).project(p) +} + +/// Which sides of the box `reach` metres round the car a point lies outside, as bits: two points that share a bit +/// have a segment between them that is wholly outside. Nothing farther than the screen can show is turned or drawn. +fn world_code(p: [i32; 2], car: [i32; 2], reach: i32) -> u8 { + let (dx, dy) = (p[0].saturating_sub(car[0]), p[1].saturating_sub(car[1])); + (dx < -reach) as u8 | ((dx > reach) as u8) << 1 | ((dy < -reach) as u8) << 2 | ((dy > reach) as u8) << 3 +} + +/// How far from the car, in metres, anything can still be on the screen (its farthest edge is `CAR.1` px away). +fn reach(mpp: i32) -> i32 { + (CAR.1 + 24) * mpp +} + +/// Cohen–Sutherland: the part of a segment inside `[lo, hi]²`, or `None`. +pub fn clip(mut a: (i32, i32), mut b: (i32, i32), lo: i32, hi: i32) -> Option<((i32, i32), (i32, i32))> { + let code = + |p: (i32, i32)| (p.0 < lo) as u8 | ((p.0 > hi) as u8) << 1 | ((p.1 < lo) as u8) << 2 | ((p.1 > hi) as u8) << 3; + let (mut ca, mut cb) = (code(a), code(b)); + for _ in 0..8 { + if ca | cb == 0 { + return Some((a, b)); + } + if ca & cb != 0 { + return None; + } + let out = if ca != 0 { ca } else { cb }; + let (x0, y0, x1, y1) = (a.0 as i64, a.1 as i64, b.0 as i64, b.1 as i64); + let p = if out & 8 != 0 { + (x0 + (x1 - x0) * (hi as i64 - y0) / (y1 - y0), hi as i64) + } else if out & 4 != 0 { + (x0 + (x1 - x0) * (lo as i64 - y0) / (y1 - y0), lo as i64) + } else if out & 2 != 0 { + (hi as i64, y0 + (y1 - y0) * (hi as i64 - x0) / (x1 - x0)) + } else { + (lo as i64, y0 + (y1 - y0) * (lo as i64 - x0) / (x1 - x0)) + }; + let p = (p.0 as i32, p.1 as i32); + if out == ca { + (a, ca) = (p, code(p)); + } else { + (b, cb) = (p, code(p)); + } + } + None +} + +/// Rounds the corners of a polyline as it streams by: each vertex becomes a short curve between the midpoints of +/// its two segments (a quadratic through two extra points), so the bends of a road are not spikes. No storage: +/// `emit(from, to)` gets the straight pieces. Fewer than 3 points is just the segment. +#[derive(Default)] +struct Curve { + a: (i32, i32), + b: (i32, i32), + pen: (i32, i32), + n: u8, + /// A bend of less than about 20 degrees is left as it is (it already looks smooth): in the cheap frames only. + gentle_is_straight: bool, +} + +impl Curve { + fn push(&mut self, p: (i32, i32), smooth: bool, emit: &mut impl FnMut((i32, i32), (i32, i32))) { + match self.n { + 0 => (self.a, self.pen, self.n) = (p, p, 1), + 1 => (self.b, self.n) = (p, 2), + _ => { + if smooth && !(self.gentle_is_straight && self.gentle(p)) { + let (a, b) = (self.a, self.b); + let m1 = ((a.0 + b.0) / 2, (a.1 + b.1) / 2); + let m2 = ((b.0 + p.0) / 2, (b.1 + p.1) / 2); + let q = ((m1.0 + 2 * b.0 + m2.0) / 4, (m1.1 + 2 * b.1 + m2.1) / 4); + emit(self.pen, m1); + emit(m1, q); + emit(q, m2); + self.pen = m2; + } else { + emit(self.pen, self.b); + self.pen = self.b; + } + (self.a, self.b) = (self.b, p); + } + } + } + + /// Whether the bend at `b` towards `p` is under about 20 degrees. + fn gentle(&self, p: (i32, i32)) -> bool { + let (ux, uy) = ((self.b.0 - self.a.0) as i64, (self.b.1 - self.a.1) as i64); + let (vx, vy) = ((p.0 - self.b.0) as i64, (p.1 - self.b.1) as i64); + let dot = ux * vx + uy * vy; + // cos^2 >= 0.88 (cos 20 degrees is 0.94), going on + dot > 0 && dot * dot * 100 >= 88 * (ux * ux + uy * uy) * (vx * vx + vy * vy) + } + + fn finish(&mut self, emit: &mut impl FnMut((i32, i32), (i32, i32))) { + if self.n == 2 { + emit(self.pen, self.b); + } + } +} + +/// Integer square root. +fn isqrt64(n: u64) -> u64 { + if n <= u32::MAX as u64 { + // the usual case (a segment under 46 km): shifts and adds, no divide + let (mut n, mut r, mut b) = (n as u32, 0u32, 1u32 << 30); + while b > n { + b >>= 2; + } + while b != 0 { + if n >= r + b { + n -= r + b; + r = (r >> 1) + b; + } else { + r >>= 1; + } + b >>= 2; + } + return r as u64; + } + let mut x = 1u64 << ((64 - n.leading_zeros()).div_ceil(2)); + loop { + let y = (x + n / x) / 2; + if y >= x { + return x; + } + x = y; + } +} + +/// A hard-edged disc: one rect a row, equal rows joined. +fn flat_disc(s: &mut impl Surface, cx: i32, cy: i32, r: i32, c: Rgb) { + let k = c.rgb565(); + let mut run: Option<(i32, i32)> = None; // first row, half width + for dy in -r..=r + 1 { + let hw = if dy <= r { cmf_wp2_ui::motion::isqrt(r * r + r - dy * dy) } else { -1 }; + match run { + Some((_, h)) if h == hw => {} + _ => { + if let Some((y0, h)) = run && h >= 0 { + s.rect(cx - h, cy + y0, 2 * h + 1, dy - y0, k); + } + run = Some((dy, hw)); + } + } + } +} + +/// The route as a line of round dots, `step` metres apart, from vertex `from` to vertex `to`. The dots sit at fixed +/// distances along the whole route (counted from its start), so they stay where they are on the map as it moves. +#[cfg(test)] +#[allow(clippy::too_many_arguments)] +fn dots(s: &mut impl Surface, m: &Model, from: usize, to: usize, r: i32, step: i32, c: Rgb, mpp: i32, fast: bool) { + let projector = Projector::new([m.state.x, m.state.y], m.state.course, mpp); + dots_projected(s, m, from, to, r, step, c, &projector, fast); +} + +#[allow(clippy::too_many_arguments)] +fn dots_projected(s: &mut impl Surface, m: &Model, from: usize, to: usize, r: i32, step: i32, c: Rgb, projector: &Projector, fast: bool) { + let car = projector.car; + let mpp = projector.mpp; + let step = step as i64 * mpp as i64; + let reach = reach(mpp); + let mut cum = 0i64; + for i in 0..to.min(m.route_len).saturating_sub(1) { + let (a, b) = (m.route[i], m.route[i + 1]); + let (dx, dy) = (b[0] as i64 - a[0] as i64, b[1] as i64 - a[1] as i64); + let len = isqrt64((dx * dx + dy * dy) as u64) as i64; + // a segment wholly beyond the reach only adds its length; its dots are not even turned + if i >= from && len > 0 && world_code(a, car, reach) & world_code(b, car, reach) == 0 { + // a dot on screen is within 1.5 reach (along the segment) of the point of it nearest the car + let near = ((car[0] as i64 - a[0] as i64) * dx + (car[1] as i64 - a[1] as i64) * dy) / len; + let (lo, hi) = ((near - reach as i64 * 3 / 2).max(0), near + reach as i64 * 3 / 2); + let mut d = (cum + lo + step - 1) / step * step; // the first dot at or after the start of what can show + while d < cum + len && d <= cum + hi { + let t = d - cum; + let p = projector.project([(a[0] as i64 + dx * t / len) as i32, (a[1] as i64 + dy * t / len) as i32]); + if geom::inside(p.0, p.1) { + if fast { + flat_disc(s, p.0, p.1, r, c); + } else { + disc(s, p.0, p.1, r, c, MAP_BG); + } + } + d += step; + } + } + cum += len; + } +} + +/// Whether a segment can touch the round screen (with `w` to spare): its distance from the centre is under the +/// radius. Pieces entirely in the corners of the square are never drawn. +fn near_screen(a: (i32, i32), b: (i32, i32), w: i32) -> bool { + let (ax, ay) = (a.0 as i64 - C as i64, a.1 as i64 - C as i64); + let (dx, dy) = (b.0 as i64 - a.0 as i64, b.1 as i64 - a.1 as i64); + let len2 = dx * dx + dy * dy; + let t = if len2 == 0 { 0 } else { (-(ax * dx + ay * dy)).clamp(0, len2) }; + // the closest point is a + d * t / len2; compare its squared distance with (C + w + 2)^2 + let (px, py) = (ax * len2 + dx * t, ay * len2 + dy * t); + let r = (C + w + 2) as i128; + (px as i128 * px as i128 + py as i128 * py as i128) <= r * r * len2 as i128 * len2 as i128 +} + +/// A hard-edged line of width `w`: one rect per row (or per run of columns), no antialiasing, no round ends. About +/// a third of the rects of `line`; for the frames while the map is being zoomed or turned. +fn fast_line(s: &mut impl Surface, a: (i32, i32), b: (i32, i32), w: i32, c: Rgb) { + let k = c.rgb565(); + let (dx, dy) = ((b.0 - a.0) as i64, (b.1 - a.1) as i64); + let len = cmf_wp2_ui::motion::isqrt((dx * dx + dy * dy).min(i32::MAX as i64) as i32) as i64; + if len == 0 { + return; + } + if dy.abs() >= dx.abs() { + // steep: a rect across the line on every row, equal neighbours joined + let th = ((w as i64 * len + dy.abs() / 2) / dy.abs()).max(w as i64) as i32; + let (y0, y1) = (a.1.min(b.1).max(0), a.1.max(b.1).min(SIZE - 1)); + let mut run: Option<(i32, i32, i32)> = None; // y, left, right + for y in y0..=y1 { + let xc = a.0 as i64 + dx * (y - a.1) as i64 / dy; + let h = geom::half(y); + let (l, r) = ((xc as i32 - th / 2).max(C - h), (xc as i32 - th / 2 + th).min(C + h)); + match run { + Some((_, rl, rr)) if rl == l && rr == r => {} + _ => { + if let Some((ry, rl, rr)) = run && rr > rl { + s.rect(rl, ry, rr - rl, y - ry, k); + } + run = Some((y, l, r)); + } + } + } + if let Some((ry, rl, rr)) = run && rr > rl { + s.rect(rl, ry, rr - rl, y1 + 1 - ry, k); + } + } else { + // flat: a rect up and down on every column, equal neighbours joined + let th = ((w as i64 * len + dx.abs() / 2) / dx.abs()).max(w as i64) as i32; + let (x0, x1) = (a.0.min(b.0).max(0), a.0.max(b.0).min(SIZE - 1)); + let mut run: Option<(i32, i32, i32)> = None; // x, top, bottom + for x in x0..=x1 { + let yc = a.1 as i64 + dy * (x - a.0) as i64 / dx; + let h = geom::half(x); + let (t, bt) = ((yc as i32 - th / 2).max(C - h), (yc as i32 - th / 2 + th).min(C + h)); + match run { + Some((rx, rt, rb)) if rt == t && rb == bt => run = Some((rx, rt, rb)), + _ => { + if let Some((rx, rt, rb)) = run && rb > rt { + s.rect(rx, rt, x - rx, rb - rt, k); + } + run = Some((x, t, bt)); + } + } + } + if let Some((rx, rt, rb)) = run && rb > rt { + s.rect(rx, rt, x1 + 1 - rx, rb - rt, k); + } + } +} + +/// The streets around the car, thin and grey, under the route: enough to see which turns not to take. +#[cfg(test)] +fn streets(s: &mut impl Surface, m: &Model, mpp: i32, fast: bool) { + let projector = Projector::new([m.state.x, m.state.y], m.state.course, mpp); + streets_projected(s, m, &projector, fast); +} + +/// Whether bends are rounded in the cheap frames (while the map moves) as they are in the full one. A rounded bend is +/// three short lines instead of one; straight streets are not affected. `false`: the old sharp corners. +const ROUND_WHILE_MOVING: bool = true; + +fn streets_projected(s: &mut impl Surface, m: &Model, projector: &Projector, fast: bool) { + let car = projector.car; + let world = |i: usize| [m.roads_center[0] + m.roads[i][0] as i32, m.roads_center[1] + m.roads[i][1] as i32]; + let at = |i: usize| projector.project(world(i)); + let reach = reach(projector.mpp); + let code = |i: usize| world_code(world(i), car, reach); + for pass in 0..2 { + for l in 0..m.roads_count.min(ROADS_LINES_MAX) { + let start = m.roads_starts[l] as usize; + let end = (start + m.roads_sizes[l] as usize).min(m.roads_len); + let mut len = 0i32; + for i in start + 1..end { + len += (m.roads[i][0] as i32 - m.roads[i - 1][0] as i32).abs() + (m.roads[i][1] as i32 - m.roads[i - 1][1] as i32).abs(); + } + let major = len > 500; + if major != (pass == 1) { + continue; + } + let w = if major { 10 } else { 6 }; + let col = if major { MAJOR } else { STREET }; + // a point in the same pixel as the one before it adds nothing at this zoom: left out (never a line's end) + let near = if fast { 2 } else { 1 }; + let same = |q: (i32, i32), p: (i32, i32), i: usize| i + 1 < end && (p.0 - q.0).abs() <= near && (p.1 - q.1).abs() <= near; + for pass in 0..(if fast { 1 } else { 2 }) { + let mut emit = |q: (i32, i32), p: (i32, i32)| { + if pass == 0 { + if !(q.1 < TOP - w && p.1 < TOP - w || q.1 > BOTTOM + w && p.1 > BOTTOM + w) && near_screen(q, p, w) { + if fast { + fast_line(s, q, p, w, col); + } else if let Some((a, b)) = clip(q, p, -w, SIZE + w) { + line(s, a.0, a.1, b.0, b.1, w, col, MAP_BG); + } + } + } else if geom::inside(q.0, q.1) && q.1 >= TOP - w && q.1 <= BOTTOM + w { + disc(s, q.0, q.1, w / 2 - 1, col, col); + } + }; + let mut k = Curve { gentle_is_straight: fast, ..Curve::default() }; + let mut last: Option<(i32, i32)> = None; + let mut cut = false; + for i in start..end { + // a segment along the route is not drawn (the route covers it): the line is cut there + if i > start && m.under_route(i - 1) { + cut = true; + } + // a point whose segments both lie beyond the reach is not turned at all; the line is cut there + let seen_before = i > start && code(i - 1) & code(i) == 0; + let seen_after = i + 1 < end && code(i) & code(i + 1) == 0; + if !seen_before && !seen_after { + cut = true; + continue; + } + if !seen_before { + cut = true; + } + let p = at(i); + if !cut && last.is_some_and(|q| same(q, p, i)) { + continue; + } + if cut { + k.finish(&mut emit); + (k, cut) = (Curve { gentle_is_straight: fast, ..Curve::default() }, false); + } + last = Some(p); + k.push(p, ROUND_WHILE_MOVING || !fast, &mut emit); + } + k.finish(&mut emit); + } + } + } +} + +/// Direction `a` (turns, clockwise from up) as a screen vector of length `r`. +fn dir(a: u16, r: i32) -> (i32, i32) { + ((r * sin(a)) >> 14, -(r * cos(a)) >> 14) +} + +/// A maneuver icon in a box of radius `r` around (cx, cy): thick strokes with round ends, like a road sign. +pub fn icon(s: &mut impl Surface, code: u8, cx: i32, cy: i32, r: i32, c: Rgb) { + icon_sign(s, code, cx, cy, r, c, 0) +} + +fn icon_sign(s: &mut impl Surface, code: u8, cx: i32, cy: i32, r: i32, c: Rgb, pad: i32) { + let w = (r * 2 / 7).max(4) + pad; + let mut g = Sign::new(w); + let hl = r * 3 / 5; // arrowhead length + // a stem up from the bottom that bends towards `a` at `elbow` below the centre + // (the stem leans away from the turn by `lean` so the whole sign sits centred) + let turn = |g: &mut Sign, a: u16, elbow: i32, len: i32, lean: i32, hl: i32| { + let sh = dir(a, len - hl / 2); + let x = cx - lean; + let e = (x, cy + elbow); + let tip = (x + dir(a, len).0, e.1 + dir(a, len).1); + g.seg((x, cy + r), e).seg(e, (x + sh.0, e.1 + sh.1)).tri(head(tip, a, hl)); + }; + let gentle = |g: &mut Sign, a: u16, elbow: i32| turn(g, a, elbow, r, dir(a, r * 2 / 5).0 / 2, hl); + let sharp = |g: &mut Sign, a: u16| turn(g, a, -r * 3 / 4, r * 13 / 10, dir(a, r).0 * 7 / 10, r / 2); + // a right angle with a round bend: up, then `sign` (1 right, -1 left) + let square = |g: &mut Sign, sign: i32| { + let rho = r * 3 / 5; + let (x, y) = (cx - sign * r / 2, cy - r / 3); + let tip = (cx + sign * r, y); + let start = if sign > 0 { 0x8000 } else { 0 }; + g.seg((x, cy + r), (x, y + rho)) + .arc((x + sign * rho, y + rho), rho, start, sign * 0x4000, 6) + .seg((x + sign * rho, y), (tip.0 - sign * hl / 2, y)) + .tri(head(tip, if sign > 0 { 0x4000 } else { 0xC000 }, hl)); + }; + match code { + man::CONTINUE => { + g.seg((cx, cy + r), (cx, cy - r + hl / 2)).tri(head((cx, cy - r), 0, hl)); + } + man::SLIGHT_LEFT => gentle(&mut g, 0xE000, 0), + man::SLIGHT_RIGHT => gentle(&mut g, 0x2000, 0), + man::LEFT => square(&mut g, -1), + man::RIGHT => square(&mut g, 1), + man::SHARP_LEFT => sharp(&mut g, 0xA000), + man::SHARP_RIGHT => sharp(&mut g, 0x6000), + man::KEEP_LEFT => gentle(&mut g, 0xF000, r / 4), + man::KEEP_RIGHT => gentle(&mut g, 0x1000, r / 4), + man::UTURN => { + let (rx, top) = (r / 2, cy - r / 4); + g.seg((cx + rx, cy + r), (cx + rx, top)) + .arc((cx, top), rx, 0, -0x8000, 10) + .seg((cx - rx, top), (cx - rx, cy + r - hl / 2)) + .tri(head((cx - rx, cy + r), 0x8000, hl)); + } + man::ROUNDABOUT => { + let rr = r * 2 / 5; + g.ring((cx, cy), rr) + .seg((cx, cy + r), (cx, cy + rr)) + .seg((cx, cy - rr), (cx, cy - r - 4 + r / 4)) + .tri(head((cx, cy - r - 4), 0, r / 2)); + } + man::ARRIVE if pad == 0 => { + let pin = cy - r / 4; + let k = RED.rgb565(); + poly(s, &[(cx - r / 2 + 1, pin + r / 6), (cx + r / 2 - 1, pin + r / 6), (cx, cy + r)], 0, |_| k); + disc(s, cx, pin, r / 2, RED, BLACK); + disc(s, cx, pin, r / 5, WHITE, RED); + } + man::OFF_ROUTE if pad == 0 => { + ring(s, cx, cy, r - w, r, ACCENT, BLACK); + let k = ACCENT.rgb565(); + s.rect(cx - w / 2, cy - r / 2, w, r * 2 / 3, k); + s.rect(cx - w / 2, cy + r / 3, w, w, k); + } + _ => {} + } + let m = w + 6; + g.draw(s, cx - r - m, cy - r - m, cx + r + m, cy + r + m, c.rgb565(), 0); +} + +/// The marker: a light disc with the arrow cut out of it in dark, the arrow turned to `angle` (a turn, clockwise +/// from up). No fix: a dimmer disc. `soft`: smooth edges; a moving frame (`soft` false) draws it hard-edged, a +/// third of the rects. +fn car(s: &mut impl Surface, fix: bool, angle: u16, soft: bool) { + let (x, y) = CAR; + let (sn, cs) = (sin(angle) as i64, cos(angle) as i64); + // The disc is drawn on whole pixels, centred on the middle of pixel (x, y). The arrow is built in half pixels + // round that same point (2x+1, 2y+1), so it is turned about its own middle and sits in the disc's middle. + let rot = |dx: i32, dy: i32| { + let rx = (dx as i64 * cs - dy as i64 * sn) >> 14; + let ry = (dx as i64 * sn + dy as i64 * cs) >> 14; + (2 * x + 1 + rx as i32, 2 * y + 1 + ry as i32) + }; + let (face, ink) = if fix { (Rgb(214, 218, 228), Rgb(30, 38, 54)) } else { (Rgb(120, 124, 134), Rgb(52, 58, 72)) }; + let arrow = [rot(0, -31), rot(26, 31), rot(0, 15), rot(-26, 31)]; // 26 px wide, 31 tall + if soft { + disc(s, x, y, CAR_R, face, MAP_BG); + poly_half(s, &arrow, face.rgb565(), |_| ink.rgb565()); + } else { + for dy in -CAR_R..=CAR_R { + let hw = cmf_wp2_ui::motion::isqrt(CAR_R * CAR_R - dy * dy); + s.rect(x - hw, y + dy, 2 * hw + 1, 1, face.rgb565()); + } + fill_hard(s, &arrow, ink.rgb565()); + } +} + +/// A hard-edged filled polygon (even-odd), corners in half pixels: a pixel is filled when its middle is inside. +/// A rect for every run of every row. +fn fill_hard(s: &mut impl Surface, p: &[(i32, i32)], c: u16) { + let y0 = p.iter().map(|q| q.1).min().unwrap_or(0).div_euclid(2); + let y1 = (p.iter().map(|q| q.1).max().unwrap_or(0) + 1).div_euclid(2); + for y in y0..y1 { + let yc = 2 * y + 1; // the middle of the row + let mut xs = [0i32; 8]; + let mut n = 0; + for k in 0..p.len() { + let (a, b) = (p[k], p[(k + 1) % p.len()]); + if (a.1 <= yc && b.1 > yc || b.1 <= yc && a.1 > yc) && n < xs.len() { + xs[n] = a.0 + (b.0 - a.0) * (yc - a.1) / (b.1 - a.1); + n += 1; + } + } + xs[..n].sort_unstable(); + for pair in xs[..n].chunks_exact(2) { + // pixel px has its middle at 2px+1: filled from pair[0].div_euclid(2) up to pair[1].div_euclid(2) + let (l, r) = (pair[0].div_euclid(2), pair[1].div_euclid(2)); + if r > l { + s.rect(l, y, r - l, 1, c); + } + } + } +} + +/// A surface that only takes what falls inside a box: the arrow's patch of the map is repainted through it. +struct Clip<'a, S: Surface> { + s: &'a mut S, + x0: i32, + y0: i32, + x1: i32, + y1: i32, +} + +impl Surface for Clip<'_, S> { + fn rect(&mut self, x: i32, y: i32, w: i32, h: i32, c: u16) { + let (xa, ya) = (x.max(self.x0), y.max(self.y0)); + let (xb, yb) = ((x + w).min(self.x1), (y + h).min(self.y1)); + if xb > xa && yb > ya { + self.s.rect(xa, ya, xb - xa, yb - ya, c); + } + } + + fn text(&mut self, _x: i32, _y: i32, _s: &str, _c: u16) {} +} + +/// How wide a text line with its baseline at `y` may be, from what the circle leaves there. +fn room(f: &crate::font::Font, y: i32, margin: i32) -> i32 { + let (x0, x1) = geom::chord(y - f.cap, y + f.descent / 2, margin); + x1 - x0 +} + +/// A line of small text centred at baseline `y`; a road name in a script the font lacks falls back to the +/// loader's font (ASCII and Cyrillic). +fn small(s: &mut impl Surface, y: i32, t: &str, c: Rgb) { + if S.covers(t) { + S.centre(s, C, y, t, room(&S, y, 14), c.rgb565(), 0); + } else { + let (_, cells) = geom::text_box(y - S.cap, 14); + let n = cmf_wp2_ui::text::chars(t).min(cells); + fitted(s, C - n as i32 * CHAR / 2, y - S.cap, t, n, c.rgb565()); + } +} + +fn message(s: &mut impl Surface, title: &str, sub: &str) { + s.rect(0, 0, SIZE, SIZE, 0); + // the big font has no hyphen: a title like "V-maps" is drawn in its parts with a small bar between them + const BAR: i32 = 16; + let parts = title.split('-'); + let width: i32 = parts.clone().map(|p| L.width(p)).sum::() + BAR * (title.matches('-').count() as i32); + let mut x = C - width / 2; + for (i, p) in parts.enumerate() { + if i > 0 { + s.rect(x + 3, C - 4 - L.cap / 3, BAR - 6, 4, WHITE.rgb565()); + x += BAR; + } + L.draw(s, x, C - 4, p, WHITE.rgb565(), 0); + x += L.width(p); + } + small(s, C + 38, sub, GREY); +} + +/// A button on the menu. +#[derive(Clone, Copy, PartialEq, Eq, Debug)] +pub enum Choice { + Home, + Work, +} + +const BTN_W: i32 = 300; +const BTN_H: i32 = 91; +const BTN_X: i32 = C - BTN_W / 2; +/// Top edges of the Home and the Work button. +const BTN_Y: [i32; 2] = [150, 258]; +const BTN_FACE: Rgb = Rgb(38, 46, 64); +const BTN_DOWN: Rgb = Rgb(48, 104, 200); +/// The slack round a button that still counts as on it. +const BTN_SLACK: i32 = 8; + +/// The button under a touch. +pub fn button_at(x: i32, y: i32) -> Option { + [Choice::Home, Choice::Work].into_iter().zip(BTN_Y).find_map(|(c, top)| { + (x >= BTN_X - BTN_SLACK && x < BTN_X + BTN_W + BTN_SLACK && y >= top - BTN_SLACK && y < top + BTN_H + BTN_SLACK) + .then_some(c) + }) +} + +/// The menu: a line of text above two big rounded buttons, Home and Work, and a hint under them. `down` is the +/// button a finger is on. +pub fn menu(s: &mut impl Surface, title: &str, hint: &str, down: Option) { + s.rect(0, 0, SIZE, SIZE, 0); + small(s, 120, title, WHITE); + for (c, top) in [Choice::Home, Choice::Work].into_iter().zip(BTN_Y) { + let face = if down == Some(c) { BTN_DOWN } else { BTN_FACE }; + // a bar with a half disc at each end + let r = (BTN_H - 1) / 2; + disc(s, BTN_X + r, top + r, r, face, BLACK); + disc(s, BTN_X + BTN_W - 1 - r, top + r, r, face, BLACK); + s.rect(BTN_X + r, top, BTN_W - 2 * r, BTN_H, face.rgb565()); + // the sign and the word, side by side, in the middle of the button + let label = if c == Choice::Home { "Home" } else { "Work" }; + let width = ICON_W + ICON_GAP + L.width(label); + let (x0, cy) = (C - width / 2, top + r); + let (ix, f) = (x0 + ICON_W / 2, face.rgb565()); + let white = WHITE.rgb565(); + if c == Choice::Home { + let roof = [(0, -19), (21, 0), (13, 0), (13, 18), (-13, 18), (-13, 0), (-21, 0)]; + let pts = roof.map(|(dx, dy)| (ix + dx, cy + dy)); + poly(s, &pts, f, |_| white); + s.rect(ix - 4, cy + 6, 8, 12, f); + } else { + s.rect(ix - 20, cy - 8, 40, 28, white); + s.rect(ix - 9, cy - 18, 18, 11, white); + s.rect(ix - 5, cy - 14, 10, 7, f); + s.rect(ix - 20, cy + 3, 40, 3, f); + } + L.draw(s, x0 + ICON_W + ICON_GAP, cy + L.cap / 2, label, white, f); + } + if !hint.is_empty() { + small(s, 412, hint, GREY); + } +} + +const ICON_W: i32 = 44; +const ICON_GAP: i32 = 18; + +/// After a button was pressed, until the phone's route arrives. +pub fn going(s: &mut impl Surface, c: Choice) { + message(s, if c == Choice::Home { "Home" } else { "Work" }, "Getting the route…"); +} + +/// `new` as a heading, but at most `max` away from `from` (going the short way round). +pub fn limit_turn(from: u16, new: u16, max: i32) -> u16 { + let d = new.wrapping_sub(from) as i16 as i32; + from.wrapping_add(d.clamp(-max, max) as i16 as u16) +} + +/// Interpolate a heading along the shortest clockwise/counter-clockwise path, including across north/zero. +#[inline] +pub fn interpolate_heading(from: u16, to: u16, elapsed_ms: u32, duration_ms: u32) -> u16 { + if duration_ms == 0 || elapsed_ms >= duration_ms { + return to; + } + let delta = to.wrapping_sub(from) as i16 as i32; + from.wrapping_add((delta * elapsed_ms as i32 / duration_ms as i32) as i16 as u16) +} + +/// Linear interpolation for the car position, independent of the heading animation clock. +#[inline] +pub fn interpolate_position(from: (i32, i32), to: (i32, i32), elapsed_ms: u32, duration_ms: u32) -> (i32, i32) { + if duration_ms == 0 || elapsed_ms >= duration_ms { + return to; + } + let t = elapsed_ms as i64; + let d = duration_ms as i64; + ( + (from.0 as i64 + (to.0 as i64 - from.0 as i64) * t / d) as i32, + (from.1 as i64 + (to.1 as i64 - from.1 as i64) * t / d) as i32, + ) +} + +/// The turn bubble: the bottom of the round screen below a shallow arc (a dome, highest in the middle), all black. +/// The map is never drawn into it (see `Cut`), so only a full frame paints it and a moving map costs nothing for it. +const BUB_TOP: i32 = 318; +const BUB_RD: i32 = 300; // the dome is an arc of a circle of this radius +const BUB_CY: i32 = BUB_TOP + BUB_RD; // its centre, below the screen + +/// The bubble's left and right edge on row `y`, or `None` where it has no width. +fn bubble_span(y: i32) -> Option<(i32, i32)> { + if !(BUB_TOP..SIZE).contains(&y) { + return None; + } + let d = BUB_CY - y; + let w = cmf_wp2_ui::motion::isqrt(BUB_RD * BUB_RD - d * d).min(geom::half(y)); + (w > 0).then_some((C - w, C + w)) +} + +/// A surface that leaves the bubble alone: whatever falls inside it is not drawn. +struct Cut<'a, S: Surface> { + s: &'a mut S, +} + +impl Surface for Cut<'_, S> { + fn rect(&mut self, x: i32, y: i32, w: i32, h: i32, c: u16) { + if y + h <= BUB_TOP { + return self.s.rect(x, y, w, h, c); + } + let end = y + h; + let mut r = y; + while r < end { + let span = bubble_span(r); + // the rows from `r` that have the same edges + let mut e = r + 1; + if r < BUB_TOP { + e = end.min(BUB_TOP); + } else { + while e < end && bubble_span(e) == span { + e += 1; + } + } + match span { + None => self.s.rect(x, r, w, e - r, c), + Some((a, b)) => { + if a > x { + self.s.rect(x, r, (a - x).min(w), e - r, c); + } + if b < x + w { + let l = b.max(x); + self.s.rect(l, r, x + w - l, e - r, c); + } + } + } + r = e; + } + } + + fn text(&mut self, _x: i32, _y: i32, _s: &str, _c: u16) {} +} + +/// Clears the map's background except the bubble: the part above it in one rect, beside it a row at a time (only +/// as far as the round screen goes, so about 130 rects). +fn clear_round_bubble(s: &mut impl Surface) { + let bg = MAP_BG.rgb565(); + s.rect(0, TOP, SIZE, BUB_TOP - TOP, bg); + for r in BUB_TOP..SIZE { + // only what the round screen has: beside the dome, and where the dome is wider than the screen, nothing + let h = geom::half(r); + match bubble_span(r) { + Some((a, b)) => { + if a > C - h { + s.rect(C - h, r, a - (C - h), 1, bg); + } + if b < C + h { + s.rect(b, r, C + h - b, 1, bg); + } + } + None => s.rect(C - h, r, 2 * h, 1, bg), + } + } +} + +/// The bubble: black, with the next turn's sign and the distance to it. +fn turn(s: &mut impl Surface, m: &Model) { + for y in BUB_TOP..SIZE { + if let Some((a, b)) = bubble_span(y) { + s.rect(a, y, b - a, 1, 0); + } + } + let st = &m.state; + if st.maneuver == man::OFF_ROUTE { + let y = 402; + icon(s, man::OFF_ROUTE, C - 100, y - 14, 28, ACCENT); + L.draw(s, C - 56, y, "Off route", ACCENT.rgb565(), 0); + S.draw(s, C - 56, y + 28, "Rerouting…", SHADE.rgb565(), 0); + return; + } + let d = distance(st.dist_m as u32, st.imperial()); + let (num, unit) = d.as_str().split_once(' ').unwrap_or((d.as_str(), "")); + let (iw, gap, ugap) = (60, 14, 8); + let w = iw + gap + XL.width(num) + ugap + L.width(unit); + let x = C - w / 2; + let y = 408; // baseline of the distance + icon(s, st.maneuver, x + iw / 2, y - XL.cap / 2, 28, WHITE); + let after = XL.draw(s, x + iw + gap, y, num, WHITE.rgb565(), 0); + L.draw(s, after + ugap, y, unit, SHADE.rgb565(), 0); + // the time left, light grey, under it (small when the round screen leaves too little room for the big one) + let left = duration(st.remaining_s as u32); + let t = left.as_str(); + let (f, ty) = if L.width(t) <= room(&L, 450, 8) { (&L, 450) } else { (&S, 446) }; + f.draw(s, C - f.width(t) / 2, ty, t, SHADE.rgb565(), 0); +} + +/// The whole screen. +pub fn draw(s: &mut impl Surface, m: &Model, ctx: &Ctx) { + let st = &m.state; + if !m.has_state || !ctx.live { + return message(s, "V-maps", if m.has_state { "Phone out of reach" } else { "Waiting for Vela…" }); + } + if !st.active() { + return message(s, "V-maps", "Start a route in Vela"); + } + if st.arrived() { + s.rect(0, 0, SIZE, SIZE, 0); + icon(s, man::ARRIVE, C, 168, 46, RED); + L.draw(s, C - L.width("Arrived") / 2, 268, "Arrived", WHITE.rgb565(), 0); + small(s, 308, m.text(), GREY); + return; + } + if ctx.dome { + // only the text changed: the dome paints itself black first, and the map stays as it is + return turn(s, m); + } + let mpp = ZOOMS[ctx.zoom.min(ZOOMS.len() - 1)]; + let angle = ctx.look.unwrap_or(0); + if ctx.arrow_only { + // the map has not moved: repaint the patch round the arrow and draw the arrow on it + let (x, y) = CAR; + let mut c = Clip { s, x0: x - 34, y0: y - 36, x1: x + 34, y1: y + 32 }; + c.rect(0, 0, SIZE, SIZE, MAP_BG.rgb565()); + layers(&mut c, m, mpp, false); + car(&mut c, st.fix(), angle, true); + return; + } + if ctx.light { + // the whole screen in the cheap style, except the bubble: it stays as the last full frame drew it + { + clear_round_bubble(s); + layers(&mut Cut { s: &mut *s }, m, mpp, true); + } + car(s, st.fix(), angle, false); + return; + } + { + clear_round_bubble(s); + layers(&mut Cut { s: &mut *s }, m, mpp, ctx.fast); + } + car(s, st.fix(), angle, true); + turn(s, m); +} + +/// The map: nearby streets, the road behind, the route ahead and where it ends. +fn layers(s: &mut impl Surface, m: &Model, mpp: i32, fast: bool) { + let st = &m.state; + // Reuse the same heading transform for every road, route dot and destination point in this frame. + let projector = Projector::new([st.x, st.y], st.course, mpp); + streets_projected(s, m, &projector, fast); + if m.route_len >= 2 { + let p = (st.progress as usize).clamp(1, m.route_len); + dots_projected(s, m, p - 1, m.route_len, 7, ROUTE_STEP, BLUE, &projector, fast); + let end = projector.project(m.route[m.route_len - 1]); + if geom::inside(end.0, end.1) && end.1 > TOP + 12 && end.1 < BOTTOM - 12 { + disc(s, end.0, end.1, 13, BLACK, WHITE); + disc(s, end.0, end.1, 9, RED, BLACK); + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::proto::enc::{route, state}; + use crate::proto::{F_ACTIVE, F_FIX, State}; + use cmf_wp2_ui::Fb; + use std::boxed::Box; + use std::vec; + use std::vec::Vec; + + #[test] + fn formats() { + assert_eq!(distance(347, false).as_str(), "340 m"); + assert_eq!(distance(42, false).as_str(), "40 m"); + assert_eq!(distance(1249, false).as_str(), "1.2 km"); + assert_eq!(distance(9960, false).as_str(), "10.0 km"); + assert_eq!(distance(23_600, false).as_str(), "24 km"); + assert_eq!(distance(100, true).as_str(), "350 ft"); + assert_eq!(distance(500, true).as_str(), "0.3 mi"); + assert_eq!(distance(40_000, true).as_str(), "25 mi"); + assert_eq!(duration(840).as_str(), "14 min"); + assert_eq!(duration(3900).as_str(), "1 h 05"); + } + + #[test] + fn projector_reuses_one_frame_transform_without_changing_projection() { + for course in [0u16, 1, 8192, 16384, 24576, 32768, 49152, 65535] { + let car = [12_345, -67_890]; + let projector = Projector::new(car, course, 1); + let (sn, cs) = (sin(course) as i64, cos(course) as i64); + for p in [[12_345, -67_790], [12_245, -67_890], [12_400, -67_940], [50_000, 20_000]] { + let (dx, dy) = (p[0] as i64 - car[0] as i64, p[1] as i64 - car[1] as i64); + let d = Q14 as i64; + let right = (dx * cs - dy * sn) / d; + let ahead = (dx * sn + dy * cs) / d; + let lim = 1i64 << 20; + let expected = ( + (CAR.0 as i64 + right.clamp(-lim, lim)) as i32, + (CAR.1 as i64 - ahead.clamp(-lim, lim)) as i32, + ); + assert_eq!(projector.project(p), expected, "course {course}, point {p:?}"); + } + } + } + + #[test] + fn heading_interpolation_takes_short_path_through_north() { + let halfway = interpolate_heading(65_000, 500, 100, 200); + assert!(halfway < 65_535 && halfway > 65_000); + assert_eq!(interpolate_heading(65_000, 500, 200, 200), 500); + assert_eq!(interpolate_heading(500, 65_000, 100, 200), 65_518); + } + + #[test] + fn retargeting_heading_starts_from_the_currently_displayed_angle() { + let displayed = interpolate_heading(1000, 5000, 120, 240); + // A new phone sample retargets from the value on screen, so t=0 cannot jump. + assert_eq!(interpolate_heading(displayed, 9000, 0, 240), displayed); + assert_eq!(interpolate_heading(displayed, 9000, 240, 240), 9000); + } + + #[test] + fn position_and_heading_interpolations_finish_independently() { + assert_eq!(interpolate_position((0, 0), (100, 200), 100, 200), (50, 100)); + assert_eq!(interpolate_heading(0, 16_384, 100, 200), 8_192); + assert_eq!(interpolate_heading(0, 16_384, 200, 200), 16_384); + } + + #[test] + fn heading_up() { + // heading east (a quarter turn): a point 100 m east is straight ahead, one 100 m south is to the right + assert_eq!(project([100, 0], [0, 0], 0x4000, 1), (CAR.0, CAR.1 - 100)); + assert_eq!(project([0, -100], [0, 0], 0x4000, 1), (CAR.0 + 100, CAR.1)); + assert_eq!(project([0, 100], [0, 0], 0, 2), (CAR.0, CAR.1 - 50)); + // far away does not overflow + let far = project([2_000_000_000, -2_000_000_000], [-2_000_000_000, 2_000_000_000], 0x2000, 1); + assert!(far.0 > SIZE); + } + + #[test] + fn clipping() { + assert_eq!(clip((10, 10), (20, 20), 0, 100), Some(((10, 10), (20, 20)))); + assert_eq!(clip((-50, -50), (-10, -10), 0, 100), None); + assert_eq!(clip((-100, 50), (200, 50), 0, 100), Some(((0, 50), (100, 50)))); + } + + fn model() -> Box { + let mut m = Box::new(Model::new()); + let pts: vec::Vec<[i32; 2]> = + (0..60).map(|i| if i < 30 { [0, i * 20] } else { [(i - 29) * 20, 580] }).collect(); + let (msgs, seq) = route(0, 1, &pts); + msgs.iter().for_each(|x| { + m.apply(x); + }); + let st = State { + flags: F_ACTIVE | F_FIX, + maneuver: man::RIGHT, + dist_m: 180, + remaining_10m: 120, + remaining_s: 300, + limit: 50, + x: 0, + y: 400, + progress: 21, + ..State::default() + }; + m.apply(&state(seq, &st)); + m.apply(&crate::proto::enc::msg(b'T', seq.wrapping_add(1), b"Bannerghatta Main Road")); + m + } + + #[test] + fn the_arrow_turns_and_only_its_patch_is_repainted() { + let m = model(); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + let ctx = |look: Option, arrow_only| Ctx { live: true, zoom: ZOOM_DEFAULT, fast: false, look, arrow_only, light: false, dome: false }; + // looking east (a quarter turn): the tip points right of the car, the wings trail to the left + draw(&mut fb, &m, &ctx(Some(16384), false)); + let ink = Rgb(30, 38, 54).rgb565(); + assert_eq!(fb.at(CAR.0 + 8, CAR.1), ink, "tip at the right"); + assert_ne!(fb.at(CAR.0, CAR.1 - 8), ink, "nothing up any more"); + // a heading change alone: pixels outside the patch are left as they were, the arrow follows the new heading + let mut px2 = vec![0x1234u16; (SIZE * SIZE) as usize]; + let mut fb2 = Fb::new(&mut px2); + draw(&mut fb2, &m, &ctx(Some(0), true)); + assert_eq!(fb2.at(10, 10), 0x1234); + assert_eq!(fb2.at(CAR.0 + 60, CAR.1), 0x1234); + assert_eq!(fb2.at(CAR.0, CAR.1 - 8), Rgb(30, 38, 54).rgb565()); // the arrow up, on the disc + assert_eq!(fb2.at(CAR.0 - 22, CAR.1), Rgb(214, 218, 228).rgb565()); + assert!(fb2.rects < 1500, "{}", fb2.rects); // a full frame is ~15x that + } + + #[test] + fn a_light_frame_repaints_the_screen_but_the_bubble() { + let m = rich(); + let mut px = vec![0x1234u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: true, look: None, arrow_only: false, light: true, dome: false }); + assert_eq!(fb.at(C, C + 218), 0x1234); // the bubble is left as it was + assert_ne!(fb.at(C, 100), 0x1234); + assert_ne!(fb.at(C, 20), 0x1234); + assert_eq!(fb.at(CAR.0, CAR.1 - 8), Rgb(30, 38, 54).rgb565()); + assert_eq!(fb.at(CAR.0 - 22, CAR.1), Rgb(214, 218, 228).rgb565()); + assert!(fb.rects < 7000, "{}", fb.rects); + } + + #[test] + fn draws_a_drive() { + let m = model(); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: false, look: None, arrow_only: false, light: false, dome: false }); + // the route ahead passes above the car, the car is drawn, the turn goes right of the centre + assert!((CAR.1 - 90..CAR.1 - 35).any(|y| fb.at(CAR.0, y) == BLUE.rgb565())); + // the car: a light disc with a dark arrow in it + assert_eq!(fb.at(CAR.0, CAR.1 - 8), Rgb(30, 38, 54).rgb565()); + assert_eq!(fb.at(CAR.0 - 22, CAR.1), Rgb(214, 218, 228).rgb565()); + // no progress arc at the bottom + assert_eq!(fb.at(C, C + 218), 0); + assert!(fb.rects < 20_000, "{}", fb.rects); + // nothing lit outside the circle + for y in 0..SIZE { + for x in 0..SIZE { + // outside the round screen only the background's own colour (its clear is a square) + if !geom::inside(x, y) { + let p = fb.at(x, y); + assert!(p == 0 || p == MAP_BG.rgb565(), "lit at {x},{y}"); + } + } + } + } + + #[test] + fn a_turn_is_limited_per_frame_the_short_way() { + assert_eq!(limit_turn(100, 500, 4096), 500); + assert_eq!(limit_turn(0, 20000, 4096), 4096); + assert_eq!(limit_turn(0, 0u16.wrapping_sub(20000), 4096), 0u16.wrapping_sub(4096)); + // across north: 65000 -> 2000 is a short turn right, not a long one left + assert_eq!(limit_turn(65000, 2000, 4096), 2000); + assert_eq!(limit_turn(60000, 8000, 4096), 60000u16.wrapping_add(4096)); + } + + /// The steep branch as it was before equal rows were joined: one rect a row. + fn steep_rows(s: &mut impl Surface, a: (i32, i32), b: (i32, i32), w: i32, c: Rgb) { + let k = c.rgb565(); + let (dx, dy) = ((b.0 - a.0) as i64, (b.1 - a.1) as i64); + let len = cmf_wp2_ui::motion::isqrt((dx * dx + dy * dy).min(i32::MAX as i64) as i32) as i64; + let th = ((w as i64 * len + dy.abs() / 2) / dy.abs()).max(w as i64) as i32; + for y in a.1.min(b.1).max(0)..=a.1.max(b.1).min(SIZE - 1) { + let xc = a.0 as i64 + dx * (y - a.1) as i64 / dy; + let h = geom::half(y); + let (x0, x1) = ((xc as i32 - th / 2).max(C - h), (xc as i32 - th / 2 + th).min(C + h)); + if x1 > x0 { + s.rect(x0, y, x1 - x0, 1, k); + } + } + } + + #[test] + fn joined_steep_rows_draw_the_same_pixels() { + let ends = [(C, -40), (C + 3, SIZE + 40), (60, 20), (400, 450), (233, 233), (120, 440), (300, 10), (30, 200), (C + 90, 100)]; + let mut n = 0; + for &a in &ends { + for &b in &ends { + if (b.1 - a.1).abs() < (b.0 - a.0).abs() || a == b { + continue; // steep ones only + } + for w in [3, 8, 16] { + let mut p1 = vec![0u16; (SIZE * SIZE) as usize]; + let mut p2 = p1.clone(); + let (mut f1, mut f2) = (Fb::new(&mut p1), Fb::new(&mut p2)); + fast_line(&mut f1, a, b, w, WHITE); + steep_rows(&mut f2, a, b, w, WHITE); + let (r1, r2) = (f1.rects, f2.rects); + assert!(p1 == p2, "{a:?} {b:?} {w}"); + assert!(r1 <= r2); + n += 1; + } + } + } + assert!(n > 30); + // a vertical street is one rect + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + fast_line(&mut fb, (C, -10), (C, SIZE + 10), 8, WHITE); + assert_eq!(fb.rects, 1); + } + + #[test] + fn the_route_is_dots_that_stay_put_on_the_map() { + let mut m = model(); + let snap = |m: &Model, fast: bool| { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + layers(&mut fb, m, 1, fast); + px + }; + // the dots are separate: going up the column of the car there are gaps between blue runs + for fast in [false, true] { + let px = snap(&m, fast); + let col: Vec = (CAR.1 - 150..CAR.1 - 35).map(|y| px[(y * SIZE + CAR.0) as usize] == BLUE.rgb565()).collect(); + let runs = col.windows(2).filter(|w| !w[0] && w[1]).count(); + assert!(runs >= 3, "{fast} {runs}"); + assert!(col.iter().any(|b| !b) && col.iter().any(|b| *b)); + } + // 24 m on, the dots are exactly where they were (the pattern repeats every 24 px along the route) + let a = snap(&m, true); + m.state.y += 24; + let b = snap(&m, true); + let blue = |px: &Vec, y: i32| (CAR.0 - 8..CAR.0 + 8).filter(|x| px[(y * SIZE + x) as usize] == BLUE.rgb565()).count(); + for y in CAR.1 - 150..CAR.1 - 80 { + assert_eq!(blue(&a, y), blue(&b, y + 24), "row {y}"); + } + } + + #[test] + fn the_arrow_is_in_the_middle_of_the_disc() { + let m = model(); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + car(&mut fb, true, 0, true); + let ink = Rgb(30, 38, 54).rgb565(); + let (mut x0, mut x1, mut y0, mut y1) = (SIZE, 0, SIZE, 0); + for y in CAR.1 - CAR_R..=CAR.1 + CAR_R { + for x in CAR.0 - CAR_R..=CAR.0 + CAR_R { + if fb.at(x, y) != ink { + continue; + } + (x0, x1, y0, y1) = (x0.min(x), x1.max(x), y0.min(y), y1.max(y)); + } + } + // the disc spans CAR.1 - CAR_R ..= CAR.1 + CAR_R: the arrow leaves as much room above as below + let (above, below) = (y0 - (CAR.1 - CAR_R), (CAR.1 + CAR_R) - y1); + assert!((above - below).abs() <= 1, "{above} {below}"); + let (left, right) = (x0 - (CAR.0 - CAR_R), (CAR.0 + CAR_R) - x1); + assert!((left - right).abs() <= 1, "{left} {right}"); + let _ = m; + } + + #[test] + fn every_icon_stays_in_its_box() { + for code in 0..=13 { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + icon(&mut fb, code, C, C, 32, WHITE); + for y in 0..SIZE { + for x in 0..SIZE { + if fb.at(x, y) != 0 { + assert!((x - C).abs() <= 40 && (y - C).abs() <= 40, "icon {code} at {x},{y}"); + } + } + } + } + } + + fn with_streets(mut m: Box) -> Box { + let lines = vec![ + vec![[-300i16, 120], [-200, 120], [-100, 120], [0, 120], [100, 120], [200, 120], [300, 120]], + vec![[60i16, 100], [90, 150], [150, 200], [220, 230]], + vec![[-80i16, 0], [-80, 100], [-80, 200], [-80, 300]], + ]; + let (msgs, _) = crate::proto::enc::roads(10, 4, [0, 400], &lines); + msgs.iter().for_each(|x| { + m.apply(x); + }); + m + } + + #[test] + fn nearby_streets_are_grey_and_under_the_route() { + let m = with_streets(model()); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: false, look: None, arrow_only: false, light: false, dome: false }); + // the street left of the road, 80 m west at 3 m/px: 27 px left of the car's column, going up + assert!((CAR.0 - 31..CAR.0 - 22).any(|x| fb.at(x, CAR.1 - 60) == STREET.rgb565())); + // the cross street 120 m ahead of (0, 400): y 520 = 40 px above the car + assert!((CAR.1 - 44..CAR.1 - 35).any(|y| fb.at(CAR.0 - 90, y) == STREET.rgb565() || fb.at(CAR.0 - 90, y) == MAJOR.rgb565())); + // the route stays on top where they cross + assert!((CAR.1 - 90..CAR.1 - 35).any(|y| fb.at(CAR.0, y) == BLUE.rgb565())); + assert!(fb.rects < 25_000, "{}", fb.rects); + } + + /// A winding route with a grid of streets around the car, for pictures. + fn rich() -> Box { + let mut m = Box::new(Model::new()); + let mut pts: vec::Vec<[i32; 2]> = vec![]; + for i in 0..=20 { pts.push([0, i * 20]); } // north 400 m + for i in 1..=15 { pts.push([i * 20, 400]); } // east 300 m + for i in 1..=20 { pts.push([300, 400 + i * 20]); } // north 400 m + for i in 1..=10 { pts.push([300 - i * 20, 800]); } // west 200 m + let (msgs, seq) = route(0, 1, &pts); + msgs.iter().for_each(|x| { + m.apply(x); + }); + let st = State { + flags: F_ACTIVE | F_FIX, + maneuver: man::RIGHT, + after: man::LEFT, + after_m: 240, + dist_m: 180, + remaining_10m: 120, + remaining_s: 300, + x: 0, + y: 220, + progress: 12, + ..State::default() + }; + m.apply(&state(seq, &st)); + let mut lines: vec::Vec> = vec![]; + for k in -2..=5i16 { + lines.push(vec![[-740, k * 160 + 30], [-370, k * 160 + 8], [0, k * 160], [370, k * 160 - 12], [740, k * 160 - 20]]); + } + for k in -4..=4i16 { + lines.push(vec![[k * 190 + 20, -400], [k * 190 + 10, -150], [k * 190, 150], [k * 190 - 10, 400]]); + } + lines.truncate(ROADS_LINES_MAX); + let (msgs, _) = crate::proto::enc::roads(seq.wrapping_add(1), 4, [0, 400], &lines); + msgs.iter().for_each(|x| { + m.apply(x); + }); + m.apply(&crate::proto::enc::msg(b'T', seq.wrapping_add(40), b"Bannerghatta Main Road")); + m + } + + /// `PREVIEW=/path cargo test dump_preview`: raw RGB565 frames of the screen, for pictures. + #[test] + fn dump_preview() { + let Ok(dir) = std::env::var("PREVIEW") else { return }; + let mut m = rich(); + let mut shot = |name: &str, m: &Model, zoom: usize| { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, m, &Ctx { live: true, zoom, fast: false, look: None, arrow_only: false, light: false, dome: false }); + let bytes: Vec = px.iter().flat_map(|v| v.to_le_bytes()).collect(); + std::fs::write(format!("{dir}/{name}.raw"), bytes).unwrap(); + }; + shot("drive", &m, ZOOM_DEFAULT); + shot("far", &m, 4); + shot("near", &m, 1); + m.state.maneuver = man::OFF_ROUTE; + shot("off", &m, ZOOM_DEFAULT); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: true, look: None, arrow_only: false, light: false, dome: false }); + std::fs::write(format!("{dir}/fast.raw"), px.iter().flat_map(|v| v.to_le_bytes()).collect::>()).unwrap(); + } + + /// Winding streets, a vertex every ~15 m, for the cost of rounding bends. + fn curvy() -> Box { + let mut m = rich(); + let mut lines: vec::Vec> = vec![]; + for k in 0..12i32 { + let mut l = vec![]; + for i in 0..24i32 { + let t = i as f32 * 0.9; // a bend every 29 m, 40 to 60 degrees + let x = -330 + i * 29; + let y = k * 70 - 330 + (45.0 * (t + k as f32).sin()) as i32; + l.push([x as i16, y as i16]); + } + lines.push(l); + } + let (msgs, _) = crate::proto::enc::roads(60, 9, [0, 220], &lines); + msgs.iter().for_each(|x| { + m.apply(x); + }); + m + } + + #[test] + fn rounded_bends_in_a_moving_frame_stay_cheap() { + let m = curvy(); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: true, look: None, arrow_only: false, light: true, dome: false }); + eprintln!("curvy moving frame: {} rects", fb.rects); + assert!(fb.rects < 2700, "{}", fb.rects); + } + + #[test] + fn the_bubble_stays_and_a_moving_frame_leaves_it_alone() { + let m = rich(); + let mut full = vec![0u16; (SIZE * SIZE) as usize]; + draw(&mut Fb::new(&mut full), &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: false, look: None, arrow_only: false, light: false, dome: false }); + // the bubble is black with the sign and the distance on it + assert!((BUB_TOP..SIZE).any(|y| bubble_span(y).is_some_and(|(a, b)| (a..b).any(|x| full[(y * SIZE + x) as usize] != 0)))); + // a light frame drawn over it leaves every pixel of the bubble as it was, and costs fewer rects + let mut px = full.clone(); + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: true, look: None, arrow_only: false, light: true, dome: false }); + assert!(fb.rects < 3300, "{}", fb.rects); + for y in BUB_TOP..SIZE { + let Some((a, b)) = bubble_span(y) else { continue }; + for x in a..b { + assert_eq!(px[(y * SIZE + x) as usize], full[(y * SIZE + x) as usize], "bubble changed at {x},{y}"); + } + } + } + + #[test] + fn fast_streets_keep_every_street_and_the_layering() { + let m = with_streets(model()); + let frame = |fast: bool| { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast, look: None, arrow_only: false, light: false, dome: false }); + let rects = fb.rects; + (px, rects) + }; + let (full, full_rects) = frame(false); + let (fast, fast_rects) = frame(true); + // fewer rects in all, and a lot fewer for the streets themselves + assert!(fast_rects < full_rects, "{fast_rects} vs {full_rects}"); + let cost = |fast: bool, zoom: usize| { + let mut c = cmf_wp2_ui::Count { rects: 0, px: 0 }; + streets(&mut c, &rich(), ZOOMS[zoom], fast); + c.rects + }; + for zoom in [0, 2, 4] { + let (f, q) = (cost(false, zoom), cost(true, zoom)); + eprintln!("zoom {zoom}: streets {f} rects, fast {q}"); + assert!(q * 2 < f, "zoom {zoom}: {q} vs {f}"); + } + // the same streets are there: every pixel that is grey in the full frame is grey (some grey) in the fast one + let grey = |p: u16| p == STREET.rgb565() || p == MAJOR.rgb565(); + let (mut both, mut only_full) = (0, 0); + for (a, b) in full.iter().zip(&fast) { + if grey(*a) { + if grey(*b) { both += 1 } else { only_full += 1 } + } + } + assert!(both > 1500 && only_full * 4 < both, "{both} {only_full}"); + // a main road is over a small street where they cross; the route over both + let cross = |px: &Vec, x, y| px[(y * SIZE + x) as usize]; + assert!((CAR.1 - 90..CAR.1 - 35).any(|y| cross(&fast, CAR.0, y) == BLUE.rgb565())); + } + + #[test] + fn nothing_is_drawn_for_streets_in_the_corners() { + // a street in the top left corner of the square, outside the round screen + assert!(!near_screen((0, 0), (30, 0), 6)); + assert!(near_screen((0, 233), (30, 233), 6)); + assert!(near_screen((-100, 233), (600, 233), 6)); + assert!(!near_screen((-50, 20), (20, -50), 10)); + } + + #[test] + fn the_menu_has_two_buttons_that_can_be_hit() { + assert_eq!(button_at(C, BTN_Y[0] + 40), Some(Choice::Home)); + assert_eq!(button_at(C, BTN_Y[1] + 40), Some(Choice::Work)); + assert_eq!(button_at(C, 60), None); + assert_eq!(button_at(C, 440), None); + assert_eq!(button_at(5, BTN_Y[0] + 40), None); + // the buttons sit inside the round screen with room to spare + for top in BTN_Y { + for y in [top, top + BTN_H - 1] { + let (x0, x1) = geom::chord(y, y + 1, 6); + assert!(BTN_X + BTN_H / 2 >= x0 && BTN_X + BTN_W - BTN_H / 2 <= x1, "{y}"); + } + } + } + + #[test] + fn the_menu_draws_inside_the_circle_and_shows_a_pressed_button() { + let draw_menu = |down: Option, title: &str| { + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + menu(&mut fb, title, "Swipe left to go back", down); + px + }; + let (a, b) = (draw_menu(None, "Start a destination"), draw_menu(Some(Choice::Work), "Start a destination")); + for y in 0..SIZE { + for x in 0..SIZE { + if !geom::inside(x, y) { + assert_eq!(a[(y * SIZE + x) as usize], 0, "lit at {x},{y}"); + } + } + } + let at = |px: &Vec, x: i32, y: i32| px[(y * SIZE + x) as usize]; + // the buttons have a face; the one under a finger has another + assert_eq!(at(&a, BTN_X + 20, BTN_Y[0] + 45), BTN_FACE.rgb565()); + assert_eq!(at(&a, BTN_X + 20, BTN_Y[1] + 45), BTN_FACE.rgb565()); + assert_eq!(at(&b, BTN_X + 20, BTN_Y[1] + 45), BTN_DOWN.rgb565()); + assert_eq!(at(&b, BTN_X + 20, BTN_Y[0] + 45), BTN_FACE.rgb565()); + // the word is white on the face: some white inside the button + let white = (BTN_X..BTN_X + BTN_W).any(|x| (BTN_Y[0]..BTN_Y[0] + BTN_H).any(|y| at(&a, x, y) == 0xFFFF)); + assert!(white); + // another title draws a different screen + assert!(a != draw_menu(None, "Waiting for Vela…")); + // it is a still screen: cheap + let mut c = cmf_wp2_ui::Count { rects: 0, px: 0 }; + menu(&mut c, "Start a destination", "", None); + assert!(c.rects < 6000, "{}", c.rects); + let mut px = vec![0u16; (SIZE * SIZE) as usize]; + going(&mut Fb::new(&mut px), Choice::Home); + assert!(px.iter().any(|&p| p == 0xFFFF)); + } + + #[test] + fn points_in_the_same_pixel_cost_nothing() { + let mut m = model(); + // a street of 200 points a decimetre apart: one pixel at most + let line: vec::Vec<[i16; 2]> = (0..200).map(|i| [-60i16, 100 + i / 2]).collect(); + let (msgs, _) = crate::proto::enc::roads(10, 4, [0, 400], &[line]); + msgs.iter().for_each(|x| { + m.apply(x); + }); + let mut c = cmf_wp2_ui::Count { rects: 0, px: 0 }; + streets(&mut c, &m, 3, false); + assert!(c.rects < 400, "{}", c.rects); + } + + #[test] + fn a_dome_frame_repaints_only_the_dome() { + let m = rich(); + let mut px = vec![0x1234u16; (SIZE * SIZE) as usize]; + let mut fb = Fb::new(&mut px); + draw(&mut fb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: false, look: None, arrow_only: false, light: false, dome: true }); + assert_eq!(fb.at(C, 100), 0x1234); // the map is left as it was + assert_eq!(fb.at(CAR.0, CAR.1), 0x1234); + assert_ne!(fb.at(C, C + 218), 0x1234); // the dome is painted + // and it costs well under a whole frame + let mut full = vec![0u16; (SIZE * SIZE) as usize]; + let mut ffb = Fb::new(&mut full); + draw(&mut ffb, &m, &Ctx { live: true, zoom: ZOOM_DEFAULT, fast: false, look: None, arrow_only: false, light: false, dome: false }); + assert!(fb.rects * 2 < ffb.rects, "dome {} full {}", fb.rects, ffb.rects); + } + + #[test] + fn the_quick_projection_is_the_long_one() { + let cars = [[0, 0], [3, -4], [-1200, 800]]; + for (p, car, course, mpp) in [ + ([10, 20], cars[0], 0x1234u16, 1), + ([-250, 300], cars[1], 40000, 3), + ([299, -280], cars[2], 65535, 13), + ([59_000, -59_000], cars[0], 12345, 1), + ([100_000, 90_000], cars[0], 777, 2), + ] { + let (dx, dy) = (p[0] as i64 - car[0] as i64, p[1] as i64 - car[1] as i64); + let (s, c) = (sin(course) as i64, cos(course) as i64); + let d = Q14 as i64 * mpp as i64; + let (right, ahead) = ((dx * c - dy * s) / d, (dx * s + dy * c) / d); + let lim = 1i64 << 20; + let want = ((CAR.0 as i64 + right.clamp(-lim, lim)) as i32, (CAR.1 as i64 - ahead.clamp(-lim, lim)) as i32); + assert_eq!(project(p, car, course, mpp), want, "{p:?} {car:?}"); + } + } + + #[test] + fn the_square_root_is_exact() { + for n in [0u64, 1, 2, 3, 4, 15, 16, 17, 99, 100, 1 << 31, u32::MAX as u64 - 1, u32::MAX as u64, u32::MAX as u64 + 1, 1 << 40, u64::MAX >> 1] { + let r = isqrt64(n) as u128; + assert!(r * r <= n as u128 && (r + 1) * (r + 1) > n as u128, "{n}"); + } + for n in 0..5000u64 { + let r = isqrt64(n * 1_000_003) as u128; + assert!(r * r <= (n * 1_000_003) as u128 && (r + 1) * (r + 1) > (n * 1_000_003) as u128); + } + } + + /// The dots as 1.25 drew them: every dot of the whole route turned, whether or not it could be on screen. + #[allow(clippy::too_many_arguments)] + fn dots_of_everything(s: &mut impl Surface, m: &Model, from: usize, to: usize, r: i32, step: i32, c: Rgb, mpp: i32, fast: bool) { + let st = &m.state; + let car = [st.x, st.y]; + let step = step as i64 * mpp as i64; + let mut cum = 0i64; + for i in 0..to.min(m.route_len).saturating_sub(1) { + let (a, b) = (m.route[i], m.route[i + 1]); + let (dx, dy) = (b[0] as i64 - a[0] as i64, b[1] as i64 - a[1] as i64); + let len = isqrt64((dx * dx + dy * dy) as u64) as i64; + if i >= from && len > 0 { + let mut d = (cum + step - 1) / step * step; + while d < cum + len { + let t = d - cum; + // This test-only baseline intentionally uses the one-shot projection helper: + // it models the pre-Projector renderer for pixel-equivalence comparisons. + let p = project( + [(a[0] as i64 + dx * t / len) as i32, (a[1] as i64 + dy * t / len) as i32], + car, + st.course, + mpp, + ); + if geom::inside(p.0, p.1) { + if fast { + flat_disc(s, p.0, p.1, r, c); + } else { + disc(s, p.0, p.1, r, c, MAP_BG); + } + } + d += step; + } + } + cum += len; + } + } + + fn long_route() -> Box { + // a route 20 km long, then a turn: the car is half way along the first stretch + let mut m = model(); + m.route[0] = [0, 0]; + m.route[1] = [0, 20_000]; + m.route[2] = [3000, 20_000]; + m.route_len = 3; + m.state.x = 3; + m.state.y = 9000; + m + } + + #[test] + fn leaving_out_what_is_far_away_changes_no_pixel() { + for which in 0..2 { + for mpp in [1, 3] { + for fast in [false, true] { + for course in [0u16, 9000, 30000, 50000] { + let mut m = if which == 0 { model() } else { long_route() }; + m.state.course = course; + let (mut a, mut b) = (vec![0u16; (SIZE * SIZE) as usize], vec![0u16; (SIZE * SIZE) as usize]); + dots(&mut Fb::new(&mut a), &m, 0, m.route_len, 7, ROUTE_STEP, BLUE, mpp, fast); + dots_of_everything(&mut Fb::new(&mut b), &m, 0, m.route_len, 7, ROUTE_STEP, BLUE, mpp, fast); + assert!(a == b, "route {which} mpp {mpp} fast {fast} course {course}"); + if mpp == 1 { + assert!(a.iter().any(|p| *p == BLUE.rgb565()), "route {which}: nothing drawn"); + } + } + } + } + } + } +} diff --git a/apps/v-maps/store.md b/apps/v-maps/store.md new file mode 100644 index 0000000..38786f5 --- /dev/null +++ b/apps/v-maps/store.md @@ -0,0 +1,21 @@ +Shows the drive that **Vela** on your phone is navigating, on a live map that fills the whole screen. The route is a +line of blue dots, the streets around you are thin lines (main roads a little brighter), and your position is a +light disc with an arrow. Turn the crown to zoom. + +At the bottom, in a black dome, are the next turn, the distance to it and the time left. Hold the screen to switch +between two ways of looking: the arrow turns to where you are heading and the map stays (north up), or the map turns +with you and the arrow stays up. When you arrive, the screen says so. The screen stays on while a route is active. + +What goes over Bluetooth is the turn, the road name, and the route and your position in metres from the start of +the route: never latitude and longitude, and never the destination's name. The watch's app channel can be read by +any device in Bluetooth range, so a nearby listener could still see the shape of the drive and the road names. + +## Requirements + +- The [patched firmware](/firmware) (`fw-wp2.bin` from 2026-11-13 or later) and the [App Loader](/firmware) + (2026-11-13 or later). +- Vela for Android with the watch link, [APK on GitHub](https://github.com/arunk140/esp32-vela/releases/latest) + ([source](https://github.com/arunk140/esp32-vela)), on the phone that is paired with the watch in Nothing X. In + Vela: Settings > Nav device > CMF watch test, pick the watch, turn on **Show navigation on the watch**. + +Open it from the **Apps** row at the end of the watch's app list before you start driving. diff --git a/apps/v-maps/store.toml b/apps/v-maps/store.toml new file mode 100644 index 0000000..18953c4 --- /dev/null +++ b/apps/v-maps/store.toml @@ -0,0 +1,6 @@ +# The app's listing in the FMC store (README.md, "store.toml"). The page's body is store.md. +name = "V-maps" +summary = "A live map of your route and the streets around you, with the next turn and the time left, from the Vela maps app on your phone" +version = "1.1.0" +author = "Abdalrahman" +screenshots = ["shots/driving.png", "shots/zoomed-out.png", "shots/off-route.png"]