Coverage Report

Created: 2026-12-01 06:19

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/ada-url/build/singleheader/ada.cpp
Line
Count
Source
1
/* auto-generated on 2026-12-01 06:38:24 +0100. Do not edit! */
2
/* begin file src/ada.cpp */
3
#include "ada.h"
4
/* begin file src/checkers.cpp */
5
6
#include <algorithm>
7
#include <array>
8
#include <cstddef>
9
#include <cstdint>
10
#include <string_view>
11
12
namespace ada::checkers {
13
14
33.9k
ada_really_inline constexpr bool is_ipv4(std::string_view view) noexcept {
15
  // The string is not empty and does not contain upper case ASCII characters.
16
33.9k
  if (!last_label_may_be_a_number(view)) {
17
24.5k
    return false;
18
24.5k
  }
19
  // If the address ends with a dot, we need to prune it (special case).
20
9.42k
  if (view.ends_with('.')) {
21
462
    view.remove_suffix(1);
22
462
  }
23
  // From the last character, find the last dot.
24
9.42k
  size_t last_dot = view.rfind('.');
25
9.42k
  if (last_dot != std::string_view::npos) {
26
    // We have at least one dot.
27
2.78k
    view.remove_prefix(last_dot + 1);
28
2.78k
  }
29
  /** Optimization opportunity: we have basically identified the last number of
30
     the ipv4 if we return true here. We might as well parse it and have at
31
     least one number parsed when we get to parse_ipv4. */
32
9.42k
  if (std::ranges::all_of(view, ada::checkers::is_digit)) {
33
4.48k
    return true;
34
4.48k
  }
35
  // It could be hex (0x), but not if there is a single character.
36
4.94k
  if (view.size() == 1) {
37
0
    return false;
38
0
  }
39
  // It must start with 0x.
40
4.94k
  if (!view.starts_with("0x")) {
41
2.41k
    return false;
42
2.41k
  }
43
  // We must allow "0x".
44
2.52k
  if (view.size() == 2) {
45
249
    return true;
46
249
  }
47
  // We have 0x followed by some characters, we need to check that they are
48
  // hexadecimals.
49
2.27k
  view.remove_prefix(2);
50
2.27k
  return std::ranges::all_of(view, ada::unicode::is_lowercase_hex);
51
2.52k
}
52
53
// for use with path_signature, we include all characters that need percent
54
// encoding.
55
static constexpr std::array<uint8_t, 256> path_signature_table =
56
    []() consteval {
57
      std::array<uint8_t, 256> result{};
58
      for (size_t i = 0; i < 256; i++) {
59
        if (i <= 0x20 || i == 0x22 || i == 0x23 || i == 0x3c || i == 0x3e ||
60
            i == 0x3f || i == 0x5e || i == 0x60 || i == 0x7b || i == 0x7d ||
61
            i > 0x7e) {
62
          result[i] = 1;
63
        } else if (i == 0x25) {
64
          result[i] = 8;
65
        } else if (i == 0x2e) {
66
          result[i] = 4;
67
        } else if (i == 0x5c) {
68
          result[i] = 2;
69
        } else {
70
          result[i] = 0;
71
        }
72
      }
73
      return result;
74
    }();
75
76
ada_really_inline constexpr uint8_t path_signature(
77
21.4k
    std::string_view input) noexcept {
78
  // The path percent-encode set is the query percent-encode set and U+003F (?),
79
  // U+0060 (`), U+007B ({), and U+007D (}). The query percent-encode set is the
80
  // C0 control percent-encode set and U+0020 SPACE, U+0022 ("), U+0023 (#),
81
  // U+003C (<), and U+003E (>). The C0 control percent-encode set are the C0
82
  // controls and all code points greater than U+007E (~).
83
21.4k
  size_t i = 0;
84
21.4k
  uint8_t accumulator{};
85
76.5k
  for (; i + 7 < input.size(); i += 8) {
86
55.0k
    accumulator |= uint8_t(path_signature_table[uint8_t(input[i])] |
87
55.0k
                           path_signature_table[uint8_t(input[i + 1])] |
88
55.0k
                           path_signature_table[uint8_t(input[i + 2])] |
89
55.0k
                           path_signature_table[uint8_t(input[i + 3])] |
90
55.0k
                           path_signature_table[uint8_t(input[i + 4])] |
91
55.0k
                           path_signature_table[uint8_t(input[i + 5])] |
92
55.0k
                           path_signature_table[uint8_t(input[i + 6])] |
93
55.0k
                           path_signature_table[uint8_t(input[i + 7])]);
94
55.0k
  }
95
59.0k
  for (; i < input.size(); i++) {
96
37.6k
    accumulator |= uint8_t(path_signature_table[uint8_t(input[i])]);
97
37.6k
  }
98
21.4k
  return accumulator;
99
21.4k
}
100
101
ada_really_inline constexpr bool verify_dns_length(
102
0
    std::string_view input) noexcept {
103
0
  if (input.empty()) return false;
104
0
  if (input.back() == '.') {
105
0
    if (input.size() > 254) return false;
106
0
  } else if (input.size() > 253)
107
0
    return false;
108
109
0
  size_t start = 0;
110
0
  while (start < input.size()) {
111
0
    auto dot_location = input.find('.', start);
112
    // If not found, it's likely the end of the domain
113
0
    if (dot_location == std::string_view::npos) dot_location = input.size();
114
115
0
    auto label_size = dot_location - start;
116
0
    if (label_size > 63 || label_size == 0) return false;
117
118
0
    start = dot_location + 1;
119
0
  }
120
121
0
  return true;
122
0
}
123
124
}  // namespace ada::checkers
125
/* end file src/checkers.cpp */
126
/* begin file src/unicode.cpp */
127
128
129
ADA_PUSH_DISABLE_ALL_WARNINGS
130
/* begin file src/ada_idna.cpp */
131
/* auto-generated on 2026-11-29 18:03:30 -0500. Do not edit! */
132
/* begin file src/idna.cpp */
133
/* begin file src/unicode_transcoding.cpp */
134
/* begin file include/ada/idna/unicode_transcoding.h */
135
#ifndef ADA_IDNA_UNICODE_TRANSCODING_H
136
#define ADA_IDNA_UNICODE_TRANSCODING_H
137
138
#include <string>
139
#include <string_view>
140
141
namespace ada::idna {
142
143
size_t utf8_to_utf32(const char* buf, size_t len, char32_t* utf32_output);
144
145
size_t utf8_length_from_utf32(const char32_t* buf, size_t len);
146
147
size_t utf32_length_from_utf8(const char* buf, size_t len);
148
149
size_t utf32_to_utf8(const char32_t* buf, size_t len, char* utf8_output);
150
151
}  // namespace ada::idna
152
153
#endif  // ADA_IDNA_UNICODE_TRANSCODING_H
154
/* end file include/ada/idna/unicode_transcoding.h */
155
156
#include <algorithm>
157
#include <cstdint>
158
#include <cstring>
159
160
namespace ada::idna {
161
162
12.5k
size_t utf8_to_utf32(const char* buf, size_t len, char32_t* utf32_output) {
163
12.5k
  const uint8_t* data = reinterpret_cast<const uint8_t*>(buf);
164
12.5k
  size_t pos = 0;
165
12.5k
  const char32_t* start{utf32_output};
166
178k
  while (pos < len) {
167
    // try to convert the next block of 16 ASCII bytes
168
166k
    if (pos + 16 <= len) {  // if it is safe to read 16 more
169
                            // bytes, check that they are ascii
170
98.0k
      uint64_t v1;
171
98.0k
      std::memcpy(&v1, data + pos, sizeof(uint64_t));
172
98.0k
      uint64_t v2;
173
98.0k
      std::memcpy(&v2, data + pos + sizeof(uint64_t), sizeof(uint64_t));
174
98.0k
      uint64_t v{v1 | v2};
175
98.0k
      if ((v & 0x8080808080808080) == 0) {
176
6.08k
        size_t final_pos = pos + 16;
177
103k
        while (pos < final_pos) {
178
97.3k
          *utf32_output++ = char32_t(buf[pos]);
179
97.3k
          pos++;
180
97.3k
        }
181
6.08k
        continue;
182
6.08k
      }
183
98.0k
    }
184
160k
    uint8_t leading_byte = data[pos];  // leading byte
185
160k
    if (leading_byte < 0b10000000) {
186
      // converting one ASCII byte !!!
187
92.9k
      *utf32_output++ = char32_t(leading_byte);
188
92.9k
      pos++;
189
92.9k
    } else if ((leading_byte & 0b11100000) == 0b11000000) {
190
      // We have a two-byte UTF-8
191
20.2k
      if (pos + 1 >= len) {
192
138
        return 0;
193
138
      }  // minimal bound checking
194
20.0k
      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
195
156
        return 0;
196
156
      }
197
      // range check
198
19.9k
      uint32_t code_point =
199
19.9k
          (leading_byte & 0b00011111) << 6 | (data[pos + 1] & 0b00111111);
200
19.9k
      if (code_point < 0x80 || 0x7ff < code_point) {
201
18
        return 0;
202
18
      }
203
19.9k
      *utf32_output++ = char32_t(code_point);
204
19.9k
      pos += 2;
205
47.3k
    } else if ((leading_byte & 0b11110000) == 0b11100000) {
206
      // We have a three-byte UTF-8
207
45.3k
      if (pos + 2 >= len) {
208
51
        return 0;
209
51
      }  // minimal bound checking
210
211
45.2k
      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
212
54
        return 0;
213
54
      }
214
45.2k
      if ((data[pos + 2] & 0b11000000) != 0b10000000) {
215
24
        return 0;
216
24
      }
217
      // range check
218
45.1k
      uint32_t code_point = (leading_byte & 0b00001111) << 12 |
219
45.1k
                            (data[pos + 1] & 0b00111111) << 6 |
220
45.1k
                            (data[pos + 2] & 0b00111111);
221
45.1k
      if (code_point < 0x800 || 0xffff < code_point ||
222
45.1k
          (0xd7ff < code_point && code_point < 0xe000)) {
223
30
        return 0;
224
30
      }
225
45.1k
      *utf32_output++ = char32_t(code_point);
226
45.1k
      pos += 3;
227
45.1k
    } else if ((leading_byte & 0b11111000) == 0b11110000) {  // 0b11110000
228
      // we have a 4-byte UTF-8 word.
229
1.64k
      if (pos + 3 >= len) {
230
27
        return 0;
231
27
      }  // minimal bound checking
232
1.61k
      if ((data[pos + 1] & 0b11000000) != 0b10000000) {
233
30
        return 0;
234
30
      }
235
1.58k
      if ((data[pos + 2] & 0b11000000) != 0b10000000) {
236
15
        return 0;
237
15
      }
238
1.57k
      if ((data[pos + 3] & 0b11000000) != 0b10000000) {
239
15
        return 0;
240
15
      }
241
242
      // range check
243
1.55k
      uint32_t code_point = (leading_byte & 0b00000111) << 18 |
244
1.55k
                            (data[pos + 1] & 0b00111111) << 12 |
245
1.55k
                            (data[pos + 2] & 0b00111111) << 6 |
246
1.55k
                            (data[pos + 3] & 0b00111111);
247
1.55k
      if (code_point <= 0xffff || 0x10ffff < code_point) {
248
33
        return 0;
249
33
      }
250
1.52k
      *utf32_output++ = char32_t(code_point);
251
1.52k
      pos += 4;
252
1.52k
    } else {
253
354
      return 0;
254
354
    }
255
160k
  }
256
11.5k
  return utf32_output - start;
257
12.5k
}
258
259
0
size_t utf8_length_from_utf32(const char32_t* buf, size_t len) {
260
  // We are not BOM aware.
261
0
  const uint32_t* p = reinterpret_cast<const uint32_t*>(buf);
262
0
  size_t counter{0};
263
0
  for (size_t i = 0; i != len; ++i) {
264
0
    ++counter;                                      // ASCII
265
0
    counter += static_cast<size_t>(p[i] > 0x7F);    // two-byte
266
0
    counter += static_cast<size_t>(p[i] > 0x7FF);   // three-byte
267
0
    counter += static_cast<size_t>(p[i] > 0xFFFF);  // four-bytes
268
0
  }
269
0
  return counter;
270
0
}
271
272
12.6k
size_t utf32_length_from_utf8(const char* buf, size_t len) {
273
12.6k
  const int8_t* p = reinterpret_cast<const int8_t*>(buf);
274
387k
  return std::count_if(p, std::next(p, len), [](int8_t c) {
275
    // -65 is 0b10111111, anything larger in two-complement's
276
    // should start a new code point.
277
387k
    return c > -65;
278
387k
  });
279
12.6k
}
280
281
0
size_t utf32_to_utf8(const char32_t* buf, size_t len, char* utf8_output) {
282
0
  const uint32_t* data = reinterpret_cast<const uint32_t*>(buf);
283
0
  size_t pos = 0;
284
0
  const char* start{utf8_output};
285
0
  while (pos < len) {
286
    // try to convert the next block of 2 ASCII characters
287
0
    if (pos + 2 <= len) {  // if it is safe to read 8 more
288
                           // bytes, check that they are ascii
289
0
      uint64_t v;
290
0
      std::memcpy(&v, data + pos, sizeof(uint64_t));
291
0
      if ((v & 0xFFFFFF80FFFFFF80) == 0) {
292
0
        *utf8_output++ = char(buf[pos]);
293
0
        *utf8_output++ = char(buf[pos + 1]);
294
0
        pos += 2;
295
0
        continue;
296
0
      }
297
0
    }
298
0
    uint32_t word = data[pos];
299
0
    if ((word & 0xFFFFFF80) == 0) {
300
      // will generate one UTF-8 bytes
301
0
      *utf8_output++ = char(word);
302
0
      pos++;
303
0
    } else if ((word & 0xFFFFF800) == 0) {
304
      // will generate two UTF-8 bytes
305
      // we have 0b110XXXXX 0b10XXXXXX
306
0
      *utf8_output++ = char((word >> 6) | 0b11000000);
307
0
      *utf8_output++ = char((word & 0b111111) | 0b10000000);
308
0
      pos++;
309
0
    } else if ((word & 0xFFFF0000) == 0) {
310
      // will generate three UTF-8 bytes
311
      // we have 0b1110XXXX 0b10XXXXXX 0b10XXXXXX
312
0
      if (word >= 0xD800 && word <= 0xDFFF) {
313
0
        return 0;
314
0
      }
315
0
      *utf8_output++ = char((word >> 12) | 0b11100000);
316
0
      *utf8_output++ = char(((word >> 6) & 0b111111) | 0b10000000);
317
0
      *utf8_output++ = char((word & 0b111111) | 0b10000000);
318
0
      pos++;
319
0
    } else {
320
      // will generate four UTF-8 bytes
321
      // we have 0b11110XXX 0b10XXXXXX 0b10XXXXXX
322
      // 0b10XXXXXX
323
0
      if (word > 0x10FFFF) {
324
0
        return 0;
325
0
      }
326
0
      *utf8_output++ = char((word >> 18) | 0b11110000);
327
0
      *utf8_output++ = char(((word >> 12) & 0b111111) | 0b10000000);
328
0
      *utf8_output++ = char(((word >> 6) & 0b111111) | 0b10000000);
329
0
      *utf8_output++ = char((word & 0b111111) | 0b10000000);
330
0
      pos++;
331
0
    }
332
0
  }
333
0
  return utf8_output - start;
334
0
}
335
}  // namespace ada::idna
336
/* end file src/unicode_transcoding.cpp */
337
/* begin file src/mapping.cpp */
338
/* begin file include/ada/idna/mapping.h */
339
#ifndef ADA_IDNA_MAPPING_H
340
#define ADA_IDNA_MAPPING_H
341
342
#include <string>
343
#include <string_view>
344
345
namespace ada::idna {
346
347
// If the input is ascii, then the mapping is just -> lower case.
348
void ascii_map(char* input, size_t length);
349
// Map the characters according to IDNA, returning the empty string on error.
350
std::u32string map(std::u32string_view input);
351
// Map into an existing buffer (cleared on entry). Returns false if any code
352
// point is disallowed. Reusing the buffer avoids repeated heap allocations
353
// when called in a loop over multiple labels.
354
bool map(std::u32string_view input, std::u32string& out);
355
356
}  // namespace ada::idna
357
358
#endif
359
/* end file include/ada/idna/mapping.h */
360
361
#include <array>
362
#include <cstring>
363
#include <cstdint>
364
#include <string>
365
366
/* begin file src/table_store.hpp */
367
// Runtime store for compressed Unicode/IDNA tables.
368
// Large tables are DEFLATE-compressed (read-only) and expanded once on first
369
// use into a heap buffer so the working set does not bloat the on-disk binary.
370
// Hot-path lookups use the same O(1) multi-stage layout as the pre-compression
371
// code; compression only affects on-disk size and one-time init.
372
//
373
// Thread-safe without mutex: atomic CAS + spin-wait. ensure_tables() returns
374
// false if initialization fails. A corrupt blob stays failed for the process.
375
// An allocation failure is not latched: a later call tries again. Callers
376
// must treat a false return as a hard error and not touch table pointers.
377
378
/* begin file src/raw_inflate.hpp */
379
// Minimal raw DEFLATE inflater (RFC 1951), enough for zlib raw streams.
380
// Returns number of output bytes written, or 0 on failure.
381
#include <cstdint>
382
#include <cstring>
383
384
namespace ada::idna::deflate {
385
386
struct BitReader {
387
  const uint8_t* p;
388
  const uint8_t* end;
389
  uint32_t acc = 0;
390
  int bits = 0;
391
392
  explicit BitReader(const uint8_t* data, size_t len)
393
1
      : p(data), end(data + len) {}
394
395
471k
  bool ensure(int n) {
396
534k
    while (bits < n) {
397
63.5k
      if (p >= end) return false;
398
63.5k
      acc |= uint32_t(*p++) << bits;
399
63.5k
      bits += 8;
400
63.5k
    }
401
471k
    return true;
402
471k
  }
403
471k
  uint32_t get(int n) {
404
471k
    if (!ensure(n)) return UINT32_MAX;
405
471k
    uint32_t v = acc & ((1u << n) - 1);
406
471k
    acc >>= n;
407
471k
    bits -= n;
408
471k
    return v;
409
471k
  }
410
0
  void align_byte() {
411
0
    acc >>= (bits & 7);
412
0
    bits -= (bits & 7);
413
0
  }
414
};
415
416
struct Huff {
417
  // canonical codes: for each length, list of symbols
418
  // Fast path: table for codes up to max_bits
419
  static constexpr int MAXBITS = 15;
420
  uint8_t lengths[288]{};
421
  int counts[MAXBITS + 1]{};
422
  int first_code[MAXBITS + 1]{};
423
  int16_t symbols[288]{};
424
  int nsymbols = 0;
425
  int max_bits = 0;
426
427
  // Base index into symbols[] for each code length (used by decode).
428
  int base_idx[MAXBITS + 1]{};
429
430
16
  bool build(const uint8_t* lens, int n) {
431
16
    std::memset(counts, 0, sizeof(counts));
432
16
    std::memset(first_code, 0, sizeof(first_code));
433
16
    std::memset(base_idx, 0, sizeof(base_idx));
434
16
    nsymbols = n;
435
16
    max_bits = 0;
436
1.99k
    for (int i = 0; i < n; i++) {
437
1.97k
      lengths[i] = lens[i];
438
1.97k
      if (lens[i]) {
439
1.93k
        counts[lens[i]]++;
440
1.93k
        if (lens[i] > max_bits) max_bits = lens[i];
441
1.93k
      }
442
1.97k
    }
443
    // Canonical first code for each bit length (RFC 1951).
444
16
    int code = 0;
445
256
    for (int bits = 1; bits <= MAXBITS; bits++) {
446
240
      code = (code + counts[bits - 1]) << 1;
447
240
      first_code[bits] = code;
448
240
    }
449
16
    int idx = 0;
450
157
    for (int bits = 1; bits <= max_bits; bits++) {
451
141
      base_idx[bits] = idx;
452
      // assign symbols in symbol order for codes of this length
453
21.7k
      for (int sym = 0; sym < n; sym++) {
454
21.6k
        if (lengths[sym] == bits) {
455
1.93k
          symbols[idx++] = static_cast<int16_t>(sym);
456
1.93k
        }
457
21.6k
      }
458
141
    }
459
16
    return true;
460
16
  }
461
462
70.2k
  int decode(BitReader& br) const {
463
70.2k
    if (max_bits == 0) return -1;
464
70.2k
    int code = 0;
465
439k
    for (int len = 1; len <= max_bits; len++) {
466
439k
      uint32_t b = br.get(1);
467
439k
      if (b == UINT32_MAX) return -1;
468
439k
      code = (code << 1) | int(b);
469
439k
      int first = first_code[len];
470
439k
      int cnt = counts[len];
471
439k
      if (cnt && code - first < cnt) {
472
70.2k
        return symbols[base_idx[len] + (code - first)];
473
70.2k
      }
474
439k
    }
475
0
    return -1;
476
70.2k
  }
477
};
478
479
// Fixed Huffman tables are built once at dynamic initialization (before main /
480
// single-threaded), so concurrent first-use of inflate cannot race.
481
2
inline Huff make_fixed_litlen_huff() {
482
2
  Huff h;
483
2
  uint8_t lens[288];
484
  // Fixed Huffman: 0-143:8, 144-255:9, 256-279:7, 280-287:8
485
290
  for (int i = 0; i <= 143; i++) lens[i] = 8;
486
226
  for (int i = 144; i <= 255; i++) lens[i] = 9;
487
50
  for (int i = 256; i <= 279; i++) lens[i] = 7;
488
18
  for (int i = 280; i <= 287; i++) lens[i] = 8;
489
2
  h.build(lens, 288);
490
2
  return h;
491
2
}
492
493
2
inline Huff make_fixed_dist_huff() {
494
2
  Huff h;
495
2
  uint8_t lens[32];
496
66
  for (int i = 0; i < 32; i++) lens[i] = 5;
497
2
  h.build(lens, 32);
498
2
  return h;
499
2
}
500
501
// NOLINTNEXTLINE(cert-err58-cpp) -- intentional process-lifetime tables
502
inline const Huff kFixedLitLenHuff = make_fixed_litlen_huff();
503
// NOLINTNEXTLINE(cert-err58-cpp)
504
inline const Huff kFixedDistHuff = make_fixed_dist_huff();
505
506
0
inline int fixed_litlen(BitReader& br) { return kFixedLitLenHuff.decode(br); }
507
508
0
inline int fixed_dist(BitReader& br) { return kFixedDistHuff.decode(br); }
509
510
// length and distance base tables
511
static const uint16_t len_base[29] = {
512
    3,  4,  5,  6,  7,  8,  9,  10, 11,  13,  15,  17,  19,  23, 27,
513
    31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258};
514
static const uint8_t len_extra[29] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
515
                                      1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
516
                                      4, 4, 4, 4, 5, 5, 5, 5, 0};
517
static const uint16_t dist_base[30] = {
518
    1,    2,    3,    4,    5,    7,    9,    13,    17,    25,
519
    33,   49,   65,   97,   129,  193,  257,  385,   513,   769,
520
    1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577};
521
static const uint8_t dist_extra[30] = {0, 0, 0,  0,  1,  1,  2,  2,  3,  3,
522
                                       4, 4, 5,  5,  6,  6,  7,  7,  8,  8,
523
                                       9, 9, 10, 10, 11, 11, 12, 12, 13, 13};
524
525
inline size_t inflate_raw(const uint8_t* src, size_t src_len, uint8_t* dst,
526
1
                          size_t dst_cap) {
527
1
  BitReader br(src, src_len);
528
1
  size_t out = 0;
529
4
  for (;;) {
530
4
    uint32_t bfinal = br.get(1);
531
4
    uint32_t btype = br.get(2);
532
4
    if (bfinal == UINT32_MAX || btype == UINT32_MAX) return 0;
533
4
    if (btype == 0) {
534
      // stored
535
0
      br.align_byte();
536
0
      if (!br.ensure(16)) return 0;
537
      // read 16+16 from bit buffer awkwardly - use byte path
538
      // Align: bits is multiple of 8
539
      // Get len from remaining bits then bytes
540
0
      uint32_t len = br.get(16);
541
0
      uint32_t nlen = br.get(16);
542
0
      if (len == UINT32_MAX || nlen == UINT32_MAX) return 0;
543
0
      if ((len ^ 0xFFFF) != nlen) return 0;
544
      // After get, may have bits in acc from previous - for stored, should be
545
      // byte aligned Copy len bytes from p
546
0
      if (br.bits != 0) {
547
        // leftover bits should be 0 if aligned
548
0
      }
549
0
      if (size_t(br.end - br.p) < len) return 0;
550
0
      if (out + len > dst_cap) return 0;
551
0
      std::memcpy(dst + out, br.p, len);
552
0
      br.p += len;
553
0
      out += len;
554
4
    } else if (btype == 1 || btype == 2) {
555
4
      Huff lit, dist;
556
4
      if (btype == 1) {
557
        // use fixed via functions
558
4
      } else {
559
        // dynamic
560
4
        uint32_t hlit = br.get(5);
561
4
        if (hlit == UINT32_MAX) return 0;
562
4
        hlit += 257;
563
4
        uint32_t hdist = br.get(5);
564
4
        if (hdist == UINT32_MAX) return 0;
565
4
        hdist += 1;
566
4
        uint32_t hclen = br.get(4);
567
4
        if (hclen == UINT32_MAX) return 0;
568
4
        hclen += 4;
569
4
        static const int order[19] = {16, 17, 18, 0, 8,  7, 9,  6, 10, 5,
570
4
                                      11, 4,  12, 3, 13, 2, 14, 1, 15};
571
4
        uint8_t clen[19]{};
572
69
        for (uint32_t i = 0; i < hclen; i++) {
573
65
          uint32_t v = br.get(3);
574
65
          if (v == UINT32_MAX) return 0;
575
65
          clen[order[i]] = uint8_t(v);
576
65
        }
577
4
        Huff cl;
578
4
        if (!cl.build(clen, 19)) return 0;
579
4
        uint8_t lens[288 + 32]{};
580
4
        uint32_t n = hlit + hdist;
581
1.06k
        for (uint32_t i = 0; i < n;) {
582
1.06k
          int sym = cl.decode(br);
583
1.06k
          if (sym < 0) return 0;
584
1.06k
          if (sym < 16) {
585
1.00k
            lens[i++] = uint8_t(sym);
586
1.00k
          } else if (sym == 16) {
587
60
            uint32_t rep = br.get(2);
588
60
            if (rep == UINT32_MAX) return 0;
589
60
            rep += 3;
590
60
            if (i == 0) return 0;
591
60
            uint8_t v = lens[i - 1];
592
318
            while (rep--) lens[i++] = v;
593
60
          } else if (sym == 17) {
594
0
            uint32_t rep = br.get(3);
595
0
            if (rep == UINT32_MAX) return 0;
596
0
            rep += 3;
597
0
            while (rep--) lens[i++] = 0;
598
0
          } else if (sym == 18) {
599
0
            uint32_t rep = br.get(7);
600
0
            if (rep == UINT32_MAX) return 0;
601
0
            rep += 11;
602
0
            while (rep--) lens[i++] = 0;
603
0
          } else
604
0
            return 0;
605
1.06k
        }
606
4
        if (!lit.build(lens, int(hlit))) return 0;
607
4
        if (!dist.build(lens + hlit, int(hdist))) return 0;
608
4
      }
609
53.6k
      for (;;) {
610
53.6k
        int sym;
611
53.6k
        if (btype == 1)
612
0
          sym = fixed_litlen(br);
613
53.6k
        else
614
53.6k
          sym = lit.decode(br);
615
53.6k
        if (sym < 0) return 0;
616
53.6k
        if (sym < 256) {
617
38.1k
          if (out >= dst_cap) return 0;
618
38.1k
          dst[out++] = uint8_t(sym);
619
38.1k
        } else if (sym == 256) {
620
4
          break;
621
15.5k
        } else {
622
15.5k
          int len_code = sym - 257;
623
15.5k
          if (len_code < 0 || len_code > 28) return 0;
624
15.5k
          uint32_t extra = br.get(len_extra[len_code]);
625
15.5k
          if (len_extra[len_code] && extra == UINT32_MAX) return 0;
626
15.5k
          uint32_t length =
627
15.5k
              len_base[len_code] + (len_extra[len_code] ? extra : 0);
628
15.5k
          int dsym;
629
15.5k
          if (btype == 1)
630
0
            dsym = fixed_dist(br);
631
15.5k
          else
632
15.5k
            dsym = dist.decode(br);
633
15.5k
          if (dsym < 0 || dsym > 29) return 0;
634
15.5k
          uint32_t dextra = br.get(dist_extra[dsym]);
635
15.5k
          if (dist_extra[dsym] && dextra == UINT32_MAX) return 0;
636
15.5k
          uint32_t distance = dist_base[dsym] + (dist_extra[dsym] ? dextra : 0);
637
15.5k
          if (distance > out || out + length > dst_cap) return 0;
638
236k
          for (uint32_t k = 0; k < length; k++) {
639
220k
            dst[out] = dst[out - distance];
640
220k
            out++;
641
220k
          }
642
15.5k
        }
643
53.6k
      }
644
4
    } else {
645
0
      return 0;  // reserved
646
0
    }
647
4
    if (bfinal) break;
648
4
  }
649
1
  return out;
650
1
}
651
652
}  // namespace ada::idna::deflate
653
/* end file src/raw_inflate.hpp */
654
/* begin file src/table_blob.inc */
655
// Auto-generated by scripts/pack_tables.py - do not edit.
656
// Compressed Unicode/IDNA tables (raw DEFLATE).
657
// clang-format off
658
#ifndef ADA_IDNA_TABLE_BLOB_H
659
#define ADA_IDNA_TABLE_BLOB_H
660
#include <cstdint>
661
#include <cstddef>
662
namespace ada::idna::table_blob {
663
constexpr size_t uncompressed_size = 258693;
664
constexpr size_t compressed_size = 63523;
665
constexpr uint32_t uncompressed_crc32 = 0x76813F2Cu;
666
constexpr size_t decomposition_block_rows = 70;
667
constexpr size_t decomposition_block_cols = 257;
668
constexpr size_t ccc_block_rows = 69;
669
constexpr size_t ccc_block_cols = 256;
670
constexpr size_t composition_block_rows = 27;
671
constexpr size_t composition_block_cols = 257;
672
constexpr size_t nfc_qc_block_rows = 31;
673
constexpr size_t nfc_qc_block_cols = 256;
674
constexpr size_t dir_block_rows = 158;
675
constexpr size_t dir_block_cols = 256;
676
constexpr size_t id_continue_count = 1437;
677
constexpr size_t id_start_count = 789;
678
constexpr size_t combining_range_count = 333;
679
constexpr size_t joining_table_count = 533;
680
// Offsets into the decompressed buffer:
681
constexpr size_t off_idna_stage1 = 0;
682
constexpr size_t count_idna_stage1 = 4081;
683
constexpr size_t off_idna_stage2 = 8162;
684
constexpr size_t count_idna_stage2 = 11712;
685
constexpr size_t off_idna_bool_blocks = 31592;
686
constexpr size_t count_idna_bool_blocks = 225;
687
constexpr size_t off_idna_utf8_mappings = 33392;
688
constexpr size_t count_idna_utf8_mappings = 17651;
689
constexpr size_t off_decomposition_index = 51043;
690
constexpr size_t count_decomposition_index = 4352;
691
constexpr size_t off_decomposition_block = 55396;
692
constexpr size_t count_decomposition_block = 17990;
693
constexpr size_t off_decomposition_data = 91376;
694
constexpr size_t count_decomposition_data = 9255;
695
constexpr size_t off_ccc_index = 128396;
696
constexpr size_t count_ccc_index = 4352;
697
constexpr size_t off_ccc_block = 132748;
698
constexpr size_t count_ccc_block = 17664;
699
constexpr size_t off_composition_index = 150412;
700
constexpr size_t count_composition_index = 4352;
701
constexpr size_t off_composition_block = 154764;
702
constexpr size_t count_composition_block = 6939;
703
constexpr size_t off_composition_data = 168644;
704
constexpr size_t count_composition_data = 1923;
705
constexpr size_t off_nfc_qc_index = 176336;
706
constexpr size_t count_nfc_qc_index = 4352;
707
constexpr size_t off_nfc_qc_block = 180688;
708
constexpr size_t count_nfc_qc_block = 7936;
709
constexpr size_t off_id_continue_flat = 188624;
710
constexpr size_t count_id_continue_flat = 2874;
711
constexpr size_t off_id_start_flat = 200120;
712
constexpr size_t count_id_start_flat = 1578;
713
constexpr size_t off_dir_index = 206432;
714
constexpr size_t count_dir_index = 4352;
715
constexpr size_t off_dir_block = 210784;
716
constexpr size_t count_dir_block = 40448;
717
constexpr size_t off_combining_flat = 251232;
718
constexpr size_t count_combining_flat = 666;
719
constexpr size_t off_joining_start = 253896;
720
constexpr size_t count_joining_start = 533;
721
constexpr size_t off_joining_final = 256028;
722
constexpr size_t count_joining_final = 533;
723
constexpr size_t off_joining_value = 258160;
724
constexpr size_t count_joining_value = 533;
725
alignas(8) inline constexpr uint8_t compressed[] = {
726
0xec,0x9c,0x09,0x40,0x54,0x55,0xfb,0xff,0x1f,0x18,0x59,0x94,0x65,0x9c,0x19,0xb6,
727
0x51,0x61,0x10,0x18,0x98,0x61,0x9f,0x19,0x18,0x76,0x66,0x58,0xda,0xcb,0xb6,0xb7,
728
0x3d,0x2b,0xf7,0xdc,0xb7,0xb4,0xb4,0xd2,0xcb,0x2e,0x28,0xe0,0x86,0x0a,0xb2,0x08,
729
0x8a,0x1b,0xa2,0x02,0xa2,0xec,0x60,0x88,0x8a,0xa5,0x88,0x88,0x65,0x6f,0x96,0x9a,
730
0x20,0x58,0x5a,0x56,0xb6,0x58,0x32,0xff,0xef,0xbd,0x33,0xa0,0x99,0xbd,0xf5,0x96,
731
0xbd,0xbf,0xdf,0xfb,0xfb,0x37,0x0f,0x9f,0x73,0xce,0x3d,0xf7,0x9c,0xf3,0x3c,0xe7,
732
0xb9,0xe7,0x9e,0x7b,0xce,0x1d,0x80,0x18,0x22,0x2d,0x31,0xd4,0x44,0x64,0xa4,0x35,
733
0x62,0x8c,0x9a,0x8c,0xc8,0x58,0x6b,0xcc,0x18,0x13,0xd3,0x64,0x4c,0x3c,0x2d,0x8f,
734
0xe1,0x35,0xf1,0x68,0x90,0x76,0x10,0x33,0xa8,0x69,0x10,0x99,0x18,0x31,0xc6,0x8c,
735
0xd6,0x84,0x18,0x1e,0x33,0x88,0x31,0x61,0x4c,0x19,0x33,0xc6,0x9c,0x19,0xcc,0x0c,
736
0x61,0x2c,0x18,0x62,0x18,0x13,0x4b,0xa6,0xc9,0x84,0x4c,0xb5,0xa6,0x56,0x8c,0x35,
737
0xc3,0x67,0x18,0xd3,0xa1,0x8c,0x80,0x11,0x32,0x22,0xc6,0x86,0xb1,0x65,0xec,0x18,
738
0x7b,0xc6,0x81,0x11,0x33,0x4d,0xa6,0xc3,0x18,0x32,0xd3,0x9a,0x31,0x66,0x4d,0x66,
739
0x64,0x3e,0x1c,0xf5,0x88,0xd1,0x9a,0x33,0xe6,0xd0,0x67,0x4e,0xdc,0xd1,0x08,0xc6,
740
0x91,0x71,0x62,0x24,0x8c,0x33,0x33,0x92,0xa1,0xc1,0xfa,0xbc,0x9f,0x8b,0x0b,0xe3,
741
0xca,0xb8,0x31,0x52,0x46,0x3b,0xd8,0x9d,0x61,0x06,0xbb,0x32,0x1e,0x8c,0x8c,0x91,
742
0x33,0x9e,0x8c,0x17,0xe3,0xcd,0xf8,0x30,0xbe,0x8c,0x1f,0xe3,0x8f,0x52,0x0a,0xa0,
743
0x64,0x54,0x4c,0x00,0xd3,0x34,0x38,0x90,0xa1,0x21,0xda,0x21,0xcc,0x10,0x68,0x19,
744
0x42,0x16,0x5a,0x0b,0xc6,0xa2,0xc9,0x82,0x2c,0xb5,0x96,0x8c,0x65,0x93,0x25,0x59,
745
0x69,0xad,0xd4,0x0c,0x63,0xd5,0x64,0x45,0xd6,0xb0,0xc5,0x5a,0xaf,0x83,0x31,0xc4,
746
0x41,0x4c,0x93,0x35,0xf1,0xb5,0xfc,0x3b,0xd9,0x71,0x27,0x61,0xf8,0x4d,0x6c,0xd9,
747
0xa1,0xc4,0x04,0xeb,0xfb,0x36,0x94,0x19,0xda,0x34,0x94,0x04,0x21,0x8c,0x56,0x10,
748
0xca,0x84,0x21,0x27,0x9c,0x61,0x04,0x4d,0x02,0x12,0x6a,0x85,0x8c,0xb0,0x49,0x48,
749
0xa2,0x08,0x46,0x2b,0x62,0x44,0x4d,0x22,0xb2,0xd1,0xda,0x44,0x32,0x8c,0x4d,0x93,
750
0x0d,0xd9,0x6a,0x6d,0x19,0xdb,0x26,0x5b,0xb2,0xd3,0xda,0xfd,0x5e,0xbd,0x7f,0xcb,
751
0xdf,0xf2,0xb7,0xfc,0x35,0xa2,0x61,0xb4,0x03,0xe9,0x28,0x86,0xb1,0x6b,0xb2,0x8b,
752
0x66,0xc8,0x5e,0x6b,0xcf,0xd8,0x37,0xd9,0xc7,0x30,0x48,0x33,0xb1,0xe0,0x1e,0x70,
753
0x2f,0x73,0x1f,0x73,0x3f,0xe2,0x07,0x98,0x07,0x19,0x72,0xd0,0x3a,0x3c,0xf4,0xb7,
754
0xf7,0xfe,0x42,0x79,0x98,0x79,0x84,0x19,0xf5,0xb7,0x70,0xc2,0x38,0x34,0x39,0x90,
755
0x58,0x2b,0x66,0xc4,0x4d,0x62,0x1a,0xa6,0x1d,0xc6,0x0c,0x6b,0x1a,0x46,0xc3,0xb5,
756
0xc3,0x99,0xe1,0x4d,0xc3,0x69,0x84,0x76,0x04,0x33,0xa2,0x69,0x04,0x39,0x6a,0x1d,
757
0x19,0xc7,0x26,0x47,0x72,0xd2,0x3a,0x31,0x4e,0x4d,0x4e,0x24,0xd1,0x4a,0x1e,0x65,
758
0x1e,0x83,0x27,0x1f,0x67,0x9e,0x40,0xf8,0x24,0xf3,0x0f,0xae,0xad,0xa7,0x98,0xa7,
759
0x99,0x67,0x98,0x67,0x99,0xe7,0x98,0xe7,0x19,0x46,0x82,0x67,0xa6,0x84,0x9c,0x5f,
760
0x60,0xb4,0xce,0x8c,0xf3,0x8b,0x03,0xbe,0xbf,0x8f,0x19,0xcd,0x34,0x39,0x8f,0x62,
761
0x5e,0x62,0x5e,0x66,0x5e,0x61,0xc6,0x30,0x63,0x99,0x71,0xcc,0x78,0x66,0x02,0x33,
762
0x91,0x99,0xc4,0xbc,0xca,0x4c,0x66,0xa6,0x30,0x53,0x99,0x69,0x68,0x8b,0x98,0xe9,
763
0x0c,0x8d,0x9c,0xc1,0xcc,0x64,0xb4,0x23,0x67,0x71,0xad,0xcf,0x66,0xe6,0x30,0x73,
764
0x99,0x17,0x98,0xd7,0x98,0x79,0xcc,0x7c,0x9c,0x7f,0x9d,0x79,0x83,0x59,0xc0,0x2c,
765
0x64,0xde,0x44,0xfa,0x2d,0xe6,0x6d,0x66,0x11,0xb3,0x98,0x61,0x98,0x38,0x26,0x9e,
766
0x49,0x60,0x12,0x91,0x97,0x04,0x92,0xb9,0x9a,0x29,0xcc,0x12,0xa4,0x53,0x99,0x34,
767
0x66,0x29,0xb3,0x8c,0x49,0xe7,0xf2,0x32,0xd8,0xbe,0x8f,0xcc,0x64,0x96,0x33,0x2b,
768
0x98,0x95,0xcc,0x2a,0x9c,0x5f,0xcd,0x64,0x61,0x7d,0xb0,0x86,0x59,0x8b,0x33,0xeb,
769
0x98,0x6c,0x26,0x87,0x59,0x8f,0x54,0x2e,0x93,0xc7,0xe4,0x33,0x05,0x06,0x6f,0x6d,
770
0x60,0x0a,0x99,0x22,0x66,0x23,0xb3,0xe9,0x5f,0x8e,0xaf,0x71,0x9c,0xfd,0xfd,0x52,
771
0x3c,0x90,0x4a,0xbf,0x4b,0xd7,0x6c,0x33,0xb3,0xe5,0x37,0xc7,0xf8,0x56,0x66,0xdb,
772
0xff,0xe0,0x1d,0xf6,0xf8,0x1d,0xf2,0xd2,0xff,0x4f,0xde,0x3f,0x69,0x7f,0xb0,0xde,
773
0xed,0xde,0x71,0x65,0xb6,0x33,0x25,0xcc,0x0e,0xa4,0x4a,0x99,0x9d,0x77,0xd4,0xd0,
774
0x34,0x92,0x5c,0x76,0xe1,0xfc,0x6e,0xa6,0x8c,0x29,0xff,0xff,0x64,0xa6,0xae,0x60,
775
0xf6,0x70,0xbe,0xfa,0xd7,0xe3,0xbd,0x92,0xd9,0xfb,0xff,0xd9,0xac,0xbd,0x6f,0xa0,
776
0xef,0x5a,0x97,0xaa,0x5b,0x3c,0x91,0x71,0xd7,0x34,0x10,0x53,0xcd,0x30,0x2e,0xff,
777
0x73,0x3d,0xd4,0xf7,0xa7,0xc9,0xe5,0xd6,0xeb,0x5c,0xc3,0xd4,0x32,0x75,0xdc,0x9a,
778
0xaa,0xde,0x90,0x23,0x63,0x43,0x57,0xad,0x2b,0xe3,0x4a,0x4c,0x03,0x9e,0x00,0x8d,
779
0x6c,0x1d,0xfd,0xdd,0xe2,0x4a,0x6e,0x5a,0x37,0xc6,0xad,0xc9,0x8d,0xa4,0x5a,0x29,
780
0x23,0x6d,0x92,0x92,0xbb,0xd6,0x9d,0x71,0x6f,0x72,0x27,0x0f,0xad,0x07,0xe3,0x71,
781
0xa7,0x71,0xb4,0x1f,0xf5,0xde,0xf9,0x4d,0xbb,0x9a,0x3c,0x48,0xa6,0x95,0x31,0xb2,
782
0x26,0x59,0x33,0x8e,0x0f,0x30,0x2d,0x03,0xe7,0x0e,0x32,0x87,0x6e,0x2b,0x7d,0xd8,
783
0x10,0xb7,0x1a,0xe2,0x23,0x86,0xf8,0x5d,0x83,0xc6,0xf7,0x18,0x92,0x1f,0xfd,0x15,
784
0x4d,0xc7,0x98,0x36,0x84,0xc7,0x0d,0x47,0x5a,0x39,0x23,0x6f,0x92,0xb7,0x0f,0x9c,
785
0xf5,0x42,0xed,0x13,0x4c,0x07,0x43,0x9e,0x5a,0x4f,0xc6,0xf3,0x24,0xd3,0xe4,0x49,
786
0x5e,0x77,0x9a,0x57,0x7e,0x2e,0x9d,0x86,0xf8,0x14,0xf3,0x3e,0xf3,0x01,0x73,0x9a,
787
0xf9,0xf0,0x96,0x73,0xff,0x04,0x1f,0x71,0xa9,0x33,0x8c,0xd6,0xeb,0xdf,0x9d,0xbf,
788
0xfe,0x96,0xbf,0xe5,0x6f,0xf9,0x5b,0xfe,0x96,0x7f,0x25,0xaf,0xfe,0xaf,0xb1,0xe4,
789
0xe3,0xff,0x42,0xef,0xd5,0xfd,0x7f,0x33,0x4e,0x3e,0xb9,0x43,0xde,0x92,0xbb,0xbb,
790
0xef,0xf7,0x6a,0xf2,0x22,0x6f,0xad,0x37,0xe3,0xdd,0xe4,0x4d,0x3e,0x5a,0x1f,0xc6,
791
0xe7,0xcf,0xed,0x5f,0xfe,0xf7,0xc8,0xd9,0xbf,0xe7,0x19,0x4e,0xd2,0xfe,0x7e,0xbb,
792
0xf5,0xb7,0xfc,0x2d,0x7f,0xcb,0xff,0x49,0xf9,0x7b,0x7e,0xff,0xab,0x45,0xa7,0x33,
793
0x22,0x1e,0x99,0x90,0x19,0x0d,0x26,0x0b,0xb2,0x22,0x3e,0x09,0x48,0x44,0xb6,0x64,
794
0x4f,0x62,0x1a,0x4e,0x8e,0x24,0xa1,0x91,0xe4,0x4a,0x52,0xf2,0x20,0x39,0x79,0x91,
795
0x0f,0xf9,0x91,0x82,0x54,0xa4,0xbb,0x6b,0x9f,0xbe,0x3f,0x29,0x81,0xb7,0xd9,0x12,
796
0x44,0x6c,0x8f,0xd8,0x14,0x21,0x0c,0xe3,0x52,0x1a,0x8a,0xa2,0x18,0xba,0x8f,0x4b,
797
0x3f,0x48,0xa3,0xd0,0x2b,0x9d,0xee,0x31,0x7a,0x9a,0x5e,0x44,0x3c,0x96,0x26,0xd0,
798
0xab,0x34,0x95,0x66,0xd0,0x6c,0x7a,0x8d,0x5e,0xa7,0x85,0xf4,0x36,0xdc,0x92,0x40,
799
0xc9,0x94,0x4a,0xcb,0x28,0x93,0x56,0x52,0x16,0xad,0xa3,0xf5,0x94,0x4f,0x85,0xb4,
800
0x09,0xe5,0xb7,0xd0,0x76,0x2a,0xa5,0xdd,0x54,0x41,0x7b,0xa9,0xfa,0x2e,0xf8,0xa1,
801
0x0e,0x6d,0x34,0x82,0x77,0x40,0x0b,0x38,0x0c,0xde,0x05,0xc7,0x40,0x3b,0x38,0x09,
802
0xde,0x07,0x1f,0x82,0x33,0xe0,0x2c,0xf8,0x14,0x74,0x83,0x5e,0xf0,0x39,0xf8,0x02,
803
0x7c,0x05,0xae,0x81,0xef,0xc1,0x8f,0xa0,0x8f,0xf5,0x83,0x91,0x4e,0x37,0x08,0x98,
804
0x1b,0x99,0x1b,0x59,0x20,0xb6,0x36,0x62,0x35,0x0a,0x10,0xda,0x00,0x7b,0x30,0xcc,
805
0x68,0x98,0x91,0x13,0xe2,0x91,0xc0,0x0d,0x78,0x00,0x4f,0x23,0x5f,0x84,0x0a,0x10,
806
0x00,0x82,0x40,0x28,0x88,0x00,0x5a,0x10,0x03,0xee,0x05,0x0f,0x80,0x87,0xc1,0xa3,
807
0xe0,0x09,0xf0,0x14,0x78,0x16,0xbc,0x00,0x5e,0x02,0x63,0xc0,0x78,0x30,0x09,0x4c,
808
0x01,0xd3,0xc1,0x2c,0x30,0xd7,0x68,0x3e,0xc2,0x05,0xe0,0x2d,0x20,0x85,0x95,0x8b,
809
0x8d,0xe2,0x91,0x4a,0x02,0x4b,0x8c,0x96,0x22,0xcc,0x30,0x5a,0x61,0xb4,0x9a,0xb3,
810
0x74,0xad,0x51,0x8e,0x51,0x9e,0xd1,0x06,0xa4,0x37,0x1a,0x6d,0x46,0xb8,0xcd,0x68,
811
0x87,0xd1,0x2e,0x23,0xbd,0xdf,0xca,0x8d,0x2a,0x91,0xaa,0x32,0xaa,0x45,0xd8,0x00,
812
0xf6,0x83,0x03,0x46,0x87,0x10,0x1e,0xe1,0x4a,0x1c,0x45,0x78,0xdc,0xa8,0x03,0xe1,
813
0x29,0xa3,0xd3,0x46,0x1f,0x21,0xfe,0x04,0x9c,0x37,0xea,0x32,0xd4,0xef,0x31,0xfa,
814
0xf9,0x75,0xf8,0xcc,0x88,0x95,0x2f,0x38,0xf9,0x8a,0x93,0x6b,0x28,0xf1,0x3d,0xf8,
815
0x11,0xf4,0x01,0x23,0x63,0x78,0x13,0x98,0x81,0x21,0xc6,0x6c,0x1d,0x2b,0x84,0x43,
816
0x81,0x08,0xd8,0x01,0x31,0x18,0x01,0x24,0xc0,0x05,0x48,0xb9,0x52,0x32,0x63,0x56,
817
0xbc,0x90,0xf6,0x35,0x56,0x18,0x07,0x20,0x0e,0x02,0xa1,0x20,0x02,0x68,0x41,0x0c,
818
0xb8,0x17,0x3c,0x00,0x1e,0x06,0x8f,0x82,0x27,0xc0,0x53,0xe0,0x59,0xf0,0x02,0x78,
819
0x09,0x8c,0x01,0xe3,0xc1,0x24,0x30,0x05,0x4c,0x07,0xb3,0xc0,0x5c,0x30,0x1f,0x2c,
820
0x00,0x6f,0x81,0xc5,0x20,0x1e,0x24,0x81,0x25,0x60,0xa9,0xf1,0xcf,0xfb,0x9a,0x61,
821
0xbc,0x12,0x39,0x59,0xc6,0xeb,0xb8,0xfc,0x5c,0x84,0x05,0xc6,0x45,0xc6,0xc5,0xc6,
822
0x5b,0x91,0x2a,0x01,0x3b,0x41,0x19,0xd8,0x63,0xac,0xfb,0xaf,0xff,0xf0,0x69,0x9f,
823
0xb1,0x08,0x33,0x58,0x8d,0x71,0xbd,0x71,0x93,0xb1,0x0f,0x66,0xaf,0x3f,0xd7,0x5e,
824
0xb3,0xf1,0x21,0xe3,0x77,0x8d,0xdb,0x8c,0x3b,0x8c,0xdf,0xe7,0xbc,0xb3,0xd9,0xc8,
825
0x1e,0xb3,0xa3,0x1f,0xfd,0xf3,0x0f,0xfa,0xea,0x63,0xe3,0x73,0xa8,0x79,0xc1,0xf8,
826
0xa2,0xf1,0xe7,0x77,0x68,0x81,0xfe,0xf4,0x0c,0xf3,0x05,0x5a,0xfd,0x0a,0x5c,0x03,
827
0xdf,0x1b,0xeb,0xe7,0xdb,0x1f,0xfb,0x35,0x19,0x1b,0xf1,0xfa,0xe7,0xd1,0x18,0x1a,
828
0xc4,0x1b,0xc2,0xb3,0xe2,0x0d,0xe5,0x89,0x78,0x76,0xc8,0x15,0x83,0x11,0x3c,0x09,
829
0x0f,0x23,0x99,0x27,0xe5,0xc9,0x78,0x5e,0x3c,0x5f,0x9e,0x82,0x17,0xc0,0x0b,0xe2,
830
0x7d,0x6e,0x1c,0xca,0x8b,0xe0,0xdd,0x47,0x5a,0x5e,0x0c,0xef,0x5e,0xde,0x03,0xbc,
831
0x87,0x51,0xf2,0x51,0xde,0x13,0xbc,0xa7,0x78,0xcf,0xf2,0x5e,0xe0,0xbd,0xc4,0x1b,
832
0xc3,0x1b,0xcf,0x9b,0xc4,0xbb,0x3b,0x57,0x6f,0x0a,0x74,0x07,0xa1,0xe5,0x11,0x68,
833
0xf1,0x59,0xe8,0xc2,0x98,0x07,0xb3,0xc0,0x5c,0x30,0x1f,0x2c,0x00,0x6f,0x81,0xc5,
834
0x20,0x1e,0x24,0x81,0x25,0x60,0x29,0xc8,0x00,0xa1,0xb0,0xef,0x51,0xc4,0x41,0xb0,
835
0x5f,0xa7,0x5b,0x01,0x1e,0xe5,0xad,0xe6,0xac,0x5b,0xcb,0xcb,0xe1,0xe5,0xf1,0x36,
836
0xf0,0x36,0xf2,0x36,0xf3,0xb6,0xf1,0x76,0xf0,0x76,0xf1,0xca,0x79,0x95,0xbc,0x2a,
837
0x5e,0x2d,0xaf,0x81,0xb7,0x9f,0x77,0x80,0x77,0x88,0x77,0x84,0x77,0x94,0x77,0x9c,
838
0xd7,0xc1,0x3b,0xc5,0x3b,0xcd,0xfb,0x88,0xf7,0x09,0xef,0x3c,0xaf,0x8b,0xd7,0xc3,
839
0xfb,0x8c,0x77,0x85,0x77,0x95,0xf7,0x0d,0xef,0x3b,0xde,0x75,0xde,0x0d,0x1e,0xdc,
840
0x36,0xc8,0x74,0xd0,0xe0,0x41,0x96,0x83,0xf8,0x83,0x84,0x83,0x6c,0x07,0x39,0x0c,
841
0x1a,0x3e,0xc8,0x69,0xd0,0xc8,0x41,0x6e,0x83,0x3c,0x06,0x79,0x0e,0xf2,0x19,0xf4,
842
0x57,0x8f,0x6f,0x7f,0x68,0x50,0x01,0x35,0x08,0x01,0xe1,0x40,0x03,0xa2,0xc1,0x3d,
843
0xe0,0x7e,0xf0,0x10,0x18,0x05,0x1e,0x07,0xff,0x00,0xcf,0x80,0xe7,0xc1,0x68,0xf0,
844
0xca,0x1d,0x2c,0x1c,0x87,0xbc,0x89,0x60,0x32,0x98,0x06,0x66,0x82,0x39,0x60,0x1e,
845
0x78,0x03,0xbc,0x09,0x16,0x81,0x38,0x90,0x08,0x52,0x40,0x1a,0x48,0x07,0xcb,0xc1,
846
0x2a,0xb0,0x06,0x64,0x83,0x5c,0x50,0x00,0x8a,0x40,0x31,0xd8,0x0a,0x4a,0xc0,0x4e,
847
0x50,0x06,0xf6,0x0c,0xda,0x87,0xb0,0x06,0xd4,0x83,0x26,0xd0,0x0c,0x0e,0x82,0x56,
848
0xce,0xb2,0xf7,0x10,0xb6,0x81,0x13,0xa0,0x13,0x7c,0x00,0xfe,0x09,0x3e,0x06,0xe7,
849
0xc0,0x05,0x70,0x11,0x5c,0x02,0x97,0xc1,0x97,0xe0,0x6b,0xf0,0x2d,0xf8,0x01,0xfc,
850
0xc4,0xb6,0x02,0x8c,0x4d,0x74,0x3a,0x13,0x60,0x0e,0x2c,0x80,0x35,0x10,0x00,0x1b,
851
0x60,0x0f,0x86,0x01,0x47,0xe0,0x0c,0x5c,0x81,0x3b,0x90,0x03,0x6f,0xe0,0x07,0x94,
852
0x20,0x10,0x04,0x83,0x30,0x10,0x09,0xa2,0x40,0x2c,0xb8,0x0f,0x3c,0x08,0x1e,0x01,
853
0x8f,0x81,0x27,0xc1,0xd3,0xe0,0x39,0x13,0xf6,0x7e,0x7b,0xd1,0xe4,0x65,0x93,0xb1,
854
0x26,0x13,0x4c,0x5e,0x35,0x99,0x6a,0x32,0xc3,0x64,0xb6,0xc9,0x6b,0x26,0xaf,0x9b,
855
0x2c,0x34,0x79,0xdb,0x84,0x31,0x49,0x30,0x49,0x36,0x49,0x35,0x59,0x66,0x92,0x69,
856
0xb2,0xd2,0x24,0xcb,0x64,0x9d,0xc9,0x7a,0x93,0x7c,0x93,0x42,0x93,0x4d,0x26,0x5b,
857
0x4c,0xb6,0x9b,0x94,0x9a,0xec,0x36,0xa9,0x30,0xd9,0x6b,0x52,0x6d,0x52,0x67,0xd2,
858
0x68,0xf2,0x8e,0x49,0x8b,0xc9,0x61,0x93,0x77,0x4d,0xfa,0x74,0x33,0x4c,0xfe,0xca,
859
0xd1,0x74,0xcc,0xd0,0xfa,0x42,0x58,0xd3,0xbf,0x3e,0xfb,0xbf,0xf2,0xe9,0x30,0xf9,
860
0xc0,0xe4,0x8c,0xc9,0xf9,0x3f,0xe9,0xbf,0x8b,0x26,0x57,0x4c,0xae,0x99,0xfc,0x64,
861
0xc2,0x33,0x1d,0x62,0x2a,0x30,0x75,0x30,0xbd,0xbb,0x2b,0xe1,0x5b,0xe3,0x3b,0xad,
862
0x8e,0x6f,0xe6,0x48,0x4c,0xdd,0x4d,0xfb,0x74,0x3e,0xa6,0xb7,0xd7,0xfe,0x63,0x3a,
863
0x6f,0xbf,0xce,0x37,0xf5,0xfd,0xfb,0x2d,0xf7,0xdd,0xe1,0x38,0xc0,0x94,0x0d,0xc3,
864
0x4c,0x6f,0x6d,0xb1,0xef,0x37,0xf5,0xdd,0xde,0x67,0xbd,0x44,0x9b,0x3e,0x60,0xfa,
865
0x98,0x29,0x9b,0xfb,0x8c,0xe9,0xed,0xde,0xf9,0xf7,0x77,0x1b,0xff,0xca,0xff,0xbf,
866
0x56,0x8a,0x95,0x97,0x4c,0x27,0x98,0xf6,0xdd,0xd1,0x93,0x7f,0xdc,0x82,0xbf,0xee,
867
0x33,0xcd,0x54,0xf7,0x2b,0xd7,0xb7,0x6f,0xe0,0x1a,0xf5,0xfd,0x8b,0x6b,0xf8,0xfb,
868
0xae,0xfa,0xaf,0xd7,0x9a,0x6b,0xfa,0xaf,0x47,0xdf,0xaf,0xb5,0xd0,0xf7,0xab,0x3e,
869
0x5c,0x68,0x1a,0x67,0x7a,0x37,0xf6,0x8f,0xbf,0xf6,0x59,0x62,0xfa,0x9f,0x9c,0x9b,
870
0x96,0x99,0xfe,0xb2,0xc7,0xab,0x06,0xf2,0x72,0x06,0x52,0x85,0x03,0xa9,0xad,0xbf,
871
0x6a,0xdf,0x2e,0xd3,0x5f,0xde,0x53,0x7b,0x91,0x57,0x6f,0x7a,0xc0,0xf4,0x5d,0xd3,
872
0x4e,0xd3,0x8f,0x6e,0xab,0xd9,0xfd,0x3b,0x7a,0x7a,0xf9,0x0e,0xf6,0x7d,0x33,0x90,
873
0xf7,0xe3,0x40,0xca,0xd8,0xac,0x3f,0x35,0xd8,0xec,0xd7,0xda,0x1a,0x6a,0x76,0x37,
874
0x9f,0x2c,0xf6,0x66,0xc3,0xcd,0x24,0x66,0xae,0x66,0x1e,0x66,0x5e,0x66,0x7e,0x66,
875
0x2a,0xb3,0x20,0xb3,0x30,0x33,0x8d,0x59,0x8c,0xd9,0x7d,0x66,0x0f,0x99,0x3d,0x6a,
876
0xf6,0xa4,0xd9,0x33,0x66,0x2f,0x98,0xbd,0x6c,0x36,0xce,0x6c,0x92,0xd9,0x54,0xb3,
877
0x99,0x66,0x73,0xcd,0x5e,0x37,0x7b,0xd3,0x6c,0xb1,0x59,0x82,0x59,0x8a,0xd9,0x52,
878
0xb3,0x4c,0xb3,0x55,0x66,0x6b,0xcd,0xd6,0x9b,0x15,0x98,0x6d,0x34,0xdb,0x62,0x56,
879
0x62,0xd6,0xa7,0xdb,0x65,0x76,0x73,0x64,0x54,0x98,0xfd,0x95,0x77,0xe7,0x3e,0xb3,
880
0xbb,0xd1,0x0a,0x11,0x91,0xee,0xbf,0xe6,0xc3,0xfa,0xb3,0xd6,0xac,0xd1,0xac,0xd9,
881
0xec,0x90,0xd9,0xbb,0x66,0x6d,0x66,0x7d,0xff,0xc1,0xd5,0xc5,0xbf,0xe7,0x29,0x1a,
882
0xf8,0xfc,0xd6,0x1c,0xfe,0x67,0x3f,0xa7,0xb0,0xb3,0xb8,0xce,0x63,0xf7,0x10,0xa6,
883
0xd8,0x37,0xa8,0x06,0x75,0x98,0xbd,0x6f,0x76,0xab,0x86,0x7f,0x9a,0x7d,0x62,0xf6,
884
0xa9,0xd9,0x45,0xb3,0xcf,0xcc,0xbe,0x30,0xfb,0xda,0xec,0x3b,0xb3,0x1f,0xcd,0x74,
885
0x66,0x3c,0x73,0x33,0xf3,0x7d,0x66,0x16,0xe6,0x7c,0x73,0x91,0xb9,0xbd,0xf9,0x70,
886
0x73,0x89,0xb9,0xab,0xb9,0x87,0xb9,0x97,0xb9,0x9f,0xb9,0xca,0x3c,0xc8,0x3c,0xcc,
887
0x5c,0x63,0x1e,0x63,0x7e,0x9f,0xf9,0x43,0xe6,0x8f,0x9a,0x3f,0x69,0xfe,0x8c,0xf9,
888
0x0b,0xe6,0x2f,0x9b,0x8f,0x33,0x9f,0x64,0x3e,0xd5,0x7c,0xa6,0xf9,0x5c,0xf3,0xd7,
889
0xcd,0xdf,0x34,0x5f,0x6c,0xce,0xb6,0x9c,0x60,0x9e,0x62,0xbe,0xd4,0xfc,0xaf,0xf2,
890
0xb7,0x11,0xbd,0x46,0x3c,0x78,0x8f,0x7d,0xaf,0xb8,0xd6,0xe8,0xf6,0xf7,0x8a,0x58,
891
0x6b,0xd3,0x5c,0x63,0x09,0xf6,0xe5,0xec,0x7b,0x45,0x1f,0x32,0xa2,0x4c,0xf3,0x95,
892
0xe6,0x59,0xe6,0x3c,0xee,0x3d,0x24,0xfb,0xd6,0x27,0xdb,0xdc,0x0a,0xa5,0x6c,0x51,
893
0xda,0xd7,0xc8,0x91,0x96,0x18,0xe5,0x9a,0x6f,0x30,0x97,0x70,0xa5,0x37,0x99,0x97,
894
0x1b,0x79,0xd1,0x56,0x73,0xfd,0xae,0x94,0xdd,0x73,0x0a,0xd0,0x0e,0xfb,0x76,0x92,
895
0xcd,0x79,0x98,0xcb,0xf9,0x75,0xbb,0xbe,0xbb,0x2b,0x3b,0xd3,0x1d,0xe6,0x26,0xb4,
896
0xcb,0x7c,0x25,0x65,0x9b,0x5b,0x50,0xb9,0x79,0xa5,0x79,0x95,0xf9,0x0e,0xa3,0x6d,
897
0x46,0xb5,0xe6,0x0d,0xe6,0xef,0x98,0xb7,0x98,0x1f,0x36,0x7f,0xcf,0xbc,0xcd,0xfc,
898
0x84,0x79,0xa5,0x51,0xa7,0xf9,0x07,0xe6,0x55,0x46,0xff,0x34,0xff,0xd8,0xfc,0x88,
899
0xd1,0x39,0xf3,0x22,0xe3,0x53,0x46,0x17,0xcc,0x4f,0x1b,0x15,0x1b,0xab,0xa8,0xc7,
900
0xfc,0x33,0xf3,0xf3,0x46,0x41,0xbc,0x2b,0xb8,0x02,0x5f,0x81,0x6f,0xc1,0x75,0xd0,
901
0x07,0x8c,0x07,0xeb,0x74,0xa6,0x60,0x08,0xb0,0x06,0x42,0x60,0x07,0x86,0x01,0x27,
902
0xe0,0x02,0xdc,0x81,0x27,0xf0,0x05,0x4a,0xa0,0x06,0xa1,0x20,0x12,0x44,0x83,0x7b,
903
0xc1,0x83,0x60,0x14,0x78,0x02,0x3c,0x0d,0x9e,0x07,0x2f,0x81,0xb1,0x60,0x22,0x98,
904
0x02,0x66,0x80,0x39,0x60,0x3e,0x58,0x08,0x16,0x81,0x78,0x90,0x0c,0xd2,0x40,0x06,
905
0x58,0x09,0xd6,0x80,0x1c,0x90,0x0f,0x8a,0xc0,0x66,0xb0,0x1d,0xec,0x04,0xe5,0x60,
906
0x2f,0xa8,0x01,0x0d,0xe0,0x1d,0x70,0x10,0x1c,0x01,0xc7,0xc0,0x09,0x70,0x0a,0x7c,
907
0x08,0x3e,0x06,0xe7,0x41,0x37,0xb8,0x04,0xae,0x80,0xaf,0xc0,0xb7,0xe0,0x3a,0xe8,
908
0x03,0xc6,0x43,0xd0,0x7f,0x30,0x04,0x58,0x03,0x21,0xb0,0x1b,0x72,0xd3,0xfb,0xc3,
909
0x86,0xb0,0x5a,0xe1,0x0b,0xe4,0x8d,0x04,0x52,0x20,0x07,0x3e,0x40,0x01,0x02,0x41,
910
0x08,0x88,0x00,0x51,0xe0,0x1e,0xf0,0x00,0x78,0x04,0x3c,0x0e,0x9e,0x02,0xcf,0x81,
911
0xd1,0x60,0x0c,0x98,0x00,0x26,0x83,0xe9,0x60,0x36,0x98,0x07,0x16,0x80,0xb7,0x41,
912
0x1c,0x48,0x02,0xa9,0x20,0x1d,0xac,0x00,0x59,0x20,0x1b,0xe4,0x81,0x42,0x50,0x0c,
913
0xb6,0x81,0x52,0x50,0x06,0x2a,0x41,0x35,0xa8,0x07,0xfb,0x41,0x0b,0x68,0x05,0x47,
914
0x41,0x3b,0xe8,0x04,0xa7,0xc1,0x99,0x21,0xbf,0x1c,0x59,0xe7,0x86,0x74,0x0d,0xe9,
915
0x1d,0x72,0x79,0xc8,0xd5,0x21,0xd7,0x86,0xfc,0x30,0xe4,0xc6,0x90,0xdb,0xe7,0x1d,
916
0x23,0x0b,0x13,0x8b,0xc1,0x16,0x56,0x16,0x02,0x0b,0x5b,0x8b,0x3b,0xcd,0x3f,0x62,
917
0x0b,0x47,0x8b,0x91,0x16,0x52,0x0b,0xb9,0x85,0x8f,0x85,0xc2,0x22,0xd0,0xe2,0xf6,
918
0xf3,0x21,0x16,0x11,0x16,0x51,0x16,0xf7,0x58,0x3c,0x60,0xf1,0x88,0xc5,0xe3,0x16,
919
0x4f,0x59,0xdc,0xde,0xfe,0x73,0x16,0xa3,0x2d,0xc6,0x58,0x4c,0xb0,0x98,0x6c,0x31,
920
0xfd,0x8e,0xed,0xf7,0xe9,0x66,0x23,0x7f,0x1e,0x58,0x00,0xde,0xfe,0x45,0xfb,0x71,
921
0x16,0x49,0x16,0xa9,0x16,0xe9,0x16,0x2b,0x2c,0xb2,0x2c,0xb2,0x2d,0xf2,0x70,0x7e,
922
0x08,0xee,0xb8,0xa1,0x40,0x04,0xec,0x80,0x18,0x8c,0x00,0x12,0xee,0xdd,0x53,0xa1,
923
0xc5,0x16,0x8b,0x52,0x8b,0x0a,0x8b,0x6a,0x8b,0x46,0x8b,0x16,0x8b,0x77,0x2d,0x6e,
924
0x3f,0x6e,0xb7,0x78,0xdf,0xe2,0x8c,0xc5,0xa7,0x16,0xbd,0x16,0x5f,0x58,0x5c,0xb3,
925
0xf8,0xf1,0x17,0xc7,0x46,0x96,0x66,0x96,0x56,0x96,0x22,0x4b,0xb1,0xa5,0xc4,0x52,
926
0x6a,0xe9,0x65,0x79,0xfb,0x31,0x6b,0x93,0xc2,0x32,0xc8,0x32,0xdc,0x92,0xed,0x4b,
927
0x94,0xe5,0x7d,0x96,0x0f,0x59,0x3e,0x6a,0x39,0x84,0x17,0x64,0xf9,0xa4,0xe5,0xe7,
928
0xc6,0x4f,0x5a,0x3e,0x63,0xf9,0x82,0xe5,0x18,0xcb,0x49,0x96,0xd3,0xb8,0xf3,0xb3,
929
0x2d,0x5f,0xb7,0x1c,0xca,0x7b,0xd3,0x52,0xc4,0x9b,0x64,0xb9,0xd8,0x32,0xc9,0x72,
930
0xa9,0xa5,0xbe,0x57,0x2b,0x2c,0xfb,0x7d,0xb1,0xda,0x72,0x9d,0x65,0xae,0x25,0xfb,
931
0x86,0x6c,0x83,0xe5,0x66,0xcb,0x1d,0x86,0xf3,0xe5,0x96,0xfd,0xfd,0xaf,0xb4,0xac,
932
0xb6,0xac,0xb7,0x1c,0xc1,0xdb,0x6f,0xd9,0x62,0x39,0x88,0xf7,0x2e,0x57,0xef,0xa8,
933
0x65,0x87,0xe5,0x07,0x5c,0xfb,0x67,0x2c,0x3f,0xb5,0x14,0xf3,0x2e,0x5a,0x4a,0x78,
934
0x1d,0x96,0x31,0xf4,0x99,0x25,0xfb,0xfd,0xc5,0x9d,0x44,0xff,0xdc,0xd1,0xeb,0xfc,
935
0xc2,0xf2,0xa6,0x77,0xbf,0xb6,0xfc,0xd7,0xfb,0x0a,0xdd,0xaf,0x7c,0x3b,0xf2,0x9d,
936
0x65,0x1f,0x6a,0x9a,0x5b,0xf1,0xad,0x06,0xc6,0x09,0x52,0x23,0xac,0x6e,0x6f,0xc5,
937
0xd9,0xca,0xd5,0xca,0xdd,0xea,0xd7,0xe7,0x3d,0xf9,0x6d,0xe7,0x02,0x6f,0x3e,0x28,
938
0xe9,0xa6,0xd6,0x5b,0x32,0x49,0x6d,0x25,0xe0,0xce,0x04,0x5b,0x85,0x5a,0x85,0x5b,
939
0x45,0x5a,0x69,0xad,0xa2,0xad,0x62,0xad,0xee,0xb5,0x7a,0xd0,0xea,0x61,0xab,0x51,
940
0x56,0xc3,0x71,0x7e,0x14,0xb1,0xdf,0xcf,0xdc,0xf9,0x3c,0xfb,0x1c,0x19,0x4c,0x8e,
941
0xe4,0x87,0x67,0x02,0x7f,0xe0,0xe9,0x21,0xe1,0xbe,0x8f,0xf2,0xb9,0xe3,0x37,0x51,
942
0x8f,0x59,0xfd,0x7b,0x33,0xf9,0x93,0x56,0xcf,0x58,0x99,0xd0,0x0b,0xa8,0xf5,0xb2,
943
0xd5,0x38,0xab,0x3c,0xf6,0x1b,0x0b,0x2b,0xf6,0x69,0xa5,0x97,0x6b,0x78,0x6a,0x09,
944
0xa0,0xd5,0x1e,0x7a,0x86,0xd3,0x54,0xae,0x6d,0xfd,0x37,0x62,0xac,0xb0,0x47,0x33,
945
0xac,0x66,0x5b,0xcd,0x43,0x3e,0x6b,0xc9,0x18,0x9e,0x3e,0xb6,0xa5,0xd9,0xdc,0x77,
946
0x6a,0x58,0x05,0x73,0xdf,0xaa,0xbd,0x61,0x25,0x46,0x1f,0xde,0xb2,0x5a,0x6c,0x15,
947
0x6f,0x95,0x04,0x7f,0x60,0x77,0x61,0xf5,0x00,0x9e,0x55,0x32,0xde,0x03,0xbc,0x65,
948
0x03,0xf6,0x9a,0x71,0xcf,0x3e,0xf6,0x29,0x79,0xab,0x7d,0xcb,0xad,0xd6,0x58,0xe5,
949
0x5a,0x6d,0xb4,0xda,0x66,0xb5,0xcb,0xaa,0xd2,0xaa,0xd6,0x6a,0xbf,0xd5,0x21,0xab,
950
0xa3,0x56,0x1d,0x56,0xa7,0xad,0x3e,0xb1,0xea,0xb2,0xfa,0x0c,0xad,0x7d,0x69,0xf5,
951
0xb5,0xd5,0x77,0x56,0x5e,0x74,0xdd,0xea,0x86,0x95,0x91,0xb5,0xa9,0xb5,0x1f,0x0d,
952
0xb6,0xb6,0xb4,0xb6,0xe7,0xbe,0xd3,0x13,0xd3,0x6f,0x9d,0x37,0xac,0xc9,0xad,0x6f,
953
0x6a,0xb4,0xb1,0xbe,0x7d,0xf7,0xf0,0xdf,0xf8,0x19,0x66,0x3d,0x12,0xfd,0xf0,0xb2,
954
0x56,0x5a,0xff,0xa7,0x35,0x87,0x5b,0x6b,0xff,0xb4,0xce,0xdf,0xbf,0x7f,0xbd,0xc3,
955
0xdd,0x63,0x7d,0x9f,0xf5,0x83,0xd6,0x8f,0x58,0x3f,0x66,0xfd,0xa4,0xf5,0xd3,0xd6,
956
0xcf,0x59,0xbf,0x68,0xfd,0xb2,0xf5,0x58,0xeb,0x09,0xd6,0x93,0xad,0xa7,0x5b,0xcf,
957
0xb6,0x9e,0x67,0xbd,0xc0,0xfa,0x6d,0xeb,0x38,0xeb,0x24,0xeb,0x54,0xeb,0x0c,0xeb,
958
0x55,0xd6,0xeb,0xac,0xf3,0xac,0x8b,0xac,0xb7,0x58,0xef,0xb0,0x2e,0xb3,0xde,0x6b,
959
0x5d,0x6b,0xfd,0x7b,0xf5,0x36,0x59,0x1f,0xb0,0x3e,0x6c,0xfd,0x9e,0xf5,0x71,0xeb,
960
0x93,0xd6,0x1f,0x58,0x7f,0x64,0x7d,0xd6,0xfa,0x82,0x75,0x8f,0xf5,0xe7,0xd6,0x5f,
961
0x5a,0x7f,0x63,0xfd,0xbd,0xf5,0x4f,0xd6,0xc4,0x1f,0xc4,0x37,0xe7,0x5b,0xf2,0x87,
962
0xf2,0x6d,0xf8,0x0e,0xfc,0x11,0x7c,0x67,0xbe,0x1b,0xff,0x8f,0x7c,0xd3,0xfc,0x47,
963
0xea,0xa8,0xad,0xfe,0xfc,0x55,0x94,0xf1,0x75,0xff,0xa7,0x3e,0x81,0xfc,0x10,0x7e,
964
0xf8,0x5d,0xec,0x93,0xf6,0x2e,0xb5,0x75,0x2f,0xff,0x41,0xfe,0x28,0xfe,0x13,0xfc,
965
0xa7,0xf9,0xcf,0xf3,0x5f,0xe2,0x8f,0xe5,0x4f,0xe4,0x4f,0xe1,0xcf,0xe0,0xcf,0xe1,
966
0xcf,0xe7,0x2f,0xe4,0x2f,0xe2,0xc7,0xf3,0x93,0xf9,0x69,0xfc,0x0c,0xfe,0x4a,0xfe,
967
0x1a,0x7e,0x0e,0x3f,0x9f,0x5f,0xc4,0xdf,0xcc,0xdf,0xce,0xdf,0xc9,0x2f,0xe7,0xef,
968
0xe5,0xd7,0xf0,0x1b,0xf8,0xef,0xf0,0x0f,0xf2,0x8f,0xf0,0x8f,0xf1,0x4f,0xf0,0x4f,
969
0xf1,0x3f,0xe4,0x7f,0xcc,0x3f,0xcf,0xef,0xe6,0x5f,0xe2,0x5f,0xe1,0x7f,0xc5,0xff,
970
0x96,0x7f,0x9d,0xdf,0xc7,0x37,0x1e,0xfa,0x57,0xfb,0xd5,0x14,0x1a,0x86,0x0c,0xb5,
971
0x1a,0x2a,0xe0,0x34,0xd9,0x20,0x74,0x00,0x23,0xc0,0x4a,0xec,0x01,0x32,0xcd,0x77,
972
0x60,0x3d,0xef,0xcc,0x9d,0x73,0xfb,0x99,0x2d,0x22,0x8c,0x57,0xd9,0x50,0xaf,0xa1,
973
0xbe,0xc8,0x55,0x02,0x35,0x08,0x05,0x91,0x20,0x1a,0xdc,0x0b,0x1e,0x04,0xa3,0xc0,
974
0x13,0xe0,0x69,0xf0,0x3c,0x78,0x09,0x8c,0x05,0x13,0xc1,0x14,0x30,0x03,0xcc,0x01,
975
0xf3,0xc1,0x42,0xb0,0x08,0xc4,0x83,0x64,0x90,0x06,0x32,0x58,0x4b,0xc0,0x1a,0x90,
976
0x03,0xf2,0x41,0x11,0xd8,0x0c,0xb6,0x83,0x9d,0xa0,0x1c,0xec,0x05,0x35,0xa0,0x01,
977
0xbc,0x03,0x0e,0x82,0x23,0xe0,0x18,0x38,0x01,0x4e,0x81,0x0f,0xc1,0xc7,0xe0,0x3c,
978
0xe8,0x06,0x97,0xc0,0x15,0xf0,0xd5,0x2f,0xbc,0xfc,0x2d,0x72,0xae,0x0f,0xe4,0xf6,
979
0x0d,0xd5,0xfd,0xc7,0xde,0x77,0xfe,0x7c,0x96,0x32,0x16,0xe8,0xfe,0xd0,0xdb,0xbf,
980
0xdf,0xfb,0x86,0xdb,0x54,0xf0,0xdf,0x71,0xf7,0x0f,0x11,0xfc,0x9a,0x07,0xac,0x05,
981
0x42,0x81,0x9d,0x60,0x98,0xc0,0x49,0xe0,0x22,0x70,0x17,0x78,0x0a,0x7c,0x05,0x4a,
982
0x81,0x5a,0x10,0x2a,0x88,0x14,0x44,0x0b,0xee,0x15,0x3c,0x28,0x18,0x25,0x78,0x42,
983
0xf0,0xb4,0xe0,0x79,0xc1,0x4b,0x82,0xb1,0x82,0x89,0x82,0x29,0x82,0x19,0x82,0x39,
984
0x82,0xf9,0x82,0x85,0x82,0x45,0x82,0x78,0x41,0xb2,0x20,0x4d,0x90,0x21,0x58,0x29,
985
0x58,0x23,0xc8,0x11,0xe4,0x0b,0x8a,0x04,0x9b,0x05,0xdb,0x05,0x3b,0x05,0xe5,0x82,
986
0xbd,0x82,0x1a,0x41,0x83,0xe0,0x1d,0xc1,0x41,0xc1,0x11,0xc1,0x31,0xc1,0x09,0xc1,
987
0x29,0xc1,0x87,0x82,0x8f,0x05,0xe7,0x05,0xdd,0x82,0x4b,0x82,0x2b,0x82,0xaf,0x04,
988
0xdf,0x0a,0xae,0x0b,0xfa,0x04,0xc6,0x42,0x53,0xe1,0x10,0xa1,0xb5,0x50,0x28,0xb4,
989
0x13,0x0e,0x13,0x3a,0x09,0x5d,0x84,0xee,0x42,0x4f,0xa1,0xaf,0x50,0x29,0x54,0x0b,
990
0x43,0x85,0x91,0xc2,0x68,0xe1,0xbd,0xc2,0x07,0x85,0xa3,0x84,0x4f,0x08,0x9f,0x16,
991
0x3e,0x2f,0x7c,0x49,0x38,0x56,0x38,0x51,0x38,0x45,0x38,0x43,0x38,0x47,0x38,0x5f,
992
0xb8,0x50,0xb8,0x48,0x18,0x2f,0x4c,0x16,0xa6,0x09,0x33,0x84,0x2b,0x85,0x6b,0x84,
993
0x39,0xc2,0x7c,0x61,0x91,0x70,0xb3,0x70,0xbb,0x70,0xa7,0xb0,0x5c,0xb8,0x57,0x58,
994
0x23,0x6c,0x10,0xbe,0x23,0x3c,0x28,0x3c,0x22,0x3c,0x26,0x3c,0x21,0x3c,0x25,0xfc,
995
0x50,0xf8,0xb1,0xf0,0xbc,0xb0,0x5b,0x78,0x49,0x78,0x45,0xf8,0x95,0xf0,0x5b,0xe1,
996
0x75,0x61,0x9f,0xd0,0x58,0x64,0x2a,0x1a,0x22,0xb2,0x16,0x09,0x45,0x76,0xa2,0x61,
997
0x22,0x27,0x91,0x8b,0xc8,0x5d,0xe4,0x29,0xf2,0x15,0x29,0x45,0x6a,0x51,0xa8,0x28,
998
0x52,0x14,0x2d,0xba,0x57,0xf4,0xa0,0x68,0x94,0xe8,0x09,0xd1,0xd3,0xa2,0xe7,0x45,
999
0x2f,0x89,0xc6,0x8a,0x26,0x8a,0xa6,0x88,0x66,0x88,0xe6,0x88,0xe6,0x8b,0x16,0x8a,
1000
0x16,0x89,0xe2,0x45,0xc9,0xa2,0x34,0x51,0x86,0x68,0xa5,0x68,0x8d,0x28,0x47,0x94,
1001
0x2f,0x2a,0x12,0x6d,0x16,0x6d,0x17,0xed,0x14,0x95,0x8b,0xf6,0x8a,0x6a,0x44,0x0d,
1002
0xa2,0x77,0x44,0x07,0x45,0x47,0x44,0xc7,0x44,0x27,0x44,0xa7,0x44,0x1f,0x8a,0x3e,
1003
0x16,0x9d,0x17,0x75,0x8b,0x2e,0x89,0xae,0x88,0xbe,0x12,0x7d,0x2b,0xba,0x2e,0xea,
1004
0x13,0x19,0xdb,0x98,0xda,0x0c,0xb1,0xb1,0xb6,0x11,0xda,0xd8,0xd9,0x0c,0xb3,0x71,
1005
0xb2,0x71,0xb1,0x71,0xb7,0xf1,0xb4,0xf1,0xb5,0x51,0xda,0xa8,0x6d,0x42,0x6d,0x22,
1006
0x6d,0xa2,0x6d,0xee,0xb5,0x79,0xd0,0x66,0x94,0xcd,0x13,0x36,0x4f,0xdb,0x3c,0x6f,
1007
0xf3,0x92,0xcd,0x58,0x9b,0x3e,0xdd,0xdd,0x17,0x76,0x87,0x30,0xd1,0xe6,0x3f,0x33,
1008
0x0a,0x5f,0x85,0x9e,0x29,0x82,0x69,0x36,0xb3,0x6c,0xfe,0xcc,0xdd,0xcd,0x7e,0x5e,
1009
0xb3,0x59,0xc0,0xb5,0xb1,0xc8,0xe6,0xbf,0xfb,0xa9,0x9c,0x64,0xf3,0x57,0xcf,0x8b,
1010
0x7d,0xba,0x65,0x36,0xcb,0x6d,0x56,0xdb,0xac,0xb3,0xc9,0xb5,0xd9,0x60,0xb3,0xc9,
1011
0x66,0xab,0xcd,0x0e,0x9b,0xdd,0x36,0x7b,0x6c,0xaa,0x6c,0xea,0x6c,0x9a,0x6c,0x0e,
1012
0xd8,0x1c,0xb6,0x79,0xcf,0xe6,0xb8,0xcd,0x49,0x9b,0x0f,0x6c,0x3e,0xb2,0x39,0x6b,
1013
0x73,0xc1,0xa6,0xc7,0xe6,0x73,0x9b,0x2f,0x6d,0xbe,0xb1,0xf9,0xde,0xe6,0x27,0x1b,
1014
0xb2,0x1d,0x64,0x6b,0x6e,0x6b,0x69,0x3b,0xd4,0xd6,0xc6,0xd6,0xc1,0x76,0x84,0xad,
1015
0xb3,0xad,0x9b,0xad,0xcc,0xd6,0xdb,0xd6,0xdf,0x36,0xc0,0x36,0xd8,0x36,0xdc,0x56,
1016
0x6b,0x1b,0x6b,0x7b,0xbf,0xed,0xc3,0xb6,0x8f,0xd9,0xfe,0xc3,0x96,0xe8,0x59,0xdb,
1017
0x17,0x6d,0x5f,0xb1,0x1d,0x6f,0xfb,0xaa,0xed,0x34,0xdb,0x59,0xb6,0xaf,0xd9,0xbe,
1018
0x61,0xfb,0x96,0x2d,0x63,0x9b,0x68,0xbb,0xc4,0x76,0x99,0xed,0x72,0xdb,0xd5,0xb6,
1019
0xeb,0x6c,0x73,0x6d,0x37,0xd8,0x6e,0xb2,0xdd,0x6a,0xbb,0xc3,0x76,0xb7,0xed,0x1e,
1020
0xdb,0x2a,0xdb,0x3a,0xdb,0x26,0xdb,0x03,0xb6,0x87,0x6d,0xdf,0xb3,0x3d,0x6e,0x7b,
1021
0xd2,0xf6,0x03,0xdb,0x8f,0x6c,0xcf,0xda,0x5e,0xb0,0xed,0xb1,0xfd,0xdc,0xf6,0x4b,
1022
0xdb,0x6f,0x6c,0xbf,0xb7,0xfd,0xc9,0x56,0xef,0x15,0x6b,0xcc,0x4c,0x64,0x37,0xc8,
1023
0xce,0xdc,0xce,0xd2,0x6e,0xa8,0x9d,0x8d,0x9d,0x93,0xc0,0xc1,0x6e,0x84,0x9d,0xb3,
1024
0x9d,0x9b,0x9d,0xef,0x9f,0x9e,0x7f,0x65,0x76,0xbe,0x76,0x01,0x76,0xa1,0x76,0x5a,
1025
0xbb,0x7b,0xed,0x1e,0xb6,0x7b,0xc2,0xee,0x59,0xbb,0x97,0xec,0xc6,0xdb,0x4d,0xb1,
1026
0x9b,0x65,0x37,0xdf,0xee,0x2d,0xbb,0x78,0xbb,0x25,0x76,0x19,0x76,0xab,0xed,0x72,
1027
0xec,0x36,0xd8,0x6d,0xb6,0xdb,0x61,0x57,0x6e,0x57,0x65,0xd7,0x60,0x77,0xc0,0xee,
1028
0x88,0xdd,0x71,0xbb,0x53,0x76,0x9f,0xd8,0xf5,0xe9,0x7a,0xec,0xae,0xd8,0x7d,0x63,
1029
0x77,0xdd,0x8e,0xec,0x4d,0xed,0x2d,0xed,0x85,0xf6,0x0e,0xf6,0x4e,0xf6,0x6e,0xf6,
1030
0x9e,0xf6,0xfe,0xf6,0x6a,0xfb,0x70,0xfb,0x68,0xfb,0xfb,0xed,0x47,0xd9,0xff,0xc3,
1031
0xfe,0x79,0xfb,0x57,0xec,0x27,0xda,0x4f,0xb3,0x9f,0x63,0xff,0x86,0xfd,0x22,0xfb,
1032
0x44,0xfb,0x34,0xfb,0xe5,0xf6,0x6b,0xec,0x73,0xed,0x8b,0xec,0xb7,0xda,0xef,0xb4,
1033
0xdf,0x63,0x5f,0x63,0xdf,0x64,0x7f,0xc0,0xde,0x4e,0x78,0xd8,0xfe,0x76,0xfb,0xde,
1034
0xb3,0x3f,0x6e,0xdf,0x61,0x7f,0xca,0xfe,0xb4,0xfd,0x47,0xf6,0x9f,0xd8,0x9f,0xb7,
1035
0xef,0xb2,0xef,0xb1,0xff,0xcc,0xfe,0x8a,0xfd,0x55,0xfb,0x6f,0xec,0xbf,0xb3,0xbf,
1036
0x6e,0xbf,0x0c,0x57,0x76,0x13,0xae,0x29,0x7b,0x15,0x3f,0xe2,0xae,0xdf,0xcd,0xab,
1037
0x77,0xc3,0xde,0xc8,0xc1,0xc4,0x61,0xb0,0x83,0x95,0x83,0xc0,0xc1,0xd6,0x41,0xec,
1038
0xe0,0xe8,0x30,0xd2,0x41,0xea,0x20,0x77,0xf0,0x71,0x50,0x38,0x04,0x3a,0x84,0x3b,
1039
0xc4,0x38,0xdc,0xf4,0xed,0x7d,0x0e,0x0f,0x39,0x3c,0xea,0x10,0x2a,0x78,0xd2,0x61,
1040
0x8a,0x40,0x89,0xb9,0xf6,0x25,0xcc,0xc2,0x9b,0x45,0x69,0x02,0x4f,0xe1,0x33,0x0e,
1041
0x2f,0x38,0xbc,0xec,0x30,0xce,0x61,0x92,0xc3,0x54,0x87,0x99,0x0e,0x73,0x1d,0x5e,
1042
0x77,0x78,0xd3,0xa1,0x48,0xb0,0xd8,0x21,0xc1,0x21,0xc5,0x61,0xa9,0x43,0xa6,0xc3,
1043
0x2a,0x87,0xb5,0x0e,0xeb,0x1d,0xf4,0xd7,0xa6,0xc0,0x61,0xa3,0xc3,0x16,0x87,0x12,
1044
0x87,0x5d,0x0e,0x15,0x0e,0xfb,0x1c,0x6a,0x1d,0x1a,0x1d,0x9a,0x1d,0x0e,0x39,0x1c,
1045
0x71,0x38,0xea,0x70,0xdc,0xa1,0xc3,0xe1,0x94,0xc3,0x69,0x87,0x8f,0x1c,0x3e,0x71,
1046
0x38,0xef,0xd0,0xe5,0xd0,0xe3,0xf0,0x99,0xc3,0x15,0x87,0xab,0x0e,0xdf,0x38,0xfc,
1047
0xe0,0xd0,0xe7,0xc0,0x13,0x9b,0x8b,0xad,0xc4,0x42,0xb1,0xbd,0x78,0x84,0x78,0xa4,
1048
0xd8,0x43,0xec,0x23,0x56,0x89,0xd5,0xe2,0x50,0x71,0x84,0x38,0x4a,0x7c,0x8f,0xf8,
1049
0x01,0xf1,0x23,0xe2,0xc7,0xc5,0x4f,0x89,0x9f,0x13,0x8f,0x16,0x8f,0x11,0x4f,0x10,
1050
0x4f,0x16,0x4f,0x17,0xcf,0x16,0xcf,0x13,0x2f,0x10,0xbf,0x2d,0x8e,0x13,0x27,0x89,
1051
0x53,0xc5,0xe9,0xe2,0x15,0xe2,0x2c,0x71,0xb6,0x38,0x4f,0x5c,0x28,0x2e,0x16,0x6f,
1052
0x13,0x97,0x8a,0xcb,0xc4,0x95,0xe2,0x6a,0x71,0xbd,0x78,0xbf,0xb8,0x45,0xdc,0x2a,
1053
0x3e,0x2a,0x6e,0x17,0x77,0x8a,0x4f,0x8b,0xcf,0x88,0xcf,0x89,0xbb,0xc4,0xbd,0xe2,
1054
0xcb,0xe2,0xab,0xe2,0x6b,0xe2,0x1f,0xc4,0x37,0xc4,0x83,0x86,0x09,0x86,0x39,0x0d,
1055
0xf3,0x1a,0x16,0x38,0x2c,0x7a,0xd8,0xc3,0xc3,0x9e,0x1e,0x36,0x71,0xd8,0xdc,0x61,
1056
0x6f,0x0f,0x4b,0x19,0xb6,0x62,0x58,0xfe,0xb0,0x92,0x61,0x95,0xc3,0x1a,0x87,0x1d,
1057
0x1c,0x76,0x7c,0xd8,0x99,0x61,0x97,0x86,0x5d,0x1d,0x66,0x34,0xdc,0x66,0xb8,0xdb,
1058
0x70,0xdf,0xe1,0x91,0xc3,0x47,0x0d,0x7f,0x61,0xf8,0x84,0xe1,0x33,0x87,0x2f,0x18,
1059
0x9e,0x3c,0x7c,0xcd,0xf0,0x8d,0xc3,0x4b,0x87,0xef,0x1b,0xbe,0x7f,0xf8,0xe1,0xe1,
1060
0x6d,0xc3,0x4f,0x0d,0x3f,0x33,0xfc,0xe2,0xf0,0xab,0xc3,0x8d,0x46,0x58,0x8c,0x70,
1061
0x18,0x21,0x1b,0xa1,0x1c,0x11,0x32,0x42,0x3b,0xe2,0xb1,0x11,0xa3,0x47,0x4c,0x1f,
1062
0xf1,0xfa,0x88,0x94,0x11,0x19,0x23,0xd6,0x8d,0x28,0x1a,0xb1,0x63,0xc4,0xde,0x11,
1063
0x4d,0x23,0x8e,0x8e,0x78,0x7f,0xc4,0xc7,0x23,0x7a,0x46,0x7c,0x35,0xe2,0xa7,0x11,
1064
0x83,0x1d,0x45,0x8e,0x8e,0x8e,0x1e,0x8e,0x41,0x8e,0xb1,0x8e,0x0f,0x39,0xbe,0xe0,
1065
0x38,0xd6,0x71,0xa6,0xe3,0x5b,0x8e,0xc9,0x8e,0xcb,0x1d,0x73,0x1c,0xb7,0x38,0xee,
1066
0x74,0xac,0x72,0x6c,0x71,0x7c,0xcf,0xf1,0x23,0xc7,0x6e,0xc7,0xcf,0x1c,0xbf,0x74,
1067
0xbc,0xe6,0x78,0xdd,0x51,0xe7,0x38,0xc8,0x69,0xb0,0x93,0xb5,0x93,0xc8,0xc9,0xc1,
1068
0xc9,0xc9,0xc9,0xcd,0xc9,0xd3,0xc9,0xdf,0x49,0xed,0x14,0xee,0x14,0xed,0x74,0xbf,
1069
0xd3,0x28,0xa7,0x7f,0x38,0x3d,0xef,0xf4,0x8a,0xd3,0x44,0xa7,0x69,0x4e,0x73,0x9c,
1070
0xe6,0x3b,0x2d,0x70,0x7a,0xcb,0x89,0x71,0x4a,0x70,0x4a,0x76,0x4a,0x75,0x4a,0x77,
1071
0x5a,0xe1,0xb4,0xda,0x69,0xbd,0x53,0x91,0xd3,0x36,0xa7,0xdd,0x4e,0xf5,0x4e,0x4d,
1072
0x4e,0xcd,0x4e,0x87,0x9c,0x8e,0x38,0x1d,0x75,0x3a,0xee,0xd4,0xe1,0x74,0xca,0xe9,
1073
0x43,0xa7,0x4f,0x9c,0xce,0x3b,0x75,0x39,0xf5,0x3a,0x5d,0x76,0xfa,0xd2,0xe9,0x6b,
1074
0xa7,0x6f,0x9d,0xae,0x3b,0xf5,0x39,0x19,0x4b,0x4c,0x25,0x43,0x24,0x56,0x92,0xa1,
1075
0x12,0x91,0xc4,0x4e,0x22,0x96,0x38,0x4a,0x9c,0x25,0xae,0x12,0x77,0x89,0xa7,0xc4,
1076
0x57,0xa2,0x90,0x04,0x4a,0x42,0x24,0x11,0x12,0xad,0x24,0x56,0xf2,0xa0,0xa4,0xde,
1077
0xe9,0x71,0xc9,0x53,0x92,0xe7,0x24,0xa3,0x25,0x63,0x24,0x93,0x25,0x73,0x24,0xf3,
1078
0x24,0x6f,0x48,0xde,0x92,0x2c,0x96,0xc4,0x4b,0x92,0x24,0xa9,0x92,0x65,0x20,0x53,
1079
0xb2,0x52,0x92,0x25,0xc9,0x96,0xe4,0x82,0x02,0xc9,0x46,0x49,0x9f,0x6e,0x8b,0x64,
1080
0xbb,0xa4,0x54,0xb2,0x1b,0xa9,0x7d,0x92,0x1a,0x49,0xbd,0xa4,0x49,0xd2,0x2c,0x39,
1081
0x88,0xf6,0x5b,0x25,0xef,0x49,0xda,0x24,0x27,0x24,0xa7,0x24,0xc7,0x9d,0x4e,0x4b,
1082
0xce,0x48,0xce,0xa1,0xc4,0x05,0x49,0x8f,0xe4,0x33,0xc9,0x15,0xc9,0x55,0xc9,0x37,
1083
0x92,0xeb,0x12,0x72,0x36,0x71,0x1e,0xe2,0xcc,0x77,0xb6,0x71,0x16,0x3b,0x3b,0x39,
1084
0xbb,0x3a,0xcb,0x9c,0x7d,0x9c,0x55,0xce,0x21,0xce,0x1a,0xe7,0x7b,0x9c,0x1f,0x72,
1085
0x7e,0xdc,0xf9,0x19,0xe7,0xd1,0xce,0xe3,0x9c,0x27,0x3b,0xcf,0x74,0x9e,0xe7,0xfc,
1086
0xa6,0x73,0x9c,0x73,0x8a,0x73,0xba,0xf3,0x2a,0xe7,0x6c,0xe7,0x02,0xe7,0x62,0xe7,
1087
0x12,0xe7,0x32,0xe7,0x4a,0x67,0x9d,0xae,0x1a,0xd4,0x83,0xfd,0xa0,0x05,0x74,0x98,
1088
0xe9,0x74,0xad,0x88,0x8f,0x82,0x76,0xd0,0x09,0x4e,0x83,0x33,0xe0,0x1c,0xe8,0x02,
1089
0xbd,0xe0,0x32,0xb8,0x0a,0xae,0x81,0x1f,0xc0,0x0d,0x60,0x34,0x52,0xa7,0x33,0x01,
1090
0x83,0x47,0xfe,0xbe,0xf9,0xc7,0x0a,0xe5,0x04,0xc0,0x16,0x88,0x81,0x23,0x18,0x09,
1091
0xa4,0x40,0x0e,0x7c,0x80,0x02,0x04,0x82,0x10,0x10,0x01,0xa2,0x80,0xd3,0x20,0xb7,
1092
0x41,0xff,0x5b,0x9e,0x62,0xf7,0xc0,0x9e,0x07,0xc0,0x23,0xe0,0x71,0xf0,0x14,0x78,
1093
0x0e,0x8c,0x36,0xf8,0x60,0x0c,0xe2,0x09,0x60,0x32,0x98,0x0e,0x66,0x83,0x79,0x60,
1094
0x01,0x78,0x1b,0xc4,0x81,0x24,0x90,0x0a,0xd2,0xc1,0x0a,0x90,0x05,0xb2,0x41,0x1e,
1095
0x28,0x04,0xc5,0x60,0x1b,0x28,0x05,0x65,0xa0,0x12,0x54,0x83,0x7a,0xb0,0x1f,0xb4,
1096
0x80,0x56,0x70,0x14,0xb4,0x83,0x4e,0x70,0xda,0xc0,0xcf,0x3f,0x67,0x90,0x73,0x0e,
1097
0x74,0x8d,0xec,0x45,0x78,0x19,0x5c,0x05,0xd7,0xc0,0x0f,0x03,0x65,0x6f,0x20,0x55,
1098
0xc5,0x7d,0x37,0x66,0xe4,0x82,0xeb,0xe9,0x62,0xf8,0x4e,0x1b,0xb1,0x15,0x10,0x00,
1099
0x5b,0x20,0x06,0x8e,0x60,0x24,0x90,0x02,0x39,0xf0,0x01,0xfb,0x8c,0xb3,0xcd,0x2b,
1100
0xcd,0x15,0x2e,0xb5,0x68,0x21,0xc0,0x25,0xc8,0xe5,0x1d,0xf3,0x50,0x97,0x48,0xe4,
1101
0x47,0x83,0x7b,0xc1,0x83,0x60,0x14,0x78,0x02,0x3c,0x0d,0x9e,0x07,0x2f,0xb9,0x7c,
1102
0x6c,0x3e,0xd6,0x65,0x22,0x52,0x53,0xc0,0x0c,0x97,0xd9,0x08,0xe7,0x81,0x05,0xe0,
1103
0x6d,0x10,0x07,0x92,0x40,0x2a,0x48,0x07,0x2b,0x5c,0x56,0xbb,0xf4,0xaf,0x1c,0xd6,
1104
0xba,0xfc,0xab,0x15,0x9e,0x94,0x4c,0xc8,0x82,0x46,0x52,0x0e,0xd7,0x8b,0x6b,0x14,
1105
0x6a,0x74,0x37,0xae,0xf9,0x23,0x23,0xf3,0x5d,0x86,0x0c,0x2d,0x72,0xf9,0xe5,0x99,
1106
0xcd,0x5c,0xde,0x36,0x97,0x52,0xce,0xaa,0x32,0x97,0x4a,0x97,0x6a,0x97,0x7a,0x97,
1107
0xfd,0x2e,0x2d,0x2e,0xad,0x2e,0x47,0x5d,0xda,0x5d,0x3a,0x5d,0x4e,0xbb,0x9c,0x71,
1108
0x39,0xe7,0xd2,0xe5,0xd2,0xeb,0x72,0xd9,0xe5,0xaa,0xcb,0x35,0x97,0x1f,0x5c,0x6e,
1109
0xb8,0x18,0xb9,0x9a,0xb8,0x0e,0x76,0xb5,0x72,0x15,0xb8,0xda,0xba,0x8a,0x5d,0x1d,
1110
0x5d,0x47,0xba,0x4a,0x5d,0xe5,0xae,0x3e,0xae,0x0a,0xd7,0x40,0xd7,0x10,0xd7,0x08,
1111
0xd7,0x28,0xd7,0x7b,0x5c,0x1f,0x70,0x7d,0xc4,0xf5,0x71,0xd7,0xa7,0x5c,0x9f,0x73,
1112
0x1d,0xed,0x3a,0xc6,0x75,0x82,0xeb,0x64,0xd7,0xe9,0xae,0xb3,0x5d,0xe7,0xb9,0x2e,
1113
0x70,0x7d,0xdb,0x35,0xce,0x35,0xc9,0x35,0xd5,0x35,0xdd,0x75,0x85,0x6b,0x96,0x6b,
1114
0xb6,0x6b,0x9e,0x6b,0xa1,0x6b,0xb1,0xeb,0x36,0xd7,0x52,0xd7,0x32,0xd7,0x4a,0xd7,
1115
0x6a,0xd7,0x7a,0xd7,0xfd,0xae,0x2d,0xae,0xad,0xae,0x47,0x5d,0xdb,0x5d,0x3b,0x5d,
1116
0x4f,0xbb,0x9e,0x71,0x3d,0xe7,0xda,0xe5,0xda,0xeb,0x7a,0xd9,0xf5,0xaa,0xeb,0x35,
1117
0xd7,0x64,0xd1,0x0f,0xae,0x37,0x5c,0x8d,0xdc,0x4c,0xdc,0x5e,0xc2,0x3a,0x7b,0xb0,
1118
0xdb,0x66,0x91,0x95,0x9b,0xc0,0xcd,0xd6,0x4d,0xec,0xe6,0xe8,0x36,0xd2,0x4d,0xea,
1119
0x26,0x77,0xf3,0x71,0x53,0xb8,0x05,0xba,0x85,0xb8,0x45,0xb8,0x45,0xb9,0xdd,0xe3,
1120
0xf6,0x80,0xdb,0x23,0x6e,0x8f,0xbb,0x3d,0xe5,0xf6,0x9c,0xdb,0x68,0xb7,0x31,0x6e,
1121
0x13,0xdc,0x26,0xbb,0x4d,0x77,0x9b,0xed,0x36,0xcf,0x6d,0x81,0xdb,0xdb,0x6e,0x71,
1122
0x6e,0x49,0x6e,0xa9,0x6e,0xe9,0x6e,0x2b,0xdc,0xb2,0xdc,0xb2,0xdd,0xf2,0xdc,0x0a,
1123
0xdd,0x8a,0xdd,0xb6,0xb9,0x95,0xba,0xf5,0x09,0xcb,0xdc,0x2a,0xdd,0xaa,0xdd,0xea,
1124
0xdd,0xf6,0xbb,0xb5,0xb8,0xb5,0xba,0x1d,0x75,0x6b,0x77,0xeb,0x74,0x3b,0xed,0xe6,
1125
0x62,0x73,0xc6,0xed,0x9c,0x5b,0x97,0x5b,0xaf,0xdb,0x65,0xb7,0xab,0x6e,0xd7,0xdc,
1126
0x7e,0x70,0xbb,0xe1,0x66,0x24,0x35,0x91,0x0e,0x96,0x5a,0x49,0x05,0x52,0x5b,0xa9,
1127
0x58,0xea,0x28,0x1d,0x29,0x95,0x4a,0xe5,0x52,0x1f,0xa9,0x42,0x1a,0x28,0x0d,0x91,
1128
0x46,0x48,0xa3,0xa4,0xf7,0x48,0x15,0x6e,0x0f,0x48,0x1f,0x91,0x3e,0x2e,0x7d,0x4a,
1129
0xfa,0x9c,0x74,0xb4,0x74,0x8c,0x74,0x82,0x74,0xb2,0x74,0xba,0x74,0xb6,0x74,0x9e,
1130
0x74,0x81,0xf4,0x6d,0x69,0x9c,0x34,0x49,0x9a,0x2a,0x4d,0x97,0xae,0x90,0x66,0x49,
1131
0x33,0x44,0xd9,0xd2,0x3c,0x69,0xa1,0xb4,0x58,0xba,0x4d,0x5a,0x2a,0x2d,0x93,0x56,
1132
0x4a,0xab,0xa5,0xf5,0xd2,0xfd,0xd2,0x16,0x69,0xab,0xf4,0xa8,0xb4,0x5d,0x5a,0x24,
1133
0xe8,0x94,0x9e,0x96,0x9e,0x91,0x9e,0x93,0x76,0x49,0x7b,0xa5,0x97,0xa5,0x57,0xa5,
1134
0x4f,0x0b,0xae,0x49,0x7f,0x90,0xde,0x90,0x1a,0xb9,0x9b,0xb8,0x0f,0x76,0xb7,0x72,
1135
0x17,0xb8,0xdb,0xba,0x8b,0xdd,0x1d,0xdd,0x47,0xba,0x4b,0xdd,0xe5,0xee,0x3e,0xee,
1136
0x0a,0xf7,0x40,0xf7,0x10,0xf7,0x08,0xf7,0x28,0xf7,0x7b,0xdc,0x1f,0x70,0x5f,0x21,
1137
0x7d,0xc4,0xfd,0x71,0xf7,0xa7,0xdc,0x9f,0x73,0x1f,0xed,0x3e,0xc6,0x7d,0x82,0xfb,
1138
0x64,0xf7,0xc7,0xa5,0xd3,0xdd,0x67,0xbb,0xcf,0x73,0x5f,0xe0,0xfe,0xb6,0x7b,0x9c,
1139
0x7b,0x92,0x7b,0xaa,0x7b,0xba,0xfb,0x0a,0xf7,0x2c,0xf7,0x6c,0xf7,0x3c,0xf7,0x42,
1140
0xf7,0x62,0xf7,0x6d,0xee,0xa5,0xee,0x65,0xee,0x95,0xee,0xd5,0xee,0x0a,0xb7,0x7a,
1141
0xf7,0xfd,0xee,0x2d,0xee,0xad,0xee,0xcf,0xdb,0x1c,0x75,0x6f,0x77,0xef,0x74,0x3f,
1142
0xed,0x7e,0xc6,0xfd,0x9c,0x7b,0x97,0x7b,0xaf,0xfb,0x65,0xf7,0xab,0xee,0xd7,0xdc,
1143
0x7f,0x70,0x7f,0xc8,0xe1,0x86,0xbb,0x91,0x87,0x89,0xc7,0x60,0x0f,0x2b,0x0f,0x81,
1144
0x87,0xad,0x87,0xd8,0xc3,0xd1,0xe3,0x39,0xe9,0x48,0x0f,0xa9,0x87,0xdc,0xc3,0xc7,
1145
0x43,0xe1,0x11,0xe8,0x11,0xe2,0x11,0xe1,0x11,0xe5,0x71,0x8f,0xc7,0x03,0x1e,0x8f,
1146
0x78,0x3c,0xee,0x51,0x24,0x7a,0xca,0xe3,0x39,0x8f,0xd1,0x1e,0x63,0x3c,0x26,0x78,
1147
0x4c,0xf6,0x98,0xee,0x31,0xdb,0x63,0x9e,0xc7,0x02,0x8f,0xb7,0x3d,0xe2,0x3c,0x92,
1148
0x3c,0x3e,0x16,0xa6,0x7a,0xa4,0x7b,0xac,0xf0,0xc8,0xf2,0xc8,0xf6,0xc8,0xf3,0x28,
1149
0xf4,0x28,0xf6,0xd8,0xe6,0x51,0xea,0x51,0xe6,0x51,0xe9,0x51,0xed,0x51,0xef,0xb1,
1150
0xdf,0xa3,0xc5,0xe3,0x41,0x51,0xab,0xc7,0xd3,0xa2,0xa3,0x1e,0xed,0x1e,0x9d,0x1e,
1151
0xec,0x38,0x3e,0x8d,0xf0,0x0c,0x97,0x3a,0xe7,0xd1,0xe5,0xd1,0xeb,0x71,0xd9,0xe3,
1152
0xaa,0xc7,0x35,0x8f,0x1f,0x3c,0x6e,0x78,0x18,0xc9,0xae,0x0b,0x31,0x37,0xc8,0x30,
1153
0x2f,0xc8,0xb8,0x99,0x5c,0x26,0x90,0xe9,0xef,0x00,0x5b,0x99,0x58,0xe6,0x28,0x1b,
1154
0x29,0x93,0xca,0xe4,0x32,0x1f,0x99,0x42,0x16,0x28,0x0b,0x91,0x45,0xc8,0xa2,0x64,
1155
0xf7,0xc8,0x1e,0x90,0x3d,0x22,0x7b,0x5c,0xf6,0x94,0xec,0x39,0x59,0x83,0x60,0xb4,
1156
0x6c,0x8c,0x6c,0x82,0x6c,0xb2,0x6c,0xba,0x6c,0xb6,0x6c,0x9e,0x6c,0x81,0xec,0x6d,
1157
0x59,0x9c,0x2c,0x49,0x96,0x2a,0x4b,0x97,0xad,0x90,0x65,0xc9,0x5e,0x76,0xc8,0x96,
1158
0xe5,0xc9,0x0a,0x65,0xc5,0xb2,0x99,0x0e,0xdb,0x64,0xa5,0xb2,0x32,0x59,0xa5,0xac,
1159
0x5a,0x36,0xd2,0xbd,0x5e,0xb6,0x5f,0xd6,0x22,0x6b,0x95,0x1d,0x95,0xb5,0x43,0x3a,
1160
0x65,0xa7,0x65,0x67,0x64,0xe7,0x64,0x5d,0xb2,0x5e,0xd9,0x65,0xd9,0x55,0x99,0x95,
1161
0xec,0x9a,0xec,0x07,0xd9,0x0d,0x99,0x91,0xdc,0x44,0x3e,0x44,0xce,0xed,0xef,0xe5,
1162
0x42,0xb9,0x9d,0x7c,0x98,0xdc,0x49,0xee,0x22,0x77,0x97,0x7b,0xca,0xef,0x91,0xf9,
1163
0xca,0x95,0x72,0xb5,0xfc,0xb4,0x47,0xa8,0x3c,0x52,0x1e,0x2d,0xbf,0x57,0xfe,0xa0,
1164
0x7c,0x94,0xfc,0x09,0xf9,0xd3,0xf2,0xe7,0xe5,0x2f,0xc9,0xc7,0xca,0x27,0xca,0x27,
1165
0xc8,0xa6,0xc8,0x27,0xcb,0x66,0xc8,0xe7,0xc8,0xe7,0xcb,0x17,0xca,0x17,0xc9,0xcf,
1166
0x78,0x24,0xb9,0xc5,0xcb,0x93,0xe5,0xd1,0xc2,0x2c,0xe9,0x39,0xf7,0x34,0x79,0x86,
1167
0x3c,0x49,0xb6,0x52,0x9e,0x2a,0x5b,0x23,0xcf,0x91,0xe7,0xcb,0xbb,0x3c,0x8a,0xe4,
1168
0x9b,0xe5,0xdb,0xe5,0x3b,0xe5,0xe5,0xf2,0x5e,0x8f,0xbd,0xf2,0x1a,0x79,0x83,0xfc,
1169
0x1d,0xf9,0x41,0xf9,0x11,0x79,0xb5,0xec,0x98,0xfc,0x84,0x7c,0xa4,0xfb,0x29,0x79,
1170
0xab,0xec,0x43,0xf9,0xc7,0xf2,0xf3,0xf2,0x6e,0xf9,0x25,0xf9,0x19,0xd9,0x15,0xf9,
1171
0x60,0xd9,0x57,0xf2,0x73,0xb2,0x07,0xa4,0xdf,0xca,0xbb,0x64,0xd7,0xe5,0x97,0x65,
1172
0x7d,0x72,0x63,0x4f,0x53,0xcf,0x21,0x9e,0xd6,0x9e,0xd7,0x64,0x37,0x3c,0x84,0x9e,
1173
0x3f,0xc8,0xec,0x3c,0x6f,0xc8,0x86,0x79,0xbe,0x64,0xe3,0xe4,0xe9,0xea,0x29,0xf3,
1174
0xf4,0xf1,0x54,0x78,0x06,0x7a,0x86,0x78,0x46,0x7a,0xc6,0x78,0xde,0xef,0xf9,0xb0,
1175
0xe7,0xdd,0xdc,0xff,0x3e,0xe6,0xf9,0xa4,0xe7,0xd3,0x9e,0xcf,0x79,0x8e,0xf6,0x1c,
1176
0x03,0xf9,0xb5,0x52,0xe3,0x3d,0x27,0x7b,0xce,0xf0,0x9c,0xeb,0xf9,0xc6,0x2d,0x25,
1177
0xde,0xf6,0xd4,0xe9,0xe2,0x3d,0x53,0x3c,0xdf,0xb2,0x4a,0xb2,0x4a,0xf3,0x4c,0xf7,
1178
0x5c,0xee,0xb9,0xca,0x73,0x8d,0x67,0xb6,0x67,0xac,0x55,0xae,0x67,0xa1,0xe7,0x66,
1179
0xcf,0x52,0xcf,0x3d,0x9e,0xd5,0x9e,0x0d,0x9e,0xcd,0x9e,0x87,0x3d,0x8f,0x7a,0x9e,
1180
0xf0,0x7c,0xdf,0xf3,0x23,0xd4,0x3e,0xe7,0xd9,0xed,0xf9,0x99,0xe7,0x97,0x9e,0xd7,
1181
0x90,0xbe,0x0e,0x74,0x9e,0x83,0xbc,0xfa,0x74,0x83,0xbd,0xac,0x11,0x8a,0xbc,0x1c,
1182
0xbc,0x1c,0xbd,0x5c,0xbc,0x3c,0xbc,0xbc,0xbd,0x14,0x5e,0x6a,0xaf,0x30,0x2f,0xad,
1183
0xd7,0x3d,0x90,0xfb,0x0d,0xf2,0x90,0x41,0x46,0x19,0xe4,0x71,0x83,0xfc,0xc3,0x20,
1184
0xcf,0x18,0xe4,0x79,0x83,0x8c,0x36,0xc8,0x2b,0x06,0x19,0x67,0x90,0x89,0x06,0x99,
1185
0x6c,0x90,0x69,0x90,0x99,0x90,0x39,0x90,0x79,0x90,0x37,0x20,0x6f,0x42,0x16,0x19,
1186
0x24,0xce,0x20,0x89,0x06,0x49,0x31,0x48,0x1a,0x24,0xdd,0x20,0xcb,0x21,0xab,0x0c,
1187
0xb2,0xc6,0x20,0xd9,0x90,0x5c,0xc8,0x9f,0x7f,0xda,0x14,0x78,0xe9,0xa5,0x08,0x52,
1188
0x0c,0xd9,0x0a,0x39,0x63,0x52,0xe2,0x55,0xe2,0xb5,0x13,0x52,0x06,0xd9,0x63,0x90,
1189
0x7d,0x90,0x1a,0x48,0x23,0xe4,0x00,0xa4,0x15,0x72,0x0c,0xd2,0x01,0xf9,0x80,0x93,
1190
0x33,0x9c,0x9c,0x37,0x48,0x97,0xd7,0x25,0xaf,0x2f,0x70,0xfc,0x8d,0xd7,0x0f,0x5e,
1191
0x7d,0x5e,0x3c,0x6f,0x73,0x6f,0x2b,0x6f,0xa1,0xb7,0xbd,0xf7,0x08,0xef,0x91,0xde,
1192
0xee,0xde,0x5e,0xde,0xfe,0xde,0x81,0xde,0xa1,0xde,0x1a,0xef,0x58,0xef,0x07,0xbc,
1193
0x47,0x79,0x3f,0xe9,0xfd,0xac,0xf7,0x68,0xef,0xb1,0xde,0x93,0xbc,0xa7,0x79,0xcf,
1194
0xf6,0x9e,0xef,0xfd,0xa6,0x37,0xe3,0x9d,0xe4,0x9d,0xe6,0x9d,0xe9,0xbd,0xda,0x3b,
1195
0xdb,0x3b,0xdf,0x7b,0xa3,0xf7,0x56,0xef,0x52,0xef,0x72,0xef,0x7d,0xde,0x75,0xde,
1196
0xfb,0xbd,0x0f,0x7a,0xbf,0xeb,0x7d,0xdc,0xbb,0xd3,0xfb,0x43,0xef,0x4f,0xbc,0x2f,
1197
0x78,0xf7,0x7a,0x5f,0xf1,0xfe,0xda,0xfb,0x7b,0xef,0x1b,0xde,0xc6,0x3e,0x66,0x3e,
1198
0x96,0x3e,0x02,0x1f,0x3b,0x9f,0xe1,0x3e,0xce,0x3e,0x52,0x1f,0x4f,0x1f,0x3f,0x9f,
1199
0x00,0x9f,0x10,0x9f,0x48,0x9f,0x18,0x9f,0xfb,0x7d,0x1e,0xf1,0x79,0xc2,0xe7,0x19,
1200
0x9f,0x17,0x7d,0xc6,0xf8,0x4c,0xf4,0x99,0xea,0x33,0xcb,0x67,0x9e,0xcf,0x42,0x9f,
1201
0xc5,0x3e,0x89,0x3e,0xa9,0x3e,0x19,0x3e,0xab,0x7c,0xd6,0xf9,0xe4,0xf9,0x14,0xf9,
1202
0x6c,0xf1,0xd9,0xe1,0x53,0xe6,0xb3,0xd7,0xa7,0xce,0xe7,0x1d,0x9f,0xc3,0x3e,0xc7,
1203
0x7c,0x4e,0xfa,0x7c,0xe8,0xf3,0x89,0xcf,0x17,0x5e,0x17,0x7c,0xd8,0x9e,0xf4,0xfa,
1204
0x5c,0xf1,0x31,0xf7,0xfe,0xda,0x87,0xed,0xc9,0xf7,0x3e,0x37,0x7c,0xdc,0xbd,0x8d,
1205
0x7d,0xd9,0x9e,0x98,0xf9,0x5a,0xfa,0x86,0x7a,0x0b,0x7c,0xd9,0xde,0xb0,0x56,0xe9,
1206
0x2d,0xea,0xb7,0x45,0x6f,0x85,0x9d,0xef,0xfd,0x3e,0xc3,0x7d,0x9d,0x7d,0x27,0xfa,
1207
0x48,0x7d,0x59,0xed,0x65,0x3e,0x9e,0xbe,0x7e,0xbe,0xeb,0x7c,0x02,0x7c,0x59,0xbd,
1208
0xac,0xb7,0x42,0x7c,0xbf,0xf0,0x8a,0xf4,0xed,0xf7,0x56,0x8c,0x6f,0xbf,0xaf,0xee,
1209
0x47,0xdb,0x37,0x7d,0x74,0xab,0x87,0x1e,0xf1,0xbd,0xd5,0x47,0xbf,0xf4,0x10,0xeb,
1210
0x9d,0x9b,0x7e,0xe9,0xf7,0xc9,0x13,0xbe,0xfd,0x1e,0xe9,0xf7,0xc6,0x33,0xbe,0xac,
1211
0x2f,0x5e,0xf4,0xed,0xf7,0xc4,0x18,0xce,0x12,0xd6,0x06,0xbd,0xf6,0x89,0xbe,0x6f,
1212
0x7a,0x4f,0xf5,0x9d,0xe5,0x3b,0xcf,0x97,0x6d,0xc7,0x93,0xab,0xc1,0x96,0x5a,0xe8,
1213
0x1b,0xe7,0xbb,0xc4,0x37,0xd3,0x77,0xb5,0x6f,0xb6,0x6f,0xbe,0xef,0x46,0xdf,0xad,
1214
0xbe,0xa5,0xbe,0xe5,0xbe,0xfb,0x7c,0xeb,0x7c,0xf7,0xfb,0x1e,0xf4,0x7d,0xd7,0xf7,
1215
0xb8,0x6f,0xa7,0xef,0x87,0xbe,0x9f,0xf8,0x5e,0xf0,0xed,0xf5,0xbd,0xe2,0xfb,0xb5,
1216
0xef,0xf7,0xbe,0x37,0xd0,0x8a,0xb1,0x9f,0x99,0x9f,0xa5,0x9f,0xc0,0xef,0x8f,0xd6,
1217
0xeb,0x3f,0x9e,0x0a,0x7b,0x36,0x1a,0xbc,0xa1,0xcf,0x63,0x47,0x89,0x9d,0x9f,0x9d,
1218
0xdf,0xef,0x19,0xf9,0xc3,0xfd,0x5c,0x20,0x72,0x3f,0x7f,0xbf,0x20,0xbf,0x48,0xbf,
1219
0x7b,0xfc,0x1e,0x86,0x3c,0xe9,0xf7,0xbc,0xdf,0x18,0xbf,0x57,0xfd,0x66,0xfa,0xcd,
1220
0x87,0xbc,0xed,0x97,0x08,0x59,0x0a,0x59,0xe9,0x97,0x0d,0xd9,0xe0,0xb7,0x05,0xb2,
1221
0x13,0x52,0xe9,0x57,0x07,0x69,0x86,0x1c,0xf1,0x6b,0xf7,0xfb,0xc0,0xef,0x13,0x48,
1222
0xb7,0xdf,0x65,0xbf,0x6f,0xfc,0x7e,0xf4,0x33,0xf6,0x37,0xf6,0x1f,0xec,0x3f,0xd4,
1223
0xdf,0xde,0xdf,0xc9,0x5f,0xea,0x8f,0xc1,0xe1,0xaf,0x82,0x84,0x42,0xa2,0xfc,0xef,
1224
0xf7,0x7f,0xd4,0xff,0x69,0xff,0xd1,0xfe,0xe3,0xfd,0xa7,0xfa,0xb3,0x36,0xcc,0xf1,
1225
0x5f,0xe0,0xcf,0xf8,0xa7,0xf8,0x67,0xf8,0x67,0x41,0x72,0xfd,0x37,0xfa,0x6f,0xf7,
1226
0x2f,0x83,0x54,0xf9,0x37,0xfa,0x1f,0xf4,0x3f,0xea,0x7f,0xd2,0xff,0x9f,0xfe,0xe7,
1227
0xfd,0x7b,0xfd,0xbf,0xf4,0xff,0xce,0xbf,0xcf,0xdf,0x44,0x61,0xa9,0x10,0x29,0x86,
1228
0x29,0x46,0x2a,0x64,0x0a,0x3f,0x85,0x5a,0x11,0xa1,0x88,0x55,0x3c,0xa4,0x18,0x0c,
1229
0x4d,0x4f,0x28,0x9e,0x53,0xbc,0xa2,0x98,0xa4,0x98,0xa1,0x98,0x07,0x5e,0x51,0xbc,
1230
0xa5,0x48,0x50,0xa4,0x29,0x56,0x28,0xd6,0xe1,0xf8,0x03,0x58,0x5f,0xa0,0xd8,0xac,
1231
0xf8,0xe3,0xdf,0x84,0xde,0x59,0x4a,0x15,0x7b,0x14,0xb5,0x8a,0x03,0x8a,0xa3,0x8a,
1232
0x53,0x8a,0x4f,0x14,0x3d,0x8a,0xab,0x8a,0xeb,0x0a,0x23,0xa5,0xab,0x52,0xa5,0xbc,
1233
0xfd,0x37,0xfd,0xee,0xfc,0x09,0x57,0x46,0x2a,0xfb,0x74,0xd1,0x4a,0x9d,0x71,0xac,
1234
0xf2,0x5e,0xe5,0xfd,0xca,0x87,0x95,0xff,0xde,0x37,0x08,0x78,0xc2,0x28,0xff,0xa1,
1235
0x7c,0x16,0xc2,0xfe,0x3e,0xc3,0xf3,0xca,0x17,0x95,0x2f,0x29,0xc7,0x2a,0x27,0x2a,
1236
0xa7,0x28,0x67,0x28,0xe7,0x28,0xd9,0xef,0x8a,0xe7,0x2b,0x17,0x2a,0x17,0x29,0xe3,
1237
0x39,0x7b,0x92,0x95,0x4b,0x94,0x23,0xac,0xf4,0xf2,0x2c,0x57,0x4b,0xaf,0x1f,0x7a,
1238
0x8c,0xa3,0xa1,0x3f,0x56,0xf9,0xd8,0xcf,0xda,0x49,0x53,0x2e,0x53,0x66,0x28,0x63,
1239
0xad,0x96,0x2b,0x57,0x2a,0x57,0x2b,0x1f,0xb4,0xea,0xd3,0xad,0x51,0xae,0x53,0xe6,
1240
0x28,0x73,0x07,0xac,0xcc,0x57,0x16,0x29,0xb7,0xa0,0xed,0x12,0xe4,0xec,0x52,0x56,
1241
0x28,0xab,0x94,0x75,0xca,0xfd,0xca,0x16,0xe5,0x11,0xe5,0x31,0x65,0x87,0xf2,0x7d,
1242
0xe5,0x47,0xca,0x4f,0x20,0xe7,0x21,0x5d,0x90,0x1e,0xc8,0x67,0x06,0xb9,0x02,0xb9,
1243
0x6a,0x90,0x6f,0x20,0xdf,0x19,0xe4,0xba,0x41,0x6e,0x18,0x84,0x54,0x7a,0xe1,0x19,
1244
0xc4,0x14,0x32,0x18,0x62,0x09,0xe1,0x43,0x84,0x06,0xb1,0x35,0x88,0x83,0x41,0x86,
1245
0x1b,0xc4,0xc9,0x20,0x23,0x0d,0xe2,0x66,0x10,0x0f,0x83,0x78,0x1a,0xc4,0xc7,0x20,
1246
0xfe,0x06,0xe9,0xff,0xa8,0x0d,0x12,0x62,0x90,0x70,0x83,0x68,0x20,0xec,0xd3,0x20,
1247
0x5a,0xa5,0x97,0x7b,0x20,0x0f,0x42,0x1e,0x85,0xfc,0x03,0xa2,0xff,0x4d,0x95,0x3e,
1248
0x5d,0xac,0xf2,0x39,0x55,0x1a,0xe7,0xb5,0x65,0xca,0x17,0x54,0xac,0x77,0x59,0x8f,
1249
0x86,0x2b,0x97,0x2b,0x27,0xda,0x8c,0x56,0xdd,0xe9,0xf7,0x53,0xd8,0xd1,0xb0,0x12,
1250
0xde,0x5e,0x8d,0x2b,0x92,0xab,0xfc,0x23,0xdf,0x50,0x27,0x2b,0xd7,0xe0,0x4a,0xbf,
1251
0xac,0x7a,0x56,0xf9,0xae,0xe5,0x1f,0xa9,0xff,0xbc,0x72,0x8c,0xea,0x45,0xe5,0x38,
1252
0xd5,0x04,0xd5,0x64,0xd5,0x44,0x1b,0x76,0x04,0x45,0x2a,0xa7,0xab,0x7e,0x10,0xcf,
1253
0x56,0xcd,0x53,0x2d,0x50,0xbd,0xad,0x8a,0x53,0x25,0xa9,0x52,0x55,0xe9,0xaa,0x15,
1254
0xaa,0x2c,0xd5,0x5f,0xf5,0x06,0x2d,0x5b,0x95,0xa7,0x2a,0x54,0x11,0xfd,0x99,0xf7,
1255
0xcb,0xfa,0x31,0x7a,0xeb,0x5b,0x66,0xf6,0xf8,0xd6,0x37,0xcd,0xec,0xf1,0xad,0x6f,
1256
0x9b,0xd9,0x63,0xfd,0x1b,0x67,0x7d,0xdd,0x62,0xd5,0x56,0x55,0x89,0x2a,0x8c,0x76,
1257
0xaa,0xca,0x54,0x7b,0x70,0x4d,0xab,0x54,0x75,0xaa,0x26,0xd5,0x01,0xd5,0x61,0xd5,
1258
0x7b,0xaa,0xe3,0xaa,0xdf,0x9e,0x1f,0x4e,0xaa,0x4e,0xab,0x3e,0x56,0x7d,0xaa,0xea,
1259
0x51,0x5d,0x56,0x7d,0xa5,0xfa,0x4e,0xf5,0x93,0xca,0x28,0xc0,0x34,0xc0,0x22,0x60,
1260
0x68,0x80,0x6d,0xc0,0xb0,0x00,0x49,0x80,0x5b,0x80,0x3c,0xc0,0x37,0x40,0x15,0x10,
1261
0x1c,0x10,0x11,0x10,0x1d,0x70,0x5f,0xc0,0xc3,0x01,0x8f,0x07,0x3c,0x1d,0xf0,0x42,
1262
0xc0,0x2b,0x01,0x13,0x02,0xa6,0x04,0xcc,0x0c,0x78,0x2d,0x60,0x41,0xc0,0xa2,0x80,
1263
0x84,0x80,0x25,0x01,0xe9,0x01,0x2b,0x03,0xd6,0x06,0xfc,0xa7,0x7f,0x9f,0xfa,0xb7,
1264
0xbe,0x03,0xcd,0x0d,0x28,0x0c,0xd8,0x1c,0x50,0x12,0xb0,0x3b,0xa0,0x32,0xa0,0x26,
1265
0xa0,0x31,0xe0,0x40,0x40,0x6b,0xc0,0xb1,0x80,0x8e,0x80,0x0f,0x02,0xce,0x04,0x9c,
1266
0x0f,0xb8,0x18,0xf0,0x79,0xc0,0xd5,0x80,0x6f,0x03,0x7e,0x0c,0xa0,0x40,0x93,0xc0,
1267
0x21,0x81,0xfc,0x40,0x9b,0x40,0x71,0xa0,0x53,0xa0,0x6b,0xa0,0x2c,0xd0,0x27,0x50,
1268
0x19,0x18,0x14,0x18,0x1e,0x18,0x15,0x78,0x6f,0xe0,0x43,0x81,0x77,0xfb,0x5b,0x8a,
1269
0xbf,0xaa,0xbd,0xdb,0x67,0xe7,0xc7,0x02,0x9f,0x0a,0x7c,0x3e,0xf0,0xe5,0xc0,0xf1,
1270
0x81,0x93,0x03,0x67,0x04,0xce,0x0d,0x7c,0x23,0xf0,0xed,0xc0,0x78,0xf4,0x26,0x25,
1271
0x70,0x59,0xe0,0x8a,0xc0,0x35,0x81,0xeb,0x03,0x37,0x04,0x16,0x07,0x6e,0x0f,0xdc,
1272
0x15,0xb8,0x27,0xb0,0x3a,0xb0,0x21,0xb0,0x39,0xf0,0x70,0xe0,0x51,0x9c,0x3f,0x11,
1273
0xf8,0x7e,0xe0,0x47,0x81,0xe7,0x02,0xbb,0x03,0x3f,0x0b,0xfc,0x12,0xc7,0xd7,0x02,
1274
0xaf,0x07,0xf6,0xfd,0xe6,0xf7,0xc1,0xbf,0xef,0x7c,0xdf,0xcf,0x7e,0x63,0x4f,0x17,
1275
0x68,0xac,0x7e,0x8d,0x4c,0xd4,0x8b,0x8d,0xfa,0x74,0xe6,0x6a,0x0b,0x35,0x5f,0x2d,
1276
0x54,0xb3,0x7f,0x03,0x6f,0xab,0x16,0xab,0x47,0xa8,0x25,0xea,0x19,0x2e,0x2e,0xea,
1277
0x8d,0x46,0x52,0xf5,0x35,0x92,0xa9,0xbd,0xd4,0xbe,0x6a,0x85,0x3a,0x40,0xad,0x70,
1278
0x09,0x52,0x87,0xab,0xb5,0xea,0x18,0xf5,0xfd,0xea,0x87,0xd4,0x5b,0xe8,0x31,0xf5,
1279
0x6a,0x97,0x91,0xf4,0xa4,0xfa,0x69,0xb5,0x60,0xe8,0x0b,0xea,0x03,0x46,0x2f,0xa9,
1280
0xc7,0xa8,0xc7,0xab,0x5f,0x55,0x1f,0x37,0x9a,0xaa,0xee,0xd3,0xcd,0x54,0xcf,0x51,
1281
0xcf,0x53,0xbf,0xa1,0x7e,0x53,0xbd,0x48,0x1d,0xa7,0x4e,0x54,0xa7,0xaa,0x83,0x5c,
1282
0x32,0xd4,0x2b,0xd4,0x01,0x2e,0xab,0xd5,0xd9,0xea,0x7c,0xf5,0x46,0xf5,0x56,0x75,
1283
0xa9,0xba,0x5c,0xbd,0x4f,0x5d,0xa7,0xde,0xaf,0x3e,0xa8,0x7e,0x57,0x7d,0x5c,0xdd,
1284
0xa9,0xfe,0x50,0xfd,0x89,0xfa,0x82,0xba,0x57,0x7d,0x45,0xfd,0xb5,0xfa,0x7b,0xf5,
1285
0x0d,0xb5,0x71,0x90,0x59,0x90,0x65,0x90,0x20,0xc8,0x2e,0x68,0x78,0x90,0x73,0x90,
1286
0x34,0xc8,0x33,0xc8,0x2f,0x28,0x20,0x28,0x24,0x28,0x32,0x28,0x26,0xe8,0xfe,0xa0,
1287
0x47,0x82,0x9e,0x08,0x7a,0x26,0xe8,0xc5,0xa0,0x31,0x41,0x13,0x83,0xa6,0x06,0xcd,
1288
0x0a,0x9a,0x17,0xb4,0x30,0x68,0x71,0x50,0x62,0x50,0x6a,0x50,0x46,0xd0,0xaa,0xa0,
1289
0x3f,0xfe,0x0d,0xfc,0xba,0xa0,0xbc,0xa0,0xa2,0xa0,0x2d,0x41,0x3b,0x82,0xca,0x82,
1290
0xf6,0x06,0xd5,0x06,0x35,0x05,0xb5,0x04,0x1d,0x09,0x6a,0x0b,0x3a,0x19,0x74,0x3a,
1291
0xe8,0xe3,0xa0,0x4f,0x83,0x7a,0x82,0x2e,0x07,0x7d,0x15,0xf4,0x5d,0xd0,0x4f,0x41,
1292
0x46,0xc1,0x7f,0x64,0x44,0xfd,0xd9,0xf5,0x85,0x69,0xb0,0x45,0xf0,0xd0,0x60,0xdb,
1293
0xe0,0x61,0xc1,0x92,0x60,0xb7,0x60,0x79,0xb0,0x6f,0xb0,0x2a,0x38,0x38,0x38,0x22,
1294
0x38,0x3a,0xf8,0xbe,0xe0,0x87,0x83,0x1f,0x0f,0x7e,0x3a,0xf8,0x85,0xe0,0x57,0x82,
1295
0x27,0x04,0x4f,0x09,0x9e,0x19,0xfc,0x5a,0xf0,0x82,0xe0,0x45,0xc1,0x09,0xc1,0x4b,
1296
0x82,0xd3,0x83,0x57,0x06,0xaf,0x0d,0xce,0x0d,0x2e,0x0c,0xde,0x1c,0x5c,0x12,0xbc,
1297
0x3b,0xb8,0x32,0xb8,0x26,0xb8,0x31,0xf8,0x40,0x70,0x6b,0xf0,0xb1,0xe0,0x8e,0xe0,
1298
0x0f,0x82,0xcf,0x04,0x9f,0x0f,0xbe,0x18,0xfc,0x79,0xf0,0xd5,0xe0,0x6f,0x83,0x7f,
1299
0x0c,0xa6,0x10,0x93,0x90,0x21,0x21,0xfc,0x10,0x9b,0x10,0x71,0x88,0x53,0x88,0x6b,
1300
0x88,0x2c,0xc4,0x27,0x44,0x19,0x12,0x14,0x12,0x1e,0x12,0x15,0xf2,0x3f,0xf7,0x97,
1301
0x1c,0x7a,0xb9,0x37,0xe4,0xa1,0x90,0xc7,0x42,0x9e,0x0a,0x79,0x3e,0xe4,0xe5,0x90,
1302
0xf1,0x21,0x93,0x43,0x66,0x84,0xcc,0x0d,0x79,0x23,0xe4,0xed,0x90,0xf8,0x90,0x94,
1303
0x90,0x65,0x21,0x2b,0x42,0xd6,0x84,0xac,0x0f,0xd9,0x10,0x52,0x1c,0xb2,0x3d,0x64,
1304
0x57,0xc8,0x9e,0x90,0xea,0x90,0x86,0x90,0xbf,0xe2,0xbb,0xce,0xe6,0x90,0x23,0x21,
1305
0xed,0x21,0x1f,0x84,0xdc,0xf9,0x8a,0xea,0xfe,0xad,0xdf,0x00,0xf9,0xed,0xf1,0x79,
1306
0x6b,0xfe,0x2f,0x7f,0xfb,0xf5,0xee,0xfc,0xfd,0xd9,0x9d,0xff,0xa6,0xe2,0x8f,0xfc,
1307
0x2e,0xdc,0x2f,0xd7,0x2f,0x3f,0xff,0x8d,0xe1,0x3f,0xfe,0xf9,0x24,0xa4,0x27,0xe4,
1308
0x6a,0x48,0x5f,0x88,0x45,0xa8,0x43,0xa8,0x34,0xf4,0xf7,0xfd,0x3d,0xcd,0xaf,0xff,
1309
0x55,0xcd,0x7f,0xf2,0xa3,0x0c,0x0d,0x0b,0x8d,0x0d,0x7d,0x3c,0xf4,0xa5,0xd0,0xa9,
1310
0xa1,0xff,0xb3,0x96,0xfc,0xa7,0x7e,0x27,0xf2,0xcf,0xd7,0xe9,0xd3,0xfd,0xef,0xb2,
1311
0xad,0x4f,0xc7,0xd6,0x61,0xc7,0xb0,0x15,0x17,0xb2,0x75,0xd8,0xb8,0xbf,0x0e,0xfb,
1312
0xcd,0xc7,0x9d,0xf5,0xf4,0xe9,0x2c,0xc0,0xcf,0xf5,0xf4,0xe9,0xfe,0xe7,0x7d,0xdd,
1313
0xa7,0xbb,0xe9,0x6b,0x7d,0x7f,0x6e,0xad,0x73,0x7b,0x7f,0xfa,0x74,0x77,0x43,0xcf,
1314
0xcd,0x3a,0x7d,0x3a,0x47,0xea,0xff,0xc6,0xe8,0xee,0xe8,0xf9,0xbb,0xce,0xdf,0x75,
1315
0xfe,0x53,0x75,0xde,0x08,0x7d,0x33,0x74,0x51,0x68,0xdf,0xef,0xf8,0x6f,0x35,0x41,
1316
0xbc,0x9f,0xff,0xb7,0x9a,0xb8,0xd0,0xdf,0xae,0xf3,0xe8,0x6d,0x75,0x92,0x42,0x7d,
1317
0x51,0x2e,0x14,0xc7,0x0f,0xe3,0xfc,0xdf,0x3a,0xff,0x6f,0xe9,0x9c,0x0b,0x61,0xe7,
1318
0xc1,0x3b,0xad,0x9d,0xee,0x76,0x5e,0xea,0x6d,0xeb,0x8f,0x0c,0x1c,0xaf,0xe2,0xf2,
1319
0xd6,0x19,0xce,0xe4,0xfd,0x5b,0x2b,0x94,0x22,0x94,0xde,0x02,0x76,0x80,0x32,0x43,
1320
0xcd,0xbd,0x88,0x6b,0x41,0x13,0x68,0x01,0x47,0x40,0x1b,0x38,0x19,0xfa,0xdb,0x7b,
1321
0xa0,0x9b,0x9f,0x45,0xa1,0x3a,0x5d,0xdf,0x7f,0x50,0x4e,0x87,0x7e,0x1c,0xfa,0x69,
1322
0xe8,0x66,0xa3,0x9e,0xd0,0x02,0xe3,0x93,0x64,0x67,0xec,0x64,0x94,0x65,0xfc,0x79,
1323
0xe8,0xd5,0xd0,0x12,0xe3,0x6f,0x43,0xaf,0x87,0xce,0x32,0x5e,0xeb,0xa2,0x0b,0x35,
1324
0x0e,0x33,0x09,0x1b,0x12,0xc6,0x0f,0x13,0x86,0xd9,0x85,0x0d,0x0f,0x73,0x0e,0x73,
1325
0x0d,0xf3,0x08,0xf3,0x0a,0xf3,0x0b,0x53,0x85,0xa9,0xc3,0x42,0xc2,0xc2,0xc3,0x34,
1326
0x61,0xd1,0x61,0xf7,0x84,0xdd,0x1f,0xc6,0x5e,0xe3,0x87,0xc2,0x1e,0x0d,0x7b,0x32,
1327
0xec,0x99,0xb0,0xb1,0x2e,0x4b,0x8d,0x76,0x19,0xed,0x37,0x7a,0x21,0xec,0xa8,0xd1,
1328
0x4b,0x61,0xff,0xde,0x4e,0xfe,0xce,0x6f,0x5d,0xfa,0x7e,0x51,0xf7,0x66,0x2f,0x7e,
1329
0xf9,0xff,0xa3,0xf4,0xff,0x3d,0xea,0xce,0xff,0x3b,0x6a,0x24,0xf7,0x5f,0xa3,0x1c,
1330
0x47,0x7e,0x30,0xa8,0x9c,0x57,0xc5,0xfb,0x72,0x50,0xf6,0xa0,0x3d,0x83,0xee,0xdc,
1331
0x02,0x5b,0x9f,0xf7,0xb3,0xba,0xec,0x7f,0x9d,0x9a,0x86,0x7a,0xbb,0x78,0x47,0x79,
1332
0xab,0x06,0xb5,0x3b,0xe7,0x0e,0xfa,0x3d,0x5e,0x1e,0x17,0xf6,0x6a,0xd8,0xf4,0xb0,
1333
0x39,0x61,0xaf,0x87,0xbd,0x15,0x16,0x17,0x96,0x1c,0xb6,0x34,0x6c,0x79,0x58,0x56,
1334
0x58,0x4e,0x58,0x41,0xd8,0xa6,0xb0,0x6d,0x61,0x3b,0xc3,0x2a,0xc2,0xaa,0xc2,0xea,
1335
0xc3,0xde,0x09,0x3b,0x14,0xf6,0x5e,0x58,0x7b,0xd8,0xa9,0xb0,0x7f,0x86,0x9d,0x0d,
1336
0xeb,0x0a,0xbb,0x14,0xf6,0x45,0xd8,0x37,0x61,0x3f,0x84,0xf5,0x85,0xf1,0xc2,0xcd,
1337
0xc3,0xff,0xcc,0xfa,0x97,0x7d,0xc7,0x7c,0x43,0x69,0xaa,0xea,0xd3,0x69,0x54,0x7c,
1338
0x15,0xa9,0x9c,0x54,0xd1,0xdc,0xbb,0x5d,0xf6,0x7d,0xae,0x50,0xe5,0xa6,0xf2,0x54,
1339
0x39,0xa8,0x7c,0x54,0x96,0x2a,0x5b,0x15,0xfb,0xe6,0x99,0xa7,0x1a,0xac,0x1a,0xae,
1340
0x1a,0xa9,0xf2,0x50,0x59,0x85,0xa7,0x79,0x0d,0x0d,0x17,0x85,0xf7,0xe9,0xd8,0xfa,
1341
0x7d,0xba,0x70,0xfd,0xfb,0x5c,0x84,0x77,0xaa,0xdf,0xa7,0xeb,0xaf,0x8f,0xf5,0x21,
1342
0xf0,0xf8,0xd9,0x9b,0xc1,0x1b,0x03,0x6f,0xcb,0xf5,0xf5,0xfb,0x74,0x2a,0xa0,0xaf,
1343
0xdf,0xa7,0xeb,0xaf,0xcf,0x9e,0xbf,0xb5,0x7e,0x1a,0xfb,0x8d,0xed,0x2f,0xf4,0xeb,
1344
0xed,0xc7,0xdc,0xf1,0x2f,0xf4,0xeb,0xed,0xef,0xd3,0x0d,0x05,0xfd,0xfd,0x67,0xdf,
1345
0x57,0xf7,0xf7,0x9f,0xd5,0xff,0x5b,0xfd,0xbf,0x69,0xfd,0x2f,0xfd,0xf7,0xef,0xd5,
1346
0xb7,0x0b,0x17,0x87,0x8f,0x08,0x97,0x84,0xbb,0x84,0x4b,0xc3,0x65,0xe1,0x5e,0xe1,
1347
0xbe,0xe1,0x8a,0x5b,0xae,0xe8,0x1f,0xf9,0x3b,0xaf,0x80,0x70,0x13,0x3c,0xa1,0x4b,
1348
0x25,0xe1,0xe1,0x7f,0x6c,0x7f,0xa3,0x09,0x4f,0x95,0x44,0x87,0x2f,0x0a,0xbd,0x27,
1349
0xfc,0x81,0x3f,0x34,0xb6,0x1e,0x0e,0x7f,0x34,0xfc,0x89,0xf0,0xbb,0xb3,0x3f,0x7b,
1350
0x2a,0xfc,0xee,0xbc,0x27,0xf9,0x35,0x79,0x36,0xfc,0xe5,0xf0,0xc9,0xe2,0x5f,0x3f,
1351
0x3f,0x44,0x38,0x31,0x7c,0x4a,0xf8,0x8c,0x70,0x77,0xc1,0x9c,0xf0,0xf9,0xe1,0xce,
1352
0x76,0x0b,0xc3,0x17,0x85,0xc7,0x87,0x57,0xbb,0x27,0x87,0xa7,0x85,0x67,0x84,0xaf,
1353
0x0c,0x5f,0x13,0x9e,0x13,0x9e,0x23,0xcc,0x0f,0x2f,0x0a,0xdf,0x1c,0xbe,0x3d,0x7c,
1354
0x67,0x78,0x79,0xb8,0xb5,0x80,0xec,0xf6,0x86,0x17,0x38,0x58,0xda,0x6d,0x74,0xa8,
1355
0x09,0x5f,0x28,0x6a,0x08,0x7f,0x27,0xfc,0x60,0xf8,0x91,0xf0,0x63,0xe1,0x2f,0x38,
1356
0x28,0x85,0x27,0xc2,0x4f,0x85,0x7f,0x18,0xfe,0x71,0x78,0x7f,0xfb,0xe7,0xc3,0x3f,
1357
0x0f,0xff,0x36,0x9c,0x22,0x86,0x44,0xd8,0x44,0x38,0x45,0xc8,0x22,0x94,0x11,0x3f,
1358
0xd7,0x1f,0x1e,0xa1,0x8d,0xf8,0xbd,0xef,0x2f,0xfe,0xea,0xf7,0x1f,0x7f,0xe4,0x73,
1359
0xe7,0xf7,0x1f,0x37,0xf5,0xc7,0x46,0xdc,0x1f,0xf1,0x70,0xc4,0x63,0x11,0x4f,0x45,
1360
0xf8,0xc8,0x9e,0x8b,0x18,0x1d,0x31,0x26,0x62,0x42,0x84,0x42,0x36,0x39,0x62,0x7a,
1361
0xc4,0xec,0x88,0x40,0xd9,0xfc,0x88,0x85,0x11,0x8b,0x22,0xe2,0x23,0x52,0x22,0x96,
1362
0x46,0x64,0x84,0x67,0x46,0xac,0x8e,0x58,0x17,0x91,0x1b,0xb1,0x21,0x42,0x28,0xdf,
1363
0x14,0x31,0x4a,0xb0,0x2d,0xa2,0x34,0xa2,0x2c,0xa2,0x32,0xe2,0x54,0x78,0x75,0x44,
1364
0x7d,0x84,0xbb,0x9c,0xfd,0x2d,0x1f,0x4f,0xf9,0xfe,0x88,0x96,0x88,0x31,0xd2,0xd6,
1365
0x88,0x28,0xd9,0xd1,0x88,0xf6,0x88,0xce,0x88,0xd3,0x9c,0x9c,0x89,0x38,0x1f,0xd1,
1366
0x1d,0x71,0x29,0xe2,0x4a,0xc4,0xd7,0x11,0xdf,0x45,0xfc,0x18,0xa1,0x8b,0xe0,0x45,
1367
0x9a,0x45,0x5a,0x44,0xf2,0x23,0x45,0x91,0xf6,0x91,0xc3,0x23,0x25,0x91,0xae,0x10,
1368
0xa5,0xdc,0x23,0xd2,0x2b,0xd2,0x2f,0x52,0x15,0xf9,0x80,0x2c,0x28,0x32,0x2c,0x52,
1369
0x13,0xb9,0xcd,0x23,0x26,0xf2,0xbe,0xc8,0x87,0x22,0x1f,0x8d,0x7c,0x32,0xf2,0x99,
1370
0xc8,0x17,0x22,0x5f,0x8e,0x1c,0x17,0xf9,0x6a,0xe4,0xb4,0xc8,0x59,0x91,0x73,0xc2,
1371
0x5f,0x8b,0x7c,0x23,0xf2,0xad,0xc8,0xb8,0xc8,0xe4,0xc8,0xb4,0xc8,0x8c,0xc8,0x95,
1372
0x91,0x6b,0x22,0x73,0x22,0xf3,0x23,0x8b,0x22,0x37,0x43,0xb6,0x47,0xee,0x8a,0xac,
1373
0x88,0x7c,0x5c,0xba,0x2f,0xb2,0x36,0xb2,0x29,0xf2,0x40,0xe4,0xe1,0xc8,0xbd,0x82,
1374
0xf7,0x22,0x8f,0x47,0x36,0x08,0x4e,0x46,0x7e,0x10,0xf9,0x51,0xe4,0xb9,0xc8,0xae,
1375
0xc8,0x4b,0x91,0x57,0x22,0xbf,0x8a,0xfc,0x36,0xf2,0x7a,0x64,0x5f,0xa4,0xb1,0xc6,
1376
0x54,0x33,0x44,0x63,0xad,0x11,0x6a,0xec,0x34,0xc3,0x35,0x12,0x8d,0xab,0xc6,0x43,
1377
0x13,0xe7,0xe6,0xa5,0xe9,0x16,0xf8,0x6b,0xfc,0x35,0x81,0x9a,0x10,0x48,0x84,0x26,
1378
0x4a,0x73,0xaf,0xe6,0x21,0xcd,0xa3,0x9a,0x27,0x35,0xcf,0x68,0x5e,0xd0,0xbc,0xac,
1379
0x19,0xa7,0x99,0xa4,0x99,0xaa,0x99,0xa9,0x19,0x2d,0x9b,0xab,0x79,0x43,0xf3,0x96,
1380
0x86,0xd1,0x8c,0x95,0x33,0x9a,0x44,0xcd,0x04,0xd9,0x12,0xcd,0x32,0xcd,0x72,0xcd,
1381
0x6a,0xcd,0x64,0x99,0xad,0xdb,0x3a,0x4d,0xae,0x66,0x83,0x66,0x93,0x66,0xab,0x66,
1382
0x87,0x66,0xb7,0xa6,0x52,0x53,0xad,0xa9,0xd7,0xec,0xd7,0xb4,0x68,0x5a,0x35,0xc7,
1383
0x34,0x27,0x34,0xa7,0x34,0x1f,0x6a,0x3e,0xd6,0x9c,0xd7,0x74,0x6b,0x2e,0x69,0xae,
1384
0x68,0xa6,0xcb,0xbe,0xd2,0x7c,0xab,0xf9,0x51,0xa3,0xd3,0xf0,0xb4,0x66,0xda,0x79,
1385
0x32,0x0b,0x2d,0x5f,0x2b,0xd2,0xda,0x6b,0x87,0x6b,0x25,0x5a,0x57,0xad,0x87,0x96,
1386
0xfd,0x5d,0x24,0x2f,0xad,0x9f,0x56,0xa5,0x0d,0xd2,0x86,0x6b,0xb5,0xda,0x58,0xed,
1387
0xfd,0xda,0x05,0xb2,0x87,0xb5,0x8f,0x6b,0x9f,0xd2,0x3e,0xa7,0xf5,0xf1,0x1c,0xad,
1388
0x1d,0xa3,0x9d,0xa0,0x9d,0xac,0x9d,0xae,0x9d,0xa3,0x9d,0xaf,0x5d,0xa8,0x5d,0xa4,
1389
0x4d,0xd0,0xa6,0x68,0x97,0x6a,0x33,0xb5,0x59,0xd2,0x55,0xda,0xb5,0xda,0x5c,0x6d,
1390
0xa1,0x76,0xb3,0x76,0xbb,0x76,0x97,0xb6,0x42,0xbb,0x4f,0x5b,0xab,0x6d,0xd4,0xbe,
1391
0x2d,0x3b,0xe7,0xde,0xac,0x3d,0xa4,0x7d,0x57,0xdb,0xa6,0x3d,0xa9,0xfd,0x40,0xfb,
1392
0x91,0xf6,0xac,0x36,0x43,0x7e,0x41,0xdb,0xa3,0xbd,0xac,0xbd,0xaa,0xbd,0xa6,0xbd,
1393
0xae,0xd5,0x69,0x79,0x51,0x2b,0xe5,0x66,0x51,0x16,0x51,0xfc,0x28,0x51,0x94,0x7d,
1394
0xd4,0xf0,0x28,0x49,0x94,0x5b,0x94,0x2c,0xca,0x27,0x4a,0x11,0xa5,0x8e,0xca,0x91,
1395
0x87,0x46,0x45,0x46,0xc5,0x44,0xdd,0x17,0xf5,0x50,0xd4,0x63,0x51,0x4f,0x45,0x3d,
1396
0x17,0x35,0x3a,0x6a,0x4c,0xd4,0x04,0xc8,0xe4,0xa8,0xe9,0x51,0x45,0xf2,0xd9,0x51,
1397
0xf3,0xa2,0x16,0x44,0xbd,0x1d,0x15,0x17,0x95,0x1c,0x95,0x16,0x35,0x5a,0x9a,0x19,
1398
0xb5,0x3a,0x6a,0x5d,0x54,0x5e,0x54,0x51,0xd4,0x96,0xa8,0x92,0xa8,0x1a,0xf9,0xae,
1399
0xa8,0x3d,0x51,0xd5,0x51,0x0d,0x51,0xcd,0x51,0x87,0x20,0x0d,0xf2,0x40,0xcf,0x77,
1400
0xa3,0xda,0xa2,0x3a,0xa2,0xde,0x8f,0xfa,0x28,0xaa,0xd5,0xed,0xa0,0xfc,0x6c,0xd4,
1401
0x85,0xa8,0x62,0x59,0x6f,0xd4,0x95,0xa8,0x1f,0x3c,0xbe,0x8e,0xfa,0x2e,0xaa,0x4c,
1402
0xf6,0x63,0x94,0x2e,0x8a,0x17,0x6d,0x0e,0xb1,0x8a,0x16,0x44,0xdb,0x46,0x0f,0x8b,
1403
0x76,0x8a,0x76,0x89,0x76,0x8f,0xf6,0x8a,0xf6,0x8b,0x56,0x45,0x07,0x45,0x87,0x45,
1404
0x6b,0xa2,0x63,0xa3,0xef,0x8f,0x7e,0x38,0xfa,0xb1,0xe8,0x7f,0x44,0x3f,0x1b,0xfd,
1405
0x62,0xf4,0x98,0xe8,0x89,0xd1,0x53,0xa2,0x67,0x46,0xcf,0x8d,0x7e,0x23,0xfa,0xad,
1406
0xe8,0x56,0x19,0x13,0x9d,0x14,0x9d,0x16,0x9d,0x11,0xbd,0x2a,0x7a,0x6d,0x74,0x6e,
1407
0xf4,0x86,0xe8,0x4d,0xd1,0x5b,0xa3,0x77,0x44,0xef,0x8e,0xde,0x13,0x5d,0x1d,0xdd,
1408
0x10,0xdd,0x1c,0x1d,0xa8,0x39,0x1c,0xfd,0x5e,0xf4,0xf1,0xe8,0x93,0xd1,0x1f,0x44,
1409
0x7f,0x14,0x7d,0x36,0xfa,0x42,0x74,0x4f,0xf4,0xe7,0xd1,0x5f,0x46,0x7f,0x13,0x5d,
1410
0x28,0xfd,0x21,0xfa,0x46,0xb4,0x51,0x8c,0x49,0xcc,0xe0,0x18,0xab,0x98,0x4e,0x99,
1411
0x20,0xc6,0x36,0x46,0x1c,0xe3,0x18,0x33,0x32,0xc6,0x3d,0xc6,0x2b,0xc6,0x3f,0x26,
1412
0x20,0x26,0x38,0x26,0x3c,0x46,0x1b,0x73,0x4f,0xcc,0x03,0x31,0xa3,0x62,0x9e,0x88,
1413
0x79,0x3a,0xe6,0x85,0x98,0x57,0x62,0xc6,0xc7,0x54,0xba,0xbd,0x1a,0x33,0x2d,0x66,
1414
0x56,0xcc,0x6b,0x31,0x6f,0xc4,0xbc,0x15,0x73,0x5e,0xce,0xc4,0x24,0xc6,0x2c,0x89,
1415
0x59,0x16,0xb3,0x3c,0x66,0x75,0xcc,0xba,0x98,0xdc,0x98,0x51,0xa2,0x0d,0x31,0xc5,
1416
0x31,0xdb,0x62,0x4a,0x63,0xca,0x62,0x2a,0x63,0xaa,0x63,0x1a,0x62,0x9a,0x63,0x0e,
1417
0xc5,0xbc,0x1b,0xf3,0xad,0xfc,0xba,0x7c,0x8a,0xa8,0x2d,0xe6,0x64,0xcc,0x07,0x31,
1418
0x1f,0xc5,0x9c,0x8d,0xb9,0x10,0xd3,0x1b,0x73,0x25,0xe6,0xab,0x98,0x6f,0x63,0xae,
1419
0xc7,0xe8,0x62,0xfa,0xe4,0xbc,0x58,0xf3,0x58,0xab,0x58,0x41,0xac,0x6d,0xac,0x38,
1420
0xd6,0x29,0xd6,0x25,0xd6,0x3d,0xd6,0x33,0xd6,0x37,0x56,0x19,0xab,0x8e,0x0d,0x8d,
1421
0xd5,0xc4,0xc6,0xc4,0xde,0x17,0xfb,0x50,0xec,0x63,0xb1,0xff,0x88,0x7d,0x36,0xf6,
1422
0xc5,0xd8,0x57,0x62,0x27,0xc4,0x4e,0x89,0x9d,0x11,0x3b,0x27,0x76,0x7e,0xec,0x9b,
1423
0xb1,0x8b,0x63,0xed,0x3c,0xed,0x3c,0x13,0x63,0x97,0xc4,0xa6,0xc7,0xae,0x88,0xcd,
1424
0x8a,0xcd,0x8e,0xcd,0x8b,0x2d,0x8c,0x2d,0x8e,0xdd,0x16,0x3b,0xcc,0x73,0x67,0x6c,
1425
0x79,0xec,0xde,0xd8,0x9a,0xd8,0x86,0xd8,0x77,0x62,0x0f,0xc5,0xbe,0x1b,0x7b,0x3c,
1426
0xb6,0x33,0xd6,0xd3,0xe6,0xc3,0xd8,0x50,0x9b,0x8f,0x63,0xcf,0xc7,0x76,0xc7,0x5e,
1427
0x8a,0x1d,0x65,0x73,0x25,0xf6,0x6e,0xac,0x72,0x6f,0x7b,0x1f,0xca,0xfe,0x77,0x9a,
1428
0x14,0x09,0x35,0xe9,0x74,0x5f,0xf4,0xbf,0x64,0xe5,0x42,0x8d,0xe1,0xe8,0xe2,0xad,
1429
0x73,0x1b,0x8f,0x7e,0x96,0xab,0xd1,0x2d,0x46,0xf8,0xa8,0x8e,0xfb,0xcf,0x52,0xcc,
1430
0x40,0xa9,0x1f,0xd9,0xff,0x21,0x51,0xf0,0x83,0x4e,0x77,0xa3,0xe5,0xeb,0x2b,0x8d,
1431
0x38,0xba,0x71,0xf9,0xeb,0xc6,0x30,0x23,0x6a,0xd3,0xf1,0xfa,0xae,0x70,0xf9,0x97,
1432
0xbf,0xfe,0xfc,0x50,0xc4,0x29,0x87,0x43,0xba,0xe6,0x43,0x11,0x71,0xac,0x6e,0x33,
1433
0xdd,0x27,0x37,0x90,0xaf,0xfb,0xfa,0x93,0x88,0x57,0x82,0xda,0xd8,0xb6,0xb8,0xe3,
1434
0x2f,0xd8,0xe3,0x59,0x6d,0x3a,0x6b,0xe2,0x8e,0x59,0xe3,0x6e,0x7c,0xa9,0x6b,0x63,
1435
0x57,0x71,0xba,0xc5,0x3f,0x41,0x93,0xdf,0xe2,0xc4,0x97,0x75,0x4d,0xba,0x11,0xac,
1436
0x5d,0x7c,0xae,0x5f,0x9f,0xe8,0xcc,0xb8,0x38,0x62,0x71,0x04,0x57,0x81,0x0b,0xd9,
1437
0x83,0xc5,0x06,0xeb,0x22,0x74,0xb7,0xf4,0x41,0x62,0xf0,0x00,0xfb,0x5c,0x90,0xdc,
1438
0xfa,0x92,0x14,0x9d,0x83,0x11,0x8b,0x89,0x6d,0x56,0xf7,0x09,0xfb,0x9f,0x81,0xd0,
1439
0x5b,0x9e,0xbe,0xac,0x6e,0xe0,0x3f,0x69,0x69,0xd8,0xfc,0xc5,0x3a,0xbe,0x8e,0x7f,
1440
0x95,0x3b,0x94,0xe8,0xfd,0xc3,0xe7,0x5a,0x3d,0x64,0x28,0xd4,0x66,0x88,0x59,0x03,
1441
0x0a,0xb8,0x36,0x34,0x37,0xdf,0xc5,0x1a,0xbc,0x6d,0xf8,0xf0,0xbf,0x34,0x24,0xbe,
1442
0xd7,0x7d,0xda,0xff,0x22,0x5b,0xaf,0x51,0xdf,0xb2,0xfe,0xff,0x8c,0xe3,0x32,0xd0,
1443
0xad,0x4d,0x37,0x3a,0x73,0xcd,0xd3,0x62,0xc3,0xa7,0xdf,0x38,0x3e,0xf7,0x2d,0xc1,
1444
0xcd,0x0f,0x67,0xad,0xa1,0x97,0x8b,0x6f,0x7d,0x23,0xce,0x1f,0x18,0x0f,0xfa,0x58,
1445
0xa2,0xe3,0x69,0x9a,0x0c,0x7d,0xd5,0xf1,0x19,0x2e,0xa7,0x51,0xd7,0x6c,0xe8,0x83,
1446
0xbe,0xb6,0x46,0xf7,0xb5,0xfe,0x7f,0x48,0xd0,0xf7,0xec,0xf1,0xa2,0x45,0x8b,0xe8,
1447
0xa6,0x66,0x7d,0x5d,0x3e,0xfb,0xbf,0xb6,0xbf,0xef,0xd7,0x60,0x18,0x77,0x5f,0x70,
1448
0x8d,0xec,0x43,0x19,0xcd,0x2d,0xe3,0xd0,0x2c,0x85,0x8b,0x32,0xd9,0x93,0x12,0xa3,
1449
0x9b,0x23,0x54,0x73,0xd3,0x62,0xae,0xef,0xdc,0xdf,0x80,0xf3,0xcf,0x0e,0x5c,0x03,
1450
0x36,0x6c,0xd4,0xbb,0x5c,0x73,0xb3,0x16,0xdd,0xec,0x18,0xd7,0x6b,0xe4,0x6b,0xb8,
1451
0xe1,0xd3,0xb8,0xc2,0x50,0x9c,0xeb,0x04,0x33,0x70,0x2f,0x04,0x7d,0xaf,0x57,0xae,
1452
0x4b,0xd0,0x7b,0x77,0xc0,0x2e,0x5c,0x8f,0x9f,0xb8,0xc4,0xcc,0x2f,0xbf,0x80,0x2b,
1453
0x35,0x29,0x18,0x19,0x46,0xb7,0x7e,0xc7,0xc0,0x35,0xf4,0x7d,0xbf,0x37,0x35,0x7d,
1454
0x7a,0x93,0x59,0xb3,0x78,0x4e,0xd4,0x87,0xf3,0x46,0xb7,0xde,0x6f,0x66,0x3f,0x19,
1455
0xec,0x83,0x7f,0x7f,0xf6,0xdd,0x84,0xde,0x73,0x61,0x3c,0xfa,0xa9,0x6f,0xe0,0x48,
1456
0x7f,0x95,0xfb,0xad,0xe1,0xae,0x11,0xeb,0x77,0xb6,0x09,0x4d,0xff,0xcd,0xf6,0x89,
1457
0x19,0x71,0xa3,0x95,0x37,0x70,0xeb,0xd2,0xcd,0xab,0xcb,0xbe,0x61,0xd6,0xdf,0x8d,
1458
0x86,0x66,0xf0,0x59,0x5c,0x0f,0x07,0xf4,0xff,0x47,0x2a,0x33,0x1d,0x4f,0x7f,0x9f,
1459
0x5e,0xfe,0xb1,0x20,0x24,0xee,0x6c,0x9b,0x04,0xe5,0x1f,0xe2,0xfc,0xa4,0x2b,0xfe,
1460
0xae,0xd1,0xc8,0x54,0xaf,0xf9,0x0b,0xb6,0x2e,0x6b,0xf3,0xcd,0x7e,0x68,0xf4,0xc3,
1461
0x09,0x1f,0xd4,0xe0,0x41,0x0d,0x0d,0xcc,0x26,0x3c,0xfd,0xc5,0xe6,0xee,0x2f,0x3e,
1462
0x6b,0xc9,0xcf,0xe6,0x1b,0xc3,0xdf,0xf0,0x9b,0x31,0x8b,0xbf,0x9a,0xc9,0xea,0xf9,
1463
0x61,0x31,0x0d,0x98,0x46,0x06,0x57,0xff,0x24,0xd1,0xeb,0x1b,0xf8,0x70,0x7d,0x34,
1464
0xbb,0xc5,0x5f,0x86,0xf6,0x78,0xac,0xee,0x1b,0xfa,0x5b,0xeb,0xe6,0xd8,0x46,0x23,
1465
0x7d,0xb8,0x17,0xb8,0x6e,0x2f,0xde,0xc3,0xda,0xdd,0xc8,0x96,0x59,0xfc,0x63,0xbf,
1466
0x97,0xf8,0x3a,0x1e,0xaf,0xdf,0x26,0x23,0x9d,0xbe,0x81,0x43,0x3f,0xd7,0x60,0xb8,
1467
0xcf,0x74,0x3c,0x86,0x4f,0xfd,0xd7,0xfa,0xd6,0xfb,0xd4,0xec,0x96,0x5c,0x0d,0x0d,
1468
0xdc,0xdf,0xcd,0x03,0x05,0x16,0x73,0xba,0x34,0x1a,0xac,0x04,0x75,0x3f,0xc2,0x94,
1469
0xb3,0xba,0x81,0xb1,0xa6,0xbf,0x15,0x74,0x29,0x86,0x92,0xcc,0xcd,0xef,0xaa,0x24,
1470
0xb4,0xb8,0xbf,0xa7,0x8c,0x7e,0xc4,0xb3,0xe5,0xfb,0xe7,0xdc,0x5b,0xcc,0xa3,0x2f,
1471
0x66,0x12,0x76,0x30,0x5f,0x1a,0x0d,0x5c,0x47,0xc3,0x3d,0xc2,0x47,0xe7,0x1d,0xcf,
1472
0x0e,0xcc,0xde,0x9a,0x9b,0x37,0x9e,0xe6,0x67,0xf7,0x04,0x9f,0x0c,0x63,0xc4,0x08,
1473
0xc9,0xef,0xfb,0xf4,0xbd,0x93,0x70,0x05,0x99,0x5b,0xae,0x97,0x04,0x2d,0x34,0xdf,
1474
0x3a,0x4a,0x07,0xbc,0x90,0x40,0x3f,0x9f,0x89,0x52,0xf4,0xa3,0x56,0x3f,0xaa,0x17,
1475
0xcf,0xd4,0x2d,0x2e,0x30,0x5c,0x79,0x78,0xbb,0xf9,0xd6,0xff,0xd8,0xa3,0xff,0x48,
1476
0xfa,0x53,0xfa,0x9b,0x96,0xfb,0xbf,0x6d,0xb0,0x69,0x71,0xff,0x0a,0x5d,0x9f,0xdd,
1477
0xa4,0x2f,0xf3,0x35,0xec,0x90,0x70,0xd7,0x8d,0x7f,0x73,0x04,0xb1,0xd7,0x75,0xe0,
1478
0x5e,0xd7,0xe8,0xf8,0x3c,0xc3,0x9d,0xc6,0xe5,0x68,0x74,0x92,0xc5,0x57,0x31,0x88,
1479
0x33,0xd9,0x1b,0xf1,0x3b,0xdd,0x2d,0xf3,0xef,0xcd,0x99,0xc4,0x30,0x87,0xd3,0x18,
1480
0x1a,0x4b,0xe3,0x68,0x3c,0x4d,0xa0,0x89,0x34,0x89,0x5e,0xa5,0xc9,0x34,0x85,0xa6,
1481
0xd2,0x34,0x9a,0x4e,0x33,0x68,0x26,0xcd,0xa2,0xd9,0x34,0x87,0xe6,0xd2,0x6b,0x34,
1482
0x8f,0xe6,0xd3,0xeb,0xf4,0x06,0x2d,0xa0,0x85,0xe4,0x4c,0xce,0xef,0x2d,0x01,0x89,
1483
0xc4,0xfe,0x2e,0x9a,0xf3,0x7b,0x71,0x74,0xac,0x0e,0xd1,0x16,0xec,0x25,0x15,0xe7,
1484
0xe3,0x12,0x03,0xb8,0x10,0xa7,0xb8,0x74,0xf3,0x06,0x6a,0x2e,0xa4,0xe6,0x22,0x6a,
1485
0xde,0x48,0xcd,0x9b,0xa8,0xb9,0x98,0x9a,0x37,0x53,0xf3,0x16,0x6a,0xde,0x4a,0xcd,
1486
0xdb,0xa8,0x79,0x3b,0x35,0x97,0x50,0xf3,0x0e,0x6a,0x2e,0xa5,0xe6,0x9d,0xd4,0xbc,
1487
0x8b,0x9a,0x77,0x53,0x73,0x19,0x35,0x97,0x53,0x73,0x05,0x35,0xef,0xa1,0xe6,0x4a,
1488
0x6a,0xde,0x4b,0xcd,0x55,0xd4,0x5c,0x4d,0xcd,0x35,0xd4,0x5c,0x4b,0xcd,0x75,0xd4,
1489
0x5c,0x4f,0xcd,0x0d,0x74,0x20,0x8e,0x0e,0x24,0xd0,0x81,0x24,0x3a,0x90,0x42,0x07,
1490
0x52,0xe9,0xc0,0x52,0x3a,0x90,0x4e,0x07,0x32,0xe9,0xc0,0x0a,0x3a,0xb0,0x8a,0x0e,
1491
0x64,0xd1,0x81,0xb5,0x74,0x20,0x9b,0x0e,0xac,0xa7,0x03,0x79,0x74,0xa0,0x80,0x0e,
1492
0x14,0xd2,0x81,0x8d,0x74,0xa0,0x98,0x0e,0x6c,0xa1,0x03,0xdb,0xe8,0x40,0x09,0x1d,
1493
0x28,0xa5,0x03,0xbb,0x68,0xf2,0x7b,0x29,0x34,0x79,0x0a,0x1d,0xa8,0xa4,0x03,0xfb,
1494
0xe8,0x40,0x0d,0x1d,0xa8,0xa3,0x03,0x0d,0x34,0xed,0x9d,0x7d,0xd4,0x12,0x4f,0x2d,
1495
0x89,0xd4,0x92,0x4c,0x2d,0x4b,0xe8,0x48,0xdd,0x0c,0x6a,0x59,0x4a,0x2d,0xe9,0xd4,
1496
0x92,0x49,0x2d,0x2b,0xa8,0x65,0x15,0xb5,0x64,0x51,0xcb,0x5a,0x6a,0xc9,0xa6,0x96,
1497
0xf5,0xd4,0x92,0x47,0x2d,0x05,0xd4,0x52,0x48,0x2d,0x1b,0xa9,0xa5,0x98,0x5a,0xb6,
1498
0x50,0xcb,0x36,0x6a,0x29,0xa1,0x96,0x52,0x6a,0xd9,0x45,0x2d,0x65,0xd4,0x52,0x41,
1499
0x2d,0x95,0xd4,0xb2,0x8f,0x9a,0x1b,0xa9,0xa5,0x86,0x5a,0xea,0xa8,0xa5,0x81,0x5a,
1500
0x57,0xd1,0xc1,0x04,0x3a,0x98,0x44,0xad,0xab,0xe9,0xe0,0x12,0x6a,0x5d,0x43,0xad,
1501
0x6b,0xe9,0xe0,0x32,0x3a,0x94,0x47,0xad,0xd9,0xd4,0xba,0x9e,0x0e,0xae,0xa4,0xd6,
1502
0x0d,0xd4,0xba,0x91,0x5a,0xb7,0x51,0xeb,0x56,0x3a,0x88,0xcc,0x5d,0xd4,0x5a,0x4e,
1503
0xad,0x95,0x74,0xb0,0x90,0x0e,0x6e,0xa4,0x83,0xc5,0x74,0x84,0xa1,0x83,0x5b,0xe9,
1504
0x08,0xda,0x29,0xa5,0x23,0x4b,0xe8,0xe0,0x6e,0x3a,0x92,0x46,0x47,0x96,0xd2,0xc1,
1505
0x3d,0x74,0x70,0x2f,0x1d,0x59,0x49,0x07,0xab,0xe9,0x60,0x3d,0x8d,0x87,0xbe,0x69,
1506
0x53,0x68,0xc6,0x14,0x3a,0x94,0x41,0x87,0x96,0xd3,0xa1,0x95,0x74,0x68,0x35,0x1d,
1507
0x5a,0x43,0x87,0xd6,0xd1,0xa1,0x1c,0x3a,0x94,0x4b,0x87,0x0a,0xe8,0x50,0x21,0x1d,
1508
0xda,0x48,0x87,0x8a,0xe9,0xd0,0x16,0x3a,0xb4,0x8d,0x0e,0x95,0xd0,0xa1,0x52,0x3a,
1509
0xb4,0x8b,0xc6,0x2f,0xa4,0x43,0x50,0x99,0x45,0x07,0x1b,0xe9,0x50,0x35,0x1d,0xaa,
1510
0xa5,0x43,0xf5,0x74,0xa8,0x91,0x0e,0xc7,0xd1,0xe1,0x04,0x3a,0x9c,0x44,0x87,0x53,
1511
0xe8,0x70,0x2a,0x1d,0x5e,0x4a,0x87,0xd3,0xe9,0x70,0x26,0x1d,0x5e,0x41,0x87,0x57,
1512
0xd1,0xe1,0x2c,0x3a,0xbc,0x96,0x0e,0x67,0xd3,0xe1,0xf5,0x74,0x38,0x8f,0x0e,0x17,
1513
0xd0,0xc1,0x7c,0x3a,0xbc,0x91,0x0e,0x17,0xd3,0xe1,0x2d,0x74,0x78,0x1b,0x1d,0x2e,
1514
0xa1,0xc3,0xa5,0x74,0x78,0x17,0x1d,0x2e,0xa3,0xc3,0x15,0x74,0xbe,0x0c,0x27,0xea,
1515
0xe8,0x60,0x0e,0x52,0x9b,0xa9,0x35,0x9e,0x0e,0x32,0x74,0x24,0x95,0x8e,0x2c,0xa3,
1516
0xd6,0x14,0x6a,0x4d,0xa5,0xd6,0xa5,0xd4,0x9a,0x4e,0xad,0x99,0xd4,0x8a,0xb3,0xd5,
1517
0xd4,0x5a,0x4b,0x47,0xe2,0x30,0xf0,0x92,0x41,0x0a,0x48,0x03,0x5b,0x41,0x02,0x58,
1518
0x4a,0x47,0xb2,0xe8,0x3d,0x86,0x30,0x38,0xdf,0x5b,0x45,0xef,0x2d,0x61,0x07,0x69,
1519
0x35,0x1d,0x2d,0xa3,0xa3,0x15,0x74,0x04,0x89,0x7d,0xe4,0x8c,0xe3,0x30,0x6a,0xab,
1520
0x60,0x07,0x33,0x7b,0x76,0x07,0xe1,0x8a,0x1f,0x2b,0xa5,0x63,0x3b,0xe9,0xd8,0x2e,
1521
0x6a,0x5b,0x46,0x6d,0xe9,0xd4,0x96,0x41,0xc7,0xca,0xe8,0x58,0x39,0x1d,0xab,0xa0,
1522
0x63,0x7b,0xe8,0x58,0x25,0x1d,0xdb,0x4b,0xc7,0x50,0xac,0x8a,0x8e,0xd5,0xd0,0xb1,
1523
0x5a,0x3a,0x56,0x4f,0xc7,0x1a,0xe8,0x58,0x23,0xb5,0x31,0xd4,0x16,0x47,0x6d,0x09,
1524
0xd4,0x96,0x48,0x6d,0x49,0xd4,0x96,0x4c,0x6d,0x29,0xd4,0xb6,0x84,0xda,0x52,0xa9,
1525
0x2d,0x8d,0xda,0x96,0x52,0xdb,0x5a,0x6a,0xcb,0xa6,0xb6,0xf5,0xd4,0x96,0x47,0x6d,
1526
0x05,0xd4,0x56,0x48,0x6d,0x1b,0xa9,0xad,0x98,0xda,0xb6,0x50,0xdb,0x36,0x6a,0x2b,
1527
0xa1,0xb6,0x52,0x6a,0x83,0xde,0x2a,0x6a,0xab,0xa5,0xa3,0xf8,0xa9,0xa3,0xa3,0xf5,
1528
0xd4,0xbe,0x9c,0xda,0x57,0x50,0xfb,0x4a,0x6a,0x5f,0x45,0xed,0xab,0xa9,0x3d,0x8b,
1529
0xda,0xd7,0x50,0xfb,0x5a,0x6a,0x5f,0x47,0xed,0xd9,0xd4,0x9e,0x43,0xed,0xeb,0xa9,
1530
0x3d,0x97,0xda,0xf3,0xa8,0x3d,0x9f,0xda,0x0b,0xe8,0xf8,0x6e,0x3a,0x5e,0x46,0xc7,
1531
0xcb,0xe9,0x78,0x05,0x1d,0xdf,0x43,0xc7,0x2b,0xe9,0xf8,0x5e,0x3a,0xbe,0x8f,0x8e,
1532
0x57,0xd1,0xf1,0x6a,0x3a,0x5e,0x43,0xc7,0x6b,0xe9,0x78,0x1d,0x1d,0xaf,0xa7,0xe3,
1533
0x0d,0x74,0xbc,0x91,0xda,0x19,0x6a,0x8f,0xa3,0xf6,0x78,0x6a,0x4f,0xa0,0xf6,0x44,
1534
0x6a,0x4f,0xa2,0xf6,0x64,0x6a,0x4f,0xa1,0xf6,0x25,0xd4,0x9e,0x4a,0xed,0x69,0xd4,
1535
0xbe,0x94,0xda,0x97,0x51,0x7b,0x3a,0xb5,0x67,0x50,0x7b,0x26,0xb5,0x17,0x52,0xfb,
1536
0x46,0x6a,0x2f,0xa6,0xf6,0x2d,0xd4,0xbe,0x8d,0xda,0x4b,0xa8,0xbd,0x94,0xda,0x77,
1537
0x51,0x7b,0x19,0xb5,0x57,0x50,0x7b,0x25,0xb5,0xef,0xa3,0xf6,0x6a,0x6a,0xaf,0xa5,
1538
0x76,0x18,0xdf,0x48,0x27,0xe2,0xe8,0xc4,0x52,0x3a,0x91,0x4e,0x27,0x32,0xe9,0xc4,
1539
0x0a,0x3a,0xb1,0x8a,0x4e,0x64,0xd1,0x89,0xb5,0x74,0x22,0x9b,0x4e,0xac,0xa7,0x13,
1540
0x79,0x74,0xa2,0x80,0x4e,0x14,0xd2,0x89,0x8d,0x74,0xa2,0x98,0x4e,0x6c,0xa1,0x13,
1541
0xdb,0xe8,0x44,0x09,0x9d,0x28,0xa5,0x13,0xbb,0xe8,0x44,0x19,0x9d,0xa8,0xa0,0x13,
1542
0x95,0x74,0x62,0x1f,0x9d,0xa8,0xa6,0x13,0xb5,0x74,0xa2,0x9e,0x4e,0x34,0x52,0x47,
1543
0x26,0x75,0xc4,0x53,0x47,0x22,0x75,0x24,0x53,0xc7,0x12,0xea,0x48,0xa3,0x8e,0x65,
1544
0xd4,0x91,0x41,0x1d,0x2b,0xa8,0x63,0x15,0x75,0x64,0x51,0xc7,0x5a,0xea,0xc8,0xa6,
1545
0x8e,0xf5,0xd4,0x91,0x47,0x1d,0x05,0xd4,0x51,0x48,0x1d,0x1b,0xa9,0xa3,0x98,0x3a,
1546
0xb6,0x50,0xc7,0x36,0xea,0x28,0xa1,0x8e,0x52,0xea,0xd8,0x45,0x1d,0x65,0xd4,0x51,
1547
0x41,0x1d,0x95,0xd4,0xb1,0x8f,0x3a,0xaa,0xa9,0xa3,0x96,0x3a,0xea,0xa9,0xa3,0x91,
1548
0x4e,0xc6,0xd1,0xc9,0x04,0x3a,0x99,0x44,0x27,0x53,0xe8,0x64,0x2a,0x9d,0x5c,0x4a,
1549
0x27,0xd3,0xe9,0x64,0x26,0x9d,0x5c,0x41,0x27,0x57,0xd1,0xc9,0x2c,0x3a,0xb9,0x96,
1550
0x4e,0x66,0xd3,0xc9,0xf5,0x74,0x32,0x8f,0x4e,0x16,0xd0,0xc9,0x42,0x3a,0xb9,0x91,
1551
0x4e,0x16,0xd3,0xc9,0x2d,0x74,0x72,0x1b,0x9d,0x2c,0xa1,0x93,0xa5,0x74,0x72,0x17,
1552
0x75,0x16,0x52,0x67,0x11,0x75,0x6e,0xa4,0xce,0x4d,0xd4,0x59,0x4c,0x9d,0x9b,0xa9,
1553
0x73,0x0b,0x75,0x6e,0xa5,0xce,0x6d,0xd4,0xb9,0x9d,0x3a,0x4b,0xa8,0x73,0x07,0x75,
1554
0x96,0x52,0xe7,0x4e,0xea,0x44,0xe1,0xdd,0xd4,0x59,0x46,0x9d,0xe5,0xd4,0x59,0x41,
1555
0x9d,0x7b,0xa8,0xb3,0x92,0x3a,0xf7,0x52,0xe7,0x3e,0xea,0xac,0xa2,0xce,0x6a,0xea,
1556
0xac,0xa1,0xce,0x5a,0xea,0xac,0xa3,0xce,0x7a,0xea,0x6c,0xa0,0xce,0x46,0x3a,0xc5,
1557
0xd0,0xa9,0x38,0x3a,0x15,0x4f,0xa7,0x12,0xe8,0x54,0x22,0x9d,0x4a,0xa2,0x53,0xc9,
1558
0xd0,0x82,0x8c,0x0f,0xb6,0x9c,0xde,0x43,0xa7,0x97,0x20,0xf8,0x67,0x0a,0x9b,0x4a,
1559
0x43,0x70,0x76,0x53,0xd6,0xd9,0x4d,0x75,0x88,0xd6,0xe8,0xa3,0xb5,0xfa,0x28,0x57,
1560
0x1f,0x15,0xea,0xa3,0x22,0x7d,0x54,0xa2,0x8f,0x76,0x71,0xd1,0xe6,0xc2,0xb3,0x9b,
1561
0xd9,0xa8,0x48,0x1f,0xed,0xe2,0xa2,0xad,0xe5,0x67,0xb7,0xb2,0x51,0x95,0x3e,0x5a,
1562
0xa3,0x8f,0xd6,0xea,0xa3,0x5c,0x7d,0x54,0xc2,0x45,0x3b,0x0a,0xcf,0xee,0x60,0xa3,
1563
0x22,0x2e,0xaa,0x4e,0x3f,0x5b,0x55,0x4e,0x67,0x6b,0xd3,0xcf,0xd6,0x20,0xaa,0x29,
1564
0x39,0x5b,0x93,0xad,0x8f,0x0a,0xe9,0x6c,0xdd,0x52,0x3a,0x5b,0x1f,0x7f,0xb6,0x61,
1565
0x1f,0xa2,0x65,0xfa,0x68,0x85,0x3e,0x5a,0xa3,0x8f,0xd6,0xeb,0x23,0xe6,0x6c,0x43,
1566
0x25,0xa2,0xb2,0xb3,0xf5,0xe5,0xfa,0x08,0x9d,0x6b,0x28,0x3f,0xdb,0xc0,0x70,0x11,
1567
0x32,0xb8,0x54,0x45,0x7f,0x64,0xc8,0xe8,0xcf,0x5f,0xc9,0x35,0xd2,0x90,0xab,0x8f,
1568
0x0a,0xf5,0xd1,0x66,0x7d,0x54,0xa2,0x8f,0x96,0xb3,0x0a,0xce,0xef,0x61,0x40,0x1c,
1569
0x88,0x07,0x09,0x20,0x11,0x24,0x81,0x64,0x90,0x02,0x96,0x80,0x54,0x90,0x06,0x96,
1570
0x82,0x65,0x20,0x1d,0x64,0x80,0x4c,0xb0,0x1c,0xac,0x00,0x2b,0xc1,0x2a,0xb0,0x1a,
1571
0x64,0x81,0x35,0x60,0x2d,0x58,0x07,0xb2,0x01,0xa6,0xba,0x3d,0xeb,0x41,0x2e,0xc8,
1572
0x03,0xf9,0xa0,0x00,0x6c,0x00,0x85,0xa0,0x08,0x6c,0x04,0x9b,0x40,0x31,0xd8,0x02,
1573
0x4a,0xe9,0x5c,0x42,0x2e,0x9d,0xcb,0xdc,0x0d,0xca,0x40,0x39,0xa8,0x00,0x7b,0x40,
1574
0x25,0x5d,0xca,0x5e,0x4a,0xe7,0xca,0xd3,0x50,0x66,0x39,0x58,0x01,0x56,0x82,0x55,
1575
0x60,0x35,0xc8,0x02,0x6b,0xc0,0x5a,0xb0,0x0e,0x64,0x83,0x1c,0xb0,0x1e,0xe4,0x81,
1576
0x7c,0x50,0x00,0x36,0x80,0x42,0x50,0x04,0x36,0x82,0x4d,0xa0,0x18,0x6c,0x06,0x5b,
1577
0xc0,0x56,0xb0,0x0d,0x6c,0x07,0x25,0x60,0x07,0x60,0xed,0xda,0x09,0x76,0x01,0xd8,
1578
0x96,0x00,0xdb,0x12,0x60,0x5b,0x02,0x6c,0x4b,0x80,0x6d,0x09,0x95,0x60,0x2f,0xd8,
1579
0x07,0xaa,0x40,0x35,0xa8,0x01,0xf5,0xa0,0x01,0x34,0x52,0xeb,0x72,0x6a,0x85,0xc5,
1580
0xf0,0x7a,0x2b,0x3a,0x08,0x67,0x9d,0x83,0xb3,0xce,0xc1,0x31,0xe7,0xd0,0xf9,0x56,
1581
0x3c,0x0b,0xb3,0xa8,0xb5,0x80,0x5a,0x0b,0xa9,0x15,0x87,0x50,0x5d,0x89,0x27,0x00,
1582
0x1e,0x95,0x50,0xbc,0x37,0x89,0x8e,0xe0,0x4c,0x19,0xb5,0xee,0xa6,0xd6,0x0a,0x6a,
1583
0xdd,0x43,0xad,0x55,0x74,0x04,0x4f,0x10,0x18,0x07,0xe7,0x1e,0x59,0x4e,0x47,0xd0,
1584
0x70,0x55,0x1c,0x48,0x00,0x49,0x20,0x05,0xa4,0x02,0xb8,0xab,0x2a,0x1d,0x64,0x02,
1585
0xb6,0x0c,0x5c,0x55,0x05,0x37,0x55,0x41,0x73,0x15,0xdc,0x53,0x05,0xd7,0x54,0xc1,
1586
0x82,0x2a,0xb8,0xa5,0x0a,0x2e,0xa9,0x82,0x3b,0xaa,0xe0,0x8a,0x2a,0xb8,0xa1,0x0a,
1587
0x2e,0xa8,0x82,0x86,0x2a,0x58,0x50,0x85,0x6e,0x57,0xa1,0xcb,0x55,0xe8,0x6e,0x15,
1588
0xba,0x5a,0x85,0x6e,0x56,0xa1,0x8b,0x55,0xb5,0x00,0x5d,0xac,0x6a,0xa4,0x73,0xd5,
1589
0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,
1590
0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,
1591
0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,
1592
0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,
1593
0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0xd5,0xd0,0x5f,0x0d,0xfd,0x35,
1594
0xd0,0x5f,0x03,0xfd,0x35,0xd0,0x5f,0x03,0xfd,0x35,0xd0,0x5f,0x03,0xfd,0x35,0xd0,
1595
0x5f,0x03,0xfd,0x35,0xd0,0x5f,0x03,0xfd,0x35,0x59,0x34,0xe6,0x48,0x03,0x35,0x43,
1596
0x25,0x6e,0xce,0x73,0x35,0x50,0x59,0x03,0x95,0x35,0x50,0x59,0x03,0x95,0x35,0x50,
1597
0x59,0x03,0x95,0x35,0x50,0x59,0x03,0x95,0x35,0x50,0x59,0x03,0x95,0x35,0x50,0x59,
1598
0x03,0x95,0x35,0x50,0x59,0x03,0x95,0x35,0x50,0x59,0x0b,0x95,0xb5,0x50,0x59,0x0b,
1599
0x95,0xb5,0x50,0x59,0x0b,0x95,0xb5,0x50,0x59,0x0b,0x95,0xb5,0x50,0x59,0x0b,0x95,
1600
0xb5,0x50,0x59,0x8b,0x2e,0xd7,0xa2,0xcb,0xb5,0xe8,0x72,0x2d,0xba,0x5c,0x8b,0x2e,
1601
0xd7,0x42,0x7f,0x2d,0xf4,0xd7,0x42,0x7f,0x2d,0xf4,0xd7,0x42,0x7f,0x2d,0xf4,0xd7,
1602
0x42,0x7f,0x2d,0xf4,0xd7,0x42,0x7f,0x2d,0xf4,0xd7,0x42,0x7f,0x2d,0xf4,0xd7,0x42,
1603
0x7f,0x2d,0xf4,0xd7,0x42,0x7f,0x2d,0xf4,0xd7,0x42,0x7f,0x1d,0x03,0x60,0x43,0x5d,
1604
0x3c,0x80,0x1d,0x75,0x89,0x00,0xb6,0xd4,0x25,0x03,0xd8,0x53,0x87,0xbb,0xa4,0x0e,
1605
0x36,0xd4,0xe1,0x2e,0xa9,0x83,0x1d,0x75,0xb8,0x4b,0xea,0x60,0x4b,0x1d,0xee,0x80,
1606
0x3a,0xe8,0xae,0xc3,0x1d,0x50,0x07,0xfd,0x75,0xb8,0x03,0xea,0x60,0x43,0x1d,0xee,
1607
0x80,0x3a,0xd8,0x51,0x87,0x11,0x5e,0x07,0xdd,0x75,0x18,0xe1,0x75,0xd0,0x5f,0x87,
1608
0x11,0x5e,0x07,0x1b,0xea,0x30,0xc2,0xeb,0x60,0x47,0x3d,0xf4,0xd6,0x43,0x6f,0x3d,
1609
0xf4,0xd6,0x43,0x6f,0x3d,0xf4,0xd6,0x43,0x6f,0x3d,0x74,0xd5,0x43,0x4f,0x3d,0x74,
1610
0xd4,0xa3,0xbf,0xf5,0xd0,0x53,0x0f,0x3d,0xf5,0xd0,0x53,0x0f,0x3d,0xf5,0xd0,0x53,
1611
0x0f,0x3d,0xf5,0xd0,0x53,0xcf,0xea,0x61,0xb0,0x4e,0x41,0x0f,0xb8,0x30,0x9e,0x0b,
1612
0x13,0xb8,0x30,0x91,0x0b,0x93,0xb8,0x30,0x99,0x0b,0x53,0xb8,0x70,0x03,0x17,0x16,
1613
0x72,0x61,0x11,0x17,0x6e,0xe4,0xc2,0x4d,0x5c,0x58,0xcc,0x85,0x9b,0xb9,0x70,0x0b,
1614
0x1b,0xd6,0x73,0xe5,0xeb,0xb9,0xf2,0xf5,0x5c,0xf9,0x7a,0xae,0x7c,0x3d,0x57,0xbe,
1615
0x9e,0x2b,0x5f,0xcf,0x95,0xaf,0xd7,0x97,0xdf,0x8d,0xf0,0x58,0x19,0x1b,0xec,0x60,
1616
0x8f,0x1b,0xf6,0x72,0x21,0xbc,0xd1,0x50,0xc6,0x9e,0xc5,0x72,0x6a,0x15,0x39,0x1f,
1617
0x8d,0x67,0x97,0x55,0x47,0xd9,0xbe,0xef,0x61,0x8b,0xee,0x63,0x83,0x9d,0x6c,0xc9,
1618
0x46,0xce,0x56,0xcc,0xde,0x38,0xc3,0x96,0xc5,0x1a,0x8d,0x0d,0xd9,0x75,0xdc,0x2a,
1619
0x94,0x3f,0x86,0xcb,0xd1,0xc8,0xc2,0xba,0x69,0x2f,0x32,0x57,0x73,0x05,0x56,0x73,
1620
0x05,0x56,0xb3,0x05,0xa0,0xa9,0x11,0x3e,0x6b,0x64,0x7d,0x86,0xd9,0xa3,0xb1,0x98,
1621
0x5b,0xc0,0x31,0xf4,0x0a,0x8e,0xeb,0xd0,0x76,0x5b,0x2a,0x1b,0x64,0x70,0xba,0x38,
1622
0xdb,0xea,0xab,0xd8,0x33,0x6c,0x75,0x3a,0xcf,0x2c,0x47,0x8c,0x85,0x26,0x53,0x8e,
1623
0x1f,0x43,0xa4,0x4f,0x55,0xe2,0xc7,0x10,0xb1,0xa9,0x91,0x23,0x51,0x30,0x89,0xd8,
1624
0x2d,0xec,0x48,0x1a,0xa9,0xb9,0x59,0x94,0x2d,0xed,0x4f,0x01,0x14,0x48,0x6a,0x0a,
1625
0xa2,0x60,0x0a,0x21,0x2f,0x3a,0xbf,0x64,0x25,0x45,0x90,0x8c,0xe4,0x34,0x67,0x2e,
1626
0x8d,0xf1,0x1b,0x07,0xe6,0xd2,0x3b,0xbb,0xc7,0xd1,0x38,0xbf,0x99,0x60,0x1e,0xd2,
1627
0x13,0x69,0xc6,0x4c,0x9a,0x3b,0x9d,0x5e,0x9b,0x30,0x8d,0x5e,0x9b,0x4e,0xe7,0x93,
1628
0x32,0xe8,0xfd,0xe5,0xf4,0xfe,0x0a,0x7a,0x7f,0x25,0xbd,0xbf,0x8a,0x26,0x8e,0x79,
1629
0x03,0xad,0xac,0xe0,0x76,0x4e,0x41,0x5c,0x18,0xc2,0x85,0x0a,0x7f,0x2e,0x52,0x91,
1630
0x92,0x0b,0xd9,0x74,0x20,0x97,0x0e,0xe4,0xb6,0x57,0x81,0x14,0xc0,0x85,0x6c,0xbe,
1631
0x9a,0x02,0xb9,0x90,0x4d,0x07,0x73,0x67,0x83,0xb9,0x9c,0x60,0x0a,0xe2,0x42,0x36,
1632
0x9f,0x26,0x4f,0xc6,0x0f,0x98,0x4f,0xf3,0x27,0xe3,0x87,0x03,0x87,0x6f,0xd0,0x1b,
1633
0x93,0xf1,0x33,0x99,0xce,0x27,0x27,0x92,0x3f,0xa7,0xea,0xfc,0x92,0x12,0xfc,0x18,
1634
0x22,0x7d,0x6a,0x27,0x7e,0x0c,0x11,0x9b,0xfa,0x94,0x59,0x02,0x52,0x89,0xb5,0x11,
1635
0x3b,0x3f,0x25,0x29,0x60,0x20,0x36,0x7f,0x30,0x07,0x56,0xa0,0x17,0xd0,0x19,0x42,
1636
0x4a,0x7f,0x92,0x29,0xe4,0x24,0x53,0x02,0x15,0x08,0x00,0x81,0x40,0x0d,0x82,0x40,
1637
0x30,0x08,0x01,0x0a,0x7f,0x36,0x60,0x4b,0x2a,0xd8,0xa2,0x0a,0xb6,0xac,0x82,0x2d,
1638
0xac,0x60,0x4b,0x2b,0xd8,0xe2,0x0a,0xb6,0xbc,0x82,0xad,0xa0,0x60,0x6b,0x28,0xd9,
1639
0x1a,0x63,0xc0,0x58,0x30,0x0e,0x8c,0x07,0x13,0xc0,0x44,0x30,0x09,0xbc,0x0a,0x26,
1640
0x83,0x29,0x60,0x2a,0x98,0x06,0xa6,0x83,0x19,0x60,0x26,0x98,0x05,0x66,0x83,0x39,
1641
0x60,0x2e,0x78,0x0d,0xcc,0x03,0xf3,0xc1,0xeb,0xe0,0x0d,0xb0,0x00,0x2c,0x94,0xdf,
1642
0x74,0x03,0xeb,0x89,0xd0,0xd0,0x08,0x8a,0x60,0x7f,0x22,0xe8,0x7c,0x49,0xde,0x7b,
1643
0x55,0x74,0x7e,0xf7,0x6e,0x50,0x06,0x30,0x92,0x76,0x63,0x78,0xed,0xde,0x03,0x30,
1644
0x9c,0x76,0xef,0x05,0xfb,0x00,0x5b,0xa6,0x1a,0xd4,0x80,0x5a,0x50,0x07,0xea,0x41,
1645
0x03,0x68,0xc4,0x6e,0x07,0xcb,0x8d,0x32,0x2c,0x37,0xca,0xb0,0xdc,0x28,0xc3,0x72,
1646
0xa3,0x0c,0xcb,0x8d,0x32,0x2c,0x37,0xca,0xb0,0xdc,0x28,0xc3,0x72,0xa3,0x0c,0xcb,
1647
0x8d,0x32,0x2c,0x37,0xca,0xb0,0xdc,0x28,0xc3,0x72,0xa3,0x0c,0xcb,0x8d,0x32,0x2c,
1648
0x37,0xca,0xb0,0xdc,0x28,0xc3,0x72,0xa3,0x0c,0xcb,0x8d,0x32,0x2c,0x37,0xca,0xb0,
1649
0xdc,0x28,0xc3,0x72,0xa3,0x0c,0x43,0xbd,0x0c,0xcb,0x8d,0x32,0x2c,0x37,0xca,0xb0,
1650
0xdc,0x28,0xc3,0x72,0xa3,0x0c,0xcb,0x8d,0x32,0x76,0x67,0x85,0xe5,0x46,0x19,0x96,
1651
0x1b,0x65,0x58,0x6e,0x94,0x61,0xb9,0x51,0x86,0xe5,0x46,0x19,0x9e,0xa8,0x98,0x53,
1652
0x2b,0xeb,0xa9,0x15,0x56,0x95,0x6d,0x05,0xdb,0xc1,0x0e,0xc0,0xee,0xca,0xf6,0xd2,
1653
0x61,0x3c,0x9b,0x61,0x63,0x39,0x6c,0x2c,0x87,0x7d,0xe5,0xb0,0xad,0x1c,0x76,0x95,
1654
0xc3,0xa6,0x72,0xd8,0x53,0x0e,0x5b,0xca,0x61,0x47,0x39,0x6c,0x28,0x87,0xfe,0x72,
1655
0xe8,0x2e,0x87,0xde,0x72,0xe8,0x2c,0x87,0xbe,0x72,0xe8,0x2a,0x87,0x9e,0x72,0x2c,
1656
0x69,0xca,0xb1,0x9c,0x29,0xc7,0x52,0xa6,0x1c,0x4b,0x99,0xf2,0x6d,0x00,0x43,0xab,
1657
0xbc,0x14,0xec,0x02,0xf0,0x61,0x39,0x34,0x96,0xc3,0x77,0xe5,0xf0,0x5b,0x39,0x7c,
1658
0x56,0x0e,0x7f,0x95,0xc3,0xaa,0x72,0xf8,0xa9,0x02,0xfa,0x2b,0xa0,0xbf,0x02,0xfa,
1659
0x2b,0xa0,0xbf,0x02,0xfa,0x2b,0xa0,0xbf,0x02,0xfa,0x2b,0xa0,0xbf,0x02,0xfa,0x2b,
1660
0xa0,0xbf,0x02,0xfa,0x2b,0xa0,0xbf,0x02,0xfa,0x2b,0xa0,0xbf,0x02,0xfa,0x2b,0xa0,
1661
0xbf,0x02,0xfa,0x2b,0xa0,0xbf,0x02,0x3d,0xab,0xc0,0x58,0xae,0x80,0xae,0xca,0x42,
1662
0xea,0xde,0x95,0x4e,0xbd,0x0d,0x05,0x74,0xa1,0x8a,0x01,0x5b,0xc1,0x5e,0xd0,0x48,
1663
0x17,0xf0,0xfc,0xbd,0x80,0x67,0xe5,0x85,0x9a,0x65,0x60,0x03,0xa8,0xa1,0xae,0xc4,
1664
0x46,0xea,0x4a,0x2a,0x06,0x25,0xd4,0x95,0x1c,0x0f,0xd6,0x00,0xa4,0x53,0x36,0x80,
1665
0x4a,0xea,0x5a,0xc2,0x50,0x57,0xda,0x7a,0xea,0x5a,0x5a,0x4d,0x5d,0xcb,0xb2,0x40,
1666
0x0e,0xa8,0xa2,0xae,0xf4,0x38,0x90,0x0b,0xb6,0x51,0x57,0x06,0xea,0x65,0xec,0xa5,
1667
0xae,0xcc,0x25,0x60,0x23,0x75,0xad,0x5f,0x4b,0x5d,0xb9,0x05,0xd4,0xb5,0x11,0xed,
1668
0x6c,0xc2,0xb9,0x4d,0x69,0x00,0x75,0x37,0x6d,0xa1,0xae,0xe2,0x0a,0xea,0x2a,0x5d,
1669
0x4e,0x5d,0x3b,0xd1,0xee,0x2e,0xb4,0xb3,0x3b,0x13,0x14,0x01,0xa4,0xcb,0x76,0x82,
1670
0x32,0xea,0xda,0x07,0x7d,0xfb,0x60,0xd3,0x3e,0x36,0xdd,0x40,0x5d,0xd5,0xe5,0x00,
1671
0xb6,0xe2,0x99,0xdf,0x55,0xbb,0x07,0x20,0x0f,0x2b,0xec,0x2e,0x3c,0xe0,0xba,0xea,
1672
0xd1,0x16,0x1e,0x38,0x5d,0xf5,0x68,0xb7,0x31,0x81,0xba,0x97,0x2c,0x01,0x7b,0xa9,
1673
0x3b,0x75,0x29,0x75,0xaf,0xde,0x05,0xf6,0x50,0xf7,0x9a,0x14,0xb0,0x16,0x6c,0x02,
1674
0xd5,0xd4,0xbd,0x76,0x03,0x28,0xa6,0xee,0xf5,0xbb,0xa9,0x3b,0x17,0xe5,0x73,0xb7,
1675
0x52,0xf7,0x0e,0xe4,0x95,0x16,0x01,0x9c,0xdf,0x59,0x01,0x1f,0xa2,0xfe,0xae,0xd5,
1676
0x60,0x3d,0x75,0xc3,0xc6,0xee,0xdd,0x48,0xe3,0x3e,0xb8,0x18,0x57,0x42,0x17,0x97,
1677
0x6c,0x07,0x7b,0x41,0x2d,0x68,0xa4,0x8b,0xa9,0x29,0x20,0x1b,0xac,0xa7,0x8b,0x69,
1678
0x3b,0xe8,0x62,0x46,0x22,0x48,0xa5,0x8b,0xab,0x72,0xc1,0x66,0xba,0xb8,0x7a,0x1d,
1679
0x28,0x00,0x5b,0xc1,0x6e,0xba,0xb8,0x66,0x29,0x58,0x49,0x17,0xb3,0xd1,0x46,0x76,
1680
0x3d,0x5d,0xcc,0xd9,0x09,0xd0,0xce,0x7a,0xc4,0x05,0x68,0xa3,0xa0,0x08,0x54,0xd0,
1681
0xc5,0x4d,0x35,0x74,0x71,0x73,0x15,0x68,0xa0,0x8b,0xdb,0xa0,0xbb,0x04,0xf5,0x4a,
1682
0xaa,0xe9,0x22,0x46,0xf1,0xc5,0x0a,0xe4,0xe3,0xe1,0x7c,0x11,0x0f,0xe0,0x8b,0x0d,
1683
0x69,0xa0,0x9e,0x7a,0x98,0x38,0xb0,0x0c,0xac,0x04,0x15,0xd4,0x13,0xd7,0x48,0x3d,
1684
0xf1,0xa9,0xd4,0x93,0xb2,0x11,0x6c,0x07,0xc8,0x4b,0xa9,0xa3,0x9e,0x25,0x28,0xb3,
1685
0x64,0x3d,0x28,0xa0,0x9e,0xd4,0x9d,0xa0,0x1c,0x54,0x51,0x4f,0x76,0x3a,0x28,0xa1,
1686
0x9e,0x42,0x06,0xa0,0x4c,0x21,0xea,0x15,0x37,0x50,0xcf,0xe6,0xa5,0xd4,0xb3,0x05,
1687
0x6d,0x6e,0x45,0x3e,0xee,0xff,0x1e,0xdc,0xc7,0x3d,0xb8,0x1f,0x7b,0xca,0x50,0x07,
1688
0xf7,0x42,0x4f,0xe5,0x26,0xb0,0x9b,0x7a,0xf6,0xa2,0x7d,0x2c,0xa6,0x7a,0x6a,0xd3,
1689
0xa8,0xa7,0x01,0xed,0xe3,0x31,0xda,0x83,0xed,0x47,0x6f,0xfc,0x0a,0xea,0x4d,0x4a,
1690
0xa5,0xde,0x94,0x64,0xb0,0x0c,0xe0,0x38,0x6b,0x1f,0xf5,0xae,0x61,0xa8,0x77,0x5d,
1691
0x2e,0xf5,0xe6,0xec,0x05,0xd5,0xd4,0xbb,0x7e,0x2b,0xf5,0xe6,0xe1,0x5c,0x5e,0x3e,
1692
0x28,0x02,0xdb,0xa8,0xb7,0x60,0x29,0x28,0x05,0x15,0xd4,0xbb,0x21,0x8e,0x7a,0x8b,
1693
0x50,0x66,0xe3,0x7a,0x50,0x40,0xbd,0x9b,0xd7,0x80,0x6c,0xb0,0x83,0x7a,0xb7,0x23,
1694
0xbf,0x64,0x1d,0x40,0xfe,0x8e,0x62,0xb0,0x0b,0x94,0x83,0x3a,0xea,0x2d,0xcd,0xa1,
1695
0xde,0x0a,0xe4,0x61,0x1d,0xd9,0x8b,0x31,0xd4,0x8b,0xc5,0x5f,0x2f,0x16,0x75,0xbd,
1696
0x58,0xc8,0xf5,0x62,0xe1,0xd6,0x8b,0x45,0x5b,0x2f,0x16,0x5a,0xbd,0x58,0x64,0xf5,
1697
0xd6,0x65,0x80,0x55,0x60,0x03,0x40,0x99,0xfa,0x34,0xb0,0x12,0xf7,0x13,0x7b,0x4f,
1698
0xc1,0xd6,0x86,0x0d,0xe4,0x8b,0xe7,0xc4,0x4a,0x8c,0xfc,0x44,0x90,0x44,0xce,0x9f,
1699
0xc6,0x67,0xb3,0x41,0x0e,0x7d,0x1a,0xbf,0xe4,0xd3,0xf8,0x34,0x44,0x15,0x9f,0x26,
1700
0x2c,0xa1,0x73,0x89,0x58,0x32,0x25,0x62,0xc9,0x94,0x8c,0x95,0x7d,0x22,0x96,0x0e,
1701
0xc9,0xd8,0x54,0x24,0x63,0x99,0x97,0x88,0xe5,0x53,0x22,0x96,0x4f,0x89,0x58,0x3e,
1702
0x25,0xe3,0xf1,0x9f,0x8c,0x85,0x46,0x32,0x16,0x10,0xc9,0x58,0x76,0x25,0x63,0xd9,
1703
0x95,0x8c,0x65,0x57,0x22,0x36,0x31,0x89,0x58,0xd2,0x25,0x62,0x49,0x97,0xc8,0xb6,
1704
0x85,0xe5,0x41,0x22,0x96,0x9a,0x89,0xd8,0x08,0x25,0x62,0xb9,0x99,0xb8,0x0c,0x60,
1705
0xc9,0x99,0x98,0x01,0xb0,0xec,0x4c,0xc4,0x1a,0x23,0x11,0x6b,0x8c,0x44,0x2c,0xfb,
1706
0x92,0x50,0x36,0x09,0xcb,0xaf,0x24,0x2c,0xbf,0x92,0xb0,0xfc,0xc2,0xdd,0x7d,0x2e,
1707
0x09,0xcb,0xaf,0x24,0x2c,0xbf,0x92,0xb0,0xd1,0x49,0xc2,0x92,0x33,0x09,0x36,0xe1,
1708
0x8e,0x3f,0x97,0x04,0x9b,0x92,0x60,0x53,0x12,0x36,0x3a,0x49,0x58,0x7e,0x26,0xc1,
1709
0x9e,0x24,0xd8,0x93,0x04,0x7b,0x92,0x60,0x4f,0x12,0xec,0x49,0x62,0xed,0xc1,0x32,
1710
0x32,0x11,0x4b,0xbc,0x14,0xd8,0x93,0x02,0x7b,0x70,0x15,0xcf,0xa5,0x40,0x77,0x0a,
1711
0x96,0x7e,0x29,0x58,0xf6,0xa5,0x60,0x99,0x9b,0x88,0x3d,0x4e,0x0a,0x96,0xb9,0x29,
1712
0x58,0xe6,0x26,0x22,0x4e,0xc4,0xe6,0x2b,0x11,0x4b,0x9b,0x44,0xd8,0x92,0x08,0x5b,
1713
0x12,0xa1,0x3f,0x11,0xba,0x13,0xa1,0x37,0x11,0x7a,0x13,0x59,0x5f,0x40,0x6f,0x22,
1714
0xf4,0x26,0x42,0x5f,0x22,0x96,0x9a,0x49,0xf0,0x59,0x12,0x74,0x24,0xb1,0xed,0xc3,
1715
0x8e,0x14,0xd6,0x0e,0xb4,0x9f,0x84,0xcd,0x5d,0x12,0x74,0xe0,0x79,0x7e,0x2e,0x99,
1716
0xf5,0x1b,0x6c,0x48,0x46,0x7f,0x93,0xd1,0xdf,0x64,0xd8,0x96,0x0c,0x5d,0xc9,0x85,
1717
0x98,0xe5,0x52,0x31,0xfb,0xac,0x47,0x9c,0x06,0x4a,0x01,0xee,0x98,0xd5,0xe5,0x88,
1718
0x31,0xf3,0x61,0xb7,0xd4,0xb5,0x09,0xb3,0x55,0xee,0x6e,0x92,0xe1,0xe2,0xc8,0xd9,
1719
0x30,0x9e,0x0b,0x13,0xb8,0x30,0x89,0x0b,0x93,0xb9,0x30,0x85,0x0b,0x53,0xb9,0x70,
1720
0x29,0x17,0x2e,0xe3,0xc2,0x0c,0x2e,0xcc,0xe4,0xc2,0xe5,0x5c,0xb8,0x82,0x0b,0x57,
1721
0x22,0xbc,0xb4,0x9b,0x6d,0xf3,0xb3,0xf8,0x75,0x6c,0xb8,0x74,0x13,0x1b,0xe6,0xd5,
1722
0xb1,0xe1,0x96,0x25,0x6c,0xb8,0x7b,0x35,0xc2,0xcf,0xe3,0x77,0xb0,0x61,0x56,0x22,
1723
0x1b,0xe6,0xb3,0x2d,0x7c,0xbe,0x7b,0x2b,0x1b,0x56,0xef,0x41,0x78,0x39,0x81,0x6d,
1724
0xe1,0xf2,0x32,0x56,0xd7,0xe5,0x2c,0xb6,0x9d,0xcf,0x37,0xb2,0x2d,0x7c,0xbe,0x6e,
1725
0xd3,0xe7,0x1b,0x12,0xf5,0x89,0xcb,0xeb,0xd9,0x04,0xa6,0x76,0x36,0xac,0x59,0xc6,
1726
0xa5,0x59,0x3b,0xd1,0x6d,0x2e,0x87,0xd5,0xd2,0x95,0x54,0xca,0xe5,0x27,0x70,0xe9,
1727
0x12,0x36,0x5d,0x9d,0xc7,0xa6,0xd3,0xe3,0x10,0x62,0xca,0x43,0x88,0x89,0x8c,0x4d,
1728
0xef,0xde,0xc3,0xe5,0xb0,0x36,0xe0,0xb6,0x64,0xcb,0xe4,0x16,0xb0,0x39,0x6b,0x8b,
1729
0xd9,0x70,0xc3,0x76,0xee,0x2c,0xdb,0xfe,0xc5,0x4d,0x0d,0xec,0xd9,0xe5,0xe9,0x6c,
1730
0x3a,0xb5,0x1a,0x61,0x4f,0x79,0x21,0x9b,0x2e,0xe6,0x5a,0x4e,0x63,0xdb,0xb9,0x50,
1731
0xbb,0x91,0x4d,0xaf,0x60,0x6d,0xee,0x2a,0xdd,0xcc,0x9e,0x5d,0xcf,0xe6,0x5c,0xa8,
1732
0x63,0xf5,0xf6,0x54,0xa4,0x70,0x36,0xac,0xe6,0x6a,0x71,0x16,0xd6,0xb1,0x1a,0x31,
1733
0x35,0x71,0x61,0x85,0x9c,0xba,0xb2,0xf0,0x34,0xa8,0xae,0xa3,0x8b,0x3b,0x33,0x69,
1734
0xd6,0x6b,0x13,0x48,0xa9,0x20,0xa5,0x92,0x94,0x58,0x2f,0x06,0x90,0x12,0x2b,0x45,
1735
0x35,0x29,0x83,0x48,0x19,0x4c,0xca,0x10,0x52,0xf9,0x93,0x4a,0x41,0x2a,0x25,0xa9,
1736
0x54,0xa4,0x0a,0x20,0x55,0x20,0xc1,0xff,0x04,0xef,0x13,0x7c,0x4f,0xf0,0x3c,0xc1,
1737
0xef,0x04,0xaf,0x13,0x7c,0x4e,0xf0,0x38,0xc1,0xdf,0x04,0x6f,0x13,0x7c,0x4d,0xf0,
1738
0x34,0xc1,0xcf,0x04,0x2f,0x23,0xaf,0xea,0x52,0xc5,0x06,0x82,0xab,0x3f,0xcf,0xc3,
1739
0x51,0xce,0x6e,0x3c,0x18,0x57,0xe3,0x81,0xc8,0x0e,0x9f,0x04,0x3c,0x34,0xf3,0x08,
1740
0x7e,0xc0,0x43,0x02,0x13,0xfa,0x26,0x3c,0x78,0x96,0xa7,0x63,0xa2,0xaf,0xc6,0xc4,
1741
0x57,0x48,0xe8,0x3b,0x1e,0x8e,0x98,0x98,0xb7,0xb0,0x13,0x3c,0x26,0xb4,0x38,0x0c,
1742
0xaf,0xc4,0xed,0x98,0x16,0xf0,0x60,0xa9,0xc0,0x84,0xb4,0x01,0x0f,0x5b,0xec,0xc6,
1743
0xba,0x92,0xb3,0xf1,0x60,0xc1,0x83,0x71,0xdf,0x66,0x3c,0x20,0xf1,0xa0,0x5a,0x56,
1744
0x8b,0x07,0x20,0x1e,0x92,0xa5,0x78,0x38,0xac,0xdf,0x88,0x32,0x98,0xb8,0xb1,0x00,
1745
0x80,0x6f,0x30,0x44,0x73,0x49,0xa5,0x26,0x55,0x10,0xa9,0xb0,0xec,0x0d,0xa1,0x00,
1746
0xac,0xce,0x15,0x14,0xa0,0xa4,0x00,0x15,0x05,0x04,0x50,0x00,0xd6,0xc8,0x6a,0x0a,
1747
0x08,0xa2,0x80,0x60,0x0a,0x08,0xa1,0x40,0x2c,0x56,0xd9,0x47,0x98,0x92,0x0d,0x54,
1748
0x6c,0x10,0xc0,0x06,0x81,0x6c,0xa0,0x66,0x83,0x20,0x36,0x08,0x66,0x83,0x10,0x36,
1749
0x50,0xf8,0x73,0x21,0x57,0x47,0xc1,0x55,0x7a,0x75,0x12,0x4d,0x98,0x03,0xe6,0xd3,
1750
0xb4,0xd7,0xc6,0x63,0xee,0x2a,0x02,0x9b,0xc0,0x66,0xb0,0x15,0x6c,0x07,0x25,0xa0,
1751
0x14,0xec,0x02,0x65,0xec,0xfc,0x06,0x2a,0xc1,0x3e,0x50,0x0d,0x6a,0x41,0x3d,0x68,
1752
0xa4,0x4f,0x13,0xe2,0x40,0x22,0x48,0x26,0x76,0x12,0xfc,0x34,0x01,0xf3,0x61,0xc2,
1753
0x52,0xb0,0x0c,0xa4,0x83,0x0c,0x90,0x09,0x56,0x82,0x2c,0xb0,0x0e,0xac,0x07,0xf9,
1754
0xa0,0x00,0x6c,0x00,0x85,0x00,0x76,0x24,0xc0,0x8e,0x04,0xd8,0x91,0x00,0x3b,0x12,
1755
0xb6,0x01,0xd8,0x92,0x00,0x5b,0x12,0x76,0x00,0xd8,0x93,0x00,0x7b,0x12,0x76,0x03,
1756
0xd8,0x94,0x80,0x9b,0xbc,0x76,0x53,0xd7,0xca,0x65,0x6c,0x17,0x3e,0x4d,0x58,0xf1,
1757
0x69,0x42,0x1d,0xa7,0x9f,0x3d,0x28,0x81,0xa6,0x4f,0xe3,0x0b,0xf5,0x07,0x98,0x9b,
1758
0x73,0xf4,0xbd,0x2c,0xe2,0xca,0xb0,0x7d,0xdb,0x04,0x13,0xd9,0x33,0xf1,0xbb,0xf5,
1759
0x07,0x15,0x5c,0x37,0xe2,0x37,0x7f,0x1a,0xbf,0x0d,0x07,0xac,0x23,0xd0,0x4f,0x74,
1760
0x9f,0xab,0x90,0xca,0x1d,0x23,0x15,0x8f,0x76,0xeb,0x58,0x0f,0x71,0x55,0xab,0xf5,
1761
0xa9,0x3a,0xae,0x07,0x38,0xc5,0xb6,0xc3,0xf9,0x0e,0xa6,0x7f,0x9a,0x90,0xa0,0x37,
1762
0x06,0x07,0xa5,0xc8,0xd6,0xd7,0xdb,0xc1,0x1d,0x54,0xe8,0x53,0x15,0x9c,0x07,0xe2,
1763
0x77,0xe2,0x80,0x8b,0x58,0x83,0xd8,0x42,0x28,0x51,0x3c,0x50,0x63,0x27,0xd7,0x17,
1764
0x66,0xe0,0x4c,0xa9,0x21,0x82,0xe1,0x9c,0x96,0x0d,0xfd,0xc7,0x09,0x85,0xfa,0xfe,
1765
0xeb,0xbb,0xa7,0xcf,0xda,0x35,0x60,0xc5,0xcd,0xc2,0x86,0x14,0x57,0x92,0x35,0x64,
1766
0x17,0xab,0x20,0xbe,0x8e,0x33,0xbe,0x54,0x7f,0x5c,0xca,0xb5,0x94,0xce,0x5e,0x79,
1767
0xae,0xd3,0xd5,0xfa,0xe7,0x5b,0x09,0x77,0x65,0xd9,0x14,0xce,0xe6,0xb1,0xe3,0x81,
1768
0xad,0xc4,0x35,0xc0,0x1d,0x70,0x3e,0x1c,0x70,0xc7,0x3e,0xae,0x0b,0x06,0x07,0xd7,
1769
0x0e,0x38,0x58,0x9f,0x62,0x47,0x09,0xd3,0xdf,0x76,0x42,0x0a,0x37,0xac,0x12,0x52,
1770
0xf5,0x57,0x5a,0x6f,0x57,0x42,0x9a,0x7e,0xdc,0x64,0xf4,0x77,0x21,0x21,0x93,0x33,
1771
0x91,0x1d,0x67,0xdc,0x95,0xbe,0xa5,0x25,0xfd,0x95,0x67,0xcf,0x2c,0xe7,0x52,0x3b,
1772
0xf4,0x0d,0xad,0x66,0xaf,0x37,0x2e,0xa2,0xc1,0x27,0xec,0xf1,0xae,0x81,0x14,0xab,
1773
0x62,0x95,0xfe,0x88,0x1d,0x28,0xfd,0x57,0x2c,0x55,0x7f,0xbc,0xb1,0x7f,0x2c,0x25,
1774
0xac,0x61,0xb3,0xd1,0x99,0xf8,0x2d,0xfd,0x85,0x13,0xf4,0x03,0x24,0x61,0x1d,0xdb,
1775
0x5c,0x7c,0x63,0xff,0x88,0x62,0x87,0x58,0x3d,0x17,0xb1,0xd7,0x71,0x25,0x57,0x80,
1776
0x75,0x59,0xa2,0x3e,0x4f,0x3f,0x5c,0xd8,0x14,0x4c,0xaf,0x42,0x2a,0x9b,0x4b,0xb1,
1777
0xb7,0x4f,0x5e,0xff,0x00,0x64,0xf5,0xe5,0x72,0x95,0xd8,0xd4,0x7a,0xbd,0x9a,0x3c,
1778
0xee,0x54,0xaa,0x3e,0xc3,0xa0,0x4a,0x9f,0x62,0xcf,0xe6,0xf7,0x5f,0x82,0xd2,0xfe,
1779
0x03,0xae,0x40,0x3e,0xd7,0x99,0x4c,0x7d,0xaa,0x84,0xbb,0x8b,0xd9,0x54,0x05,0x77,
1780
0x59,0xb6,0xe8,0xab,0x16,0xf4,0x5f,0x6b,0xfd,0x01,0x77,0xa7,0x15,0x70,0x17,0x6d,
1781
0xf9,0x80,0xa2,0x42,0x6e,0x6c,0x72,0xd1,0xc0,0x85,0xb9,0x75,0x9c,0x25,0x6c,0xea,
1782
0xbf,0x3f,0x0c,0x29,0x36,0x6f,0xb3,0xfe,0xa6,0x23,0xae,0xad,0x84,0x81,0xa2,0xdb,
1783
0xf5,0x37,0x74,0x09,0xeb,0x7e,0x76,0x34,0xb3,0xa9,0x3a,0xce,0xc1,0xdc,0xfd,0xad,
1784
0x9f,0x06,0xf4,0xb7,0x05,0xd6,0x54,0xe5,0xfa,0x16,0xfa,0x47,0xb0,0xff,0x45,0xb8,
1785
0x4f,0xc1,0x06,0x4a,0x36,0x50,0xb1,0x41,0x00,0x1b,0x04,0xb2,0x81,0x9a,0x0d,0x82,
1786
0xd8,0x20,0x98,0x0d,0x42,0xb8,0xc2,0xfa,0x2a,0x5c,0x1d,0x05,0x57,0x49,0xc1,0xd5,
1787
0x52,0x70,0xd5,0x14,0x5c,0x3d,0x05,0x57,0x51,0xc1,0xd5,0x54,0x70,0x55,0x15,0x5c,
1788
0x5d,0x25,0x57,0x57,0xa9,0xd7,0xc7,0xd5,0x55,0x72,0x75,0x95,0x5c,0xdd,0x57,0x67,
1789
0x8d,0xa1,0xf1,0x63,0x68,0xcc,0x3c,0x1a,0x3b,0x66,0x0e,0xcd,0x9c,0x4f,0xb3,0xc6,
1790
0xd1,0xf8,0xe9,0xf8,0x51,0x02,0x15,0x4d,0x9e,0x87,0xe7,0x59,0x45,0xf7,0x92,0xe5,
1791
0xd4,0xbd,0xae,0x94,0x9d,0x9d,0xb0,0x07,0x62,0x9f,0x04,0xdd,0xeb,0x32,0xba,0xb1,
1792
0x13,0xc4,0x83,0xa5,0xab,0x2e,0xf3,0x42,0x5d,0x0e,0xfb,0x64,0x41,0x4b,0x33,0xc6,
1793
0xd0,0xb1,0xba,0x31,0x34,0x7d,0x0c,0x4d,0xc5,0xcf,0x58,0x9a,0x3e,0x96,0x26,0x8d,
1794
0xa5,0x71,0x63,0xa6,0xd1,0x54,0x36,0x98,0x35,0x91,0x66,0x4c,0x44,0x09,0x96,0x49,
1795
0x34,0x7d,0x12,0x4d,0x9d,0x44,0xaf,0x2e,0xa4,0xa9,0x60,0x3a,0x98,0x04,0x5e,0x03,
1796
0xc7,0xea,0xa6,0xd1,0xf4,0x69,0x34,0x1e,0xb5,0xa6,0xd1,0xc4,0xe9,0x34,0x63,0x3a,
1797
0xb2,0xa6,0xd3,0xf4,0xe9,0x34,0x6e,0x3a,0x4d,0x65,0x13,0x4a,0xa4,0x94,0x84,0x9f,
1798
0xa9,0x6c,0x04,0x3b,0xc7,0x01,0xfc,0x4c,0x65,0xa3,0xf3,0x4b,0xb2,0xe6,0xea,0x43,
1799
0x9c,0x87,0x51,0xd3,0xc1,0x24,0x30,0x67,0xcc,0x78,0x16,0xee,0xb4,0x21,0x56,0xd2,
1800
0xac,0xb9,0x34,0x63,0x2e,0x9a,0x47,0x8d,0xb9,0x34,0x6b,0x3e,0xcd,0x98,0x8f,0x83,
1801
0xf9,0x34,0x7d,0x3e,0x4d,0x85,0x2f,0x5e,0xa7,0x19,0xaf,0xe3,0xf8,0x75,0x9a,0xfe,
1802
0x3a,0x4d,0xc5,0x4f,0x5b,0x2a,0x4d,0x07,0x63,0x67,0xd3,0xb8,0x71,0x34,0x6e,0x3c,
1803
0x8d,0x43,0x23,0xe8,0xc3,0x78,0x74,0x73,0x01,0xbd,0x3a,0x06,0xde,0xa4,0xc9,0x33,
1804
0x68,0xea,0x54,0x9a,0xfa,0x1a,0x4d,0x9b,0x4e,0xd3,0x66,0xd0,0xb4,0x99,0x93,0x68,
1805
0xda,0x1b,0x34,0x7d,0x32,0xba,0x34,0x13,0x1e,0x78,0x95,0x66,0xcd,0x9a,0x4e,0xb3,
1806
0xe6,0xd0,0x5c,0xfc,0xcc,0xa7,0xd7,0xc7,0xd2,0x7c,0xb4,0x31,0x9d,0xc6,0x70,0xa1,
1807
0x82,0xdd,0xd6,0x29,0xd9,0x40,0xc5,0x06,0x01,0x6c,0x10,0xc8,0x06,0x6a,0x36,0x08,
1808
0x62,0x83,0x60,0x36,0x08,0x61,0x03,0x3c,0x0b,0xd9,0x90,0xab,0xa3,0xe0,0x2a,0x29,
1809
0xb8,0x5a,0x0a,0xae,0x9a,0x82,0xab,0xa7,0xe0,0x2a,0x2a,0xb8,0x9a,0x0a,0xae,0xaa,
1810
0x82,0xab,0xab,0xe4,0xea,0x2a,0xf5,0xfa,0xb8,0xba,0x4a,0xae,0xae,0x92,0xab,0xab,
1811
0xe4,0xea,0x2a,0xb9,0xba,0x4a,0xae,0xae,0x92,0xab,0xab,0xe4,0xea,0xaa,0xb8,0xba,
1812
0x2a,0xae,0xee,0x24,0x5c,0xd5,0x4b,0xd9,0x71,0x20,0x01,0x24,0x81,0x14,0x90,0x0a,
1813
0xd2,0x41,0x26,0x58,0x01,0x56,0x81,0x2c,0xb0,0x16,0x64,0x83,0xf5,0x20,0x0f,0x14,
1814
0x80,0x42,0xb0,0x11,0x14,0x83,0x2d,0x60,0x1b,0x28,0x01,0xa5,0x74,0x29,0x07,0xed,
1815
0xe6,0xa0,0xdd,0x1c,0xb4,0x9b,0x83,0x76,0x73,0xd0,0x6e,0xce,0x52,0x80,0xb6,0x73,
1816
0xd0,0x76,0x0e,0xda,0xce,0x41,0xdb,0x39,0x68,0x3b,0x07,0x6d,0xe7,0xa0,0xed,0x1c,
1817
0xb4,0x9d,0x8b,0xf6,0x72,0xd1,0x5e,0x2e,0xda,0xcb,0x45,0x7b,0xb9,0x68,0x2f,0x17,
1818
0xed,0xe5,0xee,0x02,0x15,0xa0,0x12,0xec,0x03,0xd5,0xa0,0x16,0xd4,0x83,0x46,0xba,
1819
0x94,0x07,0x7d,0x79,0xd0,0x97,0x07,0x7d,0x79,0xd0,0x97,0x07,0x7d,0x79,0xd0,0x97,
1820
0x07,0x7d,0x79,0xd0,0x87,0xad,0xdd,0xa5,0x3c,0xe8,0xcb,0x83,0xbe,0x3c,0xe8,0xcb,
1821
0x83,0xbe,0x3c,0xe8,0xcb,0x43,0x5f,0xf2,0xd0,0x97,0x3c,0xf4,0x25,0x0f,0xba,0xf3,
1822
0xa0,0x3b,0x0f,0xba,0xb1,0xfd,0xbb,0x94,0x07,0xdd,0x79,0xd0,0x9d,0x07,0xdd,0x79,
1823
0x35,0xa0,0x8e,0xce,0x55,0x42,0x6f,0x1e,0xf4,0xe5,0x43,0x5f,0x3e,0xf4,0xe5,0x43,
1824
0x5f,0x3e,0xf4,0xe5,0x2f,0x03,0xd0,0x91,0x0f,0x1d,0xf9,0x68,0x3f,0x1f,0xed,0xe7,
1825
0xa3,0xfd,0x7c,0xb4,0x9f,0x8f,0xf6,0xf3,0xd1,0x7e,0x3e,0xda,0xcf,0x47,0xfb,0xf9,
1826
0x68,0x3f,0x7f,0x1b,0xb5,0xee,0xa0,0x23,0xf9,0x74,0x04,0x95,0x4b,0xd9,0x4a,0xe8,
1827
0x58,0x3e,0x3a,0x96,0x0f,0x05,0xf9,0xe8,0x58,0x3e,0x3a,0x96,0x0f,0x45,0x05,0x50,
1828
0x54,0xc0,0x2a,0xc2,0x4e,0x63,0x6f,0x06,0xd2,0x4b,0x40,0x1a,0xb5,0x6e,0x42,0x84,
1829
0xbe,0x15,0xa0,0x6f,0x05,0xd0,0x5b,0x80,0x26,0x0a,0xd0,0xb7,0x02,0xe8,0x2e,0x80,
1830
0x6e,0x6c,0xe5,0x0f,0xae,0xa7,0xd6,0x7d,0xd4,0x5a,0x87,0x83,0xbd,0x74,0x69,0x07,
1831
0xda,0x2e,0x5d,0x49,0x47,0x50,0xa7,0x14,0x7e,0x29,0xc5,0x26,0x27,0x03,0x1b,0xa4,
1832
0x0c,0x6c,0xd8,0x32,0xb0,0x49,0xca,0xc0,0x26,0x29,0x03,0x1b,0xb6,0x0c,0x6c,0xd8,
1833
0x32,0xb0,0x61,0xcb,0xc0,0x86,0x29,0x03,0x1b,0xb6,0x0c,0x6c,0x9a,0x32,0xb0,0x61,
1834
0xcb,0xc0,0xc6,0x29,0x03,0x1b,0xa7,0x0c,0x6c,0x9c,0x32,0xb0,0x71,0xca,0xc0,0xc6,
1835
0x29,0x03,0x1b,0xb6,0x0c,0x6c,0x94,0x32,0xb0,0x51,0xca,0xc0,0x86,0x2d,0x03,0x1b,
1836
0xb6,0x0c,0x6c,0xd8,0x32,0xb0,0x99,0xca,0xd8,0x07,0xaa,0x40,0x35,0xa8,0x01,0xb5,
1837
0x00,0xfe,0xcb,0xa8,0x07,0x0d,0xa0,0x91,0xce,0x65,0x62,0xc3,0x95,0x89,0x4d,0x6a,
1838
0x26,0x36,0xa8,0x99,0xd8,0x98,0x66,0x62,0x83,0x95,0x89,0x0d,0x56,0x26,0x36,0x9f,
1839
0x99,0xd8,0x88,0x65,0x62,0xa3,0x95,0x89,0x8d,0x67,0x26,0x36,0x9e,0x99,0xd8,0x78,
1840
0x66,0xc2,0xe6,0x4c,0x6c,0x3c,0x33,0xb1,0xf9,0xcb,0xc4,0xc6,0x33,0x13,0x1b,0xcf,
1841
0x4c,0x6c,0xc4,0x32,0xb1,0x11,0xcb,0xc4,0x66,0x30,0x13,0x2e,0xca,0xc4,0x46,0x31,
1842
0x73,0x0d,0xc0,0xc6,0x2d,0x13,0x1b,0xb7,0x4c,0x6c,0xdc,0x32,0xb1,0xa1,0xcd,0x5c,
1843
0x0f,0xd8,0x6f,0xfa,0xb0,0x39,0xcc,0xc4,0x86,0x2d,0x13,0x1b,0xc5,0x4c,0xf4,0x3f,
1844
0x13,0xfd,0xcf,0x44,0xff,0x33,0xd1,0xff,0x4c,0xf4,0x3f,0x13,0xfd,0xcf,0x44,0xff,
1845
0x33,0xd1,0xff,0x4c,0xf4,0x3f,0x13,0xfd,0xcf,0x44,0xff,0x33,0xd1,0xff,0x4c,0xf4,
1846
0x3f,0x13,0xfd,0xcf,0x44,0xff,0x33,0x77,0x51,0x4f,0xd9,0x12,0xea,0x5e,0xbf,0x07,
1847
0xab,0x67,0xc4,0xd8,0xc6,0x5f,0xa8,0x2a,0xc7,0x0a,0xbb,0x98,0xba,0x8a,0xb1,0xea,
1848
0x5e,0x83,0x15,0x75,0x31,0xf2,0x53,0xd8,0xd7,0x2c,0xdb,0xe8,0x62,0x43,0x12,0xf5,
1849
0xac,0x6b,0xa4,0x9e,0xfc,0x1a,0xea,0xd9,0x58,0x45,0xbd,0xf1,0x99,0xd4,0xbd,0x35,
1850
0x9e,0xba,0xf7,0xac,0xa7,0x8b,0x09,0xd9,0x74,0x11,0x36,0xf5,0x2c,0xaf,0xa7,0x5e,
1851
0x6c,0x8e,0x7b,0xb7,0x94,0x61,0x17,0x10,0x8f,0x15,0x79,0x25,0x75,0xef,0x48,0xa4,
1852
0x8b,0xec,0xeb,0x92,0x75,0xa5,0xd4,0x5b,0x95,0x4f,0x5d,0x95,0x98,0xcd,0x1b,0x4b,
1853
0xa8,0x67,0x6d,0x3a,0xf5,0x14,0x6f,0xa2,0xee,0xa5,0xec,0x2b,0x96,0x75,0xd4,0xb3,
1854
0xa1,0x80,0xba,0x6a,0xd3,0xb0,0x53,0x58,0x4b,0xdd,0x95,0xdb,0xe9,0xe2,0xd2,0x3a,
1855
0xea,0xc5,0xba,0xe5,0x42,0x43,0x32,0x76,0x00,0xfb,0xa8,0x6b,0x69,0x3e,0x75,0xaf,
1856
0x4a,0xa4,0xee,0x92,0x55,0x68,0x6f,0x39,0x56,0xfe,0x5b,0xd0,0x66,0x32,0xf5,0x64,
1857
0xe7,0x52,0xcf,0xbe,0x5d,0xd4,0x9b,0x5b,0x4e,0xbd,0xa5,0x88,0xf7,0xd5,0xd0,0xc5,
1858
0xa2,0x65,0xd8,0x5d,0x34,0xd2,0xc5,0xbd,0x1b,0xa8,0x07,0xfe,0xef,0x5d,0x96,0x48,
1859
0x3d,0x25,0x6b,0xa8,0x6b,0x23,0x74,0xd4,0xc1,0x9e,0x32,0xe4,0xc7,0x35,0x60,0x27,
1860
0x52,0x44,0x17,0x37,0xa6,0xa1,0xff,0xf1,0xd4,0xbb,0x1e,0x3a,0x36,0xae,0xa3,0xae,
1861
0xb2,0x22,0xf4,0x6b,0x15,0x75,0xef,0xcb,0xa1,0xee,0xba,0x4c,0xba,0xb8,0x67,0x17,
1862
0x5d,0xac,0xc2,0xee,0x24,0x7b,0x29,0x6c,0x58,0x49,0x3d,0xf1,0x88,0x53,0x72,0x01,
1863
0x74,0x6c,0xcd,0x85,0x8e,0x06,0xe8,0x28,0xc3,0xf9,0x4a,0xea,0xd9,0xc9,0xa0,0x3f,
1864
0x99,0xd0,0xd5,0x00,0x5f,0x56,0x53,0xd7,0xae,0x2d,0xd4,0xcd,0xac,0xa4,0x8b,0x19,
1865
0x29,0x74,0x31,0x6b,0x37,0x76,0x2e,0x6b,0xa1,0xaf,0x16,0x7d,0x6a,0xa4,0xae,0x86,
1866
0x6d,0x28,0x93,0x8e,0x9d,0xce,0x32,0xea,0xce,0xaa,0x82,0x9e,0x22,0xf8,0x3e,0x81,
1867
0xba,0x0a,0xf3,0xe9,0x62,0x2e,0x76,0x34,0x2b,0xe0,0x97,0xed,0xd8,0x39,0xed,0xac,
1868
0xa1,0xee,0x72,0x5c,0x87,0xa5,0xd0,0xb3,0xb4,0x98,0xba,0x31,0xe6,0x2f,0x66,0x15,
1869
0xc3,0xbf,0x3b,0xb1,0xcb,0xc2,0x8e,0x29,0x25,0x95,0xba,0x8b,0xe2,0xe8,0x62,0x05,
1870
0xfc,0x91,0x8a,0x6b,0x5a,0xb2,0x92,0x7a,0x53,0xb0,0x11,0x5c,0x5a,0x49,0x5d,0x2b,
1871
0x70,0x0d,0x6a,0x77,0x50,0xf7,0xda,0x24,0xf8,0x1c,0xfd,0xdd,0x84,0x6b,0xb3,0x06,
1872
0xd7,0x61,0x1b,0xe2,0x9a,0xb5,0xd4,0x5b,0x9b,0x81,0xeb,0x9f,0x8c,0xdd,0xd5,0x3e,
1873
0xea,0xa9,0x87,0x7e,0xec,0xed,0xba,0x93,0x71,0x7d,0x96,0xa0,0x1f,0x2b,0xd9,0xfe,
1874
0x6f,0xa4,0x8b,0x49,0xd8,0xb9,0xad,0x04,0x5b,0xd2,0xe8,0xe2,0xff,0x63,0xd7,0x6d,
1875
0x80,0x9a,0xba,0xd6,0xfd,0xff,0x85,0x82,0x12,0x0b,0x05,0x94,0x28,0x58,0xb0,0xa0,
1876
0x44,0xc5,0x12,0x48,0x4e,0x93,0x96,0x60,0x68,0x45,0x41,0x09,0x24,0xbc,0xa3,0xa0,
1877
0xa0,0xd2,0x02,0x26,0x90,0x28,0x81,0x04,0x08,0x24,0x90,0x57,0x48,0x42,0xc2,0x4b,
1878
0x05,0x0a,0x15,0x5a,0x50,0x50,0xb0,0x60,0x45,0x88,0x82,0x05,0x2b,0x77,0x64,0xae,
1879
0xf4,0x27,0x33,0x32,0x23,0xb7,0xd2,0xca,0x8c,0x9c,0x12,0x24,0x77,0x64,0x06,0x7e,
1880
0x23,0xff,0x29,0xff,0x91,0x99,0xff,0xb3,0x42,0xdb,0x7f,0xcf,0xb9,0xe7,0xdc,0xf3,
1881
0xd6,0xd3,0x7b,0x7b,0x4a,0x3e,0xac,0xef,0x5e,0x7b,0xad,0xbd,0xd7,0x5e,0xeb,0x79,
1882
0x9e,0xb5,0xf6,0xde,0x24,0xb7,0x20,0x56,0x14,0x70,0x8d,0xc1,0xcb,0x68,0xee,0xfc,
1883
0x35,0x64,0x91,0x5f,0x42,0x16,0xa3,0x1e,0x99,0xb5,0xf0,0x36,0xa6,0x87,0x37,0xb4,
1884
0x0f,0x86,0x20,0x16,0xb4,0x10,0x1f,0xf8,0xba,0x3a,0x64,0xfe,0x02,0xfc,0x6f,0x84,
1885
0x1b,0xf5,0xb5,0x6b,0xe8,0xd9,0x75,0xb8,0x3e,0xc4,0x03,0xbc,0x67,0x20,0xf3,0x05,
1886
0xb0,0xcd,0x4d,0x18,0x97,0x1c,0xec,0x07,0x73,0xef,0x59,0x0d,0x8e,0xaf,0x8f,0xa0,
1887
0xed,0x32,0x64,0xd1,0xf6,0x81,0x2f,0x6e,0x22,0x4b,0xb3,0x16,0xde,0x00,0x1b,0xc0,
1888
0x56,0x15,0xe8,0xd9,0x65,0xb8,0x56,0x19,0x94,0x7f,0xd4,0x8f,0x66,0xe1,0xfd,0x66,
1889
0xe6,0x36,0xc4,0x84,0xea,0x23,0xb0,0x2f,0xd8,0xe0,0xfa,0x17,0x68,0xb6,0x1e,0xe2,
1890
0xaf,0xbc,0x12,0xe2,0x54,0x09,0xfd,0x82,0xb8,0x51,0x0c,0xa2,0xd9,0x8f,0xe0,0xfc,
1891
0x06,0xa8,0xd7,0x83,0x7d,0x9a,0xa1,0x0f,0x9f,0xf4,0x42,0x5c,0x29,0xd0,0xec,0x6d,
1892
0xb8,0x66,0x35,0x8c,0xa7,0x0e,0xce,0x69,0xfd,0x14,0xec,0x5e,0x8d,0x2c,0x60,0xf3,
1893
0x59,0x2d,0x5c,0xa3,0xb1,0x1f,0x99,0xe5,0x9f,0x22,0x73,0x1f,0xbc,0x71,0xde,0xba,
1894
0x0a,0xe3,0x84,0xb7,0x51,0xb8,0xfe,0xac,0x06,0xe2,0xae,0x05,0xec,0xf5,0x11,0x5c,
1895
0x57,0x0b,0x36,0xaf,0x06,0xfb,0xf6,0x80,0x2f,0x1a,0x20,0x4e,0x9a,0xc1,0x86,0x17,
1896
0x3b,0xc0,0x8f,0xed,0xd0,0x6e,0x19,0x7a,0xf6,0x21,0xc4,0xd4,0x10,0xbc,0xe1,0x5e,
1897
0x82,0x38,0xb8,0xd4,0x0a,0x63,0x01,0xbb,0x1a,0xa0,0x8f,0xf8,0xdf,0xc5,0xd5,0xcd,
1898
0xd0,0x4f,0x88,0xdd,0x0f,0x20,0xde,0x3f,0xbc,0x0d,0xed,0x81,0xfd,0x7a,0xa0,0xdd,
1899
0xdb,0x9f,0xa0,0x59,0x58,0x73,0x67,0x6f,0x55,0xc0,0x5c,0xe8,0x40,0xcf,0xba,0xc0,
1900
0xc7,0x37,0x20,0x6e,0x2a,0xe4,0xe8,0x99,0xb2,0x11,0xcd,0x75,0x83,0x1d,0x3e,0x97,
1901
0xa3,0x39,0xc3,0x4d,0xb8,0x3e,0xb4,0xa3,0x85,0xb9,0x79,0xfb,0x32,0xc4,0x04,0xcc,
1902
0x85,0x5e,0x88,0xeb,0x6b,0xe0,0xdf,0x3e,0x18,0xc3,0x47,0xe0,0x1f,0xfc,0x6f,0x37,
1903
0xb8,0xff,0x99,0x3f,0x3f,0x0f,0xf1,0x21,0x47,0xe6,0x0f,0x21,0xb5,0x82,0x2f,0x1b,
1904
0xfb,0x20,0x56,0x20,0xb6,0x0c,0x30,0xb7,0x2e,0x80,0x2f,0xdb,0x06,0x61,0x8e,0xc0,
1905
0x7e,0x3b,0xf4,0xfb,0x72,0x15,0xd8,0xbb,0x1e,0xae,0x09,0x31,0xd6,0x00,0x31,0xfe,
1906
0x29,0xcc,0x6f,0x39,0x24,0x15,0xcc,0xe7,0x4b,0x30,0xa7,0x2e,0x81,0x4d,0xdb,0xe0,
1907
0x8d,0xfc,0x26,0xf8,0x00,0xde,0xb4,0x2c,0x1f,0xdd,0x02,0xbf,0x80,0x6d,0x55,0x57,
1908
0xe0,0x1a,0x70,0x2d,0x98,0xc3,0xe6,0x0a,0xf0,0xab,0x11,0xaf,0x1b,0xf0,0x56,0x0f,
1909
0xf3,0xd2,0xdc,0xd8,0x01,0xd7,0x85,0x6b,0x83,0x6d,0xcc,0x3d,0x30,0xcf,0x95,0xb5,
1910
0x60,0x47,0xb0,0x53,0x19,0xd8,0xab,0xfc,0x06,0xc4,0x3c,0xac,0x1f,0x60,0xab,0x59,
1911
0xb8,0x8f,0xce,0x5e,0x84,0xfe,0x9b,0x6e,0xa1,0xd9,0x7e,0x1c,0x73,0x60,0x3f,0x0d,
1912
0xc4,0x8b,0x16,0x7c,0x53,0x0d,0xf9,0x8b,0x35,0xd0,0x47,0xf0,0x17,0xac,0x45,0xcf,
1913
0xda,0xc1,0x76,0xed,0xd0,0xcf,0xcb,0x46,0x48,0xe0,0xef,0x4e,0xb0,0xcf,0x55,0x88,
1914
0xfd,0xcf,0x60,0xdb,0x0f,0xc7,0x0c,0x40,0x7e,0xe8,0x06,0x9a,0x93,0xc3,0x5a,0x55,
1915
0xde,0x0d,0xf3,0x01,0xfc,0x50,0xf3,0x21,0x9a,0x6b,0xab,0x46,0x73,0x97,0xeb,0xd1,
1916
0x5c,0x17,0xcc,0xab,0x2e,0x28,0xeb,0x3d,0x8f,0xe6,0xfa,0x20,0x4e,0xef,0x40,0x9c,
1917
0x5d,0x00,0x1f,0x7c,0xf2,0x05,0xc4,0x1a,0xc4,0x88,0xc2,0x84,0x16,0xda,0x2a,0xae,
1918
0xa1,0x39,0x2d,0x18,0xbc,0xff,0x32,0x2c,0x3c,0x30,0x89,0xa0,0xd3,0x33,0x77,0x60,
1919
0x20,0x1a,0x0d,0xec,0xc3,0xb6,0x02,0x8c,0x5f,0x01,0x4e,0xa8,0xab,0x83,0xc1,0x36,
1920
0x82,0x81,0xc1,0xc1,0x17,0x7b,0x61,0xb1,0x54,0x43,0xaa,0x45,0xe6,0x4e,0xd8,0xef,
1921
0x82,0x41,0x7f,0xfe,0x01,0x24,0xa8,0x1f,0x82,0x80,0xb9,0xd3,0x0d,0x81,0xdb,0x00,
1922
0x06,0x80,0xc1,0xab,0x61,0x32,0x6b,0x5a,0x20,0xe0,0x60,0xb2,0xc1,0x0d,0x63,0xb6,
1923
0xba,0x09,0xcd,0xd6,0x7c,0x00,0x06,0xa9,0x87,0xc5,0xef,0x02,0x04,0x14,0x6c,0x3f,
1924
0x87,0xed,0xe7,0x10,0xf8,0x72,0x70,0x10,0xdc,0x6c,0x9f,0x69,0x4d,0xe8,0x99,0x1e,
1925
0x16,0xa2,0x9a,0x1e,0xf4,0xac,0x16,0x82,0xac,0xf6,0x73,0xf4,0xac,0x01,0x82,0xa9,
1926
0xe1,0x13,0x70,0x26,0x2c,0xc0,0xb0,0x88,0x3f,0x6b,0x06,0xa7,0x36,0x83,0x21,0x2e,
1927
0xc1,0xc2,0x74,0x15,0x8e,0xeb,0x81,0x63,0x4c,0x50,0x37,0x08,0x4e,0x35,0x82,0x53,
1928
0xf1,0x82,0xdf,0x0c,0x83,0x6f,0x07,0x23,0x5c,0x86,0x85,0xf3,0x2a,0x2c,0xe6,0x9f,
1929
0x42,0xc0,0x7d,0x0a,0x86,0xba,0x06,0x8b,0xe0,0x20,0x38,0x5c,0x01,0x8b,0x68,0x59,
1930
0x23,0xb2,0xe8,0xc0,0x30,0x8d,0xe0,0x74,0xb8,0x09,0x5b,0x5a,0x2a,0x90,0xa5,0xeb,
1931
0x03,0xb4,0x70,0xb1,0x55,0x8f,0x45,0x8d,0x16,0x2e,0xc1,0x3d,0xea,0xdb,0x6b,0xcd,
1932
0x68,0x46,0x0e,0x66,0x92,0x0f,0xa0,0x85,0x76,0x9d,0x0e,0xa4,0xb7,0x1a,0x2d,0x5c,
1933
0x81,0xb0,0xb3,0x0c,0xa9,0x90,0xe5,0x4e,0x25,0xca,0xcc,0x44,0x99,0x3c,0x94,0x09,
1934
0x4f,0xd1,0x78,0x03,0xdb,0x3c,0x11,0x9a,0xe8,0xc3,0x3f,0x65,0xea,0xc3,0x3f,0x81,
1935
0xea,0xc3,0xbf,0x7a,0xba,0xb3,0xba,0xdb,0x8d,0xbe,0x6a,0xfc,0x8f,0x3e,0xf4,0xd5,
1936
0x8d,0xff,0xb8,0x85,0xbe,0xba,0x88,0xbe,0xaa,0x45,0x5f,0x5d,0x40,0x5f,0x35,0xa1,
1937
0xaf,0x9a,0xd1,0x57,0x1d,0xe8,0xab,0xab,0xe8,0xab,0xce,0xaf,0x14,0x58,0x94,0x20,
1938
0xff,0x31,0x68,0xcd,0xc3,0x06,0xf6,0xaa,0xf1,0x19,0xd5,0xff,0xd1,0x8f,0x65,0x10,
1939
0x7d,0x55,0x83,0xe5,0x03,0x2c,0xe7,0xb1,0xd4,0x62,0xa9,0xc3,0x52,0x8f,0xa5,0x01,
1940
0x4b,0x23,0x96,0x8f,0xb0,0x5c,0xc0,0xd2,0x84,0xe5,0x63,0x2c,0x2d,0x58,0x5a,0xb1,
1941
0x5c,0xc2,0xd2,0x86,0xe5,0x32,0x96,0x2b,0x58,0x3a,0xb0,0x74,0x62,0xb9,0xba,0xda,
1942
0xe8,0x00,0xbe,0xda,0x17,0xb8,0x95,0x2f,0xf0,0xc1,0x20,0xd5,0xd0,0xe3,0xc9,0x1e,
1943
0x34,0xf9,0x39,0x9a,0xbc,0x83,0xbe,0x96,0xa3,0xc9,0xdb,0x68,0xf2,0x0b,0x34,0x39,
1944
0x80,0xbe,0x6e,0x43,0x5f,0x5f,0x46,0x5f,0xab,0xd1,0xd7,0x2a,0xf4,0x75,0x19,0xfa,
1945
0xba,0x1c,0x7d,0x6d,0x44,0x5f,0x1b,0xd0,0xd7,0x95,0xe8,0x6b,0x2d,0xfa,0xba,0x01,
1946
0x7d,0x5d,0x83,0xbe,0xee,0x44,0x5f,0x7f,0x86,0xbe,0xee,0x45,0x5f,0xf7,0xa0,0xaf,
1947
0x6f,0xa3,0xaf,0x3f,0x47,0xdf,0xc8,0xd1,0x37,0x0a,0xf4,0xf5,0x1d,0xf4,0xcd,0x07,
1948
0xe8,0x9b,0xf3,0xe8,0xeb,0x6e,0xf4,0x4d,0x39,0xfa,0xa6,0x0c,0x7d,0xa3,0x45,0xdf,
1949
0x54,0xa0,0x6f,0x34,0xe8,0x1b,0x1d,0xfa,0xa6,0x1a,0x4d,0xea,0xd0,0xe3,0xcb,0x8f,
1950
0xaf,0x80,0x7c,0x53,0x07,0x32,0xa9,0xc5,0xb9,0x72,0x2c,0x65,0x58,0xac,0xbb,0xd5,
1951
0xb8,0x02,0x8e,0x36,0xe0,0x43,0xbb,0xb0,0x74,0xe3,0x12,0x0d,0x16,0x3d,0x7a,0xdc,
1952
0x81,0xcb,0x3a,0x70,0x59,0xc7,0xe3,0x6b,0x20,0xb8,0xa2,0x03,0xb7,0xdb,0x81,0x6b,
1953
0xaf,0xe2,0xda,0xab,0xb8,0xf6,0x2a,0xae,0xbd,0x8a,0x6b,0xaf,0xe2,0xda,0xab,0xb8,
1954
0xf6,0x53,0x5c,0xfb,0x29,0x2e,0xfb,0x14,0x97,0x7d,0x8a,0xcb,0xba,0xf0,0xc1,0x5d,
1955
0xb8,0xac,0x1b,0xd7,0x76,0xe3,0xdc,0x35,0x9c,0xbb,0x86,0x2b,0xae,0xe1,0xdd,0x5e,
1956
0xbc,0xdb,0x8b,0x77,0x7b,0x71,0xa3,0xbd,0xb8,0xcc,0x84,0x77,0x4d,0x38,0x77,0x13,
1957
0xd7,0xde,0xc4,0xbb,0x37,0x71,0xed,0x4d,0x5c,0x76,0x0b,0xef,0xde,0xc2,0xb9,0x7e,
1958
0x2c,0x03,0xf8,0x90,0x01,0x9c,0xbb,0x8d,0x73,0xb7,0x21,0x37,0xa9,0x80,0x1c,0x48,
1959
0x37,0x96,0x6b,0x20,0xd6,0x32,0xe8,0x15,0x88,0x1e,0x4d,0x2a,0x71,0x85,0x12,0x97,
1960
0x29,0x71,0x99,0x12,0x97,0xa9,0xc0,0x70,0x20,0x5d,0x58,0xba,0xb1,0xc0,0x69,0xaa,
1961
0x49,0x35,0x16,0x0d,0x16,0x1d,0x16,0x38,0x4e,0x8d,0x0f,0x51,0xe3,0x43,0xd4,0xf8,
1962
0x10,0x35,0xae,0x55,0xe3,0x5a,0x35,0xae,0xd5,0xe0,0x5a,0x0d,0xae,0xd5,0xe0,0x5a,
1963
0x0d,0xae,0xd5,0xe0,0x5a,0x0d,0xae,0x2d,0xc3,0xb5,0x65,0xb8,0xb6,0x0c,0xd7,0x96,
1964
0xe1,0xda,0x32,0x5c,0x5b,0x86,0x6b,0xcb,0x71,0x6d,0x39,0x2e,0x2b,0xc7,0x65,0xe5,
1965
0xb8,0x4c,0x8f,0xcb,0xf4,0xf8,0x0c,0x3d,0x3e,0x43,0x8f,0x6b,0xf5,0xb8,0x56,0x8f,
1966
0xad,0x7b,0x7d,0xf2,0x3a,0x7a,0xdc,0x03,0x32,0xa9,0x03,0xf1,0x9a,0x34,0x4c,0xd6,
1967
0x80,0x1a,0xad,0x5a,0x69,0xd5,0x2a,0xab,0x56,0x5b,0xb5,0x06,0x1f,0x7d,0xf9,0x71,
1968
0x0f,0x96,0x1b,0xd8,0xdf,0x65,0xd8,0xcb,0x3d,0x58,0x6e,0x60,0x07,0x97,0x61,0xb7,
1969
0xf6,0x60,0xb9,0x81,0x3d,0x5a,0x86,0x3d,0xda,0x83,0xe5,0x06,0x76,0x66,0x19,0x1e,
1970
0xd2,0x15,0xdc,0xf3,0x1e,0x2c,0x37,0x70,0xa7,0xcb,0x70,0xb7,0x7a,0xb0,0xdc,0xc0,
1971
0x3d,0xc2,0x51,0x86,0x9d,0x74,0x79,0xb2,0x1c,0xb7,0x57,0x8e,0x5b,0x29,0xc7,0xce,
1972
0xb4,0xda,0xa9,0x1c,0x9f,0x51,0x8e,0xc7,0x75,0x1d,0x1f,0x5c,0x8e,0x1b,0x2d,0xc7,
1973
0xfe,0x06,0xe9,0xc3,0xde,0xeb,0xc3,0xb5,0x72,0x6b,0xc7,0x61,0x53,0xb5,0xba,0xc1,
1974
0x5d,0x07,0x5f,0xeb,0xb0,0xe8,0xb1,0x9b,0x75,0x58,0xf4,0xd8,0xcd,0x3a,0x2c,0x7a,
1975
0xdc,0x82,0x0e,0x8b,0x1e,0xb7,0xa0,0xc3,0xa2,0xc7,0x81,0xa6,0xc3,0x82,0x23,0x10,
1976
0xe7,0xba,0x70,0xee,0x1a,0xce,0x5d,0xc3,0x39,0x13,0xce,0x99,0x70,0xee,0x26,0xce,
1977
0xdd,0xb4,0x9e,0x8b,0x63,0xa7,0x0f,0x47,0x56,0x1f,0x1e,0x43,0x1f,0x1e,0x7a,0x2f,
1978
0x16,0x13,0x96,0x9b,0x58,0xae,0x4c,0x56,0x58,0xe7,0x80,0x35,0xec,0x57,0x03,0xfa,
1979
0xea,0x6a,0x48,0x5f,0x5d,0x0d,0xe5,0xab,0x56,0xff,0x5b,0x37,0xdd,0xab,0x9b,0x6b,
1980
0xd6,0xe8,0xc7,0x7b,0xdd,0xd6,0x10,0xb0,0x6e,0x74,0xd6,0x78,0x5f,0x0d,0xfb,0xae,
1981
0xd5,0xc0,0xef,0x5a,0x1d,0x83,0xf5,0xc8,0xde,0xd5,0x56,0x7a,0xad,0xd1,0x83,0xa7,
1982
0xc2,0xf7,0x93,0xc1,0x6a,0xa3,0xd5,0xeb,0xf5,0xad,0x8e,0xa8,0x6f,0xf5,0x0a,0x7d,
1983
0xab,0x75,0x37,0x57,0x47,0x7d,0x73,0xb5,0x2f,0xb7,0x56,0x1b,0xbb,0xb5,0x5a,0x77,
1984
0x6b,0xf5,0xea,0x03,0xab,0x9d,0x1f,0x58,0x2d,0x1c,0x58,0xed,0xcb,0xed,0xd5,0xbd,
1985
0xdb,0xab,0x87,0xdc,0x5e,0x8d,0x57,0x85,0xb5,0x15,0x3c,0x49,0xbe,0x9f,0x2b,0xd6,
1986
0x38,0xb7,0x5e,0xdd,0xba,0xd1,0xaf,0x6e,0x74,0xd6,0x09,0xb1,0x3a,0x25,0xae,0xad,
1987
0x4e,0x85,0xef,0xa3,0xbf,0xfb,0xfb,0x99,0x60,0x9d,0x01,0xab,0x27,0x68,0xac,0xa3,
1988
0xc5,0x9b,0xd5,0xc2,0x6b,0xab,0x87,0x5c,0x5b,0xdd,0xeb,0xc2,0x61,0x52,0xbe,0x3a,
1989
0x83,0xca,0x57,0xaf,0x57,0xb6,0x7a,0x7a,0xd9,0xea,0x85,0xca,0x56,0xcf,0x2b,0xb3,
1990
0x1a,0x0b,0x4f,0x1e,0xeb,0x94,0x5a,0xed,0xae,0x7e,0x75,0x0c,0x1d,0xab,0xfe,0xbd,
1991
0xba,0x6a,0x9e,0xab,0xab,0x66,0xbd,0xfa,0x43,0xe1,0xb5,0xd5,0xa5,0xca,0x3a,0xcc,
1992
0xab,0xab,0x63,0xef,0x5a,0xdd,0xeb,0x5a,0x35,0x5d,0xd7,0x0f,0xce,0xb1,0x1e,0x69,
1993
0x5a,0x0d,0xa0,0xbe,0xd5,0xcd,0xcd,0x1f,0x06,0xdd,0x65,0xdd,0xac,0x5e,0x5d,0xbf,
1994
0x5a,0xa8,0x5f,0x2d,0xd4,0xaf,0x16,0x6a,0x56,0x37,0xca,0x1f,0xe6,0x7c,0xf7,0x6a,
1995
0xe0,0x5a,0xf7,0x54,0x3f,0x2e,0x04,0xdf,0xaf,0x11,0x3f,0xb4,0xa9,0x59,0xad,0xd3,
1996
0xac,0xf6,0x45,0x6f,0x5d,0x2f,0xbf,0xb7,0x19,0xde,0x28,0x56,0xfb,0xd9,0xb1,0x5a,
1997
0xd7,0xbb,0x7a,0x5e,0xd9,0xea,0x30,0x4d,0x93,0x6a,0xb8,0x2f,0xc0,0xf5,0xf0,0x06,
1998
0x82,0x54,0x6d,0x9d,0x6c,0x90,0x51,0x59,0xa7,0xf7,0xaa,0x13,0x1e,0x7f,0x66,0x3d,
1999
0x70,0x75,0x9d,0xec,0x81,0xe0,0xd2,0xc2,0xda,0x06,0x7b,0x6a,0xeb,0x54,0x9c,0xd4,
2000
0x42,0x89,0xda,0x1a,0x6e,0xd6,0xc5,0x6c,0x75,0xe3,0xf5,0x43,0x63,0x5e,0x3f,0x1c,
2001
0xe8,0xf5,0xff,0x1f,0xd8,0x35,0xa9,0xf6,0xc2,0x62,0x3d,0x06,0x2e,0xd7,0xf3,0x8d,
2002
0x01,0x67,0x91,0x1f,0xfa,0x56,0xae,0x40,0x41,0xc8,0x1b,0xbd,0x0b,0xb9,0x7a,0x48,
2003
0x1f,0xa2,0xdf,0xcb,0xf1,0x8f,0xac,0xce,0xa3,0x53,0xa8,0x18,0xc9,0xa0,0xa4,0x16,
2004
0x12,0x3c,0x38,0xc8,0xab,0x21,0xd5,0x40,0xd2,0x43,0xaa,0x80,0x64,0x80,0x64,0x84,
2005
0x54,0x09,0xa9,0x0a,0x9d,0x40,0xa9,0x68,0x17,0xda,0x8d,0xf6,0x21,0x32,0x62,0xa2,
2006
0x77,0x50,0x0a,0xf2,0x41,0x24,0x74,0x00,0x56,0xb2,0x0a,0xbc,0x32,0x54,0xe0,0x05,
2007
0x0f,0x2f,0x77,0x78,0xb1,0xb3,0x2e,0x1c,0x78,0xbd,0xb3,0x2e,0x1d,0x78,0xc9,0xb3,
2008
0x2e,0x1e,0x78,0xd5,0xc3,0x19,0xbc,0xfc,0x7d,0x80,0x33,0x60,0xa0,0x56,0xf4,0xf8,
2009
0x22,0x7a,0x7c,0x09,0x3d,0x6e,0x43,0x8f,0xdb,0x61,0xb1,0x42,0xf8,0x8e,0xd9,0x81,
2010
0x1e,0x77,0x42,0x50,0xc0,0x9a,0x84,0xac,0xf7,0x29,0x84,0xe7,0x15,0x98,0x0c,0xaf,
2011
0xaf,0x08,0x2f,0x80,0xbd,0x10,0x08,0x60,0x16,0x88,0x03,0x98,0x4c,0x70,0xe3,0x01,
2012
0xdb,0xc1,0x5c,0x01,0xc7,0x80,0xe1,0xc1,0x75,0x08,0xdf,0x29,0x70,0x70,0x22,0xab,
2013
0x35,0xd1,0xaa,0x5b,0x2f,0x62,0xb9,0x84,0xa5,0x1d,0xcb,0x15,0xb4,0x13,0xed,0x41,
2014
0x01,0xe8,0x24,0x92,0xa2,0x12,0xf4,0xfb,0xcb,0x1a,0x48,0xf8,0xfb,0x1d,0xfc,0xbd,
2015
0x0f,0xfe,0x5a,0xe5,0x12,0xa4,0x76,0x48,0x57,0x20,0xe1,0x7f,0xeb,0xc2,0xbe,0x0a,
2016
0xf6,0xe1,0xd9,0xfa,0x5b,0x95,0x0a,0xad,0xfe,0x83,0x17,0x7f,0xbd,0xd0,0x88,0xf0,
2017
0xd7,0xe4,0xff,0x76,0x11,0xfd,0xdb,0x25,0xf4,0x6f,0x5d,0xe8,0xdf,0x2e,0xa3,0x7f,
2018
0x6b,0x47,0xbf,0x87,0x53,0x7e,0x5f,0xab,0x44,0xbf,0x87,0xd7,0xb6,0xdf,0x97,0xd5,
2019
0x40,0xfa,0x00,0xd2,0x79,0xf4,0xfb,0xfa,0x16,0xf4,0xfb,0x0f,0x2b,0xd0,0x42,0x75,
2020
0x75,0x07,0x96,0x4e,0x2c,0x57,0xb1,0x7c,0x8a,0xa5,0x0b,0x4b,0x37,0x96,0x6b,0x58,
2021
0x3e,0xc3,0x72,0x1d,0x4b,0x0f,0x96,0x1b,0x58,0x7a,0xb1,0xf4,0x61,0x31,0x61,0xb9,
2022
0x89,0xe5,0x16,0x96,0x7e,0x2c,0x03,0x58,0x6e,0x63,0xf9,0x1c,0xcb,0x20,0x96,0x21,
2023
0x2c,0x77,0xb0,0x7c,0x01,0x52,0x23,0xc7,0xa2,0xc0,0xa2,0xc4,0xa2,0xc2,0xa2,0xc6,
2024
0xa2,0xc1,0x52,0x86,0xa5,0x1c,0x8b,0x16,0x8b,0x0e,0x8b,0x1e,0x0b,0xee,0x73,0x8d,
2025
0x01,0x8b,0x11,0x4b,0x25,0x96,0x2a,0x90,0xf3,0x0d,0x58,0x1a,0xb1,0x7c,0x84,0xe5,
2026
0x02,0x96,0x26,0x2c,0xcd,0x58,0x3e,0xc6,0xf2,0x09,0x96,0x16,0x2c,0xad,0x58,0x2e,
2027
0x62,0xb9,0x84,0xa5,0x0d,0x4b,0x3b,0x96,0xcb,0x58,0xae,0x60,0xc1,0x76,0x39,0x8f,
2028
0xed,0x72,0x1e,0xdb,0xe5,0x3c,0xb6,0xcb,0x79,0x6c,0x97,0xf3,0xd8,0x2e,0xe7,0xb1,
2029
0x5d,0xce,0x63,0xbb,0x9c,0xc7,0x76,0x39,0x8f,0xed,0x72,0x1e,0xdb,0xe5,0x3c,0xb6,
2030
0xcb,0x79,0x6c,0x97,0xf3,0xd8,0x2e,0xe7,0xb1,0x5d,0xce,0x63,0xbb,0x9c,0xc7,0x76,
2031
0x39,0x8f,0xed,0x72,0x1e,0xdb,0xe5,0x3c,0xb6,0x4b,0xfd,0x87,0x58,0x70,0xc7,0xeb,
2032
0x71,0xc7,0xeb,0x71,0xc7,0xeb,0x71,0xc7,0xeb,0x71,0xc7,0xeb,0x71,0xc7,0xeb,0x71,
2033
0xc7,0xeb,0x71,0xc7,0xeb,0x71,0xc7,0xeb,0x71,0xc7,0xeb,0x71,0x9f,0xeb,0x71,0x9f,
2034
0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,
2035
0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,
2036
0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x9f,0xeb,0x71,0x77,0xeb,0x71,0x77,0xeb,0x71,0x77,
2037
0xeb,0x71,0x77,0xeb,0x71,0x77,0xeb,0x71,0x77,0xeb,0x71,0x77,0xeb,0xad,0x3d,0x1d,
2038
0x44,0xff,0xa7,0x1a,0xfd,0x9f,0x1a,0xf4,0x65,0x23,0xfa,0xf2,0x12,0xfa,0xcf,0xee,
2039
0xcb,0xe8,0xcb,0x76,0xf4,0x65,0x1b,0x9a,0xbe,0x59,0x83,0x46,0x1b,0xd0,0xe8,0xc7,
2040
0xe8,0xcb,0x4e,0x34,0x7a,0x11,0x7d,0x79,0x01,0x7d,0xd9,0x84,0x46,0xaf,0xa0,0x2f,
2041
0xd5,0xe8,0xcb,0xab,0xe8,0x4b,0xe8,0x42,0xf3,0xa0,0x1a,0xfd,0xe7,0xc7,0x95,0x68,
2042
0xf4,0x1a,0xce,0x6b,0xd0,0x97,0x95,0x78,0x5b,0x86,0x46,0x6f,0xa2,0xd1,0xdb,0x38,
2043
0xab,0x45,0xa3,0x77,0xd0,0x97,0x1d,0xe8,0xcb,0xcb,0xd0,0x30,0x9c,0x79,0x05,0xfd,
2044
0xbe,0xa7,0x07,0x7d,0x59,0x85,0xbe,0x6c,0x45,0x5f,0x42,0x93,0x0d,0xe8,0xdf,0xe5,
2045
0xe8,0xdf,0x15,0xe8,0xdf,0x95,0xf8,0x68,0x3d,0x16,0xb8,0x5c,0x3d,0xfa,0xf2,0x43,
2046
0x9c,0xc5,0x01,0xd1,0x8b,0x83,0xa9,0x17,0x07,0x53,0x2f,0x0e,0xa6,0x5e,0x1c,0x4c,
2047
0xbd,0x38,0x98,0x7a,0x71,0x30,0xf5,0xe2,0x60,0xea,0xc5,0xc1,0xd4,0x8b,0x83,0xa9,
2048
0x17,0x07,0x53,0x2f,0x0e,0xa6,0x5e,0xeb,0xb9,0x38,0x98,0x7a,0x71,0x30,0xf5,0xe2,
2049
0x60,0xea,0xc5,0xc1,0x84,0x5f,0x55,0xaa,0x7b,0x6b,0xb0,0x7c,0x80,0xe5,0x3c,0x96,
2050
0x5a,0x2c,0x75,0x58,0xea,0xb1,0x60,0xdf,0xf5,0x62,0xdf,0xf5,0x62,0xdf,0xf5,0x62,
2051
0xdf,0xf5,0x62,0xdf,0xf5,0x62,0xdf,0xf5,0x62,0xdf,0xf5,0x62,0xdf,0xf5,0x62,0xdf,
2052
0xf5,0x62,0xdf,0xf5,0x62,0xdf,0xf5,0xe2,0xa0,0xeb,0xc5,0x0e,0xec,0xc5,0x0e,0xec,
2053
0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,
2054
0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x0e,
2055
0xec,0xc5,0x0e,0xec,0xc5,0x0e,0xec,0xc5,0x41,0x67,0xc2,0xbb,0x26,0xbc,0x6b,0xb2,
2056
0xee,0x62,0xa7,0x9a,0xb0,0x53,0x4d,0xd8,0xa9,0x26,0xec,0x54,0x13,0x76,0xaa,0x09,
2057
0x3b,0xd5,0x84,0x9d,0x6a,0xc2,0x31,0x68,0xc2,0x9e,0x35,0xe1,0xb9,0x69,0xc2,0x73,
2058
0xd3,0x84,0xe7,0xa6,0x09,0xcf,0xcd,0x9b,0xd8,0x9c,0x37,0xb1,0x39,0x6f,0x62,0x73,
2059
0xde,0xc4,0xe6,0xbc,0x89,0xcd,0x79,0x13,0xcc,0x59,0x73,0x49,0x8e,0x45,0x81,0x45,
2060
0x89,0x45,0x85,0x45,0x8d,0xc5,0x5a,0x5b,0x86,0xa5,0x1c,0x8b,0x16,0x8b,0x0e,0x8b,
2061
0x1e,0x4b,0x05,0x16,0x03,0x16,0x23,0x96,0x4a,0x2c,0x55,0x58,0xaa,0xb1,0xd4,0x60,
2062
0xf9,0x00,0xcb,0x79,0x2c,0xb5,0x58,0xea,0xb0,0xd4,0x63,0xf9,0x10,0x4b,0x03,0x96,
2063
0x46,0x2c,0x1f,0x61,0xb9,0x80,0xa5,0x09,0x4b,0x33,0x96,0x8f,0xb1,0x80,0xb1,0xeb,
2064
0x07,0x5a,0xb0,0xb4,0x62,0xb9,0x88,0xe5,0x12,0x96,0x36,0x2c,0xed,0x58,0x2e,0x63,
2065
0xb9,0x82,0xa5,0x03,0x4b,0x27,0x96,0xab,0x58,0x3e,0xc5,0xd2,0x85,0xa5,0x1b,0xcb,
2066
0x35,0x2c,0x9f,0x61,0xb9,0x8e,0xa5,0x07,0xcb,0x0d,0x2c,0xbd,0x58,0xfa,0xb0,0x98,
2067
0xb0,0xdc,0xc4,0x72,0x0b,0x4b,0x3f,0x96,0x01,0x2c,0xb7,0xb1,0x7c,0x8e,0x65,0x10,
2068
0xcb,0x10,0x96,0x3b,0x58,0xc0,0xba,0xf5,0xb7,0x71,0xc5,0x6d,0x5c,0x71,0x1b,0x57,
2069
0xdc,0xc6,0x15,0xb7,0x71,0xc5,0xe7,0x72,0x2c,0x0a,0x2c,0x4a,0x2c,0x2a,0x2c,0x6a,
2070
0x2c,0x1a,0x2c,0x65,0x58,0xca,0xb1,0x68,0xb1,0xe8,0xb0,0xe8,0xb1,0x54,0x60,0x31,
2071
0x60,0x31,0x62,0xa9,0xc4,0x52,0x85,0xa5,0x1a,0x4b,0x0d,0x96,0x0f,0xb0,0x9c,0x47,
2072
0xdf,0x2a,0xce,0x7f,0xab,0xe8,0xb0,0x7e,0xf5,0x8b,0x7f,0x73,0x80,0xbf,0x30,0xc4,
2073
0xb7,0x9a,0x0e,0xfc,0x9d,0xe4,0x42,0xb3,0xe6,0x43,0x48,0xed,0x38,0xd3,0xf0,0x07,
2074
0x19,0x48,0xd7,0x7e,0xba,0xf3,0xd9,0x4f,0x77,0xae,0xff,0x74,0xa7,0xe7,0xa7,0x3b,
2075
0x60,0xac,0xe6,0xb2,0x81,0xef,0x5b,0x2a,0xbb,0xfd,0x43,0x66,0xe0,0x27,0x4d,0xae,
2076
0x96,0xfe,0xb0,0x33,0xf0,0x93,0xf6,0x7f,0xac,0xf9,0x0c,0xdd,0xeb,0x41,0xf7,0x6f,
2077
0xa1,0xbc,0x3c,0xf4,0x7b,0x6d,0x39,0x24,0xbc,0x08,0x0c,0x29,0xb0,0xe8,0xb0,0x54,
2078
0x60,0xc1,0x2b,0xca,0xd0,0x07,0x58,0x3a,0xb1,0xe0,0x45,0x67,0xa8,0x1b,0x0b,0x6e,
2079
0x6a,0xa8,0x17,0x8b,0x09,0xcb,0x2d,0x2c,0x03,0x58,0x3e,0xc7,0x32,0x84,0xe5,0x0b,
2080
0x2c,0x78,0x25,0x19,0x6a,0xc0,0xd2,0x88,0xa6,0xfb,0xac,0x99,0x6a,0xbc,0xb8,0xdc,
2081
0x41,0xd3,0x78,0x46,0x34,0x0f,0x7e,0x81,0xee,0xf7,0xa3,0xfb,0xf8,0xd4,0x41,0xeb,
2082
0x92,0x06,0xcb,0x60,0x19,0x2c,0x7e,0xf8,0xc8,0xc1,0x2e,0x2c,0x4d,0xe8,0xcb,0xf3,
2083
0x50,0xf0,0x11,0x9c,0xae,0x81,0x24,0x87,0x54,0x8e,0x46,0xbf,0x40,0x5f,0xc2,0x82,
2084
0x77,0x0d,0x7d,0xf9,0x19,0xba,0xdf,0x8a,0xee,0xf7,0xa1,0xfb,0x26,0x74,0xff,0x26,
2085
0x1c,0x87,0xbf,0x5d,0xa9,0x83,0x6d,0x39,0x24,0x3d,0xfa,0xb2,0x05,0x37,0x01,0xe3,
2086
0xf9,0xb8,0xed,0x22,0x96,0x4b,0x58,0xda,0xb0,0xb4,0x63,0xb9,0x8c,0xe5,0x0a,0x96,
2087
0x0e,0x2c,0x9d,0x58,0xae,0x62,0xf9,0x14,0x4b,0x17,0x96,0x6e,0x2c,0xd7,0xb0,0x7c,
2088
0x86,0xe5,0x3a,0x96,0x1e,0x2c,0x37,0xb0,0xf4,0x62,0xe9,0xc3,0x62,0xc2,0x72,0x13,
2089
0xcb,0x2d,0x2c,0xfd,0x58,0x06,0xb0,0xdc,0xc6,0xf2,0x39,0x96,0x41,0x2c,0x43,0x58,
2090
0xee,0x60,0x81,0xe1,0x7f,0xdc,0x2e,0xc7,0xa2,0xc0,0xa2,0xc4,0x02,0x4f,0x36,0xd7,
2091
0xd0,0xd7,0xad,0x68,0xf2,0x33,0x44,0xf1,0x43,0x54,0x3f,0xf4,0x3b,0x3f,0xf4,0xa6,
2092
0x1f,0xa2,0xf9,0x21,0xba,0x1f,0x7a,0xcb,0x0f,0xbd,0xed,0x87,0x02,0xfd,0x10,0x03,
2093
0x3f,0xf5,0xd5,0xe6,0xe1,0xa7,0xba,0x82,0x22,0xc4,0xcd,0x47,0x79,0xe9,0x28,0x27,
2094
0x27,0x1f,0x15,0xbc,0x8f,0x04,0xf0,0x97,0x8e,0x04,0xb9,0x28,0x3d,0x0b,0x82,0xf2,
2095
0xf3,0x6f,0x15,0x15,0xd6,0xdf,0x3b,0x28,0xf1,0xef,0x57,0x3f,0x44,0xe6,0x2a,0xfc,
2096
0x83,0x96,0x72,0x64,0x6e,0xfb,0x08,0xcd,0x5d,0xb9,0x84,0x66,0x6e,0xb7,0xa1,0xd9,
2097
0x86,0x16,0xf4,0x4c,0xdd,0x8a,0xcc,0x3a,0x23,0x32,0xdf,0x31,0x20,0x73,0x99,0x11,
2098
0xcd,0xc2,0x8d,0xcc,0xac,0x6d,0x46,0xcf,0x4c,0x4a,0x34,0x77,0xa3,0x13,0x99,0x2f,
2099
0xc1,0x3e,0x3c,0x7b,0xcc,0x0e,0xd6,0xa2,0x59,0x7d,0x1d,0x9a,0x35,0xd6,0x21,0x8b,
2100
0x42,0x8f,0x66,0x0d,0xe5,0x68,0x56,0x77,0x1e,0x3d,0xbb,0xac,0x40,0xcf,0x3a,0xf1,
2101
0x3f,0x5a,0xb5,0x68,0xf6,0xb6,0x1c,0x3d,0xab,0x85,0xeb,0xe9,0x6e,0x20,0x33,0xdc,
2102
0xf7,0x2c,0x1a,0xfc,0x8c,0x59,0x3b,0xdb,0xd4,0xb5,0xfa,0x14,0x5a,0x3b,0xd3,0xaf,
2103
0xfb,0x21,0x77,0xdb,0xf0,0x7d,0xce,0x7c,0xed,0x87,0xb2,0x67,0xca,0x81,0xef,0x73,
2104
0xd0,0xf0,0x0f,0x65,0x17,0x3e,0xfc,0xe1,0xb8,0x8a,0xe6,0x1f,0x6a,0xeb,0xac,0x65,
2105
0xe6,0x3b,0x78,0x54,0x9f,0xa1,0x99,0xfe,0x21,0x48,0xfd,0x68,0x66,0x00,0x8c,0xd9,
2106
0xa2,0xbe,0x88,0x66,0x86,0x5a,0xd0,0xcc,0x9d,0xcf,0x91,0x59,0xae,0x44,0x66,0x05,
2107
0x74,0x0d,0x9e,0xe3,0xcc,0xf8,0xf7,0x04,0x1f,0xc0,0x7a,0xd6,0xd2,0x00,0x05,0x1a,
2108
0xfc,0x73,0xa9,0x36,0x48,0xe0,0xb0,0x96,0xda,0x26,0xa8,0x19,0x80,0x1d,0x88,0x86,
2109
0x96,0xba,0x0a,0xb0,0x02,0xb4,0x5b,0xd6,0x86,0x66,0x3e,0xc7,0x16,0x81,0x48,0xe8,
2110
0x2c,0xff,0x04,0x4c,0x02,0xcf,0x85,0xe7,0xf1,0x16,0xda,0xd5,0x95,0x41,0xba,0x85,
2111
0xbe,0xad,0xc5,0x3f,0x2f,0xd6,0x40,0x82,0x7d,0xa3,0x0e,0xd2,0x47,0x90,0x60,0xf8,
2112
0xc6,0x21,0x48,0xe0,0xe3,0x96,0x8e,0x2e,0xf4,0x4c,0x01,0xf6,0xab,0xd2,0x43,0x82,
2113
0x75,0xb4,0x05,0xff,0xa6,0xaa,0xea,0x53,0x48,0x3d,0x60,0x30,0x38,0x0b,0x7a,0x64,
2114
0x86,0xa7,0x3b,0x33,0x3c,0x91,0x99,0x6b,0x3a,0x60,0xff,0x22,0x32,0xc3,0xf3,0x8d,
2115
0xb9,0xb6,0x1a,0x99,0xeb,0xce,0x43,0x82,0xe3,0xeb,0xd5,0x90,0xe0,0x1c,0x78,0xae,
2116
0x30,0x7f,0x08,0x23,0x6a,0xaa,0x87,0x04,0x5d,0x6c,0xac,0x81,0xd4,0x07,0x0e,0xba,
2117
0x86,0xcc,0x9f,0x54,0x42,0x82,0x7c,0x0b,0x38,0xf2,0x63,0x18,0x42,0x0b,0x38,0xa0,
2118
0x05,0xae,0x71,0x11,0xba,0xdf,0x0a,0x8f,0x62,0xe6,0x4b,0x50,0x70,0xe9,0x16,0x78,
2119
0x1f,0x2e,0x0a,0xf3,0xc1,0xdc,0x0e,0x73,0xa2,0xf5,0x23,0x08,0xfd,0xd6,0x0b,0x57,
2120
0x91,0xf9,0x4a,0x17,0x32,0x77,0x5c,0x80,0x74,0x05,0xf2,0x0d,0xc8,0xdc,0x79,0x19,
2121
0x7d,0x7b,0xe1,0x1a,0xa4,0x41,0x64,0xee,0x82,0xae,0x75,0x41,0xd4,0xb6,0x5e,0x81,
2122
0xcc,0x67,0x2a,0x48,0x70,0xc0,0x67,0x10,0xfd,0xad,0x5d,0x38,0xf3,0x05,0x32,0x5f,
2123
0x87,0x36,0x87,0x60,0x21,0xfc,0x58,0x81,0xcc,0x3d,0x2d,0xc8,0x0c,0x4f,0x0e,0xe6,
2124
0x1b,0xb0,0x6c,0xb6,0xde,0x82,0x0b,0x9b,0x54,0x38,0x73,0x19,0x32,0xd0,0x4d,0x13,
2125
0x0c,0x03,0x6e,0x8e,0xe6,0x5b,0x10,0x73,0xb7,0x2e,0xa2,0x6f,0x5b,0x3e,0x83,0x2d,
2126
0x18,0xab,0x1f,0x86,0x0e,0x5e,0x34,0xc3,0x9d,0xe3,0xdb,0x56,0xe8,0xd9,0xc5,0x32,
2127
0xb0,0x76,0x2b,0x1c,0x78,0x1b,0x8c,0x77,0x1b,0xc6,0x7d,0x1b,0xa6,0xd7,0xd5,0x4a,
2128
0xfc,0x1f,0x51,0x43,0x0f,0x9a,0xd3,0xc2,0x85,0x06,0xe1,0x74,0x7c,0x4b,0xbc,0xa4,
2129
0x87,0xf9,0x76,0xb9,0x1c,0x2c,0x8f,0xbf,0x4d,0x81,0x65,0xea,0xdb,0x4b,0x60,0xb3,
2130
0x3b,0xb0,0xff,0x05,0xd8,0xe2,0x0b,0xb0,0xd3,0x17,0x10,0xbc,0x4a,0x05,0xfa,0x16,
2131
0xa6,0xe3,0xb7,0x6d,0x70,0x6f,0xbb,0x78,0x01,0x22,0x19,0x66,0xc2,0xac,0x06,0xff,
2132
0x57,0xd8,0x00,0xe9,0x36,0x9a,0x2d,0xbb,0x01,0x09,0x66,0x44,0xd9,0x67,0x68,0xb6,
2133
0x1c,0x7f,0x35,0x81,0xbf,0x92,0xb9,0x00,0x11,0xde,0x0c,0x51,0xdf,0x83,0x66,0x2b,
2134
0xe0,0x1c,0x23,0x2c,0x5f,0x17,0xbb,0xe0,0x04,0xc3,0x10,0x14,0x0c,0x42,0x41,0x07,
2135
0x9a,0xad,0x54,0xa1,0xd9,0x2a,0x58,0x56,0x2e,0x7e,0x06,0x47,0x55,0x5f,0x84,0x1d,
2136
0x0d,0x14,0xc2,0x38,0x3a,0xae,0xa1,0xd9,0x9a,0x4e,0x48,0x77,0xd0,0xec,0x07,0xd0,
2137
0x4a,0x0d,0x04,0x4c,0x67,0x17,0x9a,0xad,0x03,0x97,0x5c,0x82,0x17,0xb1,0xd9,0x0f,
2138
0x2f,0xa1,0xd9,0x0b,0xfd,0x68,0xb6,0x51,0x87,0xbe,0xed,0x82,0x37,0x0d,0x30,0xf4,
2139
0xb7,0x9f,0x82,0xc5,0xe0,0x75,0xc2,0x5c,0x06,0x13,0xad,0x49,0x8e,0x66,0x3f,0x6a,
2140
0x42,0x73,0x70,0x57,0x99,0xa9,0x6a,0x84,0xfd,0x56,0x34,0xdb,0x0c,0x5d,0x6b,0x3e,
2141
0x8f,0xff,0x1d,0x0c,0x06,0xea,0xd6,0xa1,0xd9,0x4f,0xa0,0xef,0x1f,0xc3,0x15,0x5b,
2142
0xc1,0x36,0x97,0x6a,0xba,0xd1,0xec,0xc5,0x4a,0x34,0xdb,0xf2,0x09,0x9a,0x6d,0x83,
2143
0x0e,0xc3,0xc2,0x32,0x7b,0x19,0xae,0x72,0xe5,0x2a,0x9a,0xbd,0x0a,0xbe,0xbe,0xf4,
2144
0x11,0xec,0x7c,0x7a,0x01,0x7d,0x7b,0xbd,0x01,0xcd,0x76,0xc1,0xdd,0xfc,0xd2,0xc5,
2145
0x2b,0x68,0xb6,0x1b,0x5e,0x12,0x7b,0xe0,0xac,0x6e,0x30,0xc1,0x35,0x38,0xf3,0x1a,
2146
0xac,0x58,0x97,0xae,0x62,0xff,0xf5,0xc1,0x8d,0xe0,0xd2,0xa7,0x70,0x05,0xa8,0x5e,
2147
0xb8,0x74,0x03,0x46,0x7c,0xe3,0x0b,0x34,0x0b,0xcf,0x75,0xb3,0x3d,0x70,0x5e,0x5f,
2148
0x3d,0x24,0x18,0x9c,0x09,0x06,0x09,0x4f,0x41,0xb3,0xf8,0x41,0xe6,0x12,0xfe,0x4a,
2149
0xa4,0xaf,0x0f,0xcd,0xf6,0x83,0x1d,0xe1,0x76,0xff,0x6d,0x5f,0x2f,0x9a,0xc5,0x37,
2150
0xd8,0x4b,0x70,0xcf,0x9c,0xbd,0x05,0x9e,0x18,0x82,0x05,0xf5,0xd2,0x10,0x4c,0xc4,
2151
0x4b,0x77,0xe0,0x9a,0x5f,0x94,0xa1,0x67,0xf2,0x01,0x48,0xd0,0xa9,0x9b,0xf5,0x30,
2152
0x59,0xf4,0x90,0x86,0x20,0xdd,0x42,0xcf,0x60,0xdc,0x30,0x39,0xdb,0xd1,0x33,0x0d,
2153
0x34,0xdc,0xa6,0xbb,0x84,0x9e,0x95,0x81,0xf7,0xda,0x2a,0xf1,0xef,0xd9,0x3b,0xd0,
2154
0x33,0x1d,0x78,0xa3,0xad,0x41,0x8b,0x9e,0xe9,0x61,0xd1,0x81,0x85,0x69,0xa1,0xad,
2155
0x09,0x7f,0x95,0xd0,0x52,0x8b,0x9e,0x19,0x6f,0xa3,0x67,0x95,0xb0,0xfa,0xdd,0xc6,
2156
0x3f,0x6d,0x87,0xf7,0xba,0xdb,0xfd,0xe8,0x19,0xbc,0xf8,0x3c,0xab,0x69,0x42,0xcf,
2157
0x3e,0xd0,0xa0,0x67,0xe7,0xe1,0x35,0x78,0xf0,0x02,0x2c,0x55,0xe0,0xb7,0xb6,0xeb,
2158
0x37,0x21,0x03,0xf1,0xdd,0x76,0x03,0x87,0x57,0xd9,0x27,0xe8,0x59,0x03,0x6e,0xf9,
2159
0x4e,0x2b,0x16,0x88,0xad,0x76,0x85,0x1a,0x7d,0xfb,0xc5,0x20,0x9a,0x91,0xc3,0x23,
2160
0x42,0x3b,0xbc,0x16,0x82,0xc0,0x0d,0xa0,0x5d,0xdd,0x88,0xa5,0x17,0x3d,0x6b,0xc2,
2161
0xdf,0x1e,0xc2,0x69,0x30,0xef,0x66,0x14,0x65,0x68,0x46,0x09,0x4f,0x57,0xed,0xf8,
2162
0x6b,0xa7,0xd6,0x4a,0x34,0x03,0xaf,0x96,0x0b,0xed,0x0d,0x70,0xb3,0x69,0xff,0x08,
2163
0x1e,0xb0,0xda,0x2f,0xc0,0xd5,0xaf,0x7c,0x8a,0x66,0xd4,0x9f,0xc1,0xa2,0x09,0x63,
2164
0xed,0x84,0x67,0x8a,0xf6,0x76,0xb8,0x3b,0xb4,0x5f,0xbd,0x82,0x9e,0x7d,0x7a,0x0d,
2165
0xcd,0xe0,0x7b,0x71,0xfb,0x35,0x18,0xe3,0x67,0x60,0x9a,0xcf,0x74,0x50,0x00,0xcb,
2166
0x52,0xfb,0x0d,0x18,0x23,0x3c,0x36,0xcf,0xe8,0x61,0xc1,0x86,0x07,0xda,0x67,0xf0,
2167
0xb4,0xfb,0x0c,0xee,0x87,0x0b,0xed,0x77,0xe0,0x28,0x13,0xac,0xe6,0x06,0x58,0x85,
2168
0x6f,0xc1,0x10,0xfb,0x95,0xe8,0xd9,0x80,0x06,0xf6,0xe1,0xce,0x74,0x19,0xcc,0xb4,
2169
0x70,0x59,0x57,0x8e,0x66,0x8c,0xd0,0xd7,0xcb,0x15,0x8d,0xe8,0xd9,0x10,0xdc,0x92,
2170
0x2e,0x1b,0xee,0xa0,0x67,0x77,0xea,0xd0,0xb3,0x2f,0xf0,0x0e,0x7e,0xb3,0xbb,0x5c,
2171
0x7b,0x09,0xcd,0x29,0xe0,0x7e,0x79,0x19,0xde,0x76,0xe6,0x60,0xc1,0x5a,0xb8,0x64,
2172
0xfc,0x04,0x82,0xae,0x0e,0x82,0xef,0x06,0x9a,0x53,0xab,0xd0,0x4c,0x75,0x05,0x6c,
2173
0xef,0x20,0xf3,0x55,0xb0,0xf1,0xe5,0x8f,0xaf,0x60,0x81,0xdc,0xa5,0x4a,0x1c,0x8b,
2174
0x95,0x10,0xa4,0x5a,0x35,0x9a,0xbb,0xf3,0x31,0x9a,0xa9,0xf9,0x14,0xcd,0xe9,0x6b,
2175
0x20,0xc1,0xf1,0x7a,0xfc,0x63,0xd3,0x5e,0xd8,0xc2,0x94,0xb5,0x6e,0x87,0xd0,0x5c,
2176
0x05,0x98,0xe2,0x72,0xd7,0x20,0x9a,0x33,0x34,0xa3,0x39,0x23,0x5c,0xb6,0xb2,0x1b,
2177
0xf2,0x78,0x0b,0x95,0x55,0x57,0xa0,0xec,0x3c,0x6c,0xf5,0x90,0x0c,0x90,0xc0,0xdf,
2178
0x97,0xc1,0x3f,0x0b,0x97,0x61,0xe1,0x58,0xb8,0x0c,0x2f,0x0a,0x33,0xb5,0xd0,0x3e,
2179
0xbc,0x19,0xce,0xc1,0x3b,0xe1,0x5c,0x2d,0x18,0xfa,0x0a,0x3e,0xb6,0x0e,0xfc,0x78,
2180
0x19,0x1e,0x19,0x66,0xea,0x9a,0x21,0x81,0xe3,0x2e,0xdf,0x81,0xfb,0xf4,0x15,0x15,
2181
0x18,0xac,0x0e,0x8e,0x6f,0xac,0x86,0x04,0x4d,0x37,0x76,0xa2,0xb9,0x8f,0x70,0xd2,
2182
0xa2,0xb9,0xa6,0x4a,0x34,0x77,0xe1,0x22,0x6c,0x61,0xc0,0xcd,0x70,0xcc,0xc7,0xe0,
2183
0xb8,0x0f,0x3f,0x44,0x73,0x9f,0xb4,0xa2,0xb9,0x16,0x05,0xe4,0x07,0xd0,0x5c,0x2b,
2184
0x58,0xe4,0x0a,0x3e,0x11,0x1e,0x95,0xe7,0xe0,0x59,0x78,0xa6,0xc1,0x04,0x5b,0x58,
2185
0x45,0x3e,0x80,0x19,0x72,0xe5,0x22,0x04,0xf2,0x95,0xf6,0xcb,0x68,0xe6,0xa3,0x3b,
2186
0x68,0xe6,0x42,0x39,0x9a,0xbb,0x8a,0x0f,0xbf,0x01,0xed,0xdd,0x80,0xf6,0xe0,0xc5,
2187
0x69,0xae,0xef,0x02,0x9a,0xc3,0xef,0x08,0x57,0x06,0xe1,0xf9,0xa1,0xa5,0x05,0x2c,
2188
0x84,0xbf,0x6c,0xbc,0x09,0x83,0xbf,0x05,0x26,0x6e,0x81,0x16,0xe7,0x3e,0x87,0x67,
2189
0xf2,0x8e,0x0f,0x3f,0xc0,0xd2,0x8d,0x2c,0xca,0x5a,0x64,0x51,0xf5,0x20,0x8b,0x1a,
2190
0x9e,0x2f,0x3b,0x9a,0xae,0x41,0xe6,0x02,0xb2,0x68,0xfb,0x91,0xa5,0xe2,0x43,0x48,
2191
0x0d,0xc8,0xa2,0x1b,0x44,0x96,0xaa,0x01,0x64,0xa9,0x86,0x70,0xef,0xf8,0xec,0x36,
2192
0xb2,0xd4,0x43,0xcc,0x5d,0x86,0x1b,0x32,0x7e,0xbf,0xec,0x80,0x6b,0xcd,0x5c,0xb9,
2193
0x8c,0x2c,0x17,0x60,0x91,0xbe,0x79,0x03,0x59,0x9a,0x20,0xf6,0x3a,0xf1,0xe4,0xe9,
2194
0xd4,0x7e,0x84,0x66,0x3a,0x21,0xb8,0x3a,0xe1,0x9e,0xfc,0x09,0x74,0xb3,0xb3,0x5a,
2195
0x8f,0x66,0xae,0x42,0x14,0x77,0x7e,0x50,0x8f,0x2c,0x2d,0xf0,0xf0,0xd3,0x89,0x6f,
2196
0xd7,0x97,0xe0,0xde,0xd9,0xd5,0x8b,0x2c,0xf0,0x34,0x64,0xb9,0x7c,0x05,0x59,0xae,
2197
0x28,0x21,0xc1,0xe8,0x3e,0x83,0xe9,0xdf,0xd9,0x75,0x1d,0x59,0x7a,0xe4,0xc8,0xd2,
2198
0x0b,0x77,0x5b,0x78,0xab,0x9b,0x81,0xd7,0x27,0x8b,0x09,0x02,0xe1,0x2a,0xfe,0xc5,
2199
0x40,0x2f,0x4c,0x94,0xab,0x6a,0xb8,0xd4,0x55,0x2d,0x1c,0x7b,0x15,0x22,0x60,0xc6,
2200
0x04,0x2d,0x7f,0x7e,0x07,0x59,0xe0,0xed,0xd4,0x32,0x58,0x05,0x09,0xbc,0x75,0xb5,
2201
0x41,0x8e,0x90,0xcd,0xba,0xf5,0xb6,0x76,0x1b,0x36,0x6e,0xb4,0x27,0x6c,0x7a,0xc5,
2202
0xc1,0xf1,0x55,0xa7,0x8d,0x3f,0x7e,0x9c,0x37,0xba,0x6c,0xde,0xe2,0x4a,0xdc,0xba,
2203
0xcd,0xcd,0xba,0xeb,0xbe,0x71,0xfb,0x6b,0x1e,0x9e,0x3b,0x5e,0xf7,0xf2,0xde,0xf8,
2204
0x8b,0x7f,0x76,0xee,0x02,0xf1,0xf9,0x59,0x9b,0x24,0xed,0xde,0xb3,0xd7,0x77,0xdf,
2205
0x1b,0xd6,0xbc,0xdf,0x46,0xf2,0x0f,0xc5,0xfe,0x01,0x1b,0x29,0xd4,0xdf,0x41,0xe6,
2206
0xcd,0x9f,0xe9,0x3a,0xb4,0x9f,0xe4,0xe9,0x3f,0x43,0x7b,0x6f,0xfd,0xf9,0xaa,0xb7,
2207
0xb1,0x04,0x6e,0xdc,0xc8,0x08,0xda,0xcf,0xfc,0xbe,0x28,0xf8,0x9d,0x3f,0x38,0xe2,
2208
0xdd,0x8d,0x1b,0x0f,0x84,0xfc,0xb0,0x73,0x70,0xe3,0x6f,0xf8,0x73,0x28,0x34,0x6c,
2209
0xe3,0xda,0x67,0xed,0xb3,0xf6,0x59,0xfb,0xac,0x7d,0xd6,0x3e,0x6b,0x9f,0xb5,0xcf,
2210
0xda,0x67,0xed,0xb3,0xf6,0x59,0xfb,0xac,0x7d,0x7e,0x3b,0x1f,0x64,0xbb,0xc6,0x3f,
2211
0x84,0x1d,0xb2,0xff,0x03,0x08,0xc8,0x19,0xb9,0x20,0xd7,0xef,0x21,0x22,0x0f,0xc0,
2212
0x13,0x79,0x23,0x12,0x22,0x23,0x0a,0x40,0x45,0x0c,0x14,0x8c,0x0e,0xa0,0x10,0xc4,
2213
0x41,0xc9,0x28,0x1d,0xe0,0x23,0x11,0x92,0x22,0x35,0x32,0xa0,0x5a,0xa0,0x09,0xb5,
2214
0xa1,0x2e,0xd4,0x87,0x06,0xd1,0x3d,0xf4,0x00,0x3d,0x42,0x4f,0x80,0x19,0xf4,0x1c,
2215
0xbd,0x40,0x2f,0x91,0xad,0x8d,0x83,0x15,0x57,0x1b,0x0f,0x1b,0x1f,0x1b,0x3f,0x1b,
2216
0x9a,0x15,0xa6,0x4d,0xa8,0x0d,0xdb,0x26,0xc1,0x26,0xc5,0x26,0x1d,0xe0,0xdb,0x88,
2217
0x6c,0xa4,0x36,0x6a,0x1b,0x83,0x4d,0xad,0x4d,0x93,0x4d,0x9b,0x4d,0x17,0xd0,0x67,
2218
0x33,0x68,0x73,0xcf,0xe6,0x81,0xcd,0x23,0x9b,0x27,0x56,0x66,0x6c,0x9e,0xdb,0xbc,
2219
0xb0,0x79,0x69,0x63,0xbb,0xce,0x76,0x9d,0x03,0xe0,0xba,0xce,0x63,0x9d,0xcf,0x3a,
2220
0xbf,0x75,0xb4,0x75,0xcc,0x75,0xa1,0xeb,0xd8,0xeb,0x12,0xd6,0xa5,0xac,0x4b,0x5f,
2221
0xc7,0x5f,0x27,0x5a,0x27,0x5d,0xa7,0x5e,0x67,0xb0,0x52,0xbb,0xae,0x69,0x5d,0xdb,
2222
0xba,0xae,0x75,0x7d,0xeb,0x06,0xd7,0xdd,0x5b,0xf7,0x60,0xdd,0xa3,0x75,0x4f,0xd6,
2223
0xcd,0xac,0x7b,0xbe,0xee,0xc5,0xba,0x97,0xeb,0x6c,0xd7,0x3b,0xac,0x77,0x5d,0xef,
2224
0xb1,0xde,0x67,0xbd,0x9f,0x15,0xda,0x7a,0xe6,0xfa,0xd0,0xf5,0xec,0xf5,0x09,0xeb,
2225
0x53,0xd6,0xa7,0xaf,0xe7,0xaf,0x17,0xad,0x17,0xaf,0x97,0xad,0x57,0xaf,0x37,0xac,
2226
0xaf,0x5d,0xdf,0xb4,0xbe,0x0d,0xe8,0x5a,0xdf,0xb7,0x7e,0x70,0xfd,0xbd,0xf5,0x0f,
2227
0xd6,0x4f,0xac,0x9f,0x5a,0x3f,0x63,0xe5,0xf9,0xfa,0x17,0xeb,0x5f,0xae,0xb7,0xb5,
2228
0x75,0xb0,0x25,0xda,0x7a,0x58,0xf1,0xb1,0xf5,0xb3,0xa5,0xd9,0x32,0x6d,0x43,0x6d,
2229
0xd9,0x56,0x12,0x6c,0x53,0x6c,0xd3,0x6d,0xf9,0xb6,0x22,0x5b,0xa9,0xad,0xda,0xd6,
2230
0x60,0x5b,0x6b,0xdb,0x64,0xdb,0x66,0xdb,0x65,0xdb,0x67,0x3b,0x68,0x7b,0xcf,0xf6,
2231
0x81,0xed,0x23,0xdb,0x27,0x56,0x66,0x6c,0x9f,0xdb,0xbe,0xb0,0x7d,0x69,0x6b,0x6b,
2232
0xe7,0x60,0xe7,0x6a,0xe7,0x61,0xe7,0x63,0xe7,0x67,0x47,0xb3,0x63,0xda,0x85,0xda,
2233
0xb1,0xed,0x12,0xec,0x52,0xec,0xd2,0xed,0xf8,0x76,0x22,0x3b,0xa9,0x9d,0xda,0xce,
2234
0x60,0x57,0x67,0xd7,0xf0,0x0f,0xd3,0x62,0xd7,0xf1,0xdf,0x70,0xdd,0xae,0xff,0xaf,
2235
0x62,0xc0,0x6e,0xc4,0x6e,0xdc,0x6e,0xca,0xce,0x6c,0x37,0x6f,0xb7,0x64,0xb7,0x62,
2236
0x67,0xb7,0xc1,0x61,0x83,0xeb,0x06,0x8f,0x0d,0x3e,0x1b,0xfc,0x36,0xd0,0x36,0x30,
2237
0x37,0x84,0x6e,0x60,0x6f,0x48,0xda,0x90,0xbe,0x21,0x67,0x83,0x74,0x83,0x76,0x43,
2238
0xed,0x86,0x96,0x0d,0x5d,0x40,0xff,0x86,0x7b,0x1b,0x1e,0x6e,0x78,0xb2,0x61,0x66,
2239
0xc3,0x73,0x2b,0x2f,0x36,0xbc,0xdc,0x60,0xbb,0xd1,0x61,0xa3,0xeb,0x46,0x8f,0x8d,
2240
0x7b,0x37,0xd2,0x36,0x32,0x37,0x86,0x6e,0xe4,0x6c,0x4c,0xdc,0x98,0xba,0x31,0x7d,
2241
0x23,0x7f,0xa3,0xc8,0x8a,0x74,0xa3,0x7a,0x63,0xf5,0xc6,0xa6,0x8d,0x6d,0x1b,0xbb,
2242
0x36,0xf6,0x6d,0x1c,0x04,0xee,0x6d,0x7c,0xb0,0xf1,0xd1,0xc6,0x27,0x1b,0x67,0x36,
2243
0x3e,0xdf,0xf8,0x62,0xe3,0xcb,0x8d,0xb6,0xf6,0x0e,0xf6,0xae,0xf6,0x1e,0xf6,0x3e,
2244
0xf6,0x7e,0xf6,0x34,0x7b,0xa6,0x7d,0xa8,0x3d,0xdb,0x3e,0xc1,0x3e,0xc5,0x3e,0xdd,
2245
0x9e,0x6f,0x2f,0xb2,0x97,0xda,0xab,0xed,0x0d,0xf6,0xb5,0xf6,0x4d,0x56,0xda,0xec,
2246
0xbb,0xfe,0x80,0x3e,0xfb,0x41,0xfb,0x7b,0xf6,0x0f,0xec,0x1f,0xdb,0xcf,0xd8,0x2f,
2247
0xd8,0xbf,0xb4,0xb7,0x25,0x38,0x10,0xdc,0x08,0x3e,0x04,0x3f,0x02,0xed,0x37,0x0a,
2248
0x9d,0xc0,0x20,0x04,0x13,0x42,0x08,0x61,0x04,0x16,0x81,0x43,0x88,0x25,0x24,0x12,
2249
0x92,0xfe,0x21,0x92,0x09,0x69,0x04,0x1e,0x41,0x48,0x90,0x10,0x14,0x04,0x2d,0xa0,
2250
0x23,0x18,0x09,0x35,0x84,0x3a,0x42,0x23,0xa1,0xe9,0x57,0x4b,0x0b,0xa1,0x0d,0xe8,
2251
0x20,0x5c,0xff,0x27,0xd3,0xf7,0x23,0x26,0xc2,0xe0,0xf7,0xdc,0xfd,0x91,0x61,0xc2,
2252
0x97,0x84,0x87,0x84,0xc7,0x84,0x27,0x84,0x19,0xc2,0x73,0xc2,0x0b,0xe0,0x25,0x60,
2253
0xbb,0xc9,0x61,0x93,0xdb,0xdf,0x81,0xd7,0xa6,0xbd,0x9b,0x28,0x9b,0x02,0x37,0x1d,
2254
0xd8,0x14,0xbe,0x29,0xe1,0xef,0x20,0x65,0x53,0xfa,0x26,0xfe,0x26,0xd1,0x26,0xe9,
2255
0x26,0xd9,0x26,0xc5,0x26,0xcd,0x26,0xfd,0xa6,0x0f,0x36,0x35,0x6e,0x6a,0xde,0xd4,
2256
0xf2,0x37,0xd3,0xba,0xa9,0x7d,0x53,0xe7,0xa6,0xae,0x4d,0xdd,0x9b,0x7a,0x36,0xf5,
2257
0x59,0x31,0x6d,0xea,0xff,0x23,0xee,0x6e,0xba,0x0f,0x3c,0xfc,0x9e,0xc7,0x3f,0xf2,
2258
0x74,0xd3,0xdc,0xa6,0x85,0x3f,0xc9,0x77,0xff,0x20,0xe8,0x95,0xbf,0x05,0xfb,0x57,
2259
0x9c,0x01,0xb7,0xef,0xf1,0xfa,0x91,0xbd,0xaf,0x50,0x5e,0x09,0xfc,0x1b,0x39,0xf0,
2260
0x4a,0xf8,0xff,0x42,0x62,0x5e,0x49,0xfa,0x6f,0x38,0xfd,0x0a,0xf7,0x95,0x9c,0x57,
2261
0x0a,0xad,0xc8,0x5f,0xd1,0x5a,0xa9,0x7e,0xa5,0xe1,0x95,0x96,0x57,0x3a,0x5e,0xb9,
2262
0xfe,0x4a,0xbf,0x95,0xbb,0xaf,0xdc,0x7f,0xe5,0xe1,0x2b,0x8f,0x5f,0x79,0xfa,0xca,
2263
0x9c,0x95,0x85,0x57,0xbe,0x7b,0x05,0x39,0xd8,0x3b,0x38,0x3b,0xb8,0x39,0x78,0x39,
2264
0xec,0x75,0xa0,0x38,0x04,0x3a,0x1c,0x70,0x08,0xb7,0x12,0xe3,0x90,0xf4,0xab,0x26,
2265
0xd9,0x21,0xe5,0x9f,0x48,0xaa,0x43,0xba,0x95,0x0c,0x07,0x9e,0x03,0x7f,0x8d,0xbf,
2266
0x01,0x91,0x83,0xd4,0x41,0xed,0x60,0x70,0xa8,0xfd,0x5f,0x4c,0x9d,0x43,0xb3,0x43,
2267
0xbb,0x43,0xb7,0x43,0xdf,0xff,0x32,0x06,0x81,0x7b,0x7f,0x91,0x07,0xff,0x34,0xd0,
2268
0xda,0xe7,0x37,0xfe,0xf9,0x67,0x44,0xd5,0xa3,0x3f,0xe2,0x89,0x95,0x99,0x9f,0x89,
2269
0xe7,0x0e,0x2f,0x1c,0x5e,0x3a,0xd8,0x3a,0x3a,0x38,0xba,0x3a,0x7a,0x38,0xfa,0xfc,
2270
0x8b,0xe2,0xe7,0x48,0xfb,0x0b,0x30,0x1d,0x43,0x01,0xf6,0xaf,0x86,0x04,0x2b,0x29,
2271
0x3f,0x0b,0xe9,0x8e,0x7c,0x47,0x91,0x15,0xe9,0x1a,0xff,0x82,0xa8,0xad,0x18,0x1c,
2272
0x6b,0xff,0x02,0x4d,0x8e,0x6d,0xbf,0x28,0x5d,0xbf,0x20,0x7d,0x8e,0x83,0x8e,0xf7,
2273
0x7e,0xb3,0x3c,0xf8,0x8d,0xf1,0xe8,0x0f,0x78,0xe2,0x38,0x03,0x3c,0x77,0xfc,0xee,
2274
0x37,0x0e,0x7a,0xd5,0xfe,0x55,0xe7,0x35,0xfe,0x2c,0x6e,0x80,0xd7,0xab,0x7e,0xaf,
2275
0xd2,0x7e,0x35,0xd0,0x5f,0x65,0xfe,0xa6,0x09,0x7e,0x35,0xf4,0x67,0x26,0xec,0x55,
2276
0xce,0xab,0x09,0xff,0x54,0x12,0x5f,0x4d,0xfa,0x45,0x39,0xfd,0x27,0xe0,0xfe,0x48,
2277
0xce,0x8f,0x14,0xfe,0x88,0xfc,0xcf,0xa2,0xfd,0x13,0x54,0x03,0x0d,0xaf,0xb6,0xbe,
2278
0xda,0xf5,0xaa,0xe9,0xd5,0xbb,0x7f,0xc4,0xfd,0xbf,0x82,0x87,0x7f,0x82,0xc7,0x3f,
2279
0xf2,0xf4,0x47,0xe6,0x7e,0x64,0xe1,0xcf,0xf2,0xdd,0xbf,0x30,0xc8,0x69,0x8d,0x5f,
2280
0x07,0x36,0x4e,0xb6,0x7f,0x12,0x07,0xc0,0x15,0xf0,0x00,0x7c,0x00,0xbf,0xef,0xa1,
2281
0xfd,0xec,0x30,0x81,0x50,0x2b,0x6c,0xa7,0x04,0x20,0x65,0x8d,0x7f,0x31,0x52,0x9d,
2282
0xd2,0x9c,0x32,0x9c,0xb8,0x4e,0x3c,0x27,0x81,0x93,0xd0,0x49,0xec,0x24,0x71,0x92,
2283
0x39,0x29,0x9c,0x34,0x4e,0x3a,0x27,0xa3,0x53,0x8d,0x53,0xad,0x53,0x9d,0x53,0xa3,
2284
0x53,0xb3,0x53,0xab,0x53,0xbb,0x53,0xa7,0x53,0xb7,0x53,0x8f,0x93,0xc9,0x69,0xc0,
2285
0x69,0xc8,0x69,0xd8,0x69,0xc4,0x69,0xd4,0x69,0xcc,0x69,0xdc,0x69,0xc2,0x69,0xd2,
2286
0xe9,0x89,0xd3,0x94,0xd3,0xb4,0x93,0xd9,0xc9,0xe2,0x34,0xef,0xb4,0xe8,0xb4,0xe4,
2287
0xb4,0xec,0xb4,0xe2,0x64,0xe3,0x6c,0xe7,0x4c,0x70,0x76,0x74,0x76,0x71,0x26,0x3a,
2288
0xbb,0x3b,0x7b,0x3a,0x7b,0x3b,0x93,0x9c,0x7d,0x9d,0xc9,0xce,0x54,0x67,0xba,0x33,
2289
0xc3,0x39,0xd8,0x39,0xc4,0x39,0xcc,0x99,0xe5,0xcc,0xfe,0xb3,0x70,0x9c,0x63,0x7e,
2290
0x06,0x62,0x9d,0x13,0x9d,0x93,0x9d,0x53,0x9d,0xd3,0x9c,0x33,0x9c,0x79,0xce,0x02,
2291
0x67,0xa1,0xb3,0xd8,0x59,0xe2,0x2c,0x73,0x56,0x38,0x6b,0x9c,0x75,0xce,0x46,0xe7,
2292
0x1a,0xe7,0x3a,0xe7,0x46,0xe7,0x66,0xe7,0x56,0xe7,0x76,0xe7,0x4e,0xe7,0x6e,0xe7,
2293
0x1e,0x67,0x93,0xf3,0x80,0xf3,0x90,0xf3,0xb0,0xf3,0x88,0xf3,0xa8,0xf3,0x98,0xf3,
2294
0xb8,0xf3,0x84,0xf3,0xa4,0xf3,0x94,0xf3,0xb4,0xf3,0xcc,0xff,0x02,0x9e,0x3b,0xbf,
2295
0x70,0x7e,0xe9,0x6c,0xeb,0xe2,0xe0,0xe2,0xea,0xe2,0xe1,0xe2,0xe3,0x42,0x71,0x61,
2296
0xba,0x84,0xba,0xb0,0x5d,0x12,0x5c,0x52,0x5c,0xd2,0x5d,0xf8,0x2e,0x22,0x17,0xa9,
2297
0x8b,0xda,0xc5,0xe0,0xd2,0xe0,0xd2,0xe6,0x72,0xdd,0x65,0xd0,0xe5,0x9e,0xcb,0x03,
2298
0x97,0x47,0x2e,0x4f,0x5c,0xe6,0x5c,0x5e,0xb8,0xbc,0x74,0xb1,0xdd,0xec,0xb0,0xd9,
2299
0x75,0xb3,0xc7,0x66,0x9f,0xcd,0x7e,0x9b,0x69,0x9b,0x99,0x9b,0x43,0x37,0xb3,0x37,
2300
0x27,0x6c,0x4e,0xd9,0x9c,0xbe,0x99,0xbf,0x59,0xb4,0x59,0xbe,0xd9,0xb0,0xb9,0x76,
2301
0x73,0xd3,0xe6,0xb6,0xcd,0x5d,0x9b,0xfb,0x36,0x0f,0x6e,0xbe,0xb7,0xf9,0xc1,0xe6,
2302
0xc7,0x9b,0x67,0x36,0x3f,0xdf,0xfc,0x62,0xf3,0xcb,0xcd,0xb6,0x5b,0x1c,0xb6,0xb8,
2303
0x6e,0xf1,0xd8,0xe2,0xb3,0xc5,0x6f,0x0b,0x6d,0x0b,0x73,0x4b,0xe8,0x16,0xf6,0x96,
2304
0x84,0x2d,0x29,0x5b,0xd2,0xb7,0xf0,0xb7,0x88,0xb6,0xc8,0xb7,0x18,0xb6,0x34,0x6c,
2305
0x69,0xdb,0x72,0x7d,0xcb,0xe0,0x96,0xfb,0x5b,0x1e,0x6d,0x79,0xb2,0x65,0x66,0xcb,
2306
0xf3,0x2d,0x2f,0xb6,0xbc,0xdc,0x62,0xeb,0xea,0xe0,0xea,0xea,0xea,0xe5,0xea,0xe7,
2307
0x4a,0x73,0x65,0xba,0x86,0xba,0xb2,0x5d,0x13,0x5c,0x53,0x5c,0xb9,0xae,0x22,0x57,
2308
0xb9,0xab,0xc1,0xb5,0xc1,0xb5,0xcd,0xb5,0xcb,0xb5,0xcf,0x75,0xd0,0xf5,0x9e,0xeb,
2309
0x03,0xd7,0x47,0xae,0x4f,0x5c,0x67,0x5c,0x9f,0xbb,0xbe,0x70,0x7d,0xe9,0x6a,0x4b,
2310
0x74,0x20,0xba,0x12,0xbd,0x88,0x7e,0xc4,0x40,0x62,0x28,0x91,0x4d,0x4c,0x20,0xa6,
2311
0x10,0xd3,0x89,0x7c,0xa2,0x88,0x28,0x25,0xaa,0x89,0x06,0x62,0x2d,0xb1,0x89,0xd8,
2312
0x46,0xec,0x22,0xf6,0x11,0x07,0x89,0xf7,0x88,0x0f,0x88,0x8f,0x88,0x4f,0x88,0x33,
2313
0xc4,0xe7,0xc4,0x17,0xc4,0x97,0x44,0xdb,0xad,0x0e,0x5b,0x5d,0xb7,0x7a,0x6c,0xf5,
2314
0xd9,0xea,0xb7,0x95,0xbe,0xf5,0x9d,0xad,0xa1,0x3f,0xc2,0xde,0x9a,0xb0,0x35,0x65,
2315
0x6b,0xfa,0xd6,0x9c,0xad,0xd2,0xad,0xda,0xad,0xb5,0x5b,0x5b,0xb6,0x76,0x6d,0xed,
2316
0xdf,0x7a,0x6f,0xeb,0xc3,0xad,0x4f,0xb6,0xce,0x6d,0x7d,0xb1,0x15,0x6d,0x73,0xd8,
2317
0xe6,0xb6,0xcd,0x67,0x1b,0x65,0x1b,0x73,0x5b,0xf8,0xb6,0x84,0x6d,0x29,0xdb,0xd2,
2318
0xb7,0xf1,0xb7,0x89,0xb6,0x49,0xb7,0xa9,0xb7,0x55,0x6f,0x6b,0xda,0xd6,0xb1,0xad,
2319
0x6f,0xdb,0xdd,0x6d,0x0f,0xb6,0x3d,0xde,0x36,0xb3,0x6d,0x61,0xdb,0xcb,0x6d,0xb6,
2320
0x6e,0x0e,0x6e,0xae,0x6e,0x1e,0x6e,0x3e,0x6e,0x7e,0x6e,0x34,0x37,0xa6,0x5b,0xb8,
2321
0x5b,0x82,0xdb,0x69,0x37,0xbe,0x5b,0xa1,0x9b,0xda,0xad,0xda,0xad,0xc9,0xad,0xc3,
2322
0xad,0xcf,0xed,0xae,0xdb,0x03,0xb7,0xc7,0x6e,0x33,0x6e,0x0b,0x6e,0x2f,0xdd,0xec,
2323
0xdd,0x5d,0xdd,0xbd,0xdc,0xfd,0xdc,0x69,0xee,0x4c,0xf7,0x50,0x77,0xb6,0x7b,0x92,
2324
0x7b,0xba,0x7b,0x8e,0xbb,0xd4,0x5d,0xeb,0x5e,0xeb,0xde,0xe2,0xde,0xe5,0xde,0xef,
2325
0x7e,0xcf,0xfd,0x81,0xfb,0x23,0xf7,0x27,0xee,0x33,0xee,0xcf,0xdd,0x5f,0xb8,0xbf,
2326
0x74,0xb7,0xdd,0xfe,0x87,0x38,0x6c,0x77,0xdd,0xee,0xb5,0xdd,0x6f,0x7b,0xe0,0xf6,
2327
0xd0,0xed,0x31,0xdb,0x53,0xb6,0xa7,0x6f,0xe7,0x6f,0x2f,0xdc,0xae,0xde,0x5e,0xbd,
2328
0xbd,0x69,0x7b,0xc7,0xf6,0xbe,0xed,0x83,0xdb,0xef,0x6d,0x7f,0xb8,0xfd,0xc9,0xf6,
2329
0xb9,0xed,0x2f,0xac,0xbc,0xdc,0x6e,0xfb,0x9a,0xf3,0x6b,0x1e,0xaf,0xed,0x7d,0x8d,
2330
0x66,0x85,0xf9,0x5a,0xe8,0x6b,0x31,0xaf,0xa5,0xbc,0xc6,0x7d,0x4d,0xf4,0x9a,0xfc,
2331
0x35,0xc3,0x6b,0xb5,0xaf,0x35,0xbd,0xd6,0xf1,0x5a,0xdf,0x6b,0x77,0x5f,0x7b,0xf0,
2332
0xda,0xe3,0xd7,0x66,0x5e,0x7b,0xfe,0xda,0x8b,0xd7,0x90,0x87,0x83,0x87,0x9b,0x87,
2333
0x8f,0x07,0xc5,0x83,0xe9,0x11,0xea,0xc1,0xf6,0x48,0xf2,0x48,0xf7,0xc8,0xf1,0x90,
2334
0x7a,0x68,0x3d,0x6a,0x3d,0x9a,0x3c,0xda,0x3c,0xae,0x7b,0x0c,0x7a,0xdc,0xf7,0x78,
2335
0x64,0xe5,0x89,0xc7,0x8c,0xc7,0x82,0xc7,0x4b,0x0f,0x7b,0x4f,0x57,0x2b,0x1e,0x9e,
2336
0x3e,0x9e,0x14,0x4f,0xa6,0x67,0xb8,0x67,0x82,0xe7,0x69,0x4f,0x3e,0x20,0x02,0xe4,
2337
0x80,0x01,0x68,0xf0,0x6c,0xf1,0xec,0xf0,0xec,0xf3,0xbc,0xeb,0xf9,0xc0,0xf3,0xb1,
2338
0xe7,0x8c,0xe7,0x82,0xe7,0x77,0x9e,0x68,0x87,0xc3,0x0e,0xb7,0x1d,0x3e,0x3b,0x28,
2339
0x3b,0x98,0x3b,0xc2,0x77,0xc4,0xec,0x48,0xda,0x71,0x7a,0x07,0x77,0x47,0xce,0x8e,
2340
0xc2,0x1d,0xf2,0x1d,0xda,0x1d,0xd5,0x3b,0x1a,0x76,0xb4,0xec,0xe8,0xd8,0x71,0x7d,
2341
0x47,0xbf,0x95,0x7b,0x3b,0x1e,0xee,0x78,0xba,0x63,0x61,0x07,0x7a,0xdd,0xf9,0x75,
2342
0xaf,0xd7,0x29,0xaf,0x33,0x5f,0x0f,0x7f,0x3d,0xe9,0x75,0xee,0xeb,0x85,0xaf,0x6b,
2343
0x5f,0x6f,0x78,0xbd,0xe3,0xf5,0xbe,0xd7,0xef,0xbe,0xfe,0xf0,0xf5,0xa7,0xaf,0x2f,
2344
0xbc,0x8e,0xbc,0x9c,0xbd,0xbc,0xbc,0xfc,0xbc,0x02,0xbd,0xc2,0xbd,0x92,0xbc,0xb8,
2345
0x5e,0x85,0x5e,0x5a,0xaf,0x06,0xaf,0x36,0xaf,0xeb,0x5e,0x77,0xbd,0x1e,0x7a,0x3d,
2346
0xf5,0x5a,0xf0,0x42,0xde,0xce,0xde,0x1e,0xde,0x7b,0xbd,0x03,0xbd,0xc3,0xbd,0x93,
2347
0xbc,0xb9,0xde,0x85,0xde,0x5a,0xef,0x6a,0xef,0x06,0xef,0x36,0xef,0x2e,0xef,0x7e,
2348
0xe0,0xae,0xf7,0x03,0xef,0x47,0xde,0x4f,0xbc,0x67,0xbc,0x9f,0x7b,0x2f,0x79,0xbf,
2349
0xf4,0xb6,0xd9,0x49,0xd8,0xb9,0x79,0xa7,0xdb,0x4e,0x9f,0x9d,0x7e,0x3b,0x03,0x81,
2350
0x03,0x3b,0xd9,0x3b,0x13,0x76,0xa6,0xec,0x4c,0xdf,0xc9,0xdf,0x99,0xbf,0xb3,0x64,
2351
0x67,0xd9,0x4e,0xc3,0xce,0xda,0x9d,0x4d,0x3b,0x3b,0x76,0xf6,0x59,0x19,0xdc,0x79,
2352
0x7f,0xe7,0xc3,0x9d,0x8f,0x77,0x3e,0xdd,0x39,0xb7,0xf3,0x3f,0x77,0xfe,0xdf,0x9d,
2353
0xff,0xef,0x4e,0xb4,0xcb,0x7e,0x97,0xf3,0x2e,0x8f,0x5d,0x7b,0x77,0x51,0x76,0x05,
2354
0xee,0x3a,0xb0,0x8b,0xbd,0x2b,0x61,0x57,0xca,0xae,0xf4,0x5d,0xfc,0x5d,0xf9,0xbb,
2355
0x4a,0x76,0xa9,0x77,0x69,0xad,0xd4,0xee,0x6a,0xda,0xd5,0x01,0x5c,0xdf,0x35,0xb8,
2356
0xeb,0xde,0xae,0x07,0xbb,0x1e,0xed,0x7a,0xb2,0x6b,0x76,0x97,0x65,0xd7,0xc2,0xae,
2357
0xff,0x0b,0xfc,0x3f,0xbb,0x96,0x77,0xad,0xec,0xb2,0xf1,0xb1,0xf3,0x21,0xf8,0x38,
2358
0xfa,0xb8,0xf8,0x10,0x7d,0xdc,0x7d,0x3c,0x7e,0x82,0xa7,0x8f,0xd7,0x8f,0x78,0xfb,
2359
0xec,0xfd,0x33,0xf8,0xfa,0x90,0x7d,0xe8,0x3e,0x07,0xfe,0x88,0x10,0x9f,0x50,0x2b,
2360
0x61,0x3e,0x1c,0x9f,0x24,0x9f,0x64,0x9f,0x34,0x1f,0xfe,0xf7,0x08,0x7c,0x44,0x3e,
2361
0x62,0x1f,0xe9,0x1f,0x21,0xf3,0xd1,0xf8,0x18,0x7d,0x6a,0xff,0x2c,0x75,0x3e,0x6d,
2362
0x7f,0x40,0xbb,0x4f,0xc7,0x5f,0xa0,0xd3,0xa7,0xdb,0xe7,0x3a,0xd0,0xe3,0x63,0xf2,
2363
0x19,0xf0,0x19,0xf2,0x19,0xf6,0x19,0xf1,0x19,0xf5,0x19,0xf3,0x19,0xf7,0x99,0xf0,
2364
0x99,0xf4,0x99,0xf2,0x99,0xf6,0x31,0xfb,0x58,0x7c,0xe6,0x7d,0x16,0x7d,0x96,0x7c,
2365
0x96,0x7d,0x56,0x7c,0x6c,0x48,0x76,0x24,0x02,0xc9,0x91,0xe4,0x42,0x22,0x92,0xdc,
2366
0x49,0x1e,0x24,0x4f,0x92,0x37,0x89,0x44,0xf2,0x25,0x91,0x49,0x54,0x12,0x9d,0xc4,
2367
0x20,0x05,0x93,0x42,0x48,0x61,0x24,0x16,0x89,0x43,0x8a,0x25,0x25,0x92,0x92,0x49,
2368
0x29,0x7f,0x44,0x2a,0x29,0xfd,0x57,0x45,0x06,0x20,0x24,0xc9,0x48,0x0a,0x92,0x96,
2369
0xa4,0x23,0xd5,0x91,0x5a,0x49,0x6d,0xa4,0x76,0x52,0x37,0xa9,0x87,0x64,0x22,0x0d,
2370
0x90,0x86,0x48,0xc3,0xa4,0x11,0xd2,0x28,0x69,0x8c,0x34,0x4e,0x7a,0x44,0x9a,0x20,
2371
0x4d,0x92,0x9e,0x02,0xd3,0x24,0x33,0xc9,0x42,0x9a,0x27,0x2d,0x92,0x5e,0x00,0x4b,
2372
0xa4,0x15,0x12,0x61,0xb7,0xf3,0x6e,0x97,0xdd,0xae,0x80,0xdb,0x6e,0xf7,0xdd,0x1e,
2373
0x80,0xd7,0x6e,0xdf,0xdd,0xe4,0xdd,0x94,0xdd,0xd4,0xdd,0xf4,0xdd,0x8c,0xdd,0xcc,
2374
0xdd,0xc1,0xbb,0x43,0x76,0x87,0xed,0x66,0xed,0xe6,0xec,0x8e,0xdd,0x9d,0xb8,0x3b,
2375
0x69,0x77,0xf2,0xee,0x8c,0xdd,0xbc,0xdd,0x82,0xdd,0xc2,0xdd,0xe2,0xdd,0x85,0xdf,
2376
0x23,0xd9,0x2d,0xdb,0xad,0xd8,0xad,0xd9,0xad,0xdb,0x6d,0xf8,0x09,0xc6,0xdd,0x8d,
2377
0xbb,0xdb,0x77,0x9b,0x76,0x0f,0xef,0x1e,0xdb,0x3d,0xb9,0xdb,0xbc,0x7b,0x71,0xf7,
2378
0xca,0x6e,0xc2,0x1e,0xe2,0x1e,0xef,0x3d,0xe4,0x3d,0x8c,0x3d,0x61,0x7b,0x38,0x7b,
2379
0x62,0xf7,0x24,0xef,0xc9,0xd8,0x23,0xd8,0x23,0xdc,0x23,0xd9,0xa3,0xd9,0x53,0xb7,
2380
0xa7,0x79,0x4f,0xeb,0x9e,0xce,0x3d,0xa6,0x3d,0x03,0x7b,0x86,0xf6,0x0c,0xef,0x19,
2381
0xd9,0x33,0xba,0x67,0x7c,0xcf,0xd4,0x1e,0xf3,0x1e,0xcb,0x9e,0xc5,0x3d,0x2b,0x7b,
2382
0x1c,0xf7,0x12,0xf7,0xba,0xef,0xf5,0xde,0x4b,0xde,0x4b,0xdd,0x4b,0xdf,0xcb,0xd8,
2383
0xcb,0xfc,0x2f,0x04,0xef,0x0d,0xff,0x8b,0xc4,0xec,0x4d,0xfa,0xab,0x38,0xfd,0x0f,
2384
0xc1,0xdd,0x9b,0xb3,0xb7,0xf0,0x17,0x44,0xfe,0x23,0x5a,0x2b,0xd5,0x7f,0x23,0x0d,
2385
0x40,0xcb,0x8f,0xb4,0xee,0xed,0xdc,0xdb,0xb7,0xd7,0xb4,0x77,0x68,0xef,0xfd,0xbf,
2386
0xc8,0x43,0x2b,0x8f,0xad,0x3c,0x05,0xe6,0xfe,0x26,0x16,0x80,0xef,0xfe,0x24,0xc8,
2387
0xd7,0xde,0xd7,0xd9,0xd7,0xcd,0xd7,0xcb,0xca,0x5e,0x5f,0x8a,0x95,0x40,0xdf,0x03,
2388
0x7f,0x40,0xb8,0x6f,0x8c,0x95,0x24,0xdf,0xd3,0x56,0xb8,0xbe,0x39,0x3f,0x0b,0x85,
2389
0xbe,0x72,0x5f,0xad,0x6f,0xf5,0x3f,0x9d,0x06,0xdf,0x16,0xdf,0x0e,0xdf,0xeb,0x7f,
2390
0x40,0xbf,0xef,0x5d,0xdf,0xfb,0xbe,0x0f,0xff,0xc7,0x78,0xe4,0xfb,0x78,0x8d,0x35,
2391
0x7e,0x21,0x26,0x7d,0xa7,0x7c,0xa7,0x7d,0xcd,0xbe,0x16,0xdf,0x79,0xdf,0x45,0xdf,
2392
0x25,0xdf,0x65,0xdf,0x15,0x5f,0xbb,0x7d,0x8e,0xfb,0x88,0xfb,0x3c,0xf7,0x91,0xf6,
2393
0x91,0xf7,0xd1,0xf7,0x05,0xef,0x0b,0xdb,0xc7,0xd9,0x97,0xb8,0x2f,0x6d,0x9f,0x60,
2394
0x9f,0x64,0x9f,0x66,0x5f,0xcd,0xbe,0xe6,0x7d,0x9d,0xfb,0x4c,0xfb,0x86,0xf7,0x8d,
2395
0xef,0x9b,0xde,0xb7,0xb8,0xcf,0xe6,0x0d,0x97,0x37,0xbc,0xdf,0xa0,0xbe,0x11,0xf2,
2396
0x46,0xec,0x1b,0x69,0x6f,0x08,0xdf,0x90,0xbc,0xa1,0x78,0x43,0xf7,0x46,0xcd,0x1b,
2397
0x8d,0x6f,0xb4,0xbe,0xd1,0xf9,0x46,0xcf,0x1b,0x03,0x6f,0x8c,0xbc,0x31,0xfe,0xc6,
2398
0xd4,0x1b,0x96,0x37,0x96,0xde,0xb0,0xf1,0x73,0xf4,0x73,0xf7,0x23,0xf9,0x51,0xfd,
2399
0x82,0xfd,0x58,0x7e,0x89,0x7e,0x69,0x7e,0x02,0x3f,0x89,0x9f,0xc6,0xaf,0xc6,0xaf,
2400
0xd9,0xaf,0xd3,0xcf,0xe4,0x37,0xec,0x37,0xe6,0x37,0xe9,0x67,0xf6,0x5b,0xf4,0x5b,
2401
0xf1,0x23,0x90,0x89,0x64,0x6f,0x32,0x99,0xcc,0x20,0x87,0x91,0x63,0xc9,0xa9,0x64,
2402
0x1e,0x59,0x4c,0x96,0x90,0x65,0x64,0x05,0x59,0x43,0xd6,0x91,0x8d,0xe4,0x1a,0x72,
2403
0x1d,0xb9,0x91,0xdc,0x4c,0x6e,0x25,0xb7,0x93,0x3b,0xc9,0xdd,0xe4,0x1e,0xb2,0x89,
2404
0x3c,0x40,0x1e,0x22,0x0f,0x93,0x47,0xc8,0xa3,0xe4,0x31,0xf2,0x38,0x79,0x82,0x3c,
2405
0x49,0x9e,0x22,0x4f,0x93,0xcd,0x64,0x0b,0x79,0x9e,0xbc,0x48,0x5e,0x22,0x2f,0x93,
2406
0x57,0xc8,0x36,0xfe,0x76,0xfe,0x04,0x7f,0x47,0x7f,0x17,0x7f,0xa2,0xbf,0xbb,0xbf,
2407
0xa7,0xbf,0xb7,0x3f,0xc9,0xdf,0xd7,0x9f,0xec,0x4f,0xf5,0xa7,0xfb,0x33,0xfc,0x83,
2408
0xfd,0x43,0xfc,0xc3,0xfc,0xc3,0x7f,0x06,0x58,0xfe,0x49,0xff,0x52,0x24,0xfb,0x67,
2409
0xf8,0x0b,0xfc,0x0b,0xff,0x85,0x90,0xaf,0xf1,0x0f,0xa1,0xf0,0xd7,0xf8,0x6b,0xd7,
2410
0xf8,0x97,0x47,0xe7,0x6f,0x58,0x63,0x8d,0x7f,0x22,0x46,0xff,0xea,0x5f,0x05,0x35,
2411
0xfe,0xb5,0x7f,0x86,0x3a,0xa0,0xd1,0xbf,0xd9,0xbf,0xd5,0xbf,0xdd,0xbf,0xd3,0xbf,
2412
0xdb,0xbf,0xc7,0xdf,0xe4,0x3f,0xe0,0x3f,0xe4,0x3f,0xec,0x3f,0xe2,0x3f,0xea,0x3f,
2413
0xe6,0x3f,0xee,0x3f,0xe1,0x3f,0xe9,0x3f,0xe5,0x3f,0xed,0x6f,0xf6,0xb7,0xf8,0xcf,
2414
0xfb,0x2f,0xfa,0x2f,0xf9,0x2f,0xfb,0xaf,0xf8,0xdb,0x04,0xd8,0x05,0x10,0x02,0x1c,
2415
0x03,0x5c,0x02,0x88,0x01,0xee,0x01,0x9e,0x01,0xde,0x01,0xa4,0x00,0xdf,0x00,0x72,
2416
0x00,0x35,0x80,0x1e,0xc0,0x08,0x08,0x0e,0x08,0x09,0x08,0x0b,0x60,0x05,0x70,0x02,
2417
0x62,0x03,0x12,0x03,0x92,0x03,0x52,0x03,0xd2,0x02,0x32,0x02,0x78,0x01,0x82,0x00,
2418
0x61,0x80,0x38,0x40,0x12,0x20,0x0b,0x50,0x04,0x68,0x02,0x74,0x01,0xc6,0x80,0x9a,
2419
0x80,0xba,0x80,0xc6,0x80,0xe6,0x80,0xd6,0x80,0xf6,0x80,0xce,0x80,0xee,0x80,0x9e,
2420
0x00,0x53,0xc0,0x40,0xc0,0x50,0xc0,0x70,0xc0,0x48,0xc0,0x68,0xc0,0x58,0xc0,0x78,
2421
0xc0,0x44,0xc0,0x64,0xc0,0x54,0xc0,0x74,0x80,0x39,0xc0,0x12,0x30,0x1f,0xb0,0x18,
2422
0xb0,0x14,0xb0,0x1c,0xb0,0x12,0x60,0x43,0xb1,0xa3,0x10,0x28,0x8e,0x14,0x17,0x0a,
2423
0x91,0xe2,0x4e,0xf1,0xa4,0x78,0x53,0x48,0xf0,0xa2,0x47,0xa6,0x50,0x29,0x74,0x0a,
2424
0x83,0x12,0x4c,0x09,0xa1,0x84,0x51,0x58,0x14,0x0e,0x25,0x96,0x92,0x48,0x49,0xa6,
2425
0xa4,0x52,0xd2,0x28,0x19,0x14,0x1e,0x45,0x40,0x11,0x52,0xc4,0x14,0x09,0x45,0x46,
2426
0x51,0x50,0x34,0x14,0x1d,0xc5,0x48,0xa9,0xa1,0xd4,0x51,0x1a,0x29,0xcd,0x94,0x56,
2427
0x4a,0x3b,0xa5,0x93,0xd2,0x4d,0xe9,0xa1,0x98,0x28,0x03,0x94,0x21,0xca,0x30,0x65,
2428
0x84,0x32,0x4a,0x19,0xa3,0x8c,0x53,0x26,0x28,0x93,0x94,0x29,0xca,0x34,0xc5,0x4c,
2429
0xb1,0x50,0xe6,0x29,0x8b,0x94,0x25,0xca,0x32,0x65,0x85,0x62,0x43,0xb5,0xa3,0x12,
2430
0xa8,0x8e,0x54,0x17,0x2a,0x91,0xea,0x4e,0xf5,0xa4,0x7a,0x53,0x49,0x54,0x5f,0x2a,
2431
0x99,0x4a,0xa5,0xd2,0xa9,0x0c,0x6a,0x30,0x35,0x84,0x1a,0x46,0x65,0x51,0x39,0xd4,
2432
0x58,0x6a,0x22,0x35,0x99,0x9a,0x4a,0x4d,0xa3,0x66,0x50,0x79,0x54,0x01,0x55,0x48,
2433
0x15,0x53,0x25,0x54,0x19,0x55,0x41,0xd5,0x50,0x75,0x54,0x23,0xb5,0x86,0x5a,0x47,
2434
0x6d,0xa4,0x36,0x53,0x5b,0xa9,0xed,0xd4,0x4e,0x6a,0x37,0xb5,0x87,0x6a,0xa2,0x0e,
2435
0x50,0x87,0xa8,0xc3,0xd4,0x11,0xea,0x28,0x75,0x8c,0x3a,0x4e,0x9d,0xa0,0x4e,0x52,
2436
0xa7,0xa8,0xd3,0x54,0x33,0xd5,0x42,0x7d,0xfe,0x4f,0x60,0x1e,0x58,0xf8,0xc5,0x58,
2437
0xa4,0xbe,0xa0,0x2e,0x51,0x97,0xa9,0x2b,0x54,0xf4,0xbb,0xbf,0x8c,0x3d,0xe0,0x0c,
2438
0xb8,0x01,0x5e,0xc0,0x5e,0x80,0x02,0x04,0x02,0x07,0x80,0x70,0x20,0x06,0x48,0x02,
2439
0x4e,0x5b,0xe1,0x02,0x39,0x40,0xe1,0x1f,0x20,0xff,0x9d,0x16,0xa8,0xfe,0x5d,0x03,
2440
0xd0,0xf2,0xbb,0x0e,0xe0,0xfa,0xef,0xfa,0x81,0xbb,0xbf,0xbb,0xff,0x37,0xf1,0xf0,
2441
0x27,0x8c,0xff,0x6e,0xf2,0x77,0x4f,0x01,0xcb,0xef,0x16,0xfe,0x2c,0xdf,0x01,0xe8,
2442
0x4d,0xf4,0xa6,0x3d,0xe0,0x0c,0xb8,0x01,0x5e,0xc0,0x5e,0x80,0x02,0x04,0x02,0x07,
2443
0x80,0x70,0x20,0xc6,0x4a,0x12,0x70,0x1a,0xe0,0xfe,0x01,0x39,0x6f,0x16,0x02,0xf2,
2444
0x37,0xb5,0x40,0xf5,0x9b,0x0d,0x40,0xcb,0x9b,0x1d,0xc0,0xf5,0x37,0xfb,0xff,0x26,
2445
0xee,0x5a,0xb9,0xff,0xe6,0xc3,0x37,0x1f,0xbf,0xf9,0xf4,0x7b,0x2c,0x6f,0x2e,0xfc,
2446
0x02,0x2c,0xbe,0xb9,0xf4,0xe6,0xf2,0x9b,0x2b,0x6f,0xda,0xd0,0xec,0x68,0x04,0x9a,
2447
0x23,0xcd,0x85,0x46,0xa4,0xb9,0xd3,0x3c,0x69,0xde,0x34,0x12,0xcd,0x97,0x46,0xa6,
2448
0x51,0x69,0x74,0x1a,0x83,0x16,0x4c,0x0b,0xa1,0x85,0xd1,0x58,0x34,0x0e,0x2d,0x96,
2449
0x96,0x48,0x4b,0xa6,0xa5,0xd2,0xd2,0x68,0x19,0x34,0x1e,0x4d,0x40,0x13,0xd2,0xc4,
2450
0x34,0x09,0x4d,0x46,0x53,0xd0,0x34,0x34,0x1d,0xcd,0x48,0xab,0xa1,0xd5,0xd1,0x1a,
2451
0x69,0xcd,0xb4,0x56,0x5a,0x3b,0xad,0x93,0xd6,0x4d,0xeb,0xa1,0x99,0x68,0x03,0xb4,
2452
0x21,0xda,0x30,0x6d,0x84,0x36,0x4a,0x1b,0xa3,0x8d,0xd3,0x26,0x68,0x93,0xb4,0x29,
2453
0xda,0x34,0xcd,0x4c,0xb3,0xd0,0xe6,0x69,0x8b,0xb4,0x25,0xda,0x32,0x6d,0x85,0x66,
2454
0x43,0xb7,0xa3,0x13,0xe8,0x8e,0x74,0x17,0x3a,0x91,0xee,0x4e,0xf7,0xa4,0x7b,0xd3,
2455
0x49,0x74,0x5f,0x3a,0x99,0x4e,0xa5,0xd3,0xe9,0x0c,0x7a,0x30,0x3d,0x84,0x1e,0x46,
2456
0x67,0xd1,0x39,0xf4,0x58,0x7a,0x22,0x3d,0x99,0x9e,0x4a,0x4f,0xa3,0x67,0xd0,0xb9,
2457
0x56,0x78,0x74,0x01,0x5d,0x48,0x17,0xd3,0x25,0x74,0x19,0x5d,0x41,0xd7,0xd0,0x75,
2458
0x74,0x23,0xbd,0x86,0x5e,0x47,0x6f,0xa4,0x37,0xd3,0x5b,0x7e,0xe5,0xb4,0x02,0xdd,
2459
0xf4,0x01,0xfa,0x08,0x7d,0x9c,0x3e,0x45,0xb7,0xd0,0x97,0xe8,0x36,0x6f,0x39,0xbe,
2460
0xe5,0xfe,0x16,0xe9,0x2d,0xea,0x5b,0xc1,0x6f,0xb1,0xde,0x4a,0x7e,0x8b,0xf7,0x96,
2461
0xe4,0x2d,0xdd,0x5b,0x8d,0x6f,0x75,0xbe,0x35,0xf0,0xd6,0xe8,0x5b,0x93,0x6f,0x59,
2462
0xde,0x5a,0x7e,0x8b,0xf0,0xb6,0xfb,0xdb,0xbe,0x6f,0x33,0xde,0x4e,0x7c,0x9b,0xff,
2463
0xb6,0xe0,0x6d,0xc9,0xdb,0x9a,0xb7,0x6b,0xde,0x6e,0x7e,0xbb,0xf3,0x6d,0xd3,0xdb,
2464
0xc3,0x6f,0x8f,0xbd,0x3d,0xf9,0xb6,0xf9,0xed,0xc5,0xb7,0x57,0xde,0x26,0x04,0x12,
2465
0x03,0xbd,0x03,0xc9,0x81,0x8c,0xc0,0xb0,0xc0,0xd8,0xc0,0xd4,0x40,0x5e,0xa0,0x38,
2466
0x50,0x11,0x68,0x0c,0x6c,0x0c,0x6c,0x0f,0xec,0x09,0x1c,0x0a,0x1c,0x0d,0x9c,0x08,
2467
0x9c,0x0e,0x9c,0x0f,0x5c,0x0e,0xb4,0x63,0xb8,0x30,0x3c,0x19,0xde,0x0c,0x12,0xc3,
2468
0x97,0xe1,0xf7,0x47,0x90,0x19,0x0c,0x46,0x08,0x83,0xc5,0x88,0x65,0x24,0x33,0xd2,
2469
0x18,0x3c,0x86,0x90,0x21,0x61,0x28,0x18,0x3a,0x46,0x0d,0xa3,0x91,0xd1,0xca,0xe8,
2470
0x64,0xf4,0x30,0x4c,0x8c,0x01,0xc6,0x10,0x63,0x98,0x31,0xc2,0x18,0x65,0x8c,0x31,
2471
0xc6,0x19,0x13,0x8c,0x49,0xc6,0x14,0x63,0x9a,0x61,0x66,0x58,0x18,0x8b,0x8c,0x65,
2472
0x86,0x4d,0x10,0x21,0xc8,0x25,0xc8,0x3d,0xc8,0x3b,0xc8,0x37,0x88,0x1a,0xc4,0x08,
2473
0x0a,0x09,0x62,0x05,0xc5,0x06,0x25,0x07,0x09,0x82,0x64,0x41,0xea,0x20,0x4d,0x90,
2474
0x2e,0xc8,0x18,0x54,0x13,0x54,0x17,0xd4,0x18,0xd4,0x1c,0xd4,0x1a,0xd4,0x1e,0xd4,
2475
0x19,0xd4,0x1d,0xd4,0x13,0x64,0x0a,0x1a,0x08,0x1a,0x0a,0x1a,0x0e,0x1a,0x09,0x1a,
2476
0x0d,0x1a,0x0b,0x1a,0x0f,0x9a,0x08,0x9a,0x0c,0x9a,0x0a,0x9a,0x0e,0x32,0x07,0x59,
2477
0x82,0xe6,0x83,0x16,0x83,0x96,0x82,0x96,0x83,0x56,0x82,0x6c,0xf6,0xdb,0xed,0x27,
2478
0xec,0x77,0xdc,0xef,0xb2,0x9f,0xb8,0xdf,0x7d,0xbf,0xe7,0x7e,0xef,0xfd,0xa4,0xfd,
2479
0xbe,0xfb,0xc9,0xfb,0xa9,0xfb,0xe9,0xfb,0x19,0xfb,0x83,0xf7,0x87,0xec,0x0f,0xdb,
2480
0xcf,0xda,0x1f,0xbb,0x3f,0x79,0x7f,0xda,0x7e,0xde,0x7e,0xe1,0x7e,0xc9,0x7e,0xc5,
2481
0x7e,0xdd,0xfe,0x9a,0xfd,0x8d,0xfb,0x5b,0xf7,0x77,0xee,0xef,0xd9,0x3f,0xb0,0x7f,
2482
0x78,0xff,0xe8,0xfe,0xf1,0xfd,0x93,0xfb,0xa7,0xf7,0x5b,0xf6,0x2f,0xee,0x5f,0xde,
2483
0x6f,0xc3,0x24,0x30,0x89,0x4c,0x6f,0x26,0x99,0x49,0x67,0x86,0x30,0x59,0xcc,0x44,
2484
0x66,0x32,0x33,0x95,0x99,0xc6,0xcc,0x60,0xf2,0x98,0x02,0xa6,0x90,0x29,0x66,0x4a,
2485
0x98,0x32,0xa6,0x82,0xa9,0x61,0xea,0x98,0x46,0x66,0x0d,0xb3,0x8e,0xd9,0xc8,0x6c,
2486
0x66,0xb6,0x32,0xdb,0x99,0x9d,0xcc,0x6e,0x66,0x0f,0xd3,0xc4,0x1c,0x60,0x0e,0x31,
2487
0x87,0x99,0x23,0xcc,0x51,0xe6,0x18,0x73,0x9c,0x39,0xc1,0x9c,0x64,0x4e,0x31,0xa7,
2488
0x99,0x66,0xa6,0x85,0x39,0xcf,0x5c,0x64,0x2e,0x31,0x97,0x99,0x2b,0x4c,0x9b,0x60,
2489
0xbb,0x60,0x42,0xb0,0x63,0xb0,0x4b,0xb0,0x3b,0x40,0x0e,0x0e,0x0e,0x8e,0x0d,0x4e,
2490
0x0d,0x16,0x06,0xcb,0x82,0x75,0xc1,0xad,0xc1,0x3d,0xc1,0x43,0xc1,0xa3,0xc1,0x13,
2491
0xc1,0xe6,0xe0,0xa5,0x60,0xbb,0x77,0x88,0xef,0x90,0xde,0xa1,0xbf,0x13,0xf6,0x4e,
2492
0xea,0x3b,0x19,0xef,0xc8,0xde,0xa9,0x7b,0xa7,0xf3,0x9d,0x81,0x77,0xc6,0xdf,0xb1,
2493
0xbc,0xb3,0xfc,0x8e,0xdd,0xbb,0x2e,0xef,0x7a,0xbf,0x4b,0x7d,0x37,0xec,0xdd,0xe4,
2494
0x77,0x33,0xde,0x15,0xbe,0xab,0x78,0xd7,0xf8,0x6e,0xe3,0xbb,0xad,0xef,0x76,0xbe,
2495
0x6b,0x7a,0x77,0xf8,0xdd,0xc9,0x77,0x2d,0xef,0xae,0xbc,0x4b,0x3c,0x40,0x3a,0x40,
2496
0x3d,0x10,0x7c,0x20,0xf1,0x40,0xc6,0x01,0xd9,0x01,0xdd,0x81,0xe6,0x03,0x9d,0x07,
2497
0x06,0x0e,0x8c,0x1c,0x98,0x38,0x60,0x39,0xb0,0x7c,0xc0,0x31,0xc4,0x33,0x84,0x14,
2498
0xc2,0x08,0x09,0x0b,0x89,0x0d,0x49,0x0b,0x11,0x84,0x48,0x42,0x34,0x21,0x8d,0x21,
2499
0x9d,0x21,0x3d,0x21,0xa3,0x21,0x13,0x21,0x96,0x90,0xe5,0x10,0xc2,0x41,0xe2,0x41,
2500
0xef,0x83,0xd4,0x83,0x8c,0x83,0xac,0x83,0xa9,0x07,0x33,0x0e,0xca,0x0e,0xea,0x0e,
2501
0xd6,0x1c,0x6c,0x3c,0xd8,0x7a,0xb0,0xf3,0x60,0xcf,0xc1,0x81,0x83,0xc3,0x07,0x47,
2502
0x0f,0x8e,0x1f,0x9c,0x3c,0x68,0x3e,0xb8,0x78,0x70,0xe5,0x20,0xe1,0x10,0xf1,0x90,
2503
0xf7,0x21,0xf2,0x21,0xc6,0xa1,0xb0,0x43,0xb1,0x87,0x52,0x0f,0xf1,0x0e,0x89,0x0f,
2504
0x29,0x0e,0x19,0x0f,0x35,0x1e,0x6a,0x3d,0xd4,0x79,0xc8,0x74,0x68,0xe8,0xd0,0xc8,
2505
0xa1,0xb1,0x43,0x93,0x87,0xcc,0x87,0xe6,0x0f,0x2d,0x1d,0x5a,0x39,0x64,0x17,0xea,
2506
0x18,0xea,0x19,0x4a,0x0a,0x25,0x87,0xd2,0x43,0x83,0x43,0xc3,0x42,0x39,0xa1,0x89,
2507
0xa1,0xa9,0xa1,0xbc,0x50,0x49,0xa8,0x22,0x54,0x17,0x5a,0x13,0xda,0x18,0xda,0x1a,
2508
0xda,0x19,0xda,0x13,0x3a,0x14,0x3a,0x1a,0x3a,0x11,0x3a,0x1d,0x6a,0x09,0x5d,0x0c,
2509
0x5d,0x0e,0xb5,0x09,0x23,0x84,0xb9,0x84,0xb9,0x87,0x79,0x87,0xf9,0x86,0x51,0xc3,
2510
0x82,0xc3,0x58,0x61,0xb1,0x61,0xa9,0x61,0xbc,0x30,0x71,0x98,0x2c,0x4c,0x17,0x56,
2511
0x17,0xd6,0x1e,0xd6,0x1d,0x36,0x10,0x36,0x12,0x36,0x1e,0x36,0x15,0xb6,0x18,0x46,
2512
0x38,0xec,0x72,0xd8,0xfd,0xb0,0xf7,0x61,0xdf,0xc3,0xd4,0xc3,0x8c,0xc3,0x21,0x87,
2513
0x59,0x87,0x63,0x0f,0x27,0x1f,0x4e,0x3b,0xcc,0x3b,0x2c,0x3c,0x2c,0x39,0xac,0x38,
2514
0xac,0x3b,0x5c,0x73,0xb8,0xf1,0x70,0xe7,0xe1,0x9e,0xc3,0x03,0x87,0x87,0x0f,0x8f,
2515
0x1f,0x9e,0x3a,0x6c,0x3e,0x3c,0x7f,0x78,0xe9,0xf0,0xca,0x61,0xbb,0x23,0x8e,0x47,
2516
0x88,0x47,0x3c,0x8f,0x90,0x8e,0x90,0x8f,0x30,0x8e,0x84,0x1c,0x61,0x1d,0x49,0x3c,
2517
0x92,0x76,0x84,0x77,0x44,0x72,0x44,0x73,0xc4,0x78,0xa4,0xee,0x48,0xf3,0x91,0xf6,
2518
0x23,0x3d,0x47,0x86,0x8e,0x8c,0x1c,0x19,0x3b,0x32,0x71,0x64,0xea,0x88,0xf9,0xc8,
2519
0xfc,0x91,0xa5,0x23,0x2b,0x47,0xec,0xc2,0x5d,0xc2,0x3d,0xc3,0x7d,0xc3,0xe9,0xe1,
2520
0x21,0xe1,0x9c,0xf0,0xe4,0xf0,0x8c,0x70,0x61,0xb8,0x2c,0x5c,0x17,0x5e,0x17,0xde,
2521
0x1a,0xde,0x1d,0x3e,0x10,0x3e,0x12,0x3e,0x1e,0x3e,0x15,0x6e,0x09,0x5f,0x0a,0xb7,
2522
0x61,0x39,0xb2,0xdc,0xd6,0xf8,0x3b,0x71,0x67,0x79,0xb2,0xbc,0xd6,0xf8,0x15,0xe0,
2523
0xcd,0xf2,0xf9,0x8d,0x43,0x62,0xf9,0xb2,0xc8,0x2c,0x2a,0x8b,0x66,0x85,0xce,0x62,
2524
0xb0,0x98,0xff,0x12,0x04,0xb3,0x42,0x58,0x61,0x2c,0x16,0x8b,0xfd,0x5f,0xe0,0xb0,
2525
0x62,0xd6,0xf8,0x9b,0x48,0x60,0x25,0xb1,0x52,0x58,0xa7,0x59,0xe9,0x2c,0x2e,0x8b,
2526
0xcf,0xca,0x61,0x89,0x58,0x85,0x2c,0x29,0x4b,0xce,0x52,0xb3,0xb4,0x2c,0x03,0xab,
2527
0x9a,0x55,0xcb,0x6a,0x60,0x35,0xb1,0x5a,0x58,0x6d,0xac,0x0e,0x56,0x17,0xeb,0x3a,
2528
0xab,0x8f,0xd5,0xcf,0x1a,0x64,0xdd,0x65,0xdd,0x63,0xdd,0x67,0x3d,0x60,0x3d,0x64,
2529
0x3d,0x62,0x3d,0x66,0x3d,0x61,0x3d,0x65,0xcd,0xb0,0xe6,0x58,0xcf,0x59,0x0b,0xac,
2530
0x17,0xac,0xef,0x58,0x2f,0x59,0x28,0xc2,0x36,0xc2,0x3e,0xc2,0x21,0xc2,0x39,0xc2,
2531
0x35,0xc2,0x2d,0xc2,0x23,0xc2,0x2b,0xc2,0x27,0x62,0x6f,0x84,0x5f,0x04,0x25,0x82,
2532
0x16,0x11,0x18,0xc1,0x8c,0x38,0x10,0x11,0x1a,0x11,0x1e,0xc1,0x8e,0x88,0x89,0x48,
2533
0x88,0x48,0x8a,0x48,0x89,0x38,0x1d,0x91,0x1e,0xc1,0x8d,0xe0,0x47,0xe4,0x44,0x88,
2534
0x22,0x0a,0x23,0xa4,0x11,0xf2,0x08,0x75,0x84,0x36,0xc2,0x10,0x51,0x1d,0x51,0x1b,
2535
0xd1,0x10,0xd1,0x14,0xd1,0x12,0xd1,0x16,0xd1,0x11,0xd1,0x15,0x71,0x3d,0xa2,0x2f,
2536
0xa2,0x3f,0x62,0x30,0xe2,0x6e,0xc4,0xbd,0x88,0xfb,0x11,0x0f,0x22,0x1e,0x46,0x3c,
2537
0x8a,0x78,0x1c,0xf1,0x24,0xe2,0x69,0xc4,0x4c,0xc4,0x5c,0xc4,0xf3,0x88,0x85,0x88,
2538
0x17,0x11,0xdf,0x45,0xbc,0x8c,0x40,0x91,0xb6,0x91,0xf6,0x91,0x0e,0x91,0xce,0x91,
2539
0xae,0x91,0x6e,0x91,0x1e,0x91,0x5e,0x91,0x3e,0x91,0x7b,0x23,0xfd,0x22,0x29,0x91,
2540
0xb4,0xc8,0xc0,0x48,0x66,0xe4,0x81,0xc8,0xd0,0xc8,0xf0,0x48,0x76,0x64,0x4c,0x64,
2541
0x42,0x64,0x52,0x64,0x4a,0xe4,0xe9,0xc8,0xf4,0x48,0x6e,0x24,0x3f,0x32,0x27,0x52,
2542
0x14,0x59,0x18,0x29,0x8d,0x94,0x47,0xaa,0x23,0xb5,0x91,0x86,0xc8,0xea,0xc8,0xda,
2543
0xc8,0x86,0xc8,0xa6,0xc8,0x96,0xc8,0xb6,0xc8,0x8e,0xc8,0xae,0xc8,0xeb,0x91,0x7d,
2544
0x91,0xfd,0x91,0x83,0x91,0x77,0x23,0xef,0x45,0xde,0x8f,0x7c,0x10,0xf9,0x30,0xf2,
2545
0x51,0xe4,0xe3,0xc8,0x27,0x91,0x4f,0x23,0x67,0x22,0xe7,0x22,0x9f,0x47,0x2e,0x44,
2546
0xbe,0x88,0xfc,0x2e,0xf2,0x65,0x24,0x62,0xdb,0xb2,0xed,0xd9,0x0e,0x6c,0x67,0xb6,
2547
0x2b,0xdb,0x8d,0xed,0xc1,0xf6,0x62,0xfb,0xb0,0xf7,0xb2,0xfd,0xd8,0x14,0x36,0x8d,
2548
0x1d,0xc8,0x66,0xb2,0x0f,0xb0,0x43,0xd9,0xe1,0x6c,0x36,0x3b,0x86,0x9d,0xc0,0x4e,
2549
0x62,0xa7,0xb0,0x4f,0xb3,0xd3,0xd9,0x5c,0x36,0x9f,0x9d,0xc3,0x16,0xb1,0x0b,0xd9,
2550
0x52,0xb6,0x9c,0xad,0x66,0x6b,0xd9,0x06,0x76,0x35,0xbb,0x96,0xdd,0xc0,0x6e,0x62,
2551
0xb7,0xb0,0xdb,0xd8,0x1d,0xec,0x2e,0xf6,0x75,0x76,0x1f,0xbb,0x9f,0x3d,0xc8,0xbe,
2552
0xcb,0xbe,0xc7,0xbe,0xcf,0x7e,0xc0,0x7e,0xc8,0x7e,0xc4,0x7e,0xcc,0x7e,0xc2,0x7e,
2553
0xca,0x9e,0x61,0xcf,0xb1,0x9f,0xb3,0x17,0xd8,0x2f,0xd8,0xdf,0xb1,0x5f,0xb2,0x11,
2554
0xc7,0x96,0x63,0xcf,0x71,0xe0,0x38,0x73,0x5c,0x39,0x6e,0x1c,0x0f,0x8e,0x17,0xc7,
2555
0x87,0xb3,0x97,0xe3,0xc7,0xa1,0x70,0x68,0x9c,0x40,0x0e,0x93,0x73,0x80,0x13,0xca,
2556
0x09,0xe7,0xb0,0x39,0x31,0x40,0x02,0x27,0x89,0x93,0xc2,0x39,0xcd,0x49,0xe7,0x70,
2557
0x39,0x7c,0x4e,0x0e,0x47,0xc4,0x29,0xe4,0x48,0x39,0x72,0x8e,0x9a,0xa3,0xb5,0x62,
2558
0x00,0xaa,0xad,0xd4,0x72,0x1a,0x38,0x4d,0x9c,0x16,0x4e,0x1b,0xa7,0x83,0xd3,0xc5,
2559
0xb9,0xce,0xe9,0xe3,0xf4,0x03,0x83,0xc0,0x5d,0x2b,0xf7,0x38,0xf7,0xbf,0xe7,0x01,
2560
0xe7,0x21,0xe7,0x11,0xe7,0x31,0xe7,0x09,0xe7,0x29,0x67,0x86,0x33,0xc7,0x79,0xce,
2561
0x59,0xe0,0xbc,0xe0,0x7c,0xc7,0x79,0xc9,0x41,0x51,0xb6,0x51,0xf6,0x51,0x0e,0x51,
2562
0xce,0x51,0xae,0x51,0x6e,0x51,0x1e,0x51,0x5e,0x51,0x3e,0x51,0x7b,0xa3,0xfc,0xa2,
2563
0x28,0x51,0xb4,0xa8,0xc0,0x28,0x66,0xd4,0x81,0xa8,0xd0,0xa8,0xf0,0x28,0x76,0x54,
2564
0x4c,0x54,0x42,0x54,0x52,0x54,0x4a,0xd4,0xe9,0xa8,0xf4,0x28,0x6e,0x14,0x3f,0x2a,
2565
0x27,0x4a,0x14,0x55,0x18,0x25,0x8d,0x92,0x47,0xa9,0xa3,0xb4,0x51,0x86,0xa8,0xea,
2566
0xa8,0xda,0xa8,0x86,0xa8,0xa6,0xa8,0x96,0xa8,0xb6,0xa8,0x8e,0xa8,0xae,0xa8,0xeb,
2567
0x51,0x7d,0x51,0xfd,0x51,0x83,0x51,0x77,0xa3,0xee,0x45,0xdd,0x8f,0x7a,0x10,0xf5,
2568
0x30,0xea,0x51,0xd4,0x63,0x2b,0x4f,0xa2,0x9e,0x46,0xcd,0x44,0xcd,0x45,0x3d,0x8f,
2569
0x5a,0x88,0x7a,0x11,0xf5,0x5d,0xd4,0xcb,0x28,0x14,0x6d,0x1b,0x6d,0x1f,0xed,0x10,
2570
0xed,0x1c,0xed,0x1a,0xed,0x16,0xed,0x11,0xed,0x15,0xed,0x13,0xbd,0x37,0xda,0x2f,
2571
0x9a,0x12,0x4d,0x8b,0x0e,0x8c,0x66,0x46,0x1f,0x88,0x0e,0x8d,0x0e,0x8f,0x66,0x47,
2572
0xc7,0x44,0x27,0x44,0x27,0x45,0xa7,0x44,0x9f,0x8e,0x4e,0x8f,0xe6,0x46,0xf3,0xa3,
2573
0x73,0xa2,0x45,0xd1,0x85,0xd1,0xd2,0x68,0x79,0xb4,0x3a,0x5a,0x1b,0x6d,0x88,0xae,
2574
0x8e,0xae,0x8d,0x6e,0x88,0x6e,0x8a,0x6e,0x89,0x6e,0x8b,0xee,0x88,0xee,0x8a,0xbe,
2575
0x1e,0xdd,0x17,0xdd,0x1f,0x3d,0x18,0x7d,0x37,0xfa,0x5e,0xf4,0xfd,0xe8,0x07,0xd1,
2576
0x0f,0xa3,0x1f,0x45,0x3f,0x8e,0x7e,0x12,0xfd,0x34,0x7a,0x26,0x7a,0x2e,0xfa,0x79,
2577
0xf4,0x42,0xf4,0x8b,0xe8,0xef,0xa2,0x5f,0x46,0xa3,0x18,0xdb,0x18,0xfb,0x18,0x87,
2578
0x18,0xe7,0x18,0xd7,0x18,0xb7,0x18,0x8f,0x18,0xaf,0x18,0x9f,0x98,0xbd,0x31,0x7e,
2579
0x31,0x94,0x18,0x5a,0x4c,0x60,0x0c,0x33,0xe6,0x40,0x4c,0x68,0x4c,0x78,0x0c,0x3b,
2580
0x26,0x26,0x26,0x21,0x26,0x29,0x26,0x25,0xe6,0x74,0x4c,0x7a,0x0c,0x37,0x86,0x1f,
2581
0x93,0x13,0x23,0x8a,0x29,0x8c,0x91,0xc6,0xc8,0x7f,0x46,0x14,0x80,0x2e,0xa6,0x26,
2582
0xa6,0x31,0xa6,0x3d,0xa6,0x27,0x66,0x20,0xe6,0xee,0x9f,0x61,0x38,0x66,0x34,0x66,
2583
0x3c,0x66,0x32,0x66,0x3a,0x66,0xee,0x27,0x2c,0x00,0xcb,0x31,0x2b,0x31,0x36,0xb1,
2584
0x76,0xb1,0x84,0x58,0xc7,0x58,0x97,0x58,0x62,0xac,0x7b,0xac,0x67,0xac,0x57,0xec,
2585
0xde,0x58,0x4a,0x2c,0x33,0x36,0x3c,0x36,0x26,0x36,0x29,0xf6,0x74,0x2c,0x37,0x36,
2586
0x27,0xb6,0x30,0x56,0x1e,0xab,0x8d,0xad,0x06,0x1a,0x62,0x5b,0x62,0x3b,0x62,0xaf,
2587
0xc7,0xf6,0x03,0x77,0x81,0xfb,0xb1,0x0f,0x81,0xc7,0xb1,0x4f,0x81,0xb9,0xd8,0x85,
2588
0xd8,0xef,0x62,0x51,0x9c,0x7d,0x9c,0x73,0x9c,0x5b,0x9c,0x57,0x9c,0x6f,0x1c,0x35,
2589
0x8e,0x1e,0xc7,0x88,0x0b,0x8e,0x0b,0x89,0x0b,0x8b,0x63,0xc5,0x71,0xe2,0x62,0xe3,
2590
0x12,0xe3,0x92,0xe3,0x52,0xe3,0xd2,0xe2,0x32,0xe2,0x78,0x71,0x82,0x38,0x61,0x9c,
2591
0x38,0x4e,0x12,0x27,0x8b,0x53,0xc4,0x69,0xe2,0x74,0x71,0xc6,0xb8,0x9a,0xb8,0xba,
2592
0xb8,0xc6,0xb8,0xe6,0xb8,0xd6,0xb8,0xf6,0xb8,0xce,0xb8,0xee,0xb8,0x9e,0x38,0x53,
2593
0xdc,0x40,0xdc,0x50,0xdc,0x70,0xdc,0x48,0xdc,0x68,0xdc,0x58,0xdc,0x78,0xdc,0x44,
2594
0xdc,0x64,0xdc,0x54,0xdc,0x74,0x9c,0x39,0xce,0x12,0x37,0x1f,0xb7,0x18,0xb7,0x14,
2595
0xb7,0x1c,0xb7,0x12,0x67,0x13,0x6f,0x17,0x4f,0x88,0x77,0x8c,0x77,0x89,0x27,0xc6,
2596
0xbb,0xc7,0x7b,0xc6,0x7b,0xc7,0x93,0xe2,0x7d,0xe3,0xc9,0xf1,0xd4,0x78,0x7a,0x3c,
2597
0x23,0x3e,0x38,0x3e,0x24,0x3e,0x2c,0x9e,0x15,0xcf,0x89,0x8f,0x8d,0x4f,0x8c,0x4f,
2598
0x8e,0x4f,0x8d,0x4f,0x8b,0xcf,0x88,0xe7,0xc5,0x0b,0xe2,0x85,0xf1,0xe2,0x78,0x49,
2599
0xbc,0x2c,0x5e,0x11,0xaf,0x8b,0xaf,0x89,0xaf,0x8b,0x6f,0x8c,0x6f,0x8e,0x6f,0x8d,
2600
0x6f,0x8f,0xef,0x8c,0xef,0x8e,0xef,0x89,0x37,0xc5,0x0f,0xc4,0x0f,0xc7,0xdf,0xff,
2601
0x87,0x19,0x8d,0x1f,0x8b,0x1f,0x8f,0x9f,0x88,0x9f,0x8c,0x9f,0x8a,0x9f,0x8e,0x37,
2602
0xc7,0x5b,0xe2,0xe7,0xe3,0x17,0xe3,0x97,0xe3,0x57,0xe2,0x6d,0x12,0xec,0x12,0x08,
2603
0x09,0x8e,0x09,0x2e,0x09,0xc4,0x04,0xf7,0x04,0xcf,0x04,0xef,0x04,0x52,0x82,0x6f,
2604
0x02,0x3d,0x21,0x24,0x81,0x93,0x90,0x9c,0x90,0x91,0x20,0x4c,0x90,0x25,0xe8,0x12,
2605
0xea,0x12,0x5a,0x13,0xba,0x13,0x06,0x12,0x46,0x12,0xc6,0x13,0xa6,0x12,0x2c,0x09,
2606
0x4b,0x09,0x36,0x89,0x76,0x89,0x84,0x44,0xc7,0x44,0x17,0xc0,0x33,0xd1,0x37,0x91,
2607
0x9e,0x18,0x92,0xc8,0x49,0x4c,0x4c,0x4c,0x4d,0xcc,0x48,0x14,0x24,0x8a,0x13,0x65,
2608
0x89,0x9a,0x44,0x63,0x62,0x5d,0x62,0x73,0x62,0x7b,0x62,0x77,0xa2,0x29,0x71,0x28,
2609
0x71,0x24,0x71,0x2c,0x71,0x22,0x71,0x2a,0xd1,0x9c,0x38,0x9f,0xb8,0x94,0xb8,0x92,
2610
0x68,0x77,0xd4,0xf1,0x28,0xf1,0xa8,0xe7,0x51,0xd2,0x51,0xf2,0x51,0xfa,0xd1,0xe0,
2611
0xa3,0x61,0x47,0x39,0x47,0x13,0x8f,0xa6,0x1e,0xcd,0x38,0x2a,0x38,0x2a,0x3e,0x2a,
2612
0x3b,0xaa,0x39,0x6a,0x3c,0x5a,0x77,0xb4,0xf9,0x68,0xfb,0xd1,0xee,0xa3,0xa6,0xa3,
2613
0x43,0x47,0x47,0x8e,0x8e,0x1d,0x9d,0x38,0x3a,0x75,0xd4,0x7c,0x74,0xfe,0xe8,0xd2,
2614
0xd1,0x95,0xa3,0x76,0xc7,0x1c,0x8f,0x11,0x8f,0x79,0x1e,0x23,0x1d,0x23,0x1f,0xa3,
2615
0x1f,0x0b,0x3e,0x16,0x76,0x8c,0x73,0x2c,0xf1,0x58,0xea,0xb1,0x8c,0x63,0x82,0x63,
2616
0xe2,0x63,0xb2,0x63,0x9a,0x63,0xc6,0x63,0x75,0xc7,0x9a,0x8f,0xb5,0x1f,0xeb,0x3e,
2617
0x66,0x3a,0x36,0x74,0x6c,0xe4,0xd8,0xd8,0xb1,0x89,0x63,0x53,0xc7,0xcc,0xc7,0xe6,
2618
0x8f,0x2d,0x1d,0x5b,0x39,0x66,0x97,0xe4,0x98,0x44,0x4c,0xf2,0x4e,0x22,0x27,0x31,
2619
0x92,0xc2,0x92,0x62,0x93,0x52,0x93,0x78,0x49,0xe2,0x24,0x45,0x92,0x31,0xa9,0x31,
2620
0xa9,0x3d,0xa9,0x3b,0xc9,0x94,0x34,0x94,0x34,0x92,0x34,0x96,0x34,0x91,0x34,0x95,
2621
0x64,0x4e,0x9a,0x4f,0x5a,0x4a,0x5a,0x49,0xb2,0x4b,0x76,0x4c,0x26,0x26,0x7b,0x26,
2622
0x93,0x92,0xc9,0xc9,0xf4,0xe4,0xe0,0xe4,0xb0,0x64,0x4e,0x72,0x62,0x72,0x6a,0x72,
2623
0x46,0xb2,0x20,0x59,0x9c,0x2c,0x4b,0xd6,0x24,0x1b,0x93,0xeb,0x92,0x9b,0x93,0xdb,
2624
0x93,0xbb,0x93,0x4d,0xc9,0x43,0xc9,0x23,0xc9,0x63,0xc9,0x13,0xc9,0x53,0xc9,0xe6,
2625
0xe4,0xf9,0xe4,0xa5,0xe4,0x95,0x64,0xbb,0xe3,0x8e,0xc7,0xdd,0x8f,0x93,0x8e,0x53,
2626
0x8f,0x07,0x1f,0x67,0x1d,0x8f,0x3d,0x9e,0x7c,0x3c,0xed,0x38,0xef,0xb8,0xf0,0xb8,
2627
0xe4,0xb8,0xe2,0xb8,0xee,0x78,0xcd,0xf1,0xc6,0xe3,0xad,0xc7,0x3b,0x8f,0xf7,0x1c,
2628
0x1f,0x38,0x3e,0x7c,0x7c,0xf4,0xf8,0xf8,0xf1,0xc9,0xe3,0xd3,0xc7,0x2d,0xc7,0x17,
2629
0x8f,0x2f,0x1f,0xb7,0x39,0x41,0x38,0xe1,0x72,0xc2,0xfd,0x84,0xf7,0x09,0xdf,0x13,
2630
0xd4,0x13,0x8c,0x13,0x21,0x27,0x58,0x27,0x62,0x4f,0x24,0x9f,0x48,0x3b,0xc1,0x3b,
2631
0x21,0x3c,0x21,0x39,0xa1,0x38,0xa1,0x3b,0x51,0x73,0xa2,0xf1,0x44,0xeb,0x89,0xce,
2632
0x13,0x3d,0x27,0x06,0x4e,0x0c,0x9f,0x18,0x3d,0x31,0x7e,0x62,0xf2,0xc4,0xf4,0x09,
2633
0xcb,0x89,0xc5,0x13,0xcb,0x27,0x6c,0x52,0x08,0x29,0x2e,0x29,0xee,0x29,0xde,0x29,
2634
0xbe,0x29,0xd4,0x14,0x46,0x4a,0x48,0x0a,0x2b,0x25,0x36,0x25,0x39,0x25,0x2d,0x45,
2635
0x90,0x22,0x49,0x51,0xa4,0xe8,0x52,0x6a,0x52,0x1a,0x53,0x5a,0x53,0x3a,0x53,0x7a,
2636
0x52,0x06,0x52,0x86,0x53,0x46,0x53,0xc6,0x53,0x26,0x53,0xa6,0x53,0x2c,0x29,0x8b,
2637
0x29,0xcb,0x29,0x36,0xa9,0x8e,0xa9,0xee,0xa9,0xa4,0x54,0x72,0x2a,0x3d,0x35,0x38,
2638
0x35,0x2c,0x95,0x93,0x9a,0x98,0x9a,0x9a,0x9a,0x91,0x2a,0x48,0x15,0xa7,0xca,0x00,
2639
0x4d,0xaa,0x31,0xb5,0x2e,0xb5,0x39,0xb5,0x3d,0xb5,0x3b,0xd5,0x94,0x3a,0x94,0x3a,
2640
0x92,0x3a,0x96,0x3a,0x91,0x3a,0x95,0x6a,0x4e,0x9d,0x4f,0x5d,0x4a,0x5d,0x49,0xb5,
2641
0x3b,0xe9,0x78,0x92,0x78,0xd2,0xf3,0x24,0xe9,0x24,0xf9,0x24,0xfd,0x64,0xf0,0xc9,
2642
0xb0,0x93,0x9c,0x93,0x89,0x27,0x53,0x4f,0x66,0x9c,0x14,0x9c,0x14,0x9f,0x94,0x9d,
2643
0xd4,0x9c,0x34,0x9e,0xac,0x3b,0xd9,0x7c,0xb2,0xfd,0x64,0xf7,0x49,0xd3,0xc9,0xa1,
2644
0x93,0x23,0x27,0xc7,0x4e,0x4e,0x9c,0x9c,0x3a,0x69,0x3e,0x39,0x7f,0x72,0xe9,0xe4,
2645
0xca,0x49,0xbb,0x53,0x8e,0xa7,0x88,0xa7,0x3c,0x4f,0x91,0x4e,0x91,0x4f,0xd1,0x4f,
2646
0x05,0x9f,0x0a,0x3b,0xc5,0x39,0x95,0x78,0x2a,0xf5,0x54,0xc6,0x29,0xfe,0x5f,0x81,
2647
0xe0,0x94,0xe4,0x94,0xe6,0x54,0xcd,0xa9,0xe6,0x53,0x9d,0xa7,0x4c,0xa7,0x86,0x4f,
2648
0x8d,0x9d,0x9a,0x3c,0x65,0x3e,0xb5,0x78,0x6a,0xe5,0x14,0xe1,0x34,0xf1,0xb4,0xf7,
2649
0x69,0xf2,0x69,0xc6,0xe9,0xb0,0xd3,0xb1,0xa7,0x53,0x4f,0xf3,0x4e,0x8b,0x4f,0x2b,
2650
0x4e,0x1b,0x4f,0x37,0x9e,0x6e,0x3f,0xdd,0x73,0x7a,0xe8,0xf4,0xe8,0xe9,0x89,0xd3,
2651
0xd3,0xa7,0xe7,0x4f,0x2f,0x9f,0xb6,0x4b,0x73,0x49,0xf3,0x4c,0xf3,0x4d,0xa3,0xa7,
2652
0x85,0xa4,0x71,0xd2,0x92,0xd3,0x32,0xd2,0x84,0x69,0xb2,0x34,0x5d,0x5a,0x5d,0x5a,
2653
0x6b,0x5a,0x77,0xda,0x40,0xda,0x48,0xda,0x78,0xda,0x54,0x9a,0x25,0x6d,0x29,0xcd,
2654
0xe6,0x3d,0xc7,0xf7,0xdc,0xdf,0x23,0xbd,0x47,0x7d,0x2f,0xf8,0x3d,0xd6,0x7b,0x89,
2655
0xef,0xa5,0xbd,0xc7,0x07,0x04,0xef,0x49,0xde,0xd3,0xbc,0x57,0xf3,0x5e,0xf3,0x7b,
2656
0x9d,0xef,0x99,0xde,0x1b,0x7e,0x6f,0xec,0xbd,0xc9,0xf7,0xcc,0xef,0x2d,0xbe,0xb7,
2657
0xf2,0x1e,0xe1,0x7d,0xe2,0xfb,0xde,0xef,0x93,0xdf,0x67,0xbc,0x1f,0xf6,0x7e,0xec,
2658
0xfb,0xa9,0xef,0xf3,0xde,0x17,0xbf,0xaf,0x78,0xdf,0xf8,0x7e,0xe3,0xfb,0xed,0xef,
2659
0xf7,0xbc,0x3f,0xf4,0xfe,0xe8,0xfb,0x13,0xef,0x4f,0xbf,0x3f,0xff,0xfe,0xf2,0xfb,
2660
0x76,0xe9,0x2e,0xe9,0x9e,0xe9,0xbe,0xe9,0xf4,0xf4,0x90,0x74,0x4e,0x7a,0x72,0x7a,
2661
0x46,0xba,0x30,0x5d,0x96,0xae,0x4b,0xaf,0x4b,0x6f,0x4d,0xef,0x4e,0x1f,0x48,0x1f,
2662
0x49,0x1f,0x4f,0x9f,0x4a,0xb7,0xa4,0xbf,0xf8,0x99,0x59,0x4a,0xb7,0xc9,0x70,0xcc,
2663
0xf0,0xcc,0x20,0x67,0x04,0x67,0x70,0x32,0x52,0x33,0x04,0x19,0xb2,0x0c,0x5d,0xc6,
2664
0x78,0xc6,0x62,0x06,0xca,0xfc,0xeb,0xb0,0xc9,0xb4,0xcb,0x24,0x64,0x3a,0x66,0xba,
2665
0x64,0x12,0x33,0xdd,0x33,0x3d,0x33,0xbd,0x33,0x49,0x99,0x94,0xbf,0x01,0x6a,0x26,
2666
0x23,0x33,0x38,0x33,0x24,0x33,0x2c,0x93,0x95,0xc9,0xc9,0x8c,0xcd,0x4c,0xcc,0x4c,
2667
0xce,0x4c,0xcd,0x4c,0xcb,0xcc,0xc8,0xe4,0x65,0x0a,0x32,0x85,0x99,0xe2,0x4c,0x49,
2668
0xa6,0x2c,0x53,0x91,0xa9,0xc9,0xd4,0x02,0xba,0x4c,0x63,0x66,0x4d,0x66,0x63,0x66,
2669
0x6b,0x66,0x67,0x66,0x4f,0xa6,0x29,0x73,0x20,0x73,0x28,0x73,0x38,0x73,0x24,0xf3,
2670
0x7e,0xe6,0x68,0xe6,0x58,0xe6,0x78,0xe6,0x44,0xe6,0x64,0xe6,0x54,0xe6,0x74,0xa6,
2671
0x39,0xd3,0x92,0x39,0x9f,0xb9,0x98,0xb9,0x94,0xb9,0x9c,0xb9,0x92,0x69,0x73,0xc6,
2672
0xee,0x0c,0xe1,0x8c,0xe3,0x19,0x97,0x33,0xae,0x67,0x88,0x67,0xdc,0xcf,0x78,0x9e,
2673
0xf1,0x3e,0xe3,0xf3,0x3d,0xa4,0x33,0xe4,0x33,0xf4,0x33,0xcc,0x33,0xc1,0x67,0x42,
2674
0xcf,0x84,0x9d,0xe1,0x9c,0x49,0x3c,0x93,0x7a,0x26,0xe3,0x8c,0xe0,0x8c,0xf8,0x8c,
2675
0xec,0x8c,0xe6,0x8c,0xf1,0x4c,0xdd,0x99,0xc6,0x33,0xad,0x67,0x3a,0xcf,0xf4,0x9c,
2676
0x19,0x38,0x33,0x7c,0x66,0xf4,0xcc,0xf8,0x99,0xc9,0x33,0xd3,0x67,0x2c,0x67,0x16,
2677
0xcf,0x2c,0x9f,0x59,0x39,0x63,0xc3,0xb5,0xe3,0x12,0xb8,0x8e,0x5c,0x17,0x2e,0x91,
2678
0xeb,0xce,0xf5,0xe4,0x7a,0x73,0x49,0x5c,0x5f,0x2e,0x99,0x4b,0xe5,0xd2,0xb9,0x0c,
2679
0x6e,0x30,0x37,0x84,0x1b,0xc6,0x65,0x71,0x39,0xdc,0x58,0x6e,0x22,0x37,0x99,0x9b,
2680
0xca,0x4d,0xe3,0x66,0x70,0x79,0x5c,0x01,0x57,0xc8,0x15,0x73,0x25,0x5c,0x19,0x57,
2681
0xc1,0xd5,0x70,0x75,0x5c,0x23,0xb7,0x86,0x5b,0xc7,0x6d,0xe4,0x36,0x73,0x5b,0xb9,
2682
0xed,0xdc,0x4e,0x6e,0x37,0xb7,0x87,0x6b,0xe2,0x0e,0x70,0x87,0xb8,0xc3,0xdc,0x11,
2683
0xee,0x28,0x77,0x8c,0x3b,0xce,0x9d,0xe0,0x4e,0x72,0xa7,0xb8,0xd3,0x5c,0x33,0xd7,
2684
0xc2,0x9d,0xe7,0x2e,0x72,0x97,0xb8,0xcb,0xdc,0x15,0xae,0x0d,0xcf,0x8e,0x47,0xe0,
2685
0x39,0xf2,0x5c,0x78,0x44,0x9e,0x3b,0xcf,0x93,0xe7,0xcd,0x23,0xf1,0x7c,0x79,0x64,
2686
0x1e,0x95,0x47,0xe7,0x31,0x78,0xc1,0xbc,0x10,0x5e,0x18,0x8f,0xc5,0xe3,0xf0,0x62,
2687
0x79,0x89,0xbc,0x64,0x5e,0x2a,0x2f,0x8d,0x97,0xc1,0xe3,0xf1,0x04,0x3c,0x21,0x4f,
2688
0xcc,0x93,0xf0,0x64,0x3c,0x05,0x4f,0xc3,0xd3,0xf1,0x8c,0xbc,0x1a,0x5e,0x1d,0xaf,
2689
0x91,0xd7,0xce,0xeb,0xe1,0x0d,0xf1,0x46,0x79,0x13,0xbc,0x69,0x9e,0x85,0xb7,0xf0,
2690
0x23,0x8b,0xbc,0x25,0xde,0x32,0x6f,0x85,0x67,0x93,0x65,0x97,0x45,0xc8,0x72,0xcc,
2691
0x72,0xc9,0x22,0x66,0xb9,0x67,0x79,0x66,0x79,0x67,0x91,0xb2,0x7c,0xb3,0xc8,0x59,
2692
0xd4,0x2c,0x7a,0x16,0x23,0x2b,0x38,0x2b,0x24,0x2b,0x2c,0x8b,0x95,0xc5,0xc9,0x8a,
2693
0xcd,0x4a,0xcc,0x4a,0xce,0x4a,0xcd,0x4a,0xcb,0xca,0xc8,0xe2,0x65,0x09,0xb2,0x84,
2694
0x59,0xe2,0x2c,0x49,0x96,0x2c,0x4b,0x91,0xa5,0xc9,0xd2,0x65,0x19,0xb3,0x6a,0xb2,
2695
0xea,0xb2,0x1a,0xb3,0x9a,0xb3,0x5a,0xb3,0xda,0xb3,0x3a,0xb3,0xba,0xb3,0x7a,0xb2,
2696
0x4c,0x59,0x03,0x59,0x43,0x59,0xc3,0x59,0x23,0x59,0xa3,0x59,0x63,0x59,0xe3,0x59,
2697
0x13,0x59,0x93,0x59,0x53,0x59,0xd3,0x59,0xe6,0x2c,0x4b,0xd6,0x7c,0xd6,0x62,0xd6,
2698
0x52,0xd6,0x72,0xd6,0x4a,0x96,0x4d,0xb6,0x5d,0x36,0x21,0xdb,0x31,0xdb,0x25,0x9b,
2699
0x98,0xed,0x9e,0xed,0x99,0xed,0x9d,0x4d,0xca,0xf6,0xcd,0x26,0x67,0x53,0xb3,0xe9,
2700
0xd9,0x8c,0xec,0xe0,0xec,0x90,0xec,0xb0,0x6c,0x56,0x36,0x27,0x3b,0x36,0x3b,0x31,
2701
0x3b,0x39,0x3b,0x35,0x3b,0x2d,0x3b,0x23,0x9b,0x97,0x2d,0xc8,0x16,0x66,0x8b,0xb3,
2702
0x25,0xd9,0xb2,0x6c,0x45,0xb6,0x26,0x5b,0x97,0x6d,0xcc,0xae,0xc9,0xae,0xcb,0x6e,
2703
0xcc,0x6e,0xce,0x6e,0xcd,0x6e,0xcf,0xee,0xcc,0xee,0xce,0xee,0xc9,0x36,0x65,0x0f,
2704
0x64,0x0f,0x65,0x0f,0x67,0x8f,0x64,0x8f,0x66,0x8f,0x65,0x8f,0x67,0x4f,0x64,0x4f,
2705
0x66,0x4f,0x65,0x4f,0x67,0x9b,0xb3,0x2d,0xd9,0xf3,0xd9,0x8b,0xd9,0x4b,0xd9,0xcb,
2706
0xd9,0x2b,0xd9,0x36,0x7c,0x3b,0x3e,0x81,0xef,0xc8,0x77,0xe1,0x13,0xf9,0xee,0x7c,
2707
0x4f,0xbe,0x37,0x9f,0xc4,0xf7,0xe5,0x93,0xf9,0x54,0x3e,0x9d,0xcf,0xe0,0x07,0xf3,
2708
0x43,0xf8,0x61,0x7c,0x16,0x9f,0xc3,0x8f,0xe5,0x27,0xf2,0x93,0xf9,0xa9,0xfc,0x34,
2709
0x7e,0x06,0x9f,0xc7,0x17,0xf0,0x85,0x7c,0x31,0x5f,0xc2,0x97,0xf1,0x15,0x7c,0x0d,
2710
0x5f,0xc7,0x37,0xf2,0x6b,0xf8,0x75,0xfc,0x46,0x7e,0x33,0xbf,0x95,0xdf,0xce,0xef,
2711
0xe4,0x77,0xf3,0x7b,0xf8,0x26,0xfe,0x00,0x7f,0x88,0x3f,0xcc,0x1f,0xe1,0x8f,0xf2,
2712
0xc7,0xf8,0xe3,0xfc,0x09,0xfe,0x24,0x7f,0x8a,0x3f,0xcd,0x37,0xf3,0xe7,0xac,0x58,
2713
0xf8,0xf3,0xfc,0x45,0xfe,0x12,0x7f,0x99,0xbf,0xc2,0x47,0x02,0x24,0xb0,0x11,0xd8,
2714
0x09,0x08,0x02,0x47,0x81,0x8b,0x80,0x28,0x70,0x03,0xdc,0x05,0x9e,0x02,0x6f,0x01,
2715
0x49,0xe0,0x2b,0x20,0x0b,0x28,0x00,0x55,0x40,0x17,0x30,0x04,0x4c,0x2b,0xc1,0x82,
2716
0x10,0x41,0x98,0x80,0x25,0x88,0x15,0x24,0x0a,0x92,0x05,0x29,0x82,0x54,0x41,0x9a,
2717
0x20,0x43,0xc0,0x13,0x08,0x04,0x42,0x81,0x58,0x50,0xb8,0xc6,0xaf,0x12,0xf9,0xdf,
2718
0x85,0x76,0x8d,0xbf,0x13,0x9d,0xc0,0x28,0xa8,0x11,0xd4,0x09,0x1a,0x05,0x4d,0x82,
2719
0x66,0x41,0xab,0xa0,0x5d,0xd0,0x29,0xe8,0x16,0xf4,0x08,0x4c,0x82,0x01,0xc1,0x90,
2720
0x60,0x58,0x30,0x22,0x18,0x15,0x8c,0x09,0xc6,0x05,0x13,0x82,0x49,0xc1,0x94,0x60,
2721
0x5a,0x60,0x16,0x58,0x04,0xf3,0x82,0x45,0xc1,0x92,0x60,0x59,0xb0,0x22,0xb0,0x39,
2722
0x6b,0x77,0x96,0x70,0xd6,0xf1,0xac,0xcb,0x59,0xe2,0x59,0xf7,0xb3,0x9e,0x67,0xbd,
2723
0xcf,0x92,0xce,0xfa,0x9e,0x25,0x9f,0xa5,0x9e,0xa5,0x9f,0x65,0x9c,0x0d,0x3e,0x1b,
2724
0x72,0x36,0xf4,0x6c,0xd8,0x59,0xd6,0x59,0xce,0xd9,0xd8,0xb3,0x89,0x67,0x93,0xcf,
2725
0xa6,0x9e,0x4d,0x3b,0x9b,0x71,0x96,0x77,0x56,0x70,0x56,0x78,0x56,0x7c,0x56,0x72,
2726
0x56,0xba,0xc6,0xaf,0x12,0x35,0x60,0xf8,0x6f,0xa9,0x5d,0xc3,0x4a,0xd3,0xd9,0xb6,
2727
0x35,0xd6,0xf8,0xbb,0xe8,0x3a,0xdb,0xf7,0x8b,0x32,0x08,0xdc,0xfb,0x2f,0x3c,0xb0,
2728
0xf2,0xe8,0x17,0xe2,0x09,0x30,0x73,0xf6,0xf9,0x1a,0xbf,0x09,0x5e,0x9c,0x7d,0x09,
2729
0xd8,0x9e,0x5b,0xe3,0xb7,0x89,0xc3,0x39,0xd7,0xdf,0x30,0x1e,0x6b,0xfc,0xcb,0xe1,
2730
0x73,0xce,0xef,0x1c,0xed,0x1c,0xf3,0x5c,0xe8,0xb9,0x98,0x73,0x29,0xe7,0xb8,0x6b,
2731
0xac,0xf1,0x3f,0x4a,0xce,0xb9,0xc2,0x73,0xea,0x35,0x7e,0x61,0x34,0xe7,0x8c,0xe7,
2732
0xea,0xce,0x35,0x9f,0x6b,0x5b,0x63,0x8d,0x35,0xfe,0x69,0xb4,0x9f,0xeb,0x3c,0xd7,
2733
0x7d,0xae,0xe7,0x9c,0xe9,0xdc,0xc0,0xb9,0xa1,0x73,0xc3,0xe7,0x46,0xce,0x8d,0x9e,
2734
0x1b,0x3b,0x37,0x7e,0x6e,0xe2,0xdc,0xe4,0xb9,0xa9,0x73,0xd3,0xe7,0xcc,0xe7,0x2c,
2735
0xe7,0xe6,0xcf,0x2d,0x9e,0x5b,0x3a,0xb7,0x7c,0x6e,0xe5,0x9c,0x4d,0x8e,0x5d,0x0e,
2736
0x21,0xc7,0x31,0xc7,0x25,0x87,0x98,0xe3,0x9e,0xe3,0x99,0xe3,0x9d,0x43,0xca,0xf1,
2737
0xcd,0x21,0xe7,0x50,0x73,0x68,0xff,0x42,0x30,0x73,0x42,0x73,0x62,0x72,0x52,0x72,
2738
0xb8,0x39,0xa2,0x1c,0xf9,0xaf,0x0a,0x6d,0x4e,0x75,0x4e,0x53,0x4e,0x47,0x4e,0x5f,
2739
0xce,0xdd,0xff,0x61,0x86,0x73,0x46,0x72,0x46,0x73,0xc6,0x72,0xc6,0x73,0x26,0x72,
2740
0x26,0x73,0xa6,0x72,0xa6,0x73,0xcc,0x39,0x96,0x9c,0xf9,0x9c,0xc5,0x9c,0xa5,0x9c,
2741
0xe5,0x9c,0x95,0x1c,0x1b,0xa1,0x9d,0x90,0x20,0x74,0x14,0xba,0x08,0x89,0x42,0x77,
2742
0xa1,0xa7,0xd0,0x5b,0x48,0x12,0xfa,0x0a,0xc9,0x42,0xaa,0x90,0x2e,0x64,0x08,0x83,
2743
0x85,0x21,0xc2,0x30,0x21,0x4b,0xc8,0x11,0xc6,0x0a,0x13,0x85,0xc9,0xc2,0x54,0x61,
2744
0x9a,0x30,0x43,0xc8,0x13,0x0a,0x84,0x42,0xa1,0x58,0x28,0x11,0xca,0x84,0x0a,0xa1,
2745
0x46,0xa8,0x13,0x1a,0x85,0x35,0xc2,0x3a,0x61,0xa3,0xb0,0x59,0xd8,0x2a,0x6c,0x17,
2746
0x76,0x0a,0xbb,0x85,0x3d,0x42,0x93,0x70,0x40,0x38,0x24,0x1c,0x16,0x8e,0x08,0x47,
2747
0x85,0x63,0xc2,0x71,0xe1,0x84,0x70,0x52,0x38,0x25,0x9c,0x16,0x9a,0x85,0x16,0xe1,
2748
0xbc,0x70,0x51,0xb8,0x24,0x5c,0x16,0xae,0x08,0x6d,0x72,0xed,0x72,0x09,0xb9,0x8e,
2749
0xb9,0x2e,0xb9,0xae,0xb9,0xc4,0x5c,0xf7,0x5c,0xcf,0x5c,0xef,0x5c,0x52,0xae,0x6f,
2750
0x2e,0x39,0x97,0x9a,0x4b,0xcf,0x65,0xe4,0x06,0xe7,0x86,0xe4,0x86,0xe5,0xb2,0x72,
2751
0x39,0xb9,0xb1,0xb9,0x89,0xb9,0xc9,0xb9,0xa9,0xb9,0x69,0xb9,0x19,0xb9,0xbc,0x5c,
2752
0x41,0xae,0x30,0x57,0x9c,0x2b,0xc9,0x95,0xe5,0x2a,0x72,0x35,0xb9,0xba,0x5c,0x63,
2753
0x6e,0x4d,0x6e,0x5d,0x6e,0x63,0x6e,0x73,0x6e,0x6b,0x6e,0x7b,0x6e,0x67,0x6e,0x77,
2754
0x6e,0x4f,0xae,0x29,0x77,0x20,0x77,0x28,0x77,0x38,0x77,0x24,0x77,0x34,0x77,0x2c,
2755
0x77,0x3c,0x77,0x22,0x77,0x32,0x77,0x2a,0x77,0x3a,0xd7,0x9c,0x6b,0xc9,0x9d,0xcf,
2756
0x5d,0xcc,0x5d,0xca,0x5d,0xce,0x5d,0xc9,0xb5,0xc9,0xb3,0xcb,0x23,0xe4,0x39,0xe6,
2757
0xb9,0xe4,0x11,0xf3,0xdc,0xf3,0x3c,0xf3,0xbc,0xf3,0x48,0x79,0xbe,0x79,0xe4,0x3c,
2758
0x4a,0x1e,0x35,0x8f,0x9e,0x17,0x08,0x30,0xf2,0x98,0x40,0x70,0x5e,0x48,0x5e,0x28,
2759
0x10,0x96,0xc7,0xca,0xe3,0xe4,0xc5,0xe6,0x25,0xe4,0x25,0xe6,0x25,0xe7,0xa5,0xe6,
2760
0xa5,0xe5,0x65,0xe4,0xf1,0xf2,0x04,0x79,0xc2,0x3c,0x71,0x9e,0x24,0x4f,0x96,0xa7,
2761
0xc8,0x53,0xe7,0x69,0xf2,0xb4,0x79,0xba,0x3c,0x63,0x5e,0x4d,0x5e,0x5d,0x5e,0x63,
2762
0x5e,0x73,0x5e,0x6b,0x5e,0x5b,0x5e,0x7b,0x5e,0x67,0x5e,0x77,0x5e,0x4f,0x9e,0x29,
2763
0x6f,0x20,0x6f,0x28,0x6f,0x38,0x6f,0x24,0x6f,0x34,0x6f,0x2c,0x6f,0x3c,0x6f,0x22,
2764
0x6f,0x32,0x6f,0x2a,0x6f,0x3a,0xcf,0x9c,0x67,0xc9,0x9b,0xcf,0x5b,0xcc,0x5b,0xca,
2765
0x5b,0xce,0x5b,0xc9,0xb3,0x11,0xd9,0x89,0x08,0x22,0x47,0x91,0x8b,0x88,0x28,0x72,
2766
0x17,0x79,0x8a,0xbc,0x45,0x24,0x91,0xaf,0x88,0x2c,0xa2,0x8a,0xe8,0x22,0x86,0x28,
2767
0x58,0x14,0x22,0x0a,0x13,0xb1,0x44,0x1c,0x51,0xac,0x28,0x51,0x94,0x2c,0x4a,0x15,
2768
0xa5,0x89,0x32,0x44,0x3c,0x91,0x40,0x24,0x14,0x89,0x45,0x12,0x91,0x4c,0xa4,0x10,
2769
0x69,0x44,0x3a,0x91,0x51,0x54,0x03,0xd4,0x89,0x1a,0x45,0xcd,0xa2,0x56,0x51,0xbb,
2770
0xa8,0x43,0xd4,0x29,0xea,0x16,0xf5,0x88,0x4c,0xa2,0x7e,0x60,0x40,0x34,0x24,0x1a,
2771
0x16,0x8d,0x88,0x46,0x45,0x63,0xa2,0x71,0xd1,0x84,0xe8,0xb1,0x68,0x52,0x34,0x25,
2772
0x9a,0x16,0x99,0x45,0x16,0xd1,0xbc,0x68,0x51,0xf4,0x42,0xb4,0x24,0x5a,0x16,0xad,
2773
0x88,0x6c,0xc4,0x76,0x62,0x82,0xd8,0x51,0xec,0x22,0x26,0x8a,0xdd,0xc5,0x9e,0x62,
2774
0x6f,0x31,0x49,0xec,0x2b,0x26,0x8b,0xa9,0x62,0xba,0x98,0x21,0x0e,0x16,0x87,0x88,
2775
0xc3,0xc4,0x2c,0x31,0x47,0x1c,0x2b,0x4e,0x14,0x27,0x8b,0x53,0xc5,0x69,0xe2,0x74,
2776
0x71,0x86,0x98,0x27,0x16,0x88,0x85,0x62,0x91,0x58,0x2c,0x96,0x88,0x65,0x62,0x85,
2777
0x58,0x23,0xd6,0x8a,0x75,0x62,0x83,0x15,0xa3,0xb8,0x46,0x5c,0x27,0x6e,0x14,0x37,
2778
0x8b,0x5b,0xc5,0xed,0xe2,0x0e,0x71,0xa7,0xb8,0x5b,0xdc,0x23,0x36,0x89,0x07,0xc4,
2779
0x43,0xe2,0x61,0xf1,0x88,0x78,0x54,0x3c,0x26,0x1e,0x17,0x4f,0x88,0x27,0xc5,0x53,
2780
0xe2,0x69,0xb1,0x59,0x6c,0x11,0xcf,0x8b,0x17,0xc5,0x4b,0xe2,0x65,0xf1,0x8a,0xd8,
2781
0x26,0xdf,0x2e,0x9f,0x90,0xef,0x98,0xef,0x92,0x4f,0xcc,0x77,0xcf,0xf7,0xcc,0xf7,
2782
0xce,0x27,0xe5,0xfb,0xe6,0x93,0xf3,0xa9,0xf9,0xf4,0x7c,0x46,0x7e,0x70,0x7e,0x48,
2783
0x7e,0x58,0x3e,0x2b,0x9f,0x93,0x1f,0x9b,0x9f,0x98,0x9f,0x9c,0x9f,0x9a,0x9f,0x96,
2784
0x9f,0x91,0xcf,0xcb,0x17,0xe4,0x0b,0xf3,0xc5,0xf9,0x92,0x7c,0x59,0xbe,0x22,0x5f,
2785
0x93,0xaf,0xcb,0x37,0xe6,0xd7,0xe4,0xd7,0xe5,0x37,0xe6,0x37,0xe7,0xb7,0xe6,0xb7,
2786
0xe7,0x77,0xe6,0x77,0xe7,0xf7,0xe4,0x9b,0xf2,0x07,0xf2,0x87,0xf2,0x87,0xf3,0x47,
2787
0xf2,0x47,0xf3,0xc7,0xf2,0xc7,0xf3,0x27,0xf2,0x27,0xf3,0xa7,0xf2,0xa7,0xf3,0xcd,
2788
0xf9,0x96,0xfc,0xf9,0xfc,0xc5,0xfc,0xa5,0xfc,0xe5,0xfc,0x95,0x7c,0x9b,0x02,0xbb,
2789
0x02,0x42,0x81,0x63,0x81,0x4b,0x01,0xb1,0xc0,0xbd,0xc0,0xb3,0xc0,0xbb,0x80,0x54,
2790
0xe0,0x5b,0x40,0x2e,0xa0,0x16,0xd0,0x0b,0x18,0x05,0xc1,0x05,0x21,0x05,0x61,0x05,
2791
0xac,0x02,0x4e,0x41,0x6c,0x41,0x62,0x41,0x72,0x41,0x6a,0x41,0x5a,0x41,0x46,0x01,
2792
0xaf,0x40,0x50,0x20,0x2c,0x10,0x17,0x48,0x0a,0x64,0x05,0x8a,0x02,0x4d,0x81,0xae,
2793
0xc0,0x58,0x50,0x53,0x50,0x57,0xd0,0x58,0xd0,0x5c,0xd0,0x5a,0xd0,0x5e,0xd0,0x59,
2794
0xd0,0x5d,0xd0,0x53,0x60,0x2a,0x18,0x28,0x18,0x2a,0x18,0x2e,0x18,0x29,0x18,0x2d,
2795
0x18,0x2b,0x18,0x2f,0x98,0x28,0x98,0x2c,0x98,0x2a,0x98,0x2e,0x30,0x17,0x58,0x0a,
2796
0xe6,0x0b,0x16,0x0b,0x96,0x0a,0x96,0x0b,0x56,0x0a,0x6c,0x0a,0xed,0x0a,0x09,0x85,
2797
0x8e,0x85,0x2e,0x85,0xc4,0x42,0xf7,0x42,0xcf,0x42,0xef,0x42,0x52,0xa1,0x6f,0x21,
2798
0xb9,0x90,0x5a,0x48,0x2f,0x64,0x14,0x06,0x17,0x86,0x14,0x86,0x15,0xb2,0x0a,0x39,
2799
0x85,0xb1,0x85,0x89,0x85,0xc9,0x85,0xa9,0x85,0x69,0x40,0x46,0x21,0xaf,0x50,0x50,
2800
0x28,0x2c,0x14,0x17,0x4a,0x0a,0x65,0x85,0x8a,0x42,0x4d,0xa1,0xae,0xd0,0x58,0x58,
2801
0x53,0x58,0x57,0xd8,0x58,0xd8,0x5c,0xd8,0x5a,0xd8,0x5e,0xd8,0x59,0xd8,0x5d,0xd8,
2802
0x53,0x68,0x2a,0x1c,0x28,0x1c,0x2a,0x1c,0x2e,0x1c,0x29,0x1c,0x2d,0x1c,0x2b,0x1c,
2803
0x2f,0x9c,0x28,0x9c,0x2c,0x9c,0x2a,0x9c,0x2e,0x34,0x17,0x5a,0x0a,0xe7,0x0b,0x17,
2804
0x0b,0x97,0x0a,0x97,0x0b,0x57,0x0a,0x6d,0x24,0x76,0x12,0x82,0xc4,0x51,0xe2,0x22,
2805
0x21,0x4a,0xdc,0x25,0x9e,0x12,0x6f,0x09,0x49,0xe2,0x2b,0x21,0x4b,0xa8,0x12,0xba,
2806
0x84,0x21,0x09,0x96,0x84,0x48,0xc2,0x24,0x2c,0x09,0x47,0x12,0x2b,0x49,0x94,0x24,
2807
0x4b,0x52,0x25,0x69,0x92,0x0c,0x09,0x4f,0x22,0x90,0x08,0x25,0x62,0x89,0x44,0x22,
2808
0x93,0x28,0x24,0x1a,0x89,0x4e,0x62,0x94,0xd4,0x48,0xea,0x24,0x8d,0x92,0x66,0x49,
2809
0xab,0xa4,0x5d,0xd2,0x29,0xe9,0x96,0xf4,0x48,0x4c,0x92,0x01,0xc9,0x90,0x64,0x58,
2810
0x32,0x22,0x19,0x95,0x8c,0x49,0xc6,0x25,0x13,0x92,0x49,0xc9,0x94,0x64,0x5a,0x62,
2811
0x96,0x58,0x24,0xf3,0x92,0x45,0xc9,0x92,0x64,0x59,0xb2,0x22,0xb1,0x29,0xb2,0x2b,
2812
0x22,0x14,0x39,0x16,0xb9,0x14,0x11,0x8b,0xdc,0x8b,0x3c,0x8b,0xbc,0x8b,0x48,0x45,
2813
0xbe,0x45,0xe4,0x22,0x6a,0x11,0xbd,0x88,0x51,0x14,0x5c,0x14,0x52,0x14,0x56,0xc4,
2814
0x2a,0xe2,0x14,0xc5,0x16,0x25,0x16,0x25,0x17,0xa5,0x16,0xa5,0x15,0x65,0x14,0xf1,
2815
0x8a,0x04,0x45,0xc2,0x22,0x71,0x91,0xa4,0x48,0x56,0xa4,0x28,0xd2,0x14,0xe9,0x8a,
2816
0x8c,0x45,0x35,0x45,0x75,0x45,0x8d,0x45,0xcd,0x45,0xad,0x45,0xed,0x45,0x9d,0x45,
2817
0xdd,0x45,0x3d,0x45,0xa6,0xa2,0x81,0xa2,0xa1,0xa2,0xe1,0xa2,0x91,0xa2,0xd1,0xa2,
2818
0xb1,0xa2,0xf1,0xa2,0x89,0xa2,0xc9,0xa2,0xa9,0xa2,0xe9,0x22,0x73,0x91,0xa5,0x68,
2819
0xbe,0x68,0xb1,0x68,0xa9,0x68,0xb9,0xe8,0x65,0xd1,0x4a,0x91,0x4d,0xb1,0x5d,0x31,
2820
0xa1,0xd8,0xb1,0xd8,0xa5,0x98,0x58,0xec,0x5e,0xec,0x59,0xec,0x5d,0x4c,0x2a,0xf6,
2821
0x2d,0x26,0x17,0x53,0x8b,0xe9,0xc5,0x8c,0xe2,0xe0,0xe2,0x90,0xe2,0xb0,0x62,0x56,
2822
0x31,0xa7,0x38,0xb6,0x38,0xb1,0x38,0xb9,0x38,0xb5,0x38,0xad,0x38,0xa3,0x98,0x57,
2823
0x2c,0x28,0x16,0x16,0x8b,0x8b,0x25,0xc5,0xb2,0x62,0x45,0xb1,0xa6,0x58,0x57,0x6c,
2824
0x2c,0xae,0x29,0xae,0x2b,0x6e,0x2c,0x6e,0x2e,0x6e,0x2d,0x6e,0x2f,0xee,0x2c,0xee,
2825
0x2e,0xee,0x29,0x36,0x15,0x0f,0x14,0x0f,0x15,0x0f,0x17,0x8f,0x14,0x8f,0x16,0x8f,
2826
0x15,0x8f,0x17,0x4f,0x14,0x4f,0x16,0x4f,0x15,0x4f,0x17,0x9b,0x8b,0x2d,0xc5,0xf3,
2827
0xc5,0x8b,0xc5,0x4b,0xc5,0xcb,0xc5,0x2b,0xc5,0x36,0x52,0x3b,0x29,0x41,0xea,0x28,
2828
0x75,0x91,0x12,0xa5,0xee,0x52,0x4f,0xa9,0xb7,0x94,0x24,0xf5,0x95,0x92,0xa5,0x54,
2829
0x29,0x5d,0xca,0x90,0x06,0x4b,0x43,0xa4,0x61,0x52,0x96,0x94,0x23,0x8d,0x95,0x26,
2830
0x4a,0x93,0xa5,0xa9,0x40,0x9a,0x34,0x43,0xca,0x93,0x0a,0xa4,0x42,0xa9,0x58,0x2a,
2831
0x91,0xca,0xa4,0x0a,0xa9,0x46,0xaa,0x93,0x1a,0xa5,0x35,0xd2,0x3a,0x69,0xa3,0xb4,
2832
0x59,0xda,0x2a,0x6d,0x97,0x76,0x4a,0xbb,0xa5,0x3d,0x52,0x93,0x74,0x40,0x3a,0x24,
2833
0x1d,0x96,0x8e,0x48,0x47,0xa5,0x63,0xd2,0x71,0xe9,0x84,0x74,0x52,0x3a,0x25,0x9d,
2834
0x96,0x9a,0xa5,0x16,0xe9,0xbc,0x74,0x51,0xba,0x24,0x5d,0x96,0xae,0x48,0x6d,0x64,
2835
0x76,0x32,0x82,0xcc,0x51,0xe6,0x22,0x23,0xca,0xdc,0x65,0x9e,0x32,0x6f,0x19,0x49,
2836
0xe6,0x2b,0x23,0xcb,0xa8,0x32,0xba,0x8c,0x21,0x0b,0x96,0x85,0xc8,0xc2,0x64,0x2c,
2837
0x19,0x47,0x16,0x2b,0x4b,0x94,0x25,0xcb,0x52,0x65,0x69,0xb2,0x0c,0x19,0x4f,0x26,
2838
0x90,0x09,0x65,0x62,0x99,0x44,0x26,0x93,0x29,0x64,0x1a,0x99,0x4e,0x66,0x94,0xd5,
2839
0xc8,0xea,0x64,0x8d,0xb2,0x66,0x59,0xab,0xac,0x5d,0xd6,0x29,0xeb,0x96,0xf5,0xc8,
2840
0x4c,0xb2,0x01,0xd9,0x90,0x6c,0x58,0x36,0x22,0x1b,0x95,0x8d,0xc9,0xc6,0x65,0x13,
2841
0xb2,0x49,0xd9,0x94,0x6c,0x5a,0x66,0x96,0x59,0x64,0xf3,0xb2,0x45,0xd9,0x92,0x6c,
2842
0x59,0xb6,0x22,0xb3,0x29,0xb1,0x2b,0x21,0x94,0x38,0x96,0xb8,0x94,0x10,0x4b,0xdc,
2843
0x4b,0x3c,0x4b,0xbc,0x4b,0x48,0x25,0xbe,0x25,0xe4,0x12,0x6a,0x09,0xbd,0x84,0x51,
2844
0x12,0x5c,0x12,0x52,0x12,0x56,0xc2,0x2a,0xe1,0x94,0xc4,0x96,0x24,0x96,0x24,0x97,
2845
0xa4,0x96,0xa4,0x95,0x64,0x94,0xf0,0x4a,0x04,0x25,0xc2,0x12,0x71,0x89,0xa4,0x44,
2846
0x56,0xa2,0x28,0xd1,0x94,0xe8,0x4a,0x8c,0x25,0x35,0x25,0x75,0x25,0x8d,0x25,0xcd,
2847
0x25,0xad,0x25,0xed,0x25,0x9d,0x25,0xdd,0x25,0x3d,0x25,0xa6,0x92,0x81,0x92,0xa1,
2848
0x92,0xe1,0x92,0x91,0x92,0xd1,0x92,0xb1,0x92,0xf1,0x92,0x89,0x92,0xc9,0x92,0xa9,
2849
0x92,0xe9,0x12,0x73,0x89,0xa5,0x64,0xbe,0x64,0xb1,0x64,0xa9,0x64,0xb9,0x64,0xa5,
2850
0xc4,0xa6,0xd4,0xae,0x94,0x50,0xea,0x58,0xea,0x52,0x4a,0x2c,0x75,0x2f,0xf5,0x2c,
2851
0xf5,0x2e,0x25,0x95,0xfa,0x96,0x92,0x4b,0xa9,0xa5,0xf4,0x52,0x46,0x69,0x70,0x69,
2852
0x48,0x69,0x58,0x29,0xab,0x94,0x53,0x1a,0x5b,0x9a,0x58,0x9a,0x5c,0x9a,0x5a,0x9a,
2853
0x56,0x9a,0x51,0xca,0x2b,0x15,0x94,0x0a,0x4b,0xc5,0xa5,0x92,0x52,0x59,0xa9,0xa2,
2854
0x54,0x53,0xaa,0x2b,0x35,0x00,0xc6,0xd2,0x9a,0xd2,0xba,0xd2,0xc6,0xd2,0xe6,0xd2,
2855
0xd6,0xd2,0xf6,0xd2,0xce,0xd2,0xee,0xd2,0x9e,0x52,0x53,0xe9,0x40,0xe9,0x50,0xe9,
2856
0x70,0xe9,0x48,0xe9,0x68,0xe9,0x58,0xe9,0x78,0xe9,0x44,0xe9,0x64,0xe9,0x54,0xe9,
2857
0x74,0xa9,0xb9,0xd4,0x52,0x3a,0x5f,0xba,0x58,0xba,0x54,0xba,0x5c,0xba,0x52,0x6a,
2858
0x23,0xb7,0x93,0x13,0xe4,0x8e,0x72,0x17,0x39,0x51,0xee,0x2e,0xf7,0x94,0x7b,0xcb,
2859
0x49,0x72,0x5f,0x39,0x59,0x4e,0x95,0xd3,0xe5,0x0c,0x79,0xb0,0x3c,0x44,0x1e,0x26,
2860
0x67,0xc9,0x39,0xf2,0x58,0x79,0xc2,0x1a,0x7f,0x35,0x89,0xf2,0xa4,0x5f,0x94,0x64,
2861
0x79,0xaa,0x3c,0x4d,0x9e,0x21,0xe7,0xc9,0x05,0x72,0xa1,0x5c,0x2c,0x97,0xc8,0x65,
2862
0x72,0x85,0x5c,0x23,0xd7,0xc9,0x8d,0xf2,0x1a,0x79,0x9d,0xbc,0x51,0xde,0x2c,0x6f,
2863
0x95,0xb7,0xcb,0x3b,0xe5,0xdd,0xf2,0x1e,0xb9,0x49,0x3e,0x20,0x1f,0x92,0x0f,0xcb,
2864
0x47,0xe4,0xa3,0xf2,0x31,0xf9,0xb8,0x7c,0x42,0x3e,0x29,0x9f,0x92,0x4f,0xcb,0xcd,
2865
0x72,0x8b,0x7c,0x5e,0xbe,0x28,0x5f,0x92,0x2f,0xcb,0x57,0xe4,0x36,0x0a,0x3b,0x05,
2866
0x41,0xe1,0xa8,0x70,0x51,0x10,0x15,0xee,0x0a,0x4f,0x85,0xb7,0xc2,0xe7,0x9f,0x0e,
2867
0x49,0xe1,0xab,0x20,0x2b,0xa8,0x0a,0xba,0x82,0xa1,0x08,0x56,0x84,0x28,0xc2,0x14,
2868
0x2c,0x05,0x47,0x11,0xab,0x48,0x54,0x24,0x2b,0x52,0x15,0x69,0x8a,0x0c,0x05,0x4f,
2869
0x21,0x50,0x08,0x15,0x62,0x85,0x44,0x21,0x53,0x28,0x14,0x1a,0x85,0x4e,0x61,0x54,
2870
0xd4,0x28,0xea,0x14,0x8d,0x8a,0x66,0x45,0xab,0xa2,0x5d,0xd1,0xa9,0xe8,0x56,0xf4,
2871
0x28,0x4c,0x8a,0x01,0xc5,0x90,0x62,0x58,0x31,0xa2,0x18,0x55,0x8c,0x29,0xc6,0x15,
2872
0x13,0x8a,0x49,0xc5,0x94,0x62,0x5a,0x61,0x56,0x58,0x14,0xf3,0x8a,0x45,0xc5,0x92,
2873
0x62,0x59,0xb1,0xa2,0xb0,0x51,0xda,0x29,0x09,0x4a,0x47,0xa5,0x8b,0x92,0xa8,0x74,
2874
0x57,0x7a,0xac,0xf1,0x57,0xe0,0xa9,0xf4,0x56,0x92,0x94,0xbe,0x4a,0x3f,0x25,0x59,
2875
0x49,0x55,0xd2,0x95,0x0c,0x65,0xb0,0x32,0x44,0x19,0xa6,0x64,0x29,0x39,0xca,0x58,
2876
0x65,0xa2,0x32,0x59,0x99,0xaa,0x4c,0x53,0x66,0x28,0x79,0x4a,0x81,0x52,0xa8,0x14,
2877
0x2b,0x25,0x4a,0x99,0x52,0xa1,0xd4,0x28,0x75,0x4a,0xa3,0xb2,0x46,0x59,0xa7,0x6c,
2878
0x50,0x36,0x2a,0x9b,0x95,0x2d,0xca,0x56,0x65,0x1b,0xd0,0xae,0xec,0x50,0x76,0x2a,
2879
0xbb,0x95,0x3d,0x4a,0x93,0x72,0x40,0x39,0xa4,0x1c,0x56,0x8e,0x28,0x47,0x95,0x63,
2880
0xca,0x87,0xca,0x71,0xe5,0x84,0x72,0x52,0x39,0xa5,0x7c,0xaa,0x9c,0x56,0xce,0x28,
2881
0xcd,0xca,0xb9,0x9f,0x60,0x51,0x3e,0xff,0x9e,0x79,0xe5,0x82,0x72,0x51,0xf9,0x42,
2882
0xb9,0xa4,0xfc,0x4e,0xb9,0xac,0x5c,0x51,0xda,0xa8,0x6c,0x55,0x76,0x2a,0x82,0xca,
2883
0x41,0xe5,0xa8,0x72,0x06,0x5c,0x54,0xae,0x2a,0xa2,0xca,0x4d,0xe5,0xae,0xf2,0x50,
2884
0x79,0xaa,0xbc,0x54,0xde,0x2a,0x1f,0x15,0x49,0xe5,0xab,0xf2,0x53,0x91,0x55,0x14,
2885
0x80,0xaa,0xa2,0xab,0x18,0xaa,0x60,0xd5,0x01,0x55,0x88,0x2a,0x4c,0xc5,0x52,0x71,
2886
0x54,0xb1,0xaa,0x44,0x55,0xb2,0x2a,0x45,0x95,0xaa,0x4a,0x53,0x65,0xa8,0x78,0x2a,
2887
0xbe,0x4a,0xa0,0x12,0xaa,0xc4,0x2a,0x89,0x4a,0xaa,0x92,0xa9,0xe4,0x2a,0x85,0x4a,
2888
0xa3,0xd2,0xa9,0x8c,0xaa,0x1a,0x55,0x9d,0xaa,0x51,0xd5,0xac,0x6a,0x55,0xb5,0xab,
2889
0x3a,0x54,0x9d,0xaa,0x6e,0x55,0x8f,0xca,0xa4,0x1a,0x50,0x0d,0xa9,0x86,0x55,0x23,
2890
0xaa,0x51,0xd5,0x98,0x6a,0x5c,0x35,0xa1,0x9a,0x54,0x4d,0xa9,0xa6,0x55,0x66,0x95,
2891
0x45,0xf5,0xfc,0x47,0xe6,0x55,0x8b,0xaa,0x25,0xd5,0x77,0xaa,0x65,0xd5,0x8a,0xca,
2892
0x46,0x6d,0xa7,0x26,0xa8,0x1d,0xd4,0x8e,0x6a,0x17,0x35,0x51,0xed,0xae,0xf6,0x54,
2893
0x7b,0xab,0x49,0x6a,0x5f,0x35,0x59,0x4d,0x55,0xd3,0xd5,0x0c,0x75,0xb0,0x3a,0x44,
2894
0x1d,0xa6,0x66,0xa9,0x39,0xea,0x98,0xff,0x35,0xc4,0xaa,0x93,0xd5,0x69,0x6a,0x9e,
2895
0x5a,0xa8,0x96,0xa8,0x15,0x6a,0x9d,0xba,0x46,0xdd,0xa8,0x6e,0x55,0x77,0xfc,0x48,
2896
0xa7,0xda,0xa4,0x1e,0x56,0x8f,0xa9,0x27,0xd5,0x66,0xf5,0xa2,0x7a,0x45,0x4d,0xd0,
2897
0x10,0x35,0xde,0x1a,0xb2,0x86,0xa1,0x09,0xd3,0xc4,0x6a,0x52,0x35,0x3c,0x8d,0x58,
2898
0xa3,0xd0,0x18,0x35,0x8d,0x9a,0x76,0x4d,0x8f,0x66,0x48,0x33,0xaa,0x99,0xd0,0x4c,
2899
0x6b,0xe6,0x35,0x8b,0x9a,0x25,0xcd,0x8a,0xc6,0xb6,0xcc,0xae,0x8c,0x50,0xe6,0x58,
2900
0xe6,0x52,0x46,0x2c,0x73,0x2f,0xf3,0x2c,0xf3,0x2e,0x23,0x95,0xf9,0x96,0x91,0xcb,
2901
0xa8,0x65,0xf4,0x32,0x46,0x59,0x70,0x59,0x48,0x59,0x58,0x19,0xab,0x8c,0x53,0x16,
2902
0x5b,0x96,0x58,0x96,0x5c,0x96,0x5a,0x96,0x56,0x96,0x51,0xc6,0x2b,0x13,0x94,0x89,
2903
0xcb,0x64,0x65,0x9a,0x32,0x63,0x59,0x63,0x59,0xcb,0xdf,0x41,0x6b,0x59,0x67,0x59,
2904
0x4f,0x59,0xff,0xcf,0xc2,0x40,0xd9,0xdd,0x7f,0x69,0x86,0x81,0xd1,0xb2,0xf1,0xb2,
2905
0x47,0x7f,0x96,0x89,0xb2,0xc9,0xb2,0xa9,0xb2,0xe9,0x32,0x4b,0xd9,0x7c,0xd9,0x62,
2906
0xd9,0x52,0xd9,0x72,0xd9,0x4a,0x99,0x4d,0xb9,0x5d,0x39,0xa1,0xdc,0xb1,0xdc,0xa5,
2907
0x9c,0x58,0xee,0x5e,0xee,0x59,0xee,0x5d,0x4e,0x2a,0xf7,0x2d,0x27,0x97,0x53,0xcb,
2908
0xe9,0xe5,0x8c,0xf2,0xe0,0xf2,0x90,0xf2,0xb0,0x72,0x56,0x39,0xa7,0x3c,0xb6,0x3c,
2909
0xb1,0x3c,0xb9,0x3c,0xb5,0x3c,0xad,0x3c,0xa3,0x9c,0x57,0x2e,0x28,0x17,0x96,0x8b,
2910
0xcb,0x25,0xe5,0xb2,0x72,0x45,0xb9,0xa6,0x5c,0xfb,0x3d,0xba,0xf2,0xba,0xf2,0xd6,
2911
0xf2,0xee,0xf2,0x81,0xf2,0x91,0xf2,0xf1,0xf2,0xa9,0x72,0x4b,0xf9,0x8b,0x3f,0x60,
2912
0xa9,0x7c,0xb9,0xfc,0xe5,0x1a,0x6b,0xac,0xf1,0x77,0xb2,0x52,0x6e,0xa3,0xb5,0xd3,
2913
0x12,0xb4,0x8e,0x5a,0x17,0x2d,0x51,0xeb,0xae,0xf5,0xd4,0x7a,0x6b,0x7d,0xfe,0x88,
2914
0xbd,0x5a,0x3f,0x2d,0x45,0x4b,0xd3,0x06,0x6a,0x99,0xda,0x03,0xda,0x50,0x6d,0xb8,
2915
0x96,0xad,0x8d,0xd1,0x26,0x68,0x93,0xb4,0x29,0xda,0xd3,0xda,0x74,0x2d,0x57,0xcb,
2916
0xd7,0xe6,0x68,0x45,0xda,0x42,0xad,0x54,0x2b,0xd7,0xaa,0xb5,0x5a,0xad,0x41,0x5b,
2917
0xad,0xad,0xd5,0x36,0x68,0x9b,0xb4,0x2d,0xda,0x36,0x6d,0x87,0xb6,0x4b,0x7b,0x5d,
2918
0xdb,0xa7,0xed,0xd7,0x0e,0x6a,0xef,0x6a,0xef,0x69,0xef,0x6b,0x1f,0x68,0x1f,0x6a,
2919
0x1f,0x69,0x1f,0x6b,0x9f,0x68,0x9f,0x6a,0x67,0xb4,0x73,0xda,0xe7,0xda,0x05,0xed,
2920
0x0b,0xed,0x77,0xda,0x97,0x5a,0xa4,0xb3,0xd5,0xd9,0xeb,0x1c,0x74,0xce,0x3a,0x57,
2921
0x9d,0x9b,0xce,0x43,0xe7,0xa5,0xf3,0xd1,0xed,0xd5,0xf9,0xe9,0x28,0x3a,0x9a,0x2e,
2922
0x50,0xc7,0xd4,0x1d,0xd0,0x85,0xea,0xc2,0x75,0x6c,0x5d,0x8c,0x2e,0x41,0x97,0xa4,
2923
0x4b,0xd1,0x9d,0xd6,0xa5,0xeb,0xb8,0x3a,0xbe,0x2e,0x47,0x27,0xd2,0x15,0xea,0xa4,
2924
0x3a,0xb9,0x4e,0xad,0xd3,0xea,0x0c,0xba,0x6a,0x5d,0xad,0xae,0x41,0xd7,0xa4,0x6b,
2925
0xd1,0xb5,0xe9,0x3a,0x74,0x5d,0xba,0xeb,0xba,0x3e,0x5d,0xbf,0x6e,0x50,0x77,0x57,
2926
0x77,0x4f,0x77,0x5f,0xf7,0x40,0xf7,0x50,0xf7,0x48,0xf7,0x58,0xf7,0x44,0xf7,0x54,
2927
0x37,0xa3,0x9b,0xd3,0x3d,0xd7,0x2d,0xe8,0x5e,0xe8,0xbe,0xd3,0xbd,0xd4,0x21,0xbd,
2928
0xad,0xde,0x5e,0xef,0xa0,0x77,0xd6,0xbb,0xea,0xdd,0xf4,0x1e,0x7a,0x2f,0xbd,0x8f,
2929
0x7e,0xaf,0xde,0x4f,0x4f,0xd1,0xd3,0xf4,0x81,0x7a,0xa6,0xfe,0x80,0x3e,0x54,0x1f,
2930
0xae,0x67,0xeb,0x63,0xf4,0x09,0xfa,0x24,0x7d,0x8a,0xfe,0xb4,0x3e,0x5d,0xcf,0xd5,
2931
0xf3,0xf5,0x39,0x7a,0x91,0xbe,0x50,0x2f,0xd5,0xcb,0xf5,0x6a,0xbd,0x56,0x6f,0xd0,
2932
0x57,0xeb,0x6b,0xf5,0x0d,0xfa,0x26,0x7d,0x8b,0xbe,0x4d,0xdf,0xa1,0xef,0xd2,0x5f,
2933
0xd7,0xf7,0xe9,0xfb,0xf5,0x83,0xfa,0xbb,0xfa,0x7b,0xfa,0xfb,0xfa,0x07,0xfa,0x87,
2934
0xfa,0x47,0xfa,0xc7,0xfa,0x27,0xfa,0xa7,0xfa,0x19,0xfd,0x9c,0xfe,0xb9,0x7e,0x41,
2935
0xff,0x42,0xff,0x9d,0xfe,0xa5,0x1e,0x55,0xd8,0x56,0xd8,0x57,0x38,0x54,0x38,0x57,
2936
0xb8,0x56,0xb8,0x55,0x78,0x54,0x78,0x55,0xf8,0x54,0xec,0xad,0xf0,0xab,0xa0,0x54,
2937
0xd0,0x2a,0x02,0x2b,0x98,0x15,0x07,0x2a,0x42,0x2b,0xc2,0x2b,0xd8,0x15,0x31,0x15,
2938
0x09,0x15,0x49,0x15,0x29,0x15,0xa7,0x2b,0xd2,0x2b,0xb8,0x15,0xfc,0x8a,0x9c,0x0a,
2939
0x51,0x45,0x61,0x85,0xb4,0x42,0x5e,0xa1,0xae,0xd0,0x56,0x18,0x2a,0xaa,0x2b,0x6a,
2940
0x2b,0x1a,0x2a,0x9a,0x2a,0x5a,0x2a,0xda,0x2a,0x3a,0x2a,0xba,0x2a,0xae,0x57,0xf4,
2941
0x55,0xf4,0x57,0x0c,0x56,0xdc,0xad,0xb8,0x57,0x71,0xbf,0xe2,0x41,0xc5,0xc3,0x8a,
2942
0x47,0x15,0x8f,0x2b,0x9e,0x54,0x3c,0xad,0x98,0xa9,0x98,0xab,0x78,0x5e,0xb1,0x50,
2943
0xf1,0xa2,0xe2,0xbb,0x8a,0x97,0x15,0xc8,0x60,0x6b,0xb0,0x37,0x38,0x18,0x9c,0x0d,
2944
0xae,0x06,0x37,0x83,0x87,0xc1,0xcb,0xe0,0x03,0xec,0x35,0xf8,0x19,0x28,0x06,0x9a,
2945
0x21,0xd0,0xc0,0x34,0x1c,0x30,0x84,0x1a,0xc2,0x0d,0x6c,0x43,0x8c,0x21,0xc1,0x90,
2946
0x64,0x48,0x31,0x9c,0x36,0xa4,0x1b,0xb8,0x06,0xbe,0x21,0xc7,0x20,0x32,0x14,0x1a,
2947
0xa4,0x06,0xb9,0x41,0x6d,0xd0,0x1a,0x0c,0x86,0x6a,0x43,0xad,0xa1,0xc1,0xd0,0x64,
2948
0x68,0x31,0xb4,0x19,0x3a,0x0c,0x5d,0x86,0xeb,0x86,0x3e,0x43,0xbf,0x61,0xd0,0x70,
2949
0xd7,0x70,0xcf,0x70,0xdf,0xf0,0xc0,0xf0,0xd0,0xf0,0xc8,0xf0,0xd8,0xf0,0xc4,0xf0,
2950
0xd4,0x30,0x63,0x98,0x33,0x3c,0x37,0x2c,0x18,0x5e,0x18,0xbe,0x33,0xbc,0x34,0x20,
2951
0xa3,0xad,0xd1,0xde,0xe8,0x60,0x74,0x36,0xba,0x1a,0xdd,0x8c,0x1e,0x46,0x2f,0xa3,
2952
0x8f,0x71,0xaf,0xd1,0xcf,0x48,0x31,0xd2,0x8c,0x81,0x46,0xa6,0xf1,0x80,0x31,0xd4,
2953
0x18,0x6e,0x64,0x1b,0x63,0x8c,0x09,0xc6,0x24,0x63,0x8a,0xf1,0xb4,0x31,0xdd,0xc8,
2954
0x35,0xf2,0x8d,0x39,0x46,0x91,0xb1,0xd0,0x28,0x35,0xca,0x8d,0x6a,0xa3,0xd6,0x68,
2955
0x30,0x56,0x1b,0x6b,0x8d,0x0d,0xc6,0x26,0x63,0x8b,0xb1,0xcd,0xd8,0x61,0xec,0x32,
2956
0x5e,0x37,0xf6,0x19,0xfb,0x8d,0x83,0xc6,0xbb,0xc6,0x7b,0xc6,0xfb,0xc6,0x07,0xc6,
2957
0x87,0xc6,0x47,0xc6,0xc7,0xc6,0x27,0xc6,0xa7,0xc6,0x19,0xe3,0x9c,0xf1,0xb9,0x71,
2958
0xc1,0xf8,0xc2,0xf8,0x9d,0xf1,0xa5,0x11,0x55,0xda,0x56,0xda,0x57,0x3a,0x54,0x3a,
2959
0x57,0xba,0x56,0xba,0x55,0x7a,0x54,0x7a,0x55,0xfa,0x54,0xee,0xad,0xf4,0xab,0xa4,
2960
0x54,0xd2,0x2a,0x03,0x2b,0x99,0x95,0x07,0x2a,0x43,0x2b,0xc3,0x2b,0xd9,0x95,0x31,
2961
0x95,0x09,0x95,0x49,0x95,0x29,0x95,0xa7,0x2b,0xd3,0x2b,0xb9,0x95,0xfc,0xca,0x9c,
2962
0x4a,0x51,0x65,0x61,0xa5,0xb4,0x52,0x5e,0xa9,0xae,0xd4,0x56,0x1a,0x2a,0xab,0x2b,
2963
0x6b,0x2b,0x1b,0x2a,0x9b,0x2a,0x5b,0x2a,0xdb,0x2a,0x3b,0x2a,0xbb,0x2a,0xaf,0x57,
2964
0xf6,0x55,0xf6,0x57,0x0e,0x56,0xde,0xad,0xbc,0x57,0x79,0xbf,0xf2,0x41,0xe5,0xc3,
2965
0xca,0x47,0x95,0x8f,0x2b,0x9f,0x54,0x3e,0xad,0x9c,0xa9,0x9c,0xab,0x7c,0x5e,0xb9,
2966
0x50,0xf9,0xa2,0xf2,0xbb,0xca,0x97,0x95,0xa8,0xca,0xb6,0xca,0xbe,0xca,0xa1,0xca,
2967
0xb9,0xca,0xb5,0xca,0xad,0xca,0xa3,0xca,0xab,0xca,0xa7,0x6a,0x6f,0x95,0x5f,0x15,
2968
0xa5,0x8a,0x56,0x15,0x58,0xc5,0xac,0x3a,0x50,0x15,0x5a,0x15,0x5e,0xc5,0xae,0x8a,
2969
0xa9,0x4a,0xa8,0x4a,0xaa,0x4a,0xa9,0x3a,0x5d,0x95,0x5e,0xc5,0xad,0xe2,0x57,0xe5,
2970
0x54,0x89,0xaa,0x0a,0xab,0xa4,0x55,0xf2,0x2a,0x75,0x95,0xb6,0xca,0x50,0x55,0x5d,
2971
0x55,0x5b,0xd5,0x50,0xd5,0x54,0xd5,0x52,0xd5,0x56,0xd5,0x51,0xd5,0x55,0x75,0xbd,
2972
0xaa,0xaf,0xaa,0xbf,0xea,0xff,0x63,0xef,0x4c,0x00,0x6c,0xaa,0x1e,0x3f,0x7e,0xdf,
2973
0x9b,0x79,0x33,0xc6,0x92,0x9d,0xa4,0x90,0xc9,0x12,0x66,0xcc,0xce,0x58,0xc7,0xf0,
2974
0x8c,0x25,0x8c,0x6c,0x49,0x8b,0x21,0x5b,0xf6,0x7d,0x49,0x65,0x49,0xb4,0x1a,0x95,
2975
0x4a,0x2b,0xad,0xa4,0xb2,0x25,0x29,0x7b,0x85,0x68,0x11,0x2d,0xca,0x14,0x45,0x92,
2976
0x36,0x52,0xbf,0x5f,0x8b,0xea,0xff,0x39,0x73,0xbf,0x97,0xe3,0xfd,0x28,0xfd,0x93,
2977
0x94,0xb9,0xc7,0xc7,0xf7,0x9c,0x73,0xcf,0x3d,0xfb,0x39,0x77,0x9b,0x7b,0xde,0xb2,
2978
0xa9,0xab,0xa6,0xbe,0x34,0x75,0xfd,0xd4,0x57,0xa7,0x6e,0x9a,0xfa,0xd6,0xd4,0xad,
2979
0x53,0x73,0xa6,0xee,0x98,0xba,0x6b,0xea,0x9e,0xa9,0x5f,0x4c,0xdd,0x37,0xf5,0xdb,
2980
0xa9,0xdf,0x4f,0x3d,0x38,0xd5,0xc9,0x0e,0xcf,0xce,0x97,0x5d,0x30,0xbb,0x48,0x76,
2981
0x89,0xec,0x33,0xb3,0xcf,0xce,0xae,0x90,0x7d,0x1e,0xa6,0x6a,0x76,0x8d,0xec,0xb8,
2982
0xec,0xa4,0xec,0xda,0xd9,0xf5,0xb2,0xd3,0xb2,0x9b,0x64,0x37,0xcb,0xbe,0x20,0x3b,
2983
0x33,0xbb,0x7d,0xf6,0x45,0xd9,0x97,0x64,0x77,0xcd,0xbe,0x22,0xbb,0x77,0x76,0xbf,
2984
0xec,0x41,0xd9,0xc3,0xb2,0x47,0x65,0x8f,0xcd,0x1e,0x97,0x7d,0x5d,0xf6,0x94,0xec,
2985
0x9b,0xb3,0xb3,0xb3,0xef,0xc8,0xbe,0x3b,0xfb,0xbe,0x3c,0xf3,0x2f,0x30,0xe6,0xf7,
2986
0xc7,0x2b,0x88,0x7c,0x61,0x8e,0x93,0x25,0x7b,0x38,0xf6,0x04,0x34,0x51,0x6e,0x1f,
2987
0xee,0x65,0x61,0xae,0xbd,0x0a,0x1a,0x8f,0x0e,0x74,0x5c,0x6d,0x82,0x67,0x92,0x65,
2988
0xf7,0x8e,0xf3,0xfc,0x1b,0x99,0x44,0xc2,0x5c,0xf5,0x49,0xfd,0xd2,0x30,0x69,0x3e,
2989
0x69,0x7e,0xb4,0xb1,0xd2,0x08,0xea,0xb8,0xa0,0x8e,0x0b,0xea,0xb8,0xa0,0xc2,0x37,
2990
0xd7,0xfe,0xe6,0xda,0xdf,0x5c,0xfb,0x9b,0x6b,0x7f,0x6b,0xc5,0xdf,0x46,0xe1,0xda,
2991
0x28,0x5c,0x1b,0x85,0x6b,0x63,0xed,0x37,0xe1,0x3b,0x28,0x5c,0x07,0x85,0xeb,0xa0,
2992
0x70,0x1d,0xb4,0xbf,0xb3,0xfc,0xb3,0x14,0x2e,0xcb,0x72,0xfb,0xa5,0x61,0x52,0xaf,
2993
0x2e,0x4d,0x79,0xba,0xab,0x3c,0x3d,0x74,0x5c,0x0f,0x1d,0xd7,0x43,0xc7,0xf5,0x50,
2994
0xf8,0x3e,0xda,0xdf,0x47,0xfb,0xfb,0x68,0x7f,0x1f,0xed,0x1f,0xa0,0xf8,0x07,0x2a,
2995
0xdc,0x40,0x85,0x1b,0xa8,0x70,0x03,0xad,0xfd,0x26,0xfc,0x70,0x85,0x1b,0xae,0x70,
2996
0xc3,0x15,0x6e,0xb8,0xf6,0x8f,0x96,0xff,0x68,0xab,0xfe,0xc3,0x95,0xef,0x70,0xb9,
2997
0x23,0xe4,0x8e,0x90,0xbb,0xaa,0xdc,0x55,0xd5,0x4e,0x3e,0x95,0xcf,0x27,0xb7,0x5f,
2998
0x6e,0xbf,0xdc,0x91,0x72,0x47,0xca,0x5d,0x50,0x6e,0xa3,0x4d,0xa4,0x57,0x48,0x83,
2999
0x4a,0xb7,0x87,0x34,0xa8,0x74,0x7b,0x48,0x83,0x8a,0xa7,0x87,0x34,0xa8,0x7c,0xf4,
3000
0x90,0x06,0x15,0x4f,0x0f,0x69,0x86,0xf2,0xd1,0x4b,0x9a,0xa1,0x78,0x7a,0x49,0x33,
3001
0x14,0x4f,0x2f,0x69,0x86,0xda,0xa9,0x97,0xb4,0x99,0x8e,0xeb,0x6d,0xf5,0xab,0x30,
3002
0xb5,0x47,0x98,0xdc,0xe1,0x72,0x87,0xcb,0x1d,0x21,0x77,0x84,0xdc,0x55,0xe5,0xae,
3003
0x2a,0x77,0xa4,0xb4,0x85,0xe3,0xfa,0x5f,0x29,0xbb,0x89,0xff,0x4a,0x69,0x4b,0xa5,
3004
0xdf,0x57,0x7a,0x81,0xea,0xb7,0x9f,0xf4,0x02,0xf9,0xf7,0xb3,0xf6,0x17,0x94,0xbb,
3005
0xa0,0xdc,0x4b,0x1c,0xd7,0x6d,0xb4,0xb5,0x8e,0x1b,0x20,0x6d,0xad,0xe3,0x06,0x48,
3006
0x5b,0xeb,0xb8,0x01,0xd2,0x65,0x7e,0xd7,0xde,0x46,0xe5,0x1a,0x28,0x6d,0xa3,0x72,
3007
0x0d,0x94,0x1a,0x77,0x01,0xb9,0x8d,0x5e,0xa8,0xf8,0x87,0x48,0x2f,0x54,0xfc,0x43,
3008
0xa4,0x17,0x2a,0xfe,0x21,0xd2,0x76,0x0a,0x37,0x54,0xda,0x4e,0xe5,0x1f,0x2a,0x6d,
3009
0xa7,0xe3,0x86,0x4a,0xdb,0xe9,0xb8,0xa1,0xd2,0xf6,0xf2,0x1f,0x26,0x6d,0x2f,0xff,
3010
0x61,0xd2,0x0e,0x6a,0xa7,0xe1,0xd2,0x0e,0x2a,0xc7,0x70,0x69,0x07,0x95,0x63,0xb8,
3011
0xb4,0x83,0xc6,0xeb,0x70,0x69,0x07,0x95,0x6b,0xb8,0xb4,0x83,0xda,0x71,0xb8,0xb4,
3012
0x93,0xf2,0x39,0x52,0xda,0x59,0x3a,0xda,0x72,0x9b,0x71,0x75,0xb1,0xca,0x37,0x46,
3013
0x7a,0xb1,0xfa,0xc1,0x18,0xe9,0xc5,0xca,0xef,0x18,0xab,0x7c,0xa6,0x6e,0xcb,0xaa,
3014
0x6e,0xcb,0x2a,0xed,0xb2,0x4a,0xbb,0xac,0xc6,0xce,0xc5,0xd6,0x38,0x1a,0x63,0x8d,
3015
0xa5,0x31,0x56,0x3f,0x30,0x7d,0xeb,0x02,0xf5,0xb3,0x7e,0xd2,0xd6,0xf2,0x6f,0x2d,
3016
0xf7,0x00,0x69,0x23,0x1d,0x97,0x25,0x6d,0x2e,0xed,0x23,0x6d,0x23,0x1d,0x68,0xd5,
3017
0x6f,0x41,0xe5,0xa9,0xa0,0x35,0x4f,0x86,0x5b,0x73,0x4c,0xb8,0xe5,0xef,0xb3,0xfc,
3018
0x7d,0x96,0x7f,0x41,0xcb,0xdf,0x8e,0xc7,0xb1,0xfc,0x1d,0xeb,0x3c,0x11,0x6e,0xcd,
3019
0xb1,0xde,0x3c,0x15,0x69,0xf9,0x7b,0xf6,0xb5,0x6a,0xe7,0xdd,0xd2,0x0c,0xe5,0xb3,
3020
0x97,0xb4,0xa5,0xb4,0xaf,0x55,0xbe,0xaa,0x2a,0x5f,0x55,0xcb,0x1d,0x6e,0xf9,0x19,
3021
0xfb,0x12,0x9f,0x1b,0xfe,0x36,0xbf,0xab,0x57,0x5a,0xed,0x60,0xda,0xc4,0x6b,0x0f,
3022
0xaf,0x2d,0x32,0xd4,0xee,0xbd,0xac,0xf1,0xe7,0x68,0xbc,0x39,0xd6,0x79,0xcf,0x67,
3023
0x9d,0x33,0x7c,0xca,0xbf,0x4f,0xf9,0x37,0xba,0x55,0xfa,0xbd,0x75,0x1e,0x2d,0xac,
3024
0x63,0x0a,0xcb,0x5d,0x54,0xee,0xa2,0x9a,0x0f,0x0b,0x6b,0x3e,0x2c,0x2c,0x77,0x51,
3025
0xb9,0x8b,0xaa,0x7d,0x0b,0xab,0x7d,0x0b,0xcb,0x5d,0x54,0xee,0xa2,0x2a,0x7f,0x61,
3026
0x95,0xbd,0xb0,0xdc,0x45,0xe5,0x2e,0xaa,0xf1,0x5c,0x58,0xe3,0xb9,0xb0,0xdc,0x45,
3027
0xe5,0x2e,0xaa,0x76,0x2c,0xac,0x36,0x2c,0x2c,0x77,0x51,0xb9,0x8b,0x6a,0x3c,0x57,
3028
0x56,0x7f,0xaf,0xac,0xf1,0x5b,0x59,0xe3,0xb7,0xb2,0xe6,0xdf,0x82,0x9a,0x7f,0x0b,
3029
0x5a,0xed,0x9c,0x65,0xcd,0xff,0xde,0x79,0xb5,0x8a,0x75,0x1e,0x0f,0xb7,0xce,0x81,
3030
0xe1,0xd6,0x79,0x3e,0xdc,0x3a,0x47,0x7a,0xfe,0x91,0xf2,0x8b,0xb4,0xdc,0xe1,0x96,
3031
0x5f,0xb8,0xc6,0x71,0xb8,0xc6,0x75,0xb8,0xf2,0xd3,0xd3,0xef,0xb6,0xbb,0x29,0xeb,
3032
0x68,0xec,0x57,0xc1,0x78,0xbf,0x3b,0x17,0x8c,0xd6,0x35,0x53,0x84,0xae,0x97,0x22,
3033
0xa5,0xf9,0xa5,0x55,0xa5,0x61,0x52,0x33,0xb7,0x74,0xf7,0xbb,0xe3,0xd3,0xd4,0xc5,
3034
0x28,0x98,0xee,0x77,0xfb,0x86,0x69,0xe7,0xe2,0x61,0x87,0xc7,0xcc,0x52,0xbf,0x7b,
3035
0x4c,0x10,0x7b,0x5d,0xeb,0xda,0x6c,0xb6,0x74,0x9a,0xc2,0x99,0x79,0x7f,0xba,0xec,
3036
0x77,0x49,0x67,0x48,0x1f,0x94,0x3e,0x2a,0x9d,0xe3,0xc5,0x6d,0xa5,0x33,0x43,0xf6,
3037
0x47,0xa5,0x0b,0xe4,0xbf,0xd8,0x8b,0xdf,0x3a,0xc6,0xe8,0xcb,0x76,0x1e,0x65,0xf7,
3038
0xfc,0x56,0x5a,0x61,0x8c,0xbe,0x22,0x5d,0x08,0xcf,0x29,0x8d,0xcd,0xf2,0xdb,0xac,
3039
0x63,0xd6,0xc2,0x2a,0x78,0x1e,0x56,0xc3,0x1a,0xb8,0x5b,0xe9,0x3f,0x0c,0x25,0xc3,
3040
0xdd,0xfa,0x31,0x6a,0xc2,0x17,0x0f,0x77,0x8f,0x8f,0x90,0xfb,0x2c,0xb9,0xcf,0x54,
3041
0xb8,0xe8,0x70,0xb7,0x3d,0xce,0x94,0xd6,0x96,0x26,0x6b,0x7f,0xb2,0x8e,0x4b,0xd4,
3042
0x71,0x1d,0xe5,0xae,0x23,0x77,0x6d,0x85,0x6b,0xac,0xe3,0x86,0x85,0xab,0x6f,0x4b,
3043
0x4b,0xc9,0x3f,0x45,0x5a,0x44,0x1a,0x67,0xb9,0xf3,0xc9,0x9d,0x4f,0xf9,0xf6,0xd2,
3044
0x37,0xba,0x55,0xfe,0xef,0x49,0x4b,0x49,0x53,0xa4,0xa5,0xa5,0xb5,0xa4,0xa6,0x1c,
3045
0xe1,0xca,0x57,0xb8,0xdc,0xf9,0xe4,0x36,0x5a,0x4e,0xda,0x40,0xba,0x47,0xfa,0x99,
3046
0x34,0x46,0xda,0x4a,0x1a,0xad,0x78,0x1a,0x4b,0xa3,0xe5,0xdf,0xd8,0xda,0x5f,0x40,
3047
0x6e,0xa3,0x55,0xe4,0x9f,0x21,0xad,0x2e,0x6d,0x29,0xed,0x15,0x60,0x5c,0xc2,0x04,
3048
0xe8,0x0b,0xc3,0xa1,0x4a,0x04,0x63,0x3e,0xc2,0xd5,0xf6,0xd0,0x4c,0x6a,0xdc,0x1d,
3049
0xa0,0x85,0xe5,0x1e,0xa6,0xfd,0x46,0xd7,0x49,0x5b,0x48,0xdf,0x56,0xb8,0xd5,0xd2,
3050
0xcd,0xd2,0xaa,0x51,0x8e,0x53,0x0f,0xe2,0xa4,0x89,0xd2,0x92,0xd2,0x52,0xd2,0xd2,
3051
0xd2,0xb3,0xa5,0xe7,0x4a,0x2b,0x4a,0xab,0x4b,0x6b,0x4a,0xd7,0xc1,0x0a,0xe9,0xbb,
3052
0x30,0x0b,0x96,0xc1,0x43,0xd2,0x79,0xd2,0x84,0xfc,0x84,0x87,0xda,0xd2,0x52,0xd2,
3053
0xd2,0xd2,0xb3,0xa5,0xd5,0xa5,0x19,0x05,0xe8,0x67,0x05,0x5c,0x6d,0x20,0xed,0x04,
3054
0xe7,0x42,0x3d,0xa8,0x28,0xbd,0x0d,0xde,0x85,0xb5,0xb0,0x02,0xd6,0x49,0xd7,0xca,
3055
0xbf,0x69,0x41,0xe2,0x81,0x95,0xf0,0x36,0xac,0xb5,0xf4,0x1d,0xe9,0x1a,0x4b,0xcd,
3056
0xbe,0xa6,0x85,0x48,0x13,0x32,0xa4,0xc6,0xdd,0x09,0xde,0x83,0x0d,0xd2,0x37,0x2c,
3057
0xf5,0xfc,0xb6,0x43,0xab,0x33,0x28,0x2b,0xbc,0x06,0x0b,0x61,0x2e,0xcc,0x90,0xce,
3058
0x82,0x02,0x85,0x1d,0x27,0x1d,0x96,0xc0,0x05,0xd2,0xb6,0xd2,0x8e,0xd2,0x2e,0xd2,
3059
0x34,0x58,0x0c,0x83,0x61,0x88,0x74,0x18,0x2c,0x84,0x71,0xd2,0xc1,0xb2,0x2f,0xb2,
3060
0xd4,0xf3,0xf3,0xf4,0x36,0xc5,0x77,0x9f,0x74,0x96,0xf4,0x31,0xe9,0x5c,0x69,0xb6,
3061
0xd2,0xab,0x54,0xc4,0x71,0x62,0x21,0x07,0x02,0x65,0x19,0x87,0x10,0x29,0x8d,0x92,
3062
0x16,0x90,0x16,0x92,0x16,0x95,0xd6,0x91,0xd6,0x93,0x36,0x90,0x36,0x94,0xa6,0x4b,
3063
0xcd,0xf9,0xca,0x9c,0xc3,0xd3,0x75,0x4d,0x60,0xce,0x57,0xb7,0xfa,0xdc,0xeb,0x01,
3064
0x73,0x6e,0xf3,0xee,0x03,0x5a,0xea,0x1a,0xad,0x95,0xae,0xc9,0xcc,0x79,0xa8,0x22,
3065
0xf3,0x7c,0xa6,0xe3,0x9e,0x53,0xcd,0x79,0xd1,0x9c,0x3b,0xcd,0xf5,0xa6,0x39,0xf7,
3066
0x65,0xb2,0xaf,0x2d,0xf8,0xcf,0x71,0x9c,0x6e,0xba,0xce,0x30,0xe7,0xc0,0xce,0xf8,
3067
0x75,0x81,0x4b,0xfc,0xee,0xb5,0x86,0xb9,0xae,0xe9,0x6f,0xe2,0xf7,0xb9,0xe7,0xb3,
3068
0xf6,0xf8,0x97,0xe2,0x98,0xd2,0x30,0xc8,0x71,0xcf,0xb3,0xe6,0x5c,0x7c,0x0e,0xee,
3069
0x81,0xec,0x1b,0x81,0xbd,0xd2,0x39,0xee,0xbc,0xbc,0x08,0x9e,0xd1,0x3c,0xbc,0x4e,
3070
0xd7,0x04,0x43,0x14,0xde,0x84,0xf3,0xc2,0xac,0xb6,0xc2,0xd4,0x67,0xec,0x5f,0xe8,
3071
0x77,0xef,0xef,0x3a,0xa0,0xfb,0x1c,0x37,0x2f,0x3d,0xd1,0xcb,0xd1,0x2c,0xe8,0x01,
3072
0xbd,0xa1,0x8f,0x39,0x7f,0x9a,0xf3,0x26,0xe9,0xdd,0x8f,0xf6,0x87,0x49,0xd8,0x1f,
3073
0x44,0x07,0xc3,0x20,0x18,0x02,0x43,0x61,0x18,0x0c,0x87,0x51,0x30,0x01,0x26,0xc2,
3074
0x5c,0xca,0x74,0x03,0x7a,0x23,0x9c,0xcd,0x71,0x37,0xa1,0x37,0xfb,0xdd,0xeb,0xad,
3075
0x6c,0x74,0x9a,0xdf,0xbd,0x3e,0x7b,0x4e,0xd7,0x0d,0x95,0x74,0xdd,0x60,0x34,0x5d,
3076
0xe7,0xe4,0x6e,0x52,0xe3,0x8e,0x96,0x3b,0x5a,0xee,0x78,0xb9,0xe3,0xad,0xe7,0x11,
3077
0x3e,0xeb,0x5e,0xde,0xa7,0xeb,0xbd,0x48,0x5d,0x73,0x47,0xca,0x1d,0x2d,0x77,0xb4,
3078
0xdc,0xf1,0x72,0xc7,0xcb,0x5d,0x45,0xee,0x2a,0x72,0xc7,0xc8,0x1d,0x63,0xdd,0xff,
3079
0x3a,0xd6,0x3d,0xb0,0x63,0xf9,0xfb,0x2c,0x7f,0xef,0x79,0x48,0x8c,0xfc,0xbc,0xe3,
3080
0xe3,0xe4,0x8e,0xb3,0xae,0x8f,0x22,0xac,0x6b,0x24,0x63,0x6f,0xaa,0xfc,0xf6,0xb4,
3081
0xee,0x7b,0xc3,0x75,0x7d,0x1a,0xae,0xeb,0xae,0x48,0x5d,0xe7,0x44,0xca,0x1d,0x2d,
3082
0x77,0xb4,0xdc,0xf9,0xe4,0xce,0x27,0x77,0x15,0xb9,0xbd,0xfb,0xe6,0x58,0xb9,0x63,
3083
0x75,0x5d,0x19,0xa7,0x3e,0x14,0x67,0x3d,0x9f,0xf1,0x59,0xcf,0x36,0x7c,0xba,0x1e,
3084
0xf7,0xe9,0x7a,0xdc,0x73,0x47,0xcb,0x1d,0x2d,0x77,0xbc,0xdc,0xf1,0xba,0xbf,0x89,
3085
0xd6,0x7d,0x6f,0xb4,0xe5,0x0e,0xb7,0xfc,0xc2,0xe5,0x1f,0x2f,0x3f,0xef,0xb8,0x18,
3086
0xb9,0x8d,0xb6,0x52,0x7a,0xfd,0xa5,0xad,0x54,0xee,0xfe,0xd2,0x56,0x8a,0xab,0xbf,
3087
0xb4,0xb5,0xfc,0x07,0x48,0x5b,0xcb,0x7f,0x80,0xb5,0x3f,0x5e,0xee,0x78,0xb9,0x63,
3088
0xe4,0x8e,0xb1,0xae,0x47,0x7d,0xd6,0xf5,0xa8,0xcf,0xf2,0xcf,0x67,0xf9,0xe7,0x0b,
3089
0x3b,0x7c,0x1f,0xee,0x58,0xf7,0xe2,0x8e,0xe5,0xef,0xb3,0xfc,0x8d,0x3d,0x53,0xe5,
3090
0x18,0xe4,0x1c,0x76,0x47,0xca,0x1d,0xa9,0xeb,0xf4,0x48,0x5d,0xa7,0x7b,0xee,0x68,
3091
0xb9,0xa3,0x2d,0x77,0xb8,0xe5,0x17,0x2e,0xff,0x78,0xf9,0xc5,0xeb,0xfa,0x3d,0x52,
3092
0xd7,0xef,0x91,0x72,0x47,0xcb,0x1d,0x6d,0xdd,0xdf,0x47,0x5a,0xf7,0xf8,0x91,0xd6,
3093
0x7d,0x7c,0xa4,0x75,0x2f,0x6f,0x1f,0x1f,0x69,0xc5,0x11,0xa9,0xfb,0x82,0x48,0xdd,
3094
0x17,0x78,0xee,0x68,0xb9,0xa3,0xe5,0x8e,0x97,0x3b,0x5e,0xee,0x18,0xb9,0x63,0x74,
3095
0xdf,0x71,0x9e,0xee,0x3b,0xce,0x93,0x3b,0x4e,0xee,0x38,0xb9,0x63,0xe4,0x8e,0xb1,
3096
0x9e,0x1b,0xf8,0xac,0x67,0x07,0x3e,0xeb,0xf9,0x41,0x3e,0xeb,0x19,0x82,0xb1,0x77,
3097
0x54,0x98,0x11,0xd2,0x8e,0xca,0xd7,0x08,0x69,0x27,0xdd,0xe7,0x8d,0x94,0x76,0x52,
3098
0x5d,0x8c,0x94,0x76,0xd2,0x18,0x18,0x29,0xed,0xa4,0x72,0x8e,0x94,0x76,0x52,0x3c,
3099
0x23,0xa5,0x17,0xc9,0x7f,0x94,0xf4,0x22,0x1d,0x37,0xca,0x7a,0x4e,0x19,0xa9,0xfb,
3100
0x15,0xef,0xf9,0x82,0x5f,0xcf,0x17,0xfc,0x72,0x47,0xcb,0x1d,0x2d,0x77,0xbc,0xdc,
3101
0xf1,0x1a,0xb7,0x5e,0x7d,0x7a,0xf9,0xca,0xaf,0xf8,0xf2,0x6b,0x1e,0x5d,0xc1,0xdc,
3102
0x7a,0xad,0xcf,0x8d,0xbf,0x91,0xe2,0xc9,0x92,0x1a,0x77,0x94,0xdc,0x51,0xd6,0xf3,
3103
0x5e,0xfb,0x59,0xa9,0xfd,0x1c,0xd8,0xb1,0xfc,0x1d,0xcb,0x3f,0xca,0xf2,0xb7,0xe3,
3104
0x09,0xb3,0xfc,0xc3,0xac,0xf4,0xfd,0x56,0x1e,0xfc,0xd6,0xf3,0x4b,0x9f,0xf5,0x0c,
3105
0xd3,0x67,0xf9,0x3b,0x96,0xbf,0x63,0xf9,0x47,0x59,0xfe,0x51,0x96,0x7f,0x98,0xe5,
3106
0x6f,0xa7,0x1b,0x61,0xa5,0xeb,0x3d,0xa7,0x8c,0xd6,0x9c,0x1b,0x2d,0x77,0x94,0xdc,
3107
0x51,0x72,0x87,0xc9,0x1d,0x66,0x3d,0xd7,0xb6,0x9f,0x09,0xdb,0xcf,0xbb,0x1d,0xcb,
3108
0xdf,0xb1,0xfc,0xa3,0x2c,0xff,0x28,0xcb,0x3f,0xcc,0xf2,0x0f,0xb3,0xf2,0xe3,0xb7,
3109
0xf2,0xe4,0x3d,0xcf,0x8c,0xd2,0x1c,0x1c,0x25,0x77,0xb4,0xdc,0xd1,0x9a,0x5f,0xa2,
3110
0x35,0xb7,0x78,0xee,0x28,0xb9,0xa3,0xac,0xe7,0xe8,0xf6,0x33,0x68,0xfb,0xf9,0xba,
3111
0x63,0xf9,0x3b,0x96,0x7f,0x94,0xe5,0x6f,0xc7,0x13,0x66,0xf9,0x87,0x59,0xe9,0xfb,
3112
0xad,0x3c,0x78,0xcf,0xed,0xcb,0x5a,0xe9,0x96,0xb5,0xd2,0x2d,0x6b,0xa5,0x5b,0xd6,
3113
0x4a,0xb7,0xac,0x95,0x6e,0x59,0x2b,0xdd,0xb2,0x56,0xba,0x65,0xad,0x74,0x8d,0x3d,
3114
0xda,0xf2,0x8f,0xd6,0xf8,0x8f,0xd6,0xd8,0xf7,0xdc,0x51,0x72,0x47,0x59,0xcf,0xe8,
3115
0x7c,0xd6,0x73,0x3a,0x9f,0xe5,0xef,0x58,0xfe,0x8e,0xe5,0x1f,0x65,0xf9,0xdb,0xf1,
3116
0x84,0x59,0xfe,0x61,0x96,0x7f,0xb4,0xe5,0x1f,0xad,0xf1,0xee,0x68,0x7c,0x3a,0x72,
3117
0x47,0xcb,0xed,0xed,0x8f,0x92,0x3b,0x4a,0xee,0x30,0xb9,0xc3,0x74,0x6f,0x5f,0x5c,
3118
0x5a,0xc2,0x72,0x3b,0x96,0x9f,0x63,0xf9,0xfb,0x2c,0x7f,0x9f,0xe5,0x9f,0x6e,0xf9,
3119
0xa7,0xeb,0x59,0x44,0x71,0x69,0x09,0xcb,0xed,0x58,0x7e,0x8e,0xe5,0xef,0xb3,0xfc,
3120
0x7d,0x96,0x7f,0xba,0xe5,0x9f,0xae,0x67,0x00,0xc5,0xa5,0x25,0x2c,0xb7,0x63,0xf9,
3121
0x39,0x96,0xbf,0xcf,0xf2,0x37,0xf6,0xe9,0xf2,0x9f,0x2e,0xbf,0xe9,0xd6,0xf1,0xd3,
3122
0xad,0xe3,0xa7,0x5b,0xc7,0x4f,0xb7,0x8e,0x5f,0x22,0xff,0x25,0xf2,0x5b,0x62,0x1d,
3123
0xbf,0xc4,0x3a,0x7e,0x89,0x75,0xfc,0x92,0xa3,0x1c,0x9f,0x6e,0xf9,0xa7,0xeb,0x39,
3124
0x4d,0x71,0x69,0x09,0xcb,0xed,0x58,0x7e,0x8e,0xe5,0xef,0xb3,0xfc,0x7d,0x96,0x7f,
3125
0xba,0xe5,0x9f,0xae,0xe7,0x31,0xc5,0xa5,0x25,0x2c,0xb7,0x63,0xf9,0x39,0x96,0xbf,
3126
0xcf,0xf2,0xf7,0x59,0xfe,0xe9,0x96,0x7f,0xba,0x9e,0x11,0x15,0x97,0x96,0xb0,0xdc,
3127
0x8e,0xe5,0xe7,0x58,0xfe,0x3e,0xcb,0xdf,0x67,0xf9,0xa7,0x5b,0xfe,0xe9,0x7a,0x5e,
3128
0x54,0x5c,0x5a,0xc2,0x72,0x3b,0x96,0x9f,0x63,0xf9,0xfb,0x2c,0x7f,0xef,0xf9,0x56,
3129
0x71,0x69,0x09,0xcb,0xed,0x58,0x7e,0x8e,0xe5,0xef,0xb3,0xfc,0xbd,0xe7,0x54,0xc5,
3130
0xa5,0x25,0x2c,0xb7,0x63,0xf9,0x39,0x96,0xbf,0xcf,0xf2,0xb7,0x8f,0x4f,0xb7,0xfc,
3131
0xd3,0xf5,0x9c,0xab,0x84,0xa5,0x8e,0x65,0xf7,0x59,0xf6,0x74,0x3d,0x23,0x2b,0x2e,
3132
0x2d,0x61,0xb9,0x1d,0xcb,0xcf,0xb1,0xfc,0x7d,0x96,0xbf,0xcf,0xf2,0x4f,0xb7,0xfc,
3133
0xd3,0xf5,0xac,0xaf,0xb8,0xb4,0x84,0xe5,0x76,0x2c,0x3f,0xc7,0xf2,0xf7,0x59,0xfe,
3134
0x3e,0xcb,0x3f,0xdd,0xf2,0xf7,0xc6,0xbd,0x13,0xf2,0x9c,0xd0,0x09,0x79,0x5e,0xe8,
3135
0x84,0x3c,0x37,0x74,0xac,0xe7,0x87,0x2b,0xad,0x36,0xf5,0xea,0xd0,0x09,0x79,0x66,
3136
0xe8,0x58,0xcf,0x0e,0xbd,0x39,0x27,0x68,0xcd,0x39,0xc1,0x90,0xb9,0x2b,0x18,0x32,
3137
0x7f,0x05,0x43,0xe6,0xb0,0x60,0xc8,0x3c,0x16,0x0c,0x99,0xcb,0x82,0x21,0xf3,0x59,
3138
0xd0,0x9a,0x93,0x82,0xd6,0x9c,0x14,0x0c,0x99,0xdb,0x82,0x21,0xf3,0x5b,0x30,0x64,
3139
0x8e,0x0b,0x86,0xcc,0x73,0xc1,0x90,0xb9,0x2e,0x18,0x32,0xdf,0x05,0xad,0x39,0x23,
3140
0x68,0xcd,0x19,0xc1,0x90,0xb9,0x27,0x18,0x32,0xff,0x04,0x43,0xe6,0xa0,0x60,0xc8,
3141
0x3c,0x14,0x0c,0x99,0x8b,0x82,0x21,0xf3,0x51,0xd0,0x9a,0x53,0x82,0xd6,0x9c,0x12,
3142
0x0c,0x99,0x9b,0x82,0x21,0xf3,0x53,0x30,0x64,0x8e,0x0a,0x86,0xcc,0x53,0xc1,0x90,
3143
0xb9,0x2a,0x18,0x32,0x5f,0x05,0xad,0xfe,0x1b,0xb4,0xfa,0x6f,0x30,0x64,0x1c,0x04,
3144
0x43,0xc6,0x42,0x30,0x64,0x3c,0x04,0x43,0xc6,0x44,0x30,0x64,0x5c,0x04,0x43,0xc6,
3145
0x46,0xd0,0xea,0xdf,0x41,0xab,0x7f,0x07,0x43,0xc6,0x49,0x30,0x64,0xac,0x04,0x43,
3146
0xc6,0x4b,0x30,0x64,0xcc,0x04,0x43,0xc6,0x4d,0x30,0x64,0xec,0x78,0xfd,0x2c,0x42,
3147
0x1a,0x6e,0x8d,0x27,0x6f,0x5f,0xd0,0x1a,0x5b,0x9e,0x3d,0xdd,0x52,0xaf,0xcf,0x44,
3148
0x48,0xc3,0xa5,0x8e,0xf5,0x4e,0x60,0x9a,0xc2,0x99,0x77,0x06,0xde,0xf9,0xc0,0xb3,
3149
0x1b,0x4d,0xd7,0x7b,0x84,0x74,0x6b,0xbc,0x7a,0x7d,0x22,0x68,0x8d,0x5d,0xcf,0x9e,
3150
0x6e,0x69,0x50,0xe7,0x48,0xef,0xbc,0xe9,0x9d,0x8f,0x1c,0xeb,0xfd,0xc3,0x5d,0x0a,
3151
0xb7,0xb2,0xbc,0xc6,0x7a,0x79,0x8d,0xfd,0xf2,0x87,0xcf,0x2d,0x11,0xd2,0x70,0xeb,
3152
0x3d,0x82,0x13,0xf2,0x6e,0x62,0xa9,0x75,0x2e,0xca,0x67,0x9d,0x3f,0x22,0xa4,0xe1,
3153
0x52,0xc7,0x7a,0xe7,0xf1,0x8b,0xd2,0xfc,0xa5,0xfc,0x61,0xb7,0x37,0x3f,0x47,0x48,
3154
0xc3,0xad,0x77,0x16,0x4e,0xc8,0x3b,0x8d,0xd5,0x6a,0xbf,0xd5,0xd6,0x39,0x21,0xdd,
3155
0x0a,0xe3,0xcd,0xef,0x11,0xd2,0x70,0xa9,0x63,0xbd,0x67,0x99,0xa5,0x63,0x67,0xeb,
3156
0x3a,0xcd,0x7b,0x67,0xd3,0xd5,0x39,0x3c,0xbf,0x79,0x7d,0x32,0x68,0xcd,0x75,0x9e,
3157
0x3d,0xdd,0xd2,0xa0,0xce,0x59,0x8e,0xf5,0x3e,0x67,0x8e,0x35,0x77,0x7b,0x6e,0x13,
3158
0xee,0x19,0xbd,0x27,0x32,0x69,0xfb,0xb1,0x84,0x55,0x38,0xfc,0x37,0x3f,0xbf,0x45,
3159
0x11,0x85,0x4b,0xe4,0xb8,0x58,0xe7,0xe8,0x98,0xfd,0x09,0x15,0xfe,0x97,0xe4,0xa3,
3160
0x70,0xae,0xe3,0x62,0x8e,0x09,0x10,0x67,0x43,0xe7,0x30,0xde,0xbe,0x86,0x47,0x89,
3161
0xcf,0x84,0x8f,0xd3,0xdf,0x4b,0x98,0xbf,0x27,0x4a,0x86,0x14,0xa8,0x05,0xb5,0x21,
3162
0x15,0xaa,0x43,0xb1,0x8a,0x8e,0x53,0xdf,0xbc,0x5f,0x83,0xf3,0xf5,0x5e,0x3b,0x4e,
3163
0x7f,0x97,0xe4,0xfd,0x4d,0xd2,0x1f,0x39,0x3e,0x4b,0xcf,0x55,0x07,0xea,0x9d,0x9c,
3164
0x79,0xbe,0xda,0x5b,0xcf,0x55,0xfb,0xe9,0xd9,0xaa,0x49,0x63,0x90,0xde,0xdb,0x99,
3165
0xfb,0x65,0xef,0xfd,0xdf,0x18,0x3d,0xbb,0x1d,0xaa,0x78,0x6a,0x3a,0xee,0xb3,0x43,
3166
0xcf,0x6e,0xfc,0xcd,0x73,0xc5,0xf9,0xd2,0xee,0xf2,0x1f,0x68,0xd9,0xcd,0x35,0x7e,
3167
0xb6,0xcf,0x0d,0x63,0x9e,0xd9,0xf5,0xd2,0x73,0x63,0x8f,0xdc,0xe7,0x6d,0x3e,0xf7,
3168
0xbe,0xad,0xb9,0x9e,0x21,0xf7,0xd3,0x33,0xe4,0xd6,0x8a,0xcb,0x3c,0xfb,0x69,0xab,
3169
0xbc,0x78,0xb4,0xd3,0xb3,0xe6,0xf6,0x7a,0x26,0x7d,0x81,0xec,0xad,0xf4,0xfe,0x7a,
3170
0x8e,0x9e,0x09,0xb4,0x74,0x0e,0xbf,0x9b,0x4e,0x57,0x3e,0x7b,0xe8,0x98,0xa6,0x0a,
3171
0x6f,0xd2,0xd8,0x14,0x70,0x9c,0x37,0x61,0x33,0x6c,0x09,0xb8,0xed,0xd4,0x54,0xc7,
3172
0x9a,0x67,0x13,0xab,0xf4,0xac,0xf8,0x76,0x98,0x09,0x45,0x2b,0xba,0xcf,0x3e,0xbd,
3173
0xe7,0xd6,0xde,0xdf,0xc1,0x78,0x7f,0x3f,0x56,0xcb,0xb2,0xa7,0x5a,0xf6,0x78,0xab,
3174
0x3d,0x8d,0x3b,0x51,0xed,0xea,0xd9,0x3d,0xff,0x64,0xcb,0x3f,0xd9,0xfa,0x5b,0xb4,
3175
0x64,0xb5,0xbf,0x67,0xf7,0xc2,0xa7,0xa8,0x4f,0x78,0x76,0xcf,0xbf,0xb6,0x75,0x6c,
3176
0x6d,0x2b,0x4c,0x6d,0xf5,0x1d,0xcf,0xee,0x85,0xf7,0xda,0xe1,0x68,0x74,0xb4,0x68,
3177
0x6e,0x69,0xa8,0xdd,0xe3,0x22,0x8b,0xe6,0x96,0x7a,0xed,0xdc,0x58,0xef,0x14,0x5a,
3178
0xa9,0xfe,0x8e,0xc5,0x08,0x8b,0x3e,0x96,0x86,0xda,0x3d,0x46,0x59,0xf4,0xb1,0xb4,
3179
0x8f,0xfa,0x56,0x77,0xb5,0x5b,0x7f,0xb5,0x85,0x57,0xf7,0xd9,0x0c,0xde,0xda,0xe6,
3180
0x6f,0x22,0xa4,0x77,0x48,0x37,0x49,0xdf,0x92,0x6e,0x96,0x86,0x55,0x74,0x35,0x9f,
3181
0xb4,0x80,0x34,0x5a,0x5a,0x49,0x5a,0xbd,0xe2,0xff,0x12,0x7b,0x14,0xea,0x29,0x7c,
3182
0x63,0x69,0x50,0xda,0x4c,0x6a,0xc6,0xb5,0xd1,0x2c,0xb9,0x5b,0x49,0xeb,0xc9,0xbf,
3183
0x81,0xf4,0x0a,0xf9,0xf7,0x90,0x0e,0x91,0x0e,0x95,0x8e,0x90,0x8e,0x94,0x8e,0x91,
3184
0x5e,0x25,0x9d,0x20,0x9d,0x28,0xbd,0x5e,0x3a,0x59,0xfa,0x90,0x74,0xb6,0x74,0x8e,
3185
0x74,0xae,0x74,0xac,0xf4,0x6a,0xe9,0x34,0xe9,0x6d,0xd2,0x85,0xd2,0x45,0xd2,0x67,
3186
0xa4,0x8b,0xbd,0xfa,0xa4,0x51,0xa2,0xe2,0x8e,0x6f,0xce,0xb3,0xc7,0x53,0xbc,0x35,
3187
0x4f,0xc6,0x3b,0x87,0xc7,0x93,0xf7,0x77,0x9d,0xde,0x78,0xf1,0xc6,0x87,0x37,0x46,
3188
0xbd,0xfe,0x9f,0xaa,0x63,0xe3,0x34,0x7f,0xc6,0x6b,0x0e,0xad,0x2a,0x7f,0xcf,0x9e,
3189
0x68,0xd9,0x93,0x2c,0x7b,0xb2,0x65,0x4f,0xb1,0xec,0xb5,0x2c,0x7b,0x6d,0xcb,0x9e,
3190
0x6a,0xd9,0xbd,0x72,0xd8,0xee,0xf8,0x10,0x77,0x42,0x88,0x3b,0x31,0xc4,0x9d,0x14,
3191
0xe2,0x4e,0x0e,0x71,0xa7,0x84,0xb8,0x6b,0x85,0xb8,0x6b,0x87,0xb8,0x53,0x43,0xca,
3192
0xef,0xe5,0x2f,0x5e,0xe7,0xcd,0x04,0x69,0xa2,0x34,0x49,0x9a,0x2c,0x4d,0x91,0xd6,
3193
0x92,0xd6,0x96,0xa6,0x4a,0xbd,0x32,0xc7,0x5a,0xe5,0x8d,0xb5,0xca,0x1a,0x6b,0x95,
3194
0x33,0xd6,0x2a,0x63,0xac,0x55,0xbe,0x58,0xab,0x6c,0xb1,0x56,0xb9,0x62,0xad,0x32,
3195
0xc5,0x5a,0xe5,0x89,0xb5,0xca,0x12,0xab,0xb2,0x65,0x59,0xe5,0xec,0x66,0xd9,0xbb,
3196
0x5b,0xf6,0x2b,0x2c,0x7b,0x0f,0xcb,0xde,0xd3,0xb2,0xf7,0xb2,0xec,0xbd,0x2d,0x7b,
3197
0x1f,0xcb,0x7e,0xa5,0x65,0xef,0x6b,0xd9,0xfb,0x59,0xf6,0xfe,0x96,0x7d,0x80,0x65,
3198
0x1f,0x68,0xd9,0x07,0x59,0xf6,0xc1,0x96,0x7d,0x88,0x65,0x1f,0x6a,0xd9,0x87,0x59,
3199
0xf6,0xe1,0x96,0x7d,0x84,0x65,0x1f,0x69,0xd9,0x47,0x59,0xf6,0xd1,0x96,0x7d,0x8c,
3200
0xec,0x8d,0x9c,0xc3,0xe7,0xd3,0x26,0xd6,0xf9,0xf4,0x78,0xde,0x0b,0xdb,0xe7,0xf3,
3201
0x76,0xd6,0xbb,0xe1,0x8e,0x7a,0x3f,0x6c,0xce,0x13,0x9d,0x75,0x1e,0xcf,0x52,0x9b,
3202
0x74,0xb7,0xce,0xb5,0x3d,0x55,0xd7,0xbd,0xad,0xf3,0x6e,0xe8,0xf5,0xcc,0x40,0xd5,
3203
0xd1,0x60,0xd5,0xc9,0x50,0xeb,0x5d,0xf1,0x08,0x95,0x75,0x94,0x75,0x9d,0x63,0xfa,
3204
0x43,0xe8,0x1c,0x5d,0xc7,0x71,0xa9,0x7f,0x0c,0x3e,0xa8,0xe6,0xce,0x57,0x57,0x2a,
3205
0xef,0x59,0x31,0x8e,0xf3,0x1a,0x19,0x79,0xf0,0x41,0xb7,0xb0,0x55,0x21,0x05,0x1a,
3206
0x42,0x67,0x98,0x04,0x37,0xc3,0x4c,0x78,0xde,0xf8,0x53,0x09,0x3d,0xa0,0x2f,0x4c,
3207
0x80,0x3b,0x61,0x2e,0xec,0x80,0xef,0x54,0x41,0xf7,0xc2,0x0f,0x50,0x92,0x8a,0x3a,
3208
0x0b,0x6a,0x43,0x23,0xb8,0x04,0xfa,0xc0,0x04,0x78,0x16,0xd6,0xc3,0x4e,0x78,0x97,
3209
0x8c,0x94,0xa7,0x12,0x3f,0xa7,0x12,0xfd,0x54,0x62,0x7e,0x28,0x09,0x55,0x60,0x28,
3210
0x64,0x76,0x71,0x9c,0x71,0xf0,0x3d,0x14,0xbe,0xc4,0x71,0x2a,0x42,0x6d,0x18,0x00,
3211
0x83,0x61,0xdb,0xa5,0x8e,0xf3,0x09,0xec,0x87,0x5f,0x60,0xc8,0x65,0xd4,0x0f,0x5c,
3212
0x0b,0xdf,0xc2,0x2f,0x50,0xe0,0x72,0xee,0x23,0x20,0x13,0xb2,0x60,0x28,0xbc,0x08,
3213
0xf9,0x68,0xa8,0x14,0x68,0x09,0x35,0x69,0xa8,0x24,0x98,0x0c,0x77,0xc1,0x23,0xb0,
3214
0x14,0x76,0xc0,0x27,0xb0,0x8f,0x46,0xcc,0x47,0x23,0x56,0x85,0x0a,0xd4,0x59,0x37,
3215
0x18,0x0d,0x8b,0x60,0x23,0xbc,0x05,0xdb,0xa0,0x30,0x8d,0x5a,0x02,0x92,0xa0,0x2f,
3216
0x0d,0x5a,0x8d,0xc6,0x4c,0x81,0xba,0xd0,0x10,0x32,0xa0,0x33,0x74,0x81,0x27,0xe1,
3217
0x3a,0x1a,0xfa,0x06,0xc8,0xa1,0xb1,0x77,0xc3,0x99,0x34,0x78,0x79,0xa8,0x0a,0x71,
3218
0x70,0x13,0xdc,0x06,0x23,0xe8,0x04,0x57,0xc3,0xd3,0xb0,0x12,0xbe,0x82,0x6d,0x74,
3219
0x8a,0x8f,0xe1,0x00,0xd4,0xa1,0x63,0x3c,0x07,0x2b,0x60,0x18,0x1d,0x64,0x23,0xfc,
3220
0x00,0x43,0xc7,0x52,0x77,0x90,0x72,0x2d,0x7d,0x18,0x6e,0x84,0xe5,0xe0,0x1b,0xe7,
3221
0x38,0x05,0xa1,0x18,0x24,0xc2,0xb5,0x70,0x03,0xec,0x1c,0xef,0x38,0x7b,0xe1,0x00,
3222
0x1c,0x84,0x82,0x13,0x1c,0xa7,0x2c,0x94,0x87,0x01,0x30,0x04,0x46,0x41,0xab,0xeb,
3223
0x29,0x1f,0xa4,0x4d,0x61,0xbc,0x40,0x77,0xb8,0xe6,0x06,0xf2,0x0b,0x9b,0xc1,0xb9,
3224
0x91,0x79,0xed,0x66,0xc6,0x18,0x74,0x80,0x51,0x70,0x3f,0x5c,0x71,0x0b,0xfd,0x1c,
3225
0x16,0xc1,0xdc,0x5b,0x1d,0x67,0x03,0xdc,0x3b,0x95,0xeb,0x6d,0x58,0x0c,0xd3,0xb2,
3226
0x19,0x8b,0xd3,0x1c,0x67,0x2d,0xbc,0x0a,0x6f,0xc2,0xc8,0xe9,0xf4,0x01,0x38,0xfb,
3227
0x4e,0xfa,0x0e,0x2c,0x85,0x3d,0xd0,0xf6,0x2e,0xc7,0xb9,0x0c,0xba,0x41,0x1f,0xd8,
3228
0x08,0x5f,0xc2,0x01,0xf0,0xdd,0xcd,0xf9,0x1e,0xb6,0xc1,0x76,0xb8,0x73,0x06,0xf7,
3229
0xa5,0xf0,0x24,0xcc,0xbe,0xc7,0x71,0xb6,0xc2,0x76,0xa8,0x74,0x2f,0x6d,0x0f,0x09,
3230
0x50,0x0f,0x2e,0x86,0x4f,0xee,0x63,0xdc,0x3d,0x40,0x9d,0xc0,0xa3,0xf0,0x02,0xbc,
3231
0x08,0xaf,0xc1,0x9b,0xf0,0x03,0xfc,0x0c,0x67,0x30,0x6e,0x8a,0x43,0x05,0xa8,0x0b,
3232
0x2d,0xe0,0x42,0xb8,0x05,0xee,0x83,0x99,0x0f,0xba,0xf7,0x51,0xc5,0xe2,0xdc,0x31,
3233
0xd0,0x04,0x82,0xd0,0x12,0xf7,0x0c,0x68,0x25,0x6d,0x23,0x6d,0x2b,0x6d,0x27,0xed,
3234
0x20,0xed,0x24,0xed,0x2c,0xed,0x22,0xbd,0x54,0x7a,0xb9,0x34,0x4b,0x7a,0x85,0xb4,
3235
0xa7,0xb4,0xb7,0x74,0xa0,0xa5,0xf7,0xc0,0x10,0xb9,0x87,0xc8,0x3d,0x5c,0xee,0xe1,
3236
0x72,0x8f,0x92,0x7b,0x94,0xdc,0x57,0xc9,0x7d,0x95,0xdc,0x4d,0xe5,0x36,0x65,0xf4,
3237
0xd4,0xf8,0xdf,0x2f,0xff,0x29,0x70,0x23,0xcc,0x95,0xfb,0x29,0xe9,0x3c,0xe9,0x02,
3238
0xe9,0x22,0xe9,0x62,0xe9,0x12,0xe9,0x52,0xe9,0x0b,0xd2,0xe5,0xd2,0x95,0xd2,0xd5,
3239
0xd2,0x97,0xa4,0x6b,0xa5,0xeb,0xa5,0x6f,0x58,0x6a,0xf2,0xb5,0x59,0xee,0xcd,0x72,
3240
0xbf,0x2d,0xf7,0xdb,0x72,0x6f,0x95,0x7b,0xab,0xdc,0xdb,0xe4,0xde,0x26,0xf7,0x63,
3241
0x72,0x7f,0x2d,0xdd,0x27,0xdd,0x2f,0xfd,0x46,0xfa,0xb3,0x55,0x2e,0x93,0x17,0xa7,
3242
0x28,0xfd,0x11,0x9e,0x00,0x3f,0x3c,0x09,0x4f,0x41,0x18,0x84,0x43,0x00,0xe6,0xc3,
3243
0x02,0x58,0x08,0x8b,0xe0,0x19,0x58,0x0c,0x67,0x41,0x04,0x44,0x42,0x3e,0x38,0x17,
3244
0xa2,0x20,0x3f,0x14,0x80,0x82,0x50,0x08,0xce,0x80,0xc2,0x50,0x04,0x8a,0x42,0x31,
3245
0xc8,0x82,0x6e,0xd0,0x1d,0xae,0x80,0x1e,0xd0,0x13,0x7a,0x41,0x6f,0xe8,0x03,0x57,
3246
0x42,0x5f,0xe8,0x07,0xfd,0x61,0x00,0x0c,0x84,0x41,0x30,0x18,0x86,0xc0,0x50,0x18,
3247
0x06,0xc3,0xa1,0x2b,0x94,0x80,0x92,0xb0,0x0e,0xd6,0xc3,0xab,0xf0,0x3a,0x6c,0x81,
3248
0x77,0xe1,0x3d,0x38,0x1b,0x3e,0x80,0xed,0x70,0x0e,0x94,0x83,0x0a,0x50,0x11,0xa2,
3249
0xa1,0x0a,0x9c,0x0f,0xd5,0xa1,0x06,0xc4,0x40,0x2c,0xd4,0x84,0x04,0x48,0x81,0x34,
3250
0xc8,0x80,0x0b,0x60,0x3f,0x7c,0x03,0x9d,0xe0,0x22,0xe8,0x0c,0xd7,0xc1,0x24,0x98,
3251
0x02,0xd3,0xe0,0x36,0xb8,0x03,0x1e,0x80,0x59,0x45,0xdd,0x73,0x9a,0x39,0x7f,0x45,
3252
0xc1,0x36,0xce,0x33,0xf9,0xd1,0x18,0x28,0x00,0x09,0xc3,0xdd,0x73,0x5c,0x19,0xf0,
3253
0xc1,0xf9,0x9c,0x6b,0xe2,0x3a,0xb9,0xe7,0x39,0x73,0xdd,0x60,0xda,0xcc,0xbb,0x86,
3254
0xf0,0x5b,0xf6,0x30,0xcb,0x1e,0xb0,0xec,0x11,0x96,0x3d,0xd2,0xb2,0x47,0x59,0xf6,
3255
0x02,0x96,0xbd,0xa0,0x65,0x3f,0xc3,0xb2,0x17,0xb6,0xec,0x45,0x2c,0x7b,0x51,0xcb,
3256
0x5e,0xcc,0xb2,0x3b,0x6a,0x67,0x3b,0xaf,0x59,0x21,0xf9,0xcd,0x0a,0xc9,0x73,0x56,
3257
0x48,0xbe,0xb3,0x42,0xf2,0x9e,0x15,0x92,0xff,0xac,0x90,0x32,0x64,0x85,0x94,0x23,
3258
0x2b,0xa4,0x2c,0x59,0x21,0xe5,0xc9,0x0a,0x29,0x53,0x56,0x48,0xb9,0xb2,0x42,0xca,
3259
0x16,0x1a,0xff,0x80,0x90,0xf4,0xfb,0xa8,0xdf,0x9b,0xfe,0x3c,0xf7,0x28,0xfb,0x8a,
3260
0x85,0x1c,0x63,0xfa,0x81,0x67,0xbf,0xd9,0xb2,0x47,0x59,0x76,0xd3,0x3f,0x3c,0xfb,
3261
0x1d,0x96,0x7f,0xff,0xb6,0x56,0x5d,0x5a,0xfe,0x7d,0x2d,0xff,0x4b,0x2d,0x7f,0x33,
3262
0xcf,0x7b,0x76,0x73,0xbd,0x70,0x28,0xfc,0x20,0xeb,0x1e,0xac,0xdf,0x61,0x7b,0x55,
3263
0x2b,0x8c,0x39,0xd7,0x79,0x76,0x73,0x4d,0xe4,0xd9,0xcd,0xf5,0x87,0x67,0xaf,0xd6,
3264
0xdb,0xca,0xbf,0x75,0x6c,0x83,0xd1,0x87,0xed,0x85,0xda,0x5b,0xd7,0xc2,0x43,0x0e,
3265
0xdb,0x67,0xdd,0x6c,0xe5,0xd9,0x0a,0xff,0xcc,0x85,0x87,0xed,0x3b,0xad,0xb2,0x8c,
3266
0xb5,0xe2,0xe9,0xd9,0xc5,0x0a,0x33,0xe2,0xb0,0xdd,0xd7,0xe6,0xb0,0x7d,0x9d,0x15,
3267
0x7f,0x7b,0xab,0x1e,0xfa,0x5b,0x69,0x15,0xb5,0xc2,0x9b,0xeb,0x0c,0xcf,0x7e,0x40,
3268
0xf6,0x36,0x5c,0x58,0x8f,0xbd,0xcc,0xbd,0x0e,0x9b,0x7a,0x95,0x7b,0xed,0xed,0x3d,
3269
0x33,0x4b,0xb0,0xee,0xb5,0x12,0xac,0x7b,0xed,0x04,0xdd,0x67,0x25,0x38,0x87,0x9f,
3270
0x43,0xa5,0x48,0x6b,0x49,0x6b,0x4b,0x53,0x75,0x4c,0x9c,0x75,0xbf,0x9d,0x68,0xc5,
3271
0x95,0x68,0xdd,0xbf,0x27,0x2a,0x3e,0x47,0xf3,0x76,0x98,0xe6,0x6a,0x6f,0x3e,0x8e,
3272
0xb2,0xe6,0xe0,0xa3,0xcd,0xbf,0xde,0xd8,0xf4,0xc6,0xa4,0x37,0x16,0xbd,0x31,0xe8,
3273
0x8d,0x3d,0x6f,0xcc,0x79,0x63,0xcd,0x1b,0x63,0xde,0xd8,0xf2,0xc6,0x94,0x37,0x96,
3274
0xbc,0x31,0xe4,0x8d,0x9d,0x62,0x21,0xe1,0x96,0x28,0x6d,0x6f,0x9c,0x0c,0x50,0x9c,
3275
0xc3,0xa4,0x03,0x8e,0x32,0x37,0x9a,0x3e,0x6f,0xfa,0xba,0xe9,0xe3,0xa6,0x6f,0x9b,
3276
0x3e,0x6d,0xfa,0xb2,0xe9,0xc3,0xa6,0xef,0x9a,0x3e,0x6b,0xfa,0xaa,0xe9,0xa3,0xa6,
3277
0x6f,0x9a,0x3e,0x69,0xfa,0xa2,0xe9,0x83,0xa6,0xef,0x99,0x3e,0x67,0xfa,0x9a,0xe9,
3278
0x63,0xa6,0x6f,0x99,0x3e,0xb5,0x15,0xad,0x35,0xdc,0xbd,0x8e,0xef,0xc3,0x75,0x5d,
3279
0x35,0xe2,0x1d,0x44,0x9c,0x7b,0x88,0x2b,0x70,0xb7,0xdb,0x17,0x66,0xe0,0xd7,0xbd,
3280
0xef,0x91,0x73,0xf3,0x6e,0xae,0xe3,0x0f,0x10,0xae,0x2e,0xdc,0xd5,0xc5,0xed,0x7b,
3281
0xa6,0xcf,0x99,0xbe,0x66,0xfa,0x98,0xe9,0x5b,0x67,0x77,0x76,0xdb,0x27,0x45,0xed,
3282
0x54,0x4b,0xea,0x3d,0x3f,0x4c,0x55,0x1b,0xc6,0x59,0xcf,0x53,0x92,0xac,0xbe,0xe2,
3283
0xb5,0x71,0x92,0xf5,0xac,0x26,0x49,0xf1,0x25,0x29,0xbe,0x24,0xc5,0x97,0xa4,0xf8,
3284
0x92,0xad,0x67,0x37,0xa6,0x5e,0x12,0xa4,0x89,0xd2,0x24,0x69,0xb2,0x34,0x45,0x5a,
3285
0x4b,0x5a,0x5b,0x9a,0x2a,0xf5,0x9e,0x27,0x78,0xf6,0x78,0xcb,0xee,0xc5,0xdd,0x4c,
3286
0xf7,0x8e,0x3d,0x74,0x5f,0xe8,0xd9,0x3b,0x5a,0xcf,0x90,0xcd,0xfd,0xec,0x43,0x44,
3287
0xf4,0x88,0xae,0x51,0x66,0xc3,0x13,0xba,0xee,0x7a,0x4a,0xd7,0x5b,0x0b,0x74,0x3d,
3288
0xb2,0x58,0xd7,0x57,0x4b,0x75,0x5d,0xb5,0x5c,0xd7,0x53,0xab,0x75,0x1d,0xb5,0x56,
3289
0xd7,0x2c,0x1b,0x60,0x23,0xbc,0x0a,0xaf,0xc1,0xeb,0xba,0x8e,0xda,0xac,0xeb,0xa5,
3290
0xad,0xba,0x2e,0xfa,0x10,0xb6,0xc3,0x0e,0xf8,0x08,0x3e,0x86,0x5d,0xb0,0x1b,0xf6,
3291
0xc0,0x67,0xb0,0x17,0x3e,0x87,0x2f,0xe0,0x4b,0x5d,0x3f,0xed,0xd3,0x75,0x93,0xb9,
3292
0x66,0xda,0x65,0xfa,0x62,0x7b,0xb7,0x0c,0xde,0xb5,0xda,0x41,0xe5,0xe3,0x21,0x1d,
3293
0x6b,0xd2,0x9c,0x25,0xf7,0x01,0xeb,0x1a,0xed,0x21,0x71,0x50,0xe1,0x1e,0x51,0xbe,
3294
0x0f,0x58,0xd7,0x99,0x8f,0xc8,0xbd,0x5a,0xf5,0x33,0x47,0xee,0xd9,0xaa,0x87,0x79,
3295
0x56,0x7a,0x33,0xe4,0x7f,0x50,0xf5,0x77,0x50,0x75,0x79,0x40,0x61,0x9f,0x90,0xdf,
3296
0x0e,0xed,0x7f,0x44,0xe5,0x9b,0xab,0xb2,0xbe,0xa8,0x78,0xe6,0xaa,0xac,0x7b,0xad,
3297
0xb8,0x66,0xc8,0xef,0x80,0xe5,0x3e,0xa0,0x3a,0xf4,0xae,0x8d,0x43,0xaf,0x95,0x37,
3298
0xea,0x78,0xe3,0xfe,0xc4,0x8a,0xcf,0xdb,0xff,0xb9,0x75,0x3d,0xec,0xf9,0x7f,0x69,
3299
0xa9,0x57,0x07,0x9f,0x29,0xcf,0x9e,0xff,0x47,0x56,0x99,0x3f,0xb7,0xfc,0xbf,0xb6,
3300
0xca,0x10,0x7a,0x6c,0xa8,0x7b,0xbd,0x55,0xcf,0x9f,0x5b,0xd7,0xe9,0x8f,0x58,0x69,
3301
0x7f,0xa9,0x74,0x5e,0x53,0x1f,0x3c,0xa8,0x7a,0x5c,0xa4,0x63,0x36,0xc8,0x7e,0xd0,
3302
0xba,0xce,0x5e,0xac,0x38,0xbc,0x78,0x17,0x5b,0xed,0xe7,0xd5,0xfd,0x12,0xd5,0x85,
3303
0xdd,0xce,0x2f,0x58,0xe1,0x3c,0xfb,0xfa,0x90,0xfa,0x59,0x6a,0xdd,0x27,0x2c,0xb1,
3304
0xda,0xfc,0x73,0xab,0x3c,0x1b,0xd4,0xdf,0x5f,0xb7,0xea,0xe2,0x0d,0xe5,0xe9,0xa5,
3305
0x90,0x3e,0x6a,0xa7,0x63,0xfb,0xbf,0x64,0xdd,0x7f,0x1c,0x54,0xdf,0xff,0xdc,0xba,
3306
0xf7,0x78,0x48,0x79,0x59,0x1f,0xe2,0x3f,0x2f,0xc4,0xbd,0xc8,0xba,0x6f,0xb1,0xc7,
3307
0x81,0xdd,0xd7,0xbc,0x7b,0x98,0x87,0xad,0x36,0xf5,0xee,0x6d,0x5e,0x54,0x39,0x1f,
3308
0xb7,0x8e,0xff,0xcc,0x1a,0x43,0xf3,0x54,0x3f,0xde,0xf8,0xf1,0xc6,0xd5,0x72,0xcb,
3309
0xbe,0x51,0x79,0xd8,0xaa,0x30,0x2f,0x59,0xfb,0xbc,0x71,0xb1,0xd5,0x2a,0xfb,0x12,
3310
0xeb,0x3e,0xca,0x2b,0xff,0x4a,0xab,0x7d,0x1f,0xb1,0xea,0x6c,0x5b,0x48,0xfd,0x6f,
3311
0xd3,0xbe,0x6d,0x56,0xfc,0xeb,0xad,0xfb,0x30,0x2f,0x9f,0x9e,0xdd,0x1b,0x3f,0x8f,
3312
0x58,0xfd,0xcd,0x73,0x7f,0x2e,0xfb,0x8b,0x6a,0x8b,0x0f,0xe5,0x37,0x4f,0xf6,0x03,
3313
0xca,0xeb,0xa7,0xb2,0x6f,0xb7,0xe2,0xf0,0xdc,0x7b,0x2d,0xb5,0xdb,0xf3,0x73,0x8d,
3314
0x21,0x6f,0xbc,0xda,0x76,0xaf,0x1f,0x85,0x8e,0xb1,0x5d,0x21,0xf3,0xcc,0x2e,0x2b,
3315
0xae,0xdd,0xd6,0xdc,0xb6,0xd7,0x6a,0xdb,0xcf,0xe5,0xfe,0x2c,0xa4,0x5f,0x78,0xc7,
3316
0x1d,0xb4,0xda,0xda,0x9b,0x63,0x77,0x48,0xbd,0xba,0x5b,0x60,0xcd,0x35,0xf6,0xf8,
3317
0x36,0xe7,0x9e,0xa5,0x83,0xdc,0xf3,0x8d,0xd1,0x04,0x69,0xa2,0x34,0x49,0x9a,0x2c,
3318
0x4d,0x91,0xd6,0x92,0xd6,0x96,0xa6,0x5a,0xf1,0xd8,0x71,0xc6,0x5b,0xf6,0x04,0xcb,
3319
0x9e,0x68,0xd9,0x93,0x2c,0x7b,0xb2,0x65,0x4f,0xb1,0xec,0xb5,0x2c,0x7b,0x6d,0xcb,
3320
0x9e,0x6a,0xe5,0x3b,0xce,0xb2,0xdb,0xe5,0x49,0xb0,0xec,0x89,0x96,0xdd,0x4b,0xb7,
3321
0xb7,0x9e,0xef,0x66,0xe9,0x79,0x6d,0x96,0x9e,0x15,0x77,0xd0,0x73,0xdc,0x2c,0x9d,
3322
0x77,0x07,0xea,0x9c,0x3b,0x28,0xe4,0x7d,0x9c,0xa7,0x09,0x96,0x3d,0x51,0xcf,0x93,
3323
0x4d,0x1c,0x43,0xb9,0x96,0x2d,0x42,0x44,0x31,0x3d,0xdd,0x73,0x9c,0x79,0xae,0x69,
3324
0xae,0x77,0xce,0xc0,0xfd,0x42,0x3f,0xf7,0x1a,0xaa,0xf0,0xe5,0xdc,0xe7,0xb7,0x71,
3325
0xaf,0xa3,0x06,0x29,0xfd,0x01,0xd2,0x65,0xfa,0x9b,0xe7,0xfe,0x72,0xf7,0x95,0xb6,
3326
0xd4,0xf3,0xec,0x56,0xd2,0x0c,0xa9,0xf7,0xbe,0xbb,0x9f,0xc2,0xda,0xee,0x41,0x7a,
3327
0xe6,0x3d,0x40,0xba,0x2c,0xec,0xb0,0xf6,0x52,0x1a,0xde,0x37,0x4c,0xde,0x7b,0xef,
3328
0x31,0x72,0x7b,0xf6,0x56,0x96,0x3d,0xc3,0xb2,0xb7,0xb7,0xec,0xcb,0xc2,0x0e,0x3f,
3329
0xdb,0xee,0xa7,0x7a,0xe9,0x67,0x3d,0xf3,0xee,0x69,0x3d,0xf7,0xee,0xaf,0xf0,0xfd,
3330
0x9d,0xc3,0x74,0x97,0xf6,0x75,0x8e,0xf4,0x4f,0xb0,0xf6,0x25,0x58,0xda,0x37,0xc4,
3331
0xcf,0x6b,0x83,0xee,0x96,0xdd,0xd3,0xbe,0x21,0x7e,0x25,0x2b,0xba,0xcf,0xda,0x6d,
3332
0x7b,0x82,0xd5,0x27,0xfa,0x5a,0xf6,0x56,0x96,0x3d,0xc3,0xb2,0x0f,0xb1,0xfa,0x8f,
3333
0x6d,0xf7,0xe2,0x3b,0x9a,0x5f,0x82,0xf5,0x37,0x0c,0x03,0xa4,0xcb,0xc2,0x0e,0xe7,
3334
0x65,0xa8,0xf6,0x77,0xd4,0xfe,0x8e,0xda,0xdf,0x51,0xfb,0x3b,0x2a,0x6f,0x1d,0x95,
3335
0x2f,0xaf,0x6f,0x76,0x52,0xf8,0x4e,0x0a,0xdf,0x49,0xe1,0x3b,0x29,0x7c,0x27,0x85,
3336
0xf7,0xdc,0x73,0xf4,0xad,0xcd,0x1c,0xfd,0x3d,0x7d,0xac,0xc2,0xc7,0xaa,0x3f,0x0d,
3337
0x56,0x3d,0x76,0xb7,0xfa,0x7d,0x63,0x95,0xc3,0xeb,0x27,0x8d,0x35,0x3e,0x62,0xb5,
3338
0xdf,0xeb,0x8f,0xa3,0xf5,0xce,0x23,0x4b,0x7d,0x23,0x53,0xef,0x3f,0x06,0xa8,0xff,
3339
0x7a,0xb4,0x52,0x5e,0x86,0x39,0x47,0xf6,0x9b,0x01,0xd2,0x81,0x4a,0xa7,0x9f,0xde,
3340
0x81,0xf4,0xd7,0xd8,0xec,0x6f,0xbd,0x23,0xef,0xaf,0x70,0xfd,0x94,0x4e,0x33,0xd5,
3341
0x87,0x5d,0x9e,0x4c,0xe1,0xb5,0xa3,0xf7,0xb7,0x22,0x43,0xf4,0x5e,0x67,0x84,0xea,
3342
0xa5,0x9b,0xea,0xd3,0x94,0xd1,0x1b,0x77,0x9e,0x3d,0x5e,0xf7,0xe3,0x09,0xd2,0x44,
3343
0x69,0x92,0x34,0x59,0x9a,0x22,0xad,0x25,0xad,0x2d,0x4d,0x95,0x7a,0x73,0xa5,0x67,
3344
0x8f,0xb7,0xec,0x09,0x96,0x3d,0xd1,0xb2,0x27,0x59,0xf6,0x64,0xcb,0x9e,0x62,0xd9,
3345
0x6b,0x59,0xf6,0xda,0x96,0x3d,0xd5,0xca,0x77,0x9c,0x65,0xb7,0xcb,0x93,0x60,0xd9,
3346
0x13,0x2d,0x7b,0x92,0x65,0x4f,0xb6,0xec,0x29,0x96,0xbd,0x96,0x65,0xaf,0x6d,0xd9,
3347
0x53,0xad,0x7a,0x8a,0xb3,0xec,0x5e,0xba,0xbd,0xac,0xf9,0xa9,0x45,0x38,0xf7,0x34,
3348
0x30,0xf0,0x71,0xb7,0x3d,0x1a,0x6b,0x9e,0x32,0xaf,0x96,0x2a,0xfb,0xf0,0x83,0x2a,
3349
0xec,0xab,0x35,0x97,0xfe,0xe2,0xa7,0xfd,0xd0,0x5b,0xd0,0x66,0xdc,0x13,0x7e,0xdb,
3350
0xd3,0x7d,0x97,0xb0,0x1e,0xfb,0x9b,0x74,0x9c,0x04,0xee,0x29,0x3e,0x69,0xe7,0x3e,
3351
0x87,0x37,0xb4,0xed,0xec,0xde,0xbb,0x4e,0x66,0x52,0x6e,0x86,0xfd,0x3f,0x24,0xda,
3352
0x87,0x06,0x9f,0x74,0xad,0xe3,0x34,0xbc,0xde,0x71,0x9e,0x9f,0xec,0x38,0xdf,0x4f,
3353
0x71,0x9c,0xa9,0xdc,0xa7,0xfa,0xaf,0x74,0x9c,0xb2,0x34,0xf6,0x7b,0x74,0xa0,0x0f,
3354
0xe9,0x20,0xf5,0xaf,0x73,0x9c,0x2b,0x39,0x76,0xff,0x0c,0xc7,0x99,0x40,0xbc,0xc3,
3355
0x89,0x37,0x9c,0x0e,0x5b,0x96,0x8e,0x13,0xc3,0xb1,0xe5,0x1e,0xa0,0x3f,0x71,0xcf,
3356
0xfa,0x39,0x1d,0xf0,0xb5,0x49,0x8c,0x81,0x1b,0x1c,0xe7,0x15,0x3a,0xd1,0xd6,0xf1,
3357
0xdc,0x2b,0x13,0xe7,0x06,0xce,0x01,0xa5,0x29,0xe8,0x95,0xc4,0x79,0x90,0x63,0x5e,
3358
0x27,0x8d,0xeb,0x99,0xef,0x97,0x50,0xb0,0x0f,0xe9,0x84,0x2f,0x31,0x68,0xb6,0x90,
3359
0x66,0x11,0xf6,0x7d,0x3a,0xc2,0x7d,0x37,0x13,0x41,0xbc,0x97,0xc0,0xd7,0xb7,0x50,
3360
0x96,0xbb,0xa8,0x93,0x7b,0x1d,0xe7,0xc7,0xfb,0x39,0x87,0x30,0x00,0xae,0x65,0x60,
3361
0xcd,0xbc,0x9a,0x34,0x26,0x92,0x8f,0xdb,0xdd,0xf7,0x14,0xef,0xdc,0xc8,0x75,0xca,
3362
0x45,0xb8,0x39,0x97,0x74,0x1d,0xeb,0x38,0xd7,0x10,0x47,0x37,0xe2,0xdb,0x40,0xf8,
3363
0x35,0xd4,0xc9,0x7f,0xef,0x24,0x3f,0xec,0xef,0x76,0x89,0xe3,0x14,0x27,0xad,0xf7,
3364
0xc9,0x4b,0x61,0xf2,0x5b,0x93,0x78,0x6a,0x5d,0xc3,0x38,0x64,0xff,0x66,0xf2,0x72,
3365
0x13,0xc7,0xe5,0x90,0xaf,0x57,0xe1,0x6c,0x26,0xf3,0x15,0xec,0xdf,0x4f,0x3a,0xc3,
3366
0xd9,0x3f,0xee,0x26,0xae,0x81,0xba,0xb9,0xf5,0xf3,0x0b,0xe9,0xa5,0x52,0x17,0x9f,
3367
0x72,0x6f,0x5e,0xac,0x2b,0xf5,0x4a,0x3d,0x0d,0xe2,0x5e,0xbf,0x34,0x75,0xf3,0x13,
3368
0x69,0xae,0xa4,0x7c,0x73,0xc8,0x4b,0x21,0xc2,0xbc,0x4a,0xe3,0x8e,0xa2,0xad,0x2b,
3369
0x12,0xd7,0x8b,0xec,0xbf,0x8c,0x7c,0xf8,0x46,0x72,0x8e,0xa4,0x5e,0x9f,0x20,0x9e,
3370
0xe7,0xfb,0xba,0xef,0x7f,0xa6,0x10,0xee,0x17,0xe2,0xff,0x64,0x02,0xe5,0x63,0xb2,
3371
0xe9,0x41,0x7c,0x4f,0x73,0x7c,0x1f,0xf2,0xf2,0x0a,0x8c,0x67,0x32,0xf9,0x94,0xb2,
3372
0x0d,0x64,0xff,0x66,0x8e,0x7b,0x83,0x36,0xf9,0x8e,0x3c,0xa7,0xb7,0x77,0x9f,0x31,
3373
0x7c,0x41,0x3d,0xbf,0x4c,0x3a,0xbf,0x50,0xae,0x6a,0xd4,0xd1,0x53,0xd3,0xa9,0xf3,
3374
0x7b,0x1c,0xe7,0x2e,0xea,0xe7,0xf5,0x07,0xdc,0x77,0x93,0x6b,0xe9,0x27,0x23,0xcd,
3375
0xfb,0x3b,0xd2,0x1b,0x46,0xf8,0x6c,0xbd,0xb0,0xbd,0x87,0x36,0x88,0xe6,0xb8,0xe6,
3376
0x4c,0x78,0x37,0x30,0x11,0x6d,0xe0,0xf8,0x6f,0xc9,0xef,0x40,0xea,0xa3,0x32,0x61,
3377
0xbf,0x22,0xaf,0xd1,0xb4,0x5b,0x0b,0xea,0xbb,0x34,0xf1,0x3c,0x0c,0xcb,0x49,0x77,
3378
0x3d,0x7d,0x64,0xcd,0x14,0xb7,0x1c,0xaf,0x10,0xdf,0x77,0x94,0xf9,0x2a,0xf2,0xfe,
3379
0x34,0x69,0x34,0x20,0xaf,0xc3,0x87,0xba,0xf7,0xb7,0x3f,0x74,0x74,0xeb,0xea,0x79,
3380
0xfa,0xc9,0xd9,0xd4,0xd7,0x42,0xfc,0xfb,0x90,0xce,0x3d,0xf4,0xbf,0xa6,0xa4,0x91,
3381
0x74,0x1b,0x7d,0x92,0x3a,0x6e,0x46,0x5b,0x9f,0x79,0x37,0xed,0x40,0xfd,0x3d,0x6d,
3382
0x9e,0xa3,0x50,0xc6,0xe7,0xf0,0xff,0x88,0x63,0xae,0x27,0x9e,0xf7,0x99,0xb8,0xbe,
3383
0x22,0x9e,0x86,0xb4,0xe3,0x8c,0x1e,0x6e,0x5b,0xbc,0x4e,0x9e,0xd3,0xe9,0x37,0x07,
3384
0xc9,0xe3,0xd8,0x6c,0xf7,0xfd,0xd3,0x14,0xca,0x19,0xcb,0x71,0x37,0x90,0xcf,0xab,
3385
0xe8,0x7b,0x07,0xa0,0x11,0x6d,0x7e,0x1f,0x63,0x23,0x8a,0x74,0x3b,0x53,0xb7,0x7d,
3386
0x69,0xa7,0x22,0x94,0xf1,0xb2,0xbb,0xdd,0x67,0x3f,0xb1,0xd4,0xc3,0x28,0x8e,0xa9,
3387
0x4e,0x1a,0x65,0xc8,0xe7,0x5e,0xc2,0x57,0xa3,0xec,0x37,0x51,0xa6,0x26,0xd4,0x53,
3388
0xe9,0xde,0x6e,0x3b,0x5f,0x4f,0x98,0xf3,0x89,0xb7,0x30,0xe5,0xef,0x61,0xfa,0x13,
3389
0x69,0xb5,0x26,0xfe,0xd9,0xec,0xff,0x84,0x36,0x8c,0x20,0xfe,0x8f,0x89,0x7f,0x34,
3390
0x65,0x7b,0x83,0xba,0xf9,0x68,0x8a,0xfb,0x2e,0xef,0x63,0x8e,0x6b,0x48,0xfb,0x3f,
3391
0x4f,0x1e,0xce,0xe1,0xd8,0x4d,0xe4,0xfb,0x6e,0xc2,0xfe,0xc8,0x98,0x79,0x98,0x7d,
3392
0x9d,0xee,0x73,0x9c,0x07,0x69,0xa7,0xbb,0x88,0x6b,0x23,0x69,0xef,0x19,0xef,0xbe,
3393
0xc7,0xac,0x70,0x95,0xe3,0xdc,0x46,0x5d,0xae,0xa2,0x3f,0xcf,0xa0,0xbe,0x2f,0xa2,
3394
0x1f,0xae,0x32,0xef,0xaa,0xe9,0x97,0x75,0xc8,0x47,0x24,0x3c,0x46,0xdd,0x6f,0x21,
3395
0xff,0xef,0x10,0x6e,0x12,0xf5,0x53,0x8e,0xe3,0x9f,0x21,0x5f,0x75,0xa7,0xba,0xef,
3396
0x27,0x5b,0xdd,0xe9,0xbe,0x9b,0xdc,0x42,0xb8,0x34,0xca,0xba,0x8a,0x79,0xe0,0x62,
3397
0xfa,0xe1,0x30,0xc2,0x7c,0x88,0xbb,0x1a,0xe5,0xda,0x40,0x1d,0xd6,0xa3,0xce,0x2f,
3398
0x83,0x1e,0x30,0x15,0x3a,0xd2,0x1e,0x2b,0xc6,0xba,0xef,0x4c,0x8b,0x31,0x1e,0xbf,
3399
0xa7,0x9d,0x6b,0x53,0xc7,0x3f,0xc3,0xd7,0xd4,0xdb,0x41,0xa8,0xca,0xbc,0xf0,0x0c,
3400
0x63,0xf3,0x43,0xfc,0x96,0x90,0xce,0xd3,0xb4,0xdd,0xa7,0xd4,0x61,0x2b,0xd3,0x6f,
3401
0xc9,0xdb,0x2e,0x68,0x4b,0xb9,0xef,0x27,0xcd,0x08,0xfa,0x41,0x6f,0x48,0x23,0xed,
3402
0xd9,0x70,0x85,0xde,0x65,0xdf,0x41,0xfb,0xf6,0xa6,0x8e,0x6f,0x85,0x6f,0xa0,0x0d,
3403
0x6d,0xfb,0x31,0x4c,0x23,0x7f,0x93,0xa8,0xd7,0x91,0x94,0xe7,0x2c,0xea,0xad,0x22,
3404
0x7d,0x74,0x00,0xf5,0x56,0x9d,0xba,0xa8,0x48,0xdd,0x4d,0x1b,0xe5,0x5e,0x37,0x36,
3405
0x87,0x66,0x90,0x69,0xf2,0x3c,0xda,0x7d,0x06,0x77,0x0b,0xdc,0x0a,0x69,0xd4,0xe1,
3406
0x78,0x58,0x75,0x95,0xdb,0xa7,0xa3,0x18,0xef,0x8d,0x60,0x08,0x65,0x0a,0xd0,0xf7,
3407
0xbe,0xa4,0x9e,0x47,0x4f,0x70,0xe9,0x44,0x1f,0x2a,0x42,0x3d,0xdd,0x09,0x3e,0xea,
3408
0x39,0x15,0xb6,0x30,0x7f,0xe4,0x63,0x1e,0x7a,0x76,0xaa,0x5b,0xf6,0x9d,0x94,0xf1,
3409
0x57,0xea,0xa5,0x2e,0x65,0x1f,0x4e,0xbe,0xbf,0x4a,0xf7,0x3b,0x67,0x72,0x6c,0x65,
3410
0xda,0x64,0x31,0x65,0xee,0x0d,0xe3,0xa8,0x83,0xa0,0x51,0x58,0x47,0xf9,0x7f,0xbc,
3411
0xd0,0x2d,0x7f,0x07,0x98,0x01,0x1f,0xab,0xfe,0x17,0x41,0x13,0xc6,0x6e,0x7b,0xe8,
3412
0x76,0x31,0x75,0x49,0xdb,0x6d,0xa6,0x8d,0xde,0x83,0x3e,0xf4,0xbb,0xa7,0x60,0x2b,
3413
0x69,0xb4,0xa6,0x4e,0xf2,0xa9,0x7e,0xba,0xaa,0x8e,0x92,0x68,0xef,0x97,0x18,0x6b,
3414
0x67,0x33,0x76,0x2f,0x84,0x8e,0x3d,0xdc,0xf6,0x34,0x73,0x6d,0x59,0xe8,0xd8,0xcb,
3415
0x7d,0x47,0x6f,0xe6,0x17,0xd3,0xf7,0xb7,0x51,0x7f,0x1b,0x55,0x87,0xe5,0x06,0xb9,
3416
0xf5,0xf8,0x38,0xf3,0x50,0x32,0x75,0x39,0x6f,0x88,0xdb,0x07,0x06,0x53,0xa7,0x11,
3417
0xf4,0xdd,0xba,0x70,0x0e,0xfd,0xa1,0xfc,0x08,0xb7,0x5f,0x6c,0x83,0x6f,0xa1,0x05,
3418
0xe1,0xd3,0xe0,0x55,0xea,0x7d,0x81,0xea,0xf4,0x2a,0xfa,0x47,0x97,0xab,0xdd,0xba,
3419
0x6d,0xa0,0x3a,0xbd,0x90,0xbe,0xf9,0x35,0x8c,0xe6,0xbc,0xd2,0x88,0xba,0xbc,0x5e,
3420
0x75,0xba,0xf2,0x46,0xb7,0x0f,0x6d,0xbc,0xd1,0xad,0x5f,0x33,0x8f,0x7e,0x79,0xa3,
3421
0x5b,0xcf,0x37,0xde,0xe4,0xd6,0x73,0x6d,0xea,0x79,0x08,0xf5,0x3c,0x83,0x31,0x33,
3422
0x82,0x79,0x61,0xec,0x9d,0x6e,0x9d,0x9b,0xbe,0xb8,0xed,0x2e,0xb7,0xee,0x0b,0xdc,
3423
0xed,0xd6,0x7f,0xb1,0x7b,0xdd,0xf3,0x5b,0x8b,0xaa,0x7e,0xa7,0x09,0xbc,0x9d,0xe8,
3424
0x77,0xee,0xaf,0xcb,0x1c,0x92,0x46,0x9c,0xd0,0xfc,0x42,0xbf,0xb3,0xe9,0x12,0xbf,
3425
0xb3,0xe5,0x1a,0xbf,0xd3,0x98,0x70,0xb7,0x3e,0xe8,0x5e,0x7f,0x7b,0xf4,0x91,0xf6,
3426
0x3b,0x8a,0x9f,0xe7,0xef,0xfd,0x2d,0x8a,0xa7,0xc3,0x02,0xe4,0x2b,0xe0,0x6a,0x0f,
3427
0xa9,0x59,0x6f,0xe4,0x1a,0xcb,0xbf,0x3f,0xbc,0x07,0xcf,0xc0,0x37,0xb0,0x04,0x3e,
3428
0x0e,0xb8,0x7f,0xb7,0x6a,0xfe,0x5e,0xf5,0x2d,0xd8,0x06,0x39,0xf0,0x01,0xec,0x81,
3429
0xbd,0x01,0xf7,0x6f,0x82,0x3f,0x43,0x57,0x07,0x5c,0x5d,0x23,0x5d,0x66,0xf9,0x2d,
3430
0x93,0xff,0x26,0xc5,0x6b,0xf4,0x39,0xe9,0x32,0xfd,0x5d,0xec,0x32,0xfd,0x6d,0xec,
3431
0x32,0xa5,0xb7,0x4c,0x69,0x1a,0x7d,0x5b,0xfa,0x8e,0x74,0xab,0xf4,0x3d,0xe9,0xfb,
3432
0xd2,0x6d,0xd2,0x1c,0xe9,0x87,0xd2,0x1d,0xd2,0x8f,0xa4,0x3b,0xa5,0xbb,0xa4,0xbb,
3433
0xa5,0x9f,0x4a,0xf7,0x48,0xbd,0xbc,0xef,0xb5,0xf2,0xb1,0x54,0xf9,0x5d,0xa9,0xf4,
3434
0x56,0x2a,0x9e,0x95,0x2a,0x8f,0x49,0x7b,0x70,0x84,0xcb,0x55,0x21,0x5c,0x13,0xc2,
3435
0xb8,0x10,0xc6,0x84,0x70,0x6d,0x08,0xa3,0x43,0x78,0x24,0x84,0xc7,0x42,0xb8,0x2e,
3436
0x84,0x89,0x21,0x5c,0x1f,0xc2,0xe4,0x10,0x6e,0x11,0x37,0x8b,0x5b,0xc5,0x14,0x71,
3437
0xb7,0x98,0x26,0xe6,0x84,0x30,0x2f,0x84,0x45,0x21,0x2c,0x08,0xe1,0x79,0xf1,0x42,
3438
0x08,0xde,0x5a,0x36,0xf6,0x9a,0x36,0x36,0x2b,0x42,0xd8,0x6c,0x61,0xaf,0x7d,0xf3,
3439
0x54,0x08,0xeb,0xc4,0x5a,0xb1,0x5e,0x78,0x6b,0xe9,0x6c,0x14,0x2f,0x8b,0x57,0xc4,
3440
0xa6,0x10,0x9a,0x0b,0x7b,0x6d,0x9e,0xa3,0xd9,0xdf,0x3e,0x86,0xbd,0xd9,0x31,0xec,
3441
0xeb,0x8e,0x61,0x5f,0x7b,0x0c,0xfb,0xfa,0x63,0xd8,0x37,0x1d,0x87,0xbd,0xf9,0x6f,
3442
0xd8,0x5f,0x0d,0xc1,0xdb,0x57,0xc3,0xb2,0xc7,0x58,0xf6,0xe0,0x31,0xe2,0x32,0x5a,
3443
0x55,0xc7,0x55,0xd5,0x31,0x46,0x63,0xa5,0x41,0x69,0x73,0xa9,0x09,0x5f,0x4d,0xe1,
3444
0xab,0x29,0x7c,0x35,0x85,0xaf,0xa6,0xf0,0xd5,0x14,0xbe,0x9a,0xc2,0x57,0x57,0xf8,
3445
0xea,0xda,0x5f,0x5d,0xfb,0xab,0x6b,0x7f,0x0d,0xc5,0x53,0x43,0xfb,0x63,0x2c,0xbf,
3446
0xa0,0xe2,0xae,0x21,0x8d,0x91,0x1a,0xff,0x44,0xf9,0x27,0xca,0x3f,0x51,0xfb,0x12,
3447
0xb5,0x3f,0x59,0xfe,0xc9,0x72,0xa7,0x28,0x7c,0x8a,0xfc,0x53,0x14,0x3e,0x45,0xfb,
3448
0x6b,0xc9,0xbf,0x96,0xdc,0xb5,0xa5,0xa9,0x3a,0x2e,0x55,0xee,0x3a,0x72,0xd7,0x91,
3449
0xbb,0x91,0xdc,0x8d,0x74,0x7c,0x23,0xc5,0xdb,0xc8,0xda,0xdf,0x5c,0x6a,0xca,0x9b,
3450
0xae,0x70,0xe9,0xda,0x9f,0xae,0xfd,0xe9,0xda,0xdf,0x58,0x7d,0xb4,0xb1,0xe2,0x6d,
3451
0xac,0xf0,0x8d,0x15,0xaf,0xd1,0x26,0xd2,0xa0,0xb4,0xb9,0xb4,0x85,0xf6,0xd5,0x90,
3452
0xc6,0x48,0x63,0xa5,0x41,0x69,0x73,0x69,0x0b,0xf9,0xd9,0x75,0x1f,0xb4,0xea,0xd8,
3453
0xa3,0xb9,0xd5,0x87,0x9a,0x2a,0x7c,0x53,0x85,0x6f,0xaa,0xf0,0x4d,0x15,0xa6,0xa9,
3454
0xc2,0x37,0x55,0xf8,0x0c,0x85,0xcf,0xd0,0xfe,0x0c,0xed,0xcf,0xd0,0xfe,0x16,0x56,
3455
0xbf,0xf5,0xfa,0x6c,0xac,0x95,0xb7,0x16,0x56,0x9f,0x35,0xc4,0xc1,0x20,0x88,0x97,
3456
0x36,0x97,0x9a,0xbf,0x9d,0xba,0x00,0x6d,0x2b,0x7b,0x2b,0xcb,0xde,0xda,0xb2,0xb7,
3457
0xb1,0xec,0x99,0x96,0xbd,0xad,0xe2,0xf1,0xc6,0x46,0xbc,0x65,0x4f,0x38,0xc6,0x58,
3458
0x6a,0xfa,0x3b,0xe3,0x2a,0x5e,0x9a,0x10,0x32,0x9e,0x9a,0x1e,0x63,0x5c,0xc5,0x4b,
3459
0x13,0x42,0xc6,0x53,0xd3,0x63,0x8c,0xab,0x78,0x69,0x42,0xc8,0xf8,0x6a,0x7a,0x94,
3460
0x71,0x76,0xb4,0x7e,0x78,0xac,0x7e,0xf7,0x7b,0xfd,0xeb,0x58,0xfd,0xa8,0x8a,0xd5,
3461
0x67,0x9a,0x2a,0x7f,0x4d,0x95,0x3f,0xbb,0x7f,0x34,0x3d,0x4a,0x3f,0x69,0x6e,0xd5,
3462
0xbf,0x57,0xf7,0x09,0x21,0xfd,0xa0,0xe9,0x51,0xfa,0xc3,0xef,0xcd,0x7d,0xb1,0xc7,
3463
0x68,0xbb,0x8c,0xe3,0x9c,0xfb,0x32,0x8e,0x73,0xce,0xcb,0xb0,0xda,0xe0,0x8f,0xcc,
3464
0x69,0x7f,0x74,0x2e,0x8b,0xfd,0x7f,0xcc,0x69,0x27,0x6a,0x2e,0x0b,0x9d,0xbb,0x8e,
3465
0x77,0x8e,0x3a,0x9e,0x39,0x29,0xe3,0x38,0xe6,0xa2,0xe3,0x99,0x7b,0x32,0x8e,0x31,
3466
0xe7,0x0c,0x3a,0xce,0xb9,0x26,0xe3,0x77,0xfa,0x4b,0x68,0xbf,0x38,0x5a,0xfb,0x57,
3467
0x97,0x3b,0xd1,0x6a,0x5f,0xe3,0x4e,0x92,0x3b,0x49,0xee,0xa3,0xd5,0x53,0xf0,0x28,
3468
0xe5,0x09,0xcd,0x5f,0x5a,0xc4,0xe1,0x39,0xcd,0xd8,0xdb,0x58,0x76,0x6f,0x4e,0xab,
3469
0xa5,0x71,0x52,0x4b,0xc7,0xa5,0xca,0x9d,0x2a,0x77,0x1d,0xb9,0xeb,0xc8,0x9d,0x28,
3470
0x77,0xa2,0xdc,0x49,0x72,0x27,0x59,0xf5,0xd5,0xdc,0xaa,0xb7,0x1a,0x72,0xd7,0xb0,
3471
0xea,0xb1,0xb9,0x55,0x9f,0xc9,0x72,0x27,0xcb,0x9d,0x22,0x77,0x8a,0x15,0x7f,0x0d,
3472
0x69,0x8c,0x34,0x36,0xa4,0x8e,0xe2,0x95,0x9f,0x78,0xc5,0x13,0xaf,0xe3,0xe3,0x4f,
3473
0x83,0xf2,0xfd,0xde,0xf1,0x76,0x9f,0xca,0xb0,0xae,0x5b,0x8e,0x35,0x97,0x1c,0x2b,
3474
0xbe,0xd0,0xeb,0x1d,0x33,0x87,0xb7,0xb4,0xb4,0x9a,0x35,0x26,0xab,0x59,0x73,0xd9,
3475
0xd1,0xec,0x41,0x6b,0x6e,0x0c,0x5a,0xe3,0xa3,0x86,0x65,0x8f,0xb1,0xec,0xb1,0x47,
3476
0x99,0x23,0x3d,0x7b,0x8c,0xd5,0xe7,0x63,0xac,0xeb,0x90,0x44,0x2b,0x6c,0xa2,0x35,
3477
0xaf,0x26,0x5a,0x6d,0x96,0x68,0xc5,0x73,0x34,0x7b,0x0d,0xcb,0x1e,0x0c,0xb1,0x27,
3478
0x5b,0xe9,0x87,0xda,0x83,0x56,0xdb,0xc5,0x1c,0xc3,0x5e,0xc3,0x6a,0xff,0x60,0x48,
3479
0x9b,0xd9,0xf6,0x60,0x88,0x3d,0xc5,0xea,0x83,0x29,0x56,0x1d,0xda,0xf6,0x5a,0x56,
3480
0x59,0x8e,0x66,0xb7,0xc3,0xb4,0xb0,0xe6,0xfb,0xa0,0x35,0xe7,0x1f,0xcb,0xde,0xdc,
3481
0x3a,0x0f,0x04,0x2d,0x7b,0x0b,0xcb,0xde,0xdc,0x3a,0x27,0x04,0x43,0xec,0xe9,0x56,
3482
0x7e,0xd2,0xad,0x78,0x9a,0x58,0xf5,0xd3,0xc4,0x1a,0x5f,0x4d,0xac,0xf2,0x7a,0xe7,
3483
0x87,0x1a,0x47,0xb1,0xc7,0x5a,0xc7,0xc6,0x86,0xcc,0x93,0x31,0x21,0xf6,0xa3,0xf5,
3484
0xa3,0xa0,0x65,0x6f,0x11,0x72,0x7e,0xb6,0xcf,0x37,0xa1,0xfd,0xd1,0x3e,0xef,0x78,
3485
0xe7,0x6a,0xfb,0x1c,0x95,0x11,0x72,0x5e,0x8a,0x09,0xb1,0x37,0xb7,0xce,0x57,0xc1,
3486
0x63,0xd8,0x9b,0x5b,0x73,0x7d,0x0b,0xcb,0xde,0xdc,0xca,0x6b,0x30,0xc4,0x5e,0xd5,
3487
0x9a,0x83,0xaa,0x59,0xfd,0xad,0x9a,0x15,0x67,0xb5,0x90,0x30,0xb1,0x96,0x7f,0xd0,
3488
0xf2,0x0f,0x5a,0x73,0x5c,0x30,0xe4,0x7e,0xcc,0xf6,0x6f,0x6e,0xcd,0x23,0xcd,0xad,
3489
0x71,0xd1,0xc2,0xea,0xff,0x2d,0xac,0x3e,0x6c,0xdf,0x87,0xd8,0xd7,0x8c,0x2d,0x42,
3490
0xce,0xbd,0xf6,0xf9,0xb8,0xc5,0x51,0xca,0xda,0xc2,0xea,0x4b,0x2d,0xac,0xba,0x6d,
3491
0x11,0xd2,0xdf,0xec,0x3e,0x96,0x6a,0x85,0x6f,0x7c,0x94,0xfb,0x16,0xfb,0xba,0xc2,
3492
0xce,0x67,0xd0,0x0a,0x1f,0x0c,0xf1,0x6f,0x1a,0x72,0x4d,0x17,0x63,0x95,0xa3,0x46,
3493
0x48,0xbf,0x6a,0x61,0x5d,0x2f,0xb5,0xb0,0xae,0x2d,0x5b,0x84,0xc4,0x6f,0x8f,0xcd,
3494
0xe4,0x90,0xb9,0x28,0x36,0x24,0xcf,0xde,0xf9,0xa6,0x89,0x9e,0x9d,0xa4,0x5b,0xf6,
3495
0x2a,0xb2,0x7b,0xd7,0x50,0xde,0x35,0xbc,0x77,0xff,0x61,0x8f,0x83,0x9a,0x56,0x3c,
3496
0x5e,0x3d,0x79,0xe7,0xa0,0x66,0x96,0x7f,0x13,0xeb,0x5a,0xa3,0x99,0xf6,0x37,0xb1,
3497
0xf2,0xda,0xc4,0xea,0x07,0x9e,0x3d,0xf7,0x37,0x56,0x42,0xf2,0x62,0xfc,0x42,0xe3,
3498
0x33,0x7e,0xa1,0x71,0x7a,0x63,0xdd,0xec,0xf3,0xec,0x55,0xac,0x78,0xe2,0xf5,0x9c,
3499
0xc3,0xf3,0xab,0x61,0xfe,0x6e,0x3a,0xce,0x71,0xfc,0x71,0xee,0xf7,0x7a,0x75,0xad,
3500
0x75,0x18,0x4a,0xe1,0x57,0x3a,0xee,0xe8,0xeb,0x3e,0x94,0x20,0x81,0xe2,0x70,0xb9,
3501
0xe3,0xe2,0xad,0x99,0x70,0x15,0x5c,0x6d,0xf6,0x73,0x5c,0x49,0x28,0x02,0x45,0x21,
3502
0x3f,0x14,0x88,0x3b,0xfc,0x7d,0x72,0x41,0x28,0x04,0x67,0x40,0x61,0xf3,0x1d,0x91,
3503
0xf9,0x3b,0x70,0x6b,0x6d,0x88,0x63,0xa9,0x97,0x9e,0xc1,0xcb,0x7b,0xac,0xf2,0x5d,
3504
0xc7,0x5a,0x4b,0xc2,0xe4,0xef,0x58,0x79,0x8a,0x36,0xef,0x70,0xcd,0xdf,0xaf,0x6b,
3505
0xdd,0x87,0x18,0xc7,0xfd,0x0e,0xbc,0x81,0xbe,0x4d,0xbc,0xc4,0xac,0x13,0x69,0xd6,
3506
0x8a,0x85,0x34,0xe5,0xa9,0xa5,0xae,0x09,0x5b,0x5a,0xf7,0xc7,0xde,0xbd,0xb1,0x77,
3507
0x5f,0xec,0x5d,0x4b,0x7a,0xf7,0xc6,0xde,0xf5,0xa4,0x77,0x7f,0xec,0x5d,0x53,0x7a,
3508
0xf7,0xc8,0x69,0xd6,0x3d,0xf3,0x85,0x72,0x1b,0x3d,0x37,0xe2,0xc8,0xb5,0xb2,0xed,
3509
0x35,0xb3,0x43,0xd7,0xce,0x0e,0x5d,0x43,0x3b,0x74,0x2d,0xed,0x63,0x69,0x15,0x51,
3510
0x35,0x84,0xf3,0x45,0xb5,0x10,0xaa,0x87,0x50,0x23,0x84,0x98,0x10,0x62,0x43,0xa8,
3511
0x29,0xe2,0x44,0xbc,0x48,0x10,0x89,0x21,0x24,0x85,0x90,0x1c,0x42,0x4a,0x08,0xb5,
3512
0x42,0xa8,0x1d,0x42,0x6a,0x08,0x75,0x42,0x68,0x14,0x42,0x7a,0x08,0x8d,0x43,0x68,
3513
0x12,0x42,0x30,0x84,0xa6,0x21,0x64,0x84,0xd0,0x4c,0x34,0x3f,0xca,0x3d,0x78,0x0b,
3514
0x6b,0xdc,0xb6,0x3b,0x86,0xbd,0xfd,0x31,0xec,0x1d,0x8e,0x61,0xf7,0xd4,0x8c,0x8d,
3515
0x8a,0x8e,0x3b,0x06,0xbc,0x3e,0x6e,0xc6,0x42,0x15,0x6b,0x0c,0x7b,0xe3,0xa2,0x86,
3516
0xc6,0x46,0xac,0xd6,0x23,0x39,0xde,0xb5,0x54,0xbc,0x79,0xa4,0x9e,0xc6,0x53,0x03,
3517
0x8d,0xcb,0xb4,0x93,0xf8,0xed,0x73,0x17,0x8d,0x63,0x33,0xa7,0x5c,0xa6,0xf9,0xa2,
3518
0xeb,0x49,0xfc,0x26,0xda,0xcc,0x39,0x63,0x35,0xef,0x5c,0x03,0x93,0xa8,0xd8,0xeb,
3519
0xcf,0x77,0xe7,0x59,0x6f,0xee,0x33,0x73,0xd7,0x4f,0xfa,0xbb,0xf3,0x59,0xfa,0x9b,
3520
0xd9,0x47,0xf5,0xf7,0xb1,0xe6,0xef,0xc2,0x77,0xea,0xef,0xac,0x3f,0xd5,0xdf,0x49,
3521
0x1e,0x8c,0xfb,0xe7,0xfd,0x6d,0xfd,0x01,0xfd,0xbd,0xa7,0xf9,0x3b,0xd1,0xae,0x45,
3522
0xff,0x5d,0xdf,0x1f,0x3e,0x44,0x71,0x1e,0x86,0x27,0xad,0xdf,0x4c,0x7b,0x0c,0x7d,
3523
0xd4,0xfc,0x0d,0x1b,0x1e,0xfe,0x4a,0xee,0xba,0x28,0xd3,0xce,0x75,0xd7,0x45,0xb9,
3524
0x1d,0x66,0xe2,0xb7,0xb1,0x92,0x79,0x1f,0xe8,0xcb,0x5d,0x3b,0xf7,0x7d,0xe9,0x26,
3525
0xbf,0xe3,0xbc,0xe9,0x77,0x7f,0xeb,0x65,0x06,0xda,0x0e,0x1e,0x36,0x6b,0xa7,0xcf,
3526
0x25,0x3e,0xf4,0x11,0xe8,0x08,0x9d,0xcc,0xda,0xe6,0xe7,0xd0,0xd7,0xd1,0xcb,0x60,
3527
0x0e,0x5c,0x01,0xdd,0xa0,0x2b,0xdc,0xeb,0x77,0xd7,0x04,0xba,0xcf,0xac,0x01,0x0f,
3528
0xd7,0xc1,0x13,0x66,0xbd,0x74,0xf3,0xfb,0x22,0x10,0xbe,0xdd,0xe7,0xdc,0xfa,0x38,
3529
0x65,0xc3,0x1e,0x30,0x76,0x34,0x02,0x35,0xbf,0x29,0x33,0xc2,0xfc,0x7e,0x89,0xdf,
3530
0xed,0xe3,0x63,0xd0,0x7c,0xf8,0x5f,0x8d,0x5e,0x03,0xe3,0x60,0x36,0x3c,0x66,0xe2,
3531
0x25,0x4f,0x8f,0xa3,0x53,0x4c,0x58,0x26,0x89,0xa9,0xe8,0x2c,0x78,0x08,0xee,0x86,
3532
0x55,0xa4,0xbf,0x1a,0xd6,0x40,0x7e,0xe2,0x28,0x07,0x93,0xf1,0xbf,0x13,0xee,0x82,
3533
0x07,0xa0,0x00,0x7e,0x33,0x8a,0xf8,0x9c,0xe7,0xe1,0x5e,0xe9,0xa3,0xd2,0xf8,0xa2,
3534
0x3e,0xa7,0x0a,0x24,0x48,0x33,0x8a,0xfb,0x9c,0x06,0xc5,0x5d,0xed,0x04,0x13,0xe0,
3535
0x15,0xb8,0x0e,0x5e,0x80,0x9b,0x60,0x0d,0x64,0xcb,0x7f,0x8d,0xc5,0x73,0x52,0xe3,
3536
0xbf,0xb4,0x04,0xf1,0x97,0x70,0x75,0xbe,0x74,0x39,0x3c,0x57,0xd2,0xe7,0xcc,0x83,
3537
0xa5,0xd2,0xe4,0x32,0x3e,0x27,0x0e,0xca,0x65,0x1d,0xe6,0x7c,0x69,0x79,0xd9,0xcb,
3538
0xcb,0x5d,0xc1,0x0a,0x53,0xde,0x0a,0x5b,0xde,0xf2,0x37,0x61,0x7a,0xf5,0x77,0xe9,
3539
0x1e,0xa2,0x86,0x76,0xfa,0x2e,0x7a,0xbd,0xc6,0xf1,0x7a,0x8d,0xcf,0x3d,0x1a,0x53,
3540
0x27,0x6b,0xce,0x3c,0xde,0xf9,0xbd,0xd3,0x9b,0x3e,0xa7,0x07,0x5c,0x14,0xa2,0x03,
3541
0x2c,0xfb,0x40,0xcb,0x3e,0xc8,0xb2,0x0f,0xb6,0xec,0x43,0x60,0xa9,0xec,0xcf,0x4b,
3542
0x97,0x5a,0x71,0x3d,0x6f,0xd9,0x97,0x5a,0xf1,0x3e,0x6f,0xd9,0xff,0x6d,0x6b,0x69,
3543
0x9c,0x0a,0xe5,0xf9,0x37,0x95,0xe5,0x44,0xb7,0x8d,0x57,0x96,0x0c,0x2b,0xef,0xa1,
3544
0x79,0xfe,0xa3,0xf9,0xed,0xf9,0x3b,0xf9,0x3c,0xdd,0xeb,0x3c,0xfd,0x28,0x65,0xf9,
3545
0xbd,0x32,0xfc,0x56,0xfe,0xff,0xee,0xbc,0x1f,0xad,0x0d,0xda,0x9c,0x62,0x79,0xce,
3546
0x9b,0x4f,0xf3,0xca,0x93,0x57,0x9e,0xbc,0xf2,0xfc,0xdb,0xca,0x13,0xcf,0x3d,0x49,
3547
0x2d,0xee,0x3f,0xb6,0x3b,0xee,0x7a,0xc8,0xb7,0x69,0x5d,0xd2,0x3b,0xb4,0x6e,0xf1,
3548
0x9d,0x5a,0xa7,0xf8,0x6e,0xad,0x1d,0x7c,0x0f,0xdc,0x0b,0xf7,0xc1,0xfd,0xf0,0x80,
3549
0xd6,0xdb,0x9d,0xa9,0xf5,0x7c,0xef,0xd6,0xef,0x11,0x3e,0xa2,0x75,0x7e,0x1f,0x83,
3550
0xc7,0xcd,0xfa,0x8e,0x5a,0x7f,0x37,0xb2,0xa2,0xbb,0x46,0xb3,0xfd,0x9b,0x5a,0x66,
3551
0x4d,0xf4,0x67,0xb5,0x76,0xf2,0x73,0x5a,0xc7,0xd8,0xfc,0xce,0xe1,0x0b,0xfa,0x8d,
3552
0xed,0xe5,0xb0,0x42,0x6b,0xa1,0xaf,0xb2,0x7e,0xff,0xf0,0x45,0x78,0x49,0x6b,0x0e,
3553
0x7b,0xbf,0xb9,0xb5,0x5e,0x6b,0x02,0xfb,0x2b,0xba,0xf1,0x3e,0xa7,0xb8,0xd6,0xea,
3554
0xb8,0x55,0x61,0x79,0xe5,0xcc,0x2b,0x67,0x5e,0x39,0x4f,0xe5,0x72,0xe6,0xc0,0x07,
3555
0x61,0xc7,0x7f,0xff,0x7d,0xaa,0x87,0x33,0x73,0x6b,0xa7,0xed,0xdc,0xe7,0x43,0x67,
3556
0x30,0xbf,0x6d,0x7b,0xe6,0x39,0x8e,0x33,0x8e,0xb9,0xb7,0x28,0x7c,0x02,0xe9,0x70,
3557
0x0f,0x64,0xb2,0xbf,0x01,0x34,0x37,0xbf,0x27,0x45,0x98,0x86,0xd8,0x1f,0xc0,0x7f,
3558
0x2c,0xee,0xda,0x90,0x0a,0xd5,0xf1,0x2b,0x03,0xd7,0x9b,0xe7,0x4b,0x84,0xa9,0x81,
3559
0xfd,0x6c,0xb8,0x1d,0xf7,0x3d,0xb8,0x03,0xe7,0x98,0x1f,0x31,0xa4,0x2d,0xe1,0x5a,
3560
0xf3,0x3b,0x82,0xf0,0x34,0xcc,0x83,0x73,0x21,0x09,0x92,0x21,0xc5,0x7f,0xb8,0x3d,
3561
0xc6,0x13,0x76,0xfa,0xe3,0x8e,0x33,0x19,0xbd,0x11,0x6e,0x85,0x29,0xa4,0x3b,0x03,
3562
0x1e,0x85,0x99,0x84,0x7d,0x0a,0x8d,0x22,0x1d,0xf3,0x9b,0xad,0xf1,0x90,0x10,0xee,
3563
0xfe,0x3e,0x6c,0x52,0xb8,0xfb,0xbb,0xad,0xe6,0xb7,0x59,0xcd,0xef,0xb1,0x9a,0xdf,
3564
0x5c,0x35,0xbf,0x13,0x5b,0x17,0xea,0x85,0xbb,0xbf,0xb9,0xda,0x10,0xd2,0xa0,0x11,
3565
0xa4,0x87,0xbb,0xbf,0x9b,0xda,0x04,0x82,0xd0,0x34,0xdc,0xfd,0xdd,0xd4,0x66,0xe1,
3566
0xee,0xef,0xa5,0x9a,0xdf,0x60,0x6d,0x0d,0x37,0x3c,0xe6,0xfe,0xfe,0xab,0xf9,0xed,
3567
0xd9,0x8b,0xc2,0xdd,0xdf,0x6a,0x9d,0x07,0x6f,0x84,0x3b,0x7f,0x28,0x0f,0x5e,0xfa,
3568
0x8d,0x7e,0x23,0xdd,0x16,0x4a,0x7b,0x9a,0xd2,0xeb,0x00,0x97,0xc3,0x5c,0x68,0x4b,
3569
0x3e,0x16,0x84,0x1f,0x7e,0x3f,0x54,0x43,0xef,0x6e,0x9a,0xe9,0x5d,0x4d,0x8c,0xf5,
3570
0xb7,0x42,0x8d,0x43,0xfe,0xd6,0x2a,0x51,0xef,0x57,0x1a,0xe9,0x3d,0x4d,0xba,0xf5,
3571
0x37,0x38,0xde,0x7b,0xa4,0x58,0xbd,0x03,0x4a,0xd1,0xbb,0x19,0xf3,0xfe,0x65,0x80,
3572
0xfe,0x3e,0x7e,0x16,0x0c,0xb4,0xd2,0xcd,0x08,0x79,0xe7,0xfb,0x7b,0x69,0x85,0xa6,
3573
0x93,0x62,0xfd,0x6d,0x9e,0xfd,0x3e,0xdd,0x3e,0xde,0x3e,0xd6,0x3e,0xe6,0xf9,0x63,
3574
0xe4,0xa5,0x56,0xc8,0x3b,0xe8,0x3f,0x92,0x17,0xbb,0xbc,0xb3,0x22,0xfe,0xb7,0x8e,
3575
0x33,0x8e,0x51,0xcf,0x27,0xa2,0x8e,0x7f,0xaf,0x2d,0x4f,0x44,0x1a,0xde,0xda,0xc0,
3576
0x71,0x7a,0x7f,0x14,0x2f,0x4d,0x90,0x26,0x4a,0x93,0xa4,0xc9,0xd2,0x14,0x69,0x2d,
3577
0x69,0x6d,0x69,0xaa,0xb4,0xaa,0xae,0x45,0xbd,0x35,0xba,0xd2,0x2d,0x7b,0x63,0xcb,
3578
0xde,0xc4,0xb2,0x07,0x2d,0x7b,0x53,0xcb,0x9e,0x61,0xd9,0x9b,0x59,0xf6,0xe6,0x96,
3579
0xbd,0x85,0x65,0x6f,0x69,0xd9,0x2f,0xb0,0xec,0xad,0x2c,0x7b,0x6b,0xcb,0xde,0xc6,
3580
0xb2,0x67,0x5a,0xf6,0xb6,0x96,0xfd,0x42,0xcb,0xde,0xce,0xb2,0xb7,0xb7,0xec,0x1d,
3581
0x2c,0x7b,0x47,0xcb,0xde,0xc9,0xb2,0x5f,0x64,0xd9,0x3b,0x5b,0xf6,0x8b,0x65,0x37,
3582
0xef,0xbc,0x4d,0xfc,0xe6,0xbd,0x77,0x63,0xa5,0xeb,0x5d,0xcb,0x77,0x52,0xb8,0x93,
3583
0x75,0x8d,0xdf,0x2c,0x64,0x8d,0x80,0x76,0x4a,0xaf,0x9d,0xf0,0xbe,0x89,0xf7,0x8e,
3584
0x6d,0xac,0xb0,0x9e,0x7a,0xeb,0xdd,0x5f,0x28,0xbb,0xc9,0x93,0x59,0xff,0xb3,0xa5,
3585
0xde,0x79,0x79,0xef,0xbd,0xcc,0x1a,0xba,0x9d,0xba,0x38,0xce,0xab,0xed,0x0e,0xaf,
3586
0xaf,0x63,0xd6,0x17,0x3b,0x8b,0x8c,0xec,0xbc,0xc1,0x5d,0x5f,0xf1,0x11,0xdc,0x15,
3587
0xb8,0xc1,0x38,0x77,0xb0,0xfb,0xed,0x6a,0x2b,0x22,0xbd,0xf9,0x72,0xc7,0xb9,0x85,
3588
0xc2,0xcc,0xc7,0x7d,0x8e,0xf9,0x96,0xf7,0x6a,0x77,0xfd,0xdb,0x39,0x37,0x3b,0xce,
3589
0x3e,0x0a,0x92,0x4a,0xe1,0x4a,0x70,0xc3,0x31,0x9d,0xf8,0x3b,0x74,0x77,0x2b,0xc1,
3590
0xac,0x59,0xd6,0x22,0xdb,0x5d,0x27,0xcc,0xac,0x19,0x66,0xd6,0x0a,0x8b,0xec,0xee,
3591
0xae,0x2b,0xdb,0x8e,0x70,0xe3,0xb9,0xf1,0x18,0xc3,0x8d,0x47,0x3e,0x8e,0x1d,0x37,
3592
0xc0,0x5d,0xa3,0x2c,0x77,0x9d,0x2e,0xe2,0x1d,0x42,0x1a,0xcf,0x52,0x59,0xad,0xa6,
3593
0xb9,0xed,0x54,0xa3,0x97,0xdb,0x4e,0xc6,0x6e,0xe2,0xf5,0xec,0x37,0x5b,0xf6,0x1b,
3594
0xba,0x1c,0xb6,0x9b,0x35,0x43,0x3c,0xbb,0x49,0xcb,0xb3,0xbf,0x3b,0xe2,0xb0,0xfd,
3595
0x83,0x0b,0x0f,0xdb,0x3b,0xf5,0x70,0xed,0x77,0x51,0xce,0xaf,0xdb,0x1d,0xff,0xf9,
3596
0xbc,0x3e,0xe9,0xd7,0x36,0x6b,0xb0,0x41,0x45,0x9f,0xdf,0xe9,0xda,0xc6,0xfd,0xae,
3597
0xf4,0x05,0xf0,0xd3,0x60,0x63,0x60,0x46,0xa6,0xfb,0x9d,0xe9,0x1b,0xf0,0x40,0x92,
3598
0x99,0x0b,0xfc,0xb9,0xdf,0x9c,0xb6,0x87,0x2b,0x60,0xa4,0xf9,0x86,0x3b,0xe0,0x77,
3599
0x96,0xb2,0xaf,0x57,0x5b,0xb7,0x9e,0x5b,0xe2,0xbe,0x0b,0x7d,0xc4,0x7c,0xe3,0x4d,
3600
0xdc,0x4f,0xb6,0x75,0xbf,0xd9,0xdc,0x3e,0xcd,0x9f,0xbb,0x86,0x73,0x18,0x79,0xdf,
3601
0x4e,0xf8,0xba,0x68,0xd3,0x0b,0xdd,0xfa,0x1a,0x69,0xca,0x93,0xec,0x7e,0xc7,0xe9,
3602
0x7d,0xcf,0x6a,0xbe,0xe7,0x0c,0x50,0x9e,0x88,0x76,0xee,0x37,0xdf,0xcd,0xdb,0xb9,
3603
0xdf,0xb8,0x5e,0x0c,0x43,0xe1,0x6a,0xb8,0xd6,0xa2,0x46,0x7e,0xbf,0x33,0x88,0xba,
3604
0xdb,0x80,0x7d,0x3b,0x74,0x2f,0xe0,0x77,0x3e,0x47,0xf7,0x9b,0x38,0x68,0xa7,0x07,
3605
0xa0,0x36,0x34,0x83,0xde,0x66,0x2d,0x30,0xf8,0x0f,0x14,0xa1,0xad,0xda,0x41,0x77,
3606
0xb8,0x4e,0x98,0xef,0x47,0xe7,0xc2,0x22,0x58,0x03,0xa5,0x3a,0xb9,0xdf,0xd5,0x96,
3607
0x46,0xdb,0xa2,0xc3,0x3a,0xba,0xdf,0x04,0x7f,0x45,0xff,0x79,0x1d,0xbf,0x6f,0xa1,
3608
0x10,0xf6,0x9b,0xd0,0x04,0x34,0x1e,0x9e,0x84,0x5d,0x25,0xfc,0xce,0x37,0xe8,0x7f,
3609
0x21,0xa2,0xb3,0xdb,0x57,0x2b,0x9a,0xef,0x50,0x61,0x76,0x29,0xbf,0xb3,0x17,0xbe,
3610
0xc0,0x5e,0x96,0x81,0x54,0x05,0xb6,0x62,0xef,0x89,0x7e,0x45,0x63,0x1d,0x84,0x7c,
3611
0xf4,0x8b,0x06,0x62,0x7d,0x19,0xbf,0xf3,0x22,0xba,0xb5,0x8b,0xfb,0x9d,0xf7,0x01,
3612
0x38,0xb3,0xac,0xdf,0xf9,0x15,0x8d,0xb8,0x84,0x32,0x5c,0xee,0xae,0x5d,0x3d,0x9e,
3613
0x46,0xee,0xaa,0x6f,0x7e,0x57,0xc1,0x2d,0xb0,0xeb,0x1c,0xbf,0xd3,0x98,0xbe,0xbc,
3614
0x1b,0x1d,0x80,0xf6,0x85,0xb1,0xf0,0x11,0x7c,0x0c,0x35,0xe9,0x14,0x3f,0xa3,0x55,
3615
0x2f,0xa3,0x5f,0x98,0xef,0x62,0xa1,0x1b,0x7e,0x13,0xb9,0xd0,0x1a,0x8b,0xce,0xc7,
3616
0xbd,0x08,0x9e,0xbd,0xcc,0x5d,0x6b,0xe0,0xb6,0x87,0xfd,0xb9,0xeb,0x5e,0xc7,0x47,
3617
0xfb,0x73,0xf1,0x4d,0x20,0xed,0xcb,0x5d,0xd6,0x11,0xfe,0xb9,0x04,0xbf,0xf3,0x7e,
3618
0x96,0xdf,0xe9,0x86,0xbb,0x2f,0xec,0xc4,0xef,0x1e,0xf4,0x35,0x78,0x17,0x7e,0x80,
3619
0xf1,0x5d,0xe9,0x4f,0x74,0xc4,0xb3,0x53,0xdd,0x6f,0x93,0xdf,0xaa,0xec,0x77,0xd6,
3620
0xa1,0xcd,0xb2,0x98,0x8f,0xb2,0xdc,0xef,0x71,0x8d,0x8e,0xd1,0x37,0xb9,0x0b,0xe1,
3621
0x11,0x98,0x07,0x1f,0xea,0xfb,0x5c,0xb3,0xc6,0x82,0x59,0xfb,0xa6,0x2c,0x5c,0x0a,
3622
0x0b,0xe0,0x2d,0xc8,0x64,0xac,0x16,0xac,0xee,0x77,0xea,0xa3,0x07,0x71,0xf7,0x46,
3623
0x27,0xc2,0x2e,0xd8,0x8f,0x7f,0xc5,0x2b,0xb8,0x9e,0xc7,0x3e,0x07,0x62,0xeb,0x50,
3624
0x5e,0xdc,0xd7,0xc0,0xfd,0x30,0x12,0xfa,0xd5,0x71,0xbf,0x8f,0xee,0xd7,0xc3,0xfc,
3625
0x8d,0x93,0xdf,0xd9,0x89,0x7e,0xcf,0xbc,0xd2,0x1c,0xca,0xd4,0x75,0xbf,0x99,0xce,
3626
0x87,0xee,0x22,0xdc,0x6d,0xf4,0xe9,0xe9,0x6d,0xdd,0x87,0x1a,0xf7,0xe1,0xff,0xd4,
3627
0x38,0xae,0xf7,0x1a,0x1f,0xfe,0x46,0xf8,0x5c,0xb8,0x0c,0xda,0xc1,0x8b,0x89,0x7e,
3628
0xa7,0x39,0xc7,0xfd,0x88,0x7d,0x12,0x5c,0xd8,0xdb,0xfd,0xf6,0xba,0x3f,0x17,0xb3,
3629
0xb7,0xa2,0xe5,0xa1,0x44,0x1f,0x27,0xf7,0xfb,0xda,0x74,0xf4,0x61,0xd8,0x0b,0xb3,
3630
0xaf,0xc4,0xce,0x85,0xee,0x36,0xf4,0xcc,0x7a,0xc4,0xd9,0x97,0xfb,0x1d,0x2e,0xa4,
3631
0xdb,0xa3,0xad,0x71,0x0f,0x31,0x6b,0xac,0xeb,0x3b,0xe4,0x17,0xe0,0x96,0x3a,0x7e,
3632
0xa7,0x00,0x6d,0xfd,0x23,0xda,0xba,0x1f,0xf7,0x37,0xf5,0xfc,0xce,0x4a,0xf4,0x35,
3633
0xe8,0x05,0xa5,0xfa,0xd3,0xa7,0xfa,0xbb,0xdf,0x7c,0x9b,0xef,0x96,0xfb,0xc0,0x28,
3634
0x98,0x04,0xe5,0xea,0xfb,0x9d,0x24,0xb4,0x26,0xf3,0xda,0x00,0x48,0xac,0xef,0x7e,
3635
0xd3,0xbc,0x0e,0xde,0x6c,0xe0,0x77,0x7e,0x60,0xdf,0x00,0xe6,0xcb,0xcb,0x1a,0x92,
3636
0x67,0x58,0x8b,0x3d,0x75,0x90,0xfb,0xbd,0x73,0x59,0xb8,0x93,0xf0,0x2d,0xd0,0xab,
3637
0x61,0x24,0x3c,0x05,0x95,0x98,0x13,0x82,0xcc,0xc9,0xdd,0xd3,0xfd,0xce,0x7d,0xe8,
3638
0xdc,0xc6,0x7e,0xa7,0xea,0x10,0xf7,0xbb,0xe8,0x4c,0xc8,0xd7,0xd4,0xef,0x8c,0x43,
3639
0xa7,0x1b,0xbf,0x0c,0xbf,0x53,0xa2,0x99,0xdf,0x19,0x33,0x94,0xf1,0x04,0x4f,0x36,
3640
0xe0,0xda,0x1d,0x7d,0xae,0x81,0x4b,0xc6,0x30,0xc7,0xb9,0x64,0x98,0xfb,0x1d,0xf5,
3641
0x24,0xb3,0x8e,0x02,0x94,0x6d,0xe8,0x38,0xe7,0x31,0xf7,0xa6,0x5c,0xe0,0x77,0x1a,
3642
0x98,0xf5,0xcc,0x51,0xb3,0x56,0xc4,0x83,0xf4,0xdf,0x22,0xcc,0x9b,0xb3,0xda,0xf8,
3643
0x9d,0xe7,0xa0,0x49,0xa6,0xdf,0x39,0x48,0xd8,0x7c,0x69,0xee,0xb7,0xd6,0x07,0x70,
3644
0x7f,0x03,0x65,0xda,0xfa,0x9d,0x44,0x28,0x37,0x92,0x36,0x10,0xe6,0x3b,0x6c,0xf3,
3645
0x7d,0xf3,0x4d,0x68,0x53,0xf4,0xce,0x34,0xb3,0xa6,0x00,0xf5,0x39,0xca,0x5d,0x23,
3646
0xc3,0x7c,0x9f,0xbd,0x13,0xbf,0xca,0x1d,0xfd,0xb9,0xdf,0xc3,0xdf,0x83,0xbe,0x0c,
3647
0xe6,0x9b,0xfe,0xcf,0xa1,0x66,0x23,0xf7,0xbb,0xf8,0x16,0xd0,0x06,0xc6,0x76,0xf6,
3648
0x3b,0x8f,0x5f,0xec,0xf2,0x15,0x6e,0x3f,0x27,0xe7,0xb9,0x5d,0xa8,0xbf,0xab,0x98,
3649
0xf3,0xa0,0x0a,0xee,0x71,0x97,0xf8,0x9d,0xcd,0x63,0xb9,0x4f,0xc1,0xbe,0x07,0xdd,
3650
0xa9,0x3f,0x36,0xb9,0xfe,0x72,0xbf,0xd3,0x1d,0xf5,0xd1,0xaf,0xd6,0xa1,0xfe,0x6b,
3651
0x38,0x9f,0x43,0x12,0xee,0xaa,0xdd,0xfc,0x4e,0x06,0x74,0xc6,0xfe,0x1e,0x3a,0xe6,
3652
0x5a,0xda,0x96,0x9b,0xb3,0xe9,0xe8,0x8f,0xfa,0x56,0xfc,0xfd,0x2b,0xfc,0x4e,0x74,
3653
0x0f,0xe6,0x78,0xec,0xb3,0xd1,0x41,0xe8,0xe5,0xf4,0xc5,0xb7,0x39,0x66,0x21,0xf6,
3654
0xb0,0xf1,0x8e,0x53,0x80,0x93,0x6f,0x03,0x74,0x31,0xf3,0xcf,0xe3,0xbd,0xfc,0xce,
3655
0x62,0xb8,0x9d,0x30,0xf7,0x25,0xba,0xe3,0x3b,0x1c,0x1e,0x98,0xca,0x78,0x26,0xdc,
3656
0x34,0xec,0x37,0xc1,0xfd,0xb0,0x88,0x79,0x70,0x81,0x51,0x58,0x0e,0xbb,0xa1,0x5e,
3657
0x5f,0x7f,0xee,0x1a,0x1b,0xe7,0x4c,0xa4,0xcd,0xe1,0x29,0x88,0x86,0xe5,0xf0,0xe9,
3658
0x44,0x77,0x0d,0x80,0x76,0xe8,0x06,0x78,0x15,0x72,0x20,0xa5,0x9f,0xdf,0xe9,0xdb,
3659
0x9f,0x3c,0xa1,0xd5,0xb9,0x58,0xd9,0x4f,0x98,0x03,0x50,0x6a,0x12,0xe1,0x86,0xfa,
3660
0x9d,0x2b,0xd0,0x1a,0x03,0xfd,0xce,0xa5,0xec,0xcb,0x82,0x05,0xd8,0x37,0x0f,0xe2,
3661
0x18,0xec,0x99,0x5a,0xcb,0xa4,0x17,0xf4,0x81,0x39,0x30,0x05,0xce,0x98,0xcc,0xfc,
3662
0x76,0xbd,0xfb,0x8d,0x7c,0x55,0xe8,0x0b,0xd7,0xc3,0xbb,0x1c,0xf3,0x11,0xea,0x9b,
3663
0xc2,0x5c,0x84,0xbd,0xab,0xd6,0x97,0xef,0x35,0xc2,0xef,0xbc,0x8b,0x7e,0x08,0xc9,
3664
0x5c,0x2c,0xfd,0x88,0xbe,0xc0,0xb9,0xea,0xe9,0x51,0x7e,0xa7,0xe7,0x68,0xbf,0xb3,
3665
0x02,0xbf,0x75,0x30,0x53,0xdf,0xd4,0x9b,0xef,0xe9,0xcd,0xda,0xf3,0xb3,0xb9,0xb1,
3666
0x9d,0x8b,0xae,0x86,0xb2,0x5c,0x23,0x8c,0x84,0x9a,0xdc,0xb4,0x86,0xe7,0xf3,0x3b,
3667
0x1b,0xb1,0x2f,0x83,0x7d,0xf0,0x21,0xee,0xb7,0x6e,0x75,0xbf,0xbf,0xdf,0xcc,0x0d,
3668
0xed,0x97,0x70,0x07,0xd7,0x19,0xfb,0xa1,0x28,0xd7,0x0b,0xb1,0x93,0xfd,0x4e,0x59,
3669
0xb4,0xf6,0x6d,0xe4,0x11,0xb6,0x9a,0x6f,0xf3,0xe1,0x87,0xdb,0x39,0x3f,0xde,0x41,
3670
0x7e,0x6e,0xf2,0x3b,0x37,0x4d,0x67,0x9c,0x70,0xf1,0xb6,0x64,0xba,0x49,0xc7,0xef,
3671
0xec,0xc6,0xfe,0xe2,0x9d,0xb4,0x23,0xf3,0x77,0xf4,0x5d,0xf4,0x0b,0xce,0xb3,0x67,
3672
0xdd,0xc6,0x3c,0xcf,0x85,0xd4,0x08,0xd8,0x81,0x5f,0xfe,0x3b,0xfc,0xce,0x42,0xec,
3673
0x77,0xa2,0xe6,0xbb,0x7e,0xc3,0xf9,0xf0,0xec,0x74,0xbf,0xf3,0x31,0x9a,0xc8,0x45,
3674
0xe0,0xf9,0x33,0x68,0x77,0x58,0x03,0xbf,0xc0,0xeb,0xf8,0xc5,0xdd,0xeb,0xcf,0xfd,
3675
0xfe,0x3f,0xed,0x3e,0xce,0x0f,0xf0,0x3a,0x17,0x8a,0x5f,0x42,0xaf,0xfb,0xb1,0x73,
3676
0x33,0xfd,0x3d,0xf6,0xc0,0x2c,0xbf,0x73,0xc6,0x43,0x7e,0x67,0x1a,0x98,0x75,0xec,
3677
0x3b,0xb6,0x72,0xd7,0xaf,0xff,0x05,0x02,0x0f,0x3a,0x4e,0x61,0x28,0xa5,0xf5,0xeb,
3678
0x73,0xff,0xd0,0x84,0x6a,0xf7,0x87,0x85,0x07,0x22,0x22,0xf3,0x45,0xe5,0x2f,0x50,
3679
0xb0,0xd0,0x19,0x04,0xc9,0x5d,0xb6,0xb9,0x58,0xf1,0x12,0x25,0x4b,0x31,0x6f,0x3a,
3680
0x87,0xb7,0x33,0xcb,0x70,0xce,0x74,0xfe,0x8e,0xad,0xac,0x73,0xf6,0x39,0xe5,0xca,
3681
0x9f,0xe0,0x48,0xdd,0x5f,0x4b,0xab,0x18,0x7d,0x9e,0xeb,0xac,0xc4,0xe4,0x51,0xa5,
3682
0xea,0xf9,0xd5,0xaa,0xd7,0x88,0x89,0xad,0x19,0x17,0x9f,0x90,0xe8,0x24,0x25,0xe7,
3683
0x5e,0xa6,0xfd,0xb9,0xad,0x96,0x67,0xa9,0xed,0xfd,0xd9,0xde,0x09,0xdb,0xea,0x1e,
3684
0xcd,0xb3,0x5e,0xfd,0x23,0x9c,0x0d,0x52,0x1b,0x3a,0x69,0x8d,0xd2,0x9d,0xc6,0x4d,
3685
0x9c,0xbc,0x2d,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,0x2d,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,
3686
0x2d,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,0x2d,0x6f,0xcb,0xdb,0x4e,0xd3,0x6d,0xf7,0xd1,
3687
0xb6,0x3d,0x39,0x6c,0x7b,0xb6,0x9a,0xff,0x73,0x36,0x6c,0x38,0xfc,0xbf,0x36,0x9f,
3688
0xd9,0x8c,0xc5,0x0b,0xbf,0x6f,0xb7,0xeb,0xc8,0xc9,0x71,0x72,0xff,0xc7,0x41,0x14,
3689
0xbb,0x3f,0xdb,0xbb,0xd7,0xfc,0x3b,0x22,0xea,0xbc,0x1a,0x3f,0x7a,0x13,0xe4,0x55,
3690
0x83,0xb6,0xdc,0x4e,0x65,0xfe,0xfb,0x50,0xdd,0xcb,0xed,0x73,0xb9,0x7e,0x1f,0xee,
3691
0xda,0x9d,0xfb,0x8c,0xb2,0xb0,0x79,0x3c,0x99,0xfb,0x7c,0xb2,0xb4,0x79,0x28,0xb9,
3692
0x3b,0xc7,0x29,0x96,0xbf,0xe4,0x89,0x1d,0x0f,0xe5,0xca,0x57,0xf8,0xa3,0x87,0x96,
3693
0x35,0xcf,0x28,0x2b,0x9c,0x5b,0xd1,0x64,0x79,0xb7,0x4a,0x91,0x13,0x1a,0x28,0xfa,
3694
0x64,0x8e,0x6a,0xd7,0x92,0x93,0xab,0xce,0xd1,0x72,0x73,0x94,0xed,0xbc,0xdf,0x89,
3695
0xd9,0x6d,0x09,0xd3,0x22,0xe6,0x5f,0x6e,0xf4,0xae,0xd9,0xfd,0x0f,0x99,0xea,0x72,
3696
0x0e,0x67,0x34,0xe7,0xb7,0x82,0x1e,0x9e,0x1a,0x9d,0x43,0xae,0x3f,0xd2,0x8f,0x73,
3697
0x72,0xfe,0x54,0x5e,0x35,0xbd,0xfe,0xc1,0xe2,0xe5,0xd8,0xd3,0xb2,0x72,0xaf,0x16,
3698
0x73,0xf7,0xd2,0x49,0xd5,0x33,0x73,0xfe,0xf4,0xbc,0x13,0x19,0xea,0x11,0xa5,0x0e,
3699
0x72,0x92,0x1a,0xf4,0xa8,0xe9,0xff,0xb1,0x6a,0xfe,0x9b,0xd3,0x77,0xf2,0xd2,0x3f,
3700
0x91,0xdb,0xa9,0x52,0xfe,0xf6,0x5d,0x4e,0x87,0xfa,0x8f,0x8a,0x3a,0xa5,0xda,0xff,
3701
0xe4,0x26,0xde,0xab,0xd7,0x91,0xe9,0xf5,0x65,0x3b,0x99,0xe9,0x8f,0x18,0x71,0x64,
3702
0xfa,0x63,0xc6,0x98,0xbf,0x80,0x3b,0x81,0x97,0x61,0xbf,0x75,0xf6,0xca,0xc1,0x6c,
3703
0xfd,0x7f,0x46,0x3c,0x7e,0x82,0x73,0x5d,0xae,0x65,0x02,0x1b,0xff,0x73,0xde,0x8a,
3704
0x72,0xfe,0xec,0x29,0x23,0xe7,0x64,0x77,0xb6,0xc8,0xa3,0xf4,0xfe,0x13,0x50,0xe9,
3705
0xff,0xbe,0x3b,0x9b,0x7f,0x62,0xb6,0x7f,0xaf,0x69,0xa3,0x4e,0xed,0xdc,0x9f,0xa8,
3706
0xcb,0x9b,0x53,0x6b,0xdb,0x75,0x8a,0xe5,0xe7,0xc3,0xdd,0xff,0xb6,0xd1,0x7a,0xe4,
3707
0x6d,0xde,0x5f,0x79,0x56,0x3e,0xfc,0x30,0xe8,0x0f,0x27,0x73,0xe4,0x23,0x01,0x27,
3708
0x27,0xc7,0xbe,0xdb,0x0e,0xdd,0x72,0x8e,0xb0,0xec,0xcd,0x0d,0xfa,0x17,0x5c,0x77,
3709
0x45,0x1d,0x6f,0x9d,0xfe,0xa9,0x67,0x60,0x7f,0xe6,0x84,0x13,0x79,0x82,0xe2,0x39,
3710
0xf6,0xa5,0xe7,0xa9,0x74,0xca,0xf1,0x79,0xdd,0xc3,0xfc,0xef,0xf8,0xdc,0xcd,0x3a,
3711
0xbf,0xee,0xce,0x0d,0xf7,0x6f,0x39,0xc5,0xe6,0x1c,0xee,0xe3,0x7b,0xdf,0xc9,0xd9,
3712
0xb0,0xfb,0x78,0xb6,0x3d,0xbb,0x76,0xe5,0xbc,0xbf,0xfb,0xb3,0x9c,0x7f,0xdf,0x1c,
3713
0xb6,0x7b,0xb7,0xcf,0x67,0x4a,0xe8,0x33,0xe2,0x35,0x36,0xf6,0x9c,0xdd,0x7a,0x64,
3714
0xed,0x9c,0xd6,0xdb,0xa9,0x76,0x45,0x16,0x75,0x12,0x0a,0xfc,0x9b,0xdb,0xf1,0xc7,
3715
0xf4,0xfe,0xae,0x3d,0x1f,0xee,0xd8,0x71,0xd2,0x6a,0x26,0x5f,0xbe,0x7f,0x65,0xff,
3716
0x3b,0xb2,0x4d,0x7e,0xbf,0xf5,0x4e,0x7c,0x7f,0xf8,0xff,0x77,0xc3,0x53,0xf5,0xba,
3717
0x3f,0xea,0x0f,0xf5,0xff,0x3f,0xf1,0x48,0x20,0xe7,0x94,0xa8,0xa6,0xc8,0x7f,0xce,
3718
0xbd,0xd8,0x5f,0x31,0x80,0x72,0x5f,0xe3,0xa8,0x19,0xcd,0x7b,0x89,0x53,0x72,0xda,
3719
0xfd,0xe7,0x0d,0x94,0xa3,0x6e,0x67,0x39,0xa7,0xfb,0xb6,0xdb,0x7e,0x09,0x9b,0x93,
3720
0xf7,0x9e,0xfa,0x5f,0xb5,0xe5,0xe4,0x15,0xf1,0x6f,0x1c,0x55,0xa7,0x62,0x65,0x1d,
3721
0x77,0xa6,0x76,0xfb,0x72,0xfe,0x39,0x27,0x92,0x3f,0x79,0x9b,0x7b,0x42,0x1a,0x2b,
3722
0xef,0xaf,0x7c,0xfe,0x9a,0x4b,0x77,0xbb,0x95,0x8f,0xe3,0xfc,0x94,0xfb,0x87,0x2b,
3723
0xfa,0x63,0x88,0x3f,0xf9,0x37,0x1a,0x47,0xc4,0xea,0xfe,0x21,0xcc,0xff,0x27,0xc2,
3724
0xdd,0xff,0x82,0xa7,0x30,0x51,0xff,0xdf,0x90,0xff,0xff,0xf9,0x23,0x2a,0xf2,0x04,
3725
0x75,0xaa,0x3f,0x3c,0x28,0xff,0xec,0x03,0xd4,0xc8,0xbf,0xa6,0xe6,0x4f,0xe2,0x23,
3726
0xd9,0xa8,0xc8,0x7f,0x5e,0x17,0x8d,0x3c,0xe1,0xa7,0xaa,0xc8,0xe3,0xff,0xfb,0x8b,
3727
0xc3,0xb7,0xde,0x7f,0xed,0x69,0x20,0x2a,0x2a,0xea,0x6f,0x19,0xfb,0x91,0xc7,0xbc,
3728
0x5b,0xcd,0xeb,0x8c,0xff,0xea,0xc2,0x47,0x9d,0x46,0xc5,0x8e,0x72,0xf2,0xb6,0xbc,
3729
0x61,0xf7,0xbf,0x57,0x02,0xa7,0x74,0x45,0x44,0x9d,0x9c,0x38,0xa3,0x4e,0xd3,0xd1,
3730
0x96,0x37,0x27,0xfc,0x35,0x7f,0x0a,0x17,0xf5,0x0f,0x9b,0x03,0x4e,0x9b,0x19,0x2f,
3731
0xaf,0xbf,0xff,0xb3,0xb7,0x43,0x7f,0x0b,0xf3,0xff,0xbf,0x5f,0xce,0x7b,0x90,0xf5,
3732
0x0f,0xde,0x22,0x22,0xfe,0x51,0xbd,0xf5,0x54,0xc9,0xc8,0x9f,0x7b,0x50,0xb8,0x75,
3733
0xab,0x3b,0xe8,0x3e,0xde,0x6a,0xb6,0xc3,0x71,0xba,0xdb,0xa1,0x3f,0x6a,0xfc,0xfd,
3734
0x91,0x77,0x2a,0xb6,0xd1,0x91,0xd9,0xb2,0xca,0x67,0x8a,0xbc,0xf5,0xf7,0xab,0xe6,
3735
0x6f,0xcf,0xfd,0x91,0x1f,0xfb,0xed,0x3e,0xe2,0xdb,0x49,0x77,0xd7,0xc9,0x7b,0x78,
3736
0x9f,0x37,0xb1,0xfe,0x85,0xd5,0x73,0xba,0x9f,0xb8,0xf6,0xec,0x39,0xed,0xff,0xfc,
3737
0x31,0xe7,0xf4,0x1c,0x34,0xbb,0x0f,0x8d,0x80,0x7f,0xfb,0x2c,0x73,0xe8,0x9c,0x7a,
3738
0xd2,0xcf,0x21,0xff,0xd0,0xe7,0x61,0xee,0xea,0xaf,0x81,0x40,0x64,0x20,0x5f,0x54,
3739
0xfe,0x40,0xa0,0x40,0xe0,0xd0,0x56,0x30,0x10,0x28,0x74,0x46,0xa0,0x70,0x91,0x80,
3740
0xbd,0x15,0x0d,0xfc,0x0b,0xb7,0x62,0x87,0xad,0xc5,0x4b,0x04,0x4a,0x96,0x2a,0x8d,
3741
0xe5,0xcc,0x13,0x14,0x77,0x19,0xcb,0x7e,0x56,0x20,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,
3742
0x2d,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,0x2d,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,0x2d,0x6f,
3743
0xcb,0xdb,0xf2,0xb6,0xbf,0x61,0xf3,0x39,0x7f,0x97,0x09,0x73,0x02,0x4e,0x64,0xae,
3744
0xa9,0xe2,0xc4,0x38,0xb5,0x9c,0xc6,0x4e,0x0f,0xa7,0x97,0x33,0xdc,0x99,0xe8,0xcc,
3745
0x72,0x1e,0x76,0x9e,0x72,0x96,0x3a,0x2b,0x9d,0x37,0x9d,0xfd,0xce,0x77,0x98,0x80,
3746
0xaf,0xb8,0xef,0x5c,0x5f,0x86,0xaf,0xa5,0xaf,0x93,0xaf,0x8b,0xaf,0xbf,0x6f,0xf4,
3747
0x11,0x66,0x86,0xef,0x41,0xdf,0x1c,0xdf,0x62,0xdf,0xbb,0xbe,0xf7,0x7c,0x9f,0xfa,
3748
0xfe,0xeb,0x2b,0xee,0x2f,0xed,0x3f,0xd7,0x1f,0xe3,0x4f,0xf4,0x07,0xfd,0x3d,0xfc,
3749
0x7d,0x30,0xa3,0xfd,0x93,0xfd,0x77,0xf9,0x97,0xfb,0x57,0xfb,0xdf,0xf0,0x6f,0xf1,
3750
0x7f,0xea,0x3f,0xf0,0x17,0x9a,0x1f,0xfe,0x1f,0xc6,0x17,0xe6,0x0b,0x0b,0x0b,0x0b,
3751
0x84,0x45,0x85,0x15,0xc8,0x35,0xc5,0x0f,0x99,0x92,0x87,0xcc,0x39,0x61,0xd1,0x61,
3752
0x95,0x30,0x55,0x64,0x6a,0x5a,0xa6,0x16,0x26,0x35,0xac,0x6e,0x58,0xc3,0xb0,0x46,
3753
0xb9,0xa6,0xf9,0x21,0xd3,0xf2,0x90,0x69,0x17,0xd6,0x39,0xac,0x0b,0xe6,0x52,0x99,
3754
0x1e,0x47,0x98,0xfe,0x61,0xc3,0x7f,0xd3,0x8c,0x0e,0xbb,0xfa,0xa4,0x9b,0xf1,0x61,
3755
0x93,0x8e,0x69,0x26,0x87,0xdd,0x70,0xc8,0xdc,0x14,0x76,0xcb,0x11,0x66,0x6a,0xd8,
3756
0xb4,0xb0,0xdb,0xc3,0xa6,0x1f,0xa7,0xb9,0xeb,0x4f,0x9b,0x59,0x61,0x73,0x7f,0xc3,
3757
0x2c,0x0e,0x5b,0x79,0x84,0x59,0x7d,0x52,0xcc,0x8b,0x61,0x2f,0xff,0x4d,0x66,0x5d,
3758
0xd8,0x2b,0x61,0x1b,0xc3,0x5e,0x3b,0x64,0xde,0x08,0x7b,0xf3,0x5f,0x61,0xb6,0xe4,
3759
0x99,0xd3,0xda,0x7c,0x24,0xf3,0x19,0xe6,0x00,0xc6,0x17,0x7e,0xd8,0x44,0x61,0x0a,
3760
0xc8,0x94,0x96,0x39,0x37,0xd7,0x44,0x63,0x2a,0xe5,0x9a,0x64,0x99,0xfa,0x98,0xe6,
3761
0x98,0xce,0x96,0xc9,0xc2,0xf4,0x90,0x19,0x2e,0x33,0x3e,0x7c,0x72,0xf8,0x2d,0xb9,
3762
0x66,0xaa,0xcc,0xed,0x27,0xcd,0x4c,0x3f,0x8a,0x99,0x91,0x6b,0xee,0xc5,0xcc,0x0a,
3763
0x7f,0x34,0xfc,0xf1,0xf0,0x79,0x98,0x05,0x32,0x8b,0x0e,0x99,0x17,0x64,0x96,0xcb,
3764
0xac,0xc4,0xac,0xce,0x35,0x2f,0xe7,0x9a,0x75,0x98,0xd7,0xc2,0xdf,0x0c,0xdf,0x12,
3765
0xbe,0x0d,0xf3,0x81,0xcc,0xf6,0x43,0xe6,0x53,0x99,0xcf,0x64,0x3e,0xc7,0x7c,0xf9,
3766
0x3f,0xe6,0xeb,0x3f,0x61,0xf6,0x87,0x1f,0xf8,0x57,0x98,0xef,0xc2,0xff,0xfb,0x9b,
3767
0xe6,0x87,0xf0,0x9f,0xfe,0x90,0xc9,0xfb,0xeb,0x8a,0xd3,0x7d,0xfb,0x29,0xfc,0xc4,
3768
0x1a,0x5f,0xe0,0xcf,0x1a,0x2e,0x89,0x4f,0xb3,0xfb,0xb1,0xc8,0xdf,0x35,0x51,0xb9,
3769
0xa6,0xc0,0x3f,0xc4,0x14,0x0a,0x31,0x85,0x73,0x4d,0xd1,0x3c,0x73,0x5c,0xa6,0xe4,
3770
0x69,0x6f,0xca,0x9e,0x92,0xe6,0x9c,0x93,0x64,0xce,0x0d,0x44,0x9f,0xe6,0xa6,0xd2,
3771
0x69,0x67,0xaa,0x1c,0x61,0x62,0x64,0x6a,0x9e,0xb6,0x26,0x31,0x90,0x9c,0x67,0x7e,
3772
0xd7,0xd4,0xcd,0x35,0xf5,0x4f,0x41,0xd3,0x30,0xcf,0xfc,0xc3,0x4d,0x23,0x4c,0x63,
3773
0x4c,0x10,0x93,0x81,0x69,0x2e,0xd3,0xf2,0x84,0x9b,0x56,0x98,0x36,0x98,0xb6,0x81,
3774
0x76,0xb9,0xa6,0x43,0x9e,0x39,0x4d,0x4c,0xa7,0x40,0xe7,0x13,0x62,0xba,0x04,0x2e,
3775
0x3d,0xc2,0x5c,0x1e,0xc8,0xfa,0xdb,0x4c,0x8f,0x40,0x9f,0x3f,0x64,0xfa,0x06,0xfa,
3776
0x1f,0x97,0x19,0x18,0x18,0x7c,0x92,0xcc,0xe8,0xc0,0xf8,0xc0,0xc4,0xc0,0xa4,0xc0,
3777
0xe4,0xc0,0x0d,0x81,0x9b,0x02,0xb7,0x04,0xa6,0x07,0xee,0x0f,0x3c,0x18,0x98,0x15,
3778
0x78,0x38,0xf0,0x68,0xe0,0xf1,0xc0,0x9c,0xc0,0x53,0x81,0x05,0x47,0x98,0xc5,0x81,
3779
0xa5,0x47,0x98,0xd5,0x81,0x57,0x02,0x1b,0x03,0xaf,0x05,0xde,0x08,0xbc,0x19,0xd8,
3780
0x12,0x78,0x3b,0xf0,0x41,0xe0,0x93,0xc0,0xa7,0x81,0xcf,0x02,0x9f,0x07,0xbe,0x0c,
3781
0x7c,0x1d,0xd8,0x1f,0xf8,0x6f,0xe0,0xe7,0x23,0x4c,0x58,0x44,0xd4,0x11,0xa6,0x50,
3782
0x44,0xd1,0x23,0x4c,0xc9,0x88,0x32,0x47,0x98,0xf2,0x11,0x95,0x42,0x4c,0xf5,0x23,
3783
0x4c,0x62,0x44,0xdd,0x88,0xfa,0x11,0x0d,0x23,0x1a,0x45,0x34,0x8e,0x08,0x46,0x64,
3784
0x44,0xb4,0x89,0xe8,0x14,0xd1,0x39,0xa2,0x4b,0xc4,0xa5,0x11,0x97,0x47,0x64,0x45,
3785
0x74,0x8f,0xe8,0x21,0xd3,0x2b,0xc4,0xf4,0xf9,0x1b,0x4c,0xdf,0xff,0x31,0x83,0x8f,
3786
0x30,0x43,0xff,0x62,0x33,0x3c,0xc4,0x5c,0x95,0x67,0x8e,0xc3,0x5c,0x8d,0xb9,0x16,
3787
0x33,0xfe,0x6f,0x32,0x13,0x31,0x93,0x30,0x93,0xff,0x62,0x73,0xc3,0x21,0x73,0x53,
3788
0xae,0xb9,0xe5,0x0f,0x9a,0xa9,0x98,0x69,0x7f,0xc8,0xdc,0x7e,0x84,0x99,0x8e,0xb9,
3789
0x2b,0xd7,0xcc,0x38,0x64,0xee,0x3d,0x4e,0x73,0x7f,0xae,0x79,0x30,0x62,0xd6,0x31,
3790
0xcd,0xc3,0x11,0x8f,0xe6,0x9a,0xc7,0x23,0xe6,0xe4,0x9a,0xb9,0x11,0x4f,0x45,0xcc,
3791
0x8b,0x58,0x70,0xc8,0x2c,0x8a,0x58,0x9c,0x6b,0x96,0x44,0x2c,0x3d,0x8a,0x79,0x21,
3792
0x62,0xf9,0xef,0x98,0x95,0x96,0x59,0x1d,0xf1,0x22,0xe6,0xe5,0x23,0xcc,0xba,0x88,
3793
0x57,0x22,0x36,0x46,0xbc,0x96,0x67,0x7e,0xd7,0xbc,0x71,0xc8,0xbc,0x89,0xd9,0x82,
3794
0x79,0x1b,0xf3,0x2e,0xe6,0x3d,0xcc,0x36,0xcc,0x07,0x98,0xed,0x98,0x8f,0x30,0x3b,
3795
0x31,0x9f,0x60,0x3e,0xcd,0x35,0x9f,0x61,0x3e,0xc7,0x7c,0x79,0x84,0xd9,0x9f,0x6b,
3796
0xbe,0xcb,0x35,0x3f,0xe4,0x9a,0x9f,0x73,0x8d,0x2f,0xf2,0xcf,0x9b,0xb0,0xff,0x31,
3797
0x87,0x1f,0xe4,0x9a,0x2d,0x0a,0x53,0x00,0x53,0x08,0x53,0x18,0x53,0x14,0x53,0x1c,
3798
0x53,0x12,0x53,0x1a,0x53,0x06,0x53,0x16,0x73,0x4e,0xae,0x29,0x8f,0x39,0x17,0x13,
3799
0x7d,0x84,0xa9,0x92,0x6b,0xaa,0xe7,0x9a,0x9a,0xb9,0x26,0x31,0xd7,0xd4,0x3a,0x4e,
3800
0x93,0x1a,0x59,0x37,0xb2,0x7e,0x64,0xc3,0xa3,0x9a,0x46,0x79,0xe6,0x1f,0x63,0x1a,
3801
0x87,0x98,0x60,0x9e,0xf9,0x5b,0x4d,0x06,0xa6,0xf9,0x51,0x4c,0xcb,0x3c,0x73,0x0c,
3802
0xd3,0x2a,0xb2,0x4d,0x9e,0xc9,0x33,0xc7,0x69,0xda,0xfd,0x2d,0xa6,0x03,0xa6,0xd3,
3803
0x11,0xa6,0xf3,0x21,0xd3,0xe5,0x24,0x98,0xac,0x3c,0x73,0x5a,0x99,0x5e,0x79,0xe6,
3804
0xb4,0x36,0x7d,0x22,0xfb,0x9e,0xb6,0xa6,0x7f,0x9e,0xf9,0xd7,0x99,0xe1,0xb9,0x66,
3805
0x74,0xe4,0x55,0x47,0x98,0xab,0xf3,0x4c,0x9e,0x39,0xe9,0xe6,0x5a,0x99,0xf1,0x98,
3806
0x89,0x79,0xe6,0x0f,0x18,0xf7,0xef,0x45,0x6b,0x87,0x39,0xce,0x80,0x8a,0xae,0x76,
3807
0x95,0x0e,0x44,0x1d,0x74,0x95,0x59,0x5a,0x07,0x5d,0x8d,0xfa,0xd1,0x35,0xc6,0x1b,
3808
0x7d,0x11,0x0d,0x0f,0x73,0x97,0x36,0x8c,0x40,0xfd,0x68,0x24,0x5a,0xd9,0xef,0x38,
3809
0xf9,0xd0,0x97,0xcc,0x22,0xab,0xe8,0x43,0xe5,0x1c,0x27,0x3f,0xfa,0x32,0xee,0x82,
3810
0xe8,0x6b,0x84,0x2b,0x6c,0x8e,0x23,0x5c,0x51,0x73,0x1c,0x1a,0x8d,0xce,0x24,0x5c,
3811
0x25,0xe3,0x8f,0x56,0x45,0xc3,0x15,0x9f,0xbf,0x9c,0xbb,0x3f,0x1c,0x8d,0x47,0x23,
3812
0xca,0xb9,0xf9,0x89,0xf0,0xb9,0xf9,0xc9,0xa7,0x70,0xf9,0x7d,0x6e,0xfc,0x05,0xd1,
3813
0x2a,0xe8,0x3a,0x47,0xfe,0xe5,0x5c,0xff,0x33,0x7c,0x6e,0x3c,0x05,0xcb,0xb9,0xfb,
3814
0x8b,0xa0,0x31,0x68,0x31,0xc5,0x7b,0x46,0x39,0xb7,0xbc,0xeb,0x55,0xde,0x57,0x54,
3815
0xde,0x0d,0x2a,0xef,0xb2,0x72,0x6e,0x79,0x8b,0xa9,0xbc,0x25,0x94,0x6e,0x29,0x9f,
3816
0x5b,0xde,0x8d,0x2a,0xef,0xf3,0x4a,0xef,0x2c,0x95,0x33,0x5c,0xe5,0x8c,0x50,0x39,
3817
0x9f,0x53,0xfa,0x55,0xfd,0x6e,0x39,0xcf,0xf4,0xb9,0xf9,0x38,0x13,0xff,0x38,0x73,
3818
0x5c,0x39,0x37,0xde,0x72,0x2a,0xe7,0xb7,0x2a,0xe7,0xd9,0x3e,0x37,0xfd,0x0a,0xe5,
3819
0xdc,0xf4,0xcb,0x29,0xfd,0x0a,0x2a,0xf7,0x6e,0x95,0xbb,0xa2,0xc2,0x9f,0xa7,0xfd,
3820
0x15,0xcb,0xb9,0xf9,0xab,0xac,0x7c,0x95,0x53,0x3e,0xce,0xf3,0xf2,0x81,0xc6,0xa2,
3821
0xd5,0x54,0xfe,0x57,0x55,0xfe,0xd7,0x54,0xfe,0xd7,0x55,0xfe,0xaa,0x4a,0xbf,0x9a,
3822
0xca,0x5f,0x43,0xf1,0xc7,0xa9,0xfc,0x6f,0xa8,0xfc,0xeb,0x95,0xce,0x1b,0x2a,0x7f,
3823
0x3e,0x95,0x3f,0xbf,0xd2,0xdd,0xa0,0xf6,0x8d,0xf5,0xb9,0xe5,0xad,0x51,0xce,0x4d,
3824
0x27,0xc9,0xe7,0xa6,0x1b,0xa7,0xe3,0xf7,0xa8,0xbd,0x12,0x94,0xcf,0x14,0x9f,0xdb,
3825
0x4e,0x49,0xaa,0x97,0x54,0x95,0xbb,0xbe,0xc2,0xa5,0x28,0x5c,0x5d,0xd5,0x67,0x3d,
3826
0xb5,0x6b,0x1d,0x85,0x6f,0xa0,0x7a,0x4d,0x53,0x7f,0x4a,0x57,0x79,0xbf,0x57,0xba,
3827
0x8d,0x7d,0x6e,0x39,0xdf,0x54,0xbf,0x69,0xa2,0x7c,0x64,0x28,0xfe,0xa6,0x8a,0x3f,
3828
0xa8,0xf8,0x5b,0x28,0xfe,0x66,0x8a,0x67,0xb3,0xea,0x6d,0x8b,0xea,0xed,0x2d,0xd5,
3829
0xdb,0xdb,0x1a,0x27,0x17,0xa8,0xde,0x5a,0xab,0xde,0x62,0x35,0x4e,0xde,0x51,0xbd,
3830
0xbd,0x4e,0x3c,0x05,0xd0,0x4c,0x95,0xeb,0x4d,0xd5,0x5f,0x41,0xd5,0xdf,0x19,0x68,
3831
0x59,0x33,0x4e,0x94,0x9f,0x57,0x55,0x8f,0x7b,0x95,0xff,0xf6,0x2a,0x5f,0x47,0x95,
3832
0xb7,0xbd,0xd2,0xb9,0x48,0xe5,0xb8,0x48,0xf1,0x15,0x51,0x7c,0xc5,0xd4,0x1e,0x17,
3833
0xab,0x5c,0x1d,0x55,0xbf,0x97,0xe9,0xf8,0x8b,0xd5,0x8f,0x2e,0x51,0x3c,0x5d,0x15,
3834
0x4f,0x57,0xa5,0xdf,0x0d,0x77,0x65,0xd3,0x6f,0xfd,0xee,0xf1,0x97,0x29,0xdc,0x95,
3835
0x0a,0x77,0x85,0xc2,0xf5,0x53,0xb8,0xb3,0x14,0xae,0x9b,0xea,0x6f,0x90,0xea,0x6f,
3836
0x80,0xea,0xef,0x3d,0xd5,0xdf,0xfb,0xaa,0xbf,0x6d,0xaa,0xbf,0xde,0xea,0x77,0x57,
3837
0xaa,0xfe,0xfa,0xa9,0xbf,0xe5,0xa8,0xde,0x76,0x6b,0x7e,0x19,0xe0,0x73,0xeb,0x6f,
3838
0x90,0xea,0x6f,0x8b,0xca,0x5b,0x42,0xe5,0x2d,0xa5,0xfa,0x9b,0xa7,0x7c,0xed,0xe2,
3839
0xb8,0xf3,0xd0,0x21,0xaa,0xc7,0x21,0xca,0xd7,0x08,0x8d,0xc3,0x61,0xe5,0xdc,0xf4,
3840
0xc7,0xaa,0xbf,0x5c,0xa3,0x7c,0x8e,0x53,0xfd,0x4c,0x50,0xbf,0x1d,0xa6,0x72,0x5f,
3841
0xaf,0x71,0x76,0x9d,0xc2,0x4f,0x51,0x7b,0xdc,0x28,0xff,0x9b,0x75,0xfc,0x37,0x3a,
3842
0xfe,0x03,0x95,0x73,0x84,0xfa,0xdd,0xf7,0x9a,0x5f,0x12,0xfc,0xee,0x71,0xb7,0xea,
3843
0xb8,0x51,0x3e,0xb7,0x9c,0xff,0x51,0xbc,0xdf,0xea,0xf8,0xd1,0x6a,0x9f,0x6c,0xa5,
3844
0x73,0x95,0xca,0x7d,0xb5,0xca,0x77,0x9b,0xea,0xf7,0x0e,0xa5,0xbb,0x43,0xf5,0xfb,
3845
0x91,0xd2,0xfd,0x58,0xf5,0xbb,0x53,0xfd,0xd3,0xa7,0xfa,0x0d,0x53,0x79,0xaa,0xa8,
3846
0x7f,0xee,0x52,0x3d,0x3f,0xac,0x7a,0xfe,0x44,0xf3,0xf8,0xeb,0xaa,0x5f,0x9f,0xea,
3847
0x37,0x4c,0xfd,0x69,0x96,0xe6,0x71,0x9f,0xea,0x35,0xa0,0xf8,0xc2,0x94,0xff,0x80,
3848
0xf2,0x15,0xa9,0x72,0x44,0xaa,0x1c,0x51,0x0a,0x57,0x40,0xe5,0x28,0xa4,0xf9,0xec,
3849
0x53,0x8d,0xc7,0x02,0xea,0x57,0x85,0x55,0xbe,0x42,0xea,0xb7,0x45,0x35,0x8f,0x17,
3850
0x57,0xbc,0x85,0x55,0xde,0x3d,0x2a,0xef,0x67,0x2a,0xef,0x5e,0x95,0x77,0xb9,0xea,
3851
0xb9,0xb8,0xca,0x5b,0x52,0xe9,0x96,0x56,0xbf,0xfa,0x5c,0xe5,0x7d,0x41,0xe9,0x95,
3852
0x55,0x39,0x03,0x2a,0x67,0xa4,0xca,0xb9,0x54,0xe9,0x9f,0xaf,0x79,0xbc,0x8c,0xfa,
3853
0x4f,0x19,0xf5,0x9f,0xb2,0x6a,0x97,0xf2,0x2a,0xe7,0x77,0x2a,0xe7,0x39,0xea,0xcf,
3854
0xe7,0x6a,0x1e,0x2f,0xaf,0xf4,0xcf,0x55,0xb9,0x3f,0x55,0xb9,0xa3,0x15,0xbe,0x92,
3855
0xf6,0x47,0xab,0x3f,0x54,0x51,0xbe,0xca,0x2b,0x1f,0x95,0xbc,0x7c,0x68,0x1e,0xaf,
3856
0xae,0x7a,0xb8,0x53,0xf5,0xf0,0x85,0xea,0xe1,0x4b,0xd5,0xc3,0x57,0xaa,0x87,0xf3,
3857
0x95,0x8f,0xea,0xaa,0x87,0x18,0x95,0xff,0x6b,0x95,0xff,0x15,0xa5,0xb3,0x49,0xe5,
3858
0x8f,0x52,0xf9,0x0b,0x28,0xdd,0x8d,0x6a,0xdf,0x9a,0x9a,0xc7,0x63,0x34,0x1e,0x92,
3859
0x55,0x8e,0x7d,0x9a,0x97,0xe2,0x15,0xcf,0x67,0x6a,0xb7,0x44,0xe5,0xb7,0x96,0xe6,
3860
0x9b,0x64,0xd5,0x4f,0x1d,0x1d,0xd7,0x40,0xe1,0x6a,0x29,0x5c,0x3d,0xd5,0x6b,0x7d,
3861
0x95,0xab,0xae,0xc2,0x37,0x54,0xfd,0x36,0x52,0xbf,0x6a,0xac,0xf2,0xfe,0xa0,0x74,
3862
0x9b,0x68,0x5c,0xed,0x57,0xff,0x09,0x2a,0x1f,0xcd,0x14,0x7f,0x86,0xe2,0x6f,0xaa,
3863
0xf8,0x5b,0x2a,0xfe,0xe6,0xde,0x38,0x55,0xbd,0x1d,0x50,0xbd,0x7d,0xab,0x7a,0xfb,
3864
0x4e,0xe3,0xa5,0x95,0xea,0xad,0x8d,0xda,0xa7,0xa6,0xc6,0xcb,0x7f,0x54,0x7f,0x6f,
3865
0x68,0x3e,0x6f,0xab,0x72,0x6d,0x56,0x3d,0x16,0x52,0x3d,0x16,0xd6,0x7c,0x34,0x4b,
3866
0xf9,0x79,0x4d,0xf5,0xf9,0xb9,0xf2,0xdf,0x41,0xe5,0xeb,0xa4,0xf2,0x76,0x50,0x3a,
3867
0x9d,0x55,0x8e,0xce,0x8a,0xaf,0xa8,0xe2,0x2b,0xae,0x76,0xe9,0xa2,0x72,0x75,0x52,
3868
0xfd,0x5e,0xae,0xe3,0xbb,0xa8,0x3f,0x5d,0xaa,0x78,0xb2,0x14,0x4f,0x96,0xd2,0xef,
3869
0xae,0x79,0xba,0x8c,0xe6,0xe9,0xcb,0x15,0xae,0xaf,0xfa,0xdd,0x5d,0x0a,0xdf,0x43,
3870
0xe1,0xfb,0x2b,0x7c,0x59,0x85,0xef,0xae,0x7a,0x1c,0xac,0x7a,0x1c,0xe8,0xb5,0x87,
3871
0xea,0xf1,0x47,0xd5,0xe3,0x4f,0xaa,0xc7,0x3e,0xea,0x7f,0x7d,0x55,0x8f,0xfd,0xd5,
3872
0xff,0x0e,0xaa,0xfe,0x3e,0xd5,0x7c,0x33,0x50,0xf3,0xfa,0x60,0xd5,0xe3,0x5b,0x2a,
3873
0x77,0x49,0x95,0xbb,0xb4,0xea,0x71,0xbe,0xf2,0xf5,0x89,0xe6,0xf5,0xa1,0xaa,0xcf,
3874
0xa1,0xca,0xd7,0x48,0x8d,0xcb,0xe1,0x9a,0xd7,0xaf,0x56,0xbf,0xb9,0x56,0xf9,0x1c,
3875
0xaf,0x7a,0x9a,0xa8,0x7e,0x3c,0x5c,0xe5,0x9f,0xac,0xf2,0x4f,0x52,0x7e,0xee,0xd6,
3876
0x71,0x37,0xa8,0x7d,0x6e,0xd2,0xfe,0x5b,0x14,0xcf,0x01,0xc5,0xf3,0xb3,0xca,0x3b,
3877
0x52,0xfd,0xf0,0x07,0xcd,0x3b,0x89,0x9a,0xdf,0xa7,0xea,0xb8,0x5f,0x55,0xde,0xff,
3878
0x2a,0xfe,0x19,0x8a,0xff,0x3b,0xc5,0x33,0x46,0xed,0x36,0x4d,0xe9,0x8d,0x55,0x3d,
3879
0x5c,0xa3,0xf2,0xde,0xae,0xfa,0x9e,0xae,0xf4,0xbf,0x2c,0xef,0x1e,0x37,0xc9,0x5c,
3880
0xe3,0x98,0xeb,0xf6,0xf2,0xae,0xff,0x63,0x8a,0xef,0x11,0x95,0xff,0x89,0x72,0x6e,
3881
0xba,0xb3,0x95,0xaf,0x0f,0xd5,0xef,0x7e,0x94,0x1e,0x54,0xfb,0x7c,0x2c,0x77,0x3e,
3882
0xc5,0xbf,0x4a,0xf1,0xac,0x50,0x3c,0x2f,0x29,0x9e,0x35,0xf2,0x8f,0xf5,0xae,0x87,
3883
0xe4,0xde,0xa4,0x70,0xef,0x28,0xdc,0x5b,0xf2,0xbf,0x40,0xe9,0xd6,0xd0,0xb8,0x69,
3884
0x2d,0x77,0x35,0xbf,0xbb,0xff,0x17,0x9f,0x1b,0xcf,0x36,0xa5,0xff,0xae,0xf2,0xf3,
3885
0xb6,0xca,0xff,0x9e,0xf6,0x3f,0xae,0xf8,0x1e,0x55,0x3a,0x73,0x95,0xce,0x1c,0xc5,
3886
0xb7,0x5d,0xc7,0xff,0x24,0xfd,0x59,0xf1,0xec,0x94,0x3b,0x4a,0xf9,0x5d,0xad,0x78,
3887
0x56,0x2a,0x9e,0x97,0x15,0xcf,0x8b,0xf2,0xaf,0xa9,0x70,0x5b,0xe4,0x7e,0x53,0xe1,
3888
0xde,0x55,0xb8,0xb7,0xe5,0xdf,0x4a,0xe9,0xc6,0xa8,0x5c,0x6d,0xe4,0xae,0xae,0x72,
3889
0xfd,0xaa,0x7c,0xe7,0x28,0xfd,0xad,0xca,0xcf,0x3b,0x2a,0xd7,0xfb,0xda,0x3f,0x5f,
3890
0xf1,0x3d,0xad,0x74,0x9e,0x51,0x3a,0x0b,0x95,0x8f,0x05,0xda,0x3f,0x4f,0xfb,0x17,
3891
0x6b,0xff,0x22,0xed,0x2f,0xa1,0xfd,0xa5,0xe4,0x2e,0x29,0x77,0x69,0xb9,0x33,0xe5,
3892
0xbe,0x50,0xee,0xb6,0x72,0xb7,0x53,0x3f,0xbb,0x42,0xda,0x43,0xda,0x53,0xda,0x4b,
3893
0xe1,0x46,0x79,0xd7,0x21,0xea,0xc7,0x63,0xa4,0x57,0x29,0xdc,0xbd,0x8a,0x37,0x47,
3894
0xe1,0xde,0x57,0x3e,0x77,0x28,0x9f,0x1f,0xaa,0x9f,0x7f,0xac,0x70,0x1f,0x28,0xdc,
3895
0x36,0x85,0xfb,0x48,0xe1,0xb6,0x2b,0xdc,0x4e,0x85,0xdb,0xab,0x70,0x7b,0x14,0xee,
3896
0x2b,0x85,0xfb,0x42,0xe1,0xf6,0x29,0xdc,0xe7,0x0a,0xf7,0x99,0xc2,0x7d,0xad,0x70,
3897
0x5f,0x2a,0xdc,0x7e,0xcd,0x67,0x5f,0xa9,0xfe,0xbf,0x90,0x7e,0x29,0xdd,0x21,0xfd,
3898
0x48,0xf3,0xd3,0xd9,0x3a,0x5f,0x9f,0xa3,0xf6,0x8c,0xf3,0xbb,0x1a,0xef,0x77,0xe3,
3899
0xf9,0x5a,0xed,0xf6,0xbc,0xc6,0xdf,0xf5,0x61,0xee,0xfe,0xa5,0xe5,0xdd,0xe3,0x9e,
3900
0x43,0x8b,0x9b,0x71,0x84,0x96,0x30,0xfd,0x0e,0x0d,0x9a,0xfb,0x4a,0x8d,0xcf,0xf5,
3901
0x3a,0x6e,0x4a,0x98,0x1b,0xee,0x4c,0x85,0x2b,0xa3,0xfd,0x1b,0xb4,0xff,0x06,0xed,
3902
0xaf,0xaa,0xfd,0xe7,0x2b,0x9e,0x57,0x15,0xee,0x7d,0x85,0xbb,0x51,0xe9,0xbf,0xa7,
3903
0xf4,0xb7,0x96,0x77,0xdb,0xe7,0x09,0x1d,0x5f,0x5b,0xc7,0xa7,0xea,0xb8,0xef,0x75,
3904
0xdc,0xcd,0xda,0xdf,0x4c,0xfb,0x9b,0x4b,0xbf,0x50,0xb8,0xbd,0x0a,0x77,0xab,0xe2,
3905
0xff,0x4c,0xf1,0xef,0x51,0xfc,0x73,0xc3,0xdc,0xf0,0x9d,0x15,0xfe,0x47,0x85,0x9f,
3906
0xaa,0x78,0x7b,0x2b,0xbe,0x3e,0xca,0xf7,0x41,0xe9,0x33,0xd2,0x97,0x74,0xdc,0x20,
3907
0x1d,0xf7,0xa4,0xd2,0x59,0xa0,0x74,0xe6,0xab,0x1e,0x1d,0xc5,0xe3,0x2b,0xef,0xce,
3908
0x73,0xcf,0xea,0xf8,0x45,0x3a,0x7e,0x88,0x8e,0x7f,0x4a,0xe9,0x16,0x51,0xf8,0xa2,
3909
0xda,0x3f,0x4c,0xfb,0x9f,0xd6,0xfe,0x0a,0xda,0x7f,0xae,0xe2,0x5b,0xab,0xf8,0x5e,
3910
0x54,0xf8,0x11,0x0a,0x3f,0x4f,0xf9,0x79,0x53,0xf9,0xd9,0xa4,0x72,0x6f,0x50,0x3c,
3911
0x71,0x8a,0x27,0x5e,0xf1,0xbc,0xa3,0xe3,0x47,0xe9,0xf8,0x57,0x15,0x2e,0x4d,0xe1,
3912
0x1a,0xa9,0x3c,0xbb,0xe4,0xfe,0x44,0xe1,0xc7,0x28,0xfc,0x6b,0x4a,0xef,0x23,0xa5,
3913
0xb7,0x43,0xe9,0x6d,0x54,0x3c,0x99,0x3a,0xae,0xad,0xd2,0xdb,0xad,0xe3,0xc7,0xea,
3914
0xf8,0xd7,0x15,0xae,0xab,0xc2,0x65,0x29,0xdc,0x7f,0x54,0xbe,0x03,0x0a,0xbf,0x59,
3915
0xe1,0xb3,0x75,0xde,0x78,0x57,0xfe,0x1f,0xcb,0x7f,0xbe,0xfc,0x3f,0xd5,0x71,0xdf,
3916
0xca,0x7f,0x4b,0x98,0x9b,0x9f,0xb7,0xa4,0x91,0xe1,0xaa,0x97,0x70,0xd7,0xbd,0x39,
3917
0xdc,0x0d,0x17,0x16,0xee,0xc6,0xe7,0x68,0xff,0x3b,0xda,0xef,0x93,0x7b,0xb5,0xdc,
3918
0x39,0xd2,0x0f,0x15,0xbe,0x50,0xb8,0xce,0x43,0x0a,0x57,0x46,0xfb,0x77,0x29,0xde,
3919
0x82,0x72,0xef,0x56,0xb8,0xaf,0x14,0xee,0x0c,0xf9,0xef,0x0b,0x77,0xaf,0x1f,0xbe,
3920
0x91,0xfb,0x5b,0xe9,0xf7,0xd2,0x2f,0x14,0xfe,0x4d,0xb9,0xb7,0x28,0xde,0x76,0x4a,
3921
0x3f,0x53,0xfb,0xdf,0xd5,0xfe,0xb6,0x72,0xaf,0x91,0xfb,0x03,0xe9,0x76,0x85,0xbf,
3922
0x54,0xf9,0xd8,0xa9,0x70,0xa9,0xda,0xff,0x89,0xe2,0xbd,0x44,0xee,0x4f,0x15,0xee,
3923
0x6b,0x85,0xbb,0x4c,0xfe,0xfb,0x95,0xdf,0x03,0x72,0x7f,0x27,0xfd,0x41,0xfa,0xa5,
3924
0xb4,0x53,0xb8,0x7b,0x1d,0x34,0x42,0x3a,0x52,0xfe,0xef,0x4b,0xb7,0x49,0xf7,0x4a,
3925
0x3f,0x47,0xdb,0x45,0x38,0x4e,0x45,0x68,0x0f,0xd1,0xd0,0x01,0x2a,0xc9,0x7d,0x9e,
3926
0xb4,0xb2,0x74,0x8d,0x74,0x8b,0x74,0x15,0xd4,0x8b,0x62,0xbe,0x89,0x72,0x35,0x5e,
3927
0x9a,0x04,0x2b,0x60,0x23,0xbc,0x0b,0xaf,0x42,0x83,0x02,0x5c,0x4f,0x43,0x47,0x68,
3928
0x06,0x9d,0xe0,0x02,0x78,0x17,0xee,0x80,0x15,0xb0,0x41,0xee,0x57,0xe5,0xde,0x68,
3929
0xc2,0x17,0x24,0x3c,0xbc,0x0d,0xab,0x60,0x0d,0x6c,0x90,0x7b,0x1d,0xbc,0x03,0xeb,
3930
0xe5,0xde,0x08,0x0d,0x0a,0x39,0x4e,0x0b,0xe8,0x04,0x17,0x14,0x72,0xdd,0x2d,0x61,
3931
0x03,0xbc,0x0f,0x6f,0x40,0x0e,0x6c,0x87,0x0f,0xe5,0xff,0x01,0xc4,0x16,0xa1,0x9c,
3932
0x90,0x5c,0x96,0xba,0x2f,0xeb,0x6a,0x3e,0x69,0x7e,0x69,0x41,0xe9,0x19,0xd2,0x62,
3933
0xd2,0xba,0xd2,0xfa,0xd2,0x34,0x69,0x23,0x69,0xe3,0xb2,0x6e,0xbb,0xd6,0xd6,0x79,
3934
0x22,0x55,0x7a,0x89,0xf4,0x52,0x9d,0x1f,0x7b,0x4b,0xfb,0xe8,0x7a,0xf3,0x49,0x9d,
3935
0x5f,0x9e,0x95,0xfb,0x29,0xb9,0x97,0xc8,0xbd,0x56,0xba,0x4e,0xba,0x55,0xfa,0x9e,
3936
0xce,0x77,0x7e,0x8d,0xc7,0x70,0x8d,0xef,0x08,0x8d,0xd3,0x71,0x1a,0xc7,0x61,0xda,
3937
0x1f,0xd0,0xfe,0x48,0xed,0x1f,0x2f,0x9d,0x20,0x9d,0x28,0xbd,0x4e,0x3a,0x49,0x7a,
3938
0xbd,0x74,0xb2,0xe2,0xcb,0xaf,0xf8,0x0a,0x2a,0xbe,0x33,0xb4,0x7f,0x8a,0xf6,0x17,
3939
0xd0,0xfe,0x42,0xda,0x5f,0x58,0xfb,0x6f,0x90,0xde,0x28,0xbd,0x49,0x7a,0xb3,0xf4,
3940
0x16,0xe9,0xad,0xd2,0xa9,0x8a,0xaf,0x98,0xe2,0x2b,0x21,0x77,0x71,0xb9,0x4b,0xca,
3941
0x7d,0x96,0xdc,0x67,0xcb,0x5d,0x56,0xee,0x73,0xe4,0xae,0x28,0xf7,0x79,0xca,0x4f,
3942
0x65,0xc5,0x9f,0xad,0xfd,0xd1,0xda,0x5f,0x49,0xfb,0xab,0x68,0xff,0x34,0xe9,0x6d,
3943
0xd2,0xdb,0xa5,0x77,0x48,0xa7,0x4b,0xef,0x94,0xde,0xa5,0xf8,0xaa,0x29,0xbe,0x1a,
3944
0x8a,0x2f,0x56,0xfb,0xef,0xd6,0xfe,0xea,0xda,0x1f,0xa3,0xfd,0x35,0xb5,0x7f,0x86,
3945
0xf4,0x1e,0xe9,0xbd,0xd2,0xfb,0xa4,0xf7,0x4b,0x1f,0x90,0x3e,0xa8,0xf8,0x12,0x14,
3946
0x5f,0x92,0xe2,0x4b,0x91,0x7f,0xa2,0xfc,0x93,0xe5,0x5f,0x4b,0xfe,0x75,0xe4,0x5f,
3947
0x4f,0xfe,0x0d,0xe4,0x5f,0x57,0xfe,0xf5,0xe5,0xdf,0x50,0xfe,0xe9,0xf2,0x6f,0x22,
3948
0x77,0x63,0xb9,0x83,0x72,0xb7,0x90,0xfb,0x02,0xb9,0x5b,0xca,0xdd,0x4a,0xee,0x0b,
3949
0xe5,0x6e,0xaf,0x78,0x3b,0xca,0xbf,0x9d,0xfc,0x3b,0xc8,0xbf,0x93,0xfc,0xbb,0xc8,
3950
0xff,0x52,0xf9,0x5f,0x2e,0xff,0x6e,0xf2,0xbf,0x42,0xfe,0x3d,0x55,0x0f,0x33,0xb5,
3951
0xbf,0xbb,0xf6,0xf7,0xd0,0xfe,0x5e,0xda,0x3f,0x4b,0xfa,0x90,0xf4,0x61,0xe9,0x23,
3952
0xd2,0x47,0xa5,0x8f,0x49,0x1f,0x57,0x7c,0x57,0x2a,0xbe,0x7e,0x8a,0x6f,0x80,0xf6,
3953
0xcf,0xd6,0xfe,0xbe,0xda,0xdf,0x5f,0xfb,0x07,0x6a,0xff,0x1c,0xe9,0x13,0xd2,0xb9,
3954
0xd2,0x27,0xa5,0x4f,0x49,0x9f,0x96,0xce,0x93,0x2e,0x94,0xae,0x91,0x7e,0x23,0x5d,
3955
0xa2,0xf4,0x5e,0xf3,0xce,0xeb,0x4a,0xef,0x0d,0xed,0x5f,0x27,0xfd,0xaf,0xc2,0x7d,
3956
0xa0,0x70,0x1f,0x2a,0xdc,0xf6,0xf2,0xee,0x7b,0x9d,0x7b,0xce,0x75,0xf5,0x5e,0xe9,
3957
0xd3,0xd2,0xd7,0xa4,0x6f,0x48,0x5f,0x97,0x86,0xeb,0x7d,0x50,0x94,0xb4,0xa0,0xf4,
3958
0x3c,0x69,0x65,0x69,0x23,0x69,0x13,0x69,0x86,0xb4,0xb9,0xb4,0xbf,0xb4,0x9b,0x74,
3959
0x90,0x74,0xb0,0x74,0x98,0x74,0xb8,0x74,0x94,0x74,0xb4,0x74,0x9c,0x74,0xbc,0x74,
3960
0x87,0xf4,0x23,0xe9,0x75,0xd2,0x49,0xd2,0x29,0xd2,0x1b,0xa4,0x1f,0x4b,0x77,0x4a,
3961
0x9f,0x94,0x3e,0x25,0x7d,0x5a,0x3a,0x4f,0xba,0x57,0xfa,0xb9,0xf4,0x0b,0xe9,0x97,
3962
0xe8,0x8c,0x38,0xc6,0x7f,0x9c,0xab,0x17,0x48,0x5b,0x4b,0x33,0xa5,0x17,0x4a,0xdb,
3963
0x4b,0x3b,0x4a,0x2f,0x92,0x5e,0x2c,0xbd,0x44,0x7a,0x99,0xb4,0xab,0xb4,0x9b,0xb4,
3964
0x87,0xb4,0x97,0xb4,0x8f,0x74,0x10,0xdc,0x03,0x83,0xe5,0x1e,0x2a,0xf7,0x30,0xb9,
3965
0x47,0xc8,0x3d,0x52,0xee,0xd1,0x72,0x8f,0x91,0x7b,0xac,0xdc,0x57,0xcb,0xfd,0x80,
3966
0xf4,0x5b,0xe9,0x93,0xd2,0xa7,0xa5,0xf3,0xa5,0x0b,0xa5,0xcf,0x48,0x9f,0x95,0x3e,
3967
0x27,0x7d,0x5e,0xba,0x4c,0xba,0x42,0xba,0x4a,0xba,0x46,0xfa,0xb2,0x74,0x9d,0xf4,
3968
0x15,0xe9,0x26,0xe5,0xeb,0x4d,0xb9,0xb7,0xc8,0xfd,0x96,0xdc,0xef,0xc8,0xfd,0xae,
3969
0xdc,0xef,0xc9,0xfd,0xbe,0xdc,0x39,0x72,0x7f,0x20,0xf7,0x7f,0xa5,0xdf,0x4b,0x7f,
3970
0x90,0xfe,0x28,0xfd,0x25,0xce,0x3d,0x0f,0xbf,0x12,0xf0,0xe5,0xea,0x2e,0xf4,0xf9,
3971
0x22,0x3e,0xe7,0x9e,0x22,0xae,0xde,0x27,0x9d,0x0b,0x55,0x8a,0xfa,0x9c,0xd8,0xa2,
3972
0xae,0xd6,0x84,0x06,0xc5,0x7d,0x4e,0x4b,0xe8,0x04,0x17,0xc0,0x2b,0x30,0x11,0x5e,
3973
0x80,0x49,0xb0,0x06,0x6e,0x95,0xff,0x34,0x78,0x0e,0xd6,0xc9,0xff,0x65,0xf9,0xaf,
3974
0x87,0xf9,0x25,0x7c,0xce,0x32,0x78,0x1e,0x5e,0x80,0xe5,0xb0,0x02,0xe6,0x95,0xc4,
3975
0xaf,0xa4,0xab,0x2f,0x40,0x5c,0x19,0x9f,0x53,0x1b,0xca,0x65,0xf9,0x9c,0x73,0xa1,
3976
0x3c,0x44,0x43,0x05,0xa8,0x04,0xe7,0x43,0x45,0xf9,0x57,0x96,0x7f,0x55,0xb9,0xab,
3977
0x48,0xcf,0x83,0x5e,0xfd,0x7d,0x4e,0x9f,0xfe,0xae,0xf6,0x96,0x5e,0xd9,0xdf,0xa7,
3978
0x1f,0xaa,0xf3,0x9b,0x8b,0xf5,0x40,0x44,0xa4,0x93,0x2f,0x2a,0xff,0xa1,0x25,0x85,
3979
0x0a,0x98,0xc7,0xfe,0x85,0xce,0x70,0x0a,0xbb,0xce,0x22,0xb9,0xff,0x17,0xfd,0xb7,
3980
0x2c,0x98,0x54,0xac,0x78,0x89,0xa3,0x79,0x97,0x2c,0xe5,0x94,0x3e,0xb3,0x0c,0x96,
3981
0xb3,0x4e,0x50,0x3a,0x65,0x2d,0xfb,0xd9,0x27,0xa1,0x5c,0xe7,0xe4,0xad,0x85,0x75,
3982
0x5c,0xcd,0x6f,0xfe,0x08,0x20,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,0x2d,0x6f,0xcb,0xdb,
3983
0xf2,0xb6,0xbc,0x2d,0x6f,0xcb,0xdb,0xf2,0xb6,0xbc,0x2d,0x6f,0xcb,0xdb,0x4e,0x93,
3984
0xcd,0x67,0x36,0xf7,0x7f,0xf3,0xe7,0xa0,0xb9,0x3f,0xef,0xe2,0xd3,0x2e,0x3b,0x88,
3985
0xfb,0xa4,0xe8,0x7f,0x77,0xfa,0xfd,0x3e,0xbf,0xdf,0xf7,0xc7,0xd2,0xf4,0xff,0xaf,
3986
0xcd,0xff,0xef,0xaa,0xd2,0xd3,0xa4,0xef,0xfc,0x56,0x1b,0x6b,0xfb,0x9b,0x72,0xe0,
3987
0x73,0xf3,0xf0,0x97,0xf4,0x2b,0xff,0x71,0x75,0xd7,0xdc,0xb2,0xfb,0x4f,0xd3,0x1e,
3988
0xe0,0xf3,0xea,0xdf,0xf9,0x3b,0xdb,0xff,0xd4,0x1c,0x19,0x27,0x21,0xad,0x93,0x36,
3989
0x01,0x9d,0x4a,0xf5,0xef,0x3b,0x5a,0xba,0x27,0x23,0x1f,0x21,0xa7,0xb3,0x90,0xff,
3990
0x8e,0x16,0xca,0x9e,0x98,0xfc,0x7f,0x3a,0xbe,0x7f,0x69,0xbf,0xfe,0x37,0x5d,0x60,
3991
0x85,0x6e,0x27,0x28,0x9a,0xff,0x6f,0x64,0x79,0xdd,0xe0,0xef,0xdb,0xfc,0x47,0x98,
3992
0x13,0x77,0x1d,0x72,0x38,0xb6,0xdf,0x50,0xbf,0x3f,0x24,0x1f,0x27,0xe1,0x1c,0xfd,
3993
0xef,0x68,0xb4,0xd3,0xbe,0xa6,0xf2,0x3a,0xca,0x3f,0xb2,0xd7,0xfe,0x83,0xcf,0x9b,
3994
0x27,0xa9,0x5b,0xe7,0x6d,0x87,0x37,0xc7,0x3b,0x29,0x1c,0xf2,0x38,0x7c,0x92,0x38,
3995
0x41,0xf1,0x9f,0xc4,0xb2,0x9c,0x90,0x73,0xf5,0xd1,0x7b,0x8a,0x73,0xa8,0x76,0xf4,
3996
0xef,0xa4,0x3c,0xee,0xc8,0xdb,0xfe,0xae,0x8b,0xd0,0xbc,0x2b,0xde,0x53,0xec,0xfe,
3997
0xdf,0x77,0x28,0x0d,0xf7,0xa9,0xf5,0xe9,0xf7,0xcc,0xd5,0x77,0x3a,0xf6,0x4a,0xdf,
3998
0x69,0x9f,0x81,0xbf,0xed,0xe1,0x45,0xde,0x6c,0x77,0xea,0x5f,0xcd,0x9e,0x7a,0x37,
3999
0x8d,0x7f,0xe1,0x55,0xd1,0x09,0x89,0xfb,0x2f,0xbf,0x86,0x3c,0xc5,0xb7,0x38,0x48,
4000
0x85,0x46,0x70,0x31,0x5c,0x2e,0xb2,0x60,0x0c,0x3c,0x21,0x16,0x8b,0x25,0xe2,0x79,
4001
0xb1,0xca,0x71,0xd7,0xb3,0xda,0xea,0xb8,0xeb,0xa0,0x7c,0x6f,0xfc,0xe9,0xec,0x2f,
4002
0x88,0x65,0xb0,0x12,0x56,0xc1,0x8b,0xf0,0x12,0xdc,0x4e,0xbd,0xde,0x01,0xd3,0xe1,
4003
0x4e,0x98,0x07,0xf3,0x61,0x35,0xac,0x85,0x37,0x61,0x07,0xec,0x82,0x2f,0xc4,0x57,
4004
0xc2,0x7c,0xe7,0x34,0xd0,0x7c,0x4b,0x64,0xd6,0xf9,0x30,0xdf,0x10,0x89,0x11,0xe6,
4005
0x7b,0x58,0xf3,0x0d,0xb5,0xb8,0xca,0xac,0xf7,0x61,0xd6,0xfa,0x10,0xd7,0x8b,0xc9,
4006
0x62,0x8a,0xbe,0x97,0xbf,0x59,0x98,0x6f,0xdb,0x67,0x99,0x6f,0xc4,0xcc,0xf7,0xb7,
4007
0xe6,0x9b,0x2a,0xf3,0xdd,0x51,0xb8,0xe3,0x4c,0x84,0xc9,0x70,0x23,0xd4,0x0c,0x38,
4008
0x4e,0x3c,0x74,0x84,0x8b,0xa0,0x33,0x74,0x85,0x29,0x70,0x13,0xdc,0x0c,0xd3,0x60,
4009
0x39,0xac,0x14,0xab,0x61,0x0d,0xbc,0x04,0x2f,0xc3,0xba,0x80,0xf9,0xee,0xc4,0x71,
4010
0x36,0xc1,0x5e,0xf8,0x1a,0xbe,0x81,0x22,0x11,0x8e,0x73,0x16,0x54,0x80,0x86,0x90,
4011
0x26,0x1a,0x41,0x0b,0x68,0x09,0x97,0x43,0x57,0xe8,0x03,0x03,0x60,0x20,0x0c,0x12,
4012
0x83,0xf5,0xdd,0xee,0xdb,0xe2,0x1d,0xc8,0x81,0xed,0xb0,0x0b,0x3e,0x81,0xdd,0xf0,
4013
0x29,0xec,0x81,0xbd,0xf0,0x25,0x7c,0x05,0x5f,0xc3,0x3e,0xf8,0x01,0x7e,0x84,0x83,
4014
0xf0,0xab,0x28,0x12,0xe9,0x52,0x54,0x14,0x83,0x9a,0x10,0x07,0x2d,0xa0,0x15,0x3c,
4015
0x0a,0x8f,0xc1,0x7c,0x58,0x20,0x56,0xc1,0x2b,0xb0,0x01,0xf6,0xc2,0xe7,0x70,0x00,
4016
0xbe,0x85,0xef,0xe0,0x47,0xf1,0xb3,0x70,0xf2,0x39,0x4e,0x49,0x28,0x05,0x65,0xe0,
4017
0x2c,0x51,0x16,0xa2,0xe1,0x3c,0x51,0x09,0xaa,0x40,0x55,0x71,0x3e,0xc4,0x40,0x1a,
4018
0x5c,0x04,0x9d,0xa1,0x0b,0x74,0x85,0x2b,0x61,0x10,0x4c,0x86,0x1b,0x60,0x2a,0xdc,
4019
0x05,0x0f,0xc2,0x4c,0x58,0x0f,0xaf,0x88,0x0d,0xf0,0x11,0xec,0x04,0x7f,0x14,0xdd,
4020
0x4c,0x84,0x43,0x2a,0xd4,0x11,0x75,0x45,0x3d,0x51,0x5f,0x34,0x80,0x34,0x68,0x04,
4021
0xcd,0xa0,0x39,0x5c,0x00,0xad,0x44,0x6b,0x68,0x03,0x99,0xa2,0x2d,0x74,0x82,0x8b,
4022
0x20,0x0b,0xba,0x41,0x77,0xe8,0x09,0x03,0x61,0xb0,0x18,0x02,0xe3,0x60,0xbc,0x98,
4023
0x00,0x13,0x61,0x12,0xdc,0x0c,0x53,0x21,0x1b,0x6e,0x87,0xd9,0xf0,0x04,0xcc,0x87,
4024
0x85,0xe2,0x59,0x58,0x0a,0xcb,0xc4,0x72,0x61,0xbe,0xdf,0x5e,0x05,0xab,0xe1,0x25,
4025
0x58,0x07,0xeb,0xf5,0x4d,0xb7,0xf9,0x9e,0xfb,0x35,0xf1,0xba,0x78,0x57,0xe4,0xc0,
4026
0x07,0xb0,0x1d,0x3e,0x82,0x8f,0x61,0x27,0xec,0x86,0xaf,0x61,0x1f,0xec,0x87,0x83,
4027
0xe2,0x17,0xe1,0xcb,0x4f,0xbd,0x42,0x98,0x08,0x40,0x7e,0x28,0x0c,0x45,0xa0,0x38,
4028
0x54,0x85,0x6a,0x10,0x07,0x09,0x90,0x08,0xc9,0x90,0x02,0xb5,0x21,0x15,0xea,0x89,
4029
0x06,0x90,0x06,0x8d,0x20,0x1d,0x32,0xa0,0x19,0xb4,0x84,0x56,0xd0,0x56,0x74,0x86,
4030
0x4b,0xe0,0x32,0xd1,0x13,0x06,0xc2,0x20,0x18,0x0c,0x43,0x60,0x18,0x0c,0x17,0xe3,
4031
0x61,0x02,0x4c,0x14,0x93,0xe0,0x16,0x98,0x0a,0xd3,0xe0,0x76,0x98,0x0d,0x4f,0xc0,
4032
0x7c,0x58,0x08,0x8b,0x60,0x31,0x2c,0x85,0x65,0x62,0xb9,0x58,0x01,0xab,0x60,0x35,
4033
0xbc,0x0c,0xeb,0x60,0x3d,0xbc,0x22,0x36,0xc2,0xab,0xf0,0x9a,0xd8,0x24,0x76,0xc0,
4034
0x47,0xf0,0x31,0xec,0x84,0xdd,0xf0,0x35,0xfc,0x20,0x7e,0x84,0x5f,0xc1,0x57,0xc0,
4035
0xc5,0x0f,0x61,0x10,0x80,0x82,0x50,0x18,0x8a,0x40,0x71,0xa8,0x0a,0xd5,0x20,0x0e,
4036
0x12,0x20,0x11,0x92,0x21,0x15,0xea,0x89,0xfa,0xa2,0x81,0x68,0x28,0xd2,0x44,0x23,
4037
0x68,0x02,0x19,0xfa,0xbe,0xbf,0xa5,0xbe,0xef,0x6f,0x25,0xda,0xe9,0xdb,0xff,0x4e,
4038
0xe2,0x12,0xb8,0x14,0x2e,0x87,0x2c,0xe8,0x06,0xdd,0xa1,0x27,0x0c,0x84,0xc1,0x62,
4039
0x82,0x98,0x28,0x26,0xc1,0x8d,0x70,0x2b,0x64,0xc3,0x6d,0x30,0x1d,0x66,0xc0,0x3d,
4040
0x70,0x9f,0x78,0x00,0x1e,0x84,0x87,0xe1,0x11,0x98,0x0d,0x4f,0xc0,0xd3,0xb0,0x54,
4041
0xeb,0x0b,0xac,0x84,0x55,0x62,0x35,0xac,0x81,0xb5,0xb0,0x5e,0x6b,0x11,0x98,0x75,
4042
0x08,0x5e,0x13,0x9b,0xc4,0xbb,0x62,0x37,0x7c,0x9d,0xfb,0x05,0x9c,0x8b,0x0f,0xc2,
4043
0x20,0x5c,0x04,0xa0,0x20,0x9c,0x01,0x45,0xa0,0x18,0x54,0x85,0x6a,0x90,0x0a,0xf5,
4044
0x44,0x7d,0xd1,0x00,0xd2,0xa0,0x11,0x34,0x81,0xa6,0x5a,0xf7,0xa0,0x05,0xb4,0x82,
4045
0x0e,0x05,0xdd,0xb5,0x10,0x2e,0x82,0x8b,0xe1,0x12,0xb8,0x14,0xba,0x42,0x16,0x74,
4046
0x83,0xee,0xd0,0x13,0x06,0xc2,0x38,0x31,0x5e,0x4c,0x80,0x89,0x30,0x09,0x6e,0x86,
4047
0x5b,0x21,0x1b,0x6e,0x83,0xd9,0xf0,0x04,0x2c,0x82,0xc5,0xb0,0x14,0x96,0x89,0xe5,
4048
0x62,0x85,0x58,0x29,0xcc,0x5a,0x0c,0x2f,0xc1,0x5a,0xb1,0x4e,0xeb,0x30,0x6c,0xd0,
4049
0x3a,0x0c,0xaf,0xc2,0x6b,0x5a,0x97,0xc1,0xac,0xd1,0x90,0x03,0x1f,0xc2,0x0e,0xf8,
4050
0x08,0x3e,0x86,0x9d,0xb0,0x1b,0xbe,0x86,0xfd,0xf0,0x0d,0x1c,0x10,0x4e,0x21,0xea,
4051
0x14,0xfc,0x10,0x06,0xe1,0x85,0xcc,0xc7,0x86,0xd4,0x27,0x14,0x81,0x62,0x50,0x07,
4052
0xea,0x42,0x3d,0xa8,0x2f,0xcc,0x7a,0x0f,0x69,0xd0,0x08,0x9a,0x40,0x53,0x68,0xa6,
4053
0x35,0x21,0xcc,0x7a,0x10,0xad,0x44,0x6b,0xd1,0x1e,0x3a,0x6a,0xbd,0x08,0xc3,0xe5,
4054
0x90,0x05,0xdd,0xa0,0x3b,0xf4,0x84,0x81,0x30,0x06,0xae,0x85,0xf1,0x62,0x02,0x4c,
4055
0x84,0x49,0x70,0x27,0xdc,0x03,0x0b,0x60,0x11,0xbc,0x00,0xcb,0xc5,0x2a,0x58,0xab,
4056
0x75,0x26,0x36,0x68,0xfd,0x89,0x37,0x61,0x33,0xbc,0x05,0xef,0x88,0xad,0x5a,0x93,
4057
0x62,0x37,0x7c,0x0d,0xdf,0xc0,0x01,0x53,0x07,0x67,0x30,0x2e,0x21,0x5e,0x24,0x40,
4058
0x22,0x24,0x41,0x1d,0x48,0x83,0x20,0x34,0x15,0x19,0xd0,0x1a,0x32,0xa1,0x33,0x8c,
4059
0x87,0x09,0x70,0x9d,0xb8,0x1e,0x6e,0x84,0x9b,0xe1,0x61,0x78,0x54,0x3c,0x0e,0xf3,
4060
0x61,0x81,0x58,0x08,0x8b,0xe0,0x19,0x58,0x06,0xcb,0xc5,0x2a,0x78,0x09,0xd6,0x8a,
4061
0xf5,0xf0,0x3a,0x6c,0x82,0xf7,0x20,0x07,0xb6,0x43,0xee,0x57,0xa1,0x70,0x26,0x94,
4062
0x81,0x0a,0x70,0x3e,0x24,0x8b,0x5a,0x22,0x55,0x34,0x80,0x86,0x90,0x06,0x19,0xd0,
4063
0x1c,0xfa,0xc1,0x60,0xb8,0x06,0xae,0x15,0xe3,0xe0,0x3a,0xb8,0x1e,0x26,0xc3,0x14,
4064
0xb8,0x19,0x6e,0x81,0xbb,0x60,0x06,0x2c,0x83,0xb5,0xc2,0x7c,0x96,0x5a,0x0d,0xaa,
4065
0x43,0x0d,0x88,0x81,0x38,0x88,0x17,0x09,0x50,0x0b,0x6a,0x8b,0x54,0xa8,0x03,0x75,
4066
0xa1,0x1e,0xd4,0x87,0x06,0xd0,0x50,0xa4,0x41,0x73,0xc8,0x84,0x0e,0xd0,0x11,0x3a,
4067
0xc1,0x45,0xd0,0x19,0x2e,0x86,0x4b,0xe1,0x32,0xe8,0x0a,0x59,0xa2,0x1b,0x5c,0x01,
4068
0x3d,0xa0,0x27,0xf4,0x82,0xfe,0x30,0x00,0x06,0xc1,0x60,0x18,0x06,0xc3,0x61,0x3c,
4069
0x4c,0x10,0x13,0xe1,0x3a,0x98,0x04,0xd7,0xc3,0x64,0xb8,0x19,0x6e,0x11,0xb7,0x8a,
4070
0xa9,0x22,0x1b,0x66,0xc0,0x3d,0x70,0x1f,0xdc,0x2f,0x66,0xc2,0xcb,0xb0,0x4e,0xbc,
4071
0x26,0x36,0xc1,0x8f,0x70,0x50,0xfc,0x0c,0xbf,0x9a,0x4f,0x79,0x8b,0x32,0x6e,0x8a,
4072
0x31,0x6e,0xa0,0x15,0x64,0x42,0x47,0xb8,0x48,0x5c,0x0c,0x97,0x42,0x57,0x98,0x02,
4073
0x37,0xc2,0x2d,0x90,0x0d,0xf3,0x61,0x21,0x2c,0x86,0xe7,0x60,0x05,0xac,0x12,0x6b,
4074
0xe0,0x65,0x58,0x0f,0xef,0xc0,0x56,0x28,0x52,0xdc,0x7c,0x6e,0xcb,0xf5,0x1d,0x9c,
4075
0x09,0x17,0xc3,0xa5,0x70,0x39,0xf4,0x81,0xc1,0x30,0x0e,0xa6,0xc2,0x4c,0xf8,0x0e,
4076
0xbe,0x87,0x9f,0xc1,0x57,0x82,0x7e,0x52,0x8a,0x31,0x0a,0xd7,0xc2,0x78,0xb8,0x07,
4077
0x66,0xc2,0x5e,0xf8,0x0a,0xf6,0xc1,0x7e,0xf8,0x1e,0x9c,0xd2,0x14,0x0d,0x8a,0x41,
4078
0x09,0x28,0x29,0xca,0x43,0x3c,0x24,0x40,0x22,0x24,0x89,0x34,0x68,0x0b,0x17,0x42,
4079
0x3b,0xe8,0x0a,0xfd,0x60,0x00,0x0c,0x82,0x21,0x30,0x14,0xc6,0xc1,0x22,0x78,0x06,
4080
0x16,0xc3,0xb3,0x62,0x09,0x2c,0x87,0x15,0xf0,0x32,0xac,0x15,0xeb,0x60,0x3d,0xbc,
4081
0x02,0x5b,0xe0,0x5d,0x91,0x23,0x3e,0x10,0x3b,0xe0,0x33,0x28,0x70,0x26,0x53,0x22,
4082
0x14,0x16,0x45,0xa0,0x0c,0x54,0x80,0x74,0x68,0x2c,0x9a,0xc0,0x28,0x18,0x07,0xd7,
4083
0xc1,0x24,0xb8,0x1e,0x26,0xc3,0x6c,0x98,0x23,0x9e,0x10,0xf3,0xe1,0x3b,0x70,0xca,
4084
0x38,0x4e,0x39,0xa8,0x00,0x15,0x21,0x1a,0x2a,0x43,0x15,0xa8,0x0a,0xe7,0x43,0x75,
4085
0x88,0x83,0x78,0x48,0x10,0x89,0x50,0x1b,0x52,0xa1,0x2e,0x34,0x85,0x36,0x90,0x09,
4086
0xfd,0x61,0x10,0x0c,0x83,0x71,0x30,0x17,0xe6,0xc3,0x2b,0xb0,0x09,0xde,0x83,0xf7,
4087
0x85,0xf9,0x9e,0xba,0x14,0x94,0x86,0x33,0xa1,0x0c,0x9c,0x05,0x65,0x45,0x05,0x68,
4088
0x0f,0x1d,0x44,0x47,0xd1,0x49,0x5c,0x04,0x97,0x41,0x57,0x91,0x25,0xba,0x89,0xee,
4089
0x70,0x05,0xf4,0x80,0x7e,0xd0,0x1f,0x86,0xc0,0x50,0x18,0x0b,0xd7,0x8a,0x71,0x70,
4090
0x03,0x64,0xc3,0x0c,0x78,0x5c,0xcc,0x87,0xe5,0xb0,0x12,0xf6,0x99,0x6f,0xbf,0xcb,
4091
0x72,0x5e,0x32,0xeb,0xfa,0x88,0x00,0x24,0x42,0x92,0x48,0x16,0x29,0x50,0x47,0x6b,
4092
0x04,0x19,0xea,0x89,0xfa,0x5a,0x1f,0x28,0x5d,0x98,0x35,0x82,0x9a,0x40,0x10,0x2e,
4093
0x80,0x4c,0xe8,0x0c,0x7d,0x61,0x28,0x8c,0x83,0xf1,0x30,0x41,0x4c,0x84,0x99,0x30,
4094
0x4b,0x3c,0x04,0x8f,0xc2,0x63,0xf0,0x38,0xcc,0x86,0x39,0xf0,0x84,0x98,0x0b,0x4f,
4095
0xc1,0xd3,0x30,0x0f,0xe6,0xc3,0x52,0x78,0x1e,0x3e,0x81,0xdd,0xe2,0x53,0xb1,0x07,
4096
0x3e,0x83,0xbd,0xf0,0x05,0x7c,0x29,0xbe,0x12,0x5f,0xc3,0x7e,0xf8,0x06,0x0e,0x98,
4097
0x6f,0xd8,0xcf,0xa6,0xcf,0xc0,0x79,0x50,0x1d,0x6a,0x40,0x22,0x24,0x41,0x32,0xa4,
4098
0x40,0x2d,0x48,0x83,0xe6,0xd0,0x0a,0xda,0x40,0x26,0x74,0x86,0x8b,0x61,0x24,0x8c,
4099
0x82,0xab,0x61,0x1c,0xdc,0x08,0xd9,0xf0,0x3c,0x2c,0x87,0x95,0xb0,0x09,0x36,0xc3,
4100
0x5b,0xb0,0x03,0x3e,0x12,0x1f,0xc3,0x1e,0xf8,0x0c,0xbe,0x80,0x2f,0xc5,0x57,0x70,
4101
0x00,0xbe,0x15,0xdf,0xc1,0x7f,0xe0,0xbf,0xe2,0x7b,0xf8,0x01,0x7e,0x14,0xe6,0xfb,
4102
0xf8,0xea,0x50,0x03,0xae,0x84,0xbe,0x30,0x12,0x46,0x89,0xd1,0x70,0x0f,0xdc,0x0b,
4103
0x2b,0x61,0x15,0xfc,0x6a,0xbe,0xa9,0x2f,0xe7,0xae,0x3b,0x64,0xd6,0xe8,0x33,0xeb,
4104
0x0b,0x99,0xb5,0xe3,0xcc,0x3a,0x38,0x66,0xcd,0x3c,0xb3,0xde,0x8d,0x59,0x93,0xcd,
4105
0xac,0x63,0xd3,0x59,0x74,0x11,0x97,0x0a,0xb3,0x96,0xcd,0xd5,0xe5,0xdd,0xb5,0x99,
4106
0xcc,0xba,0x77,0x66,0xed,0x3a,0xb3,0x0e,0xe0,0x0a,0x61,0xd6,0x7e,0x31,0xeb,0xe0,
4107
0x99,0x35,0xe8,0xcc,0xba,0x7e,0x66,0x8d,0xb9,0x2d,0xe5,0xdd,0xb5,0xe4,0xb6,0x95,
4108
0x77,0xd7,0x80,0x33,0xeb,0xf1,0x99,0xb5,0x61,0xcc,0x3a,0x6c,0x66,0x2d,0x37,0xb3,
4109
0x8e,0x5e,0xc1,0x0a,0xcc,0x1b,0xd0,0x10,0xd2,0xa0,0xbd,0x18,0x2c,0xae,0x15,0x53,
4110
0xe1,0x41,0xd8,0x04,0x39,0xf0,0x91,0xf8,0x04,0xf6,0x81,0xff,0x5c,0x97,0x48,0x91,
4111
0x1f,0x8a,0x43,0x49,0x71,0xa6,0x28,0x03,0xe7,0xc0,0x79,0xa2,0xb2,0xa8,0x2a,0xaa,
4112
0x41,0x0c,0xc4,0x8a,0x9a,0x90,0x04,0xc9,0x66,0x6d,0x19,0x48,0x15,0xf5,0xa0,0x21,
4113
0x04,0xa1,0x39,0xb4,0x16,0x5d,0x61,0x02,0x4c,0x84,0xeb,0x60,0x12,0x4c,0x01,0xa7,
4114
0x86,0xe3,0x5c,0x05,0x63,0xe1,0x6a,0xb8,0x06,0x76,0xc1,0xe7,0xf0,0x15,0x7c,0x0d,
4115
0xfb,0xe1,0x1b,0x38,0x00,0x4e,0x8c,0xe3,0x54,0x82,0x2a,0x22,0x46,0xc4,0x41,0x2f,
4116
0x18,0x28,0xae,0x15,0xe3,0xe0,0x4e,0x98,0x09,0x8f,0xc1,0x6c,0x78,0x1a,0xe6,0xc3,
4117
0xb3,0xf0,0x1c,0xac,0x80,0x55,0xb0,0x16,0xd6,0xc3,0xeb,0xb0,0x09,0xde,0x81,0xad,
4118
0xf0,0x21,0xec,0x80,0x5f,0x21,0x10,0xe7,0x12,0x21,0x22,0xc5,0xb9,0x70,0x3e,0x54,
4119
0x83,0x18,0x88,0x85,0x9a,0x10,0x0f,0xc9,0x50,0x1b,0xea,0x40,0x5d,0x51,0x4f,0x34,
4120
0x82,0x3b,0xb5,0x7e,0x89,0x59,0xeb,0xe4,0x5e,0xb8,0x0f,0xee,0xd7,0x3a,0x2e,0x0f,
4121
0x8a,0x59,0x5a,0xe7,0xe4,0x27,0x71,0x50,0xeb,0x9d,0xfc,0x2a,0x02,0xf1,0xa4,0x07,
4122
0xf1,0x70,0x2b,0xcc,0x84,0x95,0xb0,0x0f,0x7e,0x05,0x27,0x09,0x77,0x2b,0xb4,0x35,
4123
0xe7,0xcf,0x99,0xb4,0xbd,0x28,0x05,0x37,0x3f,0x42,0x79,0xe1,0xbf,0xf0,0x3d,0xfc,
4124
0x0c,0xce,0xa3,0x9c,0xbb,0x1e,0xa3,0x1f,0x8a,0x22,0x50,0x1e,0x2a,0xc0,0xf9,0x50,
4125
0x0d,0xaa,0x43,0x1a,0xf4,0x87,0x01,0x62,0xa0,0x18,0x06,0x57,0xc3,0xb5,0x62,0x1c,
4126
0xdc,0x0b,0xf7,0xc1,0xfd,0xf0,0x00,0x3c,0x08,0x33,0xe1,0x13,0xd8,0x0d,0x5f,0xc3,
4127
0x3e,0xd8,0x0f,0xa5,0x1f,0x27,0x3d,0xa8,0x08,0x03,0x61,0x90,0x18,0x0c,0x93,0x61,
4128
0x8a,0xb8,0x09,0x6e,0x85,0xa9,0x22,0x1b,0x3e,0x80,0x8f,0xc5,0x7e,0xf8,0x16,0xbe,
4129
0x83,0xff,0xc0,0x7f,0xc5,0xf7,0xf0,0x03,0xfc,0x28,0x7e,0x02,0xdf,0x6c,0xc6,0x8a,
4130
0x08,0x83,0x00,0x44,0x88,0x48,0xc8,0x0f,0x05,0x44,0x41,0xa8,0x08,0xd1,0x70,0x1e,
4131
0x54,0x82,0xca,0x50,0x45,0xd4,0x10,0x69,0x30,0x14,0xc6,0xc1,0x78,0x98,0x00,0x8b,
4132
0xe0,0x19,0x78,0x11,0x5e,0x82,0x97,0x61,0x13,0xbc,0x07,0x3b,0x60,0x3f,0x7c,0x03,
4133
0xff,0x85,0x9f,0xc4,0xcf,0xf0,0x0b,0xfc,0x2a,0x9c,0x39,0x8e,0x13,0x05,0xf9,0xa1,
4134
0x12,0x54,0x86,0x18,0x88,0x83,0xa6,0x90,0x01,0x6d,0xe1,0x42,0x68,0x07,0x5d,0x61,
4135
0x2c,0x8c,0x83,0x09,0x30,0x51,0x5c,0x07,0x0b,0x61,0x91,0x78,0x06,0x16,0xc3,0xb3,
4136
0xb0,0x14,0x9e,0x87,0x17,0x60,0x19,0x2c,0x87,0x15,0xb0,0x0a,0xde,0x10,0x9b,0xe0,
4137
0x3d,0xd8,0x01,0xbb,0xe0,0x13,0xb1,0x5b,0x7c,0x0a,0x5f,0xc3,0x3e,0xf8,0x01,0x7e,
4138
0x84,0x5f,0xe6,0xb8,0x0f,0x9f,0xab,0xc2,0xf9,0x10,0x0b,0x35,0x21,0x0e,0xe2,0x21,
4139
0x01,0x12,0x21,0x09,0x92,0x21,0x05,0xd2,0x20,0x1d,0x1a,0x8b,0x26,0xd0,0x12,0x2e,
4140
0x10,0xad,0x44,0x26,0x74,0x86,0xae,0x30,0x10,0x06,0x89,0xc1,0x30,0x02,0xc6,0x88,
4141
0xab,0xc4,0x58,0x71,0xb5,0xb8,0x06,0xe6,0xc1,0x7c,0xb1,0x40,0x2c,0x84,0x67,0x60,
4142
0x31,0x3c,0x0b,0x4b,0xe0,0x39,0x58,0x0a,0xcb,0x61,0x05,0xac,0x84,0x55,0x62,0xb5,
4143
0x58,0x23,0xb6,0x41,0x0e,0x7c,0x20,0x76,0xc0,0x5e,0xf8,0x5c,0x7c,0x01,0x5f,0xc2,
4144
0x57,0xf0,0x35,0x7c,0x23,0x0e,0xc0,0xb7,0xf0,0x9d,0xf8,0x8f,0xf0,0xcd,0xa5,0x5f,
4145
0x42,0x14,0x9c,0x01,0x45,0xa1,0x14,0x54,0x80,0xca,0x50,0x15,0x62,0x21,0x0e,0x2e,
4146
0x86,0x4b,0xe0,0x72,0xe8,0x0a,0xbd,0xa1,0x8f,0xe8,0x07,0xfd,0x61,0x10,0xac,0x84,
4147
0x55,0xf0,0x31,0xec,0x84,0x5d,0xf0,0x89,0xd8,0x0d,0x9f,0xc2,0x1e,0xf1,0x19,0xec,
4148
0x85,0x2f,0xc4,0x97,0x62,0x1f,0xfc,0x00,0xce,0x93,0xdc,0xa7,0xbe,0x4b,0x1d,0xc2,
4149
0x5a,0xd8,0x08,0x3f,0x81,0x59,0x44,0xbc,0xff,0x8f,0xa4,0x07,0xef,0x99,0x85,0xc4,
4150
0x7f,0xa2,0x1c,0x50,0x1c,0x4a,0xc3,0x39,0xa2,0x9c,0x28,0x0f,0x55,0xa1,0x1a,0xa4,
4151
0x40,0x6d,0xa8,0x07,0x0d,0x44,0x1a,0x34,0x82,0xc6,0xd0,0x04,0x9a,0xc2,0x02,0xd8,
4152
0x02,0xf5,0x7f,0xa6,0x3f,0xc0,0x54,0xb8,0x0d,0xd6,0xc1,0x3e,0xf8,0xc9,0x2c,0xe8,
4153
0xfd,0x0b,0xd7,0xe3,0x50,0x01,0x6a,0x42,0x22,0x24,0x41,0x2b,0x68,0x03,0x83,0x60,
4154
0x18,0x8c,0x80,0x83,0x50,0xe4,0x57,0xce,0x91,0x70,0x2e,0xd4,0x81,0x86,0xa2,0x11,
4155
0x5c,0x0c,0x3d,0x44,0x4f,0x18,0x08,0x83,0xc4,0x60,0xb8,0x1f,0x1e,0x80,0x07,0x61,
4156
0x26,0xac,0x80,0x35,0xb0,0x0e,0x36,0xc0,0x1b,0xb0,0x19,0xde,0x85,0xf7,0x21,0xe7,
4157
0x57,0xf7,0x8d,0x74,0x01,0x28,0x04,0x95,0xa1,0x2a,0xd4,0x81,0x7a,0x50,0x1f,0x1a,
4158
0x42,0x2b,0xc8,0x84,0x4b,0x61,0x1c,0xfc,0x08,0x69,0x3e,0x9f,0x33,0x0c,0x7e,0x16,
4159
0xe3,0xfc,0x3e,0xe7,0x3e,0x98,0x09,0x9b,0x60,0x87,0x30,0x3f,0x0e,0x51,0x1e,0x62,
4160
0x20,0x0d,0x1a,0x89,0x74,0x68,0x0e,0x2d,0x44,0x26,0x0c,0x87,0x11,0x30,0x06,0xc6,
4161
0xc1,0xfd,0x30,0x13,0x5e,0x84,0xf5,0xf0,0x06,0xbc,0x09,0x6f,0x9b,0x1f,0x9c,0x08,
4162
0xf7,0x39,0x6d,0x20,0x13,0xee,0x87,0x99,0x30,0x07,0xe6,0xc3,0x16,0xd8,0x0a,0x3f,
4163
0x99,0x1f,0x04,0x0a,0xf8,0x9c,0x2a,0x10,0x07,0xdd,0x61,0x10,0x8c,0x81,0xb1,0x70,
4164
0x23,0xdc,0x0c,0xb7,0xc1,0x1d,0x30,0x1d,0xee,0x82,0x59,0xf0,0x30,0x2c,0x80,0x45,
4165
0xb0,0x14,0x5e,0x80,0x65,0xb0,0x0a,0x0e,0x98,0x1f,0xa8,0x88,0xf0,0x39,0x29,0x91,
4166
0x94,0x09,0x3a,0x40,0x57,0xe8,0x05,0xe3,0x60,0x12,0x4c,0x86,0xf9,0xb0,0x10,0x56,
4167
0x9a,0x1f,0xac,0xc8,0xe7,0x73,0x02,0x90,0x4f,0xe4,0x87,0x64,0xa8,0x05,0xb5,0xa1,
4168
0x9e,0x68,0x08,0x1d,0xa0,0x2b,0x8c,0x80,0x71,0xf0,0x00,0xec,0x80,0x6f,0xe0,0x5b,
4169
0xf8,0xce,0xfc,0x80,0x51,0x94,0xcf,0x29,0x09,0x15,0x20,0x15,0xd2,0xa0,0x33,0x8c,
4170
0x83,0x25,0xb0,0x02,0x56,0x9a,0x1f,0xc8,0xc8,0xef,0xe2,0x83,0x30,0x08,0x40,0x04,
4171
0x14,0x84,0xc2,0x50,0x04,0x8a,0x43,0x49,0x28,0x0d,0x65,0x20,0x19,0x6a,0x43,0x1d,
4172
0x68,0x28,0xba,0xc2,0x58,0x18,0x07,0xf7,0xc1,0x2a,0x58,0x07,0xaf,0xc0,0x2e,0xf8,
4173
0x04,0x76,0x9b,0xb4,0x0a,0x70,0x3c,0xa4,0x41,0x07,0xe8,0x0a,0x43,0x60,0x1c,0x4c,
4174
0xcb,0xfd,0xa1,0x0e,0x9f,0xd3,0x0c,0xc6,0xc1,0x42,0x58,0x05,0xdf,0x98,0x1f,0x60,
4175
0x2a,0xe4,0x73,0xa2,0xe1,0x3c,0xa8,0x02,0x71,0x90,0x0a,0x69,0xd0,0x1c,0x5a,0x40,
4176
0x2b,0x68,0x2d,0xda,0x88,0x4c,0xe8,0x01,0x7d,0xa0,0x3f,0x0c,0x14,0x83,0x60,0x12,
4177
0x8c,0x3b,0x83,0x7e,0x01,0x73,0xe1,0x49,0x98,0x0f,0x0b,0x60,0x0d,0xbc,0x04,0x2f,
4178
0x8b,0xb5,0xb0,0x0e,0x36,0xc2,0x1b,0xf0,0x1e,0x7c,0x05,0xfb,0xe0,0x57,0xf3,0x43,
4179
0x50,0x85,0x7d,0xce,0xd9,0x50,0x45,0xc4,0x41,0x10,0x9a,0x42,0x26,0x0c,0x82,0xf1,
4180
0x30,0x01,0x26,0xc1,0x7c,0x78,0x09,0x76,0xc0,0x7f,0xcc,0x0f,0x90,0x14,0x71,0xf1,
4181
0x09,0xbf,0x08,0x83,0x5a,0x50,0x1b,0x9a,0x42,0x4f,0x18,0x08,0x83,0xc4,0x60,0x18,
4182
0x02,0x43,0x61,0x18,0x0c,0x17,0xd7,0xc2,0x78,0x98,0x20,0x26,0xc2,0x3c,0x98,0x0f,
4183
0x0b,0x61,0x11,0x3c,0x0b,0x4b,0xe0,0x39,0x58,0xaa,0x35,0xe9,0xd6,0x88,0x4d,0xb0,
4184
0x07,0xf6,0xc1,0x0f,0x26,0x6f,0x45,0xc9,0x0f,0x84,0x41,0x65,0xad,0x57,0x57,0x1d,
4185
0x6a,0x88,0x18,0x48,0x82,0x14,0x68,0x08,0x4d,0x44,0x10,0x9a,0x42,0x86,0xc8,0x84,
4186
0x21,0x30,0x54,0x8c,0x10,0xe3,0x60,0x3c,0x4c,0x10,0x13,0x61,0x21,0x2c,0x82,0xc5,
4187
0xf0,0x2c,0xac,0x80,0x95,0xb0,0x0a,0x56,0xc3,0x4b,0xf0,0x0a,0xbc,0x0a,0xaf,0x8b,
4188
0x37,0xc4,0x26,0x78,0x0f,0xde,0x17,0x39,0xc2,0xfc,0xd8,0x56,0x51,0x28,0x0e,0xd5,
4189
0xa1,0x06,0xc4,0x42,0x4d,0x88,0x87,0x04,0x48,0x84,0x24,0x91,0x2c,0x52,0xa0,0x16,
4190
0x34,0x10,0x0d,0x21,0x0d,0x1a,0x89,0x71,0x70,0x3d,0x4c,0x11,0x37,0xc2,0x2d,0x30,
4191
0x15,0xee,0x87,0x07,0x61,0x36,0xcc,0x87,0x0f,0x61,0xbb,0xd8,0x01,0x1f,0xc3,0x4e,
4192
0xd8,0x0b,0xfb,0xe0,0x07,0xf3,0x83,0x60,0xc5,0xe9,0x07,0xe0,0x87,0x30,0x08,0x40,
4193
0x41,0x28,0x0c,0x45,0xa0,0x38,0x54,0x85,0x6a,0x10,0x07,0x09,0x90,0x08,0xc9,0x90,
4194
0x0a,0x75,0xa1,0x1e,0xd4,0x17,0x66,0x5d,0xc1,0x86,0x90,0x26,0x1a,0x41,0x13,0xc8,
4195
0x80,0x66,0x5a,0x73,0xb0,0x15,0x64,0x8a,0x4e,0xe2,0x52,0xc8,0x82,0x6e,0xd0,0x1d,
4196
0x7a,0x42,0x3f,0x18,0x04,0xc3,0x60,0x1c,0xdc,0x00,0x37,0x89,0x5b,0x45,0x36,0x2c,
4197
0x86,0x25,0xc2,0xac,0x53,0xf8,0xbc,0xd6,0x31,0x5c,0xa5,0xf5,0x0a,0xbd,0x35,0x0b,
4198
0x5f,0xd6,0x1a,0x86,0x1b,0xe0,0x55,0x78,0x0d,0x5e,0x17,0x6f,0x88,0x4d,0xe2,0x4d,
4199
0xb1,0x59,0x6c,0x11,0x1f,0xc1,0xc7,0xe6,0x07,0x78,0x4a,0xd0,0x6e,0x90,0x0c,0xb5,
4200
0xa0,0x36,0x34,0x84,0x34,0x68,0x04,0xe9,0xd0,0x04,0x82,0xa2,0xa9,0xc8,0x80,0x16,
4201
0x90,0x09,0x9d,0xe1,0x32,0x71,0x39,0x64,0xc1,0x38,0xb3,0x76,0x62,0x09,0x77,0x5d,
4202
0xc5,0x85,0xb0,0x08,0x9e,0x83,0xa5,0xe2,0x79,0x6b,0xad,0x45,0xb3,0xce,0xe2,0x4a,
4203
0x58,0x05,0xab,0xc5,0x1a,0x78,0x11,0x5e,0x82,0x97,0x61,0x9d,0xd8,0x04,0xef,0x99,
4204
0xf8,0x4b,0xfa,0x9c,0xa7,0xb5,0x2e,0xe3,0x02,0x58,0x08,0x8b,0xe1,0x39,0xad,0xd3,
4205
0xb8,0x0c,0x96,0xc3,0x0a,0xb1,0x12,0x56,0xc1,0x56,0xd8,0x06,0x39,0xf0,0x81,0xf9,
4206
0xe1,0xa1,0x52,0xf4,0x65,0x88,0x83,0x04,0x48,0x84,0x3a,0x50,0x17,0xea,0x41,0x7d,
4207
0xd1,0x40,0x34,0x84,0x34,0x68,0x22,0x32,0xa1,0x33,0x8c,0x83,0x27,0x60,0xae,0x78,
4208
0x52,0x3c,0x25,0x9e,0x86,0x79,0x30,0x1f,0x16,0xc3,0xb3,0x62,0x89,0x78,0x4e,0xac,
4209
0x82,0x57,0x60,0x13,0xec,0x34,0x3f,0x6c,0x57,0xda,0xe7,0x9c,0x05,0xe7,0x88,0x72,
4210
0xa2,0xbc,0xa8,0x00,0xe7,0x42,0x45,0xa8,0x04,0x95,0x45,0x15,0xa8,0x0e,0x71,0x90,
4211
0x0a,0x69,0xd0,0xd4,0xfc,0xc0,0xd2,0x99,0xf8,0x43,0x0d,0x88,0x85,0x9a,0x50,0x0b,
4212
0x6a,0x8b,0x54,0xa8,0x03,0x33,0x61,0x3b,0xec,0x80,0xcf,0xe0,0x57,0x88,0x28,0xe3,
4213
0x73,0xa2,0x44,0x41,0x28,0x0e,0x25,0xa1,0x14,0x9c,0x09,0x35,0xcb,0xb8,0xeb,0x63,
4214
0x26,0x43,0x2d,0xad,0x93,0x59,0x17,0xea,0x41,0x7d,0xd1,0x40,0x34,0x14,0x69,0xa2,
4215
0x91,0x48,0x17,0x8d,0x45,0x26,0x74,0x86,0x99,0xf0,0x38,0x3c,0x01,0x9b,0xe0,0x4d,
4216
0xd8,0x02,0x6f,0xc1,0xbb,0xf0,0x3e,0x6c,0x83,0x1c,0xd8,0x0e,0x3b,0xc4,0x47,0x62,
4217
0xa7,0xd8,0x25,0x72,0x7f,0x1c,0x10,0x7c,0x90,0x1f,0x0a,0x40,0x02,0x24,0x42,0x6d,
4218
0x48,0x15,0x75,0x44,0x5d,0x68,0x00,0x19,0x22,0x53,0xb4,0x85,0x8e,0xd0,0x09,0x2e,
4219
0x82,0xce,0xd0,0x05,0x2e,0x81,0x1b,0xe0,0x46,0xb8,0x13,0xee,0x12,0x77,0xc3,0x0c,
4220
0xb8,0x5f,0xcc,0x87,0xef,0x4d,0x1e,0xca,0xba,0x74,0x15,0x59,0xa2,0x1b,0x5c,0x01,
4221
0x3d,0x44,0x4f,0xd1,0x4b,0xac,0x82,0x1d,0xb0,0x0f,0x7e,0x30,0x3f,0x94,0x75,0x36,
4222
0xd7,0x43,0x90,0x1f,0x62,0xa1,0xa6,0x88,0x83,0x14,0xa8,0x0d,0xf5,0xa1,0x81,0x68,
4223
0x28,0xd2,0x44,0x26,0x74,0x86,0x21,0x30,0x15,0x6e,0x83,0xc7,0x61,0x8e,0x78,0x02,
4224
0xe6,0xc3,0x02,0xb1,0x10,0x16,0xc1,0x33,0x62,0x31,0x3c,0x6b,0x7e,0x28,0xf1,0x1c,
4225
0xfa,0x0b,0xe4,0x83,0x28,0x28,0x00,0x71,0x10,0x0f,0x29,0x50,0x47,0xd4,0x83,0xfa,
4226
0xd0,0x10,0x82,0xd0,0x54,0x64,0x88,0x4c,0xe8,0x0c,0x5d,0xa1,0x07,0xf4,0x82,0xde,
4227
0x70,0x25,0xdc,0x00,0x37,0xc2,0xad,0x90,0x0d,0xd3,0xe0,0x76,0xb8,0x03,0xa6,0x8b,
4228
0x3b,0xc5,0x5d,0xe2,0x6e,0x31,0x13,0xe6,0xc0,0x7c,0xd8,0x0a,0xef,0x89,0xf7,0x61,
4229
0x1b,0xec,0x80,0xcf,0x60,0x9f,0xd8,0x2f,0x76,0x94,0xe3,0xfa,0x0a,0x0e,0xc0,0xb7,
4230
0xf0,0x1d,0xfc,0xc7,0xfc,0x10,0x64,0x79,0xfa,0x12,0xf8,0x45,0x98,0x08,0x87,0x22,
4231
0x50,0x0c,0x12,0x21,0x09,0x92,0x21,0x05,0xea,0x40,0x03,0x68,0x08,0x69,0xa2,0x91,
4232
0x48,0x17,0x99,0xd0,0x19,0x2e,0x16,0xf3,0x85,0xf9,0xd1,0xc9,0x19,0xe6,0x07,0xca,
4233
0xce,0xe3,0xfa,0x06,0x86,0xc3,0xb5,0x30,0x0e,0x1a,0x57,0xe2,0x38,0xb8,0xbe,0x32,
4234
0xf5,0x52,0x93,0xfc,0xe7,0xfe,0x40,0x18,0xfd,0x20,0x89,0x34,0x44,0x23,0x68,0x0a,
4235
0x19,0xd0,0x01,0xba,0xc2,0x8f,0xe6,0x07,0x18,0x9b,0xe0,0x6f,0x7e,0x90,0x2b,0x8b,
4236
0xf9,0x26,0xcb,0x5d,0xe7,0xd6,0xac,0x69,0x5b,0x0d,0x6a,0x40,0x0c,0xd4,0x84,0x38,
4237
0x48,0x35,0x3f,0x5c,0xd5,0x9b,0x3e,0x75,0x25,0x71,0xc2,0x65,0xd0,0x15,0xfa,0xc0,
4238
0x20,0x58,0x01,0xab,0xe0,0x15,0xd8,0x04,0x5f,0xc2,0x3e,0xf8,0xd6,0xfc,0x90,0x60,
4239
0x5f,0xe2,0x81,0x38,0x48,0x81,0x34,0x68,0x0c,0x99,0xd0,0x19,0xba,0xc3,0x48,0xb8,
4240
0x1a,0xa6,0x9a,0xfd,0xfd,0xa9,0x0f,0x68,0xac,0x75,0x72,0xfb,0x42,0x3f,0x18,0x04,
4241
0xa3,0x21,0x6d,0x00,0xe5,0x87,0x99,0xf0,0x1c,0xbc,0x00,0x5b,0xcc,0x0f,0x12,0x0e,
4242
0xe4,0x3c,0x05,0x6d,0x44,0xa6,0x68,0x0b,0x93,0x61,0x2a,0xdc,0x06,0xb7,0xc3,0x83,
4243
0xb0,0x03,0x3e,0x82,0x9d,0x62,0x97,0xd8,0x07,0xfb,0xe1,0x1b,0x38,0x00,0xdf,0xc2,
4244
0x7f,0xcc,0x0f,0x63,0x0d,0xa2,0xcf,0xdc,0xcc,0xfc,0x08,0x15,0x6e,0xa1,0xfe,0xe1,
4245
0x1b,0x70,0x6e,0xa5,0x3f,0x4e,0x23,0x3f,0xb0,0x19,0xf6,0xcd,0xe3,0x38,0xf8,0x0e,
4246
0x7e,0x82,0x9f,0xe1,0x17,0xf3,0x43,0x88,0xf3,0xb9,0x2e,0x59,0xc0,0xdc,0x23,0x32,
4247
0xe1,0x42,0xe8,0x20,0xae,0x80,0xde,0x30,0x08,0x7e,0x5a,0xe8,0xfe,0x01,0xdf,0x95,
4248
0x30,0x08,0xc6,0xc2,0x38,0x98,0x02,0xd9,0x30,0x03,0xee,0x87,0x07,0x60,0xdf,0xab,
4249
0xcc,0x07,0x60,0x7e,0x04,0x34,0x06,0xe2,0xa0,0x29,0x54,0x79,0x93,0xf4,0xa0,0x07,
4250
0xf4,0x84,0x5e,0xd0,0x07,0xfa,0xc3,0x10,0xb8,0x0a,0x26,0xc0,0x24,0xb8,0x09,0x9e,
4251
0x80,0xa7,0x20,0x7d,0x33,0xe7,0x3b,0xc8,0x84,0x0b,0xa1,0x0b,0x5c,0x02,0x97,0x8b,
4252
0x71,0x30,0xde,0xfc,0xc0,0xda,0x5b,0x3e,0xa7,0x3d,0x74,0x84,0xfb,0xe0,0x01,0x78,
4253
0x10,0x1e,0x12,0x8f,0xc2,0x63,0x30,0x07,0x9e,0x84,0xa7,0x61,0x29,0xbc,0x20,0x96,
4254
0xc3,0x8b,0xf0,0x32,0x04,0xde,0xf6,0x39,0x91,0x90,0x1f,0x0a,0x41,0x09,0x28,0x05,
4255
0x67,0x43,0x39,0x48,0x85,0xba,0xd0,0x00,0xd2,0xa0,0x09,0x34,0x15,0x2d,0x20,0x13,
4256
0x2e,0x84,0xc7,0xde,0xe1,0x5a,0x12,0x56,0xc1,0x1a,0x78,0x1f,0x72,0xe0,0x47,0x38,
4257
0x08,0x25,0xde,0x25,0x5e,0x48,0x82,0x14,0x68,0x0d,0x99,0x30,0x00,0x06,0xc1,0x14,
4258
0xb8,0x11,0x66,0xc3,0x13,0xb0,0x06,0x5e,0x82,0x8d,0xf0,0x3a,0xfc,0x6a,0x7e,0x18,
4259
0xeb,0x7d,0x8e,0x85,0xba,0xd0,0x0f,0x86,0x8b,0xeb,0xc4,0xbd,0xf0,0x20,0xcc,0x82,
4260
0x79,0xe6,0x07,0xa6,0xb6,0x33,0x2f,0x42,0x7e,0x51,0x00,0xae,0x85,0x71,0x30,0x1e,
4261
0xb2,0xe1,0xce,0xff,0x6b,0xef,0x4c,0xe0,0xa4,0xa8,0xee,0x3c,0xfe,0xaa,0xa7,0xa7,
4262
0x69,0x18,0x04,0xa3,0xa2,0x20,0x1e,0x38,0x2a,0x08,0x82,0x8c,0x80,0xdc,0xb7,0xc8,
4263
0x20,0x04,0x15,0x0f,0x90,0x10,0x47,0x33,0x68,0x8c,0x57,0x38,0xbd,0x12,0x13,0x39,
4264
0x44,0xa3,0x46,0xd1,0x64,0x13,0xa3,0x6e,0x62,0xb2,0xf9,0xe4,0xc0,0x2b,0x44,0x3c,
4265
0xd0,0x20,0x20,0xa2,0x22,0x8a,0x12,0x35,0x9a,0xcd,0x9a,0x15,0x01,0x0d,0x06,0x61,
4266
0x70,0x35,0xd9,0x68,0xb2,0xb2,0xdf,0xea,0xfa,0xbf,0xee,0xd7,0xd5,0x55,0x5d,0xd5,
4267
0xd7,0x1c,0x4c,0x3f,0xf8,0xce,0x4c,0x77,0xd7,0xf1,0xea,0xd5,0xab,0x57,0xbf,0xfa,
4268
0xff,0x7f,0x55,0x0d,0x9b,0x60,0xaf,0xfd,0x05,0x5a,0x5b,0x18,0x4f,0x21,0x0e,0x9d,
4269
0xa1,0x2b,0x1c,0x05,0x47,0xc3,0x31,0xd0,0x1d,0x7a,0x41,0x0d,0x5c,0x01,0x4b,0x05,
4270
0xfb,0xcb,0x93,0x7a,0x43,0x0d,0x0c,0x84,0x41,0x30,0x02,0x46,0xc3,0xa9,0x70,0x9a,
4271
0x70,0xc7,0x56,0xf6,0x33,0x3c,0x2c,0xac,0x85,0x9d,0xf0,0x21,0x34,0xc0,0x1e,0xf8,
4272
0x14,0x36,0x6f,0x47,0x77,0xc3,0x4e,0xe1,0x43,0x68,0x80,0x3d,0xf0,0x29,0x6c,0x7e,
4273
0x8f,0xe3,0x1c,0x76,0x43,0x03,0xec,0x11,0x3e,0x82,0xcf,0x60,0xed,0xfb,0xe8,0x79,
4274
0xd8,0x02,0x5b,0x61,0x9b,0xb0,0x1d,0xde,0x83,0xf7,0x85,0xbf,0xc0,0x2e,0xd8,0x0d,
4275
0x0d,0xb0,0x07,0x3e,0x81,0xbf,0x09,0x9f,0x0b,0x7b,0x85,0x2d,0x7f,0x61,0x3e,0xd8,
4276
0x01,0x3b,0x61,0x17,0xec,0x86,0x3d,0xf0,0xb9,0xfd,0x85,0x8e,0x3b,0xd8,0x67,0xb0,
4277
0x19,0xde,0xb4,0xbf,0xd8,0xf6,0x03,0xc6,0x12,0x18,0x07,0x13,0x61,0x92,0x70,0x06,
4278
0x4c,0xb7,0xbf,0x28,0x71,0x37,0xe3,0x37,0x54,0xc2,0x91,0x70,0x14,0x54,0xc3,0x31,
4279
0x42,0x0f,0xa1,0x27,0xf4,0x83,0x01,0x30,0x08,0x86,0x08,0xc3,0x84,0xb1,0x42,0xad,
4280
0x70,0xaa,0x30,0x49,0x98,0x0c,0xa7,0xc3,0x14,0x38,0x13,0xce,0x16,0xa6,0x09,0xd3,
4281
0x85,0x19,0xc2,0x79,0xc2,0xf9,0xc2,0x57,0xa0,0x1e,0x2e,0x14,0x2e,0x86,0x4b,0xe1,
4282
0x72,0x98,0x0b,0xf3,0xe1,0x6a,0xb8,0x16,0xae,0x83,0x6f,0x0b,0x0b,0xe0,0x66,0xb8,
4283
0x15,0xee,0x85,0x9f,0xc1,0xcf,0xe1,0x17,0xb0,0x0c,0x1e,0x80,0xdf,0xc1,0x9e,0x7f,
4284
0xb2,0x5f,0xed,0x2f,0x6e,0x53,0x11,0xf5,0xce,0x2f,0x23,0x4a,0xfd,0x2a,0xa2,0x8e,
4285
0x58,0x19,0x51,0xdd,0xe0,0xa1,0x57,0x22,0x6a,0x39,0x6c,0xd9,0x19,0x51,0x7b,0xe0,
4286
0x3c,0xdb,0x10,0xfc,0x8f,0x88,0x3a,0xfc,0x33,0xc7,0x18,0x3c,0xf1,0xc0,0x0a,0xae,
4287
0x8d,0x2a,0xd4,0xb5,0x03,0xec,0x2f,0x23,0xaa,0x50,0xa3,0xfe,0x55,0x91,0x30,0xd8,
4288
0x34,0x80,0xf6,0x37,0xfb,0xf9,0x9a,0x9b,0xca,0xcf,0x9c,0xaf,0x8f,0x39,0xac,0x7f,
4289
0x39,0xac,0x6f,0xd9,0xed,0x47,0xf6,0xf3,0x21,0x6b,0xdf,0xb1,0xdb,0x6f,0xac,0xfd,
4290
0xc5,0xda,0x4f,0xec,0xe7,0x23,0xd6,0xfe,0x61,0xed,0x1b,0xd6,0x7e,0x61,0xed,0x13,
4291
0x76,0xfb,0x83,0xb5,0x2f,0x58,0xfb,0x81,0xb5,0x0f,0x58,0xfb,0x7f,0xb5,0xef,0xd7,
4292
0xcf,0xef,0xeb,0xf6,0xf9,0x6a,0x3f,0xaf,0xf6,0xed,0x6a,0x3f,0xae,0xf6,0xe1,0xba,
4293
0x7d,0xb7,0xb9,0xfa,0x6c,0xb5,0xbf,0x56,0xfb,0x66,0xdd,0x7e,0x59,0xb7,0x3f,0x36,
4294
0x5f,0x1f,0xac,0xdb,0xd7,0xaa,0x7d,0xac,0xb9,0xfa,0x55,0xb5,0x4f,0xd5,0xed,0x3b,
4295
0xd5,0x3e,0xd3,0x5c,0xfd,0xa4,0xda,0x47,0xea,0xf6,0x7f,0x6a,0xbf,0x67,0xb1,0x7d,
4296
0x9e,0xda,0xb7,0x19,0xe4,0xc7,0xd4,0x3e,0x4c,0x3f,0x7f,0xa5,0xf6,0x53,0x86,0xf5,
4297
0x4f,0x6a,0xdf,0xa4,0xdb,0xf7,0xa8,0x7d,0x8e,0x7e,0x7e,0x46,0xed,0x63,0x74,0xfb,
4298
0x13,0xb5,0x2f,0x51,0xfb,0x10,0xc3,0xfa,0x0e,0xb5,0x7f,0x50,0xfb,0x06,0xdd,0x7e,
4299
0xc1,0x5c,0xfd,0x81,0xda,0x17,0xe8,0xe7,0x07,0x74,0xfb,0xff,0xdc,0x7e,0x3e,0xed,
4300
0xd7,0xd3,0xbe,0x3c,0xed,0xab,0xd3,0x7e,0x3a,0xed,0x9f,0xd3,0xbe,0x39,0xed,0x97,
4301
0xd3,0x3e,0x39,0xed,0x8f,0xd3,0xbe,0xb7,0x96,0xe6,0x6b,0x2b,0xb6,0x8f,0x4d,0xfb,
4302
0xd6,0xb4,0x4f,0xcd,0xed,0x4f,0xd3,0xbe,0x34,0xb7,0xbf,0x2c,0x57,0xdf,0x98,0x9f,
4303
0x5f,0x2c,0xc8,0xe7,0xa5,0x7d,0x5d,0xda,0xbf,0xa5,0xfd,0x54,0xda,0x2f,0xa5,0xfd,
4304
0x4e,0xda,0xcf,0xa4,0xfd,0x49,0xda,0x97,0xa4,0x7d,0x45,0xda,0x2f,0x14,0xd6,0x27,
4305
0xa4,0x7d,0x40,0xda,0xff,0xa3,0x7d,0x3f,0xf9,0xfa,0x7c,0x9a,0xab,0xbf,0xc7,0xcf,
4306
0xc7,0xd3,0xd2,0xfd,0x3a,0xb9,0xfa,0x74,0x8a,0xe5,0xcf,0x09,0xf2,0xe5,0x84,0xf5,
4307
0xe1,0x04,0xf9,0x6f,0x9a,0xca,0x77,0xe3,0xe7,0xb7,0xf1,0xf3,0xd7,0xb8,0x7d,0x35,
4308
0x4d,0xe5,0xa7,0xd1,0x3e,0x1a,0xed,0x9f,0xd1,0xbe,0x19,0xed,0x8b,0xd1,0x7e,0x18,
4309
0x3f,0xbf,0x8b,0xf6,0xb7,0x68,0x5f,0x8b,0xf6,0xb1,0x68,0xdf,0x8a,0xf6,0xa1,0x68,
4310
0xff,0x89,0xdb,0x77,0xe2,0xf6,0x9b,0x68,0x1f,0x89,0xf6,0x8f,0x04,0xf9,0x44,0xb4,
4311
0x1f,0x44,0xfb,0x40,0xb4,0xff,0x43,0xfb,0x3e,0xb4,0xdf,0x23,0xc8,0xe7,0xe1,0xf6,
4312
0x73,0x94,0xda,0xbf,0x51,0xa8,0xff,0xa2,0x54,0xbe,0x0b,0xb7,0xaf,0x42,0xfb,0x29,
4313
0xb4,0x8f,0xa2,0xb9,0xf8,0x27,0xdc,0xbe,0x89,0x5c,0xfd,0x12,0xb9,0xfa,0x24,0xca,
4314
0xfe,0x08,0x6f,0x7f,0x84,0x9f,0x0f,0x22,0xc8,0xf7,0x50,0xa8,0xdf,0x21,0xc8,0xd7,
4315
0xe0,0xe7,0x67,0x08,0xf2,0x31,0x68,0xff,0x82,0x9f,0x6f,0x41,0xfb,0x15,0xdc,0x3e,
4316
0x05,0xed,0x47,0xd0,0xbe,0x03,0xed,0x37,0xd0,0xfe,0x02,0xed,0x1b,0xd0,0x3e,0x01,
4317
0xed,0x03,0x70,0xe7,0xff,0x75,0xde,0x5f,0xe7,0xf9,0x75,0x3e,0x3f,0x28,0x5f,0xaf,
4318
0xf3,0xee,0xb9,0xe6,0xdb,0x73,0xcd,0x9f,0xeb,0xbc,0xb9,0xce,0x87,0xeb,0x3c,0x78,
4319
0xd8,0x7c,0xb7,0xce,0x53,0xeb,0xfc,0xb4,0xce,0x4b,0xeb,0x3c,0xb3,0x3b,0xaf,0xec,
4320
0xce,0x0b,0xeb,0x7c,0xb0,0xce,0xef,0xea,0xbc,0xae,0xce,0xd3,0xea,0xfc,0xac,0xce,
4321
0xb3,0xea,0xbc,0xaa,0x3b,0x2f,0xaa,0xf3,0x9e,0x61,0xf3,0x9d,0x3a,0x8f,0xa9,0xf3,
4322
0x97,0xee,0x3c,0xa5,0x3b,0xff,0xa8,0xf3,0x8e,0x3a,0xdf,0xa8,0xf3,0x8b,0x3a,0x9f,
4323
0xa8,0xf3,0x86,0x7e,0xf9,0x41,0x9d,0xef,0x73,0xe7,0xf9,0x74,0xfe,0x4e,0xe7,0xed,
4324
0xfc,0xf2,0x6f,0x3a,0xbf,0xe6,0x97,0x4f,0xd3,0xf9,0x31,0xbf,0xbc,0x98,0x3b,0x0f,
4325
0xa6,0xf3,0x5d,0xee,0x3c,0x57,0xa1,0x79,0x2a,0x9d,0x9f,0xf2,0xcb,0x4b,0xb9,0xf3,
4326
0x4e,0x3a,0xdf,0xa4,0xf3,0x4c,0x3a,0xbf,0xa4,0xf3,0x4a,0x61,0xf3,0x49,0x41,0x79,
4327
0x24,0x9d,0x3f,0xf2,0xcb,0x17,0x35,0xf7,0xfc,0x50,0x6b,0xcb,0xcf,0xe4,0x9a,0x67,
4328
0xd1,0xf9,0x13,0x9d,0x37,0xd1,0xf9,0x12,0x77,0x9e,0x44,0xe7,0x47,0xdc,0xf9,0x10,
4329
0x9d,0xff,0xd0,0x79,0x0f,0x77,0xbe,0x43,0xe7,0x39,0x74,0x7e,0x43,0xe7,0x35,0xf2,
4330
0xcd,0x67,0xe8,0x3c,0x86,0xce,0x5f,0x94,0xf3,0x16,0x4e,0xde,0xa2,0x78,0xf9,0x8a,
4331
0x48,0xe2,0x9b,0x58,0xe3,0x6d,0xdb,0x55,0xb5,0xdf,0xaf,0x43,0xc7,0xfd,0xad,0x2f,
4332
0x1c,0x70,0xa0,0x75,0x50,0xa7,0x83,0x0f,0xe9,0xdc,0xe5,0xd0,0xae,0xd6,0x61,0x87,
4333
0x1f,0x71,0x64,0xb7,0xa3,0xaa,0x8f,0xae,0xb6,0xaa,0xab,0x8f,0x39,0xb6,0x7b,0x8f,
4334
0xe3,0x7a,0xf6,0x3a,0xbe,0xb7,0xef,0x93,0xa1,0xfb,0x58,0x25,0x29,0x27,0x58,0x7d,
4335
0x6b,0x4e,0xec,0xd7,0x7f,0x40,0x0e,0xb3,0x9c,0x14,0x3c,0xc9,0xc0,0x41,0x83,0x87,
4336
0x0c,0x1d,0x36,0x7c,0xc4,0xc8,0x51,0xa3,0xc7,0x58,0x63,0x4f,0x1e,0x77,0xca,0xf8,
4337
0xda,0x09,0xa7,0x4e,0x9c,0xf4,0xc5,0xc9,0xa7,0x9d,0x7e,0xc6,0x94,0x33,0xcf,0x3a,
4338
0xfb,0x9c,0xa9,0xd3,0xce,0x9d,0xfe,0x25,0x26,0x9c,0x61,0x7d,0xf9,0xbc,0x3a,0x29,
4339
0xe7,0xdb,0x73,0x5e,0x90,0xbe,0xa0,0xaf,0x58,0x56,0x7d,0x9d,0x6f,0x99,0xe9,0xfc,
4340
0xb2,0xac,0x0b,0x2f,0xaa,0xfb,0xea,0xc5,0x5f,0xcb,0x56,0xa3,0x4b,0x2e,0xe5,0xc7,
4341
0x65,0x75,0xd9,0xca,0xe5,0xd6,0x15,0x5f,0x4f,0xbe,0x98,0xe5,0xfa,0x70,0x76,0xf5,
4342
0x9c,0xb9,0xf3,0xe6,0x5f,0x79,0xd5,0xd5,0xd7,0x5c,0xfb,0x0d,0xcb,0xfa,0xe6,0x75,
4343
0xbc,0xf5,0xad,0x6f,0x5f,0xbf,0xa0,0x6e,0xe1,0xa2,0xc5,0x37,0x2c,0xb9,0xb1,0xae,
4344
0xee,0xa6,0xef,0xdc,0x5c,0x77,0xcb,0xad,0xdf,0xad,0xae,0xae,0xbe,0xed,0xf6,0xa5,
4345
0xd5,0x77,0xdc,0xe9,0xd4,0xab,0x25,0x94,0xef,0x65,0xbc,0xf3,0x7d,0xcf,0xe9,0xfe,
4346
0x2d,0xdb,0x42,0x7e,0x60,0x59,0x3f,0x4c,0xb6,0x95,0x65,0xdd,0x55,0xe7,0xb3,0xfd,
4347
0x3f,0x0a,0xaa,0xcd,0xdd,0x75,0xcd,0xb7,0xe4,0xd2,0xaa,0xf7,0xd4,0x95,0x4b,0xb9,
4348
0x94,0x4b,0xb9,0x94,0x4b,0xb9,0x94,0x4b,0xb9,0x94,0x4b,0x6b,0x2b,0xf7,0xfe,0x7b,
4349
0xeb,0xde,0x7e,0xab,0x75,0x97,0x1f,0x97,0xb7,0x5f,0xca,0xc1,0x9d,0x0e,0x6e,0xdf,
4350
0x29,0xfd,0xc3,0x4e,0x9d,0x78,0x2f,0x1a,0xad,0xaa,0xaa,0x8a,0xda,0xa5,0x22,0x52,
4351
0x11,0x89,0x54,0x26,0x4b,0x24,0xf1,0x66,0x34,0xe6,0x5b,0xc2,0x7c,0x2e,0x2b,0xf2,
4352
0xaf,0x60,0xc4,0x5e,0x7d,0x62,0xfd,0x4c,0x6f,0xd9,0x95,0xa9,0xac,0xb4,0xff,0x8c,
4353
0x56,0xc6,0xb2,0x2d,0x3e,0xcb,0x6a,0x43,0x7d,0x5e,0x2e,0xcd,0xbd,0x24,0x77,0x7d,
4354
0x34,0xad,0x64,0xbe,0x36,0x27,0x71,0x7d,0x48,0x89,0x37,0x72,0xd1,0x55,0x57,0xca,
4355
0xe9,0x86,0x76,0x46,0xdc,0xae,0x17,0x2f,0x54,0x4c,0x79,0x6d,0xa8,0x2a,0x45,0xe3,
4356
0x35,0xa7,0x3d,0x69,0xb4,0x4c,0xf3,0x2f,0xaa,0xa8,0x93,0xb9,0xf6,0x09,0xc3,0x9b,
4357
0xca,0xa9,0x37,0xb5,0xe1,0x9f,0xfc,0x8f,0x3b,0xcf,0x17,0x6f,0xe3,0x5f,0x52,0x1f,
4358
0x1b,0xcf,0x23,0x6f,0x97,0x28,0xd1,0x68,0xdb,0xaa,0xaa,0xb6,0x91,0xb6,0x69,0xc7,
4359
0x43,0xdb,0x1c,0x8b,0x67,0x0d,0xdb,0x25,0x4b,0x55,0xbb,0x76,0xf6,0x44,0x6d,0x1b,
4360
0xa3,0xe8,0x95,0x47,0xf5,0x96,0xc4,0xe3,0x51,0xe7,0x8f,0xd4,0xf9,0xcb,0x6b,0x3e,
4361
0x15,0x58,0xc1,0x2c,0x3b,0x43,0xa9,0x52,0x6f,0x4f,0x62,0x13,0xd2,0x9f,0x27,0xdf,
4362
0x26,0x7c,0x49,0xf5,0x9a,0x36,0xf6,0xc8,0x47,0x2f,0x88,0x67,0x9b,0xd4,0x98,0x3e,
4363
0xf9,0x2a,0x63,0x7d,0x2a,0xdb,0xda,0x98,0xda,0x6c,0x92,0x44,0x7d,0x83,0xb6,0xd4,
4364
0xf6,0xe6,0xdb,0x77,0x21,0xe4,0xde,0x09,0xfd,0x76,0x4b,0xbb,0x30,0x43,0x72,0x3e,
4365
0xc3,0x56,0x2c,0x6e,0x8c,0x5e,0xce,0xdf,0x5e,0xa3,0x59,0xc0,0x0a,0xe2,0xc6,0x60,
4366
0x61,0x9f,0x14,0x94,0xca,0x3e,0xa2,0x28,0xfb,0x94,0xe1,0x4c,0x9c,0x5c,0xbf,0x9e,
4367
0x2f,0x1e,0xd3,0xdd,0x22,0xf1,0x87,0x33,0x93,0xf3,0x71,0xaa,0x54,0x55,0xe9,0x3f,
4368
0xf8,0xcc,0x6e,0x69,0xbd,0x68,0x99,0x25,0x70,0xfd,0xfa,0xbf,0x8a,0xeb,0xc5,0xdb,
4369
0x4b,0x49,0xec,0x33,0xe7,0xfe,0x11,0xa7,0x06,0xba,0xae,0xfa,0x85,0xd1,0x1a,0xa9,
4370
0x7a,0x9a,0xeb,0x97,0x95,0x84,0x5a,0x7f,0xfa,0xf6,0xc7,0x65,0x29,0x71,0xa5,0x62,
4371
0xae,0xef,0x5b,0xc8,0xd8,0xfe,0x2a,0xfd,0x81,0x1c,0xb4,0xb9,0xb7,0xbf,0xb9,0xfe,
4372
0x78,0x7a,0xfb,0x27,0xfb,0x6e,0x96,0xf6,0x4f,0x35,0xb6,0x34,0x80,0xd1,0xfe,0x7a,
4373
0x3d,0x32,0xb3,0xd2,0x7f,0x39,0x9f,0xa4,0x2f,0x47,0xb6,0xce,0x9c,0x2f,0xb5,0xfd,
4374
0x31,0x77,0x2b,0x64,0xe8,0xf2,0xaa,0xa8,0xac,0xdd,0xe9,0xb6,0x41,0xcd,0x9f,0xf9,
4375
0xbe,0x3d,0xaf,0x74,0x74,0xe5,0xec,0x02,0x7d,0x0e,0xb2,0x7b,0x83,0xb4,0x54,0x46,
4376
0xfb,0xeb,0x0a,0x25,0xe5,0x59,0xdc,0xb5,0x8e,0x10,0xeb,0x4f,0xdb,0xff,0xc6,0x7c,
4377
0xf1,0x54,0xdf,0xd3,0x5b,0x9d,0xb9,0xfe,0xb4,0xb6,0x4f,0x74,0xbf,0x70,0xeb,0xf7,
4378
0xd2,0x2d,0xc9,0xe3,0x4f,0xb7,0xbf,0xde,0x2b,0xe9,0x93,0xa9,0x2c,0xcb,0x4c,0xeb,
4379
0x7f,0x69,0xcd,0x14,0x2c,0x2d,0x54,0xaa,0xb3,0xea,0x03,0xcf,0xa9,0x90,0x73,0x64,
4380
0x1a,0xed,0x6d,0x2e,0xd8,0xd5,0x00,0xb9,0x0f,0x7b,0xb1,0xe4,0xf9,0x4e,0xa9,0xaa,
4381
0x74,0x0d,0x17,0xf7,0xe9,0xe3,0x59,0x4a,0x4a,0xf7,0x66,0xd9,0x62,0xe5,0xb5,0xfe,
4382
0xc4,0x51,0xa6,0x27,0xd0,0x75,0x72,0x6d,0x69,0x2c,0x78,0xf5,0xd9,0x76,0x6e,0x96,
4383
0xa1,0x3f,0x9e,0x7e,0xf5,0x19,0xaa,0x1d,0xd3,0xce,0x6c,0xce,0x16,0xe8,0x9f,0x69,
4384
0xad,0xa8,0x0f,0xa7,0xa0,0xa2,0x8c,0x46,0xc9,0xac,0x44,0xc8,0xe6,0xcf,0x51,0xa9,
4385
0xc7,0xe2,0xa9,0x2a,0x67,0x69,0xa4,0xe4,0xc1,0xe1,0xb9,0x8c,0x8c,0x0e,0x95,0xb6,
4386
0x19,0x31,0xd7,0x66,0x85,0x91,0xdb,0x7a,0xd4,0x6b,0xda,0x0b,0x03,0xa5,0xd2,0xbb,
4387
0x6c,0x0e,0xf5,0x09,0x3b,0x7d,0xb8,0xf5,0xa8,0x22,0x6d,0x47,0x41,0x2d,0xa2,0x82,
4388
0xc4,0x95,0x47,0xff,0x4b,0x5d,0x99,0xe7,0x37,0x3c,0x85,0xad,0x9a,0xfe,0x5d,0x0e,
4389
0x04,0x35,0x6d,0x69,0x9f,0x2d,0xc2,0xa3,0x4a,0x78,0x3c,0xfb,0x8e,0x7f,0x5a,0xbd,
4390
0xf9,0x75,0xbf,0x44,0x9f,0xce,0x32,0x41,0x52,0x85,0x64,0x7e,0xae,0x1c,0xad,0x54,
4391
0xc8,0xe9,0x57,0x6a,0xe0,0x3a,0xdd,0xc6,0xd3,0xce,0x1d,0x49,0x7d,0xef,0xa1,0xbc,
4392
0xdc,0xc7,0x57,0x7a,0x28,0xcc,0x8a,0xbb,0xa7,0x6f,0x94,0xf6,0x0f,0x73,0x0d,0x16,
4393
0x8f,0x15,0xb1,0x3e,0xa1,0xdb,0x5f,0x0f,0x61,0xc9,0x9d,0x9e,0x3c,0x29,0x89,0x00,
4394
0x8a,0x3a,0xf1,0xbb,0xdc,0xc6,0x9d,0x3c,0xf7,0x7f,0xf6,0xe9,0x33,0x96,0x97,0xbe,
4395
0x77,0x7d,0x4a,0x96,0xd3,0x77,0x3c,0xff,0xd6,0x4e,0x76,0x50,0x15,0x37,0xfb,0x66,
4396
0xcc,0xa5,0x72,0x0c,0x09,0xef,0xa5,0x54,0x33,0xb7,0x57,0xa9,0x82,0x03,0xb0,0x2e,
4397
0xfd,0x93,0x4f,0x00,0x20,0x1e,0xf3,0x99,0x4b,0x85,0x89,0x73,0xa6,0xcf,0x19,0xbc,
4398
0x76,0x67,0x8e,0x78,0x3c,0x56,0x40,0x8c,0x34,0xae,0xaf,0xbb,0x13,0xcb,0xc8,0x5b,
4399
0xfa,0x27,0xeb,0x9f,0x68,0xc6,0xf0,0x97,0x2c,0x39,0x1c,0x94,0x79,0x9c,0xc4,0xd3,
4400
0x0e,0xa9,0x94,0x42,0x4d,0x53,0xd8,0xa9,0xf8,0x4c,0x32,0x4c,0x13,0x2b,0xed,0xf8,
4401
0xd6,0xb8,0xc1,0xf3,0x82,0xf2,0x11,0xd9,0xf4,0x51,0xae,0x7a,0xca,0xbc,0x66,0x53,
4402
0x81,0x32,0x34,0xcf,0xf6,0x57,0xc9,0x90,0xb9,0x33,0x82,0xa9,0x94,0x78,0x4c,0xab,
4403
0x8d,0x7b,0x7c,0x4b,0x9c,0xf5,0xd2,0xa6,0x57,0xed,0x53,0xc5,0xb2,0xac,0x58,0x1b,
4404
0xbf,0x71,0xb2,0x7d,0xa7,0x43,0xf6,0xef,0xd8,0x61,0xbf,0x48,0x95,0x4e,0x47,0x1a,
4405
0x25,0xe2,0x3f,0xbc,0xb6,0x77,0xbe,0xca,0xf7,0x20,0xdb,0x54,0x9e,0x28,0x95,0xd4,
4406
0xce,0x89,0x3f,0x57,0x54,0xd8,0xd5,0x4b,0xc5,0xa3,0x13,0xaf,0x33,0xc6,0xe3,0xaa,
4407
0x30,0xc5,0x35,0x9e,0xe5,0x32,0xfe,0x49,0x4e,0x2c,0x66,0xae,0x59,0x37,0x6b,0x32,
4408
0x85,0xeb,0xfc,0x73,0x42,0x86,0xae,0x04,0x5c,0x7a,0x92,0x2d,0x16,0x0b,0x79,0x7e,
4409
0xf1,0x52,0x7b,0x51,0x15,0xea,0x8c,0x55,0xea,0x52,0x51,0x15,0x2d,0x97,0xfc,0x54,
4410
0x43,0xae,0x19,0x5c,0xdf,0xc5,0x37,0xc7,0x6d,0xf6,0x8e,0x9f,0x04,0x4d,0x10,0x76,
4411
0xe9,0x95,0x1e,0xa5,0xd8,0x09,0xf3,0x72,0x69,0xe1,0x47,0xdd,0x3e,0xb2,0x1d,0xcd,
4412
0x61,0x94,0x2f,0xea,0x48,0xd6,0xdc,0x4b,0x6a,0x53,0x53,0xfa,0x3f,0xa7,0xed,0x2f,
4413
0x3c,0xbe,0x9a,0x9e,0x99,0x31,0x92,0x5f,0x01,0x17,0xe8,0x99,0xd9,0xb7,0xdc,0x7e,
4414
0x07,0xc9,0xa1,0xc6,0xe8,0xe9,0xd9,0xe2,0xef,0x59,0xe6,0x6d,0x94,0x33,0xd9,0xbe,
4415
0x39,0x52,0x86,0x6f,0xef,0xf6,0x72,0x10,0x04,0x0f,0x10,0xce,0xd5,0x52,0xd4,0xd0,
4416
0xbe,0x09,0xcd,0x5a,0xaa,0xe8,0x98,0xdd,0x35,0x63,0x25,0x75,0x6a,0x45,0xf3,0xba,
4417
0xe8,0x6e,0x84,0x2c,0x4a,0xf1,0x55,0x4d,0x6a,0xf7,0xe7,0xb8,0xf0,0x82,0xeb,0x13,
4418
0x30,0x6d,0xc1,0x32,0xce,0xfd,0x51,0x0b,0x3a,0x23,0x35,0xca,0x6a,0xc2,0x1c,0x03,
4419
0x2d,0xff,0xd4,0xbe,0x8f,0xe8,0x9f,0xfc,0xcf,0x47,0x05,0xe5,0x53,0xc2,0x1e,0x90,
4420
0x05,0xe7,0xcf,0x9d,0x93,0x48,0xd4,0x54,0x1f,0x81,0x99,0x9e,0xa2,0xc7,0x0b,0xd3,
4421
0xb7,0xa5,0xb9,0xf4,0x90,0x68,0xa9,0x3a,0x54,0x56,0x2b,0x54,0x32,0x1a,0x6c,0x44,
4422
0x87,0xbd,0x1b,0x2d,0x91,0x20,0x33,0x66,0xd7,0x41,0xb7,0x7c,0x8f,0xd9,0xa2,0xf4,
4423
0xd7,0x8c,0x8c,0x63,0x66,0x6f,0x0d,0x88,0xf8,0xc6,0xc3,0x77,0xdb,0xac,0x99,0x92,
4424
0xb4,0xe5,0x87,0x3e,0x3c,0x54,0xb0,0x45,0xc0,0x33,0x99,0x91,0xca,0x89,0x64,0x91,
4425
0x0f,0xc6,0xea,0xe3,0x45,0xd0,0x1b,0xa9,0xd4,0x47,0x5a,0x8a,0xd7,0x5c,0x7a,0x3c,
4426
0x96,0xe1,0xb4,0x0a,0xda,0x90,0xfc,0x32,0x6b,0xb1,0x94,0x61,0x28,0xcd,0x4b,0x19,
4427
0xd4,0xd3,0x53,0x35,0x75,0x4f,0x95,0xf9,0x3b,0xfb,0xf5,0x57,0x9e,0xe7,0xe2,0x26,
4428
0xca,0xb7,0xc4,0xf5,0x11,0x1e,0x94,0x5f,0x6c,0x9e,0x25,0xc4,0xf9,0x26,0xaf,0x4d,
4429
0x69,0xfc,0xed,0x6f,0xcc,0xf5,0xa9,0x5c,0xfc,0x6f,0x19,0x6f,0x39,0xe6,0x7a,0xc3,
4430
0x20,0x5f,0xe1,0xe1,0x7b,0x57,0xf6,0x6f,0x95,0xe6,0x82,0x6f,0xdb,0xf8,0xc5,0x7d,
4431
0xc2,0x6e,0x5b,0x2e,0x4d,0xd5,0xf4,0x85,0x37,0x7e,0xbe,0x4b,0x08,0x8e,0x7c,0xa8,
4432
0xcc,0xfb,0x2f,0x3c,0xee,0x7f,0x73,0x4b,0xea,0x5c,0xe3,0x65,0x91,0x68,0x44,0x19,
4433
0x09,0xd1,0xaa,0x68,0x34,0x91,0xd7,0x54,0xd1,0x2a,0xc7,0x70,0xae,0x6f,0xb3,0x69,
4434
0x16,0xc5,0x7e,0x18,0x6d,0x69,0xef,0x6f,0x2d,0xb5,0x86,0xce,0x72,0x02,0x77,0x3e,
4435
0x4d,0x6c,0x1b,0x62,0x35,0xa3,0x7b,0xc8,0xcb,0x90,0x62,0x48,0x79,0xbf,0xa7,0x02,
4436
0xc6,0xf7,0x22,0xfb,0x8f,0x4b,0x70,0x82,0x90,0x5b,0x30,0xf3,0x6b,0xf4,0x62,0x67,
4437
0xd5,0x1c,0xcb,0x42,0xda,0x21,0x18,0x55,0xb9,0x95,0xdc,0x74,0x91,0x6a,0xf2,0x12,
4438
0xba,0xa1,0xf3,0x3c,0xed,0xc7,0x2b,0xfd,0x4b,0xd8,0xf6,0x0a,0x7f,0x35,0x13,0xb6,
4439
0xbe,0x29,0x27,0x46,0x31,0xc2,0xa1,0x5e,0x3e,0xb9,0x92,0xf4,0x97,0x26,0x38,0x44,
4440
0xf3,0xd1,0xeb,0xc5,0x9e,0xce,0x6c,0xd1,0x02,0x95,0x68,0xb6,0x9d,0xab,0xbc,0xc7,
4441
0xd5,0x6c,0x93,0x15,0x5c,0x1f,0x55,0xc8,0xd8,0xe9,0x3f,0x7f,0xe6,0xf2,0xb3,0xf7,
4442
0xbf,0x1c,0xaa,0x91,0x77,0x4f,0xf7,0x2e,0xfa,0x86,0xe8,0x36,0xb9,0xdc,0x49,0x9b,
4443
0xd0,0xfc,0xf6,0x3c,0xca,0xff,0xf3,0xe2,0x94,0x8c,0xdb,0x7c,0xf3,0xdb,0x3e,0x8f,
4444
0xca,0x87,0xb8,0x75,0xd8,0x3e,0xfd,0x04,0x54,0x2d,0x44,0xd5,0x73,0xae,0x5f,0xe8,
4445
0x86,0xf1,0x7e,0x3f,0xc7,0x05,0x39,0xf7,0x5a,0x25,0xb5,0xae,0xde,0x7b,0x2a,0x60,
4446
0xed,0x32,0x7e,0xc7,0xdd,0x9b,0xeb,0xfb,0xba,0xc0,0x0e,0x50,0x50,0xfb,0x39,0x75,
4447
0xf5,0x5c,0x6c,0xde,0xb5,0x12,0x89,0xe2,0xf7,0x79,0x9b,0xbc,0x3b,0x8e,0x51,0x31,
4448
0x8f,0x0d,0x2d,0xb6,0xfe,0x68,0x53,0xec,0x23,0xb5,0xf4,0xeb,0x2f,0xd2,0xfc,0xe1,
4449
0xe3,0x15,0xa6,0x6d,0x34,0xf5,0x3c,0x07,0xf7,0xeb,0x80,0x55,0x3a,0x57,0x8f,0x81,
4450
0xc3,0x9c,0xda,0xc7,0x4a,0xbb,0xec,0x25,0x87,0xfd,0x47,0x0b,0xb6,0xf1,0x6a,0xa1,
4451
0xd4,0x93,0x2b,0xd2,0xae,0xcf,0x7d,0xae,0x78,0x33,0x9e,0x20,0x92,0x63,0xa7,0x0b,
4452
0x7e,0x3e,0x45,0xda,0xe3,0x1e,0x42,0xf4,0xf7,0xe4,0xa8,0x5b,0xf0,0xf1,0x92,0xc3,
4453
0xf4,0x29,0xfd,0x91,0x67,0x86,0xcd,0x3b,0xa9,0xe2,0x97,0x51,0x73,0x25,0x2f,0x62,
4454
0xa6,0x5d,0x3b,0xaf,0x55,0x1b,0xc1,0x7c,0x33,0x96,0x9f,0x45,0xcf,0x29,0xef,0xfb,
4455
0x6b,0x42,0x56,0x20,0xed,0x56,0x8a,0xb8,0x2a,0x48,0x1f,0xa7,0xdd,0x3f,0x97,0x5f,
4456
0x86,0xd3,0x23,0x99,0x25,0xad,0x12,0xea,0x0a,0x2a,0xab,0xfe,0x55,0x01,0x2b,0x4e,
4457
0xde,0x4d,0x23,0x7b,0xb3,0x28,0xd7,0xbf,0xfa,0x3e,0xde,0x80,0x7c,0x56,0xee,0xf9,
4458
0x66,0xa3,0xb1,0x7c,0xf6,0x7f,0xde,0xcf,0xbf,0x88,0x27,0x33,0xa7,0xc9,0xf9,0x5c,
4459
0xcf,0x9f,0x48,0x2e,0x36,0x55,0x03,0xf7,0x3d,0x08,0xe6,0x0a,0x94,0xca,0xe9,0xf1,
4460
0x4a,0xba,0x2f,0xaa,0x54,0xe3,0xc5,0xe5,0xa9,0x2c,0xca,0xbc,0x21,0xa8,0x24,0xd7,
4461
0xbf,0xe6,0xbd,0x50,0x71,0x9f,0x41,0x44,0xa5,0x77,0xf5,0x62,0xad,0x5f,0xdf,0xd7,
4462
0xa4,0x13,0x80,0x71,0xef,0xe3,0xaf,0x65,0x9c,0x1f,0xf3,0xdb,0x7c,0xa5,0xd2,0x36,
4463
0x3e,0x30,0x2f,0x5e,0x82,0xf6,0x37,0x07,0x02,0xef,0xfe,0x9c,0xe9,0xaf,0x28,0x6c,
4464
0xfd,0xc6,0xad,0x94,0xb1,0x78,0xb8,0xfb,0x25,0x83,0x7b,0x42,0xd6,0x6b,0xfc,0xe4,
4465
0x1a,0x53,0x01,0xab,0x82,0x92,0x6d,0x2d,0xbf,0xff,0x99,0xb7,0x15,0xc6,0x9a,0xe7,
4466
0xf1,0x91,0x57,0xf8,0x27,0x4d,0x3b,0xa8,0xc0,0x80,0x8c,0xf3,0xf8,0xa7,0x78,0xca,
4467
0x37,0xa3,0x4a,0x35,0xfe,0xe4,0x93,0x39,0x96,0x5b,0x8b,0x53,0xa6,0x9e,0x6c,0xcb,
4468
0x37,0x7d,0x1d,0xb9,0x3a,0x41,0x3c,0x0c,0x15,0xe6,0xa7,0x05,0x28,0x4a,0xb3,0x3a,
4469
0xa5,0xe9,0x0f,0xca,0xeb,0x7e,0xf1,0xe2,0x97,0xb8,0x9c,0x1f,0x9b,0xee,0xf8,0xf0,
4470
0x9b,0xde,0xf5,0x5a,0xe5,0xb4,0x97,0x54,0xba,0xfc,0x2c,0x5e,0x3e,0xc3,0xef,0x0e,
4471
0x4e,0x15,0x33,0x7a,0x46,0x3c,0x5e,0xec,0xf6,0x53,0x39,0x36,0x40,0xe2,0x79,0x53,
4472
0xa9,0xa7,0x14,0xc5,0xe2,0xd9,0xdb,0x37,0xf4,0xe2,0x9d,0x47,0x87,0x19,0x1d,0xa6,
4473
0x10,0xfd,0xeb,0xa9,0x77,0x5b,0xee,0xa9,0xaa,0x58,0xc7,0x47,0x9a,0x66,0xc9,0x18,
4474
0xa5,0x54,0xe8,0x4e,0x20,0x4f,0xc3,0x88,0x37,0x6a,0x72,0x31,0x16,0xe6,0xf8,0x4f,
4475
0xba,0x0f,0x32,0xef,0xd5,0x76,0x89,0xb0,0x16,0xe2,0xfa,0x6a,0xde,0xfa,0xa2,0xe5,
4476
0xe4,0x13,0x5b,0xf9,0xce,0x2e,0x97,0x7d,0xf0,0x7a,0xb8,0xb0,0xbe,0x56,0xe8,0xc2,
4477
0xe2,0x9e,0xe1,0xd0,0xf2,0x78,0xd0,0x52,0xc6,0x9c,0xd6,0x3e,0x7e,0x85,0xbf,0x26,
4478
0x8b,0xb9,0xae,0xe9,0x5a,0xf9,0x78,0x13,0xf2,0xf9,0x69,0xf9,0xb9,0x6d,0xf2,0x71,
4479
0x83,0x84,0xb3,0x68,0xc5,0xe3,0x69,0xcf,0xf7,0xcb,0xf7,0x19,0x58,0x81,0x7e,0x97,
4480
0xa0,0x5b,0x26,0xfc,0x56,0xde,0x7a,0xce,0x57,0xe5,0xf3,0x75,0x41,0xe3,0x73,0x70,
4481
0xaa,0xaf,0xb1,0xeb,0xef,0x5c,0x5e,0x17,0xd6,0x1b,0xf2,0x7b,0x86,0x74,0xd6,0xed,
4482
0x8b,0xc6,0x3c,0xf2,0x4d,0xad,0x41,0x9f,0x94,0x22,0x7c,0xd6,0x12,0xf5,0x6e,0x49,
4483
0xf5,0x6f,0xa9,0x77,0x5b,0xf9,0x5a,0xb2,0xf8,0xfd,0x2d,0xf7,0xa0,0x67,0xda,0x88,
4484
0x11,0xb4,0x7c,0xef,0x5b,0x8e,0xcb,0xd7,0x43,0xcd,0xf2,0x48,0x6b,0xd2,0xeb,0xad,
4485
0xb4,0xfc,0x43,0x66,0xbc,0xdb,0x8e,0xd4,0x26,0x1e,0x1f,0x59,0xc2,0xd2,0xda,0x9e,
4486
0x4f,0x98,0xba,0xfb,0x43,0xee,0xaf,0x69,0xb1,0x4f,0x37,0xca,0xf2,0xd8,0xa8,0xd0,
4487
0x3b,0x37,0xd7,0xe7,0x29,0xfb,0x4e,0xdf,0xa4,0xe7,0xd3,0x16,0xa6,0x3f,0x9a,0x95,
4488
0xc6,0x08,0x7d,0xd9,0x5b,0x60,0x98,0xd0,0x58,0x80,0xfe,0x6a,0xcf,0x34,0x0b,0x55,
4489
0xf0,0x73,0xb8,0x0b,0xfc,0x8e,0x40,0x9f,0x41,0xa1,0xf0,0xa3,0xd1,0x36,0xdd,0x7a,
4490
0xb6,0x67,0xc8,0xea,0x16,0x5f,0x3f,0xe7,0xf2,0x79,0xa9,0x1f,0xc0,0xd6,0xdc,0x55,
4491
0x6a,0x69,0x0e,0xaf,0xe2,0x2d,0x47,0x8c,0x39,0x2a,0xd3,0x1e,0xaa,0x8a,0xf1,0x50,
4492
0x0e,0x73,0x09,0x69,0x06,0xa0,0xe0,0x05,0x1b,0x35,0x52,0x31,0xa5,0x54,0x91,0xb7,
4493
0xbd,0x5c,0xc2,0xf5,0xa8,0x68,0x1e,0x9f,0xec,0xa3,0x73,0xea,0x27,0xab,0xe7,0x52,
4494
0x0a,0x78,0x6c,0x7e,0xfe,0x0f,0xdb,0x8f,0x7b,0xe6,0xd0,0x32,0x6e,0x5d,0xf6,0xfa,
4495
0x1e,0xb0,0x46,0xd5,0xff,0xe5,0x7c,0x6b,0x53,0xc5,0x7b,0x1a,0x6d,0x63,0x7c,0xbf,
4496
0x6e,0x2e,0x65,0xda,0xd7,0x9f,0x16,0xa1,0xbd,0x82,0xed,0x82,0xcd,0x7a,0xff,0xab,
4497
0x64,0xa3,0x78,0x04,0xe1,0x9d,0xa5,0x95,0x23,0x6c,0x25,0xcd,0xc7,0x16,0xb4,0xff,
4498
0xe2,0x99,0xf9,0xdb,0xaa,0xd6,0xd4,0x7e,0xf1,0x7d,0x30,0x7f,0x9d,0x6b,0x3e,0xdf,
4499
0x1d,0xfe,0xdb,0xc7,0xcf,0x5f,0xf2,0x7c,0xc2,0x78,0xfa,0xf6,0x1b,0x6e,0xdd,0x56,
4500
0x32,0x9e,0x28,0x9f,0x78,0x7f,0xf1,0xee,0xff,0x6e,0xca,0x62,0xdc,0xe6,0x9a,0xab,
4501
0x4c,0x2c,0xc6,0xea,0xf5,0xad,0xc4,0xe9,0xcb,0x73,0x5e,0x95,0xcf,0x68,0xae,0x52,
4502
0x9c,0xe7,0x96,0x35,0x93,0xfa,0xec,0x1b,0xbb,0x23,0x5b,0x1b,0x28,0xfb,0x3f,0x93,
4503
0xa9,0xb4,0xb7,0x12,0x6f,0xca,0xd6,0xb7,0x75,0x7e,0xb4,0x75,0xa6,0x49,0x4d,0x9f,
4504
0x7c,0x2f,0xf1,0xda,0x58,0x8d,0x4a,0x5b,0x48,0xfa,0x62,0x33,0x5b,0x37,0xf9,0x89,
4505
0x2a,0x4a,0xeb,0xbb,0x2f,0xea,0x72,0x0d,0xea,0x35,0xf6,0xb7,0x37,0x04,0x7d,0x75,
4506
0x4c,0xd0,0xeb,0xa0,0x35,0x54,0xa6,0x25,0x84,0x4a,0xf9,0xbc,0xf8,0x22,0x3c,0x09,
4507
0x30,0x1a,0x2b,0x85,0x4a,0xc8,0x5b,0x4f,0x2b,0xcf,0xfc,0xa5,0x57,0xff,0x6a,0xbe,
4508
0xc7,0xff,0xbe,0xfb,0x6d,0x51,0x1e,0xdb,0xa6,0x32,0xef,0x47,0xde,0x97,0xbf,0x2d,
4509
0xcb,0xbd,0x7f,0x83,0xf6,0x77,0x21,0xfd,0x21,0xb3,0x3f,0xe5,0xd6,0xbf,0xc2,0xf5,
4510
0x47,0xaf,0xed,0xf1,0xe9,0xcf,0x4d,0xdc,0xff,0xbd,0x97,0x5f,0xb2,0xfe,0xa7,0xbc,
4511
0x97,0x95,0x75,0x75,0xcd,0xf5,0xf8,0x2f,0x69,0x9d,0x8c,0xd3,0x5d,0xab,0xc8,0x7f,
4512
0x17,0xe1,0xfa,0xb9,0x5c,0x9a,0xd1,0xde,0x2c,0xb7,0x41,0x61,0x07,0x40,0xcb,0x71,
4513
0xe6,0x34,0x87,0xf8,0x59,0x39,0xff,0x55,0x90,0xbf,0xb1,0x5c,0x9a,0x7d,0xdf,0xda,
4514
0xf7,0x8f,0xf0,0x80,0x12,0xe0,0xae,0xb5,0x4a,0x5c,0x9a,0x7a,0xf3,0xe3,0xad,0xac,
4515
0x94,0xfd,0x9f,0xae,0xa3,0xb7,0x42,0xa9,0x59,0xb0,0x98,0xcb,0x81,0x9b,0xe1,0xce,
4516
0x4a,0xa5,0x9e,0x86,0x35,0xc2,0x33,0xb0,0x0e,0xd6,0xc3,0x73,0xf0,0x02,0xbc,0x08,
4517
0xfb,0x33,0xef,0xa1,0x30,0x09,0xce,0x87,0xd9,0xc2,0x9b,0xf0,0x36,0xbc,0x03,0xdb,
4518
0xe1,0x2f,0xb0,0x03,0xfe,0x0a,0xbb,0xe0,0x0b,0x6d,0x1c,0x6a,0x60,0x22,0xfc,0x12,
4519
0x96,0xc3,0x4e,0xf8,0x18,0xfe,0x4f,0x38,0x98,0x3d,0xd5,0x05,0xba,0xc2,0xd1,0x70,
4520
0x2c,0xf4,0x80,0x9e,0xd0,0x07,0xa6,0xc3,0x0c,0xb8,0x0b,0xee,0x83,0x8d,0xf0,0x2e,
4521
0x6c,0x83,0x8a,0xb6,0x4a,0x0d,0x85,0xe1,0x30,0x12,0x4e,0x87,0x29,0x30,0x0d,0xea,
4522
0x61,0x26,0x2c,0x84,0xc5,0xb0,0x4a,0x58,0x0d,0xeb,0xe1,0x05,0xd8,0x00,0x2f,0xc1,
4523
0x26,0x78,0x4b,0xd8,0x0a,0xdb,0xe0,0x73,0xc1,0x6a,0xc7,0x7a,0x60,0xb8,0x30,0x12,
4524
0xc6,0x42,0x2d,0x4c,0x80,0x49,0x30,0x19,0xa6,0x08,0xb3,0x61,0x0e,0x5c,0x29,0x2c,
4525
0x84,0xc5,0xb0,0x4a,0x58,0x0d,0xcf,0xc1,0x0b,0xf0,0x22,0xbc,0x04,0x9b,0x60,0x2b,
4526
0x6c,0x83,0xcf,0x60,0x2f,0x58,0x55,0xac,0x17,0x86,0x0b,0x23,0x61,0x1c,0xd4,0xc2,
4527
0x04,0x98,0x04,0x93,0xe1,0x2c,0x98,0x06,0xf5,0x30,0x13,0x16,0x09,0xab,0x61,0x1d,
4528
0x3c,0x0f,0x1b,0x60,0x23,0x6c,0x82,0xb7,0x04,0xd5,0x9e,0x6b,0x62,0x18,0x2e,0x8c,
4529
0x84,0x71,0x30,0x1e,0x26,0xc0,0x44,0x98,0x0c,0xe7,0xc0,0x54,0xa8,0x87,0x99,0xb0,
4530
0x10,0x16,0xc3,0x2a,0x61,0x35,0xac,0x87,0xe7,0x61,0x03,0x6c,0x84,0x4d,0xf0,0x07,
4531
0x78,0x13,0xb6,0xc2,0x36,0xf8,0x58,0x50,0xfb,0xb1,0x5d,0x30,0x0c,0x86,0xc3,0x48,
4532
0x18,0x07,0xe3,0x61,0x02,0x4c,0x84,0xc9,0x30,0x4d,0xa8,0x87,0x99,0xb0,0x10,0x16,
4533
0xc3,0x46,0xe1,0x55,0x78,0x03,0xde,0x14,0xfe,0x08,0xef,0xc0,0xff,0xc0,0xc7,0x70,
4534
0x62,0x07,0x87,0x01,0x30,0x14,0x6a,0xe1,0x34,0xf8,0xad,0xf0,0x28,0xac,0x82,0x0d,
4535
0xf0,0x0a,0x74,0xee,0x48,0x3f,0x84,0x93,0x84,0x41,0xc2,0x10,0x61,0x24,0x8c,0x82,
4536
0x39,0x70,0x03,0xdc,0x08,0x37,0xc1,0x6d,0x70,0x17,0xdc,0x0d,0xab,0xe0,0x79,0xe1,
4537
0xf8,0xfd,0x99,0x07,0xa6,0xc2,0x74,0xa8,0x83,0x0b,0xa0,0x1e,0x2e,0x84,0x8b,0xe1,
4538
0x0a,0x98,0x03,0xf3,0x61,0x11,0xdc,0x06,0x4b,0x85,0x7b,0xe0,0xc7,0x70,0xde,0x81,
4539
0x1c,0x77,0x70,0xc0,0x21,0x4a,0x75,0x82,0x7e,0x30,0x00,0xce,0x84,0xb3,0x60,0x2e,
4540
0xcc,0x83,0x47,0xe1,0x75,0xf8,0xb3,0x50,0xd5,0x99,0xa6,0x86,0x8e,0xc2,0x12,0xb8,
4541
0x11,0x96,0x09,0xdd,0xba,0x50,0x47,0xa8,0x81,0x61,0x70,0xc8,0xa1,0x1c,0x83,0x70,
4542
0x0e,0xd4,0xc1,0x05,0x70,0x1d,0x5c,0x2f,0x2c,0x87,0x3d,0xa0,0xba,0xd2,0x6f,0x60,
4543
0x00,0x8c,0x83,0xcb,0x60,0x1e,0x2c,0x80,0x45,0xf0,0x33,0x78,0x08,0xde,0x87,0x8f,
4544
0xe1,0x98,0xc3,0x68,0x47,0xd8,0x0c,0xaf,0xc1,0x1b,0xb0,0x03,0x76,0x09,0x9f,0x08,
4545
0xff,0x0b,0x9f,0xc2,0xda,0xc3,0xe9,0xff,0xb0,0xb9,0x1b,0xeb,0x83,0x86,0xde,0x4a,
4546
0x7d,0x04,0xd7,0xf7,0x71,0xd8,0x02,0x7b,0xa1,0x57,0x8d,0x52,0x7d,0xe1,0x6e,0xb8,
4547
0x07,0x66,0xfd,0x92,0xb6,0x80,0xf9,0xf0,0x2d,0xf8,0x09,0xdc,0x07,0x7b,0xe0,0x23,
4548
0x88,0xfc,0xda,0x21,0x26,0x54,0x09,0x47,0x43,0x0f,0xe8,0x2d,0x2c,0x80,0x85,0xf0,
4549
0x28,0x3c,0x07,0x5b,0xe0,0x23,0xd8,0x2b,0x74,0x5f,0xc6,0xb8,0x04,0xb5,0x70,0x16,
4550
0x2c,0x80,0xc5,0xb0,0x02,0xd6,0xc2,0x7b,0x42,0xcf,0xfb,0x95,0x1a,0x08,0x27,0x0b,
4551
0x5f,0x84,0xc9,0xf0,0x4d,0xf8,0x16,0x2c,0x17,0x1e,0x81,0x47,0xe1,0x09,0x58,0x09,
4552
0xab,0x61,0x0d,0x3c,0x23,0xec,0x84,0x06,0xf8,0x1b,0xfc,0x1d,0xb6,0x3d,0xc0,0x18,
4553
0x0b,0x1f,0xc2,0x2e,0x38,0xe2,0x9f,0x0e,0xea,0x73,0xf6,0x33,0x74,0x83,0xbe,0xf0,
4554
0x7f,0x48,0x0e,0x9b,0x2d,0x11,0x87,0xab,0x2a,0x2c,0xf5,0x0d,0xb0,0xda,0x59,0x8c,
4555
0x67,0x96,0xaa,0x84,0x18,0xb4,0x87,0x8e,0x30,0x18,0x86,0xc2,0x28,0xe1,0x3d,0x78,
4556
0x1f,0x8e,0xd9,0xcf,0x52,0x3d,0xe0,0x12,0xb8,0x02,0x1e,0xe8,0x60,0xa9,0x07,0xe1,
4557
0x25,0x78,0x15,0xf6,0xc0,0x5e,0x18,0xdf,0xd1,0x52,0x67,0xc0,0x22,0x58,0x02,0x6a,
4558
0x7f,0x4b,0x45,0x60,0x30,0x8c,0x87,0xd9,0xc2,0x3c,0x98,0x0f,0xd7,0xc3,0x22,0x58,
4559
0x0e,0x4f,0xc1,0x3a,0x41,0x7d,0x81,0xf9,0xa0,0x07,0x0c,0x80,0x53,0x60,0x3c,0xcc,
4560
0x13,0x16,0xc0,0x22,0x58,0x01,0x6b,0xe1,0x45,0x78,0x19,0x5e,0x81,0x57,0xa1,0xf7,
4561
0x01,0x96,0x1a,0x04,0x23,0x85,0x31,0xc2,0x3b,0xf0,0x57,0x50,0x07,0xb2,0xfd,0x30,
4562
0x0c,0x86,0xc3,0x48,0x18,0x07,0xb5,0x30,0x01,0x26,0xc1,0x64,0x98,0x26,0xd4,0xc3,
4563
0x4c,0xf8,0x2a,0x5c,0x0e,0xb3,0x61,0x3e,0xac,0x84,0xb5,0xb0,0x4e,0x78,0x4e,0x78,
4564
0x01,0x36,0xc2,0xcb,0xb0,0x19,0x5e,0x13,0xde,0x85,0xad,0x70,0xd2,0x41,0x6c,0x0f,
4565
0xd4,0x09,0xcb,0xe1,0x59,0xf8,0x4d,0x27,0x4b,0x3d,0x06,0x2b,0x61,0x2d,0xbc,0x0d,
4566
0x7f,0x86,0x9a,0x83,0x2d,0x35,0x1a,0x1e,0x80,0x27,0xe0,0xf0,0x43,0x2c,0x75,0x3c,
4567
0xf4,0xee,0xcc,0xfe,0x82,0x9a,0x2e,0x2c,0x13,0x06,0xc1,0x60,0x18,0x06,0x23,0x61,
4568
0xb4,0x30,0x16,0x4e,0x86,0xdf,0xc3,0x5b,0xf0,0x27,0xd8,0x02,0xdb,0x05,0xeb,0x50,
4569
0x4b,0xb5,0x83,0xfe,0x30,0x04,0x86,0xc1,0x48,0xa8,0x15,0xa6,0xc0,0x0c,0xb8,0x05,
4570
0xee,0x86,0x0b,0xba,0x5a,0xea,0x62,0xe8,0x7b,0x98,0xa5,0x06,0xc2,0x60,0x18,0x05,
4571
0xdf,0x83,0x5f,0xc1,0x32,0x78,0x1c,0x4e,0x3c,0x9c,0xcf,0x61,0xa8,0x30,0x1c,0x46,
4572
0xc0,0x28,0x38,0x05,0x6a,0x85,0x5b,0xe0,0x76,0xb8,0x03,0xee,0x84,0xef,0xc3,0x5d,
4573
0xb0,0x47,0xf8,0xf8,0x08,0x4b,0xfd,0x1d,0xd4,0x91,0xd4,0x15,0x2a,0x84,0x01,0x30,
4574
0x14,0x46,0xc2,0x58,0xf8,0x92,0x30,0x7a,0x80,0x43,0x2d,0x9c,0x03,0x47,0x7c,0x85,
4575
0xba,0xc2,0x9e,0x4b,0x2d,0xf5,0x09,0xd4,0x5c,0x46,0xbd,0xe0,0xf4,0x59,0x0e,0x53,
4576
0xe0,0x26,0x58,0x0a,0xdf,0x83,0xed,0xc2,0x1e,0xf8,0x08,0x7e,0xbc,0xca,0x52,0x3f,
4577
0x01,0xf5,0xaa,0xa5,0xfa,0x40,0x0d,0x8c,0x87,0x1e,0xbf,0xb7,0xd4,0x71,0x70,0x11,
4578
0x5c,0x02,0x57,0xc0,0x5c,0xf8,0x26,0x2c,0x82,0x25,0x70,0x2b,0xdc,0x0f,0x0f,0xc1,
4579
0xd8,0xd7,0xe8,0x67,0x70,0x06,0x9c,0x09,0x33,0xe0,0xcb,0x70,0xbe,0xb0,0x00,0x16,
4580
0x82,0xfa,0x13,0xf5,0x83,0x61,0x70,0x39,0x5c,0x29,0xdc,0x20,0xdc,0x0b,0xf7,0xc1,
4581
0xcf,0xe0,0x37,0xa0,0xb6,0x70,0x1c,0x43,0x1c,0x3a,0x43,0x57,0x38,0x0a,0x8e,0x86,
4582
0x63,0xa0,0x3b,0xf4,0x82,0xa5,0x42,0xcd,0xbb,0x2c,0x1f,0x1e,0xde,0xea,0xf0,0x21,
4583
0x34,0xd8,0xbf,0xb7,0xf3,0x1b,0x76,0xbf,0xc7,0x6f,0xd8,0xf6,0xbe,0xc3,0xfb,0xc2,
4584
0x6e,0x68,0x80,0xbf,0x09,0x9b,0x77,0x58,0xea,0x4d,0x18,0xf7,0x81,0xa5,0x26,0x82,
4585
0xb2,0x3a,0xa8,0x06,0x78,0x48,0x39,0x5a,0x73,0xb1,0x68,0x4c,0xad,0x2d,0xd7,0x8b,
4586
0xa6,0xb4,0xf5,0xe4,0x61,0xd0,0x0d,0xaa,0xa1,0x3b,0xf4,0x80,0xe3,0xa0,0x27,0xf4,
4587
0x82,0xbe,0xd0,0x1f,0x46,0xc3,0x18,0x98,0x00,0xa7,0x8a,0x06,0xfd,0xba,0xe8,0xcf,
4588
0x39,0x70,0x25,0x5c,0x03,0xdf,0x81,0x7b,0x60,0x2d,0x3c,0x03,0xcf,0xc2,0xcb,0xb0,
4589
0x09,0x5e,0x81,0x57,0x61,0x33,0xbc,0x06,0x7f,0x10,0xed,0xfa,0x8e,0x68,0x56,0x5b,
4590
0xaf,0xee,0x86,0xcf,0x60,0x2f,0x74,0x44,0x93,0xee,0x2f,0xda,0xf5,0x00,0xe8,0x04,
4591
0x87,0xc2,0x11,0x70,0x24,0x1c,0x07,0x3d,0xa1,0x17,0x1c,0x0f,0xbd,0xa1,0x0f,0xf4,
4592
0x15,0xad,0x3b,0x19,0x4e,0x83,0xe9,0xf0,0x65,0xb8,0x0c,0xae,0x80,0x39,0x30,0x17,
4593
0xe6,0xc1,0x95,0x70,0x0d,0x7c,0x43,0x74,0xf1,0x46,0xd1,0xc5,0x9f,0x19,0x9a,0xb8,
4594
0xab,0x68,0x61,0x5b,0x07,0x8f,0x86,0x31,0x30,0x1e,0x26,0xc0,0xa9,0x30,0x11,0xce,
4595
0x86,0x73,0x60,0xaa,0xe8,0xe4,0x0b,0xa0,0x1e,0x2e,0x86,0xaf,0xc1,0x25,0x30,0x1b,
4596
0x16,0xc3,0x8d,0x70,0x33,0xdc,0x0e,0x4b,0x45,0x4f,0xff,0x14,0xee,0x87,0x87,0xe1,
4597
0x37,0xf0,0x5b,0x58,0x01,0x4f,0xc2,0x53,0xa2,0xb5,0x6d,0x9d,0xad,0x35,0xf6,0x18,
4598
0x98,0x2c,0x1a,0xbb,0x5e,0xb4,0xb5,0xad,0xa9,0x9f,0x11,0x0d,0xbd,0xd5,0xd0,0xcc,
4599
0xb6,0x56,0x1e,0x23,0x3a,0x79,0x92,0xa1,0x8d,0xb5,0x26,0xb6,0xb5,0xf0,0x33,0xa2,
4600
0x83,0xb5,0xfe,0xfd,0x4c,0x74,0xaf,0xad,0x77,0x47,0xc1,0x18,0x43,0xe3,0xd6,0x8b,
4601
0xae,0x5d,0x2b,0x3a,0xd6,0xd4,0xaf,0x23,0x45,0xb7,0x4e,0x14,0xbd,0x5a,0x2f,0x3a,
4602
0xd5,0xd6,0xa7,0x6b,0x44,0x9b,0xbe,0x2c,0x5a,0x54,0x89,0xf6,0x1c,0x23,0x3a,0xb3,
4603
0x5e,0xb4,0xa5,0xad,0x29,0x5f,0x13,0x2d,0xa9,0x75,0x63,0xad,0xa1,0x15,0x37,0x88,
4604
0x46,0x3c,0xc9,0xd0,0x85,0xb6,0x16,0x5c,0x20,0x5a,0xf0,0x36,0xd1,0x80,0xb6,0xf6,
4605
0xeb,0x83,0x6e,0xeb,0x07,0x43,0x60,0x04,0x9c,0x2b,0xfa,0x6f,0x8e,0xe8,0xbc,0x25,
4606
0xa2,0xf5,0xb4,0xbe,0x3b,0x40,0x74,0xdd,0x99,0xa2,0xe7,0x6c,0x2d,0xf7,0x04,0x3c,
4607
0x0f,0x2f,0x8a,0x9e,0x6b,0x83,0x66,0x6b,0xd7,0xd9,0xd1,0x75,0xb6,0x9e,0xeb,0x26,
4608
0x9a,0xee,0x26,0xd1,0x73,0xf7,0x8b,0xa6,0xeb,0x01,0xfd,0x60,0x88,0xa1,0xe9,0xa6,
4609
0xc2,0xb9,0xa2,0xe9,0xea,0xe1,0x22,0x98,0x67,0xe8,0x3a,0x25,0x7a,0x6e,0x20,0x0c,
4610
0x87,0xb1,0xa2,0xeb,0x6c,0x4d,0xf7,0x1f,0xf0,0x6b,0x78,0x40,0x34,0xdd,0x0e,0xd8,
4611
0x05,0x0d,0xd0,0x1b,0xbd,0x36,0x50,0xb4,0x9d,0xad,0xeb,0xb6,0x1a,0x9a,0xee,0x1f,
4612
0xa2,0xe5,0xaa,0xd0,0x70,0xfb,0x41,0x07,0xe8,0x05,0x17,0xc0,0xa5,0xdd,0x1c,0x7d,
4613
0xd7,0xd0,0x3b,0xa5,0xe9,0x7a,0x89,0x96,0x9b,0x25,0x1a,0xee,0x27,0xa2,0xdd,0x22,
4614
0x86,0x5e,0x3b,0x56,0x34,0xda,0x68,0x98,0x0b,0xeb,0x45,0x9f,0x69,0x5d,0x56,0x2b,
4615
0x7a,0xcc,0xd6,0x62,0x8f,0xc3,0x2a,0x43,0x8b,0x9d,0x08,0x27,0x19,0x5a,0xec,0x3a,
4616
0x43,0x7f,0x3d,0x21,0xba,0xcb,0xd6,0x5b,0x1f,0x8a,0xce,0x7a,0x0f,0x6d,0xb5,0xc3,
4617
0xd0,0x58,0x4a,0xb4,0xd5,0x5e,0xf8,0x74,0xaf,0x4a,0x6a,0xab,0xab,0x44,0x53,0x55,
4618
0x8a,0x96,0x1a,0x2c,0xfa,0x69,0x2d,0x3c,0x07,0x2f,0xc0,0x8b,0xb0,0x09,0x5e,0x81,
4619
0xd7,0xe1,0x2d,0xf8,0x23,0xfc,0x19,0xfe,0x1b,0xde,0x85,0xed,0xa2,0xb9,0x76,0x42,
4620
0x03,0x2c,0xa8,0xe2,0x7c,0x00,0x8b,0x60,0x31,0xdc,0x08,0x37,0xc3,0x2d,0xf0,0x5d,
4621
0xb8,0x0d,0x6e,0x87,0x3b,0xe0,0x4e,0x58,0x06,0x0f,0x81,0x42,0xa3,0x59,0x50,0x0d,
4622
0x47,0xef,0xe7,0xe8,0xb7,0x4b,0x44,0xb7,0xad,0x83,0x67,0xe1,0x79,0xd1,0x6f,0xff,
4623
0x29,0xfa,0xad,0x06,0xbd,0xd6,0x1f,0x06,0x74,0x74,0x74,0xdc,0x14,0x38,0x1b,0x66,
4624
0xc3,0x7c,0xb8,0x4a,0x74,0xdd,0x72,0x78,0x04,0x1e,0x85,0x95,0xf0,0x24,0xfc,0x0e,
4625
0x9e,0x86,0xd5,0xf0,0x0c,0xac,0x83,0xf5,0xf0,0x22,0x6c,0x84,0x97,0xc0,0x12,0x1d,
4626
0xa8,0xf5,0x9f,0xad,0xfd,0x56,0xc0,0x93,0x86,0xe6,0xb3,0xf5,0x5e,0x1f,0x43,0xe3,
4627
0x3d,0x2e,0xda,0xce,0xd6,0x74,0x7d,0xd1,0x6d,0x03,0x60,0xa0,0xa1,0xe9,0x6c,0x3d,
4628
0xb7,0x4d,0xf4,0x9c,0xad,0xe5,0x46,0x8b,0x46,0xb3,0xf5,0xd9,0xef,0xe0,0x15,0x43,
4629
0x7f,0xd9,0xda,0x6b,0x30,0x1a,0x6b,0xac,0xa1,0xbd,0x56,0xc0,0x53,0xb0,0x06,0xd6,
4630
0xc1,0x23,0x68,0xad,0x55,0xb0,0x46,0xb4,0x57,0x7f,0xb4,0xd6,0x08,0x18,0x25,0xda,
4631
0xeb,0x21,0x58,0x6e,0x68,0xb0,0x23,0xa1,0x1a,0x7a,0x40,0x5f,0x74,0xd8,0x90,0xce,
4632
0x29,0xed,0x65,0xeb,0xad,0x37,0x0c,0xad,0x65,0x89,0xbe,0x1a,0x66,0x68,0xaa,0xe9,
4633
0xa2,0xa9,0x7e,0x24,0x9a,0xaa,0x1e,0xbe,0x0a,0x35,0x2e,0x4d,0x75,0x3f,0x3c,0x02,
4634
0x8f,0x89,0xa6,0xd2,0x5a,0x6a,0x94,0xe8,0x27,0x5b,0x37,0xfd,0xc0,0xd0,0x4c,0x1f,
4635
0x8b,0x56,0x1a,0x68,0x6b,0x21,0x43,0x1b,0xd5,0x88,0x26,0xb2,0xf5,0x50,0x1f,0xd1,
4636
0x43,0x35,0xa2,0x83,0x96,0x8a,0xe6,0xb1,0xb5,0xce,0x4f,0x45,0xeb,0xd4,0x88,0xc6,
4637
0xb9,0x18,0xe6,0x89,0x9e,0xb9,0x5f,0x74,0xcc,0x0c,0xd1,0x29,0xc3,0x0c,0x6d,0x72,
4638
0xaf,0x68,0x12,0x25,0x5a,0xa4,0xab,0x68,0x90,0xee,0x86,0xee,0xd0,0x7a,0xe3,0x43,
4639
0xd1,0x19,0xdb,0x0c,0x6d,0xa1,0x35,0x85,0xfa,0xc0,0xd1,0x14,0x96,0xea,0xa0,0xba,
4640
0x81,0x12,0x4d,0x61,0xc7,0xae,0xec,0xb8,0x95,0x8e,0x59,0xad,0x93,0x38,0x95,0x1d,
4641
0xa3,0x3a,0xd4,0xd0,0x14,0xc7,0x7a,0x68,0x8a,0x13,0xa0,0x1f,0x8c,0x12,0x4d,0x51,
4642
0x2b,0x9a,0x62,0xa2,0xc4,0xb4,0x66,0x89,0xa6,0x98,0x07,0x57,0xc3,0x4d,0x70,0x37,
4643
0xac,0x11,0x4d,0xb1,0x0e,0x5e,0xf2,0xd0,0x14,0xbf,0x87,0xd7,0x45,0x53,0xbc,0x2d,
4644
0x71,0xb0,0x1d,0x12,0xff,0x6a,0x80,0x7f,0x79,0x68,0x8a,0x83,0xa0,0x0b,0x1c,0x2e,
4645
0x9a,0xa2,0x87,0x8f,0xa6,0x38,0x41,0x34,0xc5,0x44,0xd1,0x14,0xe7,0xc2,0x0c,0xb8,
4646
0x14,0x2e,0x87,0xd9,0x86,0xa6,0x98,0x0f,0x57,0xc3,0xb5,0x70,0xbd,0xc4,0xd9,0xfe,
4647
0x2a,0x71,0x36,0xad,0x29,0xba,0x48,0x7c,0xad,0x87,0xc4,0xd5,0x6c,0x4d,0x71,0x0a,
4648
0xd4,0x1a,0x9a,0xe2,0x2c,0x43,0x53,0x9c,0x2b,0x71,0x37,0x5b,0x53,0x5c,0x64,0x68,
4649
0x8a,0x4b,0x61,0x11,0x2c,0x11,0x4d,0x71,0x9b,0xa1,0x29,0xec,0xf8,0xdc,0x32,0x78,
4650
0x50,0x34,0xc5,0x72,0x78,0x04,0x56,0x8a,0xa6,0xd8,0x20,0xb1,0xbb,0x88,0x11,0xb7,
4651
0x9b,0x20,0x9a,0x62,0x9a,0x11,0xaf,0x5b,0x25,0x31,0xba,0x4d,0x46,0x2c,0x2e,0x22,
4652
0x9a,0x62,0xac,0xc4,0xdd,0x74,0xcc,0x4d,0xc7,0xda,0x16,0x89,0xa6,0xb0,0x63,0x6b,
4653
0x1b,0x44,0x53,0x6c,0x33,0x62,0x69,0x5a,0x53,0x8c,0x13,0x4d,0x31,0xd5,0x88,0x97,
4654
0x79,0x69,0x8a,0xd1,0x12,0x07,0x9b,0x2c,0xf1,0xaf,0x99,0x1e,0x9a,0x62,0x93,0xc4,
4655
0xb6,0x2c,0x89,0x65,0x8d,0x13,0x4d,0x31,0xd3,0xd0,0x14,0x6f,0x18,0x9a,0x62,0xa8,
4656
0x11,0x83,0x5a,0x25,0x71,0xa7,0x2e,0x2e,0x4d,0xf1,0x6d,0x89,0x2f,0xdd,0x24,0x71,
4657
0x25,0x1d,0x53,0xaa,0x41,0x2b,0x0c,0x82,0xa1,0x12,0x57,0x9a,0x2e,0xf1,0x24,0x1d,
4658
0x3b,0xba,0xd1,0xd0,0x14,0x76,0xbc,0xe8,0x20,0x34,0x43,0x7f,0x89,0x11,0xd9,0xf1,
4659
0xa1,0xc7,0xe0,0x69,0xd1,0x14,0xaf,0xbb,0x34,0x85,0x8e,0x13,0x5d,0x23,0x31,0xa2,
4660
0x5f,0x1b,0x9a,0xa2,0x1a,0x1d,0x71,0x9c,0x68,0x0a,0x3b,0x4e,0xd4,0xd9,0xd0,0x14,
4661
0x75,0x86,0xa6,0xb8,0xdc,0x88,0x17,0xd9,0x71,0xa2,0x0a,0xd1,0x14,0x43,0x0d,0x4d,
4662
0x61,0xc7,0x89,0x16,0xc2,0x2f,0x60,0x99,0x11,0x27,0xfa,0x40,0x34,0xc5,0x47,0xd0,
4663
0x5f,0xe2,0x45,0x76,0xac,0x68,0x8b,0x11,0x2b,0xfa,0x44,0xe2,0x43,0x7b,0x0d,0x4d,
4664
0xd1,0x11,0x4e,0x80,0x0b,0x61,0x96,0xc4,0x8b,0x74,0xac,0xc8,0x8e,0x11,0xf5,0x91,
4665
0xd8,0xd0,0x5c,0x89,0x09,0xdd,0x67,0xc4,0x82,0xb4,0xa6,0xe8,0x2e,0x9a,0x62,0x8e,
4666
0x68,0x8a,0xe7,0x8c,0x78,0x8f,0x1d,0xe7,0x99,0x02,0x8b,0x44,0x53,0x3c,0x09,0x4f,
4667
0x8b,0xa6,0x38,0x01,0x8d,0xd0,0xcf,0x88,0xf1,0x98,0x9a,0xe2,0x51,0x89,0xe5,0xe8,
4668
0x38,0xce,0x2e,0x1f,0x4d,0xd1,0x51,0x62,0x35,0xb6,0xa6,0xf8,0xa7,0xa1,0x29,0xec,
4669
0x38,0x4d,0x85,0xc4,0x67,0x3a,0x1a,0x71,0x99,0xf5,0x86,0xa6,0xd8,0x28,0x9a,0xe2,
4670
0x35,0x78,0x53,0x34,0xc5,0xdb,0xa2,0x29,0xb6,0x18,0x9a,0xc2,0x8e,0xe1,0xec,0xf6,
4671
0xd0,0x14,0x4b,0xe0,0x3b,0xa2,0x29,0x6e,0x35,0x34,0xc5,0x52,0x43,0x53,0x3c,0x08,
4672
0x0f,0x8b,0xa6,0x38,0xca,0xd0,0x14,0x3d,0x24,0x16,0xf4,0xa0,0x68,0x8a,0xf5,0xf0,
4673
0x82,0xc4,0x83,0x76,0x4b,0x3c,0xa8,0x9f,0x68,0x8a,0x71,0x12,0x17,0x3a,0x4b,0x34,
4674
0xc5,0x3c,0xb8,0x12,0x16,0x4a,0x9c,0xc8,0xd6,0x14,0x2b,0xe0,0x71,0xd1,0x14,0x4f,
4675
0xc1,0x2a,0xd1,0x14,0x6b,0x44,0x53,0x3c,0xeb,0xa3,0x29,0x74,0x5c,0xc9,0x8e,0x27,
4676
0x2d,0x84,0xc7,0x8d,0x58,0x92,0x1d,0x43,0x3a,0x5e,0x62,0x48,0xb6,0xa6,0x58,0x08,
4677
0xab,0x25,0x56,0x64,0x6b,0x8a,0x13,0x45,0x53,0x0c,0x72,0x69,0x0a,0x3b,0x46,0x64,
4678
0x49,0x6c,0x68,0xb4,0xc4,0x7c,0xe6,0x4b,0xac,0xc7,0xd4,0x14,0x76,0x2c,0x67,0x14,
4679
0xba,0x61,0x9c,0xa1,0x29,0x56,0x8a,0xa6,0x58,0x2b,0x31,0x1d,0x3b,0x9e,0xf3,0xb4,
4680
0xc4,0x73,0xec,0x58,0xce,0x50,0xd1,0x14,0xa3,0x0d,0x4d,0xf1,0x98,0x4b,0x53,0x1c,
4681
0x2b,0xf1,0x9d,0x41,0x12,0xdf,0x19,0x6e,0x68,0x0a,0x3b,0x7e,0xf3,0x5f,0xa2,0x29,
4682
0xec,0x98,0xcd,0x60,0x23,0x56,0x33,0x55,0xe2,0x34,0x3f,0x34,0xe2,0x34,0x17,0x8a,
4683
0xa6,0xb0,0xe3,0x34,0x23,0x44,0x53,0xd8,0x31,0x9a,0xe5,0xb0,0x42,0xe2,0x34,0x3a,
4684
0x46,0x33,0xc2,0x88,0xcb,0xdc,0xe9,0xd2,0x14,0x9f,0x1c,0xe1,0xc4,0x5e,0x86,0xba,
4685
0x34,0xc5,0x68,0x89,0xb1,0xf4,0x94,0x18,0x8b,0x1d,0x5f,0xd1,0xb1,0x15,0x1d,0x4b,
4686
0xb1,0x63,0x27,0x3f,0x5f,0xe5,0xc4,0x4e,0xec,0xb8,0xc9,0x71,0x12,0x2f,0x59,0x24,
4687
0xf1,0x11,0x3b,0x36,0x32,0x4e,0x62,0x21,0x03,0x8d,0x98,0xc7,0x0d,0x12,0xe7,0xb0,
4688
0x63,0x1c,0x31,0x89,0x6d,0x1c,0x25,0x31,0x0d,0x1d,0xcf,0xd0,0x71,0x0c,0x3b,0x7e,
4689
0x61,0xc7,0x2e,0x1a,0x0c,0x4d,0xa1,0x63,0x15,0x76,0x8c,0xe2,0x64,0xf4,0xc4,0x24,
4690
0xd1,0x14,0xd7,0x2b,0x27,0x4e,0x61,0x7e,0xff,0xbb,0xfc,0xb3,0xa0,0x32,0x52,0x19,
4691
0x8d,0x46,0x8c,0x7f,0x09,0x23,0x5d,0x34,0xc2,0xdb,0x95,0xe6,0xdb,0x95,0xe6,0x44,
4692
0xcc,0x64,0x39,0x56,0xbb,0xe4,0xc7,0x91,0xc4,0xbc,0x56,0x24,0xf1,0xa9,0x2c,0xb1,
4693
0xb2,0xf4,0x25,0x42,0x3d,0x22,0x89,0x7f,0xa1,0x8a,0xe5,0xb5,0x88,0x8a,0xb0,0xeb,
4694
0x8a,0x46,0xa3,0x15,0xd1,0x48,0x85,0xd3,0x4a,0x91,0xf4,0x56,0x4b,0xbc,0x2d,0x2d,
4695
0x57,0x51,0xe9,0xb4,0x42,0xe2,0xa7,0x4c,0x91,0xf8,0x51,0x51,0xd9,0x7c,0x4a,0xa2,
4696
0xc5,0xfe,0x1f,
4697
};
4698
}  // namespace ada::idna::table_blob
4699
#endif
4700
/* end file src/table_blob.inc */
4701
4702
#include <atomic>
4703
#include <bit>
4704
#include <cstdint>
4705
#include <cstddef>
4706
#include <new>
4707
4708
namespace ada::idna {
4709
4710
// table_blob.inc is packed little-endian (see scripts/pack_tables.py). After
4711
// inflate the multi-byte sections must be converted to host endianness so
4712
// big-endian platforms (s390x) can load uint16_t/uint32_t/uint64_t natively.
4713
// CRC is checked on the raw little-endian payload before any conversion.
4714
namespace detail {
4715
4716
template <typename T>
4717
0
inline void bswap_inplace(T* data, size_t count) noexcept {
4718
0
  if constexpr (std::endian::native == std::endian::little) {
4719
0
    (void)data;
4720
0
    (void)count;
4721
0
    return;
4722
0
  }
4723
0
  for (size_t i = 0; i < count; ++i) {
4724
0
    if constexpr (sizeof(T) == 2) {
4725
0
#if defined(__GNUC__) || defined(__clang__)
4726
0
      data[i] =
4727
0
          static_cast<T>(__builtin_bswap16(static_cast<uint16_t>(data[i])));
4728
0
#else
4729
0
      const auto v = static_cast<uint16_t>(data[i]);
4730
0
      data[i] = static_cast<T>(static_cast<uint16_t>((v >> 8) | (v << 8)));
4731
0
#endif
4732
0
    } else if constexpr (sizeof(T) == 4) {
4733
0
#if defined(__GNUC__) || defined(__clang__)
4734
0
      data[i] =
4735
0
          static_cast<T>(__builtin_bswap32(static_cast<uint32_t>(data[i])));
4736
0
#else
4737
0
      auto v = static_cast<uint32_t>(data[i]);
4738
0
      v = ((v & 0x000000FFu) << 24) | ((v & 0x0000FF00u) << 8) |
4739
0
          ((v & 0x00FF0000u) >> 8) | ((v & 0xFF000000u) >> 24);
4740
0
      data[i] = static_cast<T>(v);
4741
0
#endif
4742
0
    } else if constexpr (sizeof(T) == 8) {
4743
0
#if defined(__GNUC__) || defined(__clang__)
4744
0
      data[i] =
4745
0
          static_cast<T>(__builtin_bswap64(static_cast<uint64_t>(data[i])));
4746
0
#else
4747
0
      auto v = static_cast<uint64_t>(data[i]);
4748
0
      v = ((v & 0x00000000000000FFull) << 56) |
4749
0
          ((v & 0x000000000000FF00ull) << 40) |
4750
0
          ((v & 0x0000000000FF0000ull) << 24) |
4751
0
          ((v & 0x00000000FF000000ull) << 8) |
4752
0
          ((v & 0x000000FF00000000ull) >> 8) |
4753
0
          ((v & 0x0000FF0000000000ull) >> 24) |
4754
0
          ((v & 0x00FF000000000000ull) >> 40) |
4755
0
          ((v & 0xFF00000000000000ull) >> 56);
4756
0
      data[i] = static_cast<T>(v);
4757
0
#endif
4758
0
    } else {
4759
0
      static_assert(sizeof(T) == 2 || sizeof(T) == 4 || sizeof(T) == 8);
4760
0
    }
4761
0
  }
4762
0
}
Unexecuted instantiation: void ada::idna::detail::bswap_inplace<unsigned short>(unsigned short*, unsigned long)
Unexecuted instantiation: void ada::idna::detail::bswap_inplace<unsigned int>(unsigned int*, unsigned long)
Unexecuted instantiation: void ada::idna::detail::bswap_inplace<unsigned long>(unsigned long*, unsigned long)
4763
4764
// Convert every multi-byte section of the inflated little-endian blob to host
4765
// order. Single-byte sections are left unchanged. Safe no-op on little-endian.
4766
1
inline void convert_table_blob_to_host_endian(uint8_t* buffer) noexcept {
4767
1
  if constexpr (std::endian::native == std::endian::little) {
4768
1
    (void)buffer;
4769
1
    return;
4770
1
  }
4771
0
  auto u16 = [&](size_t off, size_t count) {
4772
1
    bswap_inplace(reinterpret_cast<uint16_t*>(buffer + off), count);
4773
1
  };
4774
1
  auto u32 = [&](size_t off, size_t count) {
4775
1
    bswap_inplace(reinterpret_cast<uint32_t*>(buffer + off), count);
4776
1
  };
4777
1
  auto u64 = [&](size_t off, size_t count) {
4778
1
    bswap_inplace(reinterpret_cast<uint64_t*>(buffer + off), count);
4779
1
  };
4780
4781
1
  u16(table_blob::off_idna_stage1, table_blob::count_idna_stage1);
4782
1
  u16(table_blob::off_idna_stage2, table_blob::count_idna_stage2);
4783
1
  u64(table_blob::off_idna_bool_blocks, table_blob::count_idna_bool_blocks);
4784
1
  u16(table_blob::off_decomposition_block,
4785
1
      table_blob::count_decomposition_block);
4786
1
  u32(table_blob::off_decomposition_data, table_blob::count_decomposition_data);
4787
1
  u16(table_blob::off_composition_block, table_blob::count_composition_block);
4788
1
  u32(table_blob::off_composition_data, table_blob::count_composition_data);
4789
1
  u32(table_blob::off_id_continue_flat, table_blob::count_id_continue_flat);
4790
1
  u32(table_blob::off_id_start_flat, table_blob::count_id_start_flat);
4791
1
  u32(table_blob::off_combining_flat, table_blob::count_combining_flat);
4792
1
  u32(table_blob::off_joining_start, table_blob::count_joining_start);
4793
1
  u32(table_blob::off_joining_final, table_blob::count_joining_final);
4794
1
}
4795
4796
}  // namespace detail
4797
4798
// --- Blob layout invariants --------------------------------------------------
4799
static_assert(table_blob::count_decomposition_index == 4352);
4800
static_assert(table_blob::count_ccc_index == 4352);
4801
static_assert(table_blob::count_composition_index == 4352);
4802
static_assert(table_blob::count_decomposition_block ==
4803
              table_blob::decomposition_block_rows *
4804
                  table_blob::decomposition_block_cols);
4805
static_assert(table_blob::count_ccc_block ==
4806
              table_blob::ccc_block_rows * table_blob::ccc_block_cols);
4807
static_assert(table_blob::count_composition_block ==
4808
              table_blob::composition_block_rows *
4809
                  table_blob::composition_block_cols);
4810
static_assert(table_blob::count_nfc_qc_index == 4352);
4811
static_assert(table_blob::count_nfc_qc_block ==
4812
              table_blob::nfc_qc_block_rows * table_blob::nfc_qc_block_cols);
4813
static_assert(table_blob::count_dir_index == 4352);
4814
static_assert(table_blob::count_dir_block ==
4815
              table_blob::dir_block_rows * table_blob::dir_block_cols);
4816
static_assert(
4817
    table_blob::count_joining_start == table_blob::joining_table_count &&
4818
    table_blob::count_joining_final == table_blob::joining_table_count &&
4819
    table_blob::count_joining_value == table_blob::joining_table_count);
4820
static_assert(table_blob::count_id_continue_flat ==
4821
              table_blob::id_continue_count * 2);
4822
static_assert(table_blob::count_id_start_flat ==
4823
              table_blob::id_start_count * 2);
4824
static_assert(table_blob::count_combining_flat ==
4825
              table_blob::combining_range_count * 2);
4826
static_assert(table_blob::off_idna_stage1 % alignof(uint16_t) == 0);
4827
static_assert(table_blob::off_idna_stage2 % alignof(uint16_t) == 0);
4828
static_assert(table_blob::off_idna_bool_blocks % alignof(uint64_t) == 0);
4829
static_assert(table_blob::off_decomposition_block % alignof(uint16_t) == 0);
4830
static_assert(table_blob::off_decomposition_data % alignof(char32_t) == 0);
4831
static_assert(table_blob::off_composition_block % alignof(uint16_t) == 0);
4832
static_assert(table_blob::off_composition_data % alignof(char32_t) == 0);
4833
static_assert(table_blob::off_id_continue_flat % alignof(uint32_t) == 0);
4834
static_assert(table_blob::off_id_start_flat % alignof(uint32_t) == 0);
4835
static_assert(table_blob::off_combining_flat % alignof(uint32_t) == 0);
4836
static_assert(table_blob::off_joining_start % alignof(uint32_t) == 0);
4837
static_assert(table_blob::off_joining_final % alignof(uint32_t) == 0);
4838
static_assert(table_blob::compressed_size == sizeof(table_blob::compressed));
4839
4840
// Every section must lie entirely inside the uncompressed buffer.
4841
#define ADA_IDNA_SECTION_IN_BOUNDS(off, count, width)                       \
4842
  static_assert((off) + (count) * (width) <= table_blob::uncompressed_size, \
4843
                #off " overflows uncompressed buffer")
4844
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_idna_stage1,
4845
                           table_blob::count_idna_stage1, 2);
4846
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_idna_stage2,
4847
                           table_blob::count_idna_stage2, 2);
4848
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_idna_bool_blocks,
4849
                           table_blob::count_idna_bool_blocks, 8);
4850
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_idna_utf8_mappings,
4851
                           table_blob::count_idna_utf8_mappings, 1);
4852
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_decomposition_index,
4853
                           table_blob::count_decomposition_index, 1);
4854
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_decomposition_block,
4855
                           table_blob::count_decomposition_block, 2);
4856
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_decomposition_data,
4857
                           table_blob::count_decomposition_data, 4);
4858
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_ccc_index,
4859
                           table_blob::count_ccc_index, 1);
4860
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_ccc_block,
4861
                           table_blob::count_ccc_block, 1);
4862
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_composition_index,
4863
                           table_blob::count_composition_index, 1);
4864
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_composition_block,
4865
                           table_blob::count_composition_block, 2);
4866
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_composition_data,
4867
                           table_blob::count_composition_data, 4);
4868
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_nfc_qc_index,
4869
                           table_blob::count_nfc_qc_index, 1);
4870
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_nfc_qc_block,
4871
                           table_blob::count_nfc_qc_block, 1);
4872
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_id_continue_flat,
4873
                           table_blob::count_id_continue_flat, 4);
4874
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_id_start_flat,
4875
                           table_blob::count_id_start_flat, 4);
4876
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_dir_index,
4877
                           table_blob::count_dir_index, 1);
4878
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_dir_block,
4879
                           table_blob::count_dir_block, 1);
4880
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_combining_flat,
4881
                           table_blob::count_combining_flat, 4);
4882
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_joining_start,
4883
                           table_blob::count_joining_start, 4);
4884
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_joining_final,
4885
                           table_blob::count_joining_final, 4);
4886
ADA_IDNA_SECTION_IN_BOUNDS(table_blob::off_joining_value,
4887
                           table_blob::count_joining_value, 1);
4888
#undef ADA_IDNA_SECTION_IN_BOUNDS
4889
4890
// --- Mapping -----------------------------------------------------------------
4891
inline const uint16_t* idna_stage1 = nullptr;
4892
inline const uint16_t* idna_stage2 = nullptr;
4893
inline const uint64_t* idna_bool_blocks = nullptr;
4894
inline const uint8_t* idna_utf8_mappings = nullptr;
4895
4896
// --- Normalization (O(1) multi-stage) ----------------------------------------
4897
inline const uint8_t* decomposition_index = nullptr;
4898
inline const uint16_t* decomposition_block_flat = nullptr;
4899
inline const char32_t* decomposition_data = nullptr;
4900
inline const uint8_t* ccc_index = nullptr;
4901
inline const uint8_t* ccc_block_flat = nullptr;
4902
inline const uint8_t* composition_index = nullptr;
4903
inline const uint16_t* composition_block_flat = nullptr;
4904
inline const char32_t* composition_data = nullptr;
4905
inline const uint8_t* nfc_qc_index = nullptr;
4906
inline const uint8_t* nfc_qc_block_flat = nullptr;
4907
4908
// --- Identifier --------------------------------------------------------------
4909
// Pointer-to-array alias. CF17 vs CF22 disagree on spacing inside (*)[2].
4910
// clang-format off
4911
using range_pair_ptr = const uint32_t(*)[2];
4912
// clang-format on
4913
inline range_pair_ptr id_continue = nullptr;
4914
inline range_pair_ptr id_start = nullptr;
4915
4916
// --- Validity ----------------------------------------------------------------
4917
inline const uint8_t* dir_index = nullptr;
4918
inline const uint8_t* dir_block_flat = nullptr;
4919
inline range_pair_ptr combining_ranges = nullptr;
4920
inline const uint32_t* joining_start = nullptr;
4921
inline const uint32_t* joining_final = nullptr;
4922
inline const uint8_t* joining_value = nullptr;
4923
4924
inline constexpr size_t id_continue_count = table_blob::id_continue_count;
4925
inline constexpr size_t id_start_count = table_blob::id_start_count;
4926
inline constexpr size_t joining_table_count = table_blob::joining_table_count;
4927
inline constexpr size_t combining_range_count =
4928
    table_blob::combining_range_count;
4929
inline constexpr size_t idna_utf8_mappings_size =
4930
    table_blob::count_idna_utf8_mappings;
4931
inline constexpr size_t decomposition_data_size =
4932
    table_blob::count_decomposition_data;
4933
inline constexpr size_t composition_data_size =
4934
    table_blob::count_composition_data;
4935
4936
inline constexpr size_t kDecompBlockCols =
4937
    table_blob::decomposition_block_cols;                            // 257
4938
inline constexpr size_t kCccBlockCols = table_blob::ccc_block_cols;  // 256
4939
inline constexpr size_t kCompBlockCols =
4940
    table_blob::composition_block_cols;  // 257
4941
inline constexpr size_t kDecompBlockRows = table_blob::decomposition_block_rows;
4942
inline constexpr size_t kCccBlockRows = table_blob::ccc_block_rows;
4943
inline constexpr size_t kCompBlockRows = table_blob::composition_block_rows;
4944
inline constexpr size_t kNfcQcBlockCols = table_blob::nfc_qc_block_cols;  // 256
4945
inline constexpr size_t kNfcQcBlockRows = table_blob::nfc_qc_block_rows;
4946
inline constexpr size_t kDirBlockCols = table_blob::dir_block_cols;  // 256
4947
inline constexpr size_t kDirBlockRows = table_blob::dir_block_rows;
4948
4949
// Init state: 0=uninit, 1=in progress, 2=ready, 3=failed.
4950
inline constexpr uint8_t kTablesUninit = 0;
4951
inline constexpr uint8_t kTablesInProgress = 1;
4952
inline constexpr uint8_t kTablesReady = 2;
4953
inline constexpr uint8_t kTablesFailed = 3;
4954
4955
inline std::atomic<uint8_t> tables_init_state{kTablesUninit};
4956
// Process-lifetime allocation published only by the winning init thread.
4957
// Never freed: shared read-only data for the process. Do not dlclose a DSO
4958
// that owns this buffer while other code may still call into ada::idna.
4959
inline uint8_t* tables_buffer = nullptr;
4960
4961
// Cap spin-wait so a stuck peer cannot hang the process forever.
4962
inline constexpr uint64_t kTablesSpinLimit = 1'000'000'000ull;
4963
4964
// ISO HDLC / zlib CRC-32 of the uncompressed table payload.
4965
[[nodiscard]] inline uint32_t crc32_ieee(const uint8_t* data,
4966
1
                                         size_t len) noexcept {
4967
1
  uint32_t c = 0xFFFFFFFFu;
4968
258k
  for (size_t i = 0; i < len; ++i) {
4969
258k
    c ^= data[i];
4970
2.32M
    for (int k = 0; k < 8; ++k) {
4971
2.06M
      const uint32_t mask = 0u - (c & 1u);
4972
2.06M
      c = (c >> 1) ^ (0xEDB88320u & mask);
4973
2.06M
    }
4974
258k
  }
4975
1
  return ~c;
4976
1
}
4977
4978
13.7k
[[nodiscard]] inline bool tables_are_ready() noexcept {
4979
13.7k
  return tables_init_state.load(std::memory_order_acquire) == kTablesReady;
4980
13.7k
}
4981
4982
// Returns true only when all table pointers are safe to use.
4983
67.6k
[[nodiscard]] inline bool ensure_tables() noexcept {
4984
67.6k
  uint8_t state = tables_init_state.load(std::memory_order_acquire);
4985
67.6k
  if (state == kTablesReady) {
4986
67.6k
    return true;
4987
67.6k
  }
4988
1
  if (state == kTablesFailed) {
4989
0
    return false;
4990
0
  }
4991
4992
1
  uint8_t expected = kTablesUninit;
4993
1
  if (tables_init_state.compare_exchange_strong(expected, kTablesInProgress,
4994
1
                                                std::memory_order_acq_rel,
4995
1
                                                std::memory_order_acquire)) {
4996
1
    uint8_t* buffer = new (std::nothrow) uint8_t[table_blob::uncompressed_size];
4997
1
    if (buffer == nullptr) {
4998
      // Leave the state uninitialized so a later call can retry. A corrupt
4999
      // blob (below) is permanent; running out of memory may not be.
5000
      // LCOV_EXCL_START
5001
0
      tables_init_state.store(kTablesUninit, std::memory_order_release);
5002
0
      return false;
5003
      // LCOV_EXCL_STOP
5004
0
    }
5005
5006
1
    const size_t n = deflate::inflate_raw(table_blob::compressed,
5007
1
                                          table_blob::compressed_size, buffer,
5008
1
                                          table_blob::uncompressed_size);
5009
1
    if (n != table_blob::uncompressed_size ||
5010
1
        crc32_ieee(buffer, n) != table_blob::uncompressed_crc32) {
5011
0
      delete[] buffer;
5012
0
      tables_init_state.store(kTablesFailed, std::memory_order_release);
5013
0
      return false;
5014
0
    }
5015
5016
    // LE payload verified; convert multi-byte fields for big-endian hosts.
5017
1
    detail::convert_table_blob_to_host_endian(buffer);
5018
5019
22
    auto at = [&](size_t off) noexcept -> const uint8_t* {
5020
22
      return buffer + off;
5021
22
    };
5022
5023
    // Publish all non-atomic pointers before READY. Waiters synchronize via
5024
    // acquire on tables_init_state and then observe these writes.
5025
1
    idna_stage1 =
5026
1
        reinterpret_cast<const uint16_t*>(at(table_blob::off_idna_stage1));
5027
1
    idna_stage2 =
5028
1
        reinterpret_cast<const uint16_t*>(at(table_blob::off_idna_stage2));
5029
1
    idna_bool_blocks =
5030
1
        reinterpret_cast<const uint64_t*>(at(table_blob::off_idna_bool_blocks));
5031
1
    idna_utf8_mappings = at(table_blob::off_idna_utf8_mappings);
5032
5033
1
    decomposition_index = at(table_blob::off_decomposition_index);
5034
1
    decomposition_block_flat = reinterpret_cast<const uint16_t*>(
5035
1
        at(table_blob::off_decomposition_block));
5036
1
    decomposition_data = reinterpret_cast<const char32_t*>(
5037
1
        at(table_blob::off_decomposition_data));
5038
1
    ccc_index = at(table_blob::off_ccc_index);
5039
1
    ccc_block_flat = at(table_blob::off_ccc_block);
5040
1
    composition_index = at(table_blob::off_composition_index);
5041
1
    composition_block_flat = reinterpret_cast<const uint16_t*>(
5042
1
        at(table_blob::off_composition_block));
5043
1
    composition_data =
5044
1
        reinterpret_cast<const char32_t*>(at(table_blob::off_composition_data));
5045
1
    nfc_qc_index = at(table_blob::off_nfc_qc_index);
5046
1
    nfc_qc_block_flat = at(table_blob::off_nfc_qc_block);
5047
5048
1
    id_continue =
5049
1
        reinterpret_cast<range_pair_ptr>(at(table_blob::off_id_continue_flat));
5050
1
    id_start =
5051
1
        reinterpret_cast<range_pair_ptr>(at(table_blob::off_id_start_flat));
5052
5053
1
    dir_index = at(table_blob::off_dir_index);
5054
1
    dir_block_flat = at(table_blob::off_dir_block);
5055
1
    combining_ranges =
5056
1
        reinterpret_cast<range_pair_ptr>(at(table_blob::off_combining_flat));
5057
1
    joining_start =
5058
1
        reinterpret_cast<const uint32_t*>(at(table_blob::off_joining_start));
5059
1
    joining_final =
5060
1
        reinterpret_cast<const uint32_t*>(at(table_blob::off_joining_final));
5061
1
    joining_value = at(table_blob::off_joining_value);
5062
5063
1
    tables_buffer = buffer;
5064
1
    tables_init_state.store(kTablesReady, std::memory_order_release);
5065
1
    return true;
5066
1
  }
5067
5068
  // Another thread owns init (or finished between our loads).
5069
0
  for (uint64_t spins = 0; spins < kTablesSpinLimit; ++spins) {
5070
0
    state = tables_init_state.load(std::memory_order_acquire);
5071
0
    if (state == kTablesReady) {
5072
0
      return true;
5073
0
    }
5074
    // Failed is permanent. Uninit means the peer gave up after a failed
5075
    // allocation: do not spin, the next call can take the init slot. One
5076
    // comparison, same shape as the old Failed check, so this wait loop does
5077
    // not grow the unity translation unit.
5078
    // LCOV_EXCL_START
5079
0
    if (state != kTablesInProgress) {
5080
0
      return false;
5081
0
    }
5082
    // LCOV_EXCL_STOP
5083
0
#if defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || \
5084
0
    defined(_M_IX86)
5085
0
#if defined(__GNUC__) || defined(__clang__)
5086
0
    __builtin_ia32_pause();
5087
0
#endif
5088
#elif defined(__aarch64__) || defined(_M_ARM64)
5089
#if defined(__GNUC__) || defined(__clang__)
5090
    asm volatile("yield" ::: "memory");
5091
#endif
5092
#endif
5093
0
  }
5094
  // Timed out waiting for a peer - treat as failure rather than hang.
5095
0
  return false;
5096
0
}
5097
5098
// O(1) multi-stage accessors. Block indices from the tables are uint8_t and
5099
// theoretically can be out of range if the blob is corrupt; clamp to a valid
5100
// empty/default row (index 0) instead of reading OOB.
5101
377k
inline const uint16_t* decomposition_block_row(uint8_t bi) noexcept {
5102
377k
  if (bi >= kDecompBlockRows) {
5103
0
    bi = 0;
5104
0
  }
5105
377k
  return decomposition_block_flat + static_cast<size_t>(bi) * kDecompBlockCols;
5106
377k
}
5107
5108
796k
inline const uint8_t* ccc_block_row(uint8_t bi) noexcept {
5109
796k
  if (bi >= kCccBlockRows) {
5110
0
    bi = 0;
5111
0
  }
5112
796k
  return ccc_block_flat + static_cast<size_t>(bi) * kCccBlockCols;
5113
796k
}
5114
5115
164k
inline const uint16_t* composition_block_row(uint8_t bi) noexcept {
5116
164k
  if (bi >= kCompBlockRows) {
5117
0
    bi = 0;
5118
0
  }
5119
164k
  return composition_block_flat + static_cast<size_t>(bi) * kCompBlockCols;
5120
164k
}
5121
5122
256k
inline const uint8_t* nfc_qc_block_row(uint8_t bi) noexcept {
5123
256k
  if (bi >= kNfcQcBlockRows) {
5124
0
    bi = 0;
5125
0
  }
5126
256k
  return nfc_qc_block_flat + static_cast<size_t>(bi) * kNfcQcBlockCols;
5127
256k
}
5128
5129
322k
inline const uint8_t* dir_block_row(uint8_t bi) noexcept {
5130
322k
  if (bi >= kDirBlockRows) {
5131
0
    bi = 0;
5132
0
  }
5133
322k
  return dir_block_flat + static_cast<size_t>(bi) * kDirBlockCols;
5134
322k
}
5135
5136
}  // namespace ada::idna
5137
/* end file src/table_store.hpp */
5138
/* begin file src/mapping_tables.cpp */
5139
// IDNA 18.0.0
5140
// Two-level compressed mapping table (constants only).
5141
// Array payloads are stored in the DEFLATE blob (see table_store.hpp /
5142
// scripts/pack_tables.py).
5143
// Regenerate with: python3 scripts/idna_table.py --write
5144
// Logical table size: 51037 bytes (49.8 KB)
5145
//   stage1:        8162 bytes  (4081 uint16_t entries)
5146
//   stage2:       23424 bytes  (183 mixed blocks x 64)
5147
//   bool_blocks:   1800 bytes  (225 uint64_t words)
5148
//   utf8 maps:    17651 bytes
5149
5150
// clang-format off
5151
#ifndef ADA_IDNA_MAPPING_TABLE_H
5152
#define ADA_IDNA_MAPPING_TABLE_H
5153
#include <cstdint>
5154
5155
namespace ada::idna {
5156
5157
// Block size for two-level table (2^6 = 64 code points per block).
5158
constexpr uint32_t IDNA_BLOCK_BITS = 6u;
5159
constexpr uint32_t IDNA_BLOCK_SIZE = 64u;
5160
constexpr uint32_t IDNA_BLOCK_MASK = 63u;
5161
5162
// Sentinel values stored in stage2 / returned by lookup.
5163
constexpr uint16_t IDNA_VALID      = 0xFFFF;  // code point is valid as-is
5164
constexpr uint16_t IDNA_DISALLOWED = 0xFFFE;  // code point is disallowed
5165
constexpr uint16_t IDNA_IGNORED    = 0x0000;    // ignored (index into empty UTF-8 entry)
5166
5167
// Bit 15 of a stage1 entry: set = boolean block, clear = mixed block.
5168
constexpr uint16_t IDNA_BOOL_FLAG  = 0x8000;
5169
5170
// Two-level table covers code points [0, IDNA_LOW_RANGE_END).
5171
// Derived from the highest non-disallowed code point below the high-ignored range,
5172
// rounded up to the next 64-code-point block boundary.
5173
constexpr uint32_t IDNA_LOW_RANGE_END    = 0x0003FC40;
5174
5175
// Variation selectors supplement: U+E0100..U+E01EF are all ignored.
5176
// These are handled with a simple range check; everything else above
5177
// IDNA_LOW_RANGE_END is disallowed.
5178
constexpr uint32_t IDNA_HIGH_IGNORED_START = 0x000E0100;
5179
constexpr uint32_t IDNA_HIGH_IGNORED_END   = 0x000E01F0;  // exclusive
5180
5181
// Large arrays (idna_stage1/stage2/bool_blocks/utf8_mappings) live in table_blob.
5182
5183
}  // namespace ada::idna
5184
#endif  // ADA_IDNA_MAPPING_TABLE_H
5185
/* end file src/mapping_tables.cpp */
5186
5187
namespace ada::idna {
5188
5189
// --- O(1) two-level table lookup ---------------------------------------------
5190
//
5191
// Returns one of:
5192
//   IDNA_VALID      - keep code point in output unchanged
5193
//   IDNA_DISALLOWED - code point is not allowed (map() returns error)
5194
//   IDNA_IGNORED    - code point is ignored (index 0 = empty UTF-8 entry)
5195
//   other           - byte offset into idna_utf8_mappings[] (null-terminated)
5196
//
5197
// Assumes ensure_tables() has already been called by the public entry point.
5198
600k
static uint16_t idna_lookup(uint32_t cp) noexcept {
5199
600k
  if (cp < IDNA_LOW_RANGE_END) {
5200
598k
    uint16_t ref = idna_stage1[cp >> IDNA_BLOCK_BITS];
5201
598k
    if (ref & IDNA_BOOL_FLAG) {
5202
254k
      uint32_t bit_idx =
5203
254k
          static_cast<uint32_t>(ref & ~IDNA_BOOL_FLAG) * IDNA_BLOCK_SIZE +
5204
254k
          (cp & IDNA_BLOCK_MASK);
5205
254k
      bool is_valid = (idna_bool_blocks[bit_idx >> 6] >> (bit_idx & 63u)) & 1u;
5206
254k
      return is_valid ? IDNA_VALID : IDNA_DISALLOWED;
5207
254k
    }
5208
343k
    return idna_stage2[ref + (cp & IDNA_BLOCK_MASK)];
5209
598k
  }
5210
5211
2.56k
  if (cp >= IDNA_HIGH_IGNORED_START && cp < IDNA_HIGH_IGNORED_END) {
5212
2.05k
    return IDNA_IGNORED;
5213
2.05k
  }
5214
5215
513
  return IDNA_DISALLOWED;
5216
2.56k
}
5217
5218
// Advances *ptr past one well-formed UTF-8 code point from the mapping table.
5219
358k
static char32_t utf8_next(const uint8_t*& ptr) noexcept {
5220
358k
  uint8_t b0 = *ptr++;
5221
358k
  if (b0 < 0x80u) return static_cast<char32_t>(b0);
5222
254k
  if (b0 < 0xE0u) {
5223
130k
    uint32_t cp = (b0 & 0x1Fu) << 6;
5224
130k
    cp |= (*ptr++ & 0x3Fu);
5225
130k
    return static_cast<char32_t>(cp);
5226
130k
  }
5227
124k
  if (b0 < 0xF0u) {
5228
122k
    uint32_t cp = (b0 & 0x0Fu) << 12;
5229
122k
    cp |= ((*ptr++ & 0x3Fu) << 6);
5230
122k
    cp |= (*ptr++ & 0x3Fu);
5231
122k
    return static_cast<char32_t>(cp);
5232
122k
  }
5233
2.18k
  uint32_t cp = (b0 & 0x07u) << 18;
5234
2.18k
  cp |= ((*ptr++ & 0x3Fu) << 12);
5235
2.18k
  cp |= ((*ptr++ & 0x3Fu) << 6);
5236
2.18k
  cp |= (*ptr++ & 0x3Fu);
5237
2.18k
  return static_cast<char32_t>(cp);
5238
124k
}
5239
5240
// Count UTF-8 code points in a null-terminated mapping string (trusted table).
5241
104k
static size_t utf8_count_codepoints(const uint8_t* ptr) noexcept {
5242
104k
  size_t n = 0;
5243
464k
  while (*ptr != 0) {
5244
359k
    ++n;
5245
359k
    if (*ptr < 0x80u) {
5246
103k
      ++ptr;
5247
256k
    } else if (*ptr < 0xE0u) {
5248
130k
      ptr += 2;
5249
130k
    } else if (*ptr < 0xF0u) {
5250
123k
      ptr += 3;
5251
123k
    } else {
5252
2.18k
      ptr += 4;
5253
2.18k
    }
5254
359k
  }
5255
104k
  return n;
5256
104k
}
5257
5258
// --- ASCII fast path ---------------------------------------------------------
5259
6.04k
void ascii_map(char* input, size_t length) {
5260
18.1k
  auto broadcast = [](uint8_t v) -> uint64_t {
5261
18.1k
    return 0x101010101010101ull * v;
5262
18.1k
  };
5263
6.04k
  uint64_t broadcast_80 = broadcast(0x80);
5264
6.04k
  uint64_t broadcast_Ap = broadcast(128 - 'A');
5265
6.04k
  uint64_t broadcast_Zp = broadcast(128 - 'Z' - 1);
5266
6.04k
  size_t i = 0;
5267
5268
49.4k
  for (; i + 7 < length; i += 8) {
5269
43.4k
    uint64_t word{};
5270
43.4k
    std::memcpy(&word, input + i, sizeof(word));
5271
43.4k
    word ^=
5272
43.4k
        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
5273
43.4k
    std::memcpy(input + i, &word, sizeof(word));
5274
43.4k
  }
5275
6.04k
  if (i < length) {
5276
5.23k
    uint64_t word{};
5277
5.23k
    std::memcpy(&word, input + i, length - i);
5278
5.23k
    word ^=
5279
5.23k
        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
5280
5.23k
    std::memcpy(input + i, &word, length - i);
5281
5.23k
  }
5282
6.04k
}
5283
5284
// Two-pass map: first validate + exact size, then write once (no growth
5285
// realloc).
5286
15.5k
bool map(std::u32string_view input, std::u32string& out) {
5287
  //  [Map](https://www.unicode.org/reports/tr46/#ProcessingStepMap).
5288
15.5k
  out.clear();
5289
15.5k
  if (!ensure_tables()) {
5290
0
    return false;
5291
0
  }
5292
5293
  // Pass 1: validate and compute exact output length.
5294
15.5k
  size_t out_size = 0;
5295
301k
  for (char32_t x : input) {
5296
301k
    uint16_t status = idna_lookup(static_cast<uint32_t>(x));
5297
301k
    if (status == IDNA_DISALLOWED) {
5298
705
      return false;
5299
705
    }
5300
300k
    if (status == IDNA_VALID) {
5301
195k
      ++out_size;
5302
195k
      continue;
5303
195k
    }
5304
104k
    if (static_cast<size_t>(status) >= idna_utf8_mappings_size) {
5305
0
      return false;
5306
0
    }
5307
104k
    out_size += utf8_count_codepoints(idna_utf8_mappings + status);
5308
104k
  }
5309
5310
  // Pass 2: write into a single allocation.
5311
14.7k
  out.resize(out_size);
5312
14.7k
  size_t w = 0;
5313
299k
  for (char32_t x : input) {
5314
299k
    uint16_t status = idna_lookup(static_cast<uint32_t>(x));
5315
299k
    if (status == IDNA_VALID) {
5316
195k
      out[w++] = x;
5317
195k
      continue;
5318
195k
    }
5319
    // IGNORED or mapped (status already validated in pass 1).
5320
104k
    const uint8_t* ptr = idna_utf8_mappings + status;
5321
462k
    while (*ptr != 0) {
5322
358k
      out[w++] = utf8_next(ptr);
5323
358k
    }
5324
104k
  }
5325
14.7k
  return true;
5326
15.5k
}
5327
5328
0
std::u32string map(std::u32string_view input) {
5329
0
  std::u32string answer;
5330
0
  if (!map(input, answer)) {
5331
0
    return {};
5332
0
  }
5333
0
  return answer;
5334
0
}
5335
5336
}  // namespace ada::idna
5337
/* end file src/mapping.cpp */
5338
/* begin file src/normalization.cpp */
5339
/* begin file include/ada/idna/normalization.h */
5340
#ifndef ADA_IDNA_NORMALIZATION_H
5341
#define ADA_IDNA_NORMALIZATION_H
5342
5343
#include <string>
5344
#include <string_view>
5345
5346
namespace ada::idna {
5347
5348
// Returns true if `input` is already in Unicode Normalization Form C.
5349
// Requires that internal tables have been loaded (call ensure via normalize
5350
// or map first, or this returns false if tables are unavailable).
5351
[[nodiscard]] bool is_already_nfc(std::u32string_view input) noexcept;
5352
5353
// Normalize the characters according to IDNA (Unicode Normalization Form C).
5354
// Returns false if the internal Unicode tables could not be loaded; in that
5355
// case `input` is left unchanged. Skips work when the string is already NFC.
5356
[[nodiscard]] bool normalize(std::u32string& input);
5357
5358
}  // namespace ada::idna
5359
#endif
5360
/* end file include/ada/idna/normalization.h */
5361
/* begin file src/normalization_tables.cpp */
5362
// Normalization table helpers.
5363
// Array payloads live in the DEFLATE blob (table_store.hpp).
5364
// Regenerate with: python3 scripts/unicode_data_table.py --write
5365
// clang-format off
5366
#ifndef ADA_IDNA_NORMALIZATION_TABLES_H
5367
#define ADA_IDNA_NORMALIZATION_TABLES_H
5368
5369
namespace ada::idna {
5370
5371
// Accessors and multi-stage tables are provided by table_store.hpp after
5372
// ensure_tables(). Lookup code matches the classic O(1) uni-algo layout.
5373
5374
}  // namespace ada::idna
5375
#endif  // ADA_IDNA_NORMALIZATION_TABLES_H
5376
/* end file src/normalization_tables.cpp */
5377
5378
#include <cstdint>
5379
5380
namespace ada::idna {
5381
5382
// See
5383
// https://github.com/uni-algo/uni-algo/blob/c612968c5ed3ace39bde4c894c24286c5f2c7fe2/include/uni_algo/impl/impl_norm.h#L467
5384
constexpr char32_t hangul_sbase = 0xAC00;
5385
constexpr char32_t hangul_tbase = 0x11A7;
5386
constexpr char32_t hangul_vbase = 0x1161;
5387
constexpr char32_t hangul_lbase = 0x1100;
5388
constexpr char32_t hangul_lcount = 19;
5389
constexpr char32_t hangul_vcount = 21;
5390
constexpr char32_t hangul_tcount = 28;
5391
constexpr char32_t hangul_ncount = hangul_vcount * hangul_tcount;
5392
constexpr char32_t hangul_scount =
5393
    hangul_lcount * hangul_vcount * hangul_tcount;
5394
5395
// Canonical decomposition length (0 if none / compatibility-only / Hangul
5396
// syllable). Length 1 means a singleton mapping (character is not NFC form).
5397
// Length >= 2 means a primary composite that is already the NFC form of its
5398
// decomposition (e.g. U+00E9 LATIN SMALL LETTER E WITH ACUTE).
5399
268k
static size_t canonical_decomp_length(char32_t current_character) noexcept {
5400
268k
  if (current_character >= hangul_sbase &&
5401
33.0k
      current_character < hangul_sbase + hangul_scount) {
5402
    // Hangul precomposed syllables are NFC.
5403
8.65k
    return 0;
5404
8.65k
  }
5405
260k
  if (current_character >= 0x110000) {
5406
0
    return 0;
5407
0
  }
5408
260k
  const uint8_t di = decomposition_index[current_character >> 8];
5409
260k
  const uint16_t* const decomposition =
5410
260k
      decomposition_block_row(di) + (current_character % 256);
5411
260k
  size_t decomposition_length =
5412
260k
      (decomposition[1] >> 2) - (decomposition[0] >> 2);
5413
260k
  if ((decomposition_length > 0) && (decomposition[0] & 1)) {
5414
0
    decomposition_length = 0;  // compatibility-only: ignored for NFC
5415
0
  }
5416
260k
  return decomposition_length;
5417
260k
}
5418
5419
std::pair<bool, size_t> compute_decomposition_length(
5420
2.26k
    const std::u32string_view input) noexcept {
5421
2.26k
  bool decomposition_needed{false};
5422
2.26k
  size_t additional_elements{0};
5423
71.6k
  for (char32_t current_character : input) {
5424
71.6k
    size_t decomposition_length{0};
5425
5426
71.6k
    if (current_character >= hangul_sbase &&
5427
11.4k
        current_character < hangul_sbase + hangul_scount) {
5428
      // Full NFD-style Hangul decomp for the decompose() step.
5429
5.03k
      decomposition_length = 2;
5430
5.03k
      if ((current_character - hangul_sbase) % hangul_tcount) {
5431
2.09k
        decomposition_length = 3;
5432
2.09k
      }
5433
66.5k
    } else if (current_character < 0x110000) {
5434
66.5k
      const uint8_t di = decomposition_index[current_character >> 8];
5435
66.5k
      const uint16_t* const decomposition =
5436
66.5k
          decomposition_block_row(di) + (current_character % 256);
5437
66.5k
      decomposition_length = (decomposition[1] >> 2) - (decomposition[0] >> 2);
5438
66.5k
      if ((decomposition_length > 0) && (decomposition[0] & 1)) {
5439
0
        decomposition_length = 0;
5440
0
      }
5441
66.5k
    }
5442
71.6k
    if (decomposition_length != 0) {
5443
10.7k
      decomposition_needed = true;
5444
10.7k
      additional_elements += decomposition_length - 1;
5445
10.7k
    }
5446
71.6k
  }
5447
2.26k
  return {decomposition_needed, additional_elements};
5448
2.26k
}
5449
5450
1.01k
void decompose(std::u32string& input, size_t additional_elements) {
5451
1.01k
  input.resize(input.size() + additional_elements);
5452
1.01k
  for (size_t descending_idx = input.size(),
5453
1.01k
              input_count = descending_idx - additional_elements;
5454
37.7k
       input_count--;) {
5455
36.7k
    if (input[input_count] >= hangul_sbase &&
5456
9.84k
        input[input_count] < hangul_sbase + hangul_scount) {
5457
      // Hangul decomposition.
5458
5.03k
      char32_t s_index = input[input_count] - hangul_sbase;
5459
5.03k
      if (s_index % hangul_tcount != 0) {
5460
2.09k
        input[--descending_idx] = hangul_tbase + s_index % hangul_tcount;
5461
2.09k
      }
5462
5.03k
      input[--descending_idx] =
5463
5.03k
          hangul_vbase + (s_index % hangul_ncount) / hangul_tcount;
5464
5.03k
      input[--descending_idx] = hangul_lbase + s_index / hangul_ncount;
5465
31.7k
    } else if (input[input_count] < 0x110000) {
5466
31.7k
      const uint16_t* decomposition =
5467
31.7k
          decomposition_block_row(
5468
31.7k
              decomposition_index[input[input_count] >> 8]) +
5469
31.7k
          (input[input_count] % 256);
5470
31.7k
      uint16_t decomposition_length =
5471
31.7k
          (decomposition[1] >> 2) - (decomposition[0] >> 2);
5472
31.7k
      if (decomposition_length > 0 && (decomposition[0] & 1)) {
5473
0
        decomposition_length = 0;
5474
0
      }
5475
31.7k
      if (decomposition_length > 0) {
5476
5.68k
        const size_t base = static_cast<size_t>(decomposition[0] >> 2);
5477
5.68k
        if (base + decomposition_length > decomposition_data_size) {
5478
0
          input[--descending_idx] = input[input_count];
5479
5.68k
        } else {
5480
19.5k
          while (decomposition_length-- > 0) {
5481
13.8k
            input[--descending_idx] =
5482
13.8k
                decomposition_data[base + decomposition_length];
5483
13.8k
          }
5484
5.68k
        }
5485
26.0k
      } else {
5486
26.0k
        input[--descending_idx] = input[input_count];
5487
26.0k
      }
5488
31.7k
    } else {
5489
0
      input[--descending_idx] = input[input_count];
5490
0
    }
5491
36.7k
  }
5492
1.01k
}
5493
5494
796k
uint8_t get_ccc(char32_t c) noexcept {
5495
796k
  if (c >= 0x110000) {
5496
0
    return 0;
5497
0
  }
5498
796k
  return ccc_block_row(ccc_index[c >> 8])[c % 256];
5499
796k
}
5500
5501
2.26k
void sort_marks(std::u32string& input) {
5502
86.9k
  for (size_t idx = 1; idx < input.size(); idx++) {
5503
84.6k
    uint8_t ccc = get_ccc(input[idx]);
5504
84.6k
    if (ccc == 0) {
5505
69.9k
      continue;
5506
69.9k
    }
5507
14.7k
    auto current_character = input[idx];
5508
14.7k
    size_t back_idx = idx;
5509
21.0k
    while (back_idx != 0 && get_ccc(input[back_idx - 1]) > ccc) {
5510
6.38k
      input[back_idx] = input[back_idx - 1];
5511
6.38k
      back_idx--;
5512
6.38k
    }
5513
14.7k
    input[back_idx] = current_character;
5514
14.7k
  }
5515
2.26k
}
5516
5517
2.26k
void decompose_nfc(std::u32string& input) {
5518
  /**
5519
   * Decompose the domain_name string to Unicode Normalization Form C.
5520
   * @see https://www.unicode.org/reports/tr46/#ProcessingStepDecompose
5521
   */
5522
2.26k
  auto [decomposition_needed, additional_elements] =
5523
2.26k
      compute_decomposition_length(input);
5524
2.26k
  if (decomposition_needed) {
5525
1.01k
    decompose(input, additional_elements);
5526
1.01k
  }
5527
2.26k
  sort_marks(input);
5528
2.26k
}
5529
5530
// Returns true if the composition row of a starter has a pair with `second`.
5531
static bool has_composition(const uint16_t* composition,
5532
34.2k
                            char32_t second) noexcept {
5533
34.2k
  int left = composition[0];
5534
34.2k
  int right = composition[1];
5535
34.2k
  if (left < 0 || right <= left ||
5536
27.8k
      static_cast<size_t>(right) > composition_data_size) {
5537
6.42k
    return false;
5538
6.42k
  }
5539
60.1k
  while (left + 2 < right) {
5540
32.3k
    int middle = left + (((right - left) >> 1) & ~1);
5541
32.3k
    if (composition_data[static_cast<size_t>(middle)] <= second) {
5542
8.78k
      left = middle;
5543
8.78k
    }
5544
32.3k
    if (composition_data[static_cast<size_t>(middle)] >= second) {
5545
25.5k
      right = middle;
5546
25.5k
    }
5547
32.3k
  }
5548
27.8k
  return static_cast<size_t>(left + 1) < composition_data_size &&
5549
27.8k
         composition_data[static_cast<size_t>(left)] == second;
5550
34.2k
}
5551
5552
// Returns true if a composition step would change the string.
5553
3.69k
static bool would_compose(std::u32string_view input) noexcept {
5554
102k
  for (size_t input_count = 0; input_count < input.size();) {
5555
101k
    const char32_t current = input[input_count];
5556
101k
    if (current >= hangul_lbase && current < hangul_lbase + hangul_lcount) {
5557
5.48k
      if (input_count + 1 < input.size() &&
5558
5.44k
          input[input_count + 1] >= hangul_vbase &&
5559
1.25k
          input[input_count + 1] < hangul_vbase + hangul_vcount) {
5560
258
        return true;
5561
258
      }
5562
5.22k
      ++input_count;
5563
5.22k
      continue;
5564
5.48k
    }
5565
96.1k
    if (current >= hangul_sbase && current < hangul_sbase + hangul_scount) {
5566
3.82k
      if ((current - hangul_sbase) % hangul_tcount == 0 &&
5567
1.89k
          input_count + 1 < input.size() &&
5568
1.86k
          input[input_count + 1] > hangul_tbase &&
5569
1.57k
          input[input_count + 1] < hangul_tbase + hangul_tcount) {
5570
180
        return true;
5571
180
      }
5572
3.64k
      ++input_count;
5573
3.64k
      continue;
5574
3.82k
    }
5575
92.3k
    if (current < 0x110000) {
5576
92.3k
      const uint16_t* composition =
5577
92.3k
          composition_block_row(composition_index[current >> 8]) +
5578
92.3k
          (current % 256);
5579
92.3k
      int32_t previous_ccc = -1;
5580
92.3k
      size_t j = input_count;
5581
98.2k
      for (; j + 1 < input.size(); ++j) {
5582
97.6k
        uint8_t ccc = get_ccc(input[j + 1]);
5583
97.6k
        if (composition[1] != composition[0] && previous_ccc < ccc &&
5584
24.6k
            has_composition(composition, input[j + 1])) {
5585
2.55k
          return true;
5586
2.55k
        }
5587
95.0k
        if (ccc == 0) {
5588
89.1k
          break;
5589
89.1k
        }
5590
5.91k
        previous_ccc = ccc;
5591
5.91k
      }
5592
89.8k
      input_count = j + 1;
5593
89.8k
      continue;
5594
92.3k
    }
5595
0
    ++input_count;
5596
0
  }
5597
708
  return false;
5598
3.69k
}
5599
5600
// Trailing canonical combining class of a character: the combining class of the
5601
// last code point of its canonical decomposition, or the character's own class
5602
// when it has none. A precomposed starter such as U+00E1 (a + U+0301, class
5603
// 230) has class 0 but a nonzero trailing class, so a following mark of lower
5604
// class reorders past the hidden mark during normalization.
5605
132k
static uint8_t trailing_ccc(char32_t c) noexcept {
5606
132k
  const size_t length = canonical_decomp_length(c);
5607
132k
  if (length == 0) {
5608
123k
    return get_ccc(c);
5609
123k
  }
5610
9.26k
  const uint16_t* const decomposition =
5611
9.26k
      decomposition_block_row(decomposition_index[c >> 8]) + (c % 256);
5612
9.26k
  const size_t base = decomposition[0] >> 2;
5613
9.26k
  return get_ccc(decomposition_data[base + length - 1]);
5614
132k
}
5615
5616
// Since Unicode 16 the first code point of a canonical decomposition can
5617
// compose with the preceding character: U+16121 is U+1611E U+1611E, so U+1611E
5618
// U+16121 normalizes to U+16121 U+1611E.
5619
static bool decomposition_composes_with_previous(char32_t previous,
5620
136k
                                                 char32_t c) noexcept {
5621
136k
  const size_t length = canonical_decomp_length(c);
5622
136k
  if (length < 2 || previous >= 0x110000) {
5623
126k
    return false;
5624
126k
  }
5625
9.62k
  const uint16_t* const decomposition =
5626
9.62k
      decomposition_block_row(decomposition_index[c >> 8]) + (c % 256);
5627
9.62k
  const size_t base = decomposition[0] >> 2;
5628
9.62k
  if (base + length > decomposition_data_size) {
5629
0
    return false;
5630
0
  }
5631
9.62k
  return has_composition(
5632
9.62k
      composition_block_row(composition_index[previous >> 8]) +
5633
9.62k
          (previous % 256),
5634
9.62k
      decomposition_data[base]);
5635
9.62k
}
5636
5637
// Values stored in nfc_qc_block; keep in sync with NFC_QUICK_CHECK in
5638
// scripts/unicode_data_table.py.
5639
enum class nfc_quick_check : uint8_t { yes, maybe, no };
5640
5641
// Every code point below this has NFC_Quick_Check=Yes and combining class 0.
5642
// Checked by scripts/unicode_data_table.py (NFC_QC_FIRST_NON_STARTER).
5643
constexpr char32_t nfc_qc_first_non_starter = 0x0300;
5644
5645
256k
static nfc_quick_check get_nfc_quick_check(char32_t c) noexcept {
5646
256k
  if (c >= 0x110000) {
5647
0
    return nfc_quick_check::yes;
5648
0
  }
5649
256k
  return static_cast<nfc_quick_check>(
5650
256k
      nfc_qc_block_row(nfc_qc_index[c >> 8])[c % 256]);
5651
256k
}
5652
5653
// Decides a string with an NFC_Quick_Check=Maybe character and no "No" one.
5654
// It may report false for a string that is NFC; normalization then leaves it
5655
// unchanged.
5656
4.20k
static bool maybe_is_nfc(std::u32string_view input) noexcept {
5657
  // 1) A character whose decomposition starts with a code point that composes
5658
  //    with the previous character (e.g. U+1611E U+16121).
5659
4.20k
  char32_t previous = 0x110000;  // none
5660
136k
  for (char32_t c : input) {
5661
136k
    if (decomposition_composes_with_previous(previous, c)) {
5662
78
      return false;
5663
78
    }
5664
136k
    previous = c;
5665
136k
  }
5666
  // 2) Combining marks already in canonical order. prev_ccc carries the
5667
  //    trailing class of the previous character's canonical decomposition so a
5668
  //    composite starter followed by a lower-class mark is caught.
5669
4.12k
  uint8_t prev_ccc = 0;
5670
132k
  for (char32_t c : input) {
5671
132k
    uint8_t ccc = get_ccc(c);
5672
132k
    if (ccc != 0 && prev_ccc > ccc) {
5673
432
      return false;
5674
432
    }
5675
132k
    prev_ccc = trailing_ccc(c);
5676
132k
  }
5677
  // 3) No pairwise composition would apply (including Hangul L+V / LV+T).
5678
3.69k
  return !would_compose(input);
5679
4.12k
}
5680
5681
// The NFC quick check of UAX #15 Section 9. "No" characters are the ones whose
5682
// canonical decomposition does not compose back to them: singletons (e.g.
5683
// U+212B), composition exclusions (e.g. U+0958, U+1F71) and non-starter
5684
// decompositions (e.g. U+0344). "Maybe" characters can compose with the
5685
// character before them (e.g. U+0301, U+1161, U+16121); only strings that have
5686
// one need maybe_is_nfc().
5687
// https://www.unicode.org/reports/tr15/#Detecting_Normalization_Forms
5688
13.7k
bool is_already_nfc(std::u32string_view input) noexcept {
5689
13.7k
  if (input.empty()) {
5690
0
    return true;
5691
0
  }
5692
13.7k
  if (!tables_are_ready() && !ensure_tables()) {
5693
0
    return false;
5694
0
  }
5695
13.7k
  uint8_t last_ccc = 0;
5696
13.7k
  bool maybe = false;
5697
404k
  for (char32_t c : input) {
5698
404k
    if (c < nfc_qc_first_non_starter) {
5699
147k
      last_ccc = 0;
5700
147k
      continue;
5701
147k
    }
5702
257k
    const uint8_t ccc = get_ccc(c);
5703
257k
    if (ccc != 0 && last_ccc > ccc) {
5704
1.02k
      return false;
5705
1.02k
    }
5706
256k
    const nfc_quick_check check = get_nfc_quick_check(c);
5707
256k
    if (check == nfc_quick_check::no) {
5708
0
      return false;
5709
0
    }
5710
256k
    maybe = maybe || check == nfc_quick_check::maybe;
5711
256k
    last_ccc = ccc;
5712
256k
  }
5713
12.6k
  return !maybe || maybe_is_nfc(input);
5714
13.7k
}
5715
5716
2.26k
void compose(std::u32string& input) {
5717
  /**
5718
   * Compose the domain_name string to Unicode Normalization Form C.
5719
   * @see https://www.unicode.org/reports/tr46/#ProcessingStepCompose
5720
   */
5721
2.26k
  size_t input_count{0};
5722
2.26k
  size_t composition_count{0};
5723
63.8k
  for (; input_count < input.size(); input_count++, composition_count++) {
5724
61.6k
    input[composition_count] = input[input_count];
5725
61.6k
    if (input[input_count] >= hangul_lbase &&
5726
19.0k
        input[input_count] < hangul_lbase + hangul_lcount) {
5727
8.34k
      if (input_count + 1 < input.size() &&
5728
8.29k
          input[input_count + 1] >= hangul_vbase &&
5729
5.73k
          input[input_count + 1] < hangul_vbase + hangul_vcount) {
5730
5.16k
        input[composition_count] =
5731
5.16k
            hangul_sbase +
5732
5.16k
            ((input[input_count] - hangul_lbase) * hangul_vcount +
5733
5.16k
             input[input_count + 1] - hangul_vbase) *
5734
5.16k
                hangul_tcount;
5735
5.16k
        input_count++;
5736
5.16k
        if (input_count + 1 < input.size() &&
5737
5.07k
            input[input_count + 1] > hangul_tbase &&
5738
2.75k
            input[input_count + 1] < hangul_tbase + hangul_tcount) {
5739
2.18k
          input[composition_count] += input[++input_count] - hangul_tbase;
5740
2.18k
        }
5741
5.16k
      }
5742
53.2k
    } else if (input[input_count] >= hangul_sbase &&
5743
5.39k
               input[input_count] < hangul_sbase + hangul_scount) {
5744
0
      if ((input[input_count] - hangul_sbase) % hangul_tcount == 0 &&
5745
0
          input_count + 1 < input.size() &&
5746
0
          input[input_count + 1] > hangul_tbase &&
5747
0
          input[input_count + 1] < hangul_tbase + hangul_tcount) {
5748
0
        input[composition_count] += input[++input_count] - hangul_tbase;
5749
0
      }
5750
53.2k
    } else if (input[input_count] < 0x110000) {
5751
53.2k
      const uint16_t* composition =
5752
53.2k
          composition_block_row(composition_index[input[input_count] >> 8]) +
5753
53.2k
          (input[input_count] % 256);
5754
53.2k
      size_t initial_composition_count = composition_count;
5755
71.2k
      for (int32_t previous_ccc = -1; input_count + 1 < input.size();
5756
69.2k
           input_count++) {
5757
69.2k
        uint8_t ccc = get_ccc(input[input_count + 1]);
5758
5759
69.2k
        if (composition[1] != composition[0] && previous_ccc < ccc) {
5760
23.3k
          int left = composition[0];
5761
23.3k
          int right = composition[1];
5762
23.3k
          if (left < 0 || right < left ||
5763
23.3k
              static_cast<size_t>(right) > composition_data_size) {
5764
0
            break;
5765
0
          }
5766
53.9k
          while (left + 2 < right) {
5767
30.6k
            int middle = left + (((right - left) >> 1) & ~1);
5768
30.6k
            if (composition_data[static_cast<size_t>(middle)] <=
5769
30.6k
                input[input_count + 1]) {
5770
13.5k
              left = middle;
5771
13.5k
            }
5772
30.6k
            if (composition_data[static_cast<size_t>(middle)] >=
5773
30.6k
                input[input_count + 1]) {
5774
22.7k
              right = middle;
5775
22.7k
            }
5776
30.6k
          }
5777
23.3k
          if (static_cast<size_t>(left + 1) < composition_data_size &&
5778
23.3k
              composition_data[static_cast<size_t>(left)] ==
5779
23.3k
                  input[input_count + 1]) {
5780
9.57k
            char32_t composed = composition_data[static_cast<size_t>(left + 1)];
5781
9.57k
            input[initial_composition_count] = composed;
5782
9.57k
            composition =
5783
9.57k
                composition_block_row(composition_index[composed >> 8]) +
5784
9.57k
                (composed % 256);
5785
9.57k
            continue;
5786
9.57k
          }
5787
23.3k
        }
5788
5789
59.6k
        if (ccc == 0) {
5790
51.2k
          break;
5791
51.2k
        }
5792
8.40k
        previous_ccc = ccc;
5793
8.40k
        input[++composition_count] = input[input_count + 1];
5794
8.40k
      }
5795
53.2k
    }
5796
61.6k
  }
5797
5798
2.26k
  if (composition_count < input_count) {
5799
1.94k
    input.resize(composition_count);
5800
1.94k
  }
5801
2.26k
}
5802
5803
2.26k
bool normalize(std::u32string& input) {
5804
  /**
5805
   * Normalize the characters according to IDNA (Unicode Normalization Form C).
5806
   * @see https://www.unicode.org/reports/tr46/#ProcessingStepNormalize
5807
   */
5808
2.26k
  if (!ensure_tables() || decomposition_index == nullptr ||
5809
2.26k
      composition_index == nullptr) {
5810
0
    return false;
5811
0
  }
5812
2.26k
  if (is_already_nfc(input)) {
5813
0
    return true;
5814
0
  }
5815
2.26k
  decompose_nfc(input);
5816
2.26k
  compose(input);
5817
2.26k
  return true;
5818
2.26k
}
5819
5820
}  // namespace ada::idna
5821
/* end file src/normalization.cpp */
5822
/* begin file src/punycode.cpp */
5823
/* begin file include/ada/idna/punycode.h */
5824
#ifndef ADA_IDNA_PUNYCODE_H
5825
#define ADA_IDNA_PUNYCODE_H
5826
5827
#include <string>
5828
#include <string_view>
5829
5830
namespace ada::idna {
5831
5832
bool punycode_to_utf32(std::string_view input, std::u32string& out);
5833
bool verify_punycode(std::string_view input);
5834
bool utf32_to_punycode(std::u32string_view input, std::string& out);
5835
5836
}  // namespace ada::idna
5837
5838
#endif  // ADA_IDNA_PUNYCODE_H
5839
/* end file include/ada/idna/punycode.h */
5840
5841
#include <cstdint>
5842
5843
namespace ada::idna {
5844
5845
constexpr int32_t base = 36;
5846
constexpr int32_t tmin = 1;
5847
constexpr int32_t tmax = 26;
5848
constexpr int32_t skew = 38;
5849
constexpr int32_t damp = 700;
5850
constexpr int32_t initial_bias = 72;
5851
constexpr uint32_t initial_n = 128;
5852
5853
71.5k
static constexpr int32_t char_to_digit_value(char value) {
5854
71.5k
  if (value >= 'a' && value <= 'z') return value - 'a';
5855
7.42k
  if (value >= '0' && value <= '9') return value - '0' + 26;
5856
99
  return -1;
5857
7.42k
}
5858
5859
416k
static constexpr char digit_to_char(int32_t digit) {
5860
416k
  return digit < 26 ? char(digit + 97) : char(digit + 22);
5861
416k
}
5862
5863
192k
static constexpr int32_t adapt(int32_t d, int32_t n, bool firsttime) {
5864
192k
  if (firsttime) {
5865
40.3k
    d = d / damp;
5866
152k
  } else {
5867
152k
    d = d / 2;
5868
152k
  }
5869
192k
  d += d / n;
5870
192k
  int32_t k = 0;
5871
282k
  while (d > ((base - tmin) * tmax) / 2) {
5872
89.8k
    d /= base - tmin;
5873
89.8k
    k += base;
5874
89.8k
  }
5875
192k
  return k + (((base - tmin + 1) * d) / (d + skew));
5876
192k
}
5877
5878
4.53k
bool punycode_to_utf32(std::string_view input, std::u32string &out) {
5879
4.53k
  int32_t written_out{0};
5880
4.53k
  out.reserve(out.size() + input.size());
5881
4.53k
  uint32_t n = initial_n;
5882
4.53k
  int32_t i = 0;
5883
4.53k
  int32_t bias = initial_bias;
5884
  // grab ascii content
5885
  // RFC 3492 section 6.2: copy the code points before the last delimiter,
5886
  // then consume the delimiter only "if more than zero code points were
5887
  // consumed". With a leading delimiter, b == 0, decoding starts at the
5888
  // delimiter itself, which is not a digit, and fails. This matches the
5889
  // reference implementation in appendix C (`in = b > 0 ? b + 1 : 0`).
5890
4.53k
  size_t end_of_ascii = input.find_last_of('-');
5891
4.53k
  if (end_of_ascii != std::string_view::npos && end_of_ascii > 0) {
5892
10.1k
    for (uint8_t c : input.substr(0, end_of_ascii)) {
5893
10.1k
      if (c >= 0x80) {
5894
0
        return false;
5895
0
      }
5896
10.1k
      out.push_back(c);
5897
10.1k
      written_out++;
5898
10.1k
    }
5899
933
    input.remove_prefix(end_of_ascii + 1);
5900
933
  }
5901
57.2k
  while (!input.empty()) {
5902
53.0k
    int32_t oldi = i;
5903
53.0k
    int32_t w = 1;
5904
71.7k
    for (int32_t k = base;; k += base) {
5905
71.7k
      if (input.empty()) {
5906
168
        return false;
5907
168
      }
5908
71.5k
      uint8_t code_point = input.front();
5909
71.5k
      input.remove_prefix(1);
5910
71.5k
      int32_t digit = char_to_digit_value(code_point);
5911
71.5k
      if (digit < 0) {
5912
99
        return false;
5913
99
      }
5914
71.4k
      if (digit > (0x7fffffff - i) / w) {
5915
18
        return false;
5916
18
      }
5917
71.4k
      i = i + digit * w;
5918
71.4k
      int32_t t = k <= bias ? tmin : k >= bias + tmax ? tmax : k - bias;
5919
71.4k
      if (digit < t) {
5920
52.8k
        break;
5921
52.8k
      }
5922
18.6k
      if (w > 0x7fffffff / (base - t)) {
5923
0
        return false;
5924
0
      }
5925
18.6k
      w = w * (base - t);
5926
18.6k
    }
5927
52.8k
    bias = adapt(i - oldi, written_out + 1, oldi == 0);
5928
52.8k
    if (i / (written_out + 1) > int32_t(0x7fffffff - n)) {
5929
81
      return false;
5930
81
    }
5931
52.7k
    n = n + i / (written_out + 1);
5932
52.7k
    i = i % (written_out + 1);
5933
52.7k
    if (n < 0x80) {
5934
0
      return false;
5935
0
    }
5936
52.7k
    out.insert(out.begin() + i, n);
5937
52.7k
    written_out++;
5938
52.7k
    ++i;
5939
52.7k
  }
5940
  // See https://github.com/whatwg/url/issues/803
5941
  // Reject labels whose decoded form begins with "xn--" (double-encoded ACE).
5942
4.16k
  if (out.size() >= 4 && out[0] == U'x' && out[1] == U'n' && out[2] == U'-' &&
5943
153
      out[3] == U'-') {
5944
9
    return false;
5945
9
  }
5946
4.15k
  return true;
5947
4.16k
}
5948
5949
0
bool verify_punycode(std::string_view input) {
5950
  // Track only the first 4 decoded code points to check for the "xn--" prefix.
5951
  // This avoids heap allocation while still detecting double-encoded ACE
5952
  // labels.
5953
0
  uint32_t first4[4]{};
5954
0
  size_t written_out{0};
5955
0
  uint32_t n = initial_n;
5956
0
  int32_t i = 0;
5957
0
  int32_t bias = initial_bias;
5958
  // grab ascii content
5959
0
  size_t end_of_ascii = input.find_last_of('-');
5960
0
  if (end_of_ascii != std::string_view::npos) {
5961
0
    for (uint8_t c : input.substr(0, end_of_ascii)) {
5962
0
      if (c >= 0x80) {
5963
0
        return false;
5964
0
      }
5965
0
      if (written_out < 4) {
5966
0
        first4[written_out] = c;
5967
0
      }
5968
0
      written_out++;
5969
0
    }
5970
0
    input.remove_prefix(end_of_ascii + 1);
5971
0
  }
5972
0
  while (!input.empty()) {
5973
0
    int32_t oldi = i;
5974
0
    int32_t w = 1;
5975
0
    for (int32_t k = base;; k += base) {
5976
0
      if (input.empty()) {
5977
0
        return false;
5978
0
      }
5979
0
      uint8_t code_point = input.front();
5980
0
      input.remove_prefix(1);
5981
0
      int32_t digit = char_to_digit_value(code_point);
5982
0
      if (digit < 0) {
5983
0
        return false;
5984
0
      }
5985
0
      if (digit > (0x7fffffff - i) / w) {
5986
0
        return false;
5987
0
      }
5988
0
      i = i + digit * w;
5989
0
      int32_t t = k <= bias ? tmin : k >= bias + tmax ? tmax : k - bias;
5990
0
      if (digit < t) {
5991
0
        break;
5992
0
      }
5993
0
      if (w > 0x7fffffff / (base - t)) {
5994
0
        return false;
5995
0
      }
5996
0
      w = w * (base - t);
5997
0
    }
5998
0
    bias = adapt(i - oldi, int32_t(written_out + 1), oldi == 0);
5999
0
    if (i / (written_out + 1) > 0x7fffffff - n) {
6000
0
      return false;
6001
0
    }
6002
0
    n = n + i / int32_t(written_out + 1);
6003
0
    i = i % int32_t(written_out + 1);
6004
0
    if (n < 0x80) {
6005
0
      return false;
6006
0
    }
6007
    // Simulate insert at position i, maintaining only the first 4 slots.
6008
0
    size_t insert_pos = size_t(i);
6009
0
    if (insert_pos < 4) {
6010
0
      for (size_t j = 3; j > insert_pos; j--) {
6011
0
        first4[j] = first4[j - 1];
6012
0
      }
6013
0
      first4[insert_pos] = n;
6014
0
    }
6015
0
    written_out++;
6016
0
    ++i;
6017
0
  }
6018
  // See https://github.com/whatwg/url/issues/803
6019
  // Reject labels whose decoded form begins with "xn--" (double-encoded ACE).
6020
0
  if (written_out >= 4 && first4[0] == U'x' && first4[1] == U'n' &&
6021
0
      first4[2] == U'-' && first4[3] == U'-') {
6022
0
    return false;
6023
0
  }
6024
0
  return true;
6025
0
}
6026
6027
36.1k
bool utf32_to_punycode(std::u32string_view input, std::string &out) {
6028
36.1k
  out.reserve(input.size() + out.size());
6029
36.1k
  uint32_t n = initial_n;
6030
36.1k
  int32_t d = 0;
6031
36.1k
  int32_t bias = initial_bias;
6032
36.1k
  size_t h = 0;
6033
  // first push the ascii content
6034
161k
  for (uint32_t c : input) {
6035
161k
    if (c < 0x80) {
6036
22.0k
      ++h;
6037
22.0k
      out.push_back(char(c));
6038
22.0k
    }
6039
161k
    if (c > 0x10ffff || (c >= 0xd800 && c < 0xe000)) {
6040
0
      return false;
6041
0
    }
6042
161k
  }
6043
36.1k
  size_t b = h;
6044
36.1k
  if (b > 0) {
6045
6.08k
    out.push_back('-');
6046
6.08k
  }
6047
156k
  while (h < input.size()) {
6048
120k
    uint32_t m = 0x10FFFF;
6049
668k
    for (auto code_point : input) {
6050
668k
      if (code_point >= n && code_point < m) m = code_point;
6051
668k
    }
6052
6053
120k
    if ((m - n) > (0x7fffffff - d) / (h + 1)) {
6054
0
      return false;
6055
0
    }
6056
120k
    d = d + int32_t((m - n) * (h + 1));
6057
120k
    n = m;
6058
668k
    for (auto c : input) {
6059
668k
      if (c < n) {
6060
282k
        if (d == 0x7fffffff) {
6061
0
          return false;
6062
0
        }
6063
282k
        ++d;
6064
282k
      }
6065
668k
      if (c == n) {
6066
139k
        int32_t q = d;
6067
416k
        for (int32_t k = base;; k += base) {
6068
416k
          int32_t t = k <= bias ? tmin : k >= bias + tmax ? tmax : k - bias;
6069
6070
416k
          if (q < t) {
6071
139k
            break;
6072
139k
          }
6073
276k
          out.push_back(digit_to_char(t + ((q - t) % (base - t))));
6074
276k
          q = (q - t) / (base - t);
6075
276k
        }
6076
139k
        out.push_back(digit_to_char(q));
6077
139k
        bias = adapt(d, int32_t(h + 1), h == b);
6078
139k
        d = 0;
6079
139k
        ++h;
6080
139k
      }
6081
668k
    }
6082
120k
    ++d;
6083
120k
    ++n;
6084
120k
  }
6085
36.1k
  return true;
6086
36.1k
}
6087
6088
}  // namespace ada::idna
6089
/* end file src/punycode.cpp */
6090
/* begin file src/validity.cpp */
6091
6092
#include <algorithm>
6093
#include <span>
6094
#include <string_view>
6095
6096
namespace ada::idna {
6097
6098
// Values stored in dir_block; keep in sync with BIDI_CLASSES in
6099
// scripts/unicode_data_table.py.
6100
enum direction : uint8_t {
6101
  NONE,
6102
  BN,
6103
  CS,
6104
  ES,
6105
  ON,
6106
  EN,
6107
  L,
6108
  R,
6109
  NSM,
6110
  AL,
6111
  AN,
6112
  ET,
6113
  WS,
6114
  RLO,
6115
  LRO,
6116
  PDF,
6117
  RLE,
6118
  RLI,
6119
  FSI,
6120
  PDI,
6121
  LRI,
6122
  B,
6123
  S,
6124
  LRE
6125
};
6126
6127
// Values stored in joining_value; keep in sync with JOINING_TYPES in
6128
// scripts/unicode_data_table.py. Code points without a range are U.
6129
enum class joining_type : uint8_t { U, C, D, L, R, T };
6130
6131
// The Bidi_Class of every code point is a two-stage table (dir_index and
6132
// dir_block); Joining_Type ranges are const SoA arrays (joining_*). Both live
6133
// in the compressed blob. See table_store.hpp layout asserts.
6134
// Regenerate with: python3 scripts/unicode_data_table.py --write
6135
6136
// No code point below this is R, AL or AN. Checked by
6137
// scripts/unicode_data_table.py (FIRST_RTL_CODE_POINT).
6138
constexpr char32_t first_rtl_code_point = 0x0590;
6139
6140
constexpr uint32_t rtl_directions =
6141
    (1u << direction::R) | (1u << direction::AL) | (1u << direction::AN);
6142
6143
// Defined in normalization.cpp.
6144
uint8_t get_ccc(char32_t c) noexcept;
6145
6146
// CheckJoiners and CheckBidi are true for URL specification.
6147
6148
// Returns the index of the range [start[i], last[i]] that contains code_point,
6149
// or count if there is none. `last` must be sorted.
6150
inline static size_t find_range(const uint32_t* start, const uint32_t* last,
6151
5.06k
                                size_t count, uint32_t code_point) noexcept {
6152
5.06k
  size_t lo = 0, hi = count;
6153
52.9k
  while (lo < hi) {
6154
47.9k
    size_t mid = lo + (hi - lo) / 2;
6155
47.9k
    if (last[mid] < code_point) {
6156
12.2k
      lo = mid + 1;
6157
35.6k
    } else {
6158
35.6k
      hi = mid;
6159
35.6k
    }
6160
47.9k
  }
6161
5.06k
  return lo < count && code_point >= start[lo] ? lo : count;
6162
5.06k
}
6163
6164
// Assumes ensure_tables() has already been called.
6165
322k
inline static direction find_direction(uint32_t code_point) noexcept {
6166
322k
  if (code_point >= 0x110000) {
6167
0
    return direction::NONE;
6168
0
  }
6169
322k
  return static_cast<direction>(
6170
322k
      dir_block_row(dir_index[code_point >> 8])[code_point & 0xFF]);
6171
322k
}
6172
6173
// Assumes ensure_tables() has already been called by is_label_valid().
6174
5.06k
inline static joining_type find_joining_type(uint32_t code_point) noexcept {
6175
5.06k
  size_t i =
6176
5.06k
      find_range(joining_start, joining_final, joining_table_count, code_point);
6177
5.06k
  return i == joining_table_count ? joining_type::U
6178
5.06k
                                  : static_cast<joining_type>(joining_value[i]);
6179
5.06k
}
6180
6181
// The ContextJ rules for U+200C and U+200D from RFC 5892 Appendix A.
6182
49.5k
inline static bool is_contextj_valid(std::u32string_view label) noexcept {
6183
49.5k
  constexpr uint8_t virama_ccc = 9;
6184
314k
  for (size_t i = 0; i < label.size(); i++) {
6185
265k
    if (label[i] != 0x200C && label[i] != 0x200D) {
6186
263k
      continue;
6187
263k
    }
6188
    // If Canonical_Combining_Class(Before(cp)) .eq. Virama Then True;
6189
1.82k
    if (i > 0 && get_ccc(label[i - 1]) == virama_ccc) {
6190
381
      continue;
6191
381
    }
6192
1.44k
    if (label[i] == 0x200D) {
6193
39
      return false;
6194
39
    }
6195
    // If RegExpMatch((Joining_Type:{L,D})(Joining_Type:T)*\u200C
6196
    //    (Joining_Type:T)*(Joining_Type:{R,D})) Then True;
6197
1.40k
    joining_type before = joining_type::U;
6198
2.99k
    for (size_t j = i; j > 0;) {
6199
2.97k
      before = find_joining_type(label[--j]);
6200
2.97k
      if (before != joining_type::T) {
6201
1.38k
        break;
6202
1.38k
      }
6203
2.97k
    }
6204
1.40k
    if (before != joining_type::L && before != joining_type::D) {
6205
180
      return false;
6206
180
    }
6207
1.22k
    joining_type after = joining_type::U;
6208
2.21k
    for (size_t j = i + 1; j < label.size(); j++) {
6209
2.08k
      after = find_joining_type(label[j]);
6210
2.08k
      if (after != joining_type::T) {
6211
1.09k
        break;
6212
1.09k
      }
6213
2.08k
    }
6214
1.22k
    if (after != joining_type::R && after != joining_type::D) {
6215
264
      return false;
6216
264
    }
6217
1.22k
  }
6218
49.0k
  return true;
6219
49.5k
}
6220
6221
// An RTL label is a label that contains at least one character of type R, AL,
6222
// or AN. A domain containing one is a Bidi domain name: RFC 5893 then applies
6223
// to every label, including labels that are themselves all LTR.
6224
// https://www.rfc-editor.org/rfc/rfc5893#section-2
6225
//
6226
// Loads the tables itself. Visible to to_unicode, which is part of this
6227
// translation unit.
6228
0
inline static bool label_contains_rtl(std::u32string_view label) noexcept {
6229
0
  if (label.empty() || !ensure_tables() || dir_index == nullptr ||
6230
0
      dir_block_flat == nullptr) {
6231
0
    return false;
6232
0
  }
6233
0
  for (char32_t c : label) {
6234
0
    if (c >= first_rtl_code_point &&
6235
0
        ((1u << find_direction(c)) & rtl_directions) != 0) {
6236
0
      return true;
6237
0
    }
6238
0
  }
6239
0
  return false;
6240
0
}
6241
6242
// The validity criteria of one label, split by whether they depend on the rest
6243
// of the domain name: whether it is a Bidi domain name is only known once
6244
// every label has been seen. to_ascii and to_unicode check each label once and
6245
// combine the parts with ok() when they know the answer.
6246
struct label_check {
6247
  // Every criterion other than CheckBidi holds.
6248
  bool valid = false;
6249
  // The label is an RTL label, so the domain name is a Bidi domain name.
6250
  bool rtl = false;
6251
  // The label satisfies the six conditions of RFC 5893 Section 2.
6252
  bool bidi = false;
6253
6254
0
  [[nodiscard]] bool ok(bool bidi_domain) const noexcept {
6255
0
    return valid && (bidi || !(bidi_domain || rtl));
6256
0
  }
6257
};
6258
6259
// Visible to to_ascii and to_unicode, which are part of this translation unit.
6260
49.9k
static label_check check_label(const std::u32string_view label) {
6261
49.9k
  if (label.empty()) {
6262
0
    return {true, false, true};
6263
0
  }
6264
49.9k
  if (!ensure_tables() || combining_ranges == nullptr || dir_index == nullptr ||
6265
49.9k
      dir_block_flat == nullptr || joining_start == nullptr ||
6266
49.9k
      joining_final == nullptr || joining_value == nullptr) {
6267
0
    return {};
6268
0
  }
6269
6270
  // An invalid RTL label still makes the domain a Bidi domain name, so `rtl`
6271
  // is reported even when another criterion fails.
6272
49.9k
  uint32_t directions = 0;
6273
49.9k
  direction last = direction::NSM;  // last direction that is not NSM
6274
273k
  for (char32_t c : label) {
6275
273k
    const direction d = find_direction(c);
6276
273k
    directions |= 1u << d;
6277
273k
    if (d != direction::NSM) {
6278
259k
      last = d;
6279
259k
    }
6280
273k
  }
6281
49.9k
  const bool rtl = (directions & rtl_directions) != 0;
6282
6283
  ///////////////
6284
  // We have a normalization step which ensures that we are in NFC.
6285
  // If we receive punycode, we normalize and check that the normalized
6286
  // version matches the original.
6287
  // --------------------------------------
6288
  // The label must be in Unicode Normalization Form NFC.
6289
6290
  // Current URL standard indicatest that CheckHyphens is set to false.
6291
  // ---------------------------------------
6292
  // If CheckHyphens, the label must not contain a U+002D HYPHEN-MINUS character
6293
  // in both the third and fourth positions. If CheckHyphens, the label must
6294
  // neither begin nor end with a U+002D HYPHEN-MINUS character.
6295
6296
  // This is not necessary because we segment the
6297
  // labels by '.'.
6298
  // ---------------------------------------
6299
  // The label must not contain a U+002E ( . ) FULL STOP.
6300
  // if (label.find('.') != std::string_view::npos) return false;
6301
6302
  // The label must not begin with a combining mark.
6303
  // Range membership via lower_bound on range end.
6304
49.9k
  const std::span<const uint32_t[2]> comb_span{combining_ranges,
6305
49.9k
                                               combining_range_count};
6306
49.9k
  const auto comb_it = std::ranges::lower_bound(
6307
417k
      comb_span, label.front(), {}, [](const auto& range) { return range[1]; });
6308
49.9k
  if (comb_it != comb_span.end() && label.front() >= (*comb_it)[0]) {
6309
342
    return {false, rtl, false};
6310
342
  }
6311
  // We verify this next step as part of the mapping:
6312
  // ---------------------------------------------
6313
  // Each code point in the label must only have certain status values
6314
  // according to Section 5, IDNA Mapping Table:
6315
  // - For Transitional Processing, each value must be valid.
6316
  // - For Nontransitional Processing, each value must be either valid or
6317
  // deviation.
6318
6319
  // If CheckJoiners, the label must satisfy the ContextJ rules from Appendix
6320
  // A, in The Unicode Code Points and Internationalized Domain Names for
6321
  // Applications (IDNA) [IDNA2008].
6322
49.5k
  if (!is_contextj_valid(label)) {
6323
483
    return {false, rtl, false};
6324
483
  }
6325
6326
  // If CheckBidi, and if the domain name is a  Bidi domain name, then the label
6327
  // must satisfy all six of the numbered conditions in [IDNA2008] RFC 5893,
6328
  // Section 2.
6329
6330
  // The following rule, consisting of six conditions, applies to labels
6331
  // in Bidi domain names.  The requirements that this rule satisfies are
6332
  // described in Section 3.  All of the conditions must be satisfied for
6333
  // the rule to be satisfied.
6334
  //
6335
  //  1.  The first character must be a character with Bidi property L, R,
6336
  //     or AL.  If it has the R or AL property, it is an RTL label; if it
6337
  //     has the L property, it is an LTR label.
6338
  //
6339
  //  2.  In an RTL label, only characters with the Bidi properties R, AL,
6340
  //      AN, EN, ES, CS, ET, ON, BN, or NSM are allowed.
6341
  //
6342
  //   3.  In an RTL label, the end of the label must be a character with
6343
  //       Bidi property R, AL, EN, or AN, followed by zero or more
6344
  //       characters with Bidi property NSM.
6345
  //
6346
  //   4.  In an RTL label, if an EN is present, no AN may be present, and
6347
  //       vice versa.
6348
  //
6349
  //  5.  In an LTR label, only characters with the Bidi properties L, EN,
6350
  //       ES, CS, ET, ON, BN, or NSM are allowed.
6351
  //
6352
  //   6.  In an LTR label, the end of the label must be a character with
6353
  //       Bidi property L or EN, followed by zero or more characters with
6354
  //       Bidi property NSM.
6355
  //
6356
  // Every character after the last non-NSM character is NSM, which both the
6357
  // LTR and the RTL rules allow, so conditions 2, 4 and 5 only depend on the
6358
  // set of directions in the whole label.
6359
49.0k
  if (last == direction::NSM) {
6360
0
    return {false, rtl, false};
6361
0
  }
6362
6363
49.0k
  label_check result{true, rtl, false};
6364
49.0k
  const direction first = find_direction(label[0]);
6365
49.0k
  if (first == direction::L) {
6366
39.3k
    constexpr uint32_t ltr_allowed =
6367
39.3k
        (1u << direction::L) | (1u << direction::EN) | (1u << direction::ES) |
6368
39.3k
        (1u << direction::CS) | (1u << direction::ET) | (1u << direction::ON) |
6369
39.3k
        (1u << direction::BN) | (1u << direction::NSM);
6370
39.3k
    result.bidi = (directions & ~ltr_allowed) == 0 &&
6371
39.1k
                  (last == direction::L || last == direction::EN);
6372
39.3k
  } else if (first == direction::R || first == direction::AL) {
6373
3.45k
    constexpr uint32_t rtl_allowed =
6374
3.45k
        rtl_directions | (1u << direction::EN) | (1u << direction::ES) |
6375
3.45k
        (1u << direction::CS) | (1u << direction::ET) | (1u << direction::ON) |
6376
3.45k
        (1u << direction::BN) | (1u << direction::NSM);
6377
3.45k
    constexpr uint32_t en_and_an =
6378
3.45k
        (1u << direction::EN) | (1u << direction::AN);
6379
3.45k
    result.bidi = (directions & ~rtl_allowed) == 0 &&
6380
3.25k
                  (directions & en_and_an) != en_and_an &&
6381
3.24k
                  (last == direction::R || last == direction::AL ||
6382
1.23k
                   last == direction::AN || last == direction::EN);
6383
3.45k
  }
6384
49.0k
  return result;
6385
49.0k
}
6386
6387
0
bool is_label_valid(const std::u32string_view label) {
6388
0
  return check_label(label).ok(false);
6389
0
}
6390
6391
}  // namespace ada::idna
6392
/* end file src/validity.cpp */
6393
/* begin file src/to_ascii.cpp */
6394
/* begin file include/ada/idna/to_ascii.h */
6395
#ifndef ADA_IDNA_TO_ASCII_H
6396
#define ADA_IDNA_TO_ASCII_H
6397
6398
#include <string>
6399
#include <string_view>
6400
6401
/* begin file include/ada/idna/limits.h */
6402
#ifndef ADA_IDNA_LIMITS_H
6403
#define ADA_IDNA_LIMITS_H
6404
6405
#include <cstddef>
6406
6407
namespace ada::idna {
6408
6409
// Maximum accepted UTF-8 domain length for non-ASCII to_ascii input and for
6410
// to_unicode input.
6411
// Bounds heap growth under untrusted input (DoS resistance). DNS wire limits
6412
// are smaller; this allows long Unicode labels used in URL tests/fixtures.
6413
inline constexpr size_t max_domain_input_bytes = 16384;
6414
6415
}  // namespace ada::idna
6416
6417
#endif  // ADA_IDNA_LIMITS_H
6418
/* end file include/ada/idna/limits.h */
6419
6420
namespace ada::idna {
6421
6422
// Converts a domain (e.g., www.google.com) possibly containing international
6423
// characters to an ascii domain (with punycode). It will not do percent
6424
// decoding: percent decoding should be done prior to calling this function. We
6425
// do not remove tabs and spaces, they should have been removed prior to calling
6426
// this function. We also do not trim control characters. We also assume that
6427
// the input is not empty. We return "" on error. Non-ASCII inputs longer than
6428
// max_domain_input_bytes are rejected; ASCII inputs of any length are accepted
6429
// (they are only lowercased).
6430
//
6431
// This function may accept or even produce invalid domains (WHATWG carve-outs).
6432
std::string to_ascii(std::string_view ut8_string);
6433
6434
// Same as to_ascii, but writes into `out` and returns false on error without
6435
// relying on empty-string ambiguity.
6436
[[nodiscard]] bool to_ascii(std::string_view ut8_string, std::string& out);
6437
6438
// Returns true if the string contains a forbidden code point according to the
6439
// WHATGL URL specification:
6440
// https://url.spec.whatwg.org/#forbidden-domain-code-point
6441
bool contains_forbidden_domain_code_point(std::string_view ascii_string);
6442
6443
bool constexpr is_ascii(std::u32string_view view);
6444
bool constexpr is_ascii(std::string_view view);
6445
6446
}  // namespace ada::idna
6447
6448
#endif  // ADA_IDNA_TO_ASCII_H
6449
/* end file include/ada/idna/to_ascii.h */
6450
6451
#include <algorithm>
6452
#include <cstdint>
6453
#include <cstring>
6454
#include <ranges>
6455
6456
/* begin file include/ada/idna/validity.h */
6457
#ifndef ADA_IDNA_VALIDITY_H
6458
#define ADA_IDNA_VALIDITY_H
6459
6460
#include <string>
6461
#include <string_view>
6462
6463
namespace ada::idna {
6464
6465
/**
6466
 * @see https://www.unicode.org/reports/tr46/#Validity_Criteria
6467
 */
6468
bool is_label_valid(std::u32string_view label);
6469
6470
}  // namespace ada::idna
6471
6472
#endif  // ADA_IDNA_VALIDITY_H
6473
/* end file include/ada/idna/validity.h */
6474
6475
#ifdef ADA_USE_SIMDUTF
6476
#include "simdutf.h"
6477
#endif
6478
6479
namespace ada::idna {
6480
6481
65.8k
bool constexpr is_ascii(std::u32string_view view) {
6482
236k
  for (uint32_t c : view) {
6483
236k
    if (c >= 0x80) {
6484
52.7k
      return false;
6485
52.7k
    }
6486
236k
  }
6487
13.1k
  return true;
6488
65.8k
}
6489
6490
18.6k
bool constexpr is_ascii(std::string_view view) {
6491
448k
  for (uint8_t c : view) {
6492
448k
    if (c >= 0x80) {
6493
12.6k
      return false;
6494
12.6k
    }
6495
448k
  }
6496
6.04k
  return true;
6497
18.6k
}
6498
6499
constexpr static uint8_t is_forbidden_domain_code_point_table[] = {
6500
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6501
    1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
6502
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0,
6503
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0,
6504
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
6505
    0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6506
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6507
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6508
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6509
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
6510
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
6511
6512
static_assert(sizeof(is_forbidden_domain_code_point_table) == 256);
6513
6514
0
inline bool is_forbidden_domain_code_point(const char c) noexcept {
6515
0
  return is_forbidden_domain_code_point_table[uint8_t(c)];
6516
0
}
6517
6518
0
bool contains_forbidden_domain_code_point(std::string_view view) {
6519
0
  return std::ranges::any_of(view, is_forbidden_domain_code_point);
6520
0
}
6521
6522
// Per the WHATWG URL "domain to ASCII" algorithm, when beStrict is false and
6523
// the input domain is an ASCII string, the result is the input lowercased,
6524
// regardless of the outcome of Unicode ToASCII.
6525
//
6526
// See https://url.spec.whatwg.org/#concept-domain-to-ascii
6527
6.04k
static void from_ascii_to_ascii(std::string_view ut8_string, std::string& out) {
6528
6.04k
  out.assign(ut8_string);
6529
6.04k
  ascii_map(out.data(), out.size());
6530
6.04k
}
6531
6532
// Append ASCII code units from a UTF-32 label (all values < 0x80).
6533
14.3k
static void append_ascii_label(std::string& out, std::u32string_view label) {
6534
14.3k
  const size_t old = out.size();
6535
14.3k
  out.resize(old + label.size());
6536
14.3k
  char* dest = out.data() + old;
6537
146k
  for (char32_t c : label) {
6538
146k
    *dest++ = static_cast<char>(c);
6539
146k
  }
6540
14.3k
}
6541
6542
// True if label begins with "xn--" (already lowercased by mapping).
6543
51.8k
static bool is_ace_prefix(std::u32string_view label) noexcept {
6544
51.8k
  return label.size() >= 4 && label[0] == U'x' && label[1] == U'n' &&
6545
5.65k
         label[2] == U'-' && label[3] == U'-';
6546
51.8k
}
6547
6548
18.6k
[[nodiscard]] bool to_ascii(std::string_view ut8_string, std::string& out) {
6549
18.6k
  out.clear();
6550
  // The ASCII path is a single same-size copy, so it needs no length bound.
6551
  // Checking first would reject the (longer) ASCII output of a non-ASCII input
6552
  // that was accepted, breaking to_ascii(to_ascii(x)) == to_ascii(x).
6553
18.6k
  if (is_ascii(ut8_string)) {
6554
6.04k
    from_ascii_to_ascii(ut8_string, out);
6555
6.04k
    return true;
6556
6.04k
  }
6557
12.6k
  if (ut8_string.size() > max_domain_input_bytes) {
6558
0
    return false;
6559
0
  }
6560
6561
#ifdef ADA_USE_SIMDUTF
6562
  size_t utf32_length =
6563
      simdutf::utf32_length_from_utf8(ut8_string.data(), ut8_string.size());
6564
  if (utf32_length == 0 && !ut8_string.empty()) {
6565
    return false;
6566
  }
6567
  std::u32string working(utf32_length, U'\0');
6568
  size_t actual_utf32_length = simdutf::convert_utf8_to_utf32(
6569
      ut8_string.data(), ut8_string.size(), working.data());
6570
#else
6571
12.6k
  size_t utf32_length =
6572
12.6k
      ada::idna::utf32_length_from_utf8(ut8_string.data(), ut8_string.size());
6573
12.6k
  if (utf32_length == 0 && !ut8_string.empty()) {
6574
147
    return false;
6575
147
  }
6576
12.5k
  std::u32string working(utf32_length, U'\0');
6577
12.5k
  size_t actual_utf32_length = ada::idna::utf8_to_utf32(
6578
12.5k
      ut8_string.data(), ut8_string.size(), working.data());
6579
12.5k
#endif
6580
12.5k
  if (actual_utf32_length == 0 || actual_utf32_length != utf32_length) {
6581
945
    return false;
6582
945
  }
6583
11.5k
  working.resize(actual_utf32_length);
6584
6585
  // Map into a second buffer with exact sizing (no growth reallocs).
6586
11.5k
  std::u32string mapped;
6587
11.5k
  if (!ada::idna::map(working, mapped)) {
6588
129
    return false;
6589
129
  }
6590
  // Drop UTF-32 input; reuse `working` as scratch for ACE validation below.
6591
11.4k
  working.clear();
6592
6593
  // Skip NFC when already normalized (ASCII is a fast subset of this check).
6594
11.4k
  if (!is_ascii(mapped) && !is_already_nfc(mapped)) {
6595
1.81k
    if (!normalize(mapped)) {
6596
0
      return false;
6597
0
    }
6598
1.81k
  }
6599
6600
  // Estimate ASCII output size (punycode may expand non-ASCII labels).
6601
11.4k
  out.reserve(mapped.size() + 8);
6602
6603
  // CheckBidi applies to every label once any label is RTL (RFC 5893), which a
6604
  // later label can decide. Any failure rejects the whole domain, so it is
6605
  // enough to know at the end whether some label is RTL and whether every
6606
  // label satisfies the Bidi rule.
6607
11.4k
  bool bidi_domain = false;
6608
11.4k
  bool bidi_rule_holds = true;
6609
49.9k
  auto accept = [&](const label_check& check) {
6610
49.9k
    bidi_domain = bidi_domain || check.rtl;
6611
49.9k
    bidi_rule_holds = bidi_rule_holds && check.bidi;
6612
49.9k
    return check.valid && (bidi_rule_holds || !bidi_domain);
6613
49.9k
  };
6614
6615
  // Walk labels with a single pointer scan (no repeated string::find).
6616
11.4k
  const char32_t* p = mapped.data();
6617
11.4k
  const char32_t* const end = p + mapped.size();
6618
11.4k
  std::u32string post_map;
6619
6620
63.4k
  while (p < end) {
6621
55.1k
    const char32_t* label_begin = p;
6622
411k
    while (p < end && *p != U'.') {
6623
356k
      ++p;
6624
356k
    }
6625
55.1k
    const size_t label_size = static_cast<size_t>(p - label_begin);
6626
55.1k
    std::u32string_view label_view(label_begin, label_size);
6627
55.1k
    const bool is_last_label = (p == end);
6628
55.1k
    if (p < end) {
6629
44.3k
      ++p;  // skip dot
6630
44.3k
    }
6631
6632
55.1k
    if (label_size == 0) {
6633
      // empty label
6634
51.8k
    } else if (is_ace_prefix(label_view)) {
6635
105k
      for (char32_t c : label_view) {
6636
105k
        if (c >= 0x80) {
6637
51
          out.clear();
6638
51
          return false;
6639
51
        }
6640
105k
      }
6641
4.53k
      append_ascii_label(out, label_view);
6642
4.53k
      std::string_view puny_segment_ascii(
6643
4.53k
          out.data() + (out.size() - label_size) + 4, label_size - 4);
6644
4.53k
      working.clear();
6645
4.53k
      if (!ada::idna::punycode_to_utf32(puny_segment_ascii, working)) {
6646
375
        out.clear();
6647
375
        return false;
6648
375
      }
6649
4.15k
      if (is_ascii(working)) {
6650
213
        out.clear();
6651
213
        return false;
6652
213
      }
6653
3.94k
      if (!ada::idna::map(working, post_map) || working != post_map) {
6654
876
        out.clear();
6655
876
        return false;
6656
876
      }
6657
      // Mapping must be stable; NFC must not change the mapped form either.
6658
3.06k
      if (!is_ascii(post_map) && !is_already_nfc(post_map)) {
6659
450
        if (!normalize(post_map) || post_map != working) {
6660
372
          out.clear();
6661
372
          return false;
6662
372
        }
6663
450
      }
6664
2.69k
      if (post_map.empty() || !accept(check_label(post_map))) {
6665
90
        out.clear();
6666
90
        return false;
6667
90
      }
6668
47.2k
    } else if (is_ascii(label_view)) {
6669
      // All-ASCII domains never reach here (they return above). An ASCII label
6670
      // in a Bidi domain must still satisfy RFC 5893 rules 1, 5, and 6.
6671
9.90k
      if (!accept(check_label(label_view))) {
6672
39
        out.clear();
6673
39
        return false;
6674
39
      }
6675
9.86k
      append_ascii_label(out, label_view);
6676
37.3k
    } else {
6677
37.3k
      if (!accept(check_label(label_view))) {
6678
1.17k
        out.clear();
6679
1.17k
        return false;
6680
1.17k
      }
6681
36.1k
      out.append("xn--");
6682
36.1k
      if (!ada::idna::utf32_to_punycode(label_view, out)) {
6683
0
        out.clear();
6684
0
        return false;
6685
0
      }
6686
36.1k
    }
6687
51.9k
    if (!is_last_label) {
6688
44.1k
      out.push_back('.');
6689
44.1k
    }
6690
51.9k
  }
6691
8.23k
  return true;
6692
11.4k
}
6693
6694
18.6k
std::string to_ascii(std::string_view ut8_string) {
6695
18.6k
  std::string out;
6696
18.6k
  if (!to_ascii(ut8_string, out)) {
6697
4.41k
    return {};
6698
4.41k
  }
6699
14.2k
  return out;
6700
18.6k
}
6701
}  // namespace ada::idna
6702
/* end file src/to_ascii.cpp */
6703
/* begin file src/to_unicode.cpp */
6704
/* begin file include/ada/idna/to_unicode.h */
6705
#ifndef ADA_IDNA_TO_UNICODE_H
6706
#define ADA_IDNA_TO_UNICODE_H
6707
6708
#include <string>
6709
#include <string_view>
6710
6711
6712
namespace ada::idna {
6713
6714
// UTS #46 ToUnicode. Never fails per the standard: on step failure the original
6715
// label is kept. Inputs longer than max_domain_input_bytes are returned
6716
// unchanged as a safety measure under untrusted input.
6717
std::string to_unicode(std::string_view input);
6718
6719
// Writes into `out`. Returns false only if the input exceeds
6720
// max_domain_input_bytes (out is left empty). Otherwise always returns true
6721
// (ToUnicode does not fail).
6722
[[nodiscard]] bool to_unicode(std::string_view input, std::string& out);
6723
6724
}  // namespace ada::idna
6725
6726
#endif  // ADA_IDNA_TO_UNICODE_H
6727
/* end file include/ada/idna/to_unicode.h */
6728
6729
#include <algorithm>
6730
#include <iterator>
6731
#include <string>
6732
6733
/* begin file include/idna.h */
6734
#ifndef ADA_IDNA_H
6735
#define ADA_IDNA_H
6736
6737
/* begin file include/ada/idna/identifier.h */
6738
#ifndef ADA_IDNA_IDENTIFIER_H
6739
#define ADA_IDNA_IDENTIFIER_H
6740
6741
#include <string>
6742
#include <string_view>
6743
6744
namespace ada::idna {
6745
6746
// Verify if it is valid name code point given a Unicode code point and a
6747
// boolean first: If first is true return the result of checking if code point
6748
// is contained in the IdentifierStart set of code points. Otherwise return the
6749
// result of checking if code point is contained in the IdentifierPart set of
6750
// code points. Returns false if the input is empty or the code point is not
6751
// valid. There is minimal Unicode error handling: the input should be valid
6752
// UTF-8. https://urlpattern.spec.whatwg.org/#is-a-valid-name-code-point
6753
bool valid_name_code_point(char32_t code_point, bool first);
6754
6755
}  // namespace ada::idna
6756
6757
#endif
6758
/* end file include/ada/idna/identifier.h */
6759
6760
#endif
6761
/* end file include/idna.h */
6762
6763
#ifdef ADA_USE_SIMDUTF
6764
#include "simdutf.h"
6765
#endif
6766
6767
namespace ada::idna {
6768
6769
// True when an all-ASCII label is valid on its own but violates RFC 5893
6770
// because the domain contains an RTL label (for example a label starting
6771
// with a digit). ToUnicode then returns the original input (UTS #46).
6772
static bool ascii_label_fails_bidi_domain(std::string_view label,
6773
0
                                          std::u32string& buffer) {
6774
0
  buffer.resize(label.size());
6775
0
  for (size_t i = 0; i < label.size(); i++) {
6776
0
    buffer[i] = static_cast<unsigned char>(label[i]);
6777
0
  }
6778
0
  const label_check check = check_label(buffer);
6779
0
  return check.ok(false) && !check.ok(true);
6780
0
}
6781
6782
// Whether `byte` starts the UTF-8 encoding of some R, AL or AN code point.
6783
// Checked by scripts/unicode_data_table.py (RTL_UTF8_LEAD_BYTES).
6784
0
constexpr bool is_rtl_lead_byte(char byte) noexcept {
6785
0
  const auto b = static_cast<uint8_t>(byte);
6786
0
  return b >= 0xD6 && (b <= 0xE0 || b == 0xE2 || b == 0xEF || b == 0xF0);
6787
0
}
6788
6789
// Whether a non-ASCII UTF-8 label has an R, AL or AN character. Invalid UTF-8
6790
// has none. Labels without an RTL lead byte, such as Latin, Greek, Cyrillic,
6791
// CJK and Hangul ones, are not decoded.
6792
static bool utf8_label_contains_rtl(std::string_view label,
6793
0
                                    std::u32string& buffer) {
6794
0
  if (std::ranges::none_of(label, is_rtl_lead_byte)) {
6795
0
    return false;
6796
0
  }
6797
  // A label decodes to at most one code point per byte.
6798
0
  char32_t stack_buffer[64];
6799
0
  char32_t* decoded = stack_buffer;
6800
0
  if (label.size() > std::size(stack_buffer)) {
6801
0
    buffer.resize(label.size());
6802
0
    decoded = buffer.data();
6803
0
  }
6804
0
  const size_t written = utf8_to_utf32(label.data(), label.size(), decoded);
6805
0
  return written != 0 && label_contains_rtl({decoded, written});
6806
0
}
6807
6808
struct conversion {
6809
  // Some label is RTL, so the domain is a Bidi domain name (RFC 5893).
6810
  bool bidi_domain = false;
6811
  // An ACE label was decoded before the domain was known to be a Bidi domain
6812
  // name and does not satisfy the Bidi rule, so it must stay encoded.
6813
  bool needs_bidi_pass = false;
6814
};
6815
6816
// Appends the labels of `input` to `output`, decoding the ACE labels that are
6817
// valid. `bidi_domain` says whether the caller already knows that the domain
6818
// is a Bidi domain name; without it the Bidi rule is applied from the first
6819
// RTL label on.
6820
static conversion convert_labels(std::string_view input, std::string& output,
6821
0
                                 bool bidi_domain) {
6822
0
  conversion result{bidi_domain, false};
6823
0
  size_t label_start = 0;
6824
0
  std::u32string tmp_buffer;
6825
0
  std::u32string post_map;
6826
0
  while (label_start < input.size()) {
6827
0
    size_t loc_dot = input.find('.', label_start);
6828
0
    bool is_last_label = (loc_dot == std::string_view::npos);
6829
0
    size_t label_size =
6830
0
        is_last_label ? input.size() - label_start : loc_dot - label_start;
6831
0
    auto label_view = std::string_view(input.data() + label_start, label_size);
6832
6833
0
    if (label_view.starts_with("xn--") && ada::idna::is_ascii(label_view)) {
6834
0
      label_view.remove_prefix(4);
6835
0
      tmp_buffer.clear();
6836
0
      if (ada::idna::punycode_to_utf32(label_view, tmp_buffer)) {
6837
        // Per UTS #46, the decoded label must be re-validated. Reject decodings
6838
        // that are pure ASCII (xn-- encoding of an ASCII-only label), or whose
6839
        // mapping/normalization is not stable, or that fail label validity.
6840
        // A rejected label still makes the domain a Bidi domain name when it
6841
        // decodes to an RTL label.
6842
0
        bool accept_decoded = false;
6843
0
        bool rtl = false;
6844
0
        if (ada::idna::is_ascii(tmp_buffer)) {
6845
          // ASCII has no R, AL or AN character.
6846
0
        } else {
6847
0
          post_map.clear();
6848
0
          if (!ada::idna::map(tmp_buffer, post_map) || post_map != tmp_buffer ||
6849
0
              !ada::idna::normalize(post_map) || post_map != tmp_buffer ||
6850
0
              post_map.empty()) {
6851
0
            rtl = label_contains_rtl(tmp_buffer);
6852
0
          } else {
6853
0
            const label_check check = check_label(post_map);
6854
0
            rtl = check.rtl;
6855
0
            accept_decoded = check.ok(result.bidi_domain);
6856
0
            if (accept_decoded && !check.ok(true)) {
6857
0
              result.needs_bidi_pass = true;
6858
0
            }
6859
0
          }
6860
0
        }
6861
0
        result.bidi_domain = result.bidi_domain || rtl;
6862
6863
0
        if (accept_decoded) {
6864
#ifdef ADA_USE_SIMDUTF
6865
          auto utf8_size = simdutf::utf8_length_from_utf32(tmp_buffer.data(),
6866
                                                           tmp_buffer.size());
6867
          size_t old_size = output.size();
6868
          output.resize(old_size + utf8_size);
6869
          size_t written = simdutf::convert_utf32_to_utf8(
6870
              tmp_buffer.data(), tmp_buffer.size(), output.data() + old_size);
6871
          if (written != utf8_size) {
6872
            output.resize(old_size);
6873
            output.append(
6874
                std::string_view(input.data() + label_start, label_size));
6875
          }
6876
#else
6877
0
          auto utf8_size = ada::idna::utf8_length_from_utf32(tmp_buffer.data(),
6878
0
                                                             tmp_buffer.size());
6879
0
          size_t old_size = output.size();
6880
0
          output.resize(old_size + utf8_size);
6881
0
          size_t written = ada::idna::utf32_to_utf8(
6882
0
              tmp_buffer.data(), tmp_buffer.size(), output.data() + old_size);
6883
0
          if (written != utf8_size) {
6884
0
            output.resize(old_size);
6885
0
            output.append(
6886
0
                std::string_view(input.data() + label_start, label_size));
6887
0
          }
6888
0
#endif
6889
0
        } else {
6890
          // ToUnicode never fails. If any step fails, return the original
6891
          // input sequence for the label.
6892
0
          output.append(
6893
0
              std::string_view(input.data() + label_start, label_size));
6894
0
        }
6895
0
      } else {
6896
0
        output.append(std::string_view(input.data() + label_start, label_size));
6897
0
      }
6898
0
    } else {
6899
0
      if (!result.bidi_domain && !ada::idna::is_ascii(label_view) &&
6900
0
          utf8_label_contains_rtl(label_view, tmp_buffer)) {
6901
0
        result.bidi_domain = true;
6902
0
      }
6903
0
      output.append(label_view);
6904
0
    }
6905
6906
0
    if (!is_last_label) {
6907
0
      output.push_back('.');
6908
0
    }
6909
6910
0
    label_start += label_size + 1;
6911
0
  }
6912
0
  return result;
6913
0
}
6914
6915
0
[[nodiscard]] bool to_unicode(std::string_view input, std::string& output) {
6916
0
  output.clear();
6917
0
  if (input.size() > max_domain_input_bytes) {
6918
0
    return false;
6919
0
  }
6920
  // Without an ACE label or a non-ASCII character, every label is kept as is.
6921
0
  if (is_ascii(input) && input.find("xn--") == std::string_view::npos) {
6922
0
    output.assign(input);
6923
0
    return true;
6924
0
  }
6925
0
  output.reserve(input.size());
6926
6927
0
  const conversion result = convert_labels(input, output, false);
6928
0
  if (!result.bidi_domain) {
6929
0
    return true;
6930
0
  }
6931
6932
  // An ASCII label that is only illegal because the domain is a Bidi domain
6933
  // fails ToUnicode for the whole input (UTS #46), not just that label.
6934
0
  std::u32string buffer;
6935
0
  size_t label_start = 0;
6936
0
  while (label_start < input.size()) {
6937
0
    const size_t loc_dot = input.find('.', label_start);
6938
0
    const bool is_last_label = (loc_dot == std::string_view::npos);
6939
0
    const size_t label_size =
6940
0
        is_last_label ? input.size() - label_start : loc_dot - label_start;
6941
0
    const std::string_view label = input.substr(label_start, label_size);
6942
0
    if (!label.empty() && is_ascii(label) && !label.starts_with("xn--") &&
6943
0
        ascii_label_fails_bidi_domain(label, buffer)) {
6944
0
      output.assign(input);
6945
0
      return true;
6946
0
    }
6947
0
    if (is_last_label) {
6948
0
      break;
6949
0
    }
6950
0
    label_start += label_size + 1;
6951
0
  }
6952
6953
  // Labels before the first RTL label were checked without the Bidi rule.
6954
0
  if (result.needs_bidi_pass) {
6955
0
    output.clear();
6956
0
    convert_labels(input, output, true);
6957
0
  }
6958
0
  return true;
6959
0
}
6960
6961
0
std::string to_unicode(std::string_view input) {
6962
0
  std::string output;
6963
0
  if (!to_unicode(input, output)) {
6964
    // Over-limit input: return original (ToUnicode never fails in the sense of
6965
    // producing no answer for valid-length inputs).
6966
0
    return std::string(input);
6967
0
  }
6968
0
  return output;
6969
0
}
6970
}  // namespace ada::idna
6971
/* end file src/to_unicode.cpp */
6972
/* begin file src/identifier.cpp */
6973
6974
#include <algorithm>
6975
#include <array>
6976
#include <span>
6977
#include <string>
6978
6979
/* begin file src/id_tables.cpp */
6980
// IDNA  18.0.0
6981
// Identifier range tables are stored in the compressed blob (table_store.hpp).
6982
// Regenerate with: python3 scripts/derived_table.py --write
6983
//   id_continue: 1437 ranges
6984
//   id_start:    789 ranges
6985
6986
// clang-format off
6987
#ifndef ADA_IDNA_IDENTIFIER_TABLES_H
6988
#define ADA_IDNA_IDENTIFIER_TABLES_H
6989
#include <cstdint>
6990
6991
namespace ada::idna {
6992
6993
// id_continue / id_start pointers and counts are provided by table_store.hpp.
6994
6995
}  // namespace ada::idna
6996
#endif  // ADA_IDNA_IDENTIFIER_TABLES_H
6997
/* end file src/id_tables.cpp */
6998
6999
namespace ada::idna {
7000
0
constexpr bool is_ascii_letter(char32_t c) noexcept {
7001
0
  return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
7002
0
}
7003
7004
0
constexpr bool is_ascii_letter_or_digit(char32_t c) noexcept {
7005
0
  return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') ||
7006
0
         (c >= '0' && c <= '9');
7007
0
}
7008
7009
0
bool valid_name_code_point(char32_t code_point, bool first) {
7010
  // https://tc39.es/ecma262/#prod-IdentifierStart
7011
7012
  // Fast paths (no table needed)
7013
0
  if (first && (code_point == U'$' || code_point == U'_' ||
7014
0
                is_ascii_letter(code_point))) {
7015
0
    return true;
7016
0
  }
7017
0
  if (!first && (code_point == U'$' || is_ascii_letter_or_digit(code_point))) {
7018
0
    return true;
7019
0
  }
7020
7021
  // Minimal error handling for invalid code point
7022
0
  if (code_point > 0x10FFFF) {
7023
0
    return false;
7024
0
  }
7025
0
  if (code_point >= 0xD800 && code_point <= 0xDFFF) {
7026
0
    return false;
7027
0
  }
7028
7029
0
  if (!ensure_tables() || id_start == nullptr || id_continue == nullptr) {
7030
0
    return false;
7031
0
  }
7032
7033
  // Slow path: binary search through the appropriate Unicode range table.
7034
  // Each entry is a [low, high] inclusive range.
7035
0
  const std::span<const uint32_t[2]> ranges =
7036
0
      first ? std::span<const uint32_t[2]>{ada::idna::id_start,
7037
0
                                           ada::idna::id_start_count}
7038
0
            : std::span<const uint32_t[2]>{ada::idna::id_continue,
7039
0
                                           ada::idna::id_continue_count};
7040
7041
0
  const auto iter = std::ranges::lower_bound(
7042
0
      ranges, code_point, {},
7043
0
      [](const auto& range) { return range[1]; });  // project to range-high
7044
7045
0
  return iter != ranges.end() && code_point >= (*iter)[0];
7046
0
}
7047
}  // namespace ada::idna
7048
/* end file src/identifier.cpp */
7049
/* end file src/idna.cpp */
7050
/* end file src/ada_idna.cpp */
7051
ADA_POP_DISABLE_WARNINGS
7052
7053
#include <algorithm>
7054
#include <array>
7055
#include <cstdint>
7056
#include <cstring>
7057
#include <iterator>
7058
#include <optional>
7059
#include <string>
7060
#include <string_view>
7061
#include <utility>
7062
#if ADA_SSSE3
7063
#include <tmmintrin.h>
7064
#elif ADA_NEON
7065
#include <arm_neon.h>
7066
#elif ADA_SSE2
7067
#include <emmintrin.h>
7068
#elif ADA_LSX
7069
#include <lsxintrin.h>
7070
#elif ADA_RVV
7071
#include <riscv_vector.h>
7072
#endif
7073
7074
#include <ranges>
7075
7076
namespace ada::unicode {
7077
7078
345k
constexpr bool is_tabs_or_newline(char c) noexcept {
7079
345k
  return c == '\r' || c == '\n' || c == '\t';
7080
345k
}
7081
7082
123k
constexpr uint64_t broadcast(uint8_t v) noexcept {
7083
123k
  return 0x101010101010101ull * v;
7084
123k
}
7085
7086
41.2k
constexpr bool to_lower_ascii(char* input, size_t length) noexcept {
7087
41.2k
  uint64_t broadcast_80 = broadcast(0x80);
7088
41.2k
  uint64_t broadcast_Ap = broadcast(128 - 'A');
7089
41.2k
  uint64_t broadcast_Zp = broadcast(128 - 'Z' - 1);
7090
41.2k
  uint64_t non_ascii = 0;
7091
41.2k
  size_t i = 0;
7092
7093
51.8k
  for (; i + 7 < length; i += 8) {
7094
10.6k
    uint64_t word{};
7095
10.6k
    memcpy(&word, input + i, sizeof(word));
7096
10.6k
    non_ascii |= (word & broadcast_80);
7097
10.6k
    word ^=
7098
10.6k
        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
7099
10.6k
    memcpy(input + i, &word, sizeof(word));
7100
10.6k
  }
7101
41.2k
  if (i < length) {
7102
40.3k
    uint64_t word{};
7103
40.3k
    memcpy(&word, input + i, length - i);
7104
40.3k
    non_ascii |= (word & broadcast_80);
7105
40.3k
    word ^=
7106
40.3k
        (((word + broadcast_Ap) ^ (word + broadcast_Zp)) & broadcast_80) >> 2;
7107
40.3k
    memcpy(input + i, &word, length - i);
7108
40.3k
  }
7109
41.2k
  return non_ascii == 0;
7110
41.2k
}
7111
#if ADA_SSSE3
7112
ada_really_inline bool has_tabs_or_newline(
7113
    std::string_view user_input) noexcept {
7114
  // first check for short strings in which case we do it naively.
7115
  if (user_input.size() < 16) {  // slow path
7116
    return std::ranges::any_of(user_input, is_tabs_or_newline);
7117
  }
7118
  // fast path for long strings (expected to be common)
7119
  // Using SSSE3's _mm_shuffle_epi8 for table lookup (same approach as NEON)
7120
  size_t i = 0;
7121
  // Lookup table where positions 9, 10, 13 contain their own values
7122
  // Everything else is set to 1 so it won't match
7123
  const __m128i rnt =
7124
      _mm_setr_epi8(1, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 0, 0, 13, 0, 0);
7125
  __m128i running = _mm_setzero_si128();
7126
  for (; i + 15 < user_input.size(); i += 16) {
7127
    __m128i word = _mm_loadu_si128((const __m128i*)(user_input.data() + i));
7128
    // Shuffle the lookup table using input bytes as indices
7129
    __m128i shuffled = _mm_shuffle_epi8(rnt, word);
7130
    // Compare: if shuffled value matches input, we found \t, \n, or \r
7131
    __m128i matches = _mm_cmpeq_epi8(shuffled, word);
7132
    running = _mm_or_si128(running, matches);
7133
  }
7134
  if (i < user_input.size()) {
7135
    __m128i word = _mm_loadu_si128(
7136
        (const __m128i*)(user_input.data() + user_input.length() - 16));
7137
    __m128i shuffled = _mm_shuffle_epi8(rnt, word);
7138
    __m128i matches = _mm_cmpeq_epi8(shuffled, word);
7139
    running = _mm_or_si128(running, matches);
7140
  }
7141
  return _mm_movemask_epi8(running) != 0;
7142
}
7143
#elif ADA_NEON
7144
ada_really_inline bool has_tabs_or_newline(
7145
    std::string_view user_input) noexcept {
7146
  // first check for short strings in which case we do it naively.
7147
  if (user_input.size() < 16) {  // slow path
7148
    return std::ranges::any_of(user_input, is_tabs_or_newline);
7149
  }
7150
  // fast path for long strings (expected to be common)
7151
  size_t i = 0;
7152
  /**
7153
   * The fastest way to check for `\t` (==9), '\n'(== 10) and `\r` (==13) relies
7154
   * on table lookup instruction. We notice that these are all unique numbers
7155
   * between 0..15. Let's prepare a special register, where we put '\t' in the
7156
   * 9th position, '\n' - 10th and '\r' - 13th. Then we shuffle this register by
7157
   * input register. If the input had `\t` in position X then this shuffled
7158
   * register will also have '\t' in that position. Comparing input with this
7159
   * shuffled register will mark us all interesting characters in the input.
7160
   *
7161
   * credit for algorithmic idea: @aqrit, credit for description:
7162
   * @DenisYaroshevskiy
7163
   */
7164
  static uint8_t rnt_array[16] = {1, 0, 0,  0, 0, 0,  0, 0,
7165
                                  0, 9, 10, 0, 0, 13, 0, 0};
7166
  const uint8x16_t rnt = vld1q_u8(rnt_array);
7167
  // m['0xd', '0xa', '0x9']
7168
  uint8x16_t running{0};
7169
  for (; i + 15 < user_input.size(); i += 16) {
7170
    uint8x16_t word = vld1q_u8((const uint8_t*)user_input.data() + i);
7171
7172
    running = vorrq_u8(running, vceqq_u8(vqtbl1q_u8(rnt, word), word));
7173
  }
7174
  if (i < user_input.size()) {
7175
    uint8x16_t word =
7176
        vld1q_u8((const uint8_t*)user_input.data() + user_input.length() - 16);
7177
    running = vorrq_u8(running, vceqq_u8(vqtbl1q_u8(rnt, word), word));
7178
  }
7179
  // `running` accumulates comparison results, so every lane is 0x00 or 0xFF:
7180
  // narrowing to four bits per lane and testing against zero is cheaper than a
7181
  // horizontal maximum. The double compare (ADA_NEON_SAFE_ZERO_CHECK set to 0)
7182
  // avoids a GPR transfer but is incorrect if flush-to-zero is enabled.
7183
  uint8x8_t narrowed = vshrn_n_u16(vreinterpretq_u16_u8(running), 4);
7184
#if ADA_NEON_SAFE_ZERO_CHECK
7185
  return vget_lane_u64(vreinterpret_u64_u8(narrowed), 0) != 0;
7186
#else
7187
  return vdupd_lane_f64(vreinterpret_f64_u8(narrowed), 0) != 0.0;
7188
#endif
7189
}
7190
#elif ADA_SSE2
7191
ada_really_inline bool has_tabs_or_newline(
7192
132k
    std::string_view user_input) noexcept {
7193
  // first check for short strings in which case we do it naively.
7194
132k
  if (user_input.size() < 16) {  // slow path
7195
97.9k
    return std::ranges::any_of(user_input, is_tabs_or_newline);
7196
97.9k
  }
7197
  // fast path for long strings (expected to be common)
7198
34.2k
  size_t i = 0;
7199
34.2k
  const __m128i mask1 = _mm_set1_epi8('\r');
7200
34.2k
  const __m128i mask2 = _mm_set1_epi8('\n');
7201
34.2k
  const __m128i mask3 = _mm_set1_epi8('\t');
7202
  // If we supported SSSE3, we could use the algorithm that we use for NEON.
7203
34.2k
  __m128i running{0};
7204
170k
  for (; i + 15 < user_input.size(); i += 16) {
7205
136k
    __m128i word = _mm_loadu_si128((const __m128i*)(user_input.data() + i));
7206
136k
    running = _mm_or_si128(
7207
136k
        _mm_or_si128(running, _mm_or_si128(_mm_cmpeq_epi8(word, mask1),
7208
136k
                                           _mm_cmpeq_epi8(word, mask2))),
7209
136k
        _mm_cmpeq_epi8(word, mask3));
7210
136k
  }
7211
34.2k
  if (i < user_input.size()) {
7212
30.1k
    __m128i word = _mm_loadu_si128(
7213
30.1k
        (const __m128i*)(user_input.data() + user_input.length() - 16));
7214
30.1k
    running = _mm_or_si128(
7215
30.1k
        _mm_or_si128(running, _mm_or_si128(_mm_cmpeq_epi8(word, mask1),
7216
30.1k
                                           _mm_cmpeq_epi8(word, mask2))),
7217
30.1k
        _mm_cmpeq_epi8(word, mask3));
7218
30.1k
  }
7219
34.2k
  return _mm_movemask_epi8(running) != 0;
7220
132k
}
7221
#elif ADA_LSX
7222
ada_really_inline bool has_tabs_or_newline(
7223
    std::string_view user_input) noexcept {
7224
  // first check for short strings in which case we do it naively.
7225
  if (user_input.size() < 16) {  // slow path
7226
    return std::ranges::any_of(user_input, is_tabs_or_newline);
7227
  }
7228
  // fast path for long strings (expected to be common)
7229
  size_t i = 0;
7230
  const __m128i mask1 = __lsx_vrepli_b('\r');
7231
  const __m128i mask2 = __lsx_vrepli_b('\n');
7232
  const __m128i mask3 = __lsx_vrepli_b('\t');
7233
  // If we supported SSSE3, we could use the algorithm that we use for NEON.
7234
  __m128i running{0};
7235
  for (; i + 15 < user_input.size(); i += 16) {
7236
    __m128i word = __lsx_vld((const __m128i*)(user_input.data() + i), 0);
7237
    running = __lsx_vor_v(
7238
        __lsx_vor_v(running, __lsx_vor_v(__lsx_vseq_b(word, mask1),
7239
                                         __lsx_vseq_b(word, mask2))),
7240
        __lsx_vseq_b(word, mask3));
7241
  }
7242
  if (i < user_input.size()) {
7243
    __m128i word = __lsx_vld(
7244
        (const __m128i*)(user_input.data() + user_input.length() - 16), 0);
7245
    running = __lsx_vor_v(
7246
        __lsx_vor_v(running, __lsx_vor_v(__lsx_vseq_b(word, mask1),
7247
                                         __lsx_vseq_b(word, mask2))),
7248
        __lsx_vseq_b(word, mask3));
7249
  }
7250
  if (__lsx_bz_v(running)) return false;
7251
  return true;
7252
}
7253
#elif ADA_RVV
7254
ada_really_inline bool has_tabs_or_newline(
7255
    std::string_view user_input) noexcept {
7256
  uint8_t* src = (uint8_t*)user_input.data();
7257
  for (size_t vl, n = user_input.size(); n > 0; n -= vl, src += vl) {
7258
    vl = __riscv_vsetvl_e8m1(n);
7259
    vuint8m1_t v = __riscv_vle8_v_u8m1(src, vl);
7260
    vbool8_t m1 = __riscv_vmseq(v, '\r', vl);
7261
    vbool8_t m2 = __riscv_vmseq(v, '\n', vl);
7262
    vbool8_t m3 = __riscv_vmseq(v, '\t', vl);
7263
    vbool8_t m = __riscv_vmor(__riscv_vmor(m1, m2, vl), m3, vl);
7264
    long idx = __riscv_vfirst(m, vl);
7265
    if (idx >= 0) return true;
7266
  }
7267
  return false;
7268
}
7269
#else
7270
ada_really_inline bool has_tabs_or_newline(
7271
    std::string_view user_input) noexcept {
7272
  auto has_zero_byte = [](uint64_t v) {
7273
    return ((v - 0x0101010101010101) & ~(v) & 0x8080808080808080);
7274
  };
7275
  size_t i = 0;
7276
  uint64_t mask1 = broadcast('\r');
7277
  uint64_t mask2 = broadcast('\n');
7278
  uint64_t mask3 = broadcast('\t');
7279
  uint64_t running{0};
7280
  for (; i + 7 < user_input.size(); i += 8) {
7281
    uint64_t word{};
7282
    memcpy(&word, user_input.data() + i, sizeof(word));
7283
    uint64_t xor1 = word ^ mask1;
7284
    uint64_t xor2 = word ^ mask2;
7285
    uint64_t xor3 = word ^ mask3;
7286
    running |= has_zero_byte(xor1) | has_zero_byte(xor2) | has_zero_byte(xor3);
7287
  }
7288
  if (i < user_input.size()) {
7289
    uint64_t word{};
7290
    memcpy(&word, user_input.data() + i, user_input.size() - i);
7291
    uint64_t xor1 = word ^ mask1;
7292
    uint64_t xor2 = word ^ mask2;
7293
    uint64_t xor3 = word ^ mask3;
7294
    running |= has_zero_byte(xor1) | has_zero_byte(xor2) | has_zero_byte(xor3);
7295
  }
7296
  return running;
7297
}
7298
#endif
7299
7300
// A forbidden host code point is U+0000 NULL, U+0009 TAB, U+000A LF, U+000D CR,
7301
// U+0020 SPACE, U+0023 (#), U+002F (/), U+003A (:), U+003C (<), U+003E (>),
7302
// U+003F (?), U+0040 (@), U+005B ([), U+005C (\), U+005D (]), U+005E (^), or
7303
// U+007C (|).
7304
constexpr static std::array<uint8_t, 256> is_forbidden_host_code_point_table =
7305
    []() consteval {
7306
      std::array<uint8_t, 256> result{};
7307
      for (uint8_t c : {'\0', '\x09', '\x0a', '\x0d', ' ', '#', '/', ':', '<',
7308
                        '>', '?', '@', '[', '\\', ']', '^', '|'}) {
7309
        result[c] = true;
7310
      }
7311
      return result;
7312
    }();
7313
7314
ada_really_inline constexpr bool is_forbidden_host_code_point(
7315
69.2k
    const char c) noexcept {
7316
69.2k
  return is_forbidden_host_code_point_table[uint8_t(c)];
7317
69.2k
}
7318
7319
constexpr static std::array<uint8_t, 256> is_forbidden_domain_code_point_table =
7320
    []() consteval {
7321
      std::array<uint8_t, 256> result{};
7322
      for (uint8_t c : {'\0', '\x09', '\x0a', '\x0d', ' ', '#', '/', ':', '<',
7323
                        '>', '?', '@', '[', '\\', ']', '^', '|', '%'}) {
7324
        result[c] = true;
7325
      }
7326
      for (uint8_t c = 0; c <= 32; c++) {
7327
        result[c] = true;
7328
      }
7329
      for (size_t c = 127; c < 256; c++) {
7330
        result[c] = true;
7331
      }
7332
      return result;
7333
    }();
7334
7335
static_assert(sizeof(is_forbidden_domain_code_point_table) == 256);
7336
7337
ada_really_inline constexpr bool is_forbidden_domain_code_point(
7338
992k
    const char c) noexcept {
7339
992k
  return is_forbidden_domain_code_point_table[uint8_t(c)];
7340
992k
}
7341
7342
ada_really_inline constexpr bool contains_forbidden_domain_code_point(
7343
14.2k
    const char* input, size_t length) noexcept {
7344
14.2k
  size_t i = 0;
7345
14.2k
  uint8_t accumulator{};
7346
273k
  for (; i + 4 <= length; i += 4) {
7347
259k
    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i])];
7348
259k
    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i + 1])];
7349
259k
    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i + 2])];
7350
259k
    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i + 3])];
7351
259k
  }
7352
36.8k
  for (; i < length; i++) {
7353
22.6k
    accumulator |= is_forbidden_domain_code_point_table[uint8_t(input[i])];
7354
22.6k
  }
7355
14.2k
  return accumulator;
7356
14.2k
}
7357
7358
constexpr static std::array<uint8_t, 256>
7359
    is_forbidden_domain_code_point_table_or_upper = []() consteval {
7360
      std::array<uint8_t, 256> result{};
7361
      for (uint8_t c : {'\0', '\x09', '\x0a', '\x0d', ' ', '#', '/', ':', '<',
7362
                        '>', '?', '@', '[', '\\', ']', '^', '|', '%'}) {
7363
        result[c] = 1;
7364
      }
7365
      for (uint8_t c = 'A'; c <= 'Z'; c++) {
7366
        result[c] = 2;
7367
      }
7368
      for (uint8_t c = 0; c <= 32; c++) {
7369
        result[c] = 1;
7370
      }
7371
      for (size_t c = 127; c < 256; c++) {
7372
        result[c] = 1;
7373
      }
7374
      return result;
7375
    }();
7376
7377
ada_really_inline constexpr uint8_t
7378
contains_forbidden_domain_code_point_or_upper(const char* input,
7379
42.7k
                                              size_t length) noexcept {
7380
42.7k
  size_t i = 0;
7381
42.7k
  uint8_t accumulator{};
7382
264k
  for (; i + 4 <= length; i += 4) {
7383
221k
    accumulator |=
7384
221k
        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i])];
7385
221k
    accumulator |=
7386
221k
        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i + 1])];
7387
221k
    accumulator |=
7388
221k
        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i + 2])];
7389
221k
    accumulator |=
7390
221k
        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i + 3])];
7391
221k
  }
7392
105k
  for (; i < length; i++) {
7393
62.5k
    accumulator |=
7394
62.5k
        is_forbidden_domain_code_point_table_or_upper[uint8_t(input[i])];
7395
62.5k
  }
7396
42.7k
  return accumulator;
7397
42.7k
}
7398
7399
// std::isalnum(c) || c == '+' || c == '-' || c == '.') is true for
7400
constexpr static std::array<bool, 256> is_alnum_plus_table = []() consteval {
7401
  std::array<bool, 256> result{};
7402
  for (size_t c = 0; c < 256; c++) {
7403
    result[c] = (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') ||
7404
                (c >= 'A' && c <= 'Z') || c == '+' || c == '-' || c == '.';
7405
  }
7406
  return result;
7407
}();
7408
7409
185k
ada_really_inline constexpr bool is_alnum_plus(const char c) noexcept {
7410
185k
  return is_alnum_plus_table[uint8_t(c)];
7411
  // A table is almost surely much faster than the
7412
  // following under most compilers: return
7413
  // return (std::isalnum(c) || c == '+' || c == '-' || c == '.');
7414
185k
}
7415
7416
22.4k
ada_really_inline constexpr bool is_ascii_hex_digit(const char c) noexcept {
7417
22.4k
  return (c >= '0' && c <= '9') || (c >= 'A' && c <= 'F') ||
7418
8.76k
         (c >= 'a' && c <= 'f');
7419
22.4k
}
7420
7421
0
ada_really_inline constexpr bool is_ascii_digit(const char c) noexcept {
7422
  // An ASCII digit is a code point in the range U+0030 (0) to U+0039 (9),
7423
  // inclusive.
7424
0
  return (c >= '0' && c <= '9');
7425
0
}
7426
7427
0
ada_really_inline constexpr bool is_ascii(const char32_t c) noexcept {
7428
  // If code point is between U+0000 and U+007F inclusive, then return true.
7429
0
  return c <= 0x7F;
7430
0
}
7431
7432
158k
ada_really_inline constexpr bool is_c0_control_or_space(const char c) noexcept {
7433
158k
  return (unsigned char)c <= ' ';
7434
158k
}
7435
7436
ada_really_inline constexpr bool is_ascii_tab_or_newline(
7437
60.2k
    const char c) noexcept {
7438
60.2k
  return c == '\t' || c == '\n' || c == '\r';
7439
60.2k
}
7440
7441
constexpr std::string_view table_is_double_dot_path_segment[] = {
7442
    "..", "%2e.", ".%2e", "%2e%2e"};
7443
7444
ada_really_inline constexpr bool is_double_dot_path_segment(
7445
64.3k
    std::string_view input) noexcept {
7446
  // This will catch most cases:
7447
  // The length must be 2,4 or 6.
7448
  // We divide by two and require
7449
  // that the result be between 1 and 3 inclusively.
7450
64.3k
  uint64_t half_length = uint64_t(input.size()) / 2;
7451
64.3k
  if (half_length - 1 > 2) {
7452
36.5k
    return false;
7453
36.5k
  }
7454
  // We have a string of length 2, 4 or 6.
7455
  // We now check the first character:
7456
27.7k
  if ((input[0] != '.') && (input[0] != '%')) {
7457
6.58k
    return false;
7458
6.58k
  }
7459
  // We are unlikely the get beyond this point.
7460
21.1k
  int hash_value = (input.size() + (unsigned)(input[0])) & 3;
7461
21.1k
  const std::string_view target = table_is_double_dot_path_segment[hash_value];
7462
21.1k
  if (target.size() != input.size()) {
7463
6.42k
    return false;
7464
6.42k
  }
7465
  // We almost never get here.
7466
  // Optimizing the rest is relatively unimportant.
7467
14.7k
  auto prefix_equal_unsafe = [](std::string_view a, std::string_view b) {
7468
14.7k
    uint16_t A, B;
7469
14.7k
    memcpy(&A, a.data(), sizeof(A));
7470
14.7k
    memcpy(&B, b.data(), sizeof(B));
7471
14.7k
    return A == B;
7472
14.7k
  };
7473
14.7k
  if (!prefix_equal_unsafe(input, target)) {
7474
2.97k
    return false;
7475
2.97k
  }
7476
16.5k
  for (size_t i = 2; i < input.size(); i++) {
7477
7.65k
    char c = input[i];
7478
7.65k
    if ((uint8_t((c | 0x20) - 0x61) <= 25 ? (c | 0x20) : c) != target[i]) {
7479
2.86k
      return false;
7480
2.86k
    }
7481
7.65k
  }
7482
8.90k
  return true;
7483
  // The above code might be a bit better than the code below. Compilers
7484
  // are not stupid and may use the fact that these strings have length 2,4 and
7485
  // 6 and other tricks.
7486
  // return input == ".." ||
7487
  //  input == ".%2e" || input == ".%2E" ||
7488
  //  input == "%2e." || input == "%2E." ||
7489
  //  input == "%2e%2e" || input == "%2E%2E" || input == "%2E%2e" || input ==
7490
  //  "%2e%2E";
7491
11.7k
}
7492
7493
ada_really_inline constexpr bool is_single_dot_path_segment(
7494
110k
    std::string_view input) noexcept {
7495
110k
  return input == "." || input == "%2e" || input == "%2E";
7496
110k
}
7497
7498
25.7k
ada_really_inline constexpr bool is_lowercase_hex(const char c) noexcept {
7499
25.7k
  return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
7500
25.7k
}
7501
7502
constexpr static char hex_to_binary_table[] = {
7503
    0,  1,  2,  3,  4, 5, 6, 7, 8, 9, 0, 0,  0,  0,  0,  0,  0, 10, 11,
7504
    12, 13, 14, 15, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0,  0,  0,  0, 0,  0,
7505
    0,  0,  0,  0,  0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15};
7506
13.6k
unsigned constexpr convert_hex_to_binary(const char c) noexcept {
7507
13.6k
  return hex_to_binary_table[c - '0'];
7508
13.6k
}
7509
7510
4.21k
std::string percent_decode(const std::string_view input, size_t first_percent) {
7511
  // next line is for safety only, we expect users to avoid calling
7512
  // percent_decode when first_percent is outside the range.
7513
4.21k
  if (first_percent == std::string_view::npos) {
7514
0
    return std::string(input);
7515
0
  }
7516
7517
  // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
7518
4.21k
  const char* const src = input.data();
7519
4.21k
  const char* const end = src + input.size();
7520
7521
  // Decoding never grows the string, so a single pre-sized buffer written via
7522
  // bulk memcpy of the plain runs (then shrunk to the final length) avoids the
7523
  // byte-at-a-time appends of the naive version.
7524
4.21k
  std::string out(input.size(), '\0');
7525
4.21k
  char* d = out.data();
7526
4.21k
  char* const d0 = d;
7527
7528
4.21k
  std::memcpy(d, src, first_percent);
7529
4.21k
  d += first_percent;
7530
7531
4.21k
  const char* p = src + first_percent;
7532
21.8k
  while (p < end) {
7533
17.6k
    if (*p == '%') {
7534
      // Decode runs of valid %XX tightly (common for nested/encoded URLs).
7535
17.7k
      while (p + 2 < end && *p == '%') {
7536
13.0k
        if (!is_ascii_hex_digit(p[1]) || !is_ascii_hex_digit(p[2])) {
7537
6.27k
          break;
7538
6.27k
        }
7539
6.82k
        *d++ = static_cast<char>(convert_hex_to_binary(p[1]) * 16 +
7540
6.82k
                                 convert_hex_to_binary(p[2]));
7541
6.82k
        p += 3;
7542
6.82k
      }
7543
10.9k
      if (p < end && *p == '%') {
7544
        // Not a valid escape (too few chars left or bad hex): copy '%'
7545
        // literally and keep scanning after it.
7546
7.02k
        *d++ = *p++;
7547
7.02k
      }
7548
10.9k
    } else {
7549
6.68k
      const char* q = static_cast<const char*>(
7550
6.68k
          std::memchr(p, '%', static_cast<size_t>(end - p)));
7551
6.68k
      const char* run_end = q ? q : end;
7552
6.68k
      const size_t n = static_cast<size_t>(run_end - p);
7553
6.68k
      std::memcpy(d, p, n);
7554
6.68k
      d += n;
7555
6.68k
      p = run_end;
7556
6.68k
    }
7557
17.6k
  }
7558
7559
4.21k
  out.resize(static_cast<size_t>(d - d0));
7560
4.21k
  return out;
7561
4.21k
}
7562
7563
// 0..15 for hex digits, 0xFF otherwise - validate and decode with two loads.
7564
constexpr static std::array<uint8_t, 256> unhex_table = []() consteval {
7565
  std::array<uint8_t, 256> t{};
7566
  for (size_t i = 0; i < 256; ++i) {
7567
    t[i] = 0xFF;
7568
  }
7569
  for (uint8_t i = 0; i < 10; ++i) {
7570
    t[static_cast<size_t>('0') + i] = i;
7571
  }
7572
  for (uint8_t i = 0; i < 6; ++i) {
7573
    t[static_cast<size_t>('A') + i] = static_cast<uint8_t>(10 + i);
7574
    t[static_cast<size_t>('a') + i] = static_cast<uint8_t>(10 + i);
7575
  }
7576
  return t;
7577
}();
7578
7579
0
std::string form_urlencoded_decode(const std::string_view input) {
7580
0
  const size_t len = input.size();
7581
0
  if (len == 0) [[unlikely]] {
7582
0
    return {};
7583
0
  }
7584
7585
  // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
7586
0
  const char* const src = input.data();
7587
0
  const char* const end = src + len;
7588
0
  const char* p = src;
7589
7590
  // Advance over the untransformed prefix.
7591
0
  while (p < end && *p != '+' && *p != '%') {
7592
0
    ++p;
7593
0
  }
7594
0
  if (p == end) {
7595
0
    return std::string(input);
7596
0
  }
7597
7598
  // Output is always at most as long as the input: write into a single
7599
  // pre-sized buffer, then shrink to the final length.
7600
0
  std::string out(len, '\0');
7601
0
  char* d = out.data();
7602
0
  char* const d0 = d;
7603
7604
0
  const size_t prefix = static_cast<size_t>(p - src);
7605
0
  std::memcpy(d, src, prefix);
7606
0
  d += prefix;
7607
7608
0
  while (p < end) {
7609
0
    const char c = *p;
7610
0
    if (c == '+') {
7611
0
      *d++ = ' ';
7612
0
      ++p;
7613
0
    } else if (c == '%') {
7614
      // Decode runs of valid %XX tightly (common for nested URL query values).
7615
0
      while (p + 2 < end && *p == '%') {
7616
0
        const uint8_t hi = unhex_table[static_cast<uint8_t>(p[1])];
7617
0
        const uint8_t lo = unhex_table[static_cast<uint8_t>(p[2])];
7618
0
        if ((hi | lo) >= 16) {
7619
0
          break;
7620
0
        }
7621
0
        *d++ = static_cast<char>((hi << 4) | lo);
7622
0
        p += 3;
7623
0
      }
7624
0
      if (p < end && *p == '%') {
7625
        // Invalid escape: copy '%' literally and continue.
7626
0
        *d++ = *p++;
7627
0
      }
7628
0
    } else {
7629
      // Copy a plain run until the next '+' or '%'.
7630
0
      const char* start = p;
7631
0
      ++p;
7632
0
      while (p < end && *p != '+' && *p != '%') {
7633
0
        ++p;
7634
0
      }
7635
0
      const size_t n = static_cast<size_t>(p - start);
7636
0
      std::memcpy(d, start, n);
7637
0
      d += n;
7638
0
    }
7639
0
  }
7640
7641
0
  out.resize(static_cast<size_t>(d - d0));
7642
0
  return out;
7643
0
}
7644
7645
void percent_encode_suffix(const char* p, const char* end,
7646
                           const uint8_t character_set[], std::string& out);
7647
7648
std::string percent_encode(const std::string_view input,
7649
24.4k
                           const uint8_t character_set[]) {
7650
107k
  auto pointer = std::ranges::find_if(input, [character_set](const char c) {
7651
107k
    return character_sets::bit_at(character_set, c);
7652
107k
  });
7653
  // Optimization: Don't iterate if percent encode is not required
7654
24.4k
  if (pointer == input.end()) {
7655
20.0k
    return std::string(input);
7656
20.0k
  }
7657
7658
4.32k
  std::string result;
7659
4.32k
  result.reserve(input.length());  // in the worst case, percent encoding might
7660
                                   // produce 3 characters.
7661
4.32k
  result.append(input.substr(0, std::distance(input.begin(), pointer)));
7662
4.32k
  if (static_cast<size_t>(input.end() - pointer) >= 48) {
7663
666
    percent_encode_suffix(&*pointer, input.data() + input.size(), character_set,
7664
666
                          result);
7665
3.65k
  } else {
7666
30.4k
    for (; pointer != input.end(); pointer++) {
7667
26.8k
      if (character_sets::bit_at(character_set, *pointer)) {
7668
22.6k
        result.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
7669
22.6k
      } else {
7670
4.22k
        result += *pointer;
7671
4.22k
      }
7672
26.8k
    }
7673
3.65k
  }
7674
4.32k
  return result;
7675
24.4k
}
7676
7677
template <bool append>
7678
bool percent_encode(const std::string_view input, const uint8_t character_set[],
7679
30.0k
                    std::string& out) {
7680
30.0k
  ada_log("percent_encode ", input, " to output string while ",
7681
30.0k
          append ? "appending" : "overwriting");
7682
75.8k
  auto pointer = std::ranges::find_if(input, [character_set](const char c) {
7683
75.8k
    return character_sets::bit_at(character_set, c);
7684
75.8k
  });
ada::unicode::percent_encode<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, unsigned char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)::{lambda(char)#1}::operator()(char) const
Line
Count
Source
7682
75.8k
  auto pointer = std::ranges::find_if(input, [character_set](const char c) {
7683
75.8k
    return character_sets::bit_at(character_set, c);
7684
75.8k
  });
Unexecuted instantiation: ada::unicode::percent_encode<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, unsigned char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)::{lambda(char)#1}::operator()(char) const
7685
30.0k
  ada_log("percent_encode done checking, moved to ",
7686
30.0k
          std::distance(input.begin(), pointer));
7687
7688
  // Optimization: Don't iterate if percent encode is not required
7689
30.0k
  if (pointer == input.end()) {
7690
18.8k
    ada_log("percent_encode encoding not needed.");
7691
18.8k
    return false;
7692
18.8k
  }
7693
11.1k
  if constexpr (!append) {
7694
0
    out.clear();
7695
0
  }
7696
11.1k
  ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
7697
11.1k
          " bytes");
7698
  // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
7699
11.1k
  out.append(input.data(), std::distance(input.begin(), pointer));
7700
11.1k
  ada_log("percent_encode processing ", std::distance(pointer, input.end()),
7701
11.1k
          " bytes");
7702
135k
  for (; pointer != input.end(); pointer++) {
7703
124k
    if (character_sets::bit_at(character_set, *pointer)) {
7704
112k
      out.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
7705
112k
    } else {
7706
12.6k
      out += *pointer;
7707
12.6k
    }
7708
124k
  }
7709
11.1k
  return true;
7710
30.0k
}
bool ada::unicode::percent_encode<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, unsigned char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
Line
Count
Source
7679
30.0k
                    std::string& out) {
7680
30.0k
  ada_log("percent_encode ", input, " to output string while ",
7681
30.0k
          append ? "appending" : "overwriting");
7682
30.0k
  auto pointer = std::ranges::find_if(input, [character_set](const char c) {
7683
30.0k
    return character_sets::bit_at(character_set, c);
7684
30.0k
  });
7685
30.0k
  ada_log("percent_encode done checking, moved to ",
7686
30.0k
          std::distance(input.begin(), pointer));
7687
7688
  // Optimization: Don't iterate if percent encode is not required
7689
30.0k
  if (pointer == input.end()) {
7690
18.8k
    ada_log("percent_encode encoding not needed.");
7691
18.8k
    return false;
7692
18.8k
  }
7693
  if constexpr (!append) {
7694
    out.clear();
7695
  }
7696
11.1k
  ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
7697
11.1k
          " bytes");
7698
  // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
7699
11.1k
  out.append(input.data(), std::distance(input.begin(), pointer));
7700
11.1k
  ada_log("percent_encode processing ", std::distance(pointer, input.end()),
7701
11.1k
          " bytes");
7702
135k
  for (; pointer != input.end(); pointer++) {
7703
124k
    if (character_sets::bit_at(character_set, *pointer)) {
7704
112k
      out.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
7705
112k
    } else {
7706
12.6k
      out += *pointer;
7707
12.6k
    }
7708
124k
  }
7709
11.1k
  return true;
7710
30.0k
}
Unexecuted instantiation: bool ada::unicode::percent_encode<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, unsigned char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&)
7711
7712
template bool percent_encode<true>(std::string_view input,
7713
                                   const uint8_t character_set[],
7714
                                   std::string& out);
7715
template bool percent_encode<false>(std::string_view input,
7716
                                    const uint8_t character_set[],
7717
                                    std::string& out);
7718
7719
bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
7720
18.6k
              size_t first_percent) {
7721
18.6k
  std::string percent_decoded_buffer;
7722
18.6k
  std::string_view input = plain;
7723
18.6k
  if (first_percent != std::string_view::npos) {
7724
1.12k
    percent_decoded_buffer = unicode::percent_decode(plain, first_percent);
7725
1.12k
    input = percent_decoded_buffer;
7726
1.12k
  }
7727
  // input is a non-empty UTF-8 string, must be percent decoded
7728
18.6k
  std::string idna_ascii = ada::idna::to_ascii(input);
7729
18.6k
  if (idna_ascii.empty() || contains_forbidden_domain_code_point(
7730
14.2k
                                idna_ascii.data(), idna_ascii.size())) {
7731
5.71k
    return false;
7732
5.71k
  }
7733
12.9k
  out = std::move(idna_ascii);
7734
12.9k
  return true;
7735
18.6k
}
7736
7737
std::string percent_encode(const std::string_view input,
7738
542
                           const uint8_t character_set[], size_t index) {
7739
542
  std::string out;
7740
  // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
7741
542
  out.append(input.data(), index);
7742
542
  auto pointer = input.begin() + index;
7743
542
  if (static_cast<size_t>(input.end() - pointer) >= 48) {
7744
184
    percent_encode_suffix(&*pointer, input.data() + input.size(), character_set,
7745
184
                          out);
7746
358
  } else {
7747
3.20k
    for (; pointer != input.end(); pointer++) {
7748
2.85k
      if (character_sets::bit_at(character_set, *pointer)) {
7749
2.39k
        out.append(character_sets::hex + uint8_t(*pointer) * 4, 3);
7750
2.39k
      } else {
7751
452
        out += *pointer;
7752
452
      }
7753
2.85k
    }
7754
358
  }
7755
542
  return out;
7756
542
}
7757
7758
}  // namespace ada::unicode
7759
/* end file src/unicode.cpp */
7760
#if !defined(ADA_PERCENT_ENCODE_SIMD_SEPARATE_TU)
7761
/* begin file src/unicode_percent_encode.cpp */
7762
#include <cstdint>
7763
7764
7765
7766
#include <cstring>
7767
#include <string>
7768
#if ADA_SSSE3
7769
#include <tmmintrin.h>
7770
#define ADA_UNICODE_SSSE3 1
7771
#elif ADA_NEON
7772
#include <arm_neon.h>
7773
#elif ADA_RVV
7774
#include <riscv_vector.h>
7775
#endif
7776
7777
// gcc/clang honor target("ssse3") on an SSE2 translation unit. clang-cl and
7778
// MSVC do not: they still compile the function as SSE2, then reject
7779
// always_inline _mm_shuffle_epi8. Same approach as parser.cpp.
7780
#if !ADA_UNICODE_SSSE3 && (defined(__x86_64__) || defined(__amd64__)) && \
7781
    defined(__GNUC__) && !defined(_MSC_VER)
7782
#include <tmmintrin.h>
7783
#define ADA_UNICODE_SSSE3 1
7784
#define ADA_UNICODE_NEED_SSSE3_TARGET 1
7785
#endif
7786
#ifndef ADA_UNICODE_SSSE3
7787
#define ADA_UNICODE_SSSE3 0
7788
#endif
7789
#ifdef ADA_UNICODE_NEED_SSSE3_TARGET
7790
// noinline: these functions must not be inlined into a caller that also
7791
// contains the CPU check. A target("ssse3") function can use SSSE3 in its
7792
// prologue, before any check inside it would run.
7793
#define ADA_UNICODE_SIMD __attribute__((target("ssse3"), noinline))
7794
#else
7795
#define ADA_UNICODE_SIMD ada_really_inline
7796
#endif
7797
7798
#ifdef ADA_REGULAR_VISUAL_STUDIO
7799
#include <intrin.h>
7800
#endif
7801
7802
namespace ada::unicode {
7803
namespace {
7804
7805
#if ADA_UNICODE_SSSE3 || ADA_NEON
7806
47.3k
ada_really_inline int trailing_zeroes32(uint32_t input_num) noexcept {
7807
#ifdef ADA_REGULAR_VISUAL_STUDIO
7808
  unsigned long ret;
7809
  _BitScanForward(&ret, input_num);
7810
  return static_cast<int>(ret);
7811
#else
7812
47.3k
  return __builtin_ctz(input_num);
7813
47.3k
#endif
7814
47.3k
}
7815
7816
// Append one window whose set bits mark bytes that need encoding.
7817
ada_really_inline void encode_mask_window(const char* p, uint32_t mask,
7818
3.93k
                                          size_t width, std::string& out) {
7819
3.93k
  uint64_t bits = mask;
7820
3.93k
  size_t off = 0;
7821
51.2k
  while (bits != 0) {
7822
47.3k
    const int zero_run = trailing_zeroes32(static_cast<uint32_t>(bits));
7823
47.3k
    if (zero_run != 0) {
7824
3.06k
      out.append(p + off, static_cast<size_t>(zero_run));
7825
3.06k
    }
7826
47.3k
    off += static_cast<size_t>(zero_run);
7827
47.3k
    out.append(character_sets::hex + uint8_t(p[off]) * 4, 3);
7828
47.3k
    ++off;
7829
47.3k
    bits >>= static_cast<unsigned>(zero_run + 1);
7830
47.3k
  }
7831
3.93k
  if (off < width) {
7832
1.05k
    out.append(p + off, width - off);
7833
1.05k
  }
7834
3.93k
}
7835
#endif  // ADA_UNICODE_SSSE3 || ADA_NEON
7836
7837
ada_really_inline void percent_encode_to_scalar(const char* p, const char* end,
7838
                                                const uint8_t character_set[],
7839
850
                                                std::string& out) {
7840
3.45k
  for (; p != end; ++p) {
7841
2.60k
    if (character_sets::bit_at(character_set, *p)) {
7842
2.01k
      out.append(character_sets::hex + uint8_t(*p) * 4, 3);
7843
2.01k
    } else {
7844
593
      out += *p;
7845
593
    }
7846
2.60k
  }
7847
850
}
7848
7849
#if ADA_UNICODE_SSSE3
7850
// Classify 16 input bytes against the 32-byte character_set bitmap:
7851
// bit_at(cs, b) == cs[b >> 3] & (1 << (b & 7)). pshufb looks up the two
7852
// 16-byte halves of that bitmap; no per-call nibble table is built.
7853
struct ssse3_percent_tables {
7854
  __m128i cs_lo;
7855
  __m128i cs_hi;
7856
  __m128i pow2;
7857
  __m128i mask_0f;
7858
  __m128i mask_07;
7859
  __m128i zero;
7860
};
7861
7862
ADA_UNICODE_SIMD ssse3_percent_tables
7863
850
load_ssse3_percent_tables(const uint8_t character_set[]) noexcept {
7864
850
  ssse3_percent_tables t{};
7865
850
  t.cs_lo = _mm_loadu_si128(reinterpret_cast<const __m128i*>(character_set));
7866
850
  t.cs_hi =
7867
850
      _mm_loadu_si128(reinterpret_cast<const __m128i*>(character_set + 16));
7868
  // 1 << (0..7), duplicated so pshufb(index & 7) works for every lane.
7869
850
  t.pow2 =
7870
850
      _mm_setr_epi8(1, 2, 4, 8, 16, 32, 64, -128, 1, 2, 4, 8, 16, 32, 64, -128);
7871
850
  t.mask_0f = _mm_set1_epi8(0x0F);
7872
850
  t.mask_07 = _mm_set1_epi8(0x07);
7873
850
  t.zero = _mm_setzero_si128();
7874
850
  return t;
7875
850
}
7876
7877
ADA_UNICODE_SIMD int ssse3_percent_mask(
7878
4.53k
    __m128i word, const ssse3_percent_tables& tables) noexcept {
7879
4.53k
  const __m128i idx = _mm_and_si128(_mm_srli_epi16(word, 3), tables.mask_0f);
7880
4.53k
  const __m128i lo = _mm_shuffle_epi8(tables.cs_lo, idx);
7881
4.53k
  const __m128i hi = _mm_shuffle_epi8(tables.cs_hi, idx);
7882
  // Bytes 0x80-0xFF are signed-negative; select the high half of the bitmap.
7883
4.53k
  const __m128i high_byte = _mm_cmpgt_epi8(tables.zero, word);
7884
4.53k
  const __m128i cs_byte = _mm_or_si128(_mm_and_si128(hi, high_byte),
7885
4.53k
                                       _mm_andnot_si128(high_byte, lo));
7886
4.53k
  const __m128i bits =
7887
4.53k
      _mm_shuffle_epi8(tables.pow2, _mm_and_si128(word, tables.mask_07));
7888
4.53k
  const __m128i hits = _mm_and_si128(cs_byte, bits);
7889
4.53k
  return _mm_movemask_epi8(_mm_cmpeq_epi8(hits, tables.zero)) ^ 0xFFFF;
7890
4.53k
}
7891
7892
ADA_UNICODE_SIMD void percent_encode_to_ssse3(
7893
    const char* p, const char* end, const uint8_t character_set[],
7894
850
    const ssse3_percent_tables& tables, std::string& out) {
7895
  // Pair 16-byte windows so a fully clean 32-byte run is one append.
7896
2.83k
  while (p + 32 <= end) {
7897
1.98k
    const __m128i word0 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
7898
1.98k
    const __m128i word1 =
7899
1.98k
        _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
7900
1.98k
    const int mask0 = ssse3_percent_mask(word0, tables);
7901
1.98k
    const int mask1 = ssse3_percent_mask(word1, tables);
7902
1.98k
    if ((mask0 | mask1) == 0) {
7903
114
      out.append(p, 32);
7904
1.86k
    } else {
7905
1.86k
      if (mask0 == 0) {
7906
125
        out.append(p, 16);
7907
1.74k
      } else {
7908
1.74k
        encode_mask_window(p, static_cast<uint32_t>(mask0), 16, out);
7909
1.74k
      }
7910
1.86k
      if (mask1 == 0) {
7911
192
        out.append(p + 16, 16);
7912
1.67k
      } else {
7913
1.67k
        encode_mask_window(p + 16, static_cast<uint32_t>(mask1), 16, out);
7914
1.67k
      }
7915
1.86k
    }
7916
1.98k
    p += 32;
7917
1.98k
  }
7918
850
  if (p + 16 <= end) {
7919
572
    const __m128i word = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
7920
572
    const int mask = ssse3_percent_mask(word, tables);
7921
572
    if (mask == 0) {
7922
62
      out.append(p, 16);
7923
510
    } else {
7924
510
      encode_mask_window(p, static_cast<uint32_t>(mask), 16, out);
7925
510
    }
7926
572
    p += 16;
7927
572
  }
7928
850
  percent_encode_to_scalar(p, end, character_set, out);
7929
850
}
7930
#endif  // ADA_UNICODE_SSSE3
7931
7932
#if ADA_NEON
7933
ada_really_inline uint8x16x2_t
7934
load_neon_percent_table(const uint8_t character_set[]) noexcept {
7935
  uint8x16x2_t table{};
7936
  table.val[0] = vld1q_u8(character_set);
7937
  table.val[1] = vld1q_u8(character_set + 16);
7938
  return table;
7939
}
7940
7941
ada_really_inline uint8x16_t neon_percent_hits(uint8x16_t word,
7942
                                               uint8x16x2_t table) noexcept {
7943
  const uint8x16_t cs_bytes = vqtbl2q_u8(table, vshrq_n_u8(word, 3));
7944
  const uint8x16_t bit_mask = vshlq_u8(
7945
      vdupq_n_u8(1), vreinterpretq_s8_u8(vandq_u8(word, vdupq_n_u8(7))));
7946
  return vandq_u8(cs_bytes, bit_mask);
7947
}
7948
7949
ada_really_inline uint32_t neon_percent_mask(uint8x16_t hits) noexcept {
7950
  const uint8x16_t cmp = vcgtq_u8(hits, vdupq_n_u8(0));
7951
  const uint8x16_t bit = {1, 2, 4, 8, 16, 32, 64, 128,
7952
                          1, 2, 4, 8, 16, 32, 64, 128};
7953
  const uint8x16_t masked = vandq_u8(cmp, bit);
7954
  return static_cast<uint32_t>(vaddv_u8(vget_low_u8(masked))) |
7955
         (static_cast<uint32_t>(vaddv_u8(vget_high_u8(masked))) << 8);
7956
}
7957
7958
ada_really_inline void percent_encode_to_neon(const char* p, const char* end,
7959
                                              const uint8_t character_set[],
7960
                                              uint8x16x2_t table,
7961
                                              std::string& out) {
7962
  while (p + 32 <= end) {
7963
    const uint8x16_t hits0 =
7964
        neon_percent_hits(vld1q_u8(reinterpret_cast<const uint8_t*>(p)), table);
7965
    const uint8x16_t hits1 = neon_percent_hits(
7966
        vld1q_u8(reinterpret_cast<const uint8_t*>(p + 16)), table);
7967
    const bool clean0 = vmaxvq_u32(vreinterpretq_u32_u8(hits0)) == 0;
7968
    const bool clean1 = vmaxvq_u32(vreinterpretq_u32_u8(hits1)) == 0;
7969
    if (clean0 && clean1) {
7970
      out.append(p, 32);
7971
    } else {
7972
      if (clean0) {
7973
        out.append(p, 16);
7974
      } else {
7975
        encode_mask_window(p, neon_percent_mask(hits0), 16, out);
7976
      }
7977
      if (clean1) {
7978
        out.append(p + 16, 16);
7979
      } else {
7980
        encode_mask_window(p + 16, neon_percent_mask(hits1), 16, out);
7981
      }
7982
    }
7983
    p += 32;
7984
  }
7985
  if (p + 16 <= end) {
7986
    const uint8x16_t hits =
7987
        neon_percent_hits(vld1q_u8(reinterpret_cast<const uint8_t*>(p)), table);
7988
    if (vmaxvq_u32(vreinterpretq_u32_u8(hits)) == 0) {
7989
      out.append(p, 16);
7990
    } else {
7991
      encode_mask_window(p, neon_percent_mask(hits), 16, out);
7992
    }
7993
    p += 16;
7994
  }
7995
  percent_encode_to_scalar(p, end, character_set, out);
7996
}
7997
#endif  // ADA_NEON
7998
7999
#if ADA_RVV
8000
ada_really_inline void percent_encode_to_rvv(const char* p, const char* end,
8001
                                             const uint8_t character_set[],
8002
                                             std::string& out) {
8003
  while (p < end) {
8004
    const size_t remaining = static_cast<size_t>(end - p);
8005
    const size_t vl = __riscv_vsetvl_e8m1(remaining);
8006
    const vuint8m1_t word =
8007
        __riscv_vle8_v_u8m1(reinterpret_cast<const uint8_t*>(p), vl);
8008
    const vuint8m1_t cs_bytes =
8009
        __riscv_vluxei8(character_set, __riscv_vsrl(word, 3, vl), vl);
8010
    const vuint8m1_t bit_mask = __riscv_vsll(__riscv_vmv_v_x_u8m1(1, vl),
8011
                                             __riscv_vand(word, 7, vl), vl);
8012
    const long idx = __riscv_vfirst(
8013
        __riscv_vmsne(__riscv_vand(cs_bytes, bit_mask, vl), 0, vl), vl);
8014
    if (idx < 0) {
8015
      out.append(p, vl);
8016
      p += vl;
8017
      continue;
8018
    }
8019
    if (idx > 0) {
8020
      out.append(p, static_cast<size_t>(idx));
8021
      p += idx;
8022
    }
8023
    out.append(character_sets::hex + uint8_t(*p) * 4, 3);
8024
    ++p;
8025
  }
8026
}
8027
#endif  // ADA_RVV
8028
8029
#if ADA_UNICODE_SSSE3 || ADA_NEON || ADA_RVV
8030
// Setter and existing percent_encode benches are 2-44 bytes. Table setup
8031
// plus mask walking costs more instructions than bit_at on those inputs
8032
// (especially dense USERINFO). SIMD pays off on the remaining suffix.
8033
static constexpr size_t kPercentEncodeSimdMin = 48;
8034
8035
void percent_encode_to_wide(const char* p, const char* end,
8036
850
                            const uint8_t character_set[], std::string& out) {
8037
  // Worst case every byte becomes %XX. Avoids realloc while walking windows.
8038
850
  out.reserve(out.size() + static_cast<size_t>(end - p) * 3);
8039
850
#if ADA_UNICODE_SSSE3
8040
850
  const ssse3_percent_tables tables = load_ssse3_percent_tables(character_set);
8041
850
  percent_encode_to_ssse3(p, end, character_set, tables, out);
8042
#elif ADA_NEON
8043
  percent_encode_to_neon(p, end, character_set,
8044
                         load_neon_percent_table(character_set), out);
8045
#elif ADA_RVV
8046
  percent_encode_to_rvv(p, end, character_set, out);
8047
#endif
8048
850
}
8049
#endif
8050
8051
}  // namespace
8052
8053
void percent_encode_suffix(const char* p, const char* end,
8054
850
                           const uint8_t character_set[], std::string& out) {
8055
850
#if ADA_UNICODE_SSSE3 || ADA_NEON || ADA_RVV
8056
850
#ifdef ADA_UNICODE_NEED_SSSE3_TARGET
8057
850
  static const bool ssse3_supported = __builtin_cpu_supports("ssse3") != 0;
8058
850
  const bool use_wide = ssse3_supported;
8059
#else
8060
  const bool use_wide = true;
8061
#endif
8062
850
  if (use_wide && static_cast<size_t>(end - p) >= kPercentEncodeSimdMin) {
8063
850
    percent_encode_to_wide(p, end, character_set, out);
8064
850
    return;
8065
850
  }
8066
0
#endif
8067
0
  percent_encode_to_scalar(p, end, character_set, out);
8068
0
}
8069
8070
}  // namespace ada::unicode
8071
/* end file src/unicode_percent_encode.cpp */
8072
#endif
8073
/* begin file src/serializers.cpp */
8074
8075
#include <array>
8076
#include <cstdint>
8077
#include <cstring>
8078
#include <string>
8079
8080
namespace ada::serializers {
8081
namespace {
8082
8083
// Digit pair LUT for fast decimal write: index 0..99 -> two chars.
8084
0
constexpr std::array<char, 200> make_digit_pairs() noexcept {
8085
0
  std::array<char, 200> t{};
8086
0
  for (size_t i = 0; i < 100; ++i) {
8087
0
    t[i * 2] = static_cast<char>('0' + i / 10);
8088
0
    t[i * 2 + 1] = static_cast<char>('0' + i % 10);
8089
0
  }
8090
0
  return t;
8091
0
}
8092
8093
constexpr auto digit_pairs = make_digit_pairs();
8094
8095
18.1k
ada_really_inline char* write_u8(char* p, uint8_t v) noexcept {
8096
18.1k
  if (v < 10) {
8097
14.6k
    *p++ = static_cast<char>('0' + v);
8098
14.6k
  } else if (v < 100) {
8099
1.39k
    std::memcpy(p, &digit_pairs[static_cast<size_t>(v) * 2], 2);
8100
1.39k
    p += 2;
8101
2.11k
  } else {
8102
2.11k
    *p++ = static_cast<char>('0' + v / 100);
8103
2.11k
    std::memcpy(p, &digit_pairs[static_cast<size_t>(v % 100) * 2], 2);
8104
2.11k
    p += 2;
8105
2.11k
  }
8106
18.1k
  return p;
8107
18.1k
}
8108
8109
2.46k
ada_really_inline char* write_hex_u16(char* p, uint16_t v) noexcept {
8110
2.46k
  static constexpr char kHex[] = "0123456789abcdef";
8111
2.46k
  if (v >= 0x1000) {
8112
243
    *p++ = kHex[(v >> 12) & 0xf];
8113
243
    *p++ = kHex[(v >> 8) & 0xf];
8114
243
    *p++ = kHex[(v >> 4) & 0xf];
8115
243
    *p++ = kHex[v & 0xf];
8116
2.22k
  } else if (v >= 0x100) {
8117
318
    *p++ = kHex[(v >> 8) & 0xf];
8118
318
    *p++ = kHex[(v >> 4) & 0xf];
8119
318
    *p++ = kHex[v & 0xf];
8120
1.90k
  } else if (v >= 0x10) {
8121
342
    *p++ = kHex[(v >> 4) & 0xf];
8122
342
    *p++ = kHex[v & 0xf];
8123
1.56k
  } else {
8124
1.56k
    *p++ = kHex[v & 0xf];
8125
1.56k
  }
8126
2.46k
  return p;
8127
2.46k
}
8128
8129
}  // namespace
8130
8131
void find_longest_sequence_of_ipv6_pieces(
8132
    const std::array<uint16_t, 8>& address, size_t& compress,
8133
1.02k
    size_t& compress_length) noexcept {
8134
1.02k
  compress = 0;
8135
1.02k
  compress_length = 0;
8136
1.02k
  size_t i = 0;
8137
4.37k
  while (i < 8) {
8138
3.34k
    if (address[i] != 0) {
8139
2.09k
      ++i;
8140
2.09k
      continue;
8141
2.09k
    }
8142
1.25k
    size_t next = i + 1;
8143
6.11k
    while (next < 8 && address[next] == 0) {
8144
4.86k
      ++next;
8145
4.86k
    }
8146
1.25k
    const size_t count = next - i;
8147
1.25k
    if (count > compress_length) {
8148
1.07k
      compress_length = count;
8149
1.07k
      compress = i;
8150
1.07k
    }
8151
1.25k
    i = next;
8152
1.25k
  }
8153
1.02k
}
8154
8155
1.02k
std::string ipv6(const std::array<uint16_t, 8>& address) {
8156
1.02k
  size_t compress = 0;
8157
1.02k
  size_t compress_length = 0;
8158
1.02k
  find_longest_sequence_of_ipv6_pieces(address, compress, compress_length);
8159
8160
  // Skip compression when the longest zero run is a single piece.
8161
1.02k
  if (compress_length <= 1) {
8162
120
    compress = compress_length = 8;
8163
120
  }
8164
8165
  // Max: '[' + 8*4 hex + 7 ':' + ']' = 41
8166
1.02k
  char output[4 * 8 + 7 + 2];
8167
1.02k
  char* point = output;
8168
1.02k
  *point++ = '[';
8169
1.02k
  size_t piece_index = 0;
8170
2.97k
  while (true) {
8171
2.97k
    if (piece_index == compress) {
8172
906
      *point++ = ':';
8173
      // If we skip a value initially, we need to write '::'.
8174
906
      if (piece_index == 0) {
8175
570
        *point++ = ':';
8176
570
      }
8177
906
      piece_index += compress_length;
8178
906
      if (piece_index == 8) {
8179
507
        break;
8180
507
      }
8181
906
    }
8182
2.46k
    point = write_hex_u16(point, address[piece_index]);
8183
2.46k
    ++piece_index;
8184
2.46k
    if (piece_index == 8) {
8185
519
      break;
8186
519
    }
8187
1.95k
    *point++ = ':';
8188
1.95k
  }
8189
1.02k
  *point++ = ']';
8190
1.02k
  return std::string(output, static_cast<size_t>(point - output));
8191
1.02k
}
8192
8193
4.53k
std::string ipv4(const uint64_t address) {
8194
4.53k
  std::string output(15, '\0');
8195
4.53k
  char* point = output.data();
8196
4.53k
  point = write_u8(point, static_cast<uint8_t>(address >> 24));
8197
4.53k
  *point++ = '.';
8198
4.53k
  point = write_u8(point, static_cast<uint8_t>(address >> 16));
8199
4.53k
  *point++ = '.';
8200
4.53k
  point = write_u8(point, static_cast<uint8_t>(address >> 8));
8201
4.53k
  *point++ = '.';
8202
4.53k
  point = write_u8(point, static_cast<uint8_t>(address));
8203
4.53k
  output.resize(static_cast<size_t>(point - output.data()));
8204
4.53k
  return output;
8205
4.53k
}
8206
8207
}  // namespace ada::serializers
8208
/* end file src/serializers.cpp */
8209
/* begin file src/implementation.cpp */
8210
8211
#include <array>
8212
#include <atomic>
8213
#include <cstdint>
8214
#include <cstring>
8215
#include <limits>
8216
#include <optional>
8217
#include <string>
8218
#include <string_view>
8219
8220
8221
namespace ada {
8222
8223
static std::atomic<uint32_t> max_input_length_{
8224
    std::numeric_limits<uint32_t>::max()};
8225
8226
0
void set_max_input_length(uint32_t length) {
8227
0
  max_input_length_.store(length, std::memory_order_relaxed);
8228
0
}
8229
8230
164k
uint32_t get_max_input_length() {
8231
164k
  return max_input_length_.load(std::memory_order_relaxed);
8232
164k
}
8233
8234
namespace {
8235
8236
constexpr std::array<uint8_t, 256> clean_http_host_byte = []() consteval {
8237
  std::array<uint8_t, 256> result{};
8238
  for (size_t i = 0; i < result.size(); ++i) {
8239
    const auto c = static_cast<uint8_t>(i);
8240
    result[i] =
8241
        static_cast<uint8_t>((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') ||
8242
                             c == '-' || c == '.' || c == '_' || c == '~');
8243
  }
8244
  return result;
8245
}();
8246
8247
// SWAR: eight ASCII host bytes in [a-z0-9-._~] without 8 table lookups.
8248
// High bits must be clear first so the range subtracts cannot borrow
8249
// across bytes.
8250
// High-bit-cleared ASCII only. Subtracts cannot borrow across bytes because
8251
// each (hi|0x80) byte is >= 0x80 and each data byte is <= 0x7F. Do not use
8252
// has-zero (x-ones)&~x: a match followed by match^1 (e.g. "./" or "_^")
8253
// produces a false positive via borrow.
8254
ada_really_inline uint64_t swar_in_range(uint64_t w, uint8_t lo,
8255
8.01k
                                         uint8_t hi) noexcept {
8256
8.01k
  constexpr uint64_t k_ones = 0x0101010101010101ull;
8257
8.01k
  constexpr uint64_t k_high = 0x8080808080808080ull;
8258
8.01k
  const uint64_t ge_lo = (w | k_high) - (k_ones * lo);
8259
8.01k
  const uint64_t le_hi = ((k_ones * hi) | k_high) - w;
8260
8.01k
  return ge_lo & le_hi & k_high;
8261
8.01k
}
8262
8263
ada_really_inline bool eight_clean_http_host_bytes(
8264
1.34k
    const uint8_t* input) noexcept {
8265
1.34k
  uint64_t w = 0;
8266
1.34k
  std::memcpy(&w, input, 8);
8267
1.34k
  constexpr uint64_t k_high = 0x8080808080808080ull;
8268
1.34k
  if ((w & k_high) != 0) {
8269
9
    return false;
8270
9
  }
8271
1.33k
  const uint64_t ok = swar_in_range(w, 'a', 'z') | swar_in_range(w, '0', '9') |
8272
1.33k
                      swar_in_range(w, '-', '-') | swar_in_range(w, '.', '.') |
8273
1.33k
                      swar_in_range(w, '_', '_') | swar_in_range(w, '~', '~');
8274
1.33k
  return ok == k_high;
8275
1.34k
}
8276
8277
// Minimal front end for the overwhelmingly common already-canonical HTTP(S)
8278
// case. It deliberately handles fewer inputs than
8279
// try_can_parse_absolute_fast: anything requiring normalization or detailed
8280
// host parsing falls through to that broader validator.
8281
#if defined(_MSC_VER) || \
8282
    (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
8283
constexpr bool k_can_parse_little_endian = true;
8284
#else
8285
constexpr bool k_can_parse_little_endian = false;
8286
#endif
8287
8288
33.6k
std::optional<bool> try_can_parse_clean_http(std::string_view input) noexcept {
8289
33.6k
  const auto* bytes = reinterpret_cast<const uint8_t*>(input.data());
8290
33.6k
  const size_t length = input.size();
8291
33.6k
  if (length < 7) {
8292
15.6k
    return std::nullopt;
8293
15.6k
  }
8294
8295
17.9k
  size_t authority_start;
8296
17.9k
  if constexpr (k_can_parse_little_endian) {
8297
17.9k
    if (length >= 8) {
8298
16.5k
      uint64_t first8 = 0;
8299
16.5k
      std::memcpy(&first8, bytes, 8);
8300
16.5k
      if (first8 == 0x2f2f3a7370747468ull) {  // "https://"
8301
9
        authority_start = 8;
8302
16.5k
      } else if ((first8 & 0x00ffffffffffffffull) ==
8303
16.5k
                 0x002f2f3a70747468ull) {  // "http://"
8304
357
        authority_start = 7;
8305
16.1k
      } else {
8306
16.1k
        return std::nullopt;
8307
16.1k
      }
8308
16.5k
    } else if (bytes[0] == 'h' && bytes[1] == 't' && bytes[2] == 't' &&
8309
54
               bytes[3] == 'p' && bytes[4] == ':' && bytes[5] == '/' &&
8310
10
               bytes[6] == '/') {
8311
2
      authority_start = 7;
8312
1.41k
    } else {
8313
1.41k
      return std::nullopt;
8314
1.41k
    }
8315
  } else {
8316
    uint32_t first4{};
8317
    std::memcpy(&first4, bytes, 4);
8318
    if (first4 != 0x68747470u) {  // "http"
8319
      return std::nullopt;
8320
    }
8321
    if (length >= 8 && bytes[4] == 's' && bytes[5] == ':' && bytes[6] == '/' &&
8322
        bytes[7] == '/') {
8323
      authority_start = 8;
8324
    } else if (bytes[4] == ':' && bytes[5] == '/' && bytes[6] == '/') {
8325
      authority_start = 7;
8326
    } else {
8327
      return std::nullopt;
8328
    }
8329
  }
8330
8331
17.9k
  if (authority_start >= length) {
8332
2
    return false;
8333
2
  }
8334
8335
17.9k
  size_t cursor = authority_start;
8336
19.1k
  while (cursor + 8 <= length && eight_clean_http_host_bytes(bytes + cursor)) {
8337
1.16k
    cursor += 8;
8338
1.16k
  }
8339
18.6k
  while (cursor < length) {
8340
984
    const uint8_t c = bytes[cursor];
8341
984
    if (c == '/' || c == '?' || c == '#') {
8342
226
      break;
8343
226
    }
8344
758
    if (!clean_http_host_byte[c]) {
8345
106
      return std::nullopt;
8346
106
    }
8347
652
    ++cursor;
8348
652
  }
8349
8350
17.8k
  const size_t host_length = cursor - authority_start;
8351
17.8k
  if (host_length == 0) {
8352
    // Extra special-scheme slashes are normalization, not an empty host.
8353
4
    if (bytes[authority_start] == '/' || bytes[authority_start] == '\\') {
8354
1
      return std::nullopt;
8355
1
    }
8356
3
    return false;
8357
4
  }
8358
17.8k
  if (host_length > 253 || bytes[cursor - 1] == '.') {
8359
28
    return std::nullopt;
8360
28
  }
8361
8362
17.8k
  const std::string_view host(input.data() + authority_start, host_length);
8363
17.8k
  if (checkers::last_label_may_be_a_number(host)) {
8364
21
    return std::nullopt;
8365
21
  }
8366
17.7k
  if (host.find('x') != std::string_view::npos &&
8367
98
      host.find("xn-") != std::string_view::npos) {
8368
27
    return std::nullopt;
8369
27
  }
8370
8371
  // Once a special URL has a valid host, path/query/fragment bytes cannot make
8372
  // it structurally invalid: the full parser percent-encodes them as needed.
8373
17.7k
  return true;
8374
17.7k
}
8375
8376
// @private
8377
// Fast-path validator for can_parse.
8378
//
8379
// Validates absolute special (non-file) URLs without constructing any
8380
// url_aggregator object and without running the state machine.
8381
// Performs a single forward scan over the input bytes.
8382
//
8383
// Returns:
8384
//   true      -- URL is structurally valid
8385
//   false     -- URL is definitely invalid
8386
//   nullopt   -- edge case; fall through to the full parser
8387
//               (credentials, IDNA, IPv4/6, tabs/newlines, relative URLs, ...)
8388
std::optional<bool> try_can_parse_absolute_fast(
8389
33.4k
    std::string_view input) noexcept {
8390
33.4k
  const uint8_t* b = reinterpret_cast<const uint8_t*>(input.data());
8391
33.4k
  size_t len = input.size();
8392
8393
  // -- Inline C0 whitespace trim (no allocation) --------------------------
8394
  // Note: \t (0x09), \n (0x0a), \r (0x0d) are all <= 0x20, so any
8395
  // leading/trailing tabs or newlines are correctly stripped here, matching
8396
  // the WHATWG spec's "remove leading/trailing C0 control and space" step.
8397
34.9k
  while (len > 0 && b[0] <= 0x20) {
8398
1.58k
    b++;
8399
1.58k
    len--;
8400
1.58k
  }
8401
34.8k
  while (len > 0 && b[len - 1] <= 0x20) {
8402
1.47k
    len--;
8403
1.47k
  }
8404
33.4k
  if (len == 0) return false;
8405
8406
  // -- Scheme detection -----------------------------------------------------
8407
  // Fast path for HTTP and HTTPS (covers ~90%+ of real-world URLs).
8408
  // Avoids the general scheme loop, buffer copy, and perfect hash lookup.
8409
  // We know HTTP and HTTPS are special non-file schemes, so no further
8410
  // scheme_type checks are needed on the fast path -- only `pos` matters.
8411
20.4k
  size_t pos;
8412
8413
20.4k
  if (len >= 7 && (b[0] | 0x20) == 'h' && (b[1] | 0x20) == 't' &&
8414
398
      (b[2] | 0x20) == 't' && (b[3] | 0x20) == 'p') {
8415
328
    if (b[4] == ':' && b[5] == '/' && b[6] == '/') {
8416
175
      pos = 7;
8417
175
      goto skip_extra_slashes;
8418
175
    }
8419
153
    if (len >= 8 && (b[4] | 0x20) == 's' && b[5] == ':' && b[6] == '/' &&
8420
9
        b[7] == '/') {
8421
8
      pos = 8;
8422
8
      goto skip_extra_slashes;
8423
8
    }
8424
    // Fall through: could be "httpe://", tabs in scheme, etc.
8425
153
  }
8426
8427
20.2k
  {
8428
    // General scheme detection for ws, wss, ftp, and edge cases.
8429
20.2k
    if (!checkers::is_alpha(static_cast<char>(b[0]))) return false;
8430
8431
    // Scan for ':' within the first 7 bytes. All special schemes are <= 5
8432
    // chars ("https"), so any URL whose first ':' is beyond byte 6 is either
8433
    // non-special or relative -- both require the full parser.
8434
19.2k
    size_t colon_pos = 0;
8435
41.7k
    for (size_t i = 1;; ++i) {
8436
41.7k
      if (i >= 7 || i >= len) return std::nullopt;
8437
41.4k
      const char c = static_cast<char>(b[i]);
8438
41.4k
      if (c == ':') {
8439
18.7k
        colon_pos = i;
8440
18.7k
        break;
8441
18.7k
      }
8442
      // Tabs/newlines in the scheme require the full parser to strip them.
8443
22.7k
      if (c == '\t' || c == '\n' || c == '\r') return std::nullopt;
8444
22.7k
      if (!unicode::is_alnum_plus(c)) return false;
8445
22.7k
    }
8446
8447
    // Lowercase scheme bytes inline and classify via the existing perfect
8448
    // hash.
8449
18.7k
    char scheme_buf[6];
8450
18.7k
    scheme_buf[0] = static_cast<char>(b[0] | 0x20);
8451
40.2k
    for (size_t i = 1; i < colon_pos; ++i)
8452
21.5k
      scheme_buf[i] = static_cast<char>(b[i] | 0x20);
8453
8454
18.7k
    const ada::scheme::type scheme_type =
8455
18.7k
        ada::scheme::get_scheme_type({scheme_buf, colon_pos});
8456
8457
    // Only handle special, non-file schemes.
8458
18.7k
    if (scheme_type == ada::scheme::NOT_SPECIAL) return std::nullopt;
8459
16.0k
    if (scheme_type == ada::scheme::FILE) return std::nullopt;
8460
8461
    // Per WHATWG, special URLs don't require "//": "http:example.com" is valid
8462
    // (SPECIAL_AUTHORITY_IGNORE_SLASHES just skips leading slashes and
8463
    // proceeds to AUTHORITY).  Defer to the inline fallback for any input
8464
    // without "://".
8465
14.1k
    pos = colon_pos + 1;
8466
14.1k
    if (pos + 2 > len || b[pos] != '/' || b[pos + 1] != '/') {
8467
6.38k
      return std::nullopt;
8468
6.38k
    }
8469
7.74k
    pos += 2;
8470
7.74k
  }
8471
8472
7.92k
skip_extra_slashes:
8473
  // SPECIAL_AUTHORITY_IGNORE_SLASHES: the full parser skips any additional
8474
  // leading '/' or '\' after the initial "//".  Mirror that here so we don't
8475
  // mis-identify the host as empty when there are extra slashes.
8476
8.38k
  while (pos < len && (b[pos] == '/' || b[pos] == '\\')) {
8477
460
    ++pos;
8478
460
  }
8479
8480
  // Early IPv6 bail-out: if the authority starts with '[', it's an IPv6
8481
  // literal which requires the full parser.  Checking here avoids scanning
8482
  // the entire bracketed address only to bail out afterward.
8483
7.92k
  if (pos < len && b[pos] == '[') return std::nullopt;
8484
8485
  // -- Merged authority + host scan ------------------------------------------
8486
  // A single forward pass over the authority bytes that simultaneously:
8487
  //   - finds the authority end and port colon
8488
  //   - validates host characters (forbidden domain code points)
8489
  //   - tracks IPv4 indicators (all-decimal-dots, last non-dot char)
8490
  //   - detects xn-- prefixes (IDNA punycode)
8491
  //   - detects tabs/newlines (which require the full parser to strip)
8492
  // This replaces 4 separate scans over the host bytes.
8493
7.81k
  const size_t auth_start = pos;
8494
7.81k
  size_t auth_end = pos;
8495
7.81k
  size_t port_colon = SIZE_MAX;
8496
7.81k
  bool all_dec_dots = true;
8497
8498
53.0k
  for (; auth_end < len; ++auth_end) {
8499
52.7k
    const uint8_t c = b[auth_end];
8500
8501
    // Non-ASCII -> needs IDNA processing -> full parser.
8502
52.7k
    if (c >= 0x80) return std::nullopt;
8503
8504
    // Authority delimiters.
8505
52.7k
    if (c == '/' || c == '?' || c == '#' || c == '\\') break;
8506
8507
    // Port separator.
8508
46.8k
    if (c == ':') {
8509
2.20k
      if (port_colon == SIZE_MAX) port_colon = auth_end;
8510
2.20k
      continue;
8511
2.20k
    }
8512
8513
    // Credentials or percent-encoding -> full parser.
8514
44.6k
    if (c == '@' || c == '%') return std::nullopt;
8515
8516
    // Tabs/newlines anywhere in the authority require the full parser to
8517
    // strip them before validation.  Without this, a tab in the port (e.g.
8518
    // "http://host:8\t0/") would be mis-rejected by port validation.
8519
44.3k
    if (c == '\t' || c == '\n' || c == '\r') return std::nullopt;
8520
8521
    // Skip remaining host-specific checks for port bytes.  Port digits are
8522
    // validated separately below, and no forbidden-domain-code-point check
8523
    // is needed on port characters.
8524
44.3k
    if (port_colon != SIZE_MAX) continue;
8525
8526
    // -- Host byte validation (inlined) ------------------------------------
8527
    // Forbidden domain code points that are not already caught above:
8528
    //   C0 controls and space (0x00-0x20), DEL (0x7F), <, >, [, ], ^, |.
8529
    // At this stage, the input may still be userinfo or be normalized later
8530
    // (e.g., percent-encoded), so we do not reject here and defer to the
8531
    // parser. Characters already caught: >= 0x80 (non-ASCII), '/' '?' '#' '\\'
8532
    // (delimiters), ':' (port), '@' '%' (bail), '\t' '\n' '\r' (bail).
8533
41.6k
    if (c <= 0x20 || c == 0x7F || c == '<' || c == '>' || c == '[' ||
8534
41.6k
        c == ']' || c == '^' || c == '|') {
8535
16
      return std::nullopt;
8536
16
    }
8537
8538
    // Track whether host is all decimal digits and dots (potential IPv4).
8539
41.5k
    if (c != '.' && (c < '0' || c > '9')) all_dec_dots = false;
8540
8541
    // Detect xn-- prefix inline (IDNA punycode -> needs full parser).
8542
    // Checking at every position mirrors the original behavior: any
8543
    // occurrence of "xn--" in the host (not just at label boundaries)
8544
    // triggers a bail-out to the full IDNA validator.
8545
41.5k
    if ((c | 0x20) == 'x' && auth_end + 4 <= len &&
8546
6.60k
        (b[auth_end + 1] | 0x20) == 'n' && b[auth_end + 2] == '-' &&
8547
1.59k
        b[auth_end + 3] == '-') {
8548
1.28k
      return std::nullopt;
8549
1.28k
    }
8550
41.5k
  }
8551
8552
6.18k
  const size_t host_end = (port_colon != SIZE_MAX) ? port_colon : auth_end;
8553
8554
  // Empty host is invalid for special URLs.
8555
6.18k
  if (auth_start == host_end) return false;
8556
8557
  // -- IPv4 handling ---------------------------------------------------------
8558
6.14k
  const char* host_ptr = reinterpret_cast<const char*>(b + auth_start);
8559
6.14k
  const size_t host_len = host_end - auth_start;
8560
8561
6.14k
  if (all_dec_dots) {
8562
    // Host is all decimal digits and dots -> try the fast IPv4 parser.
8563
1.38k
    if (checkers::try_parse_ipv4_fast({host_ptr, host_len}) !=
8564
1.38k
        checkers::ipv4_fast_fail) {
8565
      // Valid decimal IPv4 host.  Do NOT return true yet: the port still
8566
      // needs to be validated below before we can declare the URL valid.
8567
736
      goto validate_port;
8568
736
    }
8569
    // Fast IPv4 parsing failed (e.g. host is ".", "..", "1.2.3.500").
8570
    // Such hosts may still be valid domain names; defer to the full parser.
8571
648
    return std::nullopt;
8572
1.38k
  }
8573
8574
4.76k
  if (checkers::last_label_may_be_a_number({host_ptr, host_len})) {
8575
270
    return std::nullopt;
8576
270
  }
8577
8578
  // -- Port validation -------------------------------------------------------
8579
5.22k
validate_port:
8580
5.22k
  if (port_colon != SIZE_MAX) {
8581
1.68k
    const uint8_t* pp = b + port_colon + 1;
8582
1.68k
    size_t pl = auth_end - port_colon - 1;
8583
1.68k
    if (pl > 0) {
8584
      // Strip leading zeros: "0000001" == 1, "0000000000000" == 0, both valid.
8585
      // Only the significant digits count toward the 5-digit maximum.
8586
1.72k
      while (pl > 0 && *pp == '0') {
8587
488
        ++pp;
8588
488
        --pl;
8589
488
      }
8590
1.23k
      if (pl > 5) return false;  // significant digits > 99999
8591
1.23k
      uint32_t pv = 0;
8592
2.60k
      for (size_t i = 0; i < pl; ++i) {
8593
1.38k
        if (pp[i] < '0' || pp[i] > '9') return false;
8594
1.36k
        pv = pv * 10 + (pp[i] - '0');
8595
1.36k
      }
8596
1.21k
      if (pv > 65535) return false;
8597
1.21k
    }
8598
1.68k
  }
8599
8600
  // Path, query, and fragment are structurally always valid for can_parse --
8601
  // the parser would encode whatever is there.
8602
5.20k
  return true;
8603
5.22k
}
8604
8605
}  // namespace
8606
8607
template <class result_type>
8608
ada_warn_unused tl::expected<result_type, errors> parse(
8609
101k
    std::string_view input, const result_type* base_url) {
8610
101k
  result_type u = ada::parser::parse_url_impl<result_type>(input, base_url);
8611
101k
  if (!u.is_valid) {
8612
51.9k
    return tl::unexpected(errors::type_error);
8613
51.9k
  }
8614
49.4k
  return u;
8615
101k
}
tl::expected<ada::url, ada::errors> ada::parse<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url const*)
Line
Count
Source
8609
50.6k
    std::string_view input, const result_type* base_url) {
8610
50.6k
  result_type u = ada::parser::parse_url_impl<result_type>(input, base_url);
8611
50.6k
  if (!u.is_valid) {
8612
25.9k
    return tl::unexpected(errors::type_error);
8613
25.9k
  }
8614
24.7k
  return u;
8615
50.6k
}
tl::expected<ada::url_aggregator, ada::errors> ada::parse<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const*)
Line
Count
Source
8609
50.6k
    std::string_view input, const result_type* base_url) {
8610
50.6k
  result_type u = ada::parser::parse_url_impl<result_type>(input, base_url);
8611
50.6k
  if (!u.is_valid) {
8612
25.9k
    return tl::unexpected(errors::type_error);
8613
25.9k
  }
8614
24.7k
  return u;
8615
50.6k
}
8616
8617
template ada::result<url> parse<url>(std::string_view input,
8618
                                     const url* base_url = nullptr);
8619
template ada::result<url_aggregator> parse<url_aggregator>(
8620
    std::string_view input, const url_aggregator* base_url = nullptr);
8621
8622
0
std::string href_from_file(std::string_view input) {
8623
  // Match ada::parse / setters: refuse inputs that already exceed the limit.
8624
  // Path percent-encoding can still expand the result, so we also check the
8625
  // final href below.
8626
0
  const uint32_t max_length = ada::get_max_input_length();
8627
0
  if (input.size() > max_length) {
8628
0
    return {};
8629
0
  }
8630
8631
  // This is going to be much faster than constructing a URL.
8632
0
  std::string tmp_buffer;
8633
0
  std::string_view internal_input;
8634
0
  if (unicode::has_tabs_or_newline(input)) {
8635
0
    tmp_buffer = input;
8636
0
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
8637
0
    internal_input = tmp_buffer;
8638
0
  } else {
8639
0
    internal_input = input;
8640
0
  }
8641
0
  std::string path;
8642
0
  if (internal_input.empty()) {
8643
0
    path = "/";
8644
0
  } else if ((internal_input[0] == '/') || (internal_input[0] == '\\')) {
8645
0
    helpers::parse_prepared_path(internal_input.substr(1),
8646
0
                                 ada::scheme::type::FILE, path);
8647
0
  } else {
8648
0
    helpers::parse_prepared_path(internal_input, ada::scheme::type::FILE, path);
8649
0
  }
8650
0
  std::string result = "file://" + path;
8651
0
  if (result.size() > max_length) {
8652
0
    return {};
8653
0
  }
8654
0
  return result;
8655
0
}
8656
8657
46.2k
bool can_parse(std::string_view input, const std::string_view* base_input) {
8658
  // Must match parse().has_value(), including post-normalization max length.
8659
  // Percent-encoding expands a byte by at most 3x, but IDNA expands more: a
8660
  // 3-byte UTF-8 label such as U+337F becomes the 17-byte "xn--6oqv20b1zgzxr",
8661
  // so a dotted host sustains 4.5x. When the input (plus base, if any) fits in
8662
  // max_length/5, the normalized href cannot exceed max_length, so
8663
  // validation-only parsing (store_values=false) is safe.
8664
8665
  // Hot path first: absolute special URLs, no base. Avoid loading max_length
8666
  // until we need it (common absolute-fast true/false cases).
8667
46.2k
  if (base_input == nullptr) {
8668
33.6k
    auto r = try_can_parse_clean_http(input);
8669
33.6k
    if (!r.has_value()) {
8670
33.4k
      r = try_can_parse_absolute_fast(input);
8671
33.4k
    }
8672
33.6k
    if (r.has_value()) {
8673
19.6k
      if (!*r) {
8674
14.2k
        return false;
8675
14.2k
      }
8676
      // size <= max/5 => normalized href cannot exceed max (4.5x expansion).
8677
      // Check this first: default max is ~4GB so almost all URLs return true.
8678
5.38k
      const uint32_t max_length = ada::get_max_input_length();
8679
5.38k
      if (input.size() <= static_cast<size_t>(max_length) / 5) {
8680
5.38k
        return true;
8681
5.38k
      }
8682
0
      if (input.size() > max_length) {
8683
0
        return false;
8684
0
      }
8685
0
      return ada::parser::parse_url_impl<ada::url_aggregator, true>(input,
8686
0
                                                                    nullptr)
8687
0
          .is_valid;
8688
0
    }
8689
33.6k
  }
8690
8691
26.5k
  const uint32_t max_length = ada::get_max_input_length();
8692
26.5k
  if (input.size() > max_length) {
8693
0
    return false;
8694
0
  }
8695
26.5k
  if (base_input != nullptr && base_input->size() > max_length) {
8696
0
    return false;
8697
0
  }
8698
8699
  // Relative resolution combines base + input; bound the sum so 4.5x expansion
8700
  // of either side cannot push the final href past max_length.
8701
26.5k
  const size_t combined =
8702
26.5k
      input.size() + (base_input == nullptr ? 0 : base_input->size());
8703
26.5k
  const bool size_safe = combined <= static_cast<size_t>(max_length) / 5;
8704
8705
26.5k
  if (size_safe) {
8706
    // Validation-only: no buffer build, host still fully checked.
8707
26.5k
    ada::url_aggregator base_agg;
8708
26.5k
    ada::url_aggregator* base_ptr = nullptr;
8709
26.5k
    if (base_input != nullptr) {
8710
12.6k
      base_agg = ada::parser::parse_url_impl<ada::url_aggregator, false>(
8711
12.6k
          *base_input, nullptr);
8712
12.6k
      if (!base_agg.is_valid) {
8713
8.17k
        return false;
8714
8.17k
      }
8715
4.45k
      base_ptr = &base_agg;
8716
4.45k
    }
8717
18.4k
    return ada::parser::parse_url_impl<ada::url_aggregator, false>(input,
8718
18.4k
                                                                   base_ptr)
8719
18.4k
        .is_valid;
8720
26.5k
  }
8721
8722
  // Near the limit: full parse so post-normalization length matches parse().
8723
0
  if (base_input == nullptr) {
8724
0
    return ada::parser::parse_url_impl<ada::url_aggregator, true>(input,
8725
0
                                                                  nullptr)
8726
0
        .is_valid;
8727
0
  }
8728
0
  ada::url_aggregator base_agg =
8729
0
      ada::parser::parse_url_impl<ada::url_aggregator, true>(*base_input,
8730
0
                                                             nullptr);
8731
0
  if (!base_agg.is_valid) {
8732
0
    return false;
8733
0
  }
8734
0
  return ada::parser::parse_url_impl<ada::url_aggregator, true>(input,
8735
0
                                                                &base_agg)
8736
0
      .is_valid;
8737
0
}
8738
8739
0
ada_warn_unused std::string_view to_string(ada::encoding_type type) {
8740
0
  switch (type) {
8741
0
    case ada::encoding_type::UTF8:
8742
0
      return "UTF-8";
8743
0
    case ada::encoding_type::UTF_16LE:
8744
0
      return "UTF-16LE";
8745
0
    case ada::encoding_type::UTF_16BE:
8746
0
      return "UTF-16BE";
8747
0
    default:
8748
0
      unreachable();
8749
0
  }
8750
0
}
8751
8752
}  // namespace ada
8753
/* end file src/implementation.cpp */
8754
/* begin file src/helpers.cpp */
8755
#include <array>
8756
#include <cstdint>
8757
#include <cstring>
8758
#include <optional>
8759
#include <sstream>
8760
#include <string>
8761
#include <string_view>
8762
#include <utility>
8763
8764
8765
#if ADA_SSSE3
8766
#include <tmmintrin.h>
8767
#endif
8768
8769
namespace ada::helpers {
8770
8771
template <typename out_iter>
8772
0
void encode_json(std::string_view view, out_iter out) {
8773
  // trivial implementation. could be faster.
8774
0
  const char* hexvalues =
8775
0
      "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f";
8776
0
  for (uint8_t c : view) {
8777
0
    if (c == '\\') {
8778
0
      *out++ = '\\';
8779
0
      *out++ = '\\';
8780
0
    } else if (c == '"') {
8781
0
      *out++ = '\\';
8782
0
      *out++ = '"';
8783
0
    } else if (c <= 0x1f) {
8784
0
      *out++ = '\\';
8785
0
      *out++ = 'u';
8786
0
      *out++ = '0';
8787
0
      *out++ = '0';
8788
0
      *out++ = hexvalues[2 * c];
8789
0
      *out++ = hexvalues[2 * c + 1];
8790
0
    } else {
8791
0
      *out++ = c;
8792
0
    }
8793
0
  }
8794
0
}
8795
8796
0
ada_unused std::string get_state(ada::state s) {
8797
0
  switch (s) {
8798
0
    case ada::state::AUTHORITY:
8799
0
      return "Authority";
8800
0
    case ada::state::SCHEME_START:
8801
0
      return "Scheme Start";
8802
0
    case ada::state::SCHEME:
8803
0
      return "Scheme";
8804
0
    case ada::state::HOST:
8805
0
      return "Host";
8806
0
    case ada::state::NO_SCHEME:
8807
0
      return "No Scheme";
8808
0
    case ada::state::FRAGMENT:
8809
0
      return "Fragment";
8810
0
    case ada::state::RELATIVE_SCHEME:
8811
0
      return "Relative Scheme";
8812
0
    case ada::state::RELATIVE_SLASH:
8813
0
      return "Relative Slash";
8814
0
    case ada::state::FILE:
8815
0
      return "File";
8816
0
    case ada::state::FILE_HOST:
8817
0
      return "File Host";
8818
0
    case ada::state::FILE_SLASH:
8819
0
      return "File Slash";
8820
0
    case ada::state::PATH_OR_AUTHORITY:
8821
0
      return "Path or Authority";
8822
0
    case ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES:
8823
0
      return "Special Authority Ignore Slashes";
8824
0
    case ada::state::SPECIAL_AUTHORITY_SLASHES:
8825
0
      return "Special Authority Slashes";
8826
0
    case ada::state::SPECIAL_RELATIVE_OR_AUTHORITY:
8827
0
      return "Special Relative or Authority";
8828
0
    case ada::state::QUERY:
8829
0
      return "Query";
8830
0
    case ada::state::PATH:
8831
0
      return "Path";
8832
0
    case ada::state::PATH_START:
8833
0
      return "Path Start";
8834
0
    case ada::state::OPAQUE_PATH:
8835
0
      return "Opaque Path";
8836
0
    case ada::state::PORT:
8837
0
      return "Port";
8838
0
    default:
8839
0
      return "unknown state";
8840
0
  }
8841
0
}
8842
8843
ada_really_inline std::optional<std::string_view> prune_hash(
8844
121k
    std::string_view& input) noexcept {
8845
  // compiles down to 20--30 instructions including a class to memchr (C
8846
  // function). this function should be quite fast.
8847
121k
  size_t location_of_first = input.find('#');
8848
121k
  if (location_of_first == std::string_view::npos) {
8849
117k
    return std::nullopt;
8850
117k
  }
8851
3.98k
  std::string_view hash = input;
8852
3.98k
  hash.remove_prefix(location_of_first + 1);
8853
3.98k
  input.remove_suffix(input.size() - location_of_first);
8854
3.98k
  return hash;
8855
121k
}
8856
8857
9.56k
ada_really_inline bool shorten_path(std::string& path, ada::scheme::type type) {
8858
  // Let path be url's path.
8859
  // If url's scheme is "file", path's size is 1, and path[0] is a normalized
8860
  // Windows drive letter, then return.
8861
9.56k
  if (type == ada::scheme::type::FILE &&
8862
2.96k
      path.find('/', 1) == std::string_view::npos && !path.empty()) {
8863
1.48k
    if (checkers::is_normalized_windows_drive_letter(
8864
1.48k
            helpers::substring(path, 1))) {
8865
739
      return false;
8866
739
    }
8867
1.48k
  }
8868
8869
  // Remove path's last item, if any.
8870
8.82k
  size_t last_delimiter = path.rfind('/');
8871
8.82k
  if (last_delimiter != std::string::npos) {
8872
4.60k
    path.erase(last_delimiter);
8873
4.60k
    return true;
8874
4.60k
  }
8875
8876
4.21k
  return false;
8877
8.82k
}
8878
8879
ada_really_inline bool shorten_path(std::string_view& path,
8880
1.47k
                                    ada::scheme::type type) {
8881
  // Let path be url's path.
8882
  // If url's scheme is "file", path's size is 1, and path[0] is a normalized
8883
  // Windows drive letter, then return.
8884
1.47k
  if (type == ada::scheme::type::FILE &&
8885
214
      path.find('/', 1) == std::string_view::npos && !path.empty()) {
8886
81
    if (checkers::is_normalized_windows_drive_letter(
8887
81
            helpers::substring(path, 1))) {
8888
3
      return false;
8889
3
    }
8890
81
  }
8891
8892
  // Remove path's last item, if any.
8893
1.47k
  if (!path.empty()) {
8894
646
    size_t slash_loc = path.rfind('/');
8895
646
    if (slash_loc != std::string_view::npos) {
8896
646
      path.remove_suffix(path.size() - slash_loc);
8897
646
      return true;
8898
646
    }
8899
646
  }
8900
8901
824
  return false;
8902
1.47k
}
8903
8904
1.36k
ada_really_inline void remove_ascii_tab_or_newline(std::string& input) {
8905
  // Fast path: inputs with no tab/newline (the common case) avoid the
8906
  // per-character erase_if scan. has_tabs_or_newline uses SIMD for inputs
8907
  // >= 16 bytes, making this check much cheaper than erase_if's scalar
8908
  // predicate walk when there is nothing to remove.
8909
1.36k
  if (!ada::unicode::has_tabs_or_newline(input)) {
8910
0
    return;
8911
0
  }
8912
1.36k
  std::erase_if(input, ada::unicode::is_ascii_tab_or_newline);
8913
1.36k
}
8914
8915
ada_really_inline constexpr std::string_view substring(std::string_view input,
8916
1.56k
                                                       size_t pos) {
8917
1.56k
  ADA_ASSERT_TRUE(pos <= input.size());
8918
  // The following is safer but unneeded if we have the above line:
8919
  // return pos > input.size() ? std::string_view() : input.substr(pos);
8920
1.56k
  return input.substr(pos);
8921
1.56k
}
8922
8923
24
ada_really_inline void resize(std::string_view& input, size_t pos) noexcept {
8924
24
  ADA_ASSERT_TRUE(pos <= input.size());
8925
24
  input.remove_suffix(input.size() - pos);
8926
24
}
8927
8928
// computes the number of trailing zeroes
8929
// this is a private inline function only defined in this source file.
8930
10.9k
ada_really_inline int trailing_zeroes(uint32_t input_num) noexcept {
8931
#ifdef ADA_REGULAR_VISUAL_STUDIO
8932
  unsigned long ret;
8933
  // Search the mask data from least significant bit (LSB)
8934
  // to the most significant bit (MSB) for a set bit (1).
8935
  _BitScanForward(&ret, input_num);
8936
  return (int)ret;
8937
#else   // ADA_REGULAR_VISUAL_STUDIO
8938
10.9k
  return __builtin_ctzl(input_num);
8939
10.9k
#endif  // ADA_REGULAR_VISUAL_STUDIO
8940
10.9k
}
8941
8942
#if ADA_NEON
8943
// computes the number of trailing zeroes of a 64-bit word
8944
// this is a private inline function only defined in this source file.
8945
ada_really_inline int trailing_zeroes64(uint64_t input_num) noexcept {
8946
#ifdef ADA_REGULAR_VISUAL_STUDIO
8947
  unsigned long ret;
8948
  _BitScanForward64(&ret, input_num);
8949
  return (int)ret;
8950
#else   // ADA_REGULAR_VISUAL_STUDIO
8951
  return __builtin_ctzll(input_num);
8952
#endif  // ADA_REGULAR_VISUAL_STUDIO
8953
}
8954
8955
// Given a NEON register whose lanes are all either 0x00 or 0xFF (i.e., the
8956
// result of a comparison), produce a 64-bit value with four bits set per
8957
// matching input byte, and zero bits elsewhere. Narrowing by four bits per
8958
// 16-bit lane is cheaper than materializing a 16-bit bitmask.
8959
//
8960
// With ADA_NEON_SAFE_ZERO_CHECK set to 0, the "any match?" test instead
8961
// treats the nibble mask as an IEEE 754 double and compares it against zero,
8962
// avoiding a transfer to a general-purpose register on the common no-match
8963
// path. Negative zero cannot occur (each byte is 0x00, 0x0F, 0xF0 or 0xFF),
8964
// but a mask with only low bits set is a denormal: if flush-to-zero is
8965
// enabled, those compare equal to 0.0. Do not use this on arbitrary vectors.
8966
ada_really_inline uint8x8_t to_nibble_mask(uint8x16_t comparison) noexcept {
8967
  return vshrn_n_u16(vreinterpretq_u16_u8(comparison), 4);
8968
}
8969
8970
ada_really_inline bool any_set(uint8x8_t nibble_mask) noexcept {
8971
#if ADA_NEON_SAFE_ZERO_CHECK
8972
  return vget_lane_u64(vreinterpret_u64_u8(nibble_mask), 0) != 0;
8973
#else
8974
  return vdupd_lane_f64(vreinterpret_f64_u8(nibble_mask), 0) != 0.0;
8975
#endif
8976
}
8977
8978
// index of the first matching byte; only meaningful when any_set is true.
8979
ada_really_inline size_t first_set(uint8x8_t nibble_mask) noexcept {
8980
  return size_t(trailing_zeroes64(
8981
             vget_lane_u64(vreinterpret_u64_u8(nibble_mask), 0))) >>
8982
         2;
8983
}
8984
#endif  // ADA_NEON
8985
8986
// starting at index location, this finds the next location of a character
8987
// :, /, \\, ? or [. If none is found, view.size() is returned.
8988
// For use within get_host_delimiter_location.
8989
#if ADA_SSSE3
8990
ada_really_inline size_t find_next_host_delimiter_special(
8991
    std::string_view view, size_t location) noexcept {
8992
  // first check for short strings in which case we do it naively.
8993
  if (view.size() - location < 16) {  // slow path
8994
    for (size_t i = location; i < view.size(); i++) {
8995
      if (view[i] == ':' || view[i] == '/' || view[i] == '\\' ||
8996
          view[i] == '?' || view[i] == '[') {
8997
        return i;
8998
      }
8999
    }
9000
    return size_t(view.size());
9001
  }
9002
  // fast path for long strings (expected to be common)
9003
  // Using SSSE3's _mm_shuffle_epi8 for table lookup (same approach as NEON)
9004
  size_t i = location;
9005
  const __m128i low_mask =
9006
      _mm_setr_epi8(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
9007
                    0x01, 0x04, 0x04, 0x00, 0x00, 0x03);
9008
  const __m128i high_mask =
9009
      _mm_setr_epi8(0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00,
9010
                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
9011
  const __m128i fmask = _mm_set1_epi8(0xf);
9012
  const __m128i zero = _mm_setzero_si128();
9013
  for (; i + 15 < view.size(); i += 16) {
9014
    __m128i word = _mm_loadu_si128((const __m128i*)(view.data() + i));
9015
    __m128i lowpart = _mm_shuffle_epi8(low_mask, _mm_and_si128(word, fmask));
9016
    __m128i highpart = _mm_shuffle_epi8(
9017
        high_mask, _mm_and_si128(_mm_srli_epi16(word, 4), fmask));
9018
    __m128i classify = _mm_and_si128(lowpart, highpart);
9019
    __m128i is_zero = _mm_cmpeq_epi8(classify, zero);
9020
    // _mm_movemask_epi8 returns a 16-bit mask in bits 0-15, with bits 16-31
9021
    // zero. After NOT (~), bits 16-31 become 1. We must mask to 16 bits to
9022
    // avoid false positives.
9023
    int mask = ~_mm_movemask_epi8(is_zero) & 0xFFFF;
9024
    if (mask != 0) {
9025
      return i + trailing_zeroes(static_cast<uint32_t>(mask));
9026
    }
9027
  }
9028
  if (i < view.size()) {
9029
    __m128i word =
9030
        _mm_loadu_si128((const __m128i*)(view.data() + view.length() - 16));
9031
    __m128i lowpart = _mm_shuffle_epi8(low_mask, _mm_and_si128(word, fmask));
9032
    __m128i highpart = _mm_shuffle_epi8(
9033
        high_mask, _mm_and_si128(_mm_srli_epi16(word, 4), fmask));
9034
    __m128i classify = _mm_and_si128(lowpart, highpart);
9035
    __m128i is_zero = _mm_cmpeq_epi8(classify, zero);
9036
    // _mm_movemask_epi8 returns a 16-bit mask in bits 0-15, with bits 16-31
9037
    // zero. After NOT (~), bits 16-31 become 1. We must mask to 16 bits to
9038
    // avoid false positives.
9039
    int mask = ~_mm_movemask_epi8(is_zero) & 0xFFFF;
9040
    if (mask != 0) {
9041
      return view.length() - 16 + trailing_zeroes(static_cast<uint32_t>(mask));
9042
    }
9043
  }
9044
  return size_t(view.size());
9045
}
9046
#elif ADA_NEON
9047
// The ada_make_uint8x16_t macro is necessary because Visual Studio does not
9048
// support direct initialization of uint8x16_t. See
9049
// https://developercommunity.visualstudio.com/t/error-C2078:-too-many-initializers-whe/402911?q=backend+neon
9050
#ifndef ada_make_uint8x16_t
9051
#define ada_make_uint8x16_t(x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, \
9052
                            x13, x14, x15, x16)                                \
9053
  ([=]() {                                                                     \
9054
    static uint8_t array[16] = {x1, x2,  x3,  x4,  x5,  x6,  x7,  x8,          \
9055
                                x9, x10, x11, x12, x13, x14, x15, x16};        \
9056
    return vld1q_u8(array);                                                    \
9057
  }())
9058
#endif
9059
9060
ada_really_inline size_t find_next_host_delimiter_special(
9061
    std::string_view view, size_t location) noexcept {
9062
  // first check for short strings in which case we do it naively.
9063
  if (view.size() - location < 16) {  // slow path
9064
    for (size_t i = location; i < view.size(); i++) {
9065
      if (view[i] == ':' || view[i] == '/' || view[i] == '\\' ||
9066
          view[i] == '?' || view[i] == '[') {
9067
        return i;
9068
      }
9069
    }
9070
    return size_t(view.size());
9071
  }
9072
  // fast path for long strings (expected to be common)
9073
  size_t i = location;
9074
  uint8x16_t low_mask =
9075
      ada_make_uint8x16_t(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
9076
                          0x00, 0x01, 0x04, 0x04, 0x00, 0x00, 0x03);
9077
  uint8x16_t high_mask =
9078
      ada_make_uint8x16_t(0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
9079
                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
9080
  uint8x16_t fmask = vmovq_n_u8(0xf);
9081
  for (; i + 15 < view.size(); i += 16) {
9082
    uint8x16_t word = vld1q_u8((const uint8_t*)view.data() + i);
9083
    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
9084
    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
9085
    // vtstq_u8 gives us 0xFF where (lowpart & highpart) is non-zero and 0x00
9086
    // elsewhere: unlike the plain AND, that is a proper comparison mask, which
9087
    // is what to_nibble_mask requires.
9088
    uint8x8_t matches = to_nibble_mask(vtstq_u8(lowpart, highpart));
9089
    if (any_set(matches)) {
9090
      return i + first_set(matches);
9091
    }
9092
  }
9093
9094
  if (i < view.size()) {
9095
    uint8x16_t word =
9096
        vld1q_u8((const uint8_t*)view.data() + view.length() - 16);
9097
    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
9098
    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
9099
    uint8x8_t matches = to_nibble_mask(vtstq_u8(lowpart, highpart));
9100
    if (any_set(matches)) {
9101
      return view.length() - 16 + first_set(matches);
9102
    }
9103
  }
9104
  return size_t(view.size());
9105
}
9106
#elif ADA_SSE2
9107
ada_really_inline size_t find_next_host_delimiter_special(
9108
41.9k
    std::string_view view, size_t location) noexcept {
9109
  // first check for short strings in which case we do it naively.
9110
41.9k
  if (view.size() - location < 16) {  // slow path
9111
150k
    for (size_t i = location; i < view.size(); i++) {
9112
136k
      if (view[i] == ':' || view[i] == '/' || view[i] == '\\' ||
9113
125k
          view[i] == '?' || view[i] == '[') {
9114
13.7k
        return i;
9115
13.7k
      }
9116
136k
    }
9117
14.4k
    return size_t(view.size());
9118
28.2k
  }
9119
  // fast path for long strings (expected to be common)
9120
13.7k
  size_t i = location;
9121
13.7k
  const __m128i mask1 = _mm_set1_epi8(':');
9122
13.7k
  const __m128i mask2 = _mm_set1_epi8('/');
9123
13.7k
  const __m128i mask3 = _mm_set1_epi8('\\');
9124
13.7k
  const __m128i mask4 = _mm_set1_epi8('?');
9125
13.7k
  const __m128i mask5 = _mm_set1_epi8('[');
9126
9127
50.7k
  for (; i + 15 < view.size(); i += 16) {
9128
43.2k
    __m128i word = _mm_loadu_si128((const __m128i*)(view.data() + i));
9129
43.2k
    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
9130
43.2k
    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
9131
43.2k
    __m128i m3 = _mm_cmpeq_epi8(word, mask3);
9132
43.2k
    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
9133
43.2k
    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
9134
43.2k
    __m128i m = _mm_or_si128(
9135
43.2k
        _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m3, m4)), m5);
9136
43.2k
    int mask = _mm_movemask_epi8(m);
9137
43.2k
    if (mask != 0) {
9138
6.30k
      return i + trailing_zeroes(mask);
9139
6.30k
    }
9140
43.2k
  }
9141
7.46k
  if (i < view.size()) {
9142
6.82k
    __m128i word =
9143
6.82k
        _mm_loadu_si128((const __m128i*)(view.data() + view.length() - 16));
9144
6.82k
    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
9145
6.82k
    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
9146
6.82k
    __m128i m3 = _mm_cmpeq_epi8(word, mask3);
9147
6.82k
    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
9148
6.82k
    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
9149
6.82k
    __m128i m = _mm_or_si128(
9150
6.82k
        _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m3, m4)), m5);
9151
6.82k
    int mask = _mm_movemask_epi8(m);
9152
6.82k
    if (mask != 0) {
9153
3.01k
      return view.length() - 16 + trailing_zeroes(mask);
9154
3.01k
    }
9155
6.82k
  }
9156
4.45k
  return size_t(view.length());
9157
7.46k
}
9158
#elif ADA_LSX
9159
ada_really_inline size_t find_next_host_delimiter_special(
9160
    std::string_view view, size_t location) noexcept {
9161
  // first check for short strings in which case we do it naively.
9162
  if (view.size() - location < 16) {  // slow path
9163
    for (size_t i = location; i < view.size(); i++) {
9164
      if (view[i] == ':' || view[i] == '/' || view[i] == '\\' ||
9165
          view[i] == '?' || view[i] == '[') {
9166
        return i;
9167
      }
9168
    }
9169
    return size_t(view.size());
9170
  }
9171
  // fast path for long strings (expected to be common)
9172
  size_t i = location;
9173
  const __m128i mask1 = __lsx_vrepli_b(':');
9174
  const __m128i mask2 = __lsx_vrepli_b('/');
9175
  const __m128i mask3 = __lsx_vrepli_b('\\');
9176
  const __m128i mask4 = __lsx_vrepli_b('?');
9177
  const __m128i mask5 = __lsx_vrepli_b('[');
9178
9179
  for (; i + 15 < view.size(); i += 16) {
9180
    __m128i word = __lsx_vld((const __m128i*)(view.data() + i), 0);
9181
    __m128i m1 = __lsx_vseq_b(word, mask1);
9182
    __m128i m2 = __lsx_vseq_b(word, mask2);
9183
    __m128i m3 = __lsx_vseq_b(word, mask3);
9184
    __m128i m4 = __lsx_vseq_b(word, mask4);
9185
    __m128i m5 = __lsx_vseq_b(word, mask5);
9186
    __m128i m =
9187
        __lsx_vor_v(__lsx_vor_v(__lsx_vor_v(m1, m2), __lsx_vor_v(m3, m4)), m5);
9188
    int mask = __lsx_vpickve2gr_hu(__lsx_vmsknz_b(m), 0);
9189
    if (mask != 0) {
9190
      return i + trailing_zeroes(mask);
9191
    }
9192
  }
9193
  if (i < view.size()) {
9194
    __m128i word =
9195
        __lsx_vld((const __m128i*)(view.data() + view.length() - 16), 0);
9196
    __m128i m1 = __lsx_vseq_b(word, mask1);
9197
    __m128i m2 = __lsx_vseq_b(word, mask2);
9198
    __m128i m3 = __lsx_vseq_b(word, mask3);
9199
    __m128i m4 = __lsx_vseq_b(word, mask4);
9200
    __m128i m5 = __lsx_vseq_b(word, mask5);
9201
    __m128i m =
9202
        __lsx_vor_v(__lsx_vor_v(__lsx_vor_v(m1, m2), __lsx_vor_v(m3, m4)), m5);
9203
    int mask = __lsx_vpickve2gr_hu(__lsx_vmsknz_b(m), 0);
9204
    if (mask != 0) {
9205
      return view.length() - 16 + trailing_zeroes(mask);
9206
    }
9207
  }
9208
  return size_t(view.length());
9209
}
9210
#elif ADA_RVV
9211
ada_really_inline size_t find_next_host_delimiter_special(
9212
    std::string_view view, size_t location) noexcept {
9213
  // The LUT approach was a bit slower on the SpacemiT X60, but I could see it
9214
  // being faster on future hardware.
9215
#if 0
9216
  // LUT generated using: s=":/\\?["; list(zip([((ord(c)>>2)&0xF)for c in s],s))
9217
  static const uint8_t tbl[16] = {
9218
    0xF, 0, 0, 0, 0, 0, '[', '\\', 0, 0, 0, '/', 0, 0, ':', '?'
9219
  };
9220
  vuint8m1_t vtbl = __riscv_vle8_v_u8m1(tbl, 16);
9221
#endif
9222
  uint8_t* src = (uint8_t*)view.data() + location;
9223
  for (size_t vl, n = view.size() - location; n > 0;
9224
       n -= vl, src += vl, location += vl) {
9225
    vl = __riscv_vsetvl_e8m1(n);
9226
    vuint8m1_t v = __riscv_vle8_v_u8m1(src, vl);
9227
#if 0
9228
    vuint8m1_t vidx = __riscv_vand(__riscv_vsrl(v, 2, vl), 0xF, vl);
9229
    vuint8m1_t vlut = __riscv_vrgather(vtbl, vidx, vl);
9230
    vbool8_t m = __riscv_vmseq(v, vlut, vl);
9231
#else
9232
    vbool8_t m1 = __riscv_vmseq(v, ':', vl);
9233
    vbool8_t m2 = __riscv_vmseq(v, '/', vl);
9234
    vbool8_t m3 = __riscv_vmseq(v, '?', vl);
9235
    vbool8_t m4 = __riscv_vmseq(v, '[', vl);
9236
    vbool8_t m5 = __riscv_vmseq(v, '\\', vl);
9237
    vbool8_t m = __riscv_vmor(
9238
        __riscv_vmor(__riscv_vmor(m1, m2, vl), __riscv_vmor(m3, m4, vl), vl),
9239
        m5, vl);
9240
#endif
9241
    long idx = __riscv_vfirst(m, vl);
9242
    if (idx >= 0) return location + idx;
9243
  }
9244
  return size_t(view.size());
9245
}
9246
#else
9247
// : / [ \\ ?
9248
static constexpr std::array<uint8_t, 256> special_host_delimiters =
9249
    []() consteval {
9250
      std::array<uint8_t, 256> result{};
9251
      for (int i : {':', '/', '[', '\\', '?'}) {
9252
        result[i] = 1;
9253
      }
9254
      return result;
9255
    }();
9256
// credit: @the-moisrex recommended a table-based approach
9257
ada_really_inline size_t find_next_host_delimiter_special(
9258
    std::string_view view, size_t location) noexcept {
9259
  auto const str = view.substr(location);
9260
  for (auto pos = str.begin(); pos != str.end(); ++pos) {
9261
    if (special_host_delimiters[(uint8_t)*pos]) {
9262
      return pos - str.begin() + location;
9263
    }
9264
  }
9265
  return size_t(view.size());
9266
}
9267
#endif
9268
9269
// starting at index location, this finds the next location of a character
9270
// :, /, ? or [. If none is found, view.size() is returned.
9271
// For use within get_host_delimiter_location.
9272
#if ADA_SSSE3
9273
ada_really_inline size_t find_next_host_delimiter(std::string_view view,
9274
                                                  size_t location) noexcept {
9275
  // first check for short strings in which case we do it naively.
9276
  if (view.size() - location < 16) {  // slow path
9277
    for (size_t i = location; i < view.size(); i++) {
9278
      if (view[i] == ':' || view[i] == '/' || view[i] == '?' ||
9279
          view[i] == '[') {
9280
        return i;
9281
      }
9282
    }
9283
    return size_t(view.size());
9284
  }
9285
  // fast path for long strings (expected to be common)
9286
  size_t i = location;
9287
  // Lookup tables for bit classification:
9288
  // ':' (0x3A): low[0xA]=0x01, high[0x3]=0x01 -> match
9289
  // '/' (0x2F): low[0xF]=0x02, high[0x2]=0x02 -> match
9290
  // '?' (0x3F): low[0xF]=0x01, high[0x3]=0x01 -> match
9291
  // '[' (0x5B): low[0xB]=0x04, high[0x5]=0x04 -> match
9292
  const __m128i low_mask =
9293
      _mm_setr_epi8(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
9294
                    0x01, 0x04, 0x00, 0x00, 0x00, 0x03);
9295
  const __m128i high_mask =
9296
      _mm_setr_epi8(0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00,
9297
                    0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
9298
  const __m128i fmask = _mm_set1_epi8(0xf);
9299
  const __m128i zero = _mm_setzero_si128();
9300
9301
  for (; i + 15 < view.size(); i += 16) {
9302
    __m128i word = _mm_loadu_si128((const __m128i*)(view.data() + i));
9303
    __m128i lowpart = _mm_shuffle_epi8(low_mask, _mm_and_si128(word, fmask));
9304
    __m128i highpart = _mm_shuffle_epi8(
9305
        high_mask, _mm_and_si128(_mm_srli_epi16(word, 4), fmask));
9306
    __m128i classify = _mm_and_si128(lowpart, highpart);
9307
    __m128i is_zero = _mm_cmpeq_epi8(classify, zero);
9308
    // _mm_movemask_epi8 returns a 16-bit mask in bits 0-15, with bits 16-31
9309
    // zero. After NOT (~), bits 16-31 become 1. We must mask to 16 bits to
9310
    // avoid false positives.
9311
    int mask = ~_mm_movemask_epi8(is_zero) & 0xFFFF;
9312
    if (mask != 0) {
9313
      return i + trailing_zeroes(static_cast<uint32_t>(mask));
9314
    }
9315
  }
9316
9317
  if (i < view.size()) {
9318
    __m128i word =
9319
        _mm_loadu_si128((const __m128i*)(view.data() + view.length() - 16));
9320
    __m128i lowpart = _mm_shuffle_epi8(low_mask, _mm_and_si128(word, fmask));
9321
    __m128i highpart = _mm_shuffle_epi8(
9322
        high_mask, _mm_and_si128(_mm_srli_epi16(word, 4), fmask));
9323
    __m128i classify = _mm_and_si128(lowpart, highpart);
9324
    __m128i is_zero = _mm_cmpeq_epi8(classify, zero);
9325
    // _mm_movemask_epi8 returns a 16-bit mask in bits 0-15, with bits 16-31
9326
    // zero. After NOT (~), bits 16-31 become 1. We must mask to 16 bits to
9327
    // avoid false positives.
9328
    int mask = ~_mm_movemask_epi8(is_zero) & 0xFFFF;
9329
    if (mask != 0) {
9330
      return view.length() - 16 + trailing_zeroes(static_cast<uint32_t>(mask));
9331
    }
9332
  }
9333
  return size_t(view.size());
9334
}
9335
#elif ADA_NEON
9336
ada_really_inline size_t find_next_host_delimiter(std::string_view view,
9337
                                                  size_t location) noexcept {
9338
  // first check for short strings in which case we do it naively.
9339
  if (view.size() - location < 16) {  // slow path
9340
    for (size_t i = location; i < view.size(); i++) {
9341
      if (view[i] == ':' || view[i] == '/' || view[i] == '?' ||
9342
          view[i] == '[') {
9343
        return i;
9344
      }
9345
    }
9346
    return size_t(view.size());
9347
  }
9348
  // fast path for long strings (expected to be common)
9349
  size_t i = location;
9350
  uint8x16_t low_mask =
9351
      ada_make_uint8x16_t(0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
9352
                          0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x03);
9353
  uint8x16_t high_mask =
9354
      ada_make_uint8x16_t(0x00, 0x00, 0x02, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00,
9355
                          0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
9356
  uint8x16_t fmask = vmovq_n_u8(0xf);
9357
  for (; i + 15 < view.size(); i += 16) {
9358
    uint8x16_t word = vld1q_u8((const uint8_t*)view.data() + i);
9359
    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
9360
    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
9361
    // vtstq_u8 gives us 0xFF where (lowpart & highpart) is non-zero and 0x00
9362
    // elsewhere: unlike the plain AND, that is a proper comparison mask, which
9363
    // is what to_nibble_mask requires.
9364
    uint8x8_t matches = to_nibble_mask(vtstq_u8(lowpart, highpart));
9365
    if (any_set(matches)) {
9366
      return i + first_set(matches);
9367
    }
9368
  }
9369
9370
  if (i < view.size()) {
9371
    uint8x16_t word =
9372
        vld1q_u8((const uint8_t*)view.data() + view.length() - 16);
9373
    uint8x16_t lowpart = vqtbl1q_u8(low_mask, vandq_u8(word, fmask));
9374
    uint8x16_t highpart = vqtbl1q_u8(high_mask, vshrq_n_u8(word, 4));
9375
    uint8x8_t matches = to_nibble_mask(vtstq_u8(lowpart, highpart));
9376
    if (any_set(matches)) {
9377
      return view.length() - 16 + first_set(matches);
9378
    }
9379
  }
9380
  return size_t(view.size());
9381
}
9382
#elif ADA_SSE2
9383
ada_really_inline size_t find_next_host_delimiter(std::string_view view,
9384
4.38k
                                                  size_t location) noexcept {
9385
  // first check for short strings in which case we do it naively.
9386
4.38k
  if (view.size() - location < 16) {  // slow path
9387
5.98k
    for (size_t i = location; i < view.size(); i++) {
9388
4.81k
      if (view[i] == ':' || view[i] == '/' || view[i] == '?' ||
9389
4.34k
          view[i] == '[') {
9390
957
        return i;
9391
957
      }
9392
4.81k
    }
9393
1.17k
    return size_t(view.size());
9394
2.12k
  }
9395
  // fast path for long strings (expected to be common)
9396
2.25k
  size_t i = location;
9397
2.25k
  const __m128i mask1 = _mm_set1_epi8(':');
9398
2.25k
  const __m128i mask2 = _mm_set1_epi8('/');
9399
2.25k
  const __m128i mask4 = _mm_set1_epi8('?');
9400
2.25k
  const __m128i mask5 = _mm_set1_epi8('[');
9401
9402
6.43k
  for (; i + 15 < view.size(); i += 16) {
9403
5.64k
    __m128i word = _mm_loadu_si128((const __m128i*)(view.data() + i));
9404
5.64k
    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
9405
5.64k
    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
9406
5.64k
    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
9407
5.64k
    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
9408
5.64k
    __m128i m = _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m4, m5));
9409
5.64k
    int mask = _mm_movemask_epi8(m);
9410
5.64k
    if (mask != 0) {
9411
1.46k
      return i + trailing_zeroes(mask);
9412
1.46k
    }
9413
5.64k
  }
9414
789
  if (i < view.size()) {
9415
495
    __m128i word =
9416
495
        _mm_loadu_si128((const __m128i*)(view.data() + view.length() - 16));
9417
495
    __m128i m1 = _mm_cmpeq_epi8(word, mask1);
9418
495
    __m128i m2 = _mm_cmpeq_epi8(word, mask2);
9419
495
    __m128i m4 = _mm_cmpeq_epi8(word, mask4);
9420
495
    __m128i m5 = _mm_cmpeq_epi8(word, mask5);
9421
495
    __m128i m = _mm_or_si128(_mm_or_si128(m1, m2), _mm_or_si128(m4, m5));
9422
495
    int mask = _mm_movemask_epi8(m);
9423
495
    if (mask != 0) {
9424
117
      return view.length() - 16 + trailing_zeroes(mask);
9425
117
    }
9426
495
  }
9427
672
  return size_t(view.length());
9428
789
}
9429
#elif ADA_LSX
9430
ada_really_inline size_t find_next_host_delimiter(std::string_view view,
9431
                                                  size_t location) noexcept {
9432
  // first check for short strings in which case we do it naively.
9433
  if (view.size() - location < 16) {  // slow path
9434
    for (size_t i = location; i < view.size(); i++) {
9435
      if (view[i] == ':' || view[i] == '/' || view[i] == '?' ||
9436
          view[i] == '[') {
9437
        return i;
9438
      }
9439
    }
9440
    return size_t(view.size());
9441
  }
9442
  // fast path for long strings (expected to be common)
9443
  size_t i = location;
9444
  const __m128i mask1 = __lsx_vrepli_b(':');
9445
  const __m128i mask2 = __lsx_vrepli_b('/');
9446
  const __m128i mask4 = __lsx_vrepli_b('?');
9447
  const __m128i mask5 = __lsx_vrepli_b('[');
9448
9449
  for (; i + 15 < view.size(); i += 16) {
9450
    __m128i word = __lsx_vld((const __m128i*)(view.data() + i), 0);
9451
    __m128i m1 = __lsx_vseq_b(word, mask1);
9452
    __m128i m2 = __lsx_vseq_b(word, mask2);
9453
    __m128i m4 = __lsx_vseq_b(word, mask4);
9454
    __m128i m5 = __lsx_vseq_b(word, mask5);
9455
    __m128i m = __lsx_vor_v(__lsx_vor_v(m1, m2), __lsx_vor_v(m4, m5));
9456
    int mask = __lsx_vpickve2gr_hu(__lsx_vmsknz_b(m), 0);
9457
    if (mask != 0) {
9458
      return i + trailing_zeroes(mask);
9459
    }
9460
  }
9461
  if (i < view.size()) {
9462
    __m128i word =
9463
        __lsx_vld((const __m128i*)(view.data() + view.length() - 16), 0);
9464
    __m128i m1 = __lsx_vseq_b(word, mask1);
9465
    __m128i m2 = __lsx_vseq_b(word, mask2);
9466
    __m128i m4 = __lsx_vseq_b(word, mask4);
9467
    __m128i m5 = __lsx_vseq_b(word, mask5);
9468
    __m128i m = __lsx_vor_v(__lsx_vor_v(m1, m2), __lsx_vor_v(m4, m5));
9469
    int mask = __lsx_vpickve2gr_hu(__lsx_vmsknz_b(m), 0);
9470
    if (mask != 0) {
9471
      return view.length() - 16 + trailing_zeroes(mask);
9472
    }
9473
  }
9474
  return size_t(view.length());
9475
}
9476
#elif ADA_RVV
9477
ada_really_inline size_t find_next_host_delimiter(std::string_view view,
9478
                                                  size_t location) noexcept {
9479
  uint8_t* src = (uint8_t*)view.data() + location;
9480
  for (size_t vl, n = view.size() - location; n > 0;
9481
       n -= vl, src += vl, location += vl) {
9482
    vl = __riscv_vsetvl_e8m1(n);
9483
    vuint8m1_t v = __riscv_vle8_v_u8m1(src, vl);
9484
    vbool8_t m1 = __riscv_vmseq(v, ':', vl);
9485
    vbool8_t m2 = __riscv_vmseq(v, '/', vl);
9486
    vbool8_t m3 = __riscv_vmseq(v, '?', vl);
9487
    vbool8_t m4 = __riscv_vmseq(v, '[', vl);
9488
    vbool8_t m =
9489
        __riscv_vmor(__riscv_vmor(m1, m2, vl), __riscv_vmor(m3, m4, vl), vl);
9490
    long idx = __riscv_vfirst(m, vl);
9491
    if (idx >= 0) return location + idx;
9492
  }
9493
  return size_t(view.size());
9494
}
9495
#else
9496
// : / [ ?
9497
static constexpr std::array<uint8_t, 256> host_delimiters = []() consteval {
9498
  std::array<uint8_t, 256> result{};
9499
  for (int i : {':', '/', '?', '['}) {
9500
    result[i] = 1;
9501
  }
9502
  return result;
9503
}();
9504
// credit: @the-moisrex recommended a table-based approach
9505
ada_really_inline size_t find_next_host_delimiter(std::string_view view,
9506
                                                  size_t location) noexcept {
9507
  auto const str = view.substr(location);
9508
  for (auto pos = str.begin(); pos != str.end(); ++pos) {
9509
    if (host_delimiters[(uint8_t)*pos]) {
9510
      return pos - str.begin() + location;
9511
    }
9512
  }
9513
  return size_t(view.size());
9514
}
9515
#endif
9516
9517
ada_really_inline std::pair<size_t, bool> get_host_delimiter_location(
9518
41.1k
    const bool is_special, std::string_view& view) noexcept {
9519
  /**
9520
   * The spec at https://url.spec.whatwg.org/#hostname-state expects us to
9521
   * compute a variable called insideBrackets but this variable is only used
9522
   * once, to check whether a ':' character was found outside brackets. Exact
9523
   * text: "Otherwise, if c is U+003A (:) and insideBrackets is false, then:".
9524
   * It is conceptually simpler and arguably more efficient to just return a
9525
   * Boolean indicating whether ':' was found outside brackets.
9526
   */
9527
41.1k
  const size_t view_size = view.size();
9528
41.1k
  size_t location = 0;
9529
41.1k
  bool found_colon = false;
9530
  /**
9531
   * Performance analysis:
9532
   *
9533
   * We are basically seeking the end of the hostname which can be indicated
9534
   * by the end of the view, or by one of the characters ':', '/', '?', '\\'
9535
   * (where '\\' is only applicable for special URLs). However, these must
9536
   * appear outside a bracket range. E.g., if you have [something?]fd: then the
9537
   * '?' does not count.
9538
   *
9539
   * So we can skip ahead to the next delimiter, as long as we include '[' in
9540
   * the set of delimiters, and that we handle it first.
9541
   *
9542
   * So the trick is to have a fast function that locates the next delimiter.
9543
   * Unless we find '[', then it only needs to be called once! Ideally, such a
9544
   * function would be provided by the C++ standard library, but it seems that
9545
   * find_first_of is not very fast, so we are forced to roll our own.
9546
   *
9547
   * We do not break into two loops for speed, but for clarity.
9548
   */
9549
41.1k
  if (is_special) {
9550
    // We move to the next delimiter.
9551
38.4k
    location = find_next_host_delimiter_special(view, location);
9552
    // Unless we find '[' then we are going only going to have to call
9553
    // find_next_host_delimiter_special once.
9554
41.9k
    for (; location < view_size;
9555
38.4k
         location = find_next_host_delimiter_special(view, location)) {
9556
23.0k
      if (view[location] == '[') {
9557
3.69k
        location = view.find(']', location);
9558
3.69k
        if (location == std::string_view::npos) {
9559
          // performance: view.find might get translated to a memchr, which
9560
          // has no notion of std::string_view::npos, so the code does not
9561
          // reflect the assembly.
9562
192
          location = view_size;
9563
192
          break;
9564
192
        }
9565
19.3k
      } else {
9566
19.3k
        found_colon = view[location] == ':';
9567
19.3k
        break;
9568
19.3k
      }
9569
23.0k
    }
9570
38.4k
  } else {
9571
    // We move to the next delimiter.
9572
2.67k
    location = find_next_host_delimiter(view, location);
9573
    // Unless we find '[' then we are going only going to have to call
9574
    // find_next_host_delimiter_special once.
9575
4.38k
    for (; location < view_size;
9576
2.67k
         location = find_next_host_delimiter(view, location)) {
9577
2.54k
      if (view[location] == '[') {
9578
1.76k
        location = view.find(']', location);
9579
1.76k
        if (location == std::string_view::npos) {
9580
          // performance: view.find might get translated to a memchr, which
9581
          // has no notion of std::string_view::npos, so the code does not
9582
          // reflect the assembly.
9583
54
          location = view_size;
9584
54
          break;
9585
54
        }
9586
1.76k
      } else {
9587
777
        found_colon = view[location] == ':';
9588
777
        break;
9589
777
      }
9590
2.54k
    }
9591
2.67k
  }
9592
  // performance: remove_suffix may translate into a single instruction.
9593
41.1k
  view.remove_suffix(view_size - location);
9594
41.1k
  return {location, found_colon};
9595
41.1k
}
9596
9597
121k
void trim_c0_whitespace(std::string_view& input) noexcept {
9598
128k
  while (!input.empty() &&
9599
77.4k
         ada::unicode::is_c0_control_or_space(input.front())) {
9600
6.69k
    input.remove_prefix(1);
9601
6.69k
  }
9602
126k
  while (!input.empty() && ada::unicode::is_c0_control_or_space(input.back())) {
9603
5.20k
    input.remove_suffix(1);
9604
5.20k
  }
9605
121k
}
9606
9607
ada_really_inline void parse_prepared_path(std::string_view input,
9608
                                           ada::scheme::type type,
9609
10.7k
                                           std::string& path) {
9610
10.7k
  ada_log("parse_prepared_path ", input);
9611
10.7k
  uint8_t accumulator = checkers::path_signature(input);
9612
  // Let us first detect a trivial case.
9613
  // If it is special, we check that we have no dot, no %,  no \ and no
9614
  // character needing percent encoding. Otherwise, we check that we have no %,
9615
  // no dot, and no character needing percent encoding.
9616
10.7k
  constexpr uint8_t need_encoding = 1;
9617
10.7k
  constexpr uint8_t backslash_char = 2;
9618
10.7k
  constexpr uint8_t dot_char = 4;
9619
10.7k
  constexpr uint8_t percent_char = 8;
9620
10.7k
  bool special = type != ada::scheme::NOT_SPECIAL;
9621
10.7k
  bool may_need_slow_file_handling = (type == ada::scheme::type::FILE &&
9622
1.66k
                                      checkers::is_windows_drive_letter(input));
9623
10.7k
  bool trivial_path =
9624
10.7k
      (special ? (accumulator == 0)
9625
10.7k
               : ((accumulator & (need_encoding | dot_char | percent_char)) ==
9626
1.55k
                  0)) &&
9627
4.87k
      (!may_need_slow_file_handling);
9628
10.7k
  if (accumulator == dot_char && !may_need_slow_file_handling) {
9629
    // '4' means that we have at least one dot, but nothing that requires
9630
    // percent encoding or decoding. The only part that is not trivial is
9631
    // that we may have single dots and double dots path segments.
9632
    // If we have such segments, then we either have a path that begins
9633
    // with '.' (easy to check), or we have the sequence './'.
9634
    // Note: input cannot be empty, it must at least contain one character ('.')
9635
    // Note: we know that '\' is not present.
9636
1.60k
    if (input[0] != '.') {
9637
863
      size_t slashdot = 0;
9638
863
      bool dot_is_file = true;
9639
5.79k
      for (;;) {
9640
5.79k
        slashdot = input.find("/.", slashdot);
9641
5.79k
        if (slashdot == std::string_view::npos) {  // common case
9642
863
          break;
9643
4.93k
        } else {  // uncommon
9644
          // only three cases matter: /./, /.. or a final /
9645
4.93k
          slashdot += 2;
9646
4.93k
          dot_is_file &= !(slashdot == input.size() || input[slashdot] == '.' ||
9647
1.91k
                           input[slashdot] == '/');
9648
4.93k
        }
9649
5.79k
      }
9650
863
      trivial_path = dot_is_file;
9651
863
    }
9652
1.60k
  }
9653
10.7k
  if (trivial_path) {
9654
5.00k
    ada_log("parse_path trivial");
9655
5.00k
    path += '/';
9656
5.00k
    path += input;
9657
5.00k
    return;
9658
5.00k
  }
9659
  // We are going to need to look a bit at the path, but let us see if we can
9660
  // ignore percent encoding *and* backslashes *and* percent characters.
9661
  // Except for the trivial case, this is likely to capture 99% of paths out
9662
  // there.
9663
5.73k
  bool fast_path =
9664
5.73k
      (special &&
9665
4.60k
       (accumulator & (need_encoding | backslash_char | percent_char)) == 0) &&
9666
1.34k
      (type != ada::scheme::type::FILE);
9667
5.73k
  if (fast_path) {
9668
1.16k
    ada_log("parse_prepared_path fast");
9669
    // Here we don't need to worry about \ or percent encoding.
9670
    // We also do not have a file protocol. We might have dots, however,
9671
    // but dots must as appear as '.', and they cannot be encoded because
9672
    // the symbol '%' is not present.
9673
1.16k
    size_t previous_location = 0;  // We start at 0.
9674
15.5k
    do {
9675
15.5k
      size_t new_location = input.find('/', previous_location);
9676
      // std::string_view path_view = input;
9677
      //  We process the last segment separately:
9678
15.5k
      if (new_location == std::string_view::npos) {
9679
1.16k
        std::string_view path_view = input.substr(previous_location);
9680
1.16k
        if (path_view == "..") {  // The path ends with ..
9681
          // e.g., if you receive ".." with an empty path, you go to "/".
9682
130
          if (path.empty()) {
9683
50
            path = '/';
9684
50
            return;
9685
50
          }
9686
          // Fast case where we have nothing to do:
9687
80
          if (path.back() == '/') {
9688
27
            return;
9689
27
          }
9690
          // If you have the path "/joe/myfriend",
9691
          // then you delete 'myfriend'.
9692
53
          path.resize(path.rfind('/') + 1);
9693
53
          return;
9694
80
        }
9695
1.03k
        path += '/';
9696
1.03k
        if (path_view != ".") {
9697
793
          path.append(path_view);
9698
793
        }
9699
1.03k
        return;
9700
14.3k
      } else {
9701
        // This is a non-final segment.
9702
14.3k
        std::string_view path_view =
9703
14.3k
            input.substr(previous_location, new_location - previous_location);
9704
14.3k
        previous_location = new_location + 1;
9705
14.3k
        if (path_view == "..") {
9706
3.18k
          size_t last_delimiter = path.rfind('/');
9707
3.18k
          if (last_delimiter != std::string::npos) {
9708
1.23k
            path.erase(last_delimiter);
9709
1.23k
          }
9710
11.2k
        } else if (path_view != ".") {
9711
9.26k
          path += '/';
9712
9.26k
          path.append(path_view);
9713
9.26k
        }
9714
14.3k
      }
9715
15.5k
    } while (true);
9716
4.56k
  } else {
9717
4.56k
    ada_log("parse_path slow");
9718
    // we have reached the general case
9719
4.56k
    bool needs_percent_encoding = (accumulator & 1);
9720
32.1k
    do {
9721
32.1k
      size_t location = (special && (accumulator & 2))
9722
32.1k
                            ? input.find_first_of("/\\")
9723
32.1k
                            : input.find('/');
9724
32.1k
      std::string_view path_view = input;
9725
32.1k
      if (location != std::string_view::npos) {
9726
27.5k
        path_view.remove_suffix(path_view.size() - location);
9727
27.5k
        input.remove_prefix(location + 1);
9728
27.5k
      }
9729
      // Path encoding preserves dots and percent signs, so normalize first.
9730
32.1k
      if (unicode::is_double_dot_path_segment(path_view)) {
9731
4.45k
        helpers::shorten_path(path, type);
9732
4.45k
        if (location == std::string_view::npos) {
9733
255
          path += '/';
9734
255
        }
9735
27.7k
      } else if (unicode::is_single_dot_path_segment(path_view) &&
9736
1.42k
                 (location == std::string_view::npos)) {
9737
122
        path += '/';
9738
122
      }
9739
      // Otherwise, if path_view is not a single-dot path segment, then:
9740
27.5k
      else if (!unicode::is_single_dot_path_segment(path_view)) {
9741
        // If url's scheme is "file", url's path is empty, and path_view is a
9742
        // Windows drive letter, then replace the second code point in
9743
        // path_view with U+003A (:).
9744
26.2k
        if (type == ada::scheme::type::FILE && path.empty() &&
9745
879
            path_view.size() == 2 &&
9746
346
            checkers::is_windows_drive_letter(path_view)) {
9747
139
          path += '/';
9748
139
          path += path_view[0];
9749
139
          path += ':';
9750
139
          path_view.remove_prefix(2);
9751
139
          path.append(path_view);
9752
26.1k
        } else {
9753
          // Append encoded bytes directly to the pathname.
9754
26.1k
          path += '/';
9755
26.1k
          if (!needs_percent_encoding ||
9756
13.6k
              !ada::unicode::percent_encode<true>(
9757
21.0k
                  path_view, character_sets::PATH_PERCENT_ENCODE, path)) {
9758
21.0k
            path.append(path_view);
9759
21.0k
          }
9760
26.1k
        }
9761
26.2k
      }
9762
32.1k
      if (location == std::string_view::npos) {
9763
4.56k
        return;
9764
4.56k
      }
9765
32.1k
    } while (true);
9766
4.56k
  }
9767
5.73k
}
9768
9769
44
bool overlaps(std::string_view input1, const std::string& input2) noexcept {
9770
44
  ada_log("helpers::overlaps check if string_view '", input1, "' [",
9771
44
          input1.size(), " bytes] is part of string '", input2, "' [",
9772
44
          input2.size(), " bytes]");
9773
44
  return !input1.empty() && !input2.empty() && input1.data() >= input2.data() &&
9774
17
         input1.data() < input2.data() + input2.size();
9775
44
}
9776
9777
template <class url_type>
9778
0
ada_really_inline void strip_trailing_spaces_from_opaque_path(url_type& url) {
9779
0
  ada_log("helpers::strip_trailing_spaces_from_opaque_path");
9780
0
  if (!url.has_opaque_path) return;
9781
0
  if (url.has_hash()) return;
9782
0
  if (url.has_search()) return;
9783
9784
0
  auto path = std::string(url.get_pathname());
9785
0
  while (!path.empty() && path.back() == ' ') {
9786
0
    path.resize(path.size() - 1);
9787
0
  }
9788
0
  url.update_base_pathname(path);
9789
0
}
Unexecuted instantiation: void ada::helpers::strip_trailing_spaces_from_opaque_path<ada::url>(ada::url&)
Unexecuted instantiation: void ada::helpers::strip_trailing_spaces_from_opaque_path<ada::url_aggregator>(ada::url_aggregator&)
9790
9791
// @ / \\ ?
9792
static constexpr std::array<uint8_t, 256> authority_delimiter_special =
9793
    []() consteval {
9794
      std::array<uint8_t, 256> result{};
9795
      for (uint8_t i : {'@', '/', '\\', '?'}) {
9796
        result[i] = 1;
9797
      }
9798
      return result;
9799
    }();
9800
// credit: @the-moisrex recommended a table-based approach
9801
ada_really_inline size_t
9802
21.7k
find_authority_delimiter_special(std::string_view view) noexcept {
9803
  // performance note: we might be able to gain further performance
9804
  // with SIMD intrinsics.
9805
149k
  for (auto pos = view.begin(); pos != view.end(); ++pos) {
9806
147k
    if (authority_delimiter_special[(uint8_t)*pos]) {
9807
19.6k
      return pos - view.begin();
9808
19.6k
    }
9809
147k
  }
9810
2.08k
  return size_t(view.size());
9811
21.7k
}
9812
9813
// @ / ?
9814
static constexpr std::array<uint8_t, 256> authority_delimiter = []() consteval {
9815
  std::array<uint8_t, 256> result{};
9816
  for (uint8_t i : {'@', '/', '?'}) {
9817
    result[i] = 1;
9818
  }
9819
  return result;
9820
}();
9821
// credit: @the-moisrex recommended a table-based approach
9822
ada_really_inline size_t
9823
2.86k
find_authority_delimiter(std::string_view view) noexcept {
9824
  // performance note: we might be able to gain further performance
9825
  // with SIMD instrinsics.
9826
33.7k
  for (auto pos = view.begin(); pos != view.end(); ++pos) {
9827
33.3k
    if (authority_delimiter[(uint8_t)*pos]) {
9828
2.51k
      return pos - view.begin();
9829
2.51k
    }
9830
33.3k
  }
9831
348
  return size_t(view.size());
9832
2.86k
}
9833
9834
}  // namespace ada::helpers
9835
9836
namespace ada {
9837
0
ada_warn_unused std::string to_string(ada::state state) {
9838
0
  return ada::helpers::get_state(state);
9839
0
}
9840
#undef ada_make_uint8x16_t
9841
}  // namespace ada
9842
/* end file src/helpers.cpp */
9843
/* begin file src/url.cpp */
9844
/* begin file include/ada/url_ip-inl.h */
9845
/**
9846
 * @file url_ip-inl.h
9847
 * @brief Shared IPv4/IPv6 parsing helpers used by url and url_aggregator.
9848
 *
9849
 * Not part of the public API. Defined inline so the single-TU amalgamation
9850
 * (ada.cpp) can include them from multiple translation-unit sources once.
9851
 */
9852
#ifndef ADA_URL_IP_INL_H
9853
#define ADA_URL_IP_INL_H
9854
9855
9856
#include <array>
9857
#include <cstddef>
9858
#include <cstdint>
9859
9860
// The IPv6 kernel needs vpermi2b/vpermb (VBMI) and vpcompressb/vpexpandb
9861
// (VBMI2) on top of ADA_AVX512's BW+VL.
9862
#if defined(ADA_AVX512) && defined(__AVX512VBMI__) && defined(__AVX512VBMI2__)
9863
#define ADA_AVX512_IPV6 1
9864
#endif
9865
9866
#if defined(ADA_AVX512)
9867
#include <immintrin.h>
9868
#endif
9869
9870
namespace ada::detail {
9871
9872
// 256-entry: 0xff = not hex, else nibble value.
9873
0
inline constexpr std::array<uint8_t, 256> make_hex_nibble_table() noexcept {
9874
0
  std::array<uint8_t, 256> t{};
9875
0
  for (size_t i = 0; i < 256; ++i) {
9876
0
    t[i] = 0xff;
9877
0
  }
9878
0
  for (size_t d = 0; d < 10; ++d) {
9879
0
    t[size_t{'0'} + d] = static_cast<uint8_t>(d);
9880
0
  }
9881
0
  for (size_t d = 0; d < 6; ++d) {
9882
0
    t[size_t{'a'} + d] = static_cast<uint8_t>(10 + d);
9883
0
    t[size_t{'A'} + d] = static_cast<uint8_t>(10 + d);
9884
0
  }
9885
0
  return t;
9886
0
}
9887
9888
inline constexpr auto hex_nibble = make_hex_nibble_table();
9889
9890
inline bool parse_ipv4_number(const char*& p, const char* end, uint64_t& value,
9891
7.24k
                              bool& is_pure_decimal) noexcept {
9892
7.24k
  is_pure_decimal = false;
9893
7.24k
  if (p >= end) [[unlikely]] {
9894
0
    return false;
9895
0
  }
9896
7.24k
  if (end - p >= 2 && p[0] == '0' && ((p[1] | 0x20) == 'x')) {
9897
1.54k
    p += 2;
9898
1.54k
    if (p == end || *p == '.') {
9899
294
      value = 0;
9900
294
      return true;
9901
294
    }
9902
1.25k
    uint64_t v = 0;
9903
1.25k
    int digits = 0;
9904
8.14k
    while (p < end && *p != '.') {
9905
7.16k
      const uint8_t nib = hex_nibble[static_cast<unsigned char>(*p)];
9906
7.16k
      if (nib == 0xff) [[unlikely]] {
9907
15
        return false;
9908
15
      }
9909
7.14k
      if (v > (0xFFFFFFFFULL >> 4)) [[unlikely]] {
9910
255
        return false;
9911
255
      }
9912
6.89k
      v = (v << 4) | nib;
9913
6.89k
      ++p;
9914
6.89k
      ++digits;
9915
6.89k
    }
9916
981
    if (digits == 0) [[unlikely]] {
9917
0
      return false;
9918
0
    }
9919
981
    value = v;
9920
981
    return true;
9921
981
  }
9922
5.69k
  if (end - p >= 2 && p[0] == '0' && p[1] >= '0' && p[1] <= '9') {
9923
474
    ++p;
9924
474
    uint64_t v = 0;
9925
3.46k
    while (p < end && *p != '.') {
9926
3.09k
      const char c = *p;
9927
3.09k
      if (c < '0' || c > '7') [[unlikely]] {
9928
66
        return false;
9929
66
      }
9930
3.02k
      if (v > (0xFFFFFFFFULL >> 3)) [[unlikely]] {
9931
33
        return false;
9932
33
      }
9933
2.99k
      v = (v << 3) | static_cast<uint64_t>(c - '0');
9934
2.99k
      ++p;
9935
2.99k
    }
9936
375
    value = v;
9937
375
    return true;
9938
474
  }
9939
5.22k
  if (*p < '0' || *p > '9') [[unlikely]] {
9940
528
    return false;
9941
528
  }
9942
4.69k
  is_pure_decimal = true;
9943
4.69k
  uint64_t v = static_cast<uint64_t>(*p - '0');
9944
4.69k
  ++p;
9945
9.18k
  while (p < end && *p != '.') {
9946
4.67k
    const char c = *p;
9947
4.67k
    if (c < '0' || c > '9') [[unlikely]] {
9948
102
      return false;
9949
102
    }
9950
4.57k
    if (v > 429496729ULL) [[unlikely]] {
9951
69
      return false;
9952
69
    }
9953
4.50k
    v = v * 10u + static_cast<uint64_t>(c - '0');
9954
4.50k
    if (v > 0xFFFFFFFFULL) [[unlikely]] {
9955
12
      return false;
9956
12
    }
9957
4.49k
    ++p;
9958
4.49k
  }
9959
4.51k
  value = v;
9960
4.51k
  return true;
9961
4.69k
}
9962
9963
// Parse up to 4 hex digits. Returns digit count (0 if none).
9964
inline int parse_hex_piece(const char*& pointer, const char* end,
9965
3.04k
                           uint16_t& value) noexcept {
9966
3.04k
  if (pointer == end) {
9967
0
    return 0;
9968
0
  }
9969
3.04k
  const uint8_t n0 = hex_nibble[static_cast<unsigned char>(*pointer)];
9970
3.04k
  if (n0 == 0xff) {
9971
141
    return 0;
9972
141
  }
9973
2.90k
  uint32_t v = n0;
9974
2.90k
  ++pointer;
9975
2.90k
  int length = 1;
9976
2.90k
  if (pointer != end) {
9977
2.62k
    const uint8_t n1 = hex_nibble[static_cast<unsigned char>(*pointer)];
9978
2.62k
    if (n1 != 0xff) {
9979
1.02k
      v = (v << 4) | n1;
9980
1.02k
      ++pointer;
9981
1.02k
      ++length;
9982
1.02k
      if (pointer != end) {
9983
945
        const uint8_t n2 = hex_nibble[static_cast<unsigned char>(*pointer)];
9984
945
        if (n2 != 0xff) {
9985
621
          v = (v << 4) | n2;
9986
621
          ++pointer;
9987
621
          ++length;
9988
621
          if (pointer != end) {
9989
510
            const uint8_t n3 = hex_nibble[static_cast<unsigned char>(*pointer)];
9990
510
            if (n3 != 0xff) {
9991
255
              v = (v << 4) | n3;
9992
255
              ++pointer;
9993
255
              ++length;
9994
255
            }
9995
510
          }
9996
621
        }
9997
945
      }
9998
1.02k
    }
9999
2.62k
  }
10000
2.90k
  value = static_cast<uint16_t>(v);
10001
2.90k
  return length;
10002
3.04k
}
10003
10004
#if defined(ADA_AVX512_IPV6)
10005
// Gather each group's up-to-four nibbles and fold them into eight hextets.
10006
// `prev` is the byte before each group, so an index that runs off the front of
10007
// a short group clamps onto a colon, which translates to zero: no write mask.
10008
ada_really_inline void ipv6_gather(__m128i ends, __m128i prev, __m512i nib,
10009
                                   std::array<uint16_t, 8>& address) noexcept {
10010
  const __m256i grp =
10011
      _mm256_setr_epi8(0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4,
10012
                       4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7);
10013
  const __m256i off = _mm256_setr_epi8(
10014
      -4, -3, -2, -1, -4, -3, -2, -1, -4, -3, -2, -1, -4, -3, -2, -1, -4, -3,
10015
      -2, -1, -4, -3, -2, -1, -4, -3, -2, -1, -4, -3, -2, -1);
10016
  const __m256i idx = _mm256_max_epi8(
10017
      _mm256_add_epi8(
10018
          _mm256_permutexvar_epi8(grp, _mm256_castsi128_si256(ends)), off),
10019
      _mm256_permutexvar_epi8(grp, _mm256_castsi128_si256(prev)));
10020
  const __m256i gathered = _mm512_castsi512_si256(
10021
      _mm512_permutexvar_epi8(_mm512_castsi256_si512(idx), nib));
10022
  // (a,b) -> 16a+b are the sixteen address bytes; 256*hi+lo pairs them.
10023
  const __m256i hextets = _mm256_madd_epi16(
10024
      _mm256_maddubs_epi16(gathered, _mm256_set1_epi16(0x0110)),
10025
      _mm256_set1_epi32(0x00010100));
10026
  _mm_storeu_si128(reinterpret_cast<__m128i*>(address.data()),
10027
                   _mm256_cvtepi32_epi16(hextets));
10028
}
10029
10030
// Parse an IPv6 host with one masked 512-bit load. Derived from
10031
// vtlmks/ipv6-avx512 (Peter Fors, MIT).
10032
//
10033
// Returns false when the input is outside this kernel's grammar and the caller
10034
// must run the scalar parser. Otherwise `valid` receives the verdict, and
10035
// `address` the eight hextets when valid.
10036
ada_really_inline bool try_parse_ipv6_avx512(const char* data, size_t len,
10037
                                             std::array<uint16_t, 8>& address,
10038
                                             bool& valid) noexcept {
10039
  if (len < 2 || len > 45) [[unlikely]] {
10040
    return false;
10041
  }
10042
  // ':' rather than 0x80 for the colon, so a clamped index reads a zero nibble.
10043
  alignas(64) static constexpr uint8_t hex_lo[64] = {
10044
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10045
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10046
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10047
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10048
      0x80, 0x80, 0x80, 0x80, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
10049
      0x07, 0x08, 0x09, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80};
10050
  alignas(64) static constexpr uint8_t hex_hi[64] = {
10051
      0x80, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x80, 0x80, 0x80, 0x80,
10052
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10053
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10054
      0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x80, 0x80, 0x80, 0x80, 0x80,
10055
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
10056
      0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80};
10057
  alignas(64) static constexpr uint8_t iota[64] = {
10058
      0,  1,  2,  3,  4,  5,  6,  7,  8,  9,  10, 11, 12, 13, 14, 15,
10059
      16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
10060
      32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
10061
      48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63};
10062
10063
  const __mmask64 active =
10064
      static_cast<__mmask64>(_bzhi_u64(~0ULL, static_cast<uint32_t>(len)));
10065
  const __m512i colon = _mm512_set1_epi8(':');
10066
  // Merging ':' into the tail makes the terminator at `len` a real colon, so
10067
  // the compress mask below never has to be rebuilt in a general register.
10068
  const __m512i v = _mm512_mask_loadu_epi8(colon, active, data);
10069
  const __mmask64 mcolon = _mm512_cmpeq_epi8_mask(v, colon);
10070
10071
  // An embedded dotted quad is the one valid form this kernel does not cover.
10072
  // Because that is the only gap, every other input it does not accept is
10073
  // invalid, which is what makes `valid = false` below safe.
10074
  if (_mm512_cmpeq_epi8_mask(v, _mm512_set1_epi8('.'))) [[unlikely]] {
10075
    return false;
10076
  }
10077
10078
  const __m512i nib = _mm512_permutex2var_epi8(_mm512_load_si512(hex_lo), v,
10079
                                               _mm512_load_si512(hex_hi));
10080
  const __m128i comp = _mm512_castsi512_si128(
10081
      _mm512_maskz_compress_epi8(mcolon, _mm512_load_si512(iota)));
10082
  const __m128i lane0 =
10083
      _mm_setr_epi8(-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
10084
  const __m128i prev = _mm_or_si128(_mm_bslli_si128(comp, 1), lane0);
10085
  const __m128i width = _mm_sub_epi8(comp, prev);  // one too large
10086
10087
  const uint64_t mc = static_cast<uint64_t>(mcolon);
10088
  const uint64_t act = static_cast<uint64_t>(active);
10089
  const uint64_t dc = mc & (mc >> 1) & (act >> 1);  // a "::" inside [0, len)
10090
10091
  if (!dc) {
10092
    ipv6_gather(comp, prev, nib, address);
10093
    // nib | (v & 0x80): one scan for non-hex bytes and for bytes whose high
10094
    // bit made vpermi2b alias a legal one.
10095
    const __m512i fused = _mm512_ternarylogic_epi32(
10096
        nib, v, _mm512_set1_epi8(static_cast<char>(0x80)), 0xf8);
10097
    // Lanes 8..15 bound against 255, which an unsigned byte cannot exceed.
10098
    const __m128i wmax =
10099
        _mm_setr_epi8(3, 3, 3, 3, 3, 3, 3, 3, -1, -1, -1, -1, -1, -1, -1, -1);
10100
    __mmask64 err = _kandn_mask64(mcolon, _mm512_movepi8_mask(fused));
10101
    err = _kor_mask64(
10102
        err, static_cast<__mmask64>(static_cast<uint16_t>(_mm_cmpgt_epu8_mask(
10103
                 _mm_sub_epi8(width, _mm_set1_epi8(2)), wmax))));
10104
    valid = (_mm_popcnt_u64(mc & act) == 7) && !err;
10105
    return true;
10106
  }
10107
10108
  // Drop the zero-width gap field(s), then expand the surviving head and tail
10109
  // fields into eight slots with all-zero groups inserted at the gap.
10110
  const uint32_t head = static_cast<uint32_t>(_mm_popcnt_u64(mc & (dc - 1))) +
10111
                        static_cast<uint32_t>(dc > 1);
10112
  const __mmask16 keep = _mm_cmpgt_epi8_mask(width, _mm_set1_epi8(1));
10113
  const uint32_t kept = static_cast<uint32_t>(_mm_popcnt_u32(keep));
10114
  const __mmask16 slots = static_cast<__mmask16>(
10115
      ~(_bzhi_u32(0xFFFFFFFFu, 8 - kept) << head) & 0xFFu);
10116
  // Inserted groups take prev = -1, so their indices clamp to byte 63, a tail
10117
  // colon, and read zero.
10118
  ipv6_gather(_mm_maskz_expand_epi8(slots, _mm_maskz_compress_epi8(keep, comp)),
10119
              _mm_mask_expand_epi8(_mm_set1_epi8(-1), slots,
10120
                                   _mm_maskz_compress_epi8(keep, prev)),
10121
              nib, address);
10122
10123
  uint64_t err = _mm512_movepi8_mask(v);    // high-bit bytes
10124
  err |= _mm512_movepi8_mask(nib) & ~mc;    // non-hex
10125
  err |= _blsr_u64(dc);                     // a second "::"
10126
  err |= static_cast<uint64_t>(kept >= 8);  // "::" elides nothing
10127
  err |= _mm_cmpgt_epu8_mask(width, _mm_set1_epi8(5)) & keep;  // group > 4
10128
  err |= (mc & 1ULL) & ~dc;                                // leading lone ':'
10129
  err |= ((mc >> (len - 1)) & 1ULL) & ~(dc >> (len - 2));  // trailing lone ':'
10130
  valid = !err;
10131
  return true;
10132
}
10133
#endif  // ADA_AVX512_IPV6
10134
10135
}  // namespace ada::detail
10136
10137
#endif  // ADA_URL_IP_INL_H
10138
/* end file include/ada/url_ip-inl.h */
10139
10140
#include <algorithm>
10141
#include <array>
10142
#include <cstddef>
10143
#include <cstdint>
10144
#include <iterator>
10145
#include <numeric>
10146
#include <optional>
10147
#include <ranges>
10148
#include <string>
10149
#include <string_view>
10150
#include <utility>
10151
10152
namespace ada {
10153
10154
641
bool url::parse_opaque_host(std::string_view input) {
10155
641
  ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
10156
641
  if (std::ranges::any_of(input, ada::unicode::is_forbidden_host_code_point)) {
10157
14
    return is_valid = false;
10158
14
  }
10159
10160
  // Return the result of running UTF-8 percent-encode on input using the C0
10161
  // control percent-encode set.
10162
627
  host = ada::unicode::percent_encode(
10163
627
      input, ada::character_sets::C0_CONTROL_PERCENT_ENCODE);
10164
627
  return true;
10165
641
}
10166
10167
1.96k
bool url::parse_ipv4(std::string_view input) {
10168
1.96k
  ada_log("parse_ipv4 ", input, " [", input.size(), " bytes]");
10169
1.96k
  if (input.empty()) {
10170
0
    return is_valid = false;
10171
0
  }
10172
1.96k
  std::string_view original_input = input;
10173
1.96k
  if (original_input.back() == '.') {
10174
67
    original_input.remove_suffix(1);
10175
67
  }
10176
1.96k
  if (input.back() == '.') {
10177
67
    input.remove_suffix(1);
10178
67
    if (input.empty()) {
10179
0
      return is_valid = false;
10180
0
    }
10181
67
  }
10182
10183
1.96k
  const uint64_t fast = checkers::try_parse_ipv4_fast(input);
10184
1.96k
  if (fast < checkers::ipv4_fast_fail) [[likely]] {
10185
22
    host = original_input;
10186
22
    host_type = IPV4;
10187
22
    return true;
10188
22
  }
10189
10190
1.93k
  const char* p = input.data();
10191
1.93k
  const char* end = p + input.size();
10192
1.93k
  uint64_t ipv4 = 0;
10193
1.93k
  int digit_count = 0;
10194
1.93k
  int pure_decimal_count = 0;
10195
10196
2.42k
  for (; digit_count < 4 && p < end; ++digit_count) {
10197
2.41k
    uint64_t segment = 0;
10198
2.41k
    bool pure = false;
10199
2.41k
    if (!detail::parse_ipv4_number(p, end, segment, pure)) {
10200
360
      return is_valid = false;
10201
360
    }
10202
2.05k
    if (pure) {
10203
1.50k
      ++pure_decimal_count;
10204
1.50k
    }
10205
2.05k
    if (p >= end) {
10206
1.53k
      const unsigned shift = static_cast<unsigned>(32 - digit_count * 8);
10207
1.53k
      if (segment >= (uint64_t{1} << shift)) {
10208
26
        return is_valid = false;
10209
26
      }
10210
1.51k
      ipv4 = (ipv4 << shift) | segment;
10211
1.51k
      host = (pure_decimal_count == 4) ? std::string(original_input)
10212
1.51k
                                       : ada::serializers::ipv4(ipv4);
10213
1.51k
      host_type = IPV4;
10214
1.51k
      return true;
10215
1.53k
    }
10216
515
    if (segment > 255 || *p != '.') {
10217
29
      return is_valid = false;
10218
29
    }
10219
486
    ipv4 = (ipv4 << 8) | segment;
10220
486
    ++p;
10221
486
  }
10222
11
  if (digit_count != 4 || p != end) {
10223
11
    return is_valid = false;
10224
11
  }
10225
0
  host = (pure_decimal_count == 4) ? std::string(original_input)
10226
0
                                   : ada::serializers::ipv4(ipv4);
10227
0
  host_type = IPV4;
10228
0
  return true;
10229
11
}
10230
10231
554
bool url::parse_ipv6(std::string_view input) {
10232
554
  ada_log("parse_ipv6 ", input, " [", input.size(), " bytes]");
10233
554
  if (input.empty() || input.size() > 45) [[unlikely]] {
10234
30
    return is_valid = false;
10235
30
  }
10236
524
  std::array<uint16_t, 8> address{};
10237
#if defined(ADA_AVX512_IPV6)
10238
  if (bool simd_valid; detail::try_parse_ipv6_avx512(input.data(), input.size(),
10239
                                                     address, simd_valid)) {
10240
    if (!simd_valid) [[unlikely]] {
10241
      return is_valid = false;
10242
    }
10243
    host = ada::serializers::ipv6(address);
10244
    host_type = IPV6;
10245
    return true;
10246
  }
10247
  address = {};
10248
#endif
10249
524
  const char* pointer = input.data();
10250
524
  const char* const end = pointer + input.size();
10251
524
  int piece_index = 0;
10252
524
  int compress = -1;
10253
10254
524
  if (*pointer == ':') {
10255
201
    if (input.size() == 1 || pointer[1] != ':') [[unlikely]] {
10256
12
      return is_valid = false;
10257
12
    }
10258
189
    pointer += 2;
10259
189
    compress = ++piece_index;
10260
189
  }
10261
10262
1.51k
  while (pointer != end) {
10263
1.16k
    if (piece_index == 8) [[unlikely]] {
10264
3
      return is_valid = false;
10265
3
    }
10266
1.16k
    if (*pointer == ':') {
10267
146
      if (compress != -1) [[unlikely]] {
10268
3
        return is_valid = false;
10269
3
      }
10270
143
      ++pointer;
10271
143
      compress = ++piece_index;
10272
143
      continue;
10273
146
    }
10274
10275
1.01k
    uint16_t value = 0;
10276
1.01k
    const int length = detail::parse_hex_piece(pointer, end, value);
10277
10278
1.01k
    if (pointer != end && *pointer == '.') {
10279
97
      if (length == 0) [[unlikely]] {
10280
3
        return is_valid = false;
10281
3
      }
10282
94
      pointer -= length;
10283
94
      if (piece_index > 6) [[unlikely]] {
10284
3
        return is_valid = false;
10285
3
      }
10286
10287
91
      int numbers_seen = 0;
10288
259
      while (pointer != end) {
10289
228
        int ipv4_piece = -1;
10290
228
        if (numbers_seen > 0) {
10291
137
          if (*pointer == '.' && numbers_seen < 4) {
10292
118
            ++pointer;
10293
118
          } else {
10294
19
            return is_valid = false;
10295
19
          }
10296
137
        }
10297
209
        if (pointer == end || *pointer < '0' || *pointer > '9') [[unlikely]] {
10298
32
          return is_valid = false;
10299
32
        }
10300
177
        ipv4_piece = *pointer - '0';
10301
177
        ++pointer;
10302
177
        if (pointer != end && *pointer >= '0' && *pointer <= '9') {
10303
61
          if (ipv4_piece == 0) [[unlikely]] {
10304
3
            return is_valid = false;
10305
3
          }
10306
58
          ipv4_piece = ipv4_piece * 10 + (*pointer - '0');
10307
58
          ++pointer;
10308
58
          if (pointer != end && *pointer >= '0' && *pointer <= '9') {
10309
30
            ipv4_piece = ipv4_piece * 10 + (*pointer - '0');
10310
30
            ++pointer;
10311
30
            if (ipv4_piece > 255) [[unlikely]] {
10312
6
              return is_valid = false;
10313
6
            }
10314
30
          }
10315
58
        }
10316
168
        address[static_cast<size_t>(piece_index)] = static_cast<uint16_t>(
10317
168
            address[static_cast<size_t>(piece_index)] * 0x100 +
10318
168
            static_cast<uint16_t>(ipv4_piece));
10319
168
        ++numbers_seen;
10320
168
        if (numbers_seen == 2 || numbers_seen == 4) {
10321
67
          ++piece_index;
10322
67
        }
10323
168
      }
10324
31
      if (numbers_seen != 4) [[unlikely]] {
10325
19
        return is_valid = false;
10326
19
      }
10327
12
      break;
10328
31
    }
10329
10330
917
    if (length == 0) [[unlikely]] {
10331
44
      return is_valid = false;
10332
44
    }
10333
10334
873
    if (pointer != end && *pointer == ':') {
10335
678
      ++pointer;
10336
678
      if (pointer == end) [[unlikely]] {
10337
3
        return is_valid = false;
10338
3
      }
10339
678
    } else if (pointer != end) [[unlikely]] {
10340
9
      return is_valid = false;
10341
9
    }
10342
10343
861
    address[static_cast<size_t>(piece_index)] = value;
10344
861
    ++piece_index;
10345
861
  }
10346
10347
365
  if (compress != -1) {
10348
323
    const int right = piece_index - compress;
10349
323
    if (right > 0) {
10350
156
      const size_t dest = static_cast<size_t>(8 - right);
10351
156
      const size_t src = static_cast<size_t>(compress);
10352
156
      if (dest != src) {
10353
392
        for (size_t i = static_cast<size_t>(right); i-- > 0;) {
10354
257
          address[dest + i] = address[src + i];
10355
257
          address[src + i] = 0;
10356
257
        }
10357
135
      }
10358
156
    }
10359
323
  } else if (piece_index != 8) [[unlikely]] {
10360
23
    return is_valid = false;
10361
23
  }
10362
10363
342
  host = ada::serializers::ipv6(address);
10364
342
  ada_log("parse_ipv6 ", *host);
10365
342
  host_type = IPV6;
10366
342
  return true;
10367
365
}
10368
10369
template <bool has_state_override>
10370
21.4k
ada_really_inline bool url::parse_scheme(const std::string_view input) {
10371
21.4k
  auto parsed_type = ada::scheme::get_scheme_type(input);
10372
21.4k
  bool is_input_special = (parsed_type != ada::scheme::NOT_SPECIAL);
10373
  /**
10374
   * In the common case, we will immediately recognize a special scheme (e.g.,
10375
   *http, https), in which case, we can go really fast.
10376
   **/
10377
21.4k
  if (is_input_special) {  // fast path!!!
10378
10.2k
    if constexpr (has_state_override) {
10379
      // If url's scheme is not a special scheme and buffer is a special scheme,
10380
      // then return.
10381
0
      if (is_special() != is_input_special) {
10382
0
        return false;
10383
0
      }
10384
10385
      // If url includes credentials or has a non-null port, and buffer is
10386
      // "file", then return.
10387
0
      if ((has_credentials() || port.has_value()) &&
10388
0
          parsed_type == ada::scheme::type::FILE) {
10389
0
        return false;
10390
0
      }
10391
10392
      // If url's scheme is "file" and its host is an empty host, then return.
10393
      // An empty host is the empty string.
10394
0
      if (type == ada::scheme::type::FILE && host.has_value() &&
10395
0
          host->empty()) {
10396
0
        return false;
10397
0
      }
10398
0
    }
10399
10400
0
    type = parsed_type;
10401
10402
10.2k
    if constexpr (has_state_override) {
10403
      // This is uncommon.
10404
0
      uint16_t urls_scheme_port = get_special_port();
10405
10406
0
      if (urls_scheme_port) {
10407
        // If url's port is url's scheme's default port, then set url's port to
10408
        // null.
10409
0
        if (port.has_value() && *port == urls_scheme_port) {
10410
0
          port = std::nullopt;
10411
0
        }
10412
0
      }
10413
0
    }
10414
11.1k
  } else {  // slow path
10415
11.1k
    std::string _buffer(input);
10416
    // Next function is only valid if the input is ASCII and returns false
10417
    // otherwise, but it seems that we always have ascii content so we do not
10418
    // need to check the return value.
10419
    // bool is_ascii =
10420
11.1k
    unicode::to_lower_ascii(_buffer.data(), _buffer.size());
10421
10422
11.1k
    if constexpr (has_state_override) {
10423
      // The state-override validation errors below ("return" in the WHATWG URL
10424
      // parser) leave the URL unchanged. The setter contract is
10425
      // "true on success, false if the scheme is invalid" -- the fast path
10426
      // above already returns false here, so the slow path must agree.
10427
10428
      // If url's scheme is a special scheme and buffer is not a special scheme,
10429
      // then return. If url's scheme is not a special scheme and buffer is a
10430
      // special scheme, then return.
10431
0
      if (is_special() != ada::scheme::is_special(_buffer)) {
10432
0
        return false;
10433
0
      }
10434
10435
      // If url includes credentials or has a non-null port, and buffer is
10436
      // "file", then return.
10437
0
      if ((has_credentials() || port.has_value()) && _buffer == "file") {
10438
0
        return false;
10439
0
      }
10440
10441
      // If url's scheme is "file" and its host is an empty host, then return.
10442
      // An empty host is the empty string.
10443
0
      if (type == ada::scheme::type::FILE && host.has_value() &&
10444
0
          host->empty()) {
10445
0
        return false;
10446
0
      }
10447
0
    }
10448
10449
0
    set_scheme(std::move(_buffer));
10450
10451
11.1k
    if constexpr (has_state_override) {
10452
      // This is uncommon.
10453
0
      uint16_t urls_scheme_port = get_special_port();
10454
10455
0
      if (urls_scheme_port) {
10456
        // If url's port is url's scheme's default port, then set url's port to
10457
        // null.
10458
0
        if (port.has_value() && *port == urls_scheme_port) {
10459
0
          port = std::nullopt;
10460
0
        }
10461
0
      }
10462
0
    }
10463
11.1k
  }
10464
10465
0
  return true;
10466
21.4k
}
Unexecuted instantiation: bool ada::url::parse_scheme<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
bool ada::url::parse_scheme<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
Line
Count
Source
10370
21.4k
ada_really_inline bool url::parse_scheme(const std::string_view input) {
10371
21.4k
  auto parsed_type = ada::scheme::get_scheme_type(input);
10372
21.4k
  bool is_input_special = (parsed_type != ada::scheme::NOT_SPECIAL);
10373
  /**
10374
   * In the common case, we will immediately recognize a special scheme (e.g.,
10375
   *http, https), in which case, we can go really fast.
10376
   **/
10377
21.4k
  if (is_input_special) {  // fast path!!!
10378
    if constexpr (has_state_override) {
10379
      // If url's scheme is not a special scheme and buffer is a special scheme,
10380
      // then return.
10381
      if (is_special() != is_input_special) {
10382
        return false;
10383
      }
10384
10385
      // If url includes credentials or has a non-null port, and buffer is
10386
      // "file", then return.
10387
      if ((has_credentials() || port.has_value()) &&
10388
          parsed_type == ada::scheme::type::FILE) {
10389
        return false;
10390
      }
10391
10392
      // If url's scheme is "file" and its host is an empty host, then return.
10393
      // An empty host is the empty string.
10394
      if (type == ada::scheme::type::FILE && host.has_value() &&
10395
          host->empty()) {
10396
        return false;
10397
      }
10398
    }
10399
10400
10.2k
    type = parsed_type;
10401
10402
    if constexpr (has_state_override) {
10403
      // This is uncommon.
10404
      uint16_t urls_scheme_port = get_special_port();
10405
10406
      if (urls_scheme_port) {
10407
        // If url's port is url's scheme's default port, then set url's port to
10408
        // null.
10409
        if (port.has_value() && *port == urls_scheme_port) {
10410
          port = std::nullopt;
10411
        }
10412
      }
10413
    }
10414
11.1k
  } else {  // slow path
10415
11.1k
    std::string _buffer(input);
10416
    // Next function is only valid if the input is ASCII and returns false
10417
    // otherwise, but it seems that we always have ascii content so we do not
10418
    // need to check the return value.
10419
    // bool is_ascii =
10420
11.1k
    unicode::to_lower_ascii(_buffer.data(), _buffer.size());
10421
10422
    if constexpr (has_state_override) {
10423
      // The state-override validation errors below ("return" in the WHATWG URL
10424
      // parser) leave the URL unchanged. The setter contract is
10425
      // "true on success, false if the scheme is invalid" -- the fast path
10426
      // above already returns false here, so the slow path must agree.
10427
10428
      // If url's scheme is a special scheme and buffer is not a special scheme,
10429
      // then return. If url's scheme is not a special scheme and buffer is a
10430
      // special scheme, then return.
10431
      if (is_special() != ada::scheme::is_special(_buffer)) {
10432
        return false;
10433
      }
10434
10435
      // If url includes credentials or has a non-null port, and buffer is
10436
      // "file", then return.
10437
      if ((has_credentials() || port.has_value()) && _buffer == "file") {
10438
        return false;
10439
      }
10440
10441
      // If url's scheme is "file" and its host is an empty host, then return.
10442
      // An empty host is the empty string.
10443
      if (type == ada::scheme::type::FILE && host.has_value() &&
10444
          host->empty()) {
10445
        return false;
10446
      }
10447
    }
10448
10449
11.1k
    set_scheme(std::move(_buffer));
10450
10451
    if constexpr (has_state_override) {
10452
      // This is uncommon.
10453
      uint16_t urls_scheme_port = get_special_port();
10454
10455
      if (urls_scheme_port) {
10456
        // If url's port is url's scheme's default port, then set url's port to
10457
        // null.
10458
        if (port.has_value() && *port == urls_scheme_port) {
10459
          port = std::nullopt;
10460
        }
10461
      }
10462
    }
10463
11.1k
  }
10464
10465
21.4k
  return true;
10466
21.4k
}
10467
10468
15.4k
ada_really_inline bool url::parse_host(std::string_view input) {
10469
15.4k
  ada_log("parse_host ", input, " [", input.size(), " bytes]");
10470
15.4k
  if (input.empty()) {
10471
25
    return is_valid = false;
10472
25
  }  // technically unnecessary.
10473
  // If input starts with U+005B ([), then:
10474
15.3k
  if (input[0] == '[') {
10475
    // If input does not end with U+005D (]), validation error, return failure.
10476
713
    if (input.back() != ']') {
10477
159
      return is_valid = false;
10478
159
    }
10479
554
    ada_log("parse_host ipv6");
10480
10481
    // Return the result of IPv6 parsing input with its leading U+005B ([) and
10482
    // trailing U+005D (]) removed.
10483
554
    input.remove_prefix(1);
10484
554
    input.remove_suffix(1);
10485
554
    return parse_ipv6(input);
10486
713
  }
10487
10488
  // If isNotSpecial is true, then return the result of opaque-host parsing
10489
  // input.
10490
14.6k
  if (!is_special()) {
10491
641
    return parse_opaque_host(input);
10492
641
  }
10493
10494
  // Fast path: try to parse as pure decimal IPv4 first.
10495
14.0k
  const uint64_t fast_result = checkers::try_parse_ipv4_fast(input);
10496
14.0k
  if (fast_result < checkers::ipv4_fast_fail) {
10497
1.01k
    if (!input.empty() && input.back() == '.') {
10498
22
      host = input.substr(0, input.size() - 1);
10499
988
    } else {
10500
988
      host = input;
10501
988
    }
10502
1.01k
    host_type = IPV4;
10503
1.01k
    is_valid = true;
10504
1.01k
    ada_log("parse_host fast path decimal ipv4");
10505
1.01k
    return true;
10506
1.01k
  }
10507
  // Let domain be the result of running UTF-8 decode without BOM on the
10508
  // percent-decoding of input. Let asciiDomain be the result of running domain
10509
  // to ASCII with domain and false. The most common case is an ASCII input, in
10510
  // which case we do not need to call the expensive 'to_ascii' if a few
10511
  // conditions are met: no '%' and no 'xn-' subsequence.
10512
13.0k
  const uint8_t forbidden_or_upper =
10513
13.0k
      unicode::contains_forbidden_domain_code_point_or_upper(input.data(),
10514
13.0k
                                                             input.size());
10515
13.0k
  static constexpr std::string_view xn_dash{"xn-", 3};
10516
13.0k
  if ((forbidden_or_upper & 1) == 0) {
10517
7.88k
    host = std::string(input);
10518
7.88k
    if ((forbidden_or_upper & 2) != 0) {
10519
1.46k
      unicode::to_lower_ascii(host->data(), host->size());
10520
1.46k
    }
10521
7.88k
    if (host->find('-') == std::string_view::npos ||
10522
6.08k
        host->find(xn_dash) == std::string_view::npos) {
10523
6.08k
      if (checkers::is_ipv4(*host)) {
10524
1.46k
        ada_log("parse_host fast path ipv4");
10525
1.46k
        return parse_ipv4(*host);
10526
1.46k
      }
10527
4.62k
      ada_log("parse_host fast path ", *host);
10528
4.62k
      is_valid = true;
10529
4.62k
      return true;
10530
6.08k
    }
10531
7.88k
  } else if (const size_t first_percent = input.find('%');
10532
5.13k
             first_percent != std::string_view::npos) {
10533
1.02k
    std::string decoded = unicode::percent_decode(input, first_percent);
10534
1.02k
    const uint8_t decoded_flags =
10535
1.02k
        unicode::contains_forbidden_domain_code_point_or_upper(decoded.data(),
10536
1.02k
                                                               decoded.size());
10537
1.02k
    if ((decoded_flags & 1) == 0) {
10538
712
      if ((decoded_flags & 2) != 0) {
10539
320
        unicode::to_lower_ascii(decoded.data(), decoded.size());
10540
320
      }
10541
712
      if (decoded.find('-') == std::string_view::npos ||
10542
654
          decoded.find(xn_dash) == std::string_view::npos) {
10543
654
        host = std::move(decoded);
10544
654
        if (checkers::is_ipv4(*host)) {
10545
284
          return parse_ipv4(*host);
10546
284
        }
10547
370
        is_valid = true;
10548
370
        return true;
10549
654
      }
10550
712
    }
10551
1.02k
  }
10552
6.27k
  ada_log("parse_host calling to_ascii");
10553
6.27k
  is_valid = ada::unicode::to_ascii(host, input, input.find('%'));
10554
6.27k
  if (!is_valid || !host.has_value()) {
10555
1.90k
    ada_log("parse_host to_ascii returns false");
10556
1.90k
    return is_valid = false;
10557
1.90k
  }
10558
4.37k
  ada_log("parse_host to_ascii succeeded ", *host, " [", host->size(),
10559
4.37k
          " bytes]");
10560
10561
4.37k
  if (std::any_of(host->begin(), host->end(),
10562
4.37k
                  ada::unicode::is_forbidden_domain_code_point)) {
10563
0
    host = std::nullopt;
10564
0
    return is_valid = false;
10565
0
  }
10566
10567
  // If asciiDomain ends in a number, then return the result of IPv4 parsing
10568
  // asciiDomain.
10569
4.37k
  if (checkers::is_ipv4(*host)) {
10570
216
    ada_log("parse_host got ipv4 ", *host);
10571
216
    return parse_ipv4(*host);
10572
216
  }
10573
10574
4.15k
  return true;
10575
4.37k
}
10576
10577
2.33k
ada_really_inline void url::parse_path(std::string_view input) {
10578
2.33k
  ada_log("parse_path ", input);
10579
2.33k
  std::string tmp_buffer;
10580
2.33k
  std::string_view internal_input;
10581
2.33k
  if (unicode::has_tabs_or_newline(input)) {
10582
0
    tmp_buffer = input;
10583
    // Optimization opportunity: Instead of copying and then pruning, we could
10584
    // just directly build the string from user_input.
10585
0
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
10586
0
    internal_input = tmp_buffer;
10587
2.33k
  } else {
10588
2.33k
    internal_input = input;
10589
2.33k
  }
10590
10591
  // If url is special, then:
10592
2.33k
  if (is_special()) {
10593
2.33k
    if (internal_input.empty()) {
10594
102
      path = "/";
10595
2.22k
    } else if ((internal_input[0] == '/') || (internal_input[0] == '\\')) {
10596
2.22k
      helpers::parse_prepared_path(internal_input.substr(1), type, path);
10597
2.22k
    } else {
10598
0
      helpers::parse_prepared_path(internal_input, type, path);
10599
0
    }
10600
2.33k
  } else if (!internal_input.empty()) {
10601
0
    if (internal_input[0] == '/') {
10602
0
      helpers::parse_prepared_path(internal_input.substr(1), type, path);
10603
0
    } else {
10604
0
      helpers::parse_prepared_path(internal_input, type, path);
10605
0
    }
10606
0
  } else {
10607
0
    if (!host.has_value()) {
10608
0
      path = "/";
10609
0
    }
10610
0
  }
10611
2.33k
}
10612
10613
0
[[nodiscard]] std::string url::to_string() const {
10614
0
  if (!is_valid) {
10615
0
    return "null";
10616
0
  }
10617
0
  std::string answer;
10618
0
  auto back = std::back_insert_iterator(answer);
10619
0
  answer.append("{\n");
10620
0
  answer.append("\t\"protocol\":\"");
10621
0
  helpers::encode_json(get_protocol(), back);
10622
0
  answer.append("\",\n");
10623
0
  if (has_credentials()) {
10624
0
    answer.append("\t\"username\":\"");
10625
0
    helpers::encode_json(username, back);
10626
0
    answer.append("\",\n");
10627
0
    answer.append("\t\"password\":\"");
10628
0
    helpers::encode_json(password, back);
10629
0
    answer.append("\",\n");
10630
0
  }
10631
0
  if (host.has_value()) {
10632
0
    answer.append("\t\"host\":\"");
10633
0
    helpers::encode_json(host.value(), back);
10634
0
    answer.append("\",\n");
10635
0
  }
10636
0
  if (port.has_value()) {
10637
0
    answer.append("\t\"port\":\"");
10638
0
    answer.append(std::to_string(port.value()));
10639
0
    answer.append("\",\n");
10640
0
  }
10641
0
  answer.append("\t\"path\":\"");
10642
0
  helpers::encode_json(path, back);
10643
0
  answer.append("\",\n");
10644
0
  answer.append("\t\"opaque path\":");
10645
0
  answer.append((has_opaque_path ? "true" : "false"));
10646
0
  if (has_search()) {
10647
0
    answer.append(",\n");
10648
0
    answer.append("\t\"query\":\"");
10649
    // NOLINTNEXTLINE(bugprone-unchecked-optional-access)
10650
0
    helpers::encode_json(query.value(), back);
10651
0
    answer.append("\"");
10652
0
  }
10653
0
  if (hash.has_value()) {
10654
0
    answer.append(",\n");
10655
0
    answer.append("\t\"hash\":\"");
10656
0
    helpers::encode_json(hash.value(), back);
10657
0
    answer.append("\"");
10658
0
  }
10659
0
  answer.append("\n}");
10660
0
  return answer;
10661
0
}
10662
10663
0
[[nodiscard]] bool url::has_valid_domain() const noexcept {
10664
0
  if (!host.has_value()) {
10665
0
    return false;
10666
0
  }
10667
0
  return checkers::verify_dns_length(*host);
10668
0
}
10669
10670
0
[[nodiscard]] std::string url::get_origin() const {
10671
0
  if (is_special()) {
10672
    // Return a new opaque origin.
10673
0
    if (type == scheme::FILE) {
10674
0
      return "null";
10675
0
    }
10676
0
    return ada::helpers::concat(get_protocol(), "//", get_host());
10677
0
  }
10678
10679
0
  if (non_special_scheme == "blob") {
10680
0
    if (!path.empty()) {
10681
0
      auto result = ada::parse<ada::url>(path);
10682
0
      if (result &&
10683
0
          (result->type == scheme::HTTP || result->type == scheme::HTTPS)) {
10684
        // If pathURL's scheme is not "http" and not "https", then return a
10685
        // new opaque origin.
10686
0
        return ada::helpers::concat(result->get_protocol(), "//",
10687
0
                                    result->get_host());
10688
0
      }
10689
0
    }
10690
0
  }
10691
10692
  // Return a new opaque origin.
10693
0
  return "null";
10694
0
}
10695
10696
0
[[nodiscard]] std::string url::get_protocol() const {
10697
0
  if (is_special()) {
10698
0
    return helpers::concat(ada::scheme::details::is_special_list[type], ":");
10699
0
  }
10700
  // We only move the 'scheme' if it is non-special.
10701
0
  return helpers::concat(non_special_scheme, ":");
10702
0
}
10703
10704
0
[[nodiscard]] std::string url::get_host() const {
10705
  // If url's host is null, then return the empty string.
10706
  // If url's port is null, return url's host, serialized.
10707
  // Return url's host, serialized, followed by U+003A (:) and url's port,
10708
  // serialized.
10709
0
  if (!host.has_value()) {
10710
0
    return "";
10711
0
  }
10712
0
  if (port.has_value()) {
10713
0
    return host.value() + ":" + get_port();
10714
0
  }
10715
0
  return host.value();
10716
0
}
10717
10718
0
[[nodiscard]] std::string url::get_hostname() const {
10719
0
  return host.value_or("");
10720
0
}
10721
10722
0
[[nodiscard]] std::string url::get_search() const {
10723
  // If this's URL's query is either null or the empty string, then return the
10724
  // empty string. Return U+003F (?), followed by this's URL's query.
10725
0
  return (!query.has_value() || (query->empty())) ? "" : "?" + query.value();
10726
0
}
10727
10728
0
[[nodiscard]] const std::string& url::get_username() const noexcept {
10729
0
  return username;
10730
0
}
10731
10732
0
[[nodiscard]] const std::string& url::get_password() const noexcept {
10733
0
  return password;
10734
0
}
10735
10736
0
[[nodiscard]] std::string url::get_port() const {
10737
0
  return port.has_value() ? std::to_string(port.value()) : "";
10738
0
}
10739
10740
0
[[nodiscard]] std::string url::get_hash() const {
10741
  // If this's URL's fragment is either null or the empty string, then return
10742
  // the empty string. Return U+0023 (#), followed by this's URL's fragment.
10743
0
  return (!hash.has_value() || (hash->empty())) ? "" : "#" + hash.value();
10744
0
}
10745
10746
0
bool url::needs_rollback_snapshot(size_t input_len) const noexcept {
10747
0
  return get_href_size() + input_len + 16 > ada::get_max_input_length();
10748
0
}
10749
10750
template <bool override_hostname>
10751
0
bool url::set_host_or_hostname(const std::string_view input) {
10752
0
  if (has_opaque_path) {
10753
0
    return false;
10754
0
  }
10755
10756
0
  url saved_url(*this);
10757
10758
0
  size_t host_end_pos = input.find('#');
10759
0
  std::string _host(input.data(), host_end_pos != std::string_view::npos
10760
0
                                      ? host_end_pos
10761
0
                                      : input.size());
10762
0
  helpers::remove_ascii_tab_or_newline(_host);
10763
0
  std::string_view new_host(_host);
10764
10765
0
  auto check_url_size = [&]() -> bool {
10766
0
    if (get_href_size() > ada::get_max_input_length()) {
10767
0
      *this = std::move(saved_url);
10768
0
      return false;
10769
0
    }
10770
0
    return true;
10771
0
  };
Unexecuted instantiation: ada::url::set_host_or_hostname<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda()#1}::operator()() const
Unexecuted instantiation: ada::url::set_host_or_hostname<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda()#1}::operator()() const
10772
10773
  // If url's scheme is "file", then set state to file host state, instead of
10774
  // host state.
10775
0
  if (type != ada::scheme::type::FILE) {
10776
0
    std::string_view host_view(_host.data(), _host.length());
10777
0
    auto [location, found_colon] =
10778
0
        helpers::get_host_delimiter_location(is_special(), host_view);
10779
10780
    // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
10781
    // Note: the 'found_colon' value is true if and only if a colon was
10782
    // encountered while not inside brackets.
10783
0
    if (found_colon) {
10784
      // If buffer is the empty string, host-missing validation error, return
10785
      // failure.
10786
0
      std::string_view buffer = host_view.substr(0, location);
10787
0
      if (buffer.empty()) {
10788
0
        return false;
10789
0
      }
10790
10791
      // If state override is given and state override is hostname state, then
10792
      // return failure.
10793
0
      if constexpr (override_hostname) {
10794
0
        return false;
10795
0
      }
10796
10797
      // Let host be the result of host parsing buffer with url is not special.
10798
0
      bool succeeded = parse_host(buffer);
10799
0
      if (!succeeded) {
10800
0
        *this = std::move(saved_url);
10801
0
        return false;
10802
0
      }
10803
10804
      // Set url's host to host, buffer to the empty string, and state to port
10805
      // state.
10806
      // Not set_port(): its size check and rollback cover only the port.
10807
0
      std::string_view port_buffer = new_host.substr(location + 1);
10808
0
      std::string_view digits =
10809
0
          port_buffer.substr(0, port_buffer.find_first_not_of("0123456789"));
10810
0
      if (!digits.empty() && !cannot_have_credentials_or_port()) {
10811
0
        parse_port(digits);
10812
0
        is_valid = true;  // an out-of-range port is ignored
10813
0
      }
10814
0
      return check_url_size();
10815
0
    }
10816
    // Otherwise, if one of the following is true:
10817
    // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
10818
    // - url is special and c is U+005C (\)
10819
0
    else {
10820
      // If url is special and host_view is the empty string, host-missing
10821
      // validation error, return failure.
10822
0
      if (host_view.empty() && is_special()) {
10823
0
        return false;
10824
0
      }
10825
10826
      // Otherwise, if state override is given, host_view is the empty string,
10827
      // and either url includes credentials or url's port is non-null, then
10828
      // return failure.
10829
0
      if (host_view.empty() && (has_credentials() || port.has_value())) {
10830
0
        return false;
10831
0
      }
10832
10833
      // Let host be the result of host parsing host_view with url is not
10834
      // special.
10835
0
      if (host_view.empty() && !is_special()) {
10836
0
        host = "";
10837
0
        return check_url_size();
10838
0
      }
10839
10840
0
      bool succeeded = parse_host(host_view);
10841
0
      if (!succeeded) {
10842
0
        *this = std::move(saved_url);
10843
0
        return false;
10844
0
      }
10845
0
      return check_url_size();
10846
0
    }
10847
0
  }
10848
10849
0
  size_t location = new_host.find_first_of("/\\?");
10850
0
  if (location != std::string_view::npos) {
10851
0
    new_host.remove_suffix(new_host.length() - location);
10852
0
  }
10853
10854
0
  if (new_host.empty()) {
10855
    // Set url's host to the empty string.
10856
0
    host = "";
10857
0
  } else {
10858
    // Let host be the result of host parsing buffer with url is not special.
10859
0
    if (!parse_host(new_host)) {
10860
0
      *this = std::move(saved_url);
10861
0
      return false;
10862
0
    }
10863
10864
    // If host is "localhost", then set host to the empty string.
10865
0
    if (host == "localhost") {
10866
0
      host = "";
10867
0
    }
10868
0
  }
10869
0
  return check_url_size();
10870
0
}
Unexecuted instantiation: bool ada::url::set_host_or_hostname<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
Unexecuted instantiation: bool ada::url::set_host_or_hostname<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
10871
10872
0
bool url::set_host(const std::string_view input) {
10873
0
  return set_host_or_hostname<false>(input);
10874
0
}
10875
10876
0
bool url::set_hostname(const std::string_view input) {
10877
0
  return set_host_or_hostname<true>(input);
10878
0
}
10879
10880
0
bool url::set_username(const std::string_view input) {
10881
0
  if (helpers::overlaps(input, username)) {
10882
0
    return set_username(std::string(input));
10883
0
  }
10884
0
  if (cannot_have_credentials_or_port()) {
10885
0
    return false;
10886
0
  }
10887
0
  auto previous_username = std::move(username);
10888
0
  username = ada::unicode::percent_encode(
10889
0
      input, character_sets::USERINFO_PERCENT_ENCODE);
10890
0
  if (get_href_size() > ada::get_max_input_length()) {
10891
0
    username = std::move(previous_username);
10892
0
    return false;
10893
0
  }
10894
0
  return true;
10895
0
}
10896
10897
0
bool url::set_password(const std::string_view input) {
10898
0
  if (helpers::overlaps(input, password)) {
10899
0
    return set_password(std::string(input));
10900
0
  }
10901
0
  if (cannot_have_credentials_or_port()) {
10902
0
    return false;
10903
0
  }
10904
0
  auto previous_password = std::move(password);
10905
0
  password = ada::unicode::percent_encode(
10906
0
      input, character_sets::USERINFO_PERCENT_ENCODE);
10907
0
  if (get_href_size() > ada::get_max_input_length()) {
10908
0
    password = std::move(previous_password);
10909
0
    return false;
10910
0
  }
10911
0
  return true;
10912
0
}
10913
10914
0
bool url::set_port(const std::string_view input) {
10915
0
  if (cannot_have_credentials_or_port()) {
10916
0
    return false;
10917
0
  }
10918
10919
0
  if (input.empty()) {
10920
0
    port = std::nullopt;
10921
0
    return true;
10922
0
  }
10923
10924
0
  std::string trimmed(input);
10925
0
  helpers::remove_ascii_tab_or_newline(trimmed);
10926
10927
0
  if (trimmed.empty()) {
10928
0
    return true;
10929
0
  }
10930
10931
  // Input should not start with a non-digit character.
10932
0
  if (!ada::unicode::is_ascii_digit(trimmed.front())) {
10933
0
    return false;
10934
0
  }
10935
10936
  // Find the first non-digit character to determine the length of digits
10937
0
  auto first_non_digit =
10938
0
      std::ranges::find_if_not(trimmed, ada::unicode::is_ascii_digit);
10939
0
  std::string_view digits_to_parse =
10940
0
      std::string_view(trimmed.data(), first_non_digit - trimmed.begin());
10941
10942
  // Revert changes if parse_port fails.
10943
0
  std::optional<uint16_t> previous_port = port;
10944
0
  parse_port(digits_to_parse);
10945
0
  if (is_valid) {
10946
0
    if (get_href_size() > ada::get_max_input_length()) {
10947
0
      port = std::move(previous_port);
10948
0
      return false;
10949
0
    }
10950
0
    return true;
10951
0
  }
10952
0
  port = std::move(previous_port);
10953
0
  is_valid = true;
10954
0
  return false;
10955
0
}
10956
10957
0
void url::set_hash(const std::string_view input) {
10958
0
  if (input.empty()) {
10959
0
    hash = std::nullopt;
10960
0
    helpers::strip_trailing_spaces_from_opaque_path(*this);
10961
0
    return;
10962
0
  }
10963
10964
0
  std::string new_value;
10965
0
  new_value = input[0] == '#' ? input.substr(1) : input;
10966
0
  helpers::remove_ascii_tab_or_newline(new_value);
10967
0
  auto previous_hash = std::move(hash);
10968
0
  hash = unicode::percent_encode(new_value,
10969
0
                                 ada::character_sets::FRAGMENT_PERCENT_ENCODE);
10970
0
  if (get_href_size() > ada::get_max_input_length()) {
10971
0
    hash = std::move(previous_hash);
10972
0
  }
10973
0
}
10974
10975
0
void url::set_search(const std::string_view input) {
10976
0
  if (input.empty()) {
10977
0
    query = std::nullopt;
10978
0
    helpers::strip_trailing_spaces_from_opaque_path(*this);
10979
0
    return;
10980
0
  }
10981
10982
0
  std::string new_value;
10983
0
  new_value = input[0] == '?' ? input.substr(1) : input;
10984
0
  helpers::remove_ascii_tab_or_newline(new_value);
10985
10986
0
  auto query_percent_encode_set =
10987
0
      is_special() ? ada::character_sets::SPECIAL_QUERY_PERCENT_ENCODE
10988
0
                   : ada::character_sets::QUERY_PERCENT_ENCODE;
10989
10990
0
  auto previous_query = std::move(query);
10991
0
  query = ada::unicode::percent_encode(new_value, query_percent_encode_set);
10992
0
  if (get_href_size() > ada::get_max_input_length()) {
10993
0
    query = std::move(previous_query);
10994
0
  }
10995
0
}
10996
10997
0
bool url::set_pathname(const std::string_view input) {
10998
0
  if (helpers::overlaps(input, path)) {
10999
0
    return set_pathname(std::string(input));
11000
0
  }
11001
0
  if (has_opaque_path) {
11002
0
    return false;
11003
0
  }
11004
0
  auto previous_path = std::move(path);
11005
0
  path.clear();
11006
0
  parse_path(input);
11007
0
  if (get_href_size() > ada::get_max_input_length()) {
11008
0
    path = std::move(previous_path);
11009
0
    return false;
11010
0
  }
11011
0
  return true;
11012
0
}
11013
11014
0
bool url::set_protocol(const std::string_view input) {
11015
0
  std::string view(input);
11016
0
  helpers::remove_ascii_tab_or_newline(view);
11017
0
  if (view.empty()) {
11018
0
    return true;
11019
0
  }
11020
11021
  // Schemes should start with alpha values.
11022
0
  if (!checkers::is_alpha(view[0])) {
11023
0
    return false;
11024
0
  }
11025
11026
0
  view.append(":");
11027
11028
0
  std::string::iterator pointer =
11029
0
      std::ranges::find_if_not(view, unicode::is_alnum_plus);
11030
11031
0
  if (pointer != view.end() && *pointer == ':') {
11032
0
    std::optional<url> saved_url;
11033
0
    if (needs_rollback_snapshot(view.size())) {
11034
0
      saved_url = *this;
11035
0
    }
11036
0
    bool result = parse_scheme<true>(
11037
0
        std::string_view(view.data(), pointer - view.begin()));
11038
0
    if (result && saved_url && get_href_size() > ada::get_max_input_length()) {
11039
0
      *this = std::move(*saved_url);
11040
0
      return false;
11041
0
    }
11042
0
    return result;
11043
0
  }
11044
0
  return false;
11045
0
}
11046
11047
0
bool url::set_href(const std::string_view input) {
11048
0
  ada::result<ada::url> out = ada::parse<ada::url>(input);
11049
11050
0
  if (out) {
11051
    // The parser enforces get_max_input_length() on both the input and the
11052
    // normalized result. This is a defense-in-depth check.
11053
0
    if (out->get_href_size() > ada::get_max_input_length()) {
11054
0
      return false;
11055
0
    }
11056
0
    *this = std::move(*out);
11057
0
  }
11058
11059
0
  return out.has_value();
11060
0
}
11061
11062
}  // namespace ada
11063
/* end file src/url.cpp */
11064
/* begin file src/parser.cpp */
11065
11066
#include <array>
11067
#include <bit>
11068
#include <charconv>
11069
#include <cstdint>
11070
#include <cstring>
11071
#include <limits>
11072
#include <optional>
11073
#include <ranges>
11074
#include <string>
11075
#include <string_view>
11076
#include <utility>
11077
11078
11079
#if ADA_NEON
11080
#include <arm_neon.h>
11081
#elif defined(__SSSE3__)
11082
#include <tmmintrin.h>
11083
#define ADA_PARSER_SSSE3 1
11084
#elif (defined(__x86_64__) || defined(__amd64__)) && defined(__GNUC__) && \
11085
    !defined(_MSC_VER)
11086
// gcc/clang honor target("ssse3"). clang-cl and MSVC do not: they still
11087
// compile the function as SSE2, then reject always_inline _mm_shuffle_epi8.
11088
#include <tmmintrin.h>
11089
#define ADA_PARSER_SSSE3 1
11090
#define ADA_PARSER_NEED_SSSE3_TARGET 1
11091
#elif ADA_SSE2
11092
#include <emmintrin.h>
11093
#endif
11094
#ifndef ADA_PARSER_SSSE3
11095
#define ADA_PARSER_SSSE3 0
11096
#endif
11097
11098
#ifdef ADA_PARSER_NEED_SSSE3_TARGET
11099
// Scan loops stay on the default ISA (SSE2 for generic x86-64). pshufb lives
11100
// in a noinline SSSE3 function so the CPU check is not inside a function the
11101
// compiler is free to compile entirely with SSSE3 instructions.
11102
#define ADA_PARSER_SIMD ada_really_inline
11103
#define ADA_PARSER_SSSE3_FN __attribute__((target("ssse3"), noinline))
11104
#else
11105
#define ADA_PARSER_SIMD ada_really_inline
11106
#define ADA_PARSER_SSSE3_FN ada_really_inline
11107
#endif
11108
11109
#ifdef ADA_REGULAR_VISUAL_STUDIO
11110
#include <intrin.h>
11111
#endif
11112
11113
namespace ada::parser {
11114
11115
// Classification tables and 16-byte run scanners for the absolute-URL fast
11116
// path. Inspired by oven-sh/WebKit#452 and #454: scan 16 bytes at a time
11117
// (nibble-table pshufb/tbl when SSSE3 or NEON is available), and when the
11118
// path/query/fragment is not already canonical, keep the parsed host and
11119
// finish with the existing path helpers instead of re-parsing from scratch.
11120
namespace {
11121
11122
// 0 = host byte, 1 = host delimiter (/ ? # :), 2 = reject
11123
constexpr std::array<uint8_t, 256> k_host_class = []() consteval {
11124
  std::array<uint8_t, 256> t{};
11125
  for (size_t i = 0; i < 256; ++i) {
11126
    t[i] = 2;
11127
  }
11128
  for (size_t i = 0x21; i <= 0x7E; ++i) {
11129
    t[i] = 0;
11130
  }
11131
  for (uint8_t c :
11132
       {'#', '/', ':', '<', '>', '?', '@', '[', '\\', ']', '^', '|', '%'}) {
11133
    t[c] = 2;
11134
  }
11135
  t[static_cast<uint8_t>('/')] = 1;
11136
  t[static_cast<uint8_t>('?')] = 1;
11137
  t[static_cast<uint8_t>('#')] = 1;
11138
  t[static_cast<uint8_t>(':')] = 1;
11139
  return t;
11140
}();
11141
11142
// Path: 0 = copy, 1 = ?/#, 2 = needs work. Apostrophe is copyable in a path.
11143
constexpr std::array<uint8_t, 256> k_path = []() consteval {
11144
  std::array<uint8_t, 256> t{};
11145
  for (size_t i = 0; i < 256; ++i) {
11146
    t[i] = 2;
11147
  }
11148
  for (uint8_t c = 0x21; c <= 0x7E; ++c) {
11149
    t[c] = 0;
11150
  }
11151
  for (uint8_t c : {static_cast<uint8_t>('"'), static_cast<uint8_t>('<'),
11152
                    static_cast<uint8_t>('>'), static_cast<uint8_t>('`'),
11153
                    static_cast<uint8_t>('{'), static_cast<uint8_t>('}'),
11154
                    static_cast<uint8_t>('^'), static_cast<uint8_t>('\\'),
11155
                    static_cast<uint8_t>('%')}) {
11156
    t[c] = 2;
11157
  }
11158
  t[static_cast<uint8_t>('?')] = 1;
11159
  t[static_cast<uint8_t>('#')] = 1;
11160
  return t;
11161
}();
11162
11163
// Special-query: 0 = copy, 1 = #, 2 = needs work. Apostrophe must be encoded.
11164
constexpr std::array<uint8_t, 256> k_query = []() consteval {
11165
  std::array<uint8_t, 256> t{};
11166
  for (size_t i = 0; i < 256; ++i) {
11167
    t[i] = 2;
11168
  }
11169
  for (uint8_t c = 0x21; c <= 0x7E; ++c) {
11170
    t[c] = 0;
11171
  }
11172
  for (uint8_t c : {static_cast<uint8_t>('"'), static_cast<uint8_t>('<'),
11173
                    static_cast<uint8_t>('>'), static_cast<uint8_t>('\'')}) {
11174
    t[c] = 2;
11175
  }
11176
  t[static_cast<uint8_t>('#')] = 1;
11177
  return t;
11178
}();
11179
11180
// Fragment: 0 = copy, 2 = needs work. '?' '#' '%' are copyable.
11181
constexpr std::array<uint8_t, 256> k_hash = []() consteval {
11182
  std::array<uint8_t, 256> t{};
11183
  for (size_t i = 0; i < 256; ++i) {
11184
    t[i] = 2;
11185
  }
11186
  for (uint8_t c = 0x21; c <= 0x7E; ++c) {
11187
    t[c] = 0;
11188
  }
11189
  for (uint8_t c : {static_cast<uint8_t>('"'), static_cast<uint8_t>('<'),
11190
                    static_cast<uint8_t>('>'), static_cast<uint8_t>('`')}) {
11191
    t[c] = 2;
11192
  }
11193
  return t;
11194
}();
11195
11196
// Nibble tables for pshufb / tbl classification (oven-sh/WebKit#454).
11197
// A byte is a stop when low[b & 0xF] & high[b >> 4] != 0. High nibbles whose
11198
// sixteen bytes share a stop pattern share a bit, so any set with at most
11199
// eight distinct patterns fits. Tables are built from the scalar class
11200
// arrays, so the vector and scalar paths cannot disagree.
11201
struct nibble_tables {
11202
  alignas(16) uint8_t low[16]{};
11203
  alignas(16) uint8_t high[16]{};
11204
  bool fits{true};
11205
};
11206
11207
consteval nibble_tables make_stop_nibble_tables(
11208
    const std::array<uint8_t, 256>& cls) {
11209
  nibble_tables t{};
11210
  uint16_t patterns[16]{};
11211
  for (int hi = 0; hi < 16; ++hi) {
11212
    for (int lo = 0; lo < 16; ++lo) {
11213
      if (cls[static_cast<size_t>((hi << 4) | lo)] != 0) {
11214
        patterns[hi] = static_cast<uint16_t>(patterns[hi] | (1u << lo));
11215
      }
11216
    }
11217
  }
11218
  int bits_used = 0;
11219
  for (int hi = 0; hi < 16; ++hi) {
11220
    if (patterns[hi] == 0 || t.high[hi] != 0) {
11221
      continue;
11222
    }
11223
    if (bits_used == 8) {
11224
      t.fits = false;
11225
      return t;
11226
    }
11227
    const uint8_t bit = static_cast<uint8_t>(1u << bits_used++);
11228
    for (int other = hi; other < 16; ++other) {
11229
      if (patterns[other] == patterns[hi]) {
11230
        t.high[other] = static_cast<uint8_t>(t.high[other] | bit);
11231
      }
11232
    }
11233
    for (int lo = 0; lo < 16; ++lo) {
11234
      if ((patterns[hi] & (1u << lo)) != 0) {
11235
        t.low[lo] = static_cast<uint8_t>(t.low[lo] | bit);
11236
      }
11237
    }
11238
  }
11239
  return t;
11240
}
11241
11242
constexpr nibble_tables k_host_nibbles = make_stop_nibble_tables(k_host_class);
11243
constexpr nibble_tables k_path_nibbles = make_stop_nibble_tables(k_path);
11244
constexpr nibble_tables k_query_nibbles = make_stop_nibble_tables(k_query);
11245
constexpr nibble_tables k_hash_nibbles = make_stop_nibble_tables(k_hash);
11246
static_assert(k_host_nibbles.fits);
11247
static_assert(k_path_nibbles.fits);
11248
static_assert(k_query_nibbles.fits);
11249
static_assert(k_hash_nibbles.fits);
11250
11251
// WHATWG serializes a port as its decimal value with no leading zeros.
11252
2.47k
ada_really_inline uint32_t port_decimal_digit_count(uint32_t port) noexcept {
11253
2.47k
  uint32_t digits = 1;
11254
3.31k
  while (port >= 10) {
11255
842
    port /= 10;
11256
842
    ++digits;
11257
842
  }
11258
2.47k
  return digits;
11259
2.47k
}
11260
11261
ada_really_inline void append_canonical_port(std::string& buffer,
11262
685
                                             uint32_t port) {
11263
685
  buffer += ':';
11264
685
  char port_buf[5];
11265
685
  auto [ptr, ec] = std::to_chars(port_buf, port_buf + 5, port);
11266
685
  (void)ec;
11267
685
  buffer.append(port_buf, static_cast<size_t>(ptr - port_buf));
11268
685
}
11269
11270
12.3k
ada_really_inline int trailing_zeroes32(uint32_t input_num) noexcept {
11271
#ifdef ADA_REGULAR_VISUAL_STUDIO
11272
  unsigned long ret;
11273
  _BitScanForward(&ret, input_num);
11274
  return static_cast<int>(ret);
11275
#else
11276
12.3k
  return __builtin_ctz(input_num);
11277
12.3k
#endif
11278
12.3k
}
11279
11280
0
ada_really_inline int trailing_zeroes64(uint64_t input_num) noexcept {
11281
0
#ifdef ADA_REGULAR_VISUAL_STUDIO
11282
0
  unsigned long ret;
11283
0
  _BitScanForward64(&ret, input_num);
11284
0
  return static_cast<int>(ret);
11285
0
#else
11286
0
  return __builtin_ctzll(input_num);
11287
0
#endif
11288
0
}
11289
11290
#if ADA_PARSER_SSSE3
11291
29.4k
ADA_PARSER_SIMD __m128i nibble_load(const uint8_t* t) noexcept {
11292
29.4k
  return _mm_load_si128(reinterpret_cast<const __m128i*>(t));
11293
29.4k
}
11294
11295
// Non-zero lanes are stops. Tables are passed in so the scan loops can hoist
11296
// the loads out of the 16-byte iteration.
11297
ADA_PARSER_SSSE3_FN int ssse3_nibble_mask(__m128i w, __m128i lo_tbl,
11298
38.8k
                                          __m128i hi_tbl) noexcept {
11299
38.8k
  const __m128i nibble = _mm_set1_epi8(0x0F);
11300
38.8k
  const __m128i lo = _mm_and_si128(w, nibble);
11301
38.8k
  const __m128i hi = _mm_and_si128(_mm_srli_epi16(w, 4), nibble);
11302
38.8k
  const __m128i hit =
11303
38.8k
      _mm_and_si128(_mm_shuffle_epi8(lo_tbl, lo), _mm_shuffle_epi8(hi_tbl, hi));
11304
38.8k
  return _mm_movemask_epi8(_mm_cmpeq_epi8(hit, _mm_setzero_si128())) ^ 0xFFFF;
11305
38.8k
}
11306
#endif  // ADA_PARSER_SSSE3
11307
11308
#if ADA_SSE2
11309
#if !ADA_PARSER_SSSE3
11310
// Signed < 0x21 matches 0x00-0x20 and 0x80-0xFF; 0x7F is checked separately.
11311
ada_really_inline __m128i sse2_ctrl_or_nonascii(__m128i w) noexcept {
11312
  return _mm_or_si128(_mm_cmplt_epi8(w, _mm_set1_epi8(0x21)),
11313
                      _mm_cmpeq_epi8(w, _mm_set1_epi8(0x7F)));
11314
}
11315
11316
ada_really_inline int sse2_host_stop(__m128i w) noexcept {
11317
  const __m128i ctrl = sse2_ctrl_or_nonascii(w);
11318
  const __m128i is_upper = _mm_and_si128(
11319
      _mm_cmpgt_epi8(w, _mm_set1_epi8(static_cast<char>('A' - 1))),
11320
      _mm_cmplt_epi8(w, _mm_set1_epi8(static_cast<char>('Z' + 1))));
11321
  const __m128i at = _mm_sub_epi8(w, _mm_set1_epi8('@'));
11322
  const __m128i at_through_caret =
11323
      _mm_cmpeq_epi8(_mm_min_epu8(at, _mm_set1_epi8('^' - '@')), at);
11324
  const __m128i at_not_upper = _mm_andnot_si128(is_upper, at_through_caret);
11325
  const __m128i spec = _mm_or_si128(
11326
      _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('#')),
11327
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('%'))),
11328
                   _mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('/')),
11329
                                _mm_cmpeq_epi8(w, _mm_set1_epi8(':')))),
11330
      _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('<')),
11331
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('>'))),
11332
                   _mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('?')),
11333
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('|')))));
11334
  return _mm_movemask_epi8(
11335
      _mm_or_si128(_mm_or_si128(ctrl, at_not_upper), spec));
11336
}
11337
11338
ada_really_inline int sse2_path_stop(__m128i w) noexcept {
11339
  const __m128i ctrl = sse2_ctrl_or_nonascii(w);
11340
  const __m128i spec = _mm_or_si128(
11341
      _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('"')),
11342
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('#'))),
11343
                   _mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('%')),
11344
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('<')))),
11345
      _mm_or_si128(
11346
          _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('>')),
11347
                                    _mm_cmpeq_epi8(w, _mm_set1_epi8('?'))),
11348
                       _mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('\\')),
11349
                                    _mm_cmpeq_epi8(w, _mm_set1_epi8('^')))),
11350
          _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('`')),
11351
                                    _mm_cmpeq_epi8(w, _mm_set1_epi8('{'))),
11352
                       _mm_cmpeq_epi8(w, _mm_set1_epi8('}')))));
11353
  return _mm_movemask_epi8(_mm_or_si128(ctrl, spec));
11354
}
11355
11356
ada_really_inline int sse2_query_stop(__m128i w) noexcept {
11357
  const __m128i ctrl = sse2_ctrl_or_nonascii(w);
11358
  const __m128i spec = _mm_or_si128(
11359
      _mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('"')),
11360
                   _mm_cmpeq_epi8(w, _mm_set1_epi8('#'))),
11361
      _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('<')),
11362
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('>'))),
11363
                   _mm_cmpeq_epi8(w, _mm_set1_epi8('\''))));
11364
  return _mm_movemask_epi8(_mm_or_si128(ctrl, spec));
11365
}
11366
11367
ada_really_inline int sse2_hash_stop(__m128i w) noexcept {
11368
  const __m128i ctrl = sse2_ctrl_or_nonascii(w);
11369
  const __m128i spec =
11370
      _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('"')),
11371
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('<'))),
11372
                   _mm_or_si128(_mm_cmpeq_epi8(w, _mm_set1_epi8('>')),
11373
                                _mm_cmpeq_epi8(w, _mm_set1_epi8('`'))));
11374
  return _mm_movemask_epi8(_mm_or_si128(ctrl, spec));
11375
}
11376
#endif  // !ADA_PARSER_SSSE3
11377
11378
19.6k
ada_really_inline int sse2_uppercase(__m128i w) noexcept {
11379
19.6k
  return _mm_movemask_epi8(_mm_and_si128(
11380
19.6k
      _mm_cmpgt_epi8(w, _mm_set1_epi8(static_cast<char>('A' - 1))),
11381
19.6k
      _mm_cmplt_epi8(w, _mm_set1_epi8(static_cast<char>('Z' + 1)))));
11382
19.6k
}
11383
#endif  // ADA_SSE2
11384
11385
#if ADA_NEON
11386
ada_really_inline uint64_t neon_nibble_bits(uint8x16_t matches) noexcept {
11387
  const uint8x8_t nib = vshrn_n_u16(vreinterpretq_u16_u8(matches), 4);
11388
  return vget_lane_u64(vreinterpret_u64_u8(nib), 0);
11389
}
11390
11391
ada_really_inline uint64_t neon_table_stop(uint8x16_t w, uint8x16_t lo_tbl,
11392
                                           uint8x16_t hi_tbl) noexcept {
11393
  const uint8x16_t hit =
11394
      vandq_u8(vqtbl1q_u8(lo_tbl, vandq_u8(w, vdupq_n_u8(0x0F))),
11395
               vqtbl1q_u8(hi_tbl, vshrq_n_u8(w, 4)));
11396
  return neon_nibble_bits(vtstq_u8(hit, hit));
11397
}
11398
11399
ada_really_inline uint64_t neon_uppercase(uint8x16_t w) noexcept {
11400
  return neon_nibble_bits(
11401
      vandq_u8(vcgeq_u8(w, vdupq_n_u8('A')), vcleq_u8(w, vdupq_n_u8('Z'))));
11402
}
11403
#endif  // ADA_NEON
11404
11405
// True when '@' appears in the authority before '/', '?', or '#'.
11406
// One 16-byte window covers typical userinfo (SetHref's "user:pass@").
11407
// Longer userinfo still misses inside the never_inline fast path. No
11408
// '@' is a single load + compare so the parse hot path stays cheap.
11409
// Fewer than 16 bytes always returns false: scan_plain_host rejects '@'
11410
// on its own, and a byte loop here would walk a short host twice.
11411
ada_really_inline bool authority_has_at(const uint8_t* p, size_t host_start,
11412
3.39k
                                        size_t n) noexcept {
11413
3.39k
  const size_t rem = n - host_start;
11414
#if ADA_NEON
11415
  if (rem >= 16) {
11416
    const uint8x16_t w = vld1q_u8(p + host_start);
11417
    const uint64_t at = neon_nibble_bits(vceqq_u8(w, vdupq_n_u8('@')));
11418
    if (at == 0) {
11419
      return false;
11420
    }
11421
    const uint64_t delim = neon_nibble_bits(vceqq_u8(w, vdupq_n_u8('/'))) |
11422
                           neon_nibble_bits(vceqq_u8(w, vdupq_n_u8('?'))) |
11423
                           neon_nibble_bits(vceqq_u8(w, vdupq_n_u8('#')));
11424
    return delim == 0 || std::countr_zero(at) < std::countr_zero(delim);
11425
  }
11426
#elif ADA_SSE2
11427
3.39k
  if (rem >= 16) {
11428
1.09k
    const __m128i w =
11429
1.09k
        _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + host_start));
11430
1.09k
    const uint16_t at = static_cast<uint16_t>(
11431
1.09k
        _mm_movemask_epi8(_mm_cmpeq_epi8(w, _mm_set1_epi8('@'))));
11432
1.09k
    if (at == 0) {
11433
1.02k
      return false;
11434
1.02k
    }
11435
78
    const uint16_t delim = static_cast<uint16_t>(
11436
78
        _mm_movemask_epi8(_mm_cmpeq_epi8(w, _mm_set1_epi8('/'))) |
11437
78
        _mm_movemask_epi8(_mm_cmpeq_epi8(w, _mm_set1_epi8('?'))) |
11438
78
        _mm_movemask_epi8(_mm_cmpeq_epi8(w, _mm_set1_epi8('#'))));
11439
78
    return delim == 0 || std::countr_zero(at) < std::countr_zero(delim);
11440
1.09k
  }
11441
#else
11442
  (void)p;
11443
  (void)rem;
11444
#endif
11445
2.29k
  return false;
11446
3.39k
}
11447
11448
#if ADA_PARSER_SSSE3
11449
// True when this process can execute the SSSE3 scanners. When the binary was
11450
// built for SSSE3, the check is a constant. Otherwise it is cached from the
11451
// CPU and the scanners fall back to the scalar loops below.
11452
28.4k
ada_really_inline bool parser_use_ssse3() noexcept {
11453
28.4k
#ifdef ADA_PARSER_NEED_SSSE3_TARGET
11454
28.4k
  static const bool supported = __builtin_cpu_supports("ssse3") != 0;
11455
28.4k
  return supported;
11456
#else
11457
  return true;
11458
#endif
11459
28.4k
}
11460
#endif
11461
11462
// Returns false if a forbidden host code point is found. On success, *end is
11463
// the first / ? # or len. has_upper / has_x only count host bytes, not the
11464
// path/query bytes that may sit in the same SIMD window after the delimiter.
11465
ADA_PARSER_SIMD bool scan_plain_host(const uint8_t* b, size_t start, size_t len,
11466
                                     size_t& end, bool& has_upper,
11467
14.4k
                                     bool& has_x) noexcept {
11468
14.4k
  has_upper = false;
11469
14.4k
  has_x = false;
11470
14.4k
  size_t i = start;
11471
14.4k
#if ADA_PARSER_SSSE3
11472
14.4k
  if (parser_use_ssse3() && (len - start >= 16)) {
11473
7.74k
    const __m128i lo_tbl = nibble_load(k_host_nibbles.low);
11474
7.74k
    const __m128i hi_tbl = nibble_load(k_host_nibbles.high);
11475
7.74k
    const __m128i x_splat = _mm_set1_epi8('x');
11476
19.6k
    auto visit = [&](size_t at) noexcept -> bool {
11477
19.6k
      const __m128i w =
11478
19.6k
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + at));
11479
19.6k
      const int up = sse2_uppercase(w);
11480
19.6k
      const int xs = _mm_movemask_epi8(_mm_cmpeq_epi8(w, x_splat));
11481
19.6k
      const int mask = ssse3_nibble_mask(w, lo_tbl, hi_tbl);
11482
19.6k
      if (mask == 0) {
11483
12.0k
        if (up != 0) {
11484
870
          has_upper = true;
11485
870
        }
11486
12.0k
        if (xs != 0) {
11487
9.43k
          has_x = true;
11488
9.43k
        }
11489
12.0k
        return false;
11490
12.0k
      }
11491
7.60k
      const int hit = trailing_zeroes32(static_cast<uint32_t>(mask));
11492
7.60k
      const int valid = (1 << hit) - 1;
11493
7.60k
      if ((up & valid) != 0) {
11494
828
        has_upper = true;
11495
828
      }
11496
7.60k
      if ((xs & valid) != 0) {
11497
1.52k
        has_x = true;
11498
1.52k
      }
11499
7.60k
      end = at + static_cast<size_t>(hit);
11500
7.60k
      return true;
11501
19.6k
    };
11502
12.9k
    for (; i + 32 <= len; i += 32) {
11503
8.84k
      if (visit(i) || visit(i + 16)) {
11504
3.60k
        return k_host_class[b[end]] == 1;
11505
3.60k
      }
11506
8.84k
    }
11507
5.46k
    for (; i + 16 <= len; i += 16) {
11508
3.59k
      if (visit(i)) {
11509
2.28k
        return k_host_class[b[end]] == 1;
11510
2.28k
      }
11511
3.59k
    }
11512
    // Overlapping tail only after a full 16-byte step so the window cannot
11513
    // start before `start` (a prior '/' would otherwise look like a host stop).
11514
1.86k
    if (i > start && i < len) {
11515
1.79k
      if (visit(len - 16) && end >= i) {
11516
1.72k
        return k_host_class[b[end]] == 1;
11517
1.72k
      }
11518
72
      end = len;
11519
72
      return true;
11520
1.79k
    }
11521
1.86k
  }
11522
#elif ADA_SSE2
11523
  const __m128i x_splat = _mm_set1_epi8('x');
11524
  for (; i + 32 <= len; i += 32) {
11525
    for (size_t off = 0; off < 32; off += 16) {
11526
      const __m128i w =
11527
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i + off));
11528
      const int up = sse2_uppercase(w);
11529
      const int xs = _mm_movemask_epi8(_mm_cmpeq_epi8(w, x_splat));
11530
      const int mask = sse2_host_stop(w);
11531
      if (mask != 0) {
11532
        const int hit = trailing_zeroes32(static_cast<uint32_t>(mask));
11533
        const int valid = (1 << hit) - 1;
11534
        if ((up & valid) != 0) {
11535
          has_upper = true;
11536
        }
11537
        if ((xs & valid) != 0) {
11538
          has_x = true;
11539
        }
11540
        end = i + off + static_cast<size_t>(hit);
11541
        return k_host_class[b[end]] == 1;
11542
      }
11543
      if (up != 0) {
11544
        has_upper = true;
11545
      }
11546
      if (xs != 0) {
11547
        has_x = true;
11548
      }
11549
    }
11550
  }
11551
  for (; i + 16 <= len; i += 16) {
11552
    const __m128i w = _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i));
11553
    const int up = sse2_uppercase(w);
11554
    const int xs = _mm_movemask_epi8(_mm_cmpeq_epi8(w, x_splat));
11555
    const int mask = sse2_host_stop(w);
11556
    if (mask != 0) {
11557
      const int hit = trailing_zeroes32(static_cast<uint32_t>(mask));
11558
      const int valid = (1 << hit) - 1;
11559
      if ((up & valid) != 0) {
11560
        has_upper = true;
11561
      }
11562
      if ((xs & valid) != 0) {
11563
        has_x = true;
11564
      }
11565
      end = i + static_cast<size_t>(hit);
11566
      return k_host_class[b[end]] == 1;
11567
    }
11568
    if (up != 0) {
11569
      has_upper = true;
11570
    }
11571
    if (xs != 0) {
11572
      has_x = true;
11573
    }
11574
  }
11575
#elif ADA_NEON
11576
  if (len - start >= 16) {
11577
    const uint8x16_t lo_tbl = vld1q_u8(k_host_nibbles.low);
11578
    const uint8x16_t hi_tbl = vld1q_u8(k_host_nibbles.high);
11579
    const uint8x16_t x_splat = vdupq_n_u8('x');
11580
    auto visit = [&](size_t at) noexcept -> bool {
11581
      const uint8x16_t w = vld1q_u8(b + at);
11582
      const uint64_t up = neon_uppercase(w);
11583
      const uint64_t xs = neon_nibble_bits(vceqq_u8(w, x_splat));
11584
      const uint64_t bits = neon_table_stop(w, lo_tbl, hi_tbl);
11585
      if (bits == 0) {
11586
        if (up != 0) {
11587
          has_upper = true;
11588
        }
11589
        if (xs != 0) {
11590
          has_x = true;
11591
        }
11592
        return false;
11593
      }
11594
      const size_t hit = static_cast<size_t>(trailing_zeroes64(bits)) >> 2;
11595
      const uint64_t valid = (hit == 0) ? 0 : (uint64_t{1} << (hit * 4)) - 1;
11596
      if ((up & valid) != 0) {
11597
        has_upper = true;
11598
      }
11599
      if ((xs & valid) != 0) {
11600
        has_x = true;
11601
      }
11602
      end = at + hit;
11603
      return true;
11604
    };
11605
    for (; i + 32 <= len; i += 32) {
11606
      if (visit(i) || visit(i + 16)) {
11607
        return k_host_class[b[end]] == 1;
11608
      }
11609
    }
11610
    for (; i + 16 <= len; i += 16) {
11611
      if (visit(i)) {
11612
        return k_host_class[b[end]] == 1;
11613
      }
11614
    }
11615
    if (i > start && i < len) {
11616
      if (visit(len - 16) && end >= i) {
11617
        return k_host_class[b[end]] == 1;
11618
      }
11619
      end = len;
11620
      return true;
11621
    }
11622
  }
11623
#endif
11624
26.6k
  for (; i < len; ++i) {
11625
26.3k
    const uint8_t c = b[i];
11626
26.3k
    const uint8_t cls = k_host_class[c];
11627
26.3k
    if (cls == 1) {
11628
6.21k
      end = i;
11629
6.21k
      return true;
11630
6.21k
    }
11631
20.1k
    if (cls == 2) {
11632
206
      return false;
11633
206
    }
11634
19.9k
    if (c >= 'A' && c <= 'Z') {
11635
724
      has_upper = true;
11636
19.1k
    } else if (c == 'x') {
11637
2.89k
      has_x = true;
11638
2.89k
    }
11639
19.9k
  }
11640
328
  end = len;
11641
328
  return true;
11642
6.75k
}
11643
11644
ada_really_inline void note_possible_dot_segment(
11645
    const uint8_t* b, size_t pos, size_t run_start,
11646
4.49k
    bool& maybe_dot_segment) noexcept {
11647
4.49k
  if (pos == run_start || b[pos - 1] == '/') {
11648
2.19k
    maybe_dot_segment = true;
11649
2.19k
  }
11650
4.49k
}
11651
11652
#if ADA_PARSER_SSSE3 || ADA_SSE2
11653
// valid_mask selects bytes in this 16-byte window that belong to the path
11654
// (bits after a stop are cleared). A '.' starts a possible dot-segment when
11655
// it is the first path byte or immediately follows '/'.
11656
ada_really_inline void note_dots_in_window(const uint8_t* b, size_t i,
11657
                                           size_t run_start, __m128i w,
11658
                                           int valid_mask,
11659
11.4k
                                           bool& maybe_dot_segment) noexcept {
11660
11.4k
  if (maybe_dot_segment || valid_mask == 0) {
11661
4.06k
    return;
11662
4.06k
  }
11663
7.40k
  const int dots =
11664
7.40k
      _mm_movemask_epi8(_mm_cmpeq_epi8(w, _mm_set1_epi8('.'))) & valid_mask;
11665
7.40k
  if (dots == 0) {
11666
2.77k
    return;
11667
2.77k
  }
11668
4.62k
  const int slashes =
11669
4.62k
      _mm_movemask_epi8(_mm_cmpeq_epi8(w, _mm_set1_epi8('/'))) & valid_mask;
11670
4.62k
  if (((dots & 1) != 0 && (i == run_start || b[i - 1] == '/')) ||
11671
3.78k
      (dots & (slashes << 1)) != 0) {
11672
1.76k
    maybe_dot_segment = true;
11673
1.76k
  }
11674
4.62k
}
11675
#endif
11676
11677
#if ADA_NEON
11678
// Each NEON match nibble occupies 4 bits, so a '.' immediately after '/' is
11679
// (slashes << 4) rather than (slashes << 1).
11680
ada_really_inline void note_dots_in_window_neon(
11681
    const uint8_t* b, size_t i, size_t run_start, uint8x16_t w,
11682
    uint64_t valid_bits, bool& maybe_dot_segment) noexcept {
11683
  if (maybe_dot_segment || valid_bits == 0) {
11684
    return;
11685
  }
11686
  const uint64_t dots =
11687
      neon_nibble_bits(vceqq_u8(w, vdupq_n_u8('.'))) & valid_bits;
11688
  if (dots == 0) {
11689
    return;
11690
  }
11691
  const uint64_t slashes =
11692
      neon_nibble_bits(vceqq_u8(w, vdupq_n_u8('/'))) & valid_bits;
11693
  if (((dots & 0xF) != 0 && (i == run_start || b[i - 1] == '/')) ||
11694
      (dots & (slashes << 4)) != 0) {
11695
    maybe_dot_segment = true;
11696
  }
11697
}
11698
#endif
11699
11700
// Advance i to the first path-class 1 or 2 character (or len).
11701
ADA_PARSER_SIMD void scan_path_run(const uint8_t* b, size_t& i, size_t len,
11702
10.8k
                                   bool& maybe_dot_segment) noexcept {
11703
10.8k
  const size_t run_start = i;
11704
10.8k
#if ADA_PARSER_SSSE3
11705
10.8k
  if (parser_use_ssse3() && (i + 16 <= len)) {
11706
5.10k
    const __m128i lo_tbl = nibble_load(k_path_nibbles.low);
11707
5.10k
    const __m128i hi_tbl = nibble_load(k_path_nibbles.high);
11708
8.32k
    for (; i + 32 <= len; i += 32) {
11709
5.39k
      const __m128i w0 =
11710
5.39k
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i));
11711
5.39k
      const int m0 = ssse3_nibble_mask(w0, lo_tbl, hi_tbl);
11712
5.39k
      if (m0 != 0) {
11713
1.63k
        const int hit_bit = trailing_zeroes32(static_cast<uint32_t>(m0));
11714
1.63k
        note_dots_in_window(b, i, run_start, w0, (1 << hit_bit) - 1,
11715
1.63k
                            maybe_dot_segment);
11716
1.63k
        i += static_cast<size_t>(hit_bit);
11717
1.63k
        return;
11718
1.63k
      }
11719
3.76k
      note_dots_in_window(b, i, run_start, w0, 0xFFFF, maybe_dot_segment);
11720
3.76k
      const __m128i w1 =
11721
3.76k
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i + 16));
11722
3.76k
      const int m1 = ssse3_nibble_mask(w1, lo_tbl, hi_tbl);
11723
3.76k
      if (m1 != 0) {
11724
552
        const int hit_bit = trailing_zeroes32(static_cast<uint32_t>(m1));
11725
552
        note_dots_in_window(b, i + 16, run_start, w1, (1 << hit_bit) - 1,
11726
552
                            maybe_dot_segment);
11727
552
        i += 16 + static_cast<size_t>(hit_bit);
11728
552
        return;
11729
552
      }
11730
3.21k
      note_dots_in_window(b, i + 16, run_start, w1, 0xFFFF, maybe_dot_segment);
11731
3.21k
    }
11732
4.22k
    for (; i + 16 <= len; i += 16) {
11733
2.30k
      const __m128i w =
11734
2.30k
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i));
11735
2.30k
      const int mask = ssse3_nibble_mask(w, lo_tbl, hi_tbl);
11736
2.30k
      if (mask != 0) {
11737
1.00k
        const int hit_bit = trailing_zeroes32(static_cast<uint32_t>(mask));
11738
1.00k
        note_dots_in_window(b, i, run_start, w, (1 << hit_bit) - 1,
11739
1.00k
                            maybe_dot_segment);
11740
1.00k
        i += static_cast<size_t>(hit_bit);
11741
1.00k
        return;
11742
1.00k
      }
11743
1.30k
      note_dots_in_window(b, i, run_start, w, 0xFFFF, maybe_dot_segment);
11744
1.30k
    }
11745
1.92k
    if (i > run_start && i < len) {
11746
1.16k
      const __m128i w =
11747
1.16k
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + len - 16));
11748
1.16k
      const int mask = ssse3_nibble_mask(w, lo_tbl, hi_tbl);
11749
1.16k
      if (mask != 0) {
11750
440
        const size_t hit =
11751
440
            len - 16 +
11752
440
            static_cast<size_t>(trailing_zeroes32(static_cast<uint32_t>(mask)));
11753
440
        if (hit >= i) {
11754
2.38k
          for (size_t j = i; j < hit; ++j) {
11755
1.94k
            if (b[j] == '.') {
11756
732
              note_possible_dot_segment(b, j, run_start, maybe_dot_segment);
11757
732
            }
11758
1.94k
          }
11759
440
          i = hit;
11760
440
          return;
11761
440
        }
11762
440
      }
11763
5.31k
      for (size_t j = i; j < len; ++j) {
11764
4.58k
        if (b[j] == '.') {
11765
1.41k
          note_possible_dot_segment(b, j, run_start, maybe_dot_segment);
11766
1.41k
        }
11767
4.58k
      }
11768
724
      i = len;
11769
724
      return;
11770
1.16k
    }
11771
1.92k
  }
11772
#elif ADA_SSE2
11773
  for (; i + 16 <= len; i += 16) {
11774
    const __m128i w = _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i));
11775
    const int mask = sse2_path_stop(w);
11776
    if (mask != 0) {
11777
      const int hit_bit = trailing_zeroes32(static_cast<uint32_t>(mask));
11778
      note_dots_in_window(b, i, run_start, w, (1 << hit_bit) - 1,
11779
                          maybe_dot_segment);
11780
      i += static_cast<size_t>(hit_bit);
11781
      return;
11782
    }
11783
    note_dots_in_window(b, i, run_start, w, 0xFFFF, maybe_dot_segment);
11784
  }
11785
#elif ADA_NEON
11786
  if (i + 16 <= len) {
11787
    const uint8x16_t lo_tbl = vld1q_u8(k_path_nibbles.low);
11788
    const uint8x16_t hi_tbl = vld1q_u8(k_path_nibbles.high);
11789
    for (; i + 32 <= len; i += 32) {
11790
      const uint8x16_t w0 = vld1q_u8(b + i);
11791
      const uint64_t bits0 = neon_table_stop(w0, lo_tbl, hi_tbl);
11792
      if (bits0 != 0) {
11793
        const size_t hit_off =
11794
            static_cast<size_t>(trailing_zeroes64(bits0)) >> 2;
11795
        const uint64_t valid =
11796
            (hit_off == 0) ? 0 : (uint64_t{1} << (hit_off * 4)) - 1;
11797
        note_dots_in_window_neon(b, i, run_start, w0, valid, maybe_dot_segment);
11798
        i += hit_off;
11799
        return;
11800
      }
11801
      note_dots_in_window_neon(b, i, run_start, w0, ~uint64_t{0},
11802
                               maybe_dot_segment);
11803
      const uint8x16_t w1 = vld1q_u8(b + i + 16);
11804
      const uint64_t bits1 = neon_table_stop(w1, lo_tbl, hi_tbl);
11805
      if (bits1 != 0) {
11806
        const size_t hit_off =
11807
            static_cast<size_t>(trailing_zeroes64(bits1)) >> 2;
11808
        const uint64_t valid =
11809
            (hit_off == 0) ? 0 : (uint64_t{1} << (hit_off * 4)) - 1;
11810
        note_dots_in_window_neon(b, i + 16, run_start, w1, valid,
11811
                                 maybe_dot_segment);
11812
        i += 16 + hit_off;
11813
        return;
11814
      }
11815
      note_dots_in_window_neon(b, i + 16, run_start, w1, ~uint64_t{0},
11816
                               maybe_dot_segment);
11817
    }
11818
    for (; i + 16 <= len; i += 16) {
11819
      const uint8x16_t w = vld1q_u8(b + i);
11820
      const uint64_t bits = neon_table_stop(w, lo_tbl, hi_tbl);
11821
      if (bits != 0) {
11822
        const size_t hit_off =
11823
            static_cast<size_t>(trailing_zeroes64(bits)) >> 2;
11824
        const uint64_t valid =
11825
            (hit_off == 0) ? 0 : (uint64_t{1} << (hit_off * 4)) - 1;
11826
        note_dots_in_window_neon(b, i, run_start, w, valid, maybe_dot_segment);
11827
        i += hit_off;
11828
        return;
11829
      }
11830
      note_dots_in_window_neon(b, i, run_start, w, ~uint64_t{0},
11831
                               maybe_dot_segment);
11832
    }
11833
    if (i > run_start && i < len) {
11834
      const uint8x16_t w = vld1q_u8(b + len - 16);
11835
      const uint64_t bits = neon_table_stop(w, lo_tbl, hi_tbl);
11836
      if (bits != 0) {
11837
        const size_t hit =
11838
            len - 16 + (static_cast<size_t>(trailing_zeroes64(bits)) >> 2);
11839
        if (hit >= i) {
11840
          for (size_t j = i; j < hit; ++j) {
11841
            if (b[j] == '.') {
11842
              note_possible_dot_segment(b, j, run_start, maybe_dot_segment);
11843
            }
11844
          }
11845
          i = hit;
11846
          return;
11847
        }
11848
      }
11849
      for (size_t j = i; j < len; ++j) {
11850
        if (b[j] == '.') {
11851
          note_possible_dot_segment(b, j, run_start, maybe_dot_segment);
11852
        }
11853
      }
11854
      i = len;
11855
      return;
11856
    }
11857
  }
11858
#endif
11859
14.2k
  for (; i < len; ++i) {
11860
9.76k
    const uint8_t c = b[i];
11861
9.76k
    const uint8_t cls = k_path[c];
11862
9.76k
    if (cls != 0) {
11863
2.01k
      return;
11864
2.01k
    }
11865
7.75k
    if (c == '.') {
11866
2.35k
      note_possible_dot_segment(b, i, run_start, maybe_dot_segment);
11867
2.35k
    }
11868
7.75k
  }
11869
6.48k
}
11870
11871
// Advance i to the first class-table stop (or len). Query and hash share
11872
// this loop; path keeps its own copy because it also tracks '.' segments.
11873
#if ADA_PARSER_SSSE3
11874
#define ADA_SCAN_STOP_RUN(nibbles, cls, unused_sse2_stop)                    \
11875
3.21k
  do {                                                                       \
11876
3.21k
    const size_t scan_start = i;                                             \
11877
3.21k
    if (parser_use_ssse3() && (i + 16 <= len)) {                             \
11878
1.88k
      const __m128i lo_tbl = nibble_load((nibbles).low);                     \
11879
1.88k
      const __m128i hi_tbl = nibble_load((nibbles).high);                    \
11880
3.84k
      for (; i + 32 <= len; i += 32) {                                       \
11881
2.48k
        const __m128i w0 =                                                   \
11882
2.48k
            _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i));        \
11883
2.48k
        const int m0 = ssse3_nibble_mask(w0, lo_tbl, hi_tbl);                \
11884
2.48k
        if (m0 != 0) {                                                       \
11885
302
          i += static_cast<size_t>(                                          \
11886
302
              trailing_zeroes32(static_cast<uint32_t>(m0)));                 \
11887
302
          return;                                                            \
11888
302
        }                                                                    \
11889
2.48k
        const __m128i w1 =                                                   \
11890
2.18k
            _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i + 16));   \
11891
2.18k
        const int m1 = ssse3_nibble_mask(w1, lo_tbl, hi_tbl);                \
11892
2.18k
        if (m1 != 0) {                                                       \
11893
216
          i += 16 + static_cast<size_t>(                                     \
11894
216
                        trailing_zeroes32(static_cast<uint32_t>(m1)));       \
11895
216
          return;                                                            \
11896
216
        }                                                                    \
11897
2.18k
      }                                                                      \
11898
2.09k
      for (; i + 16 <= len; i += 16) {                                       \
11899
1.05k
        const __m128i w =                                                    \
11900
1.05k
            _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i));        \
11901
1.05k
        const int mask = ssse3_nibble_mask(w, lo_tbl, hi_tbl);               \
11902
1.05k
        if (mask != 0) {                                                     \
11903
324
          i += static_cast<size_t>(                                          \
11904
324
              trailing_zeroes32(static_cast<uint32_t>(mask)));               \
11905
324
          return;                                                            \
11906
324
        }                                                                    \
11907
1.05k
      }                                                                      \
11908
1.36k
      if (i > scan_start && i < len) {                                       \
11909
800
        const __m128i w =                                                    \
11910
800
            _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + len - 16)); \
11911
800
        const int mask = ssse3_nibble_mask(w, lo_tbl, hi_tbl);               \
11912
800
        if (mask != 0) {                                                     \
11913
268
          const size_t hit = len - 16 +                                      \
11914
268
                             static_cast<size_t>(trailing_zeroes32(          \
11915
268
                                 static_cast<uint32_t>(mask)));              \
11916
268
          if (hit >= i) {                                                    \
11917
268
            i = hit;                                                         \
11918
268
            return;                                                          \
11919
268
          }                                                                  \
11920
268
        }                                                                    \
11921
800
        i = len;                                                             \
11922
532
        return;                                                              \
11923
800
      }                                                                      \
11924
1.03k
    }                                                                        \
11925
5.50k
    for (; i < len; ++i) {                                                   \
11926
4.30k
      if ((cls)[b[i]] != 0) {                                                \
11927
376
        return;                                                              \
11928
376
      }                                                                      \
11929
4.30k
    }                                                                        \
11930
1.57k
  } while (0)
11931
#elif ADA_NEON
11932
#define ADA_SCAN_STOP_RUN(nibbles, cls, unused_sse2_stop)                     \
11933
  do {                                                                        \
11934
    const size_t scan_start = i;                                              \
11935
    if (i + 16 <= len) {                                                      \
11936
      const uint8x16_t lo_tbl = vld1q_u8((nibbles).low);                      \
11937
      const uint8x16_t hi_tbl = vld1q_u8((nibbles).high);                     \
11938
      for (; i + 32 <= len; i += 32) {                                        \
11939
        const uint64_t bits0 =                                                \
11940
            neon_table_stop(vld1q_u8(b + i), lo_tbl, hi_tbl);                 \
11941
        if (bits0 != 0) {                                                     \
11942
          i += static_cast<size_t>(trailing_zeroes64(bits0)) >> 2;            \
11943
          return;                                                             \
11944
        }                                                                     \
11945
        const uint64_t bits1 =                                                \
11946
            neon_table_stop(vld1q_u8(b + i + 16), lo_tbl, hi_tbl);            \
11947
        if (bits1 != 0) {                                                     \
11948
          i += 16 + (static_cast<size_t>(trailing_zeroes64(bits1)) >> 2);     \
11949
          return;                                                             \
11950
        }                                                                     \
11951
      }                                                                       \
11952
      for (; i + 16 <= len; i += 16) {                                        \
11953
        const uint8x16_t w = vld1q_u8(b + i);                                 \
11954
        const uint64_t bits = neon_table_stop(w, lo_tbl, hi_tbl);             \
11955
        if (bits != 0) {                                                      \
11956
          i += static_cast<size_t>(trailing_zeroes64(bits)) >> 2;             \
11957
          return;                                                             \
11958
        }                                                                     \
11959
      }                                                                       \
11960
      if (i > scan_start && i < len) {                                        \
11961
        const uint8x16_t w = vld1q_u8(b + len - 16);                          \
11962
        const uint64_t bits = neon_table_stop(w, lo_tbl, hi_tbl);             \
11963
        if (bits != 0) {                                                      \
11964
          const size_t hit =                                                  \
11965
              len - 16 + (static_cast<size_t>(trailing_zeroes64(bits)) >> 2); \
11966
          if (hit >= i) {                                                     \
11967
            i = hit;                                                          \
11968
            return;                                                           \
11969
          }                                                                   \
11970
        }                                                                     \
11971
        i = len;                                                              \
11972
        return;                                                               \
11973
      }                                                                       \
11974
    }                                                                         \
11975
    for (; i < len; ++i) {                                                    \
11976
      if ((cls)[b[i]] != 0) {                                                 \
11977
        return;                                                               \
11978
      }                                                                       \
11979
    }                                                                         \
11980
  } while (0)
11981
#elif ADA_SSE2
11982
#define ADA_SCAN_STOP_RUN(nibbles, cls, sse2_stop)                  \
11983
  do {                                                              \
11984
    for (; i + 16 <= len; i += 16) {                                \
11985
      const __m128i w =                                             \
11986
          _mm_loadu_si128(reinterpret_cast<const __m128i*>(b + i)); \
11987
      const int mask = sse2_stop(w);                                \
11988
      if (mask != 0) {                                              \
11989
        i += static_cast<size_t>(                                   \
11990
            trailing_zeroes32(static_cast<uint32_t>(mask)));        \
11991
        return;                                                     \
11992
      }                                                             \
11993
    }                                                               \
11994
    for (; i < len; ++i) {                                          \
11995
      if ((cls)[b[i]] != 0) {                                       \
11996
        return;                                                     \
11997
      }                                                             \
11998
    }                                                               \
11999
  } while (0)
12000
#else
12001
#define ADA_SCAN_STOP_RUN(nibbles, cls, unused_sse2_stop) \
12002
  do {                                                    \
12003
    for (; i < len; ++i) {                                \
12004
      if ((cls)[b[i]] != 0) {                             \
12005
        return;                                           \
12006
      }                                                   \
12007
    }                                                     \
12008
  } while (0)
12009
#endif
12010
12011
ADA_PARSER_SIMD void scan_query_run(const uint8_t* b, size_t& i,
12012
1.55k
                                    size_t len) noexcept {
12013
1.55k
  ADA_SCAN_STOP_RUN(k_query_nibbles, k_query, sse2_query_stop);
12014
1.55k
}
12015
12016
ADA_PARSER_SIMD void scan_hash_run(const uint8_t* b, size_t& i,
12017
1.66k
                                   size_t len) noexcept {
12018
1.66k
  ADA_SCAN_STOP_RUN(k_hash_nibbles, k_hash, sse2_hash_stop);
12019
1.66k
}
12020
12021
#undef ADA_SCAN_STOP_RUN
12022
12023
1.80k
bool path_has_dot_segment(std::string_view path) noexcept {
12024
1.80k
  if (path.empty()) {
12025
0
    return false;
12026
0
  }
12027
  // "." / ".." at the start, with or without a leading '/'.
12028
1.80k
  const size_t i = (path[0] == '/') ? 1 : 0;
12029
1.80k
  if (i < path.size() && path[i] == '.') {
12030
634
    const size_t after = i + 1;
12031
634
    if (after == path.size() || path[after] == '/' ||
12032
440
        (after < path.size() && path[after] == '.' &&
12033
328
         (after + 1 == path.size() || path[after + 1] == '/'))) {
12034
328
      return true;
12035
328
    }
12036
634
  }
12037
1.47k
  static constexpr std::string_view slash_dot{"/.", 2};
12038
1.47k
  size_t p = i;
12039
3.72k
  while ((p = path.find(slash_dot, p)) != std::string_view::npos) {
12040
2.95k
    const size_t after = p + 2;
12041
2.95k
    if (after == path.size() || path[after] == '/' ||
12042
2.53k
        (after < path.size() && path[after] == '.' &&
12043
764
         (after + 1 == path.size() || path[after + 1] == '/'))) {
12044
708
      return true;
12045
708
    }
12046
2.24k
    p = after;
12047
2.24k
  }
12048
768
  return false;
12049
1.47k
}
12050
12051
}  // namespace
12052
12053
template <class result_type>
12054
ada_never_inline bool finish_simple_absolute_with_port(
12055
    std::string_view input, result_type& out, ada::scheme::type scheme_type,
12056
    uint32_t protocol_end, size_t host_start, size_t host_end, size_t host_len,
12057
3.92k
    bool has_upper) {
12058
3.92k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12059
3.92k
  constexpr bool is_aggregator =
12060
3.92k
      std::is_same_v<result_type, ada::url_aggregator>;
12061
3.92k
  static_assert(is_ada_url || is_aggregator);
12062
12063
3.92k
  const size_t len = input.size();
12064
3.92k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12065
3.92k
  size_t p = host_end + 1;
12066
3.92k
  uint32_t port_value = 0;
12067
3.92k
  bool any_digit = false;
12068
8.45k
  while (p < len && b[p] >= '0' && b[p] <= '9') {
12069
4.54k
    any_digit = true;
12070
4.54k
    port_value = port_value * 10 + static_cast<uint32_t>(b[p] - '0');
12071
4.54k
    if (port_value > 65535) [[unlikely]] {
12072
22
      return false;
12073
22
    }
12074
4.52k
    ++p;
12075
4.52k
  }
12076
3.90k
  if (p < len && b[p] != '/' && b[p] != '?' && b[p] != '#') [[unlikely]] {
12077
106
    return false;
12078
106
  }
12079
3.80k
  uint32_t parsed_port = url_components::omitted;
12080
3.80k
  const uint16_t default_port = ada::scheme::get_special_port(scheme_type);
12081
3.80k
  if (any_digit && port_value != default_port) {
12082
2.49k
    parsed_port = port_value;
12083
2.49k
  }
12084
3.80k
  const size_t authority_end = p;
12085
12086
3.80k
  size_t i = authority_end;
12087
3.80k
  size_t path_start = host_end;
12088
3.80k
  size_t path_end = host_end;
12089
3.80k
  size_t query_start = std::string_view::npos;
12090
3.80k
  size_t hash_start = std::string_view::npos;
12091
3.80k
  bool has_path = false;
12092
3.80k
  bool maybe_dot_segment = false;
12093
3.80k
  bool rest_simple = true;
12094
12095
3.80k
  if (i < len && b[i] == '/') {
12096
3.36k
    has_path = true;
12097
3.36k
    path_start = i;
12098
3.36k
    ++i;
12099
3.36k
    scan_path_run(b, i, len, maybe_dot_segment);
12100
3.36k
    if (i < len) {
12101
2.15k
      const uint8_t cls = k_path[b[i]];
12102
2.15k
      if (cls == 1) {
12103
474
        path_end = i;
12104
474
        if (b[i] == '?') {
12105
318
          query_start = i;
12106
318
          ++i;
12107
318
          goto scan_query;
12108
318
        }
12109
156
        hash_start = i;
12110
156
        ++i;
12111
156
        goto scan_hash;
12112
474
      }
12113
1.67k
      rest_simple = false;
12114
56.0k
      for (; i < len; ++i) {
12115
54.4k
        if (b[i] == '?') {
12116
92
          path_end = i;
12117
92
          query_start = i;
12118
92
          ++i;
12119
92
          goto scan_query_boundary;
12120
92
        }
12121
54.3k
        if (b[i] == '#') {
12122
50
          path_end = i;
12123
50
          hash_start = i;
12124
50
          ++i;
12125
50
          goto after_rest;
12126
50
        }
12127
54.3k
      }
12128
1.53k
      path_end = i;
12129
1.53k
      goto after_rest;
12130
1.67k
    }
12131
1.21k
    path_end = i;
12132
1.21k
  } else if (i < len && b[i] == '?') {
12133
138
    query_start = i;
12134
138
    ++i;
12135
138
    goto scan_query;
12136
296
  } else if (i < len && b[i] == '#') {
12137
152
    hash_start = i;
12138
152
    ++i;
12139
152
    goto scan_hash;
12140
152
  }
12141
1.36k
  goto after_rest;
12142
12143
1.36k
scan_query:
12144
456
  scan_query_run(b, i, len);
12145
456
  if (i < len) {
12146
236
    if (b[i] == '#') {
12147
152
      hash_start = i;
12148
152
      ++i;
12149
152
      goto scan_hash;
12150
152
    }
12151
84
    rest_simple = false;
12152
84
    goto scan_query_boundary;
12153
236
  }
12154
220
  goto after_rest;
12155
12156
220
scan_query_boundary:
12157
1.83k
  for (; i < len; ++i) {
12158
1.70k
    if (b[i] == '#') {
12159
38
      hash_start = i;
12160
38
      ++i;
12161
38
      goto after_rest;
12162
38
    }
12163
1.70k
  }
12164
138
  goto after_rest;
12165
12166
460
scan_hash:
12167
460
  scan_hash_run(b, i, len);
12168
460
  if (i < len) {
12169
116
    rest_simple = false;
12170
116
  }
12171
12172
3.80k
after_rest:
12173
3.80k
  if (rest_simple && maybe_dot_segment) {
12174
688
    const std::string_view path_body(input.data() + path_start,
12175
688
                                     path_end - path_start);
12176
688
    if (path_has_dot_segment(path_body)) {
12177
456
      rest_simple = false;
12178
456
    }
12179
688
  }
12180
12181
  // The slow path removes ASCII tab/newline anywhere in the input and trims a
12182
  // trailing C0 control or space; this fast path does neither. A query or
12183
  // fragment reaching the helpers below would keep those bytes percent-encoded
12184
  // ("?a\nb" -> "?a%0Ab", "#f " -> "#f%20") instead of stripped, so hand such
12185
  // inputs back to the slow path.
12186
3.80k
  if (!rest_simple && (unicode::is_c0_control_or_space(input.back()) ||
12187
2.25k
                       unicode::has_tabs_or_newline(input))) {
12188
140
    return false;
12189
140
  }
12190
12191
3.66k
  out.type = scheme_type;
12192
3.66k
  out.is_valid = true;
12193
3.66k
  out.has_opaque_path = false;
12194
3.66k
  out.host_type = DEFAULT;
12195
12196
3.66k
  const uint32_t port_bytes = (parsed_port != url_components::omitted)
12197
3.66k
                                  ? (1 + port_decimal_digit_count(parsed_port))
12198
3.66k
                                  : 0;
12199
12200
3.66k
  if (!rest_simple) {
12201
2.19k
    const std::string_view path_view =
12202
2.19k
        has_path
12203
2.19k
            ? std::string_view(input.data() + path_start, path_end - path_start)
12204
2.19k
            : std::string_view{};
12205
2.19k
    auto apply_query_and_hash = [&]() {
12206
2.19k
      if (query_start != std::string_view::npos) {
12207
156
        const size_t q_end =
12208
156
            (hash_start != std::string_view::npos) ? hash_start : len;
12209
156
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12210
156
                                                q_end - query_start - 1),
12211
156
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12212
156
      }
12213
2.19k
      if (hash_start != std::string_view::npos) {
12214
164
        out.update_unencoded_base_hash(std::string_view(
12215
164
            input.data() + hash_start + 1, len - hash_start - 1));
12216
164
      }
12217
2.19k
    };
ada::parser::finish_simple_absolute_with_port<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url&, ada::scheme::type, unsigned int, unsigned long, unsigned long, unsigned long, bool)::{lambda()#1}::operator()() const
Line
Count
Source
12205
1.09k
    auto apply_query_and_hash = [&]() {
12206
1.09k
      if (query_start != std::string_view::npos) {
12207
78
        const size_t q_end =
12208
78
            (hash_start != std::string_view::npos) ? hash_start : len;
12209
78
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12210
78
                                                q_end - query_start - 1),
12211
78
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12212
78
      }
12213
1.09k
      if (hash_start != std::string_view::npos) {
12214
82
        out.update_unencoded_base_hash(std::string_view(
12215
82
            input.data() + hash_start + 1, len - hash_start - 1));
12216
82
      }
12217
1.09k
    };
ada::parser::finish_simple_absolute_with_port<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator&, ada::scheme::type, unsigned int, unsigned long, unsigned long, unsigned long, bool)::{lambda()#1}::operator()() const
Line
Count
Source
12205
1.09k
    auto apply_query_and_hash = [&]() {
12206
1.09k
      if (query_start != std::string_view::npos) {
12207
78
        const size_t q_end =
12208
78
            (hash_start != std::string_view::npos) ? hash_start : len;
12209
78
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12210
78
                                                q_end - query_start - 1),
12211
78
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12212
78
      }
12213
1.09k
      if (hash_start != std::string_view::npos) {
12214
82
        out.update_unencoded_base_hash(std::string_view(
12215
82
            input.data() + hash_start + 1, len - hash_start - 1));
12216
82
      }
12217
1.09k
    };
12218
2.19k
    if constexpr (is_aggregator) {
12219
1.09k
      out.buffer.assign(input.substr(0, host_end));
12220
1.09k
      if (parsed_port != url_components::omitted) {
12221
597
        append_canonical_port(out.buffer, parsed_port);
12222
597
      }
12223
1.09k
      if (has_upper) {
12224
149
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12225
149
      }
12226
1.09k
      out.components.protocol_end = protocol_end;
12227
1.09k
      out.components.username_end = protocol_end + 2;
12228
1.09k
      out.components.host_start = protocol_end + 2;
12229
1.09k
      out.components.host_end = static_cast<uint32_t>(host_end);
12230
1.09k
      out.components.port = parsed_port;
12231
1.09k
      out.components.pathname_start = static_cast<uint32_t>(out.buffer.size());
12232
1.09k
      out.components.search_start = url_components::omitted;
12233
1.09k
      out.components.hash_start = url_components::omitted;
12234
1.09k
      out.parse_path(path_view);
12235
1.09k
      apply_query_and_hash();
12236
1.09k
    } else {
12237
1.09k
      std::string host_str(input.substr(host_start, host_len));
12238
1.09k
      if (has_upper) {
12239
149
        unicode::to_lower_ascii(host_str.data(), host_str.size());
12240
149
      }
12241
1.09k
      out.host = std::move(host_str);
12242
1.09k
      if (parsed_port != url_components::omitted) {
12243
597
        out.port = static_cast<uint16_t>(parsed_port);
12244
597
      }
12245
1.09k
      out.parse_path(path_view);
12246
1.09k
      apply_query_and_hash();
12247
1.09k
    }
12248
2.19k
    return true;
12249
2.19k
  }
12250
12251
1.46k
  const bool insert_slash = !has_path;
12252
1.46k
  if constexpr (is_aggregator) {
12253
734
    const size_t out_len =
12254
734
        host_end + port_bytes + (insert_slash ? 1 : 0) + (len - authority_end);
12255
734
    const bool omit_port_bytes = parsed_port == url_components::omitted;
12256
734
    if (out_len == len && !insert_slash && !omit_port_bytes) {
12257
550
      out.buffer.assign(input);
12258
550
    } else {
12259
184
      out.buffer.clear();
12260
184
      out.buffer.reserve(out_len);
12261
184
      out.buffer.append(input.substr(0, host_end));
12262
184
      if (parsed_port != url_components::omitted) {
12263
88
        append_canonical_port(out.buffer, parsed_port);
12264
88
      }
12265
184
      if (insert_slash) {
12266
143
        out.buffer.push_back('/');
12267
143
      }
12268
184
      if (authority_end < len) {
12269
112
        out.buffer.append(input.substr(authority_end));
12270
112
      }
12271
184
    }
12272
734
    if (has_upper) {
12273
94
      unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12274
94
    }
12275
734
    const uint32_t pathname_start =
12276
734
        static_cast<uint32_t>(host_end) + port_bytes;
12277
734
    const int32_t tail_delta = static_cast<int32_t>(pathname_start) +
12278
734
                               (insert_slash ? 1 : 0) -
12279
734
                               static_cast<int32_t>(authority_end);
12280
734
    out.components.protocol_end = protocol_end;
12281
734
    out.components.username_end = protocol_end + 2;
12282
734
    out.components.host_start = protocol_end + 2;
12283
734
    out.components.host_end = static_cast<uint32_t>(host_end);
12284
734
    out.components.port = parsed_port;
12285
734
    out.components.pathname_start = pathname_start;
12286
734
    out.components.search_start =
12287
734
        (query_start != std::string_view::npos)
12288
734
            ? static_cast<uint32_t>(static_cast<int32_t>(query_start) +
12289
182
                                    tail_delta)
12290
734
            : url_components::omitted;
12291
734
    out.components.hash_start =
12292
734
        (hash_start != std::string_view::npos)
12293
734
            ? static_cast<uint32_t>(static_cast<int32_t>(hash_start) +
12294
172
                                    tail_delta)
12295
734
            : url_components::omitted;
12296
734
  } else {
12297
734
    std::string host_str(input.substr(host_start, host_len));
12298
734
    if (has_upper) {
12299
94
      unicode::to_lower_ascii(host_str.data(), host_str.size());
12300
94
    }
12301
734
    out.host = std::move(host_str);
12302
734
    if (parsed_port != url_components::omitted) {
12303
638
      out.port = static_cast<uint16_t>(parsed_port);
12304
638
    }
12305
734
    if (insert_slash) {
12306
143
      out.path = "/";
12307
591
    } else {
12308
591
      out.path.assign(input.data() + path_start, path_end - path_start);
12309
591
    }
12310
734
    if (query_start != std::string_view::npos) {
12311
182
      const size_t q_end =
12312
182
          (hash_start != std::string_view::npos) ? hash_start : len;
12313
182
      out.query.emplace(input.data() + query_start + 1,
12314
182
                        q_end - query_start - 1);
12315
182
    }
12316
734
    if (hash_start != std::string_view::npos) {
12317
172
      out.hash.emplace(input.data() + hash_start + 1, len - hash_start - 1);
12318
172
    }
12319
734
  }
12320
1.46k
  return true;
12321
3.66k
}
bool ada::parser::finish_simple_absolute_with_port<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url&, ada::scheme::type, unsigned int, unsigned long, unsigned long, unsigned long, bool)
Line
Count
Source
12057
1.96k
    bool has_upper) {
12058
1.96k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12059
1.96k
  constexpr bool is_aggregator =
12060
1.96k
      std::is_same_v<result_type, ada::url_aggregator>;
12061
1.96k
  static_assert(is_ada_url || is_aggregator);
12062
12063
1.96k
  const size_t len = input.size();
12064
1.96k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12065
1.96k
  size_t p = host_end + 1;
12066
1.96k
  uint32_t port_value = 0;
12067
1.96k
  bool any_digit = false;
12068
4.22k
  while (p < len && b[p] >= '0' && b[p] <= '9') {
12069
2.27k
    any_digit = true;
12070
2.27k
    port_value = port_value * 10 + static_cast<uint32_t>(b[p] - '0');
12071
2.27k
    if (port_value > 65535) [[unlikely]] {
12072
11
      return false;
12073
11
    }
12074
2.26k
    ++p;
12075
2.26k
  }
12076
1.95k
  if (p < len && b[p] != '/' && b[p] != '?' && b[p] != '#') [[unlikely]] {
12077
53
    return false;
12078
53
  }
12079
1.90k
  uint32_t parsed_port = url_components::omitted;
12080
1.90k
  const uint16_t default_port = ada::scheme::get_special_port(scheme_type);
12081
1.90k
  if (any_digit && port_value != default_port) {
12082
1.24k
    parsed_port = port_value;
12083
1.24k
  }
12084
1.90k
  const size_t authority_end = p;
12085
12086
1.90k
  size_t i = authority_end;
12087
1.90k
  size_t path_start = host_end;
12088
1.90k
  size_t path_end = host_end;
12089
1.90k
  size_t query_start = std::string_view::npos;
12090
1.90k
  size_t hash_start = std::string_view::npos;
12091
1.90k
  bool has_path = false;
12092
1.90k
  bool maybe_dot_segment = false;
12093
1.90k
  bool rest_simple = true;
12094
12095
1.90k
  if (i < len && b[i] == '/') {
12096
1.68k
    has_path = true;
12097
1.68k
    path_start = i;
12098
1.68k
    ++i;
12099
1.68k
    scan_path_run(b, i, len, maybe_dot_segment);
12100
1.68k
    if (i < len) {
12101
1.07k
      const uint8_t cls = k_path[b[i]];
12102
1.07k
      if (cls == 1) {
12103
237
        path_end = i;
12104
237
        if (b[i] == '?') {
12105
159
          query_start = i;
12106
159
          ++i;
12107
159
          goto scan_query;
12108
159
        }
12109
78
        hash_start = i;
12110
78
        ++i;
12111
78
        goto scan_hash;
12112
237
      }
12113
838
      rest_simple = false;
12114
28.0k
      for (; i < len; ++i) {
12115
27.2k
        if (b[i] == '?') {
12116
46
          path_end = i;
12117
46
          query_start = i;
12118
46
          ++i;
12119
46
          goto scan_query_boundary;
12120
46
        }
12121
27.1k
        if (b[i] == '#') {
12122
25
          path_end = i;
12123
25
          hash_start = i;
12124
25
          ++i;
12125
25
          goto after_rest;
12126
25
        }
12127
27.1k
      }
12128
767
      path_end = i;
12129
767
      goto after_rest;
12130
838
    }
12131
608
    path_end = i;
12132
608
  } else if (i < len && b[i] == '?') {
12133
69
    query_start = i;
12134
69
    ++i;
12135
69
    goto scan_query;
12136
148
  } else if (i < len && b[i] == '#') {
12137
76
    hash_start = i;
12138
76
    ++i;
12139
76
    goto scan_hash;
12140
76
  }
12141
680
  goto after_rest;
12142
12143
680
scan_query:
12144
228
  scan_query_run(b, i, len);
12145
228
  if (i < len) {
12146
118
    if (b[i] == '#') {
12147
76
      hash_start = i;
12148
76
      ++i;
12149
76
      goto scan_hash;
12150
76
    }
12151
42
    rest_simple = false;
12152
42
    goto scan_query_boundary;
12153
118
  }
12154
110
  goto after_rest;
12155
12156
110
scan_query_boundary:
12157
919
  for (; i < len; ++i) {
12158
850
    if (b[i] == '#') {
12159
19
      hash_start = i;
12160
19
      ++i;
12161
19
      goto after_rest;
12162
19
    }
12163
850
  }
12164
69
  goto after_rest;
12165
12166
230
scan_hash:
12167
230
  scan_hash_run(b, i, len);
12168
230
  if (i < len) {
12169
58
    rest_simple = false;
12170
58
  }
12171
12172
1.90k
after_rest:
12173
1.90k
  if (rest_simple && maybe_dot_segment) {
12174
344
    const std::string_view path_body(input.data() + path_start,
12175
344
                                     path_end - path_start);
12176
344
    if (path_has_dot_segment(path_body)) {
12177
228
      rest_simple = false;
12178
228
    }
12179
344
  }
12180
12181
  // The slow path removes ASCII tab/newline anywhere in the input and trims a
12182
  // trailing C0 control or space; this fast path does neither. A query or
12183
  // fragment reaching the helpers below would keep those bytes percent-encoded
12184
  // ("?a\nb" -> "?a%0Ab", "#f " -> "#f%20") instead of stripped, so hand such
12185
  // inputs back to the slow path.
12186
1.90k
  if (!rest_simple && (unicode::is_c0_control_or_space(input.back()) ||
12187
1.12k
                       unicode::has_tabs_or_newline(input))) {
12188
70
    return false;
12189
70
  }
12190
12191
1.83k
  out.type = scheme_type;
12192
1.83k
  out.is_valid = true;
12193
1.83k
  out.has_opaque_path = false;
12194
1.83k
  out.host_type = DEFAULT;
12195
12196
1.83k
  const uint32_t port_bytes = (parsed_port != url_components::omitted)
12197
1.83k
                                  ? (1 + port_decimal_digit_count(parsed_port))
12198
1.83k
                                  : 0;
12199
12200
1.83k
  if (!rest_simple) {
12201
1.09k
    const std::string_view path_view =
12202
1.09k
        has_path
12203
1.09k
            ? std::string_view(input.data() + path_start, path_end - path_start)
12204
1.09k
            : std::string_view{};
12205
1.09k
    auto apply_query_and_hash = [&]() {
12206
1.09k
      if (query_start != std::string_view::npos) {
12207
1.09k
        const size_t q_end =
12208
1.09k
            (hash_start != std::string_view::npos) ? hash_start : len;
12209
1.09k
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12210
1.09k
                                                q_end - query_start - 1),
12211
1.09k
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12212
1.09k
      }
12213
1.09k
      if (hash_start != std::string_view::npos) {
12214
1.09k
        out.update_unencoded_base_hash(std::string_view(
12215
1.09k
            input.data() + hash_start + 1, len - hash_start - 1));
12216
1.09k
      }
12217
1.09k
    };
12218
    if constexpr (is_aggregator) {
12219
      out.buffer.assign(input.substr(0, host_end));
12220
      if (parsed_port != url_components::omitted) {
12221
        append_canonical_port(out.buffer, parsed_port);
12222
      }
12223
      if (has_upper) {
12224
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12225
      }
12226
      out.components.protocol_end = protocol_end;
12227
      out.components.username_end = protocol_end + 2;
12228
      out.components.host_start = protocol_end + 2;
12229
      out.components.host_end = static_cast<uint32_t>(host_end);
12230
      out.components.port = parsed_port;
12231
      out.components.pathname_start = static_cast<uint32_t>(out.buffer.size());
12232
      out.components.search_start = url_components::omitted;
12233
      out.components.hash_start = url_components::omitted;
12234
      out.parse_path(path_view);
12235
      apply_query_and_hash();
12236
1.09k
    } else {
12237
1.09k
      std::string host_str(input.substr(host_start, host_len));
12238
1.09k
      if (has_upper) {
12239
149
        unicode::to_lower_ascii(host_str.data(), host_str.size());
12240
149
      }
12241
1.09k
      out.host = std::move(host_str);
12242
1.09k
      if (parsed_port != url_components::omitted) {
12243
597
        out.port = static_cast<uint16_t>(parsed_port);
12244
597
      }
12245
1.09k
      out.parse_path(path_view);
12246
1.09k
      apply_query_and_hash();
12247
1.09k
    }
12248
1.09k
    return true;
12249
1.09k
  }
12250
12251
734
  const bool insert_slash = !has_path;
12252
  if constexpr (is_aggregator) {
12253
    const size_t out_len =
12254
        host_end + port_bytes + (insert_slash ? 1 : 0) + (len - authority_end);
12255
    const bool omit_port_bytes = parsed_port == url_components::omitted;
12256
    if (out_len == len && !insert_slash && !omit_port_bytes) {
12257
      out.buffer.assign(input);
12258
    } else {
12259
      out.buffer.clear();
12260
      out.buffer.reserve(out_len);
12261
      out.buffer.append(input.substr(0, host_end));
12262
      if (parsed_port != url_components::omitted) {
12263
        append_canonical_port(out.buffer, parsed_port);
12264
      }
12265
      if (insert_slash) {
12266
        out.buffer.push_back('/');
12267
      }
12268
      if (authority_end < len) {
12269
        out.buffer.append(input.substr(authority_end));
12270
      }
12271
    }
12272
    if (has_upper) {
12273
      unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12274
    }
12275
    const uint32_t pathname_start =
12276
        static_cast<uint32_t>(host_end) + port_bytes;
12277
    const int32_t tail_delta = static_cast<int32_t>(pathname_start) +
12278
                               (insert_slash ? 1 : 0) -
12279
                               static_cast<int32_t>(authority_end);
12280
    out.components.protocol_end = protocol_end;
12281
    out.components.username_end = protocol_end + 2;
12282
    out.components.host_start = protocol_end + 2;
12283
    out.components.host_end = static_cast<uint32_t>(host_end);
12284
    out.components.port = parsed_port;
12285
    out.components.pathname_start = pathname_start;
12286
    out.components.search_start =
12287
        (query_start != std::string_view::npos)
12288
            ? static_cast<uint32_t>(static_cast<int32_t>(query_start) +
12289
                                    tail_delta)
12290
            : url_components::omitted;
12291
    out.components.hash_start =
12292
        (hash_start != std::string_view::npos)
12293
            ? static_cast<uint32_t>(static_cast<int32_t>(hash_start) +
12294
                                    tail_delta)
12295
            : url_components::omitted;
12296
734
  } else {
12297
734
    std::string host_str(input.substr(host_start, host_len));
12298
734
    if (has_upper) {
12299
94
      unicode::to_lower_ascii(host_str.data(), host_str.size());
12300
94
    }
12301
734
    out.host = std::move(host_str);
12302
734
    if (parsed_port != url_components::omitted) {
12303
638
      out.port = static_cast<uint16_t>(parsed_port);
12304
638
    }
12305
734
    if (insert_slash) {
12306
143
      out.path = "/";
12307
591
    } else {
12308
591
      out.path.assign(input.data() + path_start, path_end - path_start);
12309
591
    }
12310
734
    if (query_start != std::string_view::npos) {
12311
182
      const size_t q_end =
12312
182
          (hash_start != std::string_view::npos) ? hash_start : len;
12313
182
      out.query.emplace(input.data() + query_start + 1,
12314
182
                        q_end - query_start - 1);
12315
182
    }
12316
734
    if (hash_start != std::string_view::npos) {
12317
172
      out.hash.emplace(input.data() + hash_start + 1, len - hash_start - 1);
12318
172
    }
12319
734
  }
12320
734
  return true;
12321
1.83k
}
bool ada::parser::finish_simple_absolute_with_port<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator&, ada::scheme::type, unsigned int, unsigned long, unsigned long, unsigned long, bool)
Line
Count
Source
12057
1.96k
    bool has_upper) {
12058
1.96k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12059
1.96k
  constexpr bool is_aggregator =
12060
1.96k
      std::is_same_v<result_type, ada::url_aggregator>;
12061
1.96k
  static_assert(is_ada_url || is_aggregator);
12062
12063
1.96k
  const size_t len = input.size();
12064
1.96k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12065
1.96k
  size_t p = host_end + 1;
12066
1.96k
  uint32_t port_value = 0;
12067
1.96k
  bool any_digit = false;
12068
4.22k
  while (p < len && b[p] >= '0' && b[p] <= '9') {
12069
2.27k
    any_digit = true;
12070
2.27k
    port_value = port_value * 10 + static_cast<uint32_t>(b[p] - '0');
12071
2.27k
    if (port_value > 65535) [[unlikely]] {
12072
11
      return false;
12073
11
    }
12074
2.26k
    ++p;
12075
2.26k
  }
12076
1.95k
  if (p < len && b[p] != '/' && b[p] != '?' && b[p] != '#') [[unlikely]] {
12077
53
    return false;
12078
53
  }
12079
1.90k
  uint32_t parsed_port = url_components::omitted;
12080
1.90k
  const uint16_t default_port = ada::scheme::get_special_port(scheme_type);
12081
1.90k
  if (any_digit && port_value != default_port) {
12082
1.24k
    parsed_port = port_value;
12083
1.24k
  }
12084
1.90k
  const size_t authority_end = p;
12085
12086
1.90k
  size_t i = authority_end;
12087
1.90k
  size_t path_start = host_end;
12088
1.90k
  size_t path_end = host_end;
12089
1.90k
  size_t query_start = std::string_view::npos;
12090
1.90k
  size_t hash_start = std::string_view::npos;
12091
1.90k
  bool has_path = false;
12092
1.90k
  bool maybe_dot_segment = false;
12093
1.90k
  bool rest_simple = true;
12094
12095
1.90k
  if (i < len && b[i] == '/') {
12096
1.68k
    has_path = true;
12097
1.68k
    path_start = i;
12098
1.68k
    ++i;
12099
1.68k
    scan_path_run(b, i, len, maybe_dot_segment);
12100
1.68k
    if (i < len) {
12101
1.07k
      const uint8_t cls = k_path[b[i]];
12102
1.07k
      if (cls == 1) {
12103
237
        path_end = i;
12104
237
        if (b[i] == '?') {
12105
159
          query_start = i;
12106
159
          ++i;
12107
159
          goto scan_query;
12108
159
        }
12109
78
        hash_start = i;
12110
78
        ++i;
12111
78
        goto scan_hash;
12112
237
      }
12113
838
      rest_simple = false;
12114
28.0k
      for (; i < len; ++i) {
12115
27.2k
        if (b[i] == '?') {
12116
46
          path_end = i;
12117
46
          query_start = i;
12118
46
          ++i;
12119
46
          goto scan_query_boundary;
12120
46
        }
12121
27.1k
        if (b[i] == '#') {
12122
25
          path_end = i;
12123
25
          hash_start = i;
12124
25
          ++i;
12125
25
          goto after_rest;
12126
25
        }
12127
27.1k
      }
12128
767
      path_end = i;
12129
767
      goto after_rest;
12130
838
    }
12131
608
    path_end = i;
12132
608
  } else if (i < len && b[i] == '?') {
12133
69
    query_start = i;
12134
69
    ++i;
12135
69
    goto scan_query;
12136
148
  } else if (i < len && b[i] == '#') {
12137
76
    hash_start = i;
12138
76
    ++i;
12139
76
    goto scan_hash;
12140
76
  }
12141
680
  goto after_rest;
12142
12143
680
scan_query:
12144
228
  scan_query_run(b, i, len);
12145
228
  if (i < len) {
12146
118
    if (b[i] == '#') {
12147
76
      hash_start = i;
12148
76
      ++i;
12149
76
      goto scan_hash;
12150
76
    }
12151
42
    rest_simple = false;
12152
42
    goto scan_query_boundary;
12153
118
  }
12154
110
  goto after_rest;
12155
12156
110
scan_query_boundary:
12157
919
  for (; i < len; ++i) {
12158
850
    if (b[i] == '#') {
12159
19
      hash_start = i;
12160
19
      ++i;
12161
19
      goto after_rest;
12162
19
    }
12163
850
  }
12164
69
  goto after_rest;
12165
12166
230
scan_hash:
12167
230
  scan_hash_run(b, i, len);
12168
230
  if (i < len) {
12169
58
    rest_simple = false;
12170
58
  }
12171
12172
1.90k
after_rest:
12173
1.90k
  if (rest_simple && maybe_dot_segment) {
12174
344
    const std::string_view path_body(input.data() + path_start,
12175
344
                                     path_end - path_start);
12176
344
    if (path_has_dot_segment(path_body)) {
12177
228
      rest_simple = false;
12178
228
    }
12179
344
  }
12180
12181
  // The slow path removes ASCII tab/newline anywhere in the input and trims a
12182
  // trailing C0 control or space; this fast path does neither. A query or
12183
  // fragment reaching the helpers below would keep those bytes percent-encoded
12184
  // ("?a\nb" -> "?a%0Ab", "#f " -> "#f%20") instead of stripped, so hand such
12185
  // inputs back to the slow path.
12186
1.90k
  if (!rest_simple && (unicode::is_c0_control_or_space(input.back()) ||
12187
1.12k
                       unicode::has_tabs_or_newline(input))) {
12188
70
    return false;
12189
70
  }
12190
12191
1.83k
  out.type = scheme_type;
12192
1.83k
  out.is_valid = true;
12193
1.83k
  out.has_opaque_path = false;
12194
1.83k
  out.host_type = DEFAULT;
12195
12196
1.83k
  const uint32_t port_bytes = (parsed_port != url_components::omitted)
12197
1.83k
                                  ? (1 + port_decimal_digit_count(parsed_port))
12198
1.83k
                                  : 0;
12199
12200
1.83k
  if (!rest_simple) {
12201
1.09k
    const std::string_view path_view =
12202
1.09k
        has_path
12203
1.09k
            ? std::string_view(input.data() + path_start, path_end - path_start)
12204
1.09k
            : std::string_view{};
12205
1.09k
    auto apply_query_and_hash = [&]() {
12206
1.09k
      if (query_start != std::string_view::npos) {
12207
1.09k
        const size_t q_end =
12208
1.09k
            (hash_start != std::string_view::npos) ? hash_start : len;
12209
1.09k
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12210
1.09k
                                                q_end - query_start - 1),
12211
1.09k
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12212
1.09k
      }
12213
1.09k
      if (hash_start != std::string_view::npos) {
12214
1.09k
        out.update_unencoded_base_hash(std::string_view(
12215
1.09k
            input.data() + hash_start + 1, len - hash_start - 1));
12216
1.09k
      }
12217
1.09k
    };
12218
1.09k
    if constexpr (is_aggregator) {
12219
1.09k
      out.buffer.assign(input.substr(0, host_end));
12220
1.09k
      if (parsed_port != url_components::omitted) {
12221
597
        append_canonical_port(out.buffer, parsed_port);
12222
597
      }
12223
1.09k
      if (has_upper) {
12224
149
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12225
149
      }
12226
1.09k
      out.components.protocol_end = protocol_end;
12227
1.09k
      out.components.username_end = protocol_end + 2;
12228
1.09k
      out.components.host_start = protocol_end + 2;
12229
1.09k
      out.components.host_end = static_cast<uint32_t>(host_end);
12230
1.09k
      out.components.port = parsed_port;
12231
1.09k
      out.components.pathname_start = static_cast<uint32_t>(out.buffer.size());
12232
1.09k
      out.components.search_start = url_components::omitted;
12233
1.09k
      out.components.hash_start = url_components::omitted;
12234
1.09k
      out.parse_path(path_view);
12235
1.09k
      apply_query_and_hash();
12236
    } else {
12237
      std::string host_str(input.substr(host_start, host_len));
12238
      if (has_upper) {
12239
        unicode::to_lower_ascii(host_str.data(), host_str.size());
12240
      }
12241
      out.host = std::move(host_str);
12242
      if (parsed_port != url_components::omitted) {
12243
        out.port = static_cast<uint16_t>(parsed_port);
12244
      }
12245
      out.parse_path(path_view);
12246
      apply_query_and_hash();
12247
    }
12248
1.09k
    return true;
12249
1.09k
  }
12250
12251
734
  const bool insert_slash = !has_path;
12252
734
  if constexpr (is_aggregator) {
12253
734
    const size_t out_len =
12254
734
        host_end + port_bytes + (insert_slash ? 1 : 0) + (len - authority_end);
12255
734
    const bool omit_port_bytes = parsed_port == url_components::omitted;
12256
734
    if (out_len == len && !insert_slash && !omit_port_bytes) {
12257
550
      out.buffer.assign(input);
12258
550
    } else {
12259
184
      out.buffer.clear();
12260
184
      out.buffer.reserve(out_len);
12261
184
      out.buffer.append(input.substr(0, host_end));
12262
184
      if (parsed_port != url_components::omitted) {
12263
88
        append_canonical_port(out.buffer, parsed_port);
12264
88
      }
12265
184
      if (insert_slash) {
12266
143
        out.buffer.push_back('/');
12267
143
      }
12268
184
      if (authority_end < len) {
12269
112
        out.buffer.append(input.substr(authority_end));
12270
112
      }
12271
184
    }
12272
734
    if (has_upper) {
12273
94
      unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12274
94
    }
12275
734
    const uint32_t pathname_start =
12276
734
        static_cast<uint32_t>(host_end) + port_bytes;
12277
734
    const int32_t tail_delta = static_cast<int32_t>(pathname_start) +
12278
734
                               (insert_slash ? 1 : 0) -
12279
734
                               static_cast<int32_t>(authority_end);
12280
734
    out.components.protocol_end = protocol_end;
12281
734
    out.components.username_end = protocol_end + 2;
12282
734
    out.components.host_start = protocol_end + 2;
12283
734
    out.components.host_end = static_cast<uint32_t>(host_end);
12284
734
    out.components.port = parsed_port;
12285
734
    out.components.pathname_start = pathname_start;
12286
734
    out.components.search_start =
12287
734
        (query_start != std::string_view::npos)
12288
734
            ? static_cast<uint32_t>(static_cast<int32_t>(query_start) +
12289
182
                                    tail_delta)
12290
734
            : url_components::omitted;
12291
734
    out.components.hash_start =
12292
734
        (hash_start != std::string_view::npos)
12293
734
            ? static_cast<uint32_t>(static_cast<int32_t>(hash_start) +
12294
172
                                    tail_delta)
12295
734
            : url_components::omitted;
12296
  } else {
12297
    std::string host_str(input.substr(host_start, host_len));
12298
    if (has_upper) {
12299
      unicode::to_lower_ascii(host_str.data(), host_str.size());
12300
    }
12301
    out.host = std::move(host_str);
12302
    if (parsed_port != url_components::omitted) {
12303
      out.port = static_cast<uint16_t>(parsed_port);
12304
    }
12305
    if (insert_slash) {
12306
      out.path = "/";
12307
    } else {
12308
      out.path.assign(input.data() + path_start, path_end - path_start);
12309
    }
12310
    if (query_start != std::string_view::npos) {
12311
      const size_t q_end =
12312
          (hash_start != std::string_view::npos) ? hash_start : len;
12313
      out.query.emplace(input.data() + query_start + 1,
12314
                        q_end - query_start - 1);
12315
    }
12316
    if (hash_start != std::string_view::npos) {
12317
      out.hash.emplace(input.data() + hash_start + 1, len - hash_start - 1);
12318
    }
12319
  }
12320
734
  return true;
12321
1.83k
}
12322
12323
// Fast path for already-canonical special-scheme URLs of the shape
12324
// scheme://host[/path][?query][#fragment]. When the host is a plain domain
12325
// but the rest needs encoding or dot-segment normalization, the host is
12326
// kept and the path/query/hash helpers finish the URL.
12327
template <class result_type>
12328
ada_never_inline bool try_parse_simple_absolute(std::string_view input,
12329
91.1k
                                                result_type& out) {
12330
91.1k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12331
91.1k
  constexpr bool is_aggregator =
12332
91.1k
      std::is_same_v<result_type, ada::url_aggregator>;
12333
91.1k
  static_assert(is_ada_url || is_aggregator);
12334
12335
91.1k
  const size_t len = input.size();
12336
  // Shortest accepted form is "ws://x" (6).
12337
91.1k
  if (len < 6) [[unlikely]] {
12338
50.7k
    return false;
12339
50.7k
  }
12340
40.3k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12341
12342
40.3k
  size_t pos = 0;
12343
40.3k
  ada::scheme::type scheme_type = ada::scheme::type::NOT_SPECIAL;
12344
40.3k
  uint32_t protocol_end = 0;
12345
40.3k
#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
12346
40.3k
    defined(_M_X64) || defined(_M_IX86) || defined(_M_AMD64)
12347
  // One 8-byte load + integer compare is a single cmp/jcc on x86-64.
12348
  // Masked compares cover the shorter special schemes without extra loads.
12349
40.3k
  if (len >= 8) {
12350
34.9k
    uint64_t first8 = 0;
12351
34.9k
    std::memcpy(&first8, b, 8);
12352
34.9k
    if (first8 == 0x2f2f3a7370747468ull) {  // "https://"
12353
16
      pos = 8;
12354
16
      scheme_type = ada::scheme::type::HTTPS;
12355
16
      protocol_end = 6;
12356
34.9k
    } else if ((first8 & 0x00ffffffffffffffull) ==
12357
34.9k
               0x002f2f3a70747468ull) {  // "http://"
12358
742
      pos = 7;
12359
742
      scheme_type = ada::scheme::type::HTTP;
12360
742
      protocol_end = 5;
12361
34.1k
    } else if ((first8 & 0x0000ffffffffffffull) ==
12362
34.1k
               0x00002f2f3a737377ull) {  // "wss://"
12363
118
      pos = 6;
12364
118
      scheme_type = ada::scheme::type::WSS;
12365
118
      protocol_end = 4;
12366
34.0k
    } else if ((first8 & 0x0000ffffffffffffull) ==
12367
34.0k
               0x00002f2f3a707466ull) {  // "ftp://"
12368
36
      pos = 6;
12369
36
      scheme_type = ada::scheme::type::FTP;
12370
36
      protocol_end = 4;
12371
34.0k
    } else if ((first8 & 0x000000ffffffffffull) ==
12372
34.0k
               0x0000002f2f3a7377ull) {  // "ws://"
12373
14.9k
      pos = 5;
12374
14.9k
      scheme_type = ada::scheme::type::WS;
12375
14.9k
      protocol_end = 3;
12376
19.0k
    } else {
12377
19.0k
      return false;
12378
19.0k
    }
12379
34.9k
  } else if (b[0] == 'w' && b[1] == 's') {
12380
2.64k
    if (b[2] == ':' && b[3] == '/' && b[4] == '/') {
12381
1.07k
      pos = 5;
12382
1.07k
      scheme_type = ada::scheme::type::WS;
12383
1.07k
      protocol_end = 3;
12384
1.57k
    } else if (b[2] == 's' && b[3] == ':' && b[4] == '/' && b[5] == '/') {
12385
10
      pos = 6;
12386
10
      scheme_type = ada::scheme::type::WSS;
12387
10
      protocol_end = 4;
12388
1.56k
    } else {
12389
1.56k
      return false;
12390
1.56k
    }
12391
2.76k
  } else if (b[0] == 'f' && b[1] == 't' && b[2] == 'p' && b[3] == ':' &&
12392
50
             b[4] == '/' && b[5] == '/') {
12393
6
    pos = 6;
12394
6
    scheme_type = ada::scheme::type::FTP;
12395
6
    protocol_end = 4;
12396
2.75k
  } else if (len >= 7 && b[0] == 'h' && b[1] == 't' && b[2] == 't' &&
12397
124
             b[3] == 'p' && b[4] == ':' && b[5] == '/' && b[6] == '/') {
12398
6
    pos = 7;
12399
6
    scheme_type = ada::scheme::type::HTTP;
12400
6
    protocol_end = 5;
12401
2.75k
  } else {
12402
2.75k
    return false;
12403
2.75k
  }
12404
#else
12405
  // Big-endian / uncommon arches: byte-wise special-scheme match.
12406
  if (len >= 8 && b[0] == 'h' && b[1] == 't' && b[2] == 't' && b[3] == 'p' &&
12407
      b[4] == 's' && b[5] == ':' && b[6] == '/' && b[7] == '/') {
12408
    pos = 8;
12409
    scheme_type = ada::scheme::type::HTTPS;
12410
    protocol_end = 6;
12411
  } else if (len >= 7 && b[0] == 'h' && b[1] == 't' && b[2] == 't' &&
12412
             b[3] == 'p' && b[4] == ':' && b[5] == '/' && b[6] == '/') {
12413
    pos = 7;
12414
    scheme_type = ada::scheme::type::HTTP;
12415
    protocol_end = 5;
12416
  } else if (b[0] == 'w' && b[1] == 's') {
12417
    if (b[2] == ':' && b[3] == '/' && b[4] == '/') {
12418
      pos = 5;
12419
      scheme_type = ada::scheme::type::WS;
12420
      protocol_end = 3;
12421
    } else if (len >= 6 && b[2] == 's' && b[3] == ':' && b[4] == '/' &&
12422
               b[5] == '/') {
12423
      pos = 6;
12424
      scheme_type = ada::scheme::type::WSS;
12425
      protocol_end = 4;
12426
    } else {
12427
      return false;
12428
    }
12429
  } else if (b[0] == 'f' && b[1] == 't' && b[2] == 'p' && b[3] == ':' &&
12430
             b[4] == '/' && b[5] == '/') {
12431
    pos = 6;
12432
    scheme_type = ada::scheme::type::FTP;
12433
    protocol_end = 4;
12434
  } else {
12435
    return false;
12436
  }
12437
#endif
12438
16.9k
  if (pos < len && (b[pos] == '/' || b[pos] == '\\')) [[unlikely]] {
12439
40
    return false;
12440
40
  }
12441
12442
  // Digit-led hosts are IPv4/numeric; '[' is IPv6. Skip before scanning.
12443
16.9k
  if (pos < len && ((b[pos] >= '0' && b[pos] <= '9') || b[pos] == '[')) {
12444
2.49k
    return false;
12445
2.49k
  }
12446
12447
14.4k
  const size_t host_start = pos;
12448
14.4k
  bool has_upper = false;
12449
14.4k
  bool has_x = false;
12450
14.4k
  size_t host_end = pos;
12451
14.4k
  if (!scan_plain_host(b, pos, len, host_end, has_upper, has_x)) {
12452
564
    return false;
12453
564
  }
12454
13.8k
  if (host_start == host_end) [[unlikely]] {
12455
122
    return false;
12456
122
  }
12457
13.7k
  const size_t host_len = host_end - host_start;
12458
13.7k
  if (host_len > 253) [[unlikely]] {
12459
176
    return false;
12460
176
  }
12461
13.5k
  {
12462
13.5k
    std::string_view hv(input.data() + host_start, host_len);
12463
13.5k
    char host_buf[256];
12464
13.5k
    if (has_upper) [[unlikely]] {
12465
1.20k
      std::memcpy(host_buf, input.data() + host_start, host_len);
12466
1.20k
      unicode::to_lower_ascii(host_buf, host_len);
12467
1.20k
      hv = std::string_view(host_buf, host_len);
12468
1.20k
    }
12469
13.5k
    if (ada::checkers::last_label_may_be_a_number(hv)) [[unlikely]] {
12470
190
      return false;
12471
190
    }
12472
    // Punycode is "xn--...". The host scan already notes a lowercase 'x';
12473
    // uppercase 'X' is covered by has_upper after the in-place lower.
12474
13.3k
    static constexpr std::string_view xn{"xn-", 3};
12475
13.3k
    if ((has_x || has_upper) && hv.find(xn) != std::string_view::npos)
12476
2.46k
        [[unlikely]] {
12477
2.46k
      return false;
12478
2.46k
    }
12479
13.3k
  }
12480
12481
10.9k
  if (host_end < len && b[host_end] == ':') [[unlikely]] {
12482
3.92k
    return finish_simple_absolute_with_port(input, out, scheme_type,
12483
3.92k
                                            protocol_end, host_start, host_end,
12484
3.92k
                                            host_len, has_upper);
12485
3.92k
  }
12486
12487
6.98k
  size_t i = host_end;
12488
6.98k
  size_t path_start = host_end;
12489
6.98k
  size_t path_end = host_end;
12490
6.98k
  size_t query_start = std::string_view::npos;
12491
6.98k
  size_t hash_start = std::string_view::npos;
12492
6.98k
  bool has_path = false;
12493
6.98k
  bool maybe_dot_segment = false;
12494
6.98k
  bool rest_simple = true;
12495
12496
6.98k
  if (i < len && b[i] == '/') {
12497
6.35k
    has_path = true;
12498
6.35k
    path_start = i;
12499
6.35k
    ++i;
12500
6.35k
    scan_path_run(b, i, len, maybe_dot_segment);
12501
6.35k
    if (i < len) {
12502
2.85k
      const uint8_t cls = k_path[b[i]];
12503
2.85k
      if (cls == 1) {
12504
854
        path_end = i;
12505
854
        if (b[i] == '?') {
12506
536
          query_start = i;
12507
536
          ++i;
12508
536
          goto scan_query;
12509
536
        }
12510
318
        hash_start = i;
12511
318
        ++i;
12512
318
        goto scan_hash;
12513
854
      }
12514
2.00k
      rest_simple = false;
12515
2.00k
      hash_start = input.find('#', i);
12516
2.00k
      query_start = input.substr(0, hash_start).find('?', i);
12517
2.00k
      if (query_start != std::string_view::npos) {
12518
100
        path_end = query_start;
12519
1.90k
      } else {
12520
1.90k
        path_end = hash_start != std::string_view::npos ? hash_start : len;
12521
1.90k
      }
12522
2.00k
      goto after_rest;
12523
2.85k
    }
12524
3.49k
    path_end = i;
12525
3.49k
  } else if (i < len && b[i] == '?') {
12526
146
    query_start = i;
12527
146
    ++i;
12528
146
    goto scan_query;
12529
486
  } else if (i < len && b[i] == '#') {
12530
140
    hash_start = i;
12531
140
    ++i;
12532
140
    goto scan_hash;
12533
140
  }
12534
3.84k
  goto after_rest;
12535
12536
3.84k
scan_query:
12537
682
  scan_query_run(b, i, len);
12538
682
  if (i < len) {
12539
350
    if (b[i] == '#') {
12540
238
      hash_start = i;
12541
238
      ++i;
12542
238
      goto scan_hash;
12543
238
    }
12544
112
    rest_simple = false;
12545
112
    goto scan_query_boundary;
12546
350
  }
12547
332
  goto after_rest;
12548
12549
332
scan_query_boundary:
12550
112
  hash_start = input.find('#', i);
12551
112
  goto after_rest;
12552
12553
696
scan_hash:
12554
696
  scan_hash_run(b, i, len);
12555
696
  if (i < len) {
12556
116
    rest_simple = false;
12557
116
  }
12558
12559
6.98k
after_rest:
12560
6.98k
  if (rest_simple && maybe_dot_segment) {
12561
858
    const std::string_view path_body(input.data() + path_start,
12562
858
                                     path_end - path_start);
12563
858
    if (path_has_dot_segment(path_body)) {
12564
356
      rest_simple = false;
12565
356
    }
12566
858
  }
12567
12568
  // The slow path removes ASCII tab/newline anywhere in the input and trims a
12569
  // trailing C0 control or space; this fast path does neither. A query or
12570
  // fragment reaching the helpers below would keep those bytes percent-encoded
12571
  // ("?a\nb" -> "?a%0Ab", "#f " -> "#f%20") instead of stripped, so hand such
12572
  // inputs back to the slow path.
12573
6.98k
  if (!rest_simple && (unicode::is_c0_control_or_space(input.back()) ||
12574
2.51k
                       unicode::has_tabs_or_newline(input))) {
12575
120
    return false;
12576
120
  }
12577
12578
6.86k
  out.type = scheme_type;
12579
6.86k
  out.is_valid = true;
12580
6.86k
  out.has_opaque_path = false;
12581
6.86k
  out.host_type = DEFAULT;
12582
12583
6.86k
  if (!rest_simple) {
12584
    // Host is a plain domain. Finish path/query/hash with
12585
    // the regular helpers
12586
    // so percent-encoding and dot segments do not re-parse the authority.
12587
2.46k
    const std::string_view path_view =
12588
2.46k
        has_path
12589
2.46k
            ? std::string_view(input.data() + path_start, path_end - path_start)
12590
2.46k
            : std::string_view{};
12591
2.46k
    auto apply_query_and_hash = [&]() {
12592
2.46k
      if (query_start != std::string_view::npos) {
12593
202
        const size_t q_end =
12594
202
            (hash_start != std::string_view::npos) ? hash_start : len;
12595
202
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12596
202
                                                q_end - query_start - 1),
12597
202
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12598
202
      }
12599
2.46k
      if (hash_start != std::string_view::npos) {
12600
188
        out.update_unencoded_base_hash(std::string_view(
12601
188
            input.data() + hash_start + 1, len - hash_start - 1));
12602
188
      }
12603
2.46k
    };
ada::parser::try_parse_simple_absolute<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url&)::{lambda()#1}::operator()() const
Line
Count
Source
12591
1.23k
    auto apply_query_and_hash = [&]() {
12592
1.23k
      if (query_start != std::string_view::npos) {
12593
101
        const size_t q_end =
12594
101
            (hash_start != std::string_view::npos) ? hash_start : len;
12595
101
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12596
101
                                                q_end - query_start - 1),
12597
101
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12598
101
      }
12599
1.23k
      if (hash_start != std::string_view::npos) {
12600
94
        out.update_unencoded_base_hash(std::string_view(
12601
94
            input.data() + hash_start + 1, len - hash_start - 1));
12602
94
      }
12603
1.23k
    };
ada::parser::try_parse_simple_absolute<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator&)::{lambda()#1}::operator()() const
Line
Count
Source
12591
1.23k
    auto apply_query_and_hash = [&]() {
12592
1.23k
      if (query_start != std::string_view::npos) {
12593
101
        const size_t q_end =
12594
101
            (hash_start != std::string_view::npos) ? hash_start : len;
12595
101
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12596
101
                                                q_end - query_start - 1),
12597
101
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12598
101
      }
12599
1.23k
      if (hash_start != std::string_view::npos) {
12600
94
        out.update_unencoded_base_hash(std::string_view(
12601
94
            input.data() + hash_start + 1, len - hash_start - 1));
12602
94
      }
12603
1.23k
    };
12604
2.46k
    if constexpr (is_aggregator) {
12605
1.23k
      out.buffer.assign(input.substr(0, host_end));
12606
1.23k
      if (has_upper) {
12607
160
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12608
160
      }
12609
1.23k
      out.components.protocol_end = protocol_end;
12610
1.23k
      out.components.username_end = protocol_end + 2;
12611
1.23k
      out.components.host_start = protocol_end + 2;
12612
1.23k
      out.components.host_end = static_cast<uint32_t>(host_end);
12613
1.23k
      out.components.port = url_components::omitted;
12614
1.23k
      out.components.pathname_start = static_cast<uint32_t>(host_end);
12615
1.23k
      out.components.search_start = url_components::omitted;
12616
1.23k
      out.components.hash_start = url_components::omitted;
12617
1.23k
      out.parse_path(path_view);
12618
1.23k
      apply_query_and_hash();
12619
1.23k
    } else {
12620
1.23k
      std::string host_str(input.substr(host_start, host_len));
12621
1.23k
      if (has_upper) {
12622
160
        unicode::to_lower_ascii(host_str.data(), host_str.size());
12623
160
      }
12624
1.23k
      out.host = std::move(host_str);
12625
1.23k
      out.parse_path(path_view);
12626
1.23k
      apply_query_and_hash();
12627
1.23k
    }
12628
2.46k
    return true;
12629
2.46k
  }
12630
12631
4.39k
  const bool need_slash = !has_path;
12632
4.39k
  if constexpr (is_aggregator) {
12633
2.19k
    if (!need_slash) {
12634
      // assign copies once. resize()+memcpy would value-init then overwrite.
12635
1.96k
      out.buffer.assign(input);
12636
1.96k
      if (has_upper) {
12637
32
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12638
32
      }
12639
1.96k
      out.components.protocol_end = protocol_end;
12640
1.96k
      out.components.username_end = protocol_end + 2;
12641
1.96k
      out.components.host_start = protocol_end + 2;
12642
1.96k
      out.components.host_end = static_cast<uint32_t>(host_end);
12643
1.96k
      out.components.port = url_components::omitted;
12644
1.96k
      out.components.pathname_start = static_cast<uint32_t>(path_start);
12645
1.96k
      out.components.search_start = (query_start != std::string_view::npos)
12646
1.96k
                                        ? static_cast<uint32_t>(query_start)
12647
1.96k
                                        : url_components::omitted;
12648
1.96k
      out.components.hash_start = (hash_start != std::string_view::npos)
12649
1.96k
                                      ? static_cast<uint32_t>(hash_start)
12650
1.96k
                                      : url_components::omitted;
12651
1.96k
    } else {
12652
237
      out.buffer.clear();
12653
237
      out.buffer.reserve(len + 1);
12654
237
      out.buffer.append(input.substr(0, host_end));
12655
237
      out.buffer.push_back('/');
12656
237
      if (host_end < len) {
12657
64
        out.buffer.append(input.substr(host_end));
12658
64
      }
12659
237
      if (has_upper) {
12660
107
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12661
107
      }
12662
237
      out.components.protocol_end = protocol_end;
12663
237
      out.components.username_end = protocol_end + 2;
12664
237
      out.components.host_start = protocol_end + 2;
12665
237
      out.components.host_end = static_cast<uint32_t>(host_end);
12666
237
      out.components.port = url_components::omitted;
12667
237
      out.components.pathname_start = static_cast<uint32_t>(host_end);
12668
237
      out.components.search_start = (query_start != std::string_view::npos)
12669
237
                                        ? static_cast<uint32_t>(query_start + 1)
12670
237
                                        : url_components::omitted;
12671
237
      out.components.hash_start = (hash_start != std::string_view::npos)
12672
237
                                      ? static_cast<uint32_t>(hash_start + 1)
12673
237
                                      : url_components::omitted;
12674
237
    }
12675
2.19k
  } else {
12676
2.19k
    std::string host_str(input.substr(host_start, host_len));
12677
2.19k
    if (has_upper) {
12678
139
      unicode::to_lower_ascii(host_str.data(), host_str.size());
12679
139
    }
12680
2.19k
    out.host = std::move(host_str);
12681
2.19k
    if (need_slash) {
12682
237
      out.path = "/";
12683
1.96k
    } else {
12684
1.96k
      out.path.assign(input.data() + path_start, path_end - path_start);
12685
1.96k
    }
12686
2.19k
    if (query_start != std::string_view::npos) {
12687
282
      const size_t q_end =
12688
282
          (hash_start != std::string_view::npos) ? hash_start : len;
12689
282
      out.query.emplace(input.data() + query_start + 1,
12690
282
                        q_end - query_start - 1);
12691
282
    }
12692
2.19k
    if (hash_start != std::string_view::npos) {
12693
290
      out.hash.emplace(input.data() + hash_start + 1, len - hash_start - 1);
12694
290
    }
12695
2.19k
  }
12696
4.39k
  return true;
12697
6.86k
}
bool ada::parser::try_parse_simple_absolute<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url&)
Line
Count
Source
12329
45.5k
                                                result_type& out) {
12330
45.5k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12331
45.5k
  constexpr bool is_aggregator =
12332
45.5k
      std::is_same_v<result_type, ada::url_aggregator>;
12333
45.5k
  static_assert(is_ada_url || is_aggregator);
12334
12335
45.5k
  const size_t len = input.size();
12336
  // Shortest accepted form is "ws://x" (6).
12337
45.5k
  if (len < 6) [[unlikely]] {
12338
25.3k
    return false;
12339
25.3k
  }
12340
20.1k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12341
12342
20.1k
  size_t pos = 0;
12343
20.1k
  ada::scheme::type scheme_type = ada::scheme::type::NOT_SPECIAL;
12344
20.1k
  uint32_t protocol_end = 0;
12345
20.1k
#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
12346
20.1k
    defined(_M_X64) || defined(_M_IX86) || defined(_M_AMD64)
12347
  // One 8-byte load + integer compare is a single cmp/jcc on x86-64.
12348
  // Masked compares cover the shorter special schemes without extra loads.
12349
20.1k
  if (len >= 8) {
12350
17.4k
    uint64_t first8 = 0;
12351
17.4k
    std::memcpy(&first8, b, 8);
12352
17.4k
    if (first8 == 0x2f2f3a7370747468ull) {  // "https://"
12353
8
      pos = 8;
12354
8
      scheme_type = ada::scheme::type::HTTPS;
12355
8
      protocol_end = 6;
12356
17.4k
    } else if ((first8 & 0x00ffffffffffffffull) ==
12357
17.4k
               0x002f2f3a70747468ull) {  // "http://"
12358
371
      pos = 7;
12359
371
      scheme_type = ada::scheme::type::HTTP;
12360
371
      protocol_end = 5;
12361
17.0k
    } else if ((first8 & 0x0000ffffffffffffull) ==
12362
17.0k
               0x00002f2f3a737377ull) {  // "wss://"
12363
59
      pos = 6;
12364
59
      scheme_type = ada::scheme::type::WSS;
12365
59
      protocol_end = 4;
12366
17.0k
    } else if ((first8 & 0x0000ffffffffffffull) ==
12367
17.0k
               0x00002f2f3a707466ull) {  // "ftp://"
12368
18
      pos = 6;
12369
18
      scheme_type = ada::scheme::type::FTP;
12370
18
      protocol_end = 4;
12371
17.0k
    } else if ((first8 & 0x000000ffffffffffull) ==
12372
17.0k
               0x0000002f2f3a7377ull) {  // "ws://"
12373
7.47k
      pos = 5;
12374
7.47k
      scheme_type = ada::scheme::type::WS;
12375
7.47k
      protocol_end = 3;
12376
9.54k
    } else {
12377
9.54k
      return false;
12378
9.54k
    }
12379
17.4k
  } else if (b[0] == 'w' && b[1] == 's') {
12380
1.32k
    if (b[2] == ':' && b[3] == '/' && b[4] == '/') {
12381
539
      pos = 5;
12382
539
      scheme_type = ada::scheme::type::WS;
12383
539
      protocol_end = 3;
12384
785
    } else if (b[2] == 's' && b[3] == ':' && b[4] == '/' && b[5] == '/') {
12385
5
      pos = 6;
12386
5
      scheme_type = ada::scheme::type::WSS;
12387
5
      protocol_end = 4;
12388
780
    } else {
12389
780
      return false;
12390
780
    }
12391
1.38k
  } else if (b[0] == 'f' && b[1] == 't' && b[2] == 'p' && b[3] == ':' &&
12392
25
             b[4] == '/' && b[5] == '/') {
12393
3
    pos = 6;
12394
3
    scheme_type = ada::scheme::type::FTP;
12395
3
    protocol_end = 4;
12396
1.37k
  } else if (len >= 7 && b[0] == 'h' && b[1] == 't' && b[2] == 't' &&
12397
62
             b[3] == 'p' && b[4] == ':' && b[5] == '/' && b[6] == '/') {
12398
3
    pos = 7;
12399
3
    scheme_type = ada::scheme::type::HTTP;
12400
3
    protocol_end = 5;
12401
1.37k
  } else {
12402
1.37k
    return false;
12403
1.37k
  }
12404
#else
12405
  // Big-endian / uncommon arches: byte-wise special-scheme match.
12406
  if (len >= 8 && b[0] == 'h' && b[1] == 't' && b[2] == 't' && b[3] == 'p' &&
12407
      b[4] == 's' && b[5] == ':' && b[6] == '/' && b[7] == '/') {
12408
    pos = 8;
12409
    scheme_type = ada::scheme::type::HTTPS;
12410
    protocol_end = 6;
12411
  } else if (len >= 7 && b[0] == 'h' && b[1] == 't' && b[2] == 't' &&
12412
             b[3] == 'p' && b[4] == ':' && b[5] == '/' && b[6] == '/') {
12413
    pos = 7;
12414
    scheme_type = ada::scheme::type::HTTP;
12415
    protocol_end = 5;
12416
  } else if (b[0] == 'w' && b[1] == 's') {
12417
    if (b[2] == ':' && b[3] == '/' && b[4] == '/') {
12418
      pos = 5;
12419
      scheme_type = ada::scheme::type::WS;
12420
      protocol_end = 3;
12421
    } else if (len >= 6 && b[2] == 's' && b[3] == ':' && b[4] == '/' &&
12422
               b[5] == '/') {
12423
      pos = 6;
12424
      scheme_type = ada::scheme::type::WSS;
12425
      protocol_end = 4;
12426
    } else {
12427
      return false;
12428
    }
12429
  } else if (b[0] == 'f' && b[1] == 't' && b[2] == 'p' && b[3] == ':' &&
12430
             b[4] == '/' && b[5] == '/') {
12431
    pos = 6;
12432
    scheme_type = ada::scheme::type::FTP;
12433
    protocol_end = 4;
12434
  } else {
12435
    return false;
12436
  }
12437
#endif
12438
8.47k
  if (pos < len && (b[pos] == '/' || b[pos] == '\\')) [[unlikely]] {
12439
20
    return false;
12440
20
  }
12441
12442
  // Digit-led hosts are IPv4/numeric; '[' is IPv6. Skip before scanning.
12443
8.45k
  if (pos < len && ((b[pos] >= '0' && b[pos] <= '9') || b[pos] == '[')) {
12444
1.24k
    return false;
12445
1.24k
  }
12446
12447
7.21k
  const size_t host_start = pos;
12448
7.21k
  bool has_upper = false;
12449
7.21k
  bool has_x = false;
12450
7.21k
  size_t host_end = pos;
12451
7.21k
  if (!scan_plain_host(b, pos, len, host_end, has_upper, has_x)) {
12452
282
    return false;
12453
282
  }
12454
6.93k
  if (host_start == host_end) [[unlikely]] {
12455
61
    return false;
12456
61
  }
12457
6.87k
  const size_t host_len = host_end - host_start;
12458
6.87k
  if (host_len > 253) [[unlikely]] {
12459
88
    return false;
12460
88
  }
12461
6.78k
  {
12462
6.78k
    std::string_view hv(input.data() + host_start, host_len);
12463
6.78k
    char host_buf[256];
12464
6.78k
    if (has_upper) [[unlikely]] {
12465
602
      std::memcpy(host_buf, input.data() + host_start, host_len);
12466
602
      unicode::to_lower_ascii(host_buf, host_len);
12467
602
      hv = std::string_view(host_buf, host_len);
12468
602
    }
12469
6.78k
    if (ada::checkers::last_label_may_be_a_number(hv)) [[unlikely]] {
12470
95
      return false;
12471
95
    }
12472
    // Punycode is "xn--...". The host scan already notes a lowercase 'x';
12473
    // uppercase 'X' is covered by has_upper after the in-place lower.
12474
6.68k
    static constexpr std::string_view xn{"xn-", 3};
12475
6.68k
    if ((has_x || has_upper) && hv.find(xn) != std::string_view::npos)
12476
1.23k
        [[unlikely]] {
12477
1.23k
      return false;
12478
1.23k
    }
12479
6.68k
  }
12480
12481
5.45k
  if (host_end < len && b[host_end] == ':') [[unlikely]] {
12482
1.96k
    return finish_simple_absolute_with_port(input, out, scheme_type,
12483
1.96k
                                            protocol_end, host_start, host_end,
12484
1.96k
                                            host_len, has_upper);
12485
1.96k
  }
12486
12487
3.49k
  size_t i = host_end;
12488
3.49k
  size_t path_start = host_end;
12489
3.49k
  size_t path_end = host_end;
12490
3.49k
  size_t query_start = std::string_view::npos;
12491
3.49k
  size_t hash_start = std::string_view::npos;
12492
3.49k
  bool has_path = false;
12493
3.49k
  bool maybe_dot_segment = false;
12494
3.49k
  bool rest_simple = true;
12495
12496
3.49k
  if (i < len && b[i] == '/') {
12497
3.17k
    has_path = true;
12498
3.17k
    path_start = i;
12499
3.17k
    ++i;
12500
3.17k
    scan_path_run(b, i, len, maybe_dot_segment);
12501
3.17k
    if (i < len) {
12502
1.42k
      const uint8_t cls = k_path[b[i]];
12503
1.42k
      if (cls == 1) {
12504
427
        path_end = i;
12505
427
        if (b[i] == '?') {
12506
268
          query_start = i;
12507
268
          ++i;
12508
268
          goto scan_query;
12509
268
        }
12510
159
        hash_start = i;
12511
159
        ++i;
12512
159
        goto scan_hash;
12513
427
      }
12514
1.00k
      rest_simple = false;
12515
1.00k
      hash_start = input.find('#', i);
12516
1.00k
      query_start = input.substr(0, hash_start).find('?', i);
12517
1.00k
      if (query_start != std::string_view::npos) {
12518
50
        path_end = query_start;
12519
952
      } else {
12520
952
        path_end = hash_start != std::string_view::npos ? hash_start : len;
12521
952
      }
12522
1.00k
      goto after_rest;
12523
1.42k
    }
12524
1.74k
    path_end = i;
12525
1.74k
  } else if (i < len && b[i] == '?') {
12526
73
    query_start = i;
12527
73
    ++i;
12528
73
    goto scan_query;
12529
243
  } else if (i < len && b[i] == '#') {
12530
70
    hash_start = i;
12531
70
    ++i;
12532
70
    goto scan_hash;
12533
70
  }
12534
1.92k
  goto after_rest;
12535
12536
1.92k
scan_query:
12537
341
  scan_query_run(b, i, len);
12538
341
  if (i < len) {
12539
175
    if (b[i] == '#') {
12540
119
      hash_start = i;
12541
119
      ++i;
12542
119
      goto scan_hash;
12543
119
    }
12544
56
    rest_simple = false;
12545
56
    goto scan_query_boundary;
12546
175
  }
12547
166
  goto after_rest;
12548
12549
166
scan_query_boundary:
12550
56
  hash_start = input.find('#', i);
12551
56
  goto after_rest;
12552
12553
348
scan_hash:
12554
348
  scan_hash_run(b, i, len);
12555
348
  if (i < len) {
12556
58
    rest_simple = false;
12557
58
  }
12558
12559
3.49k
after_rest:
12560
3.49k
  if (rest_simple && maybe_dot_segment) {
12561
429
    const std::string_view path_body(input.data() + path_start,
12562
429
                                     path_end - path_start);
12563
429
    if (path_has_dot_segment(path_body)) {
12564
178
      rest_simple = false;
12565
178
    }
12566
429
  }
12567
12568
  // The slow path removes ASCII tab/newline anywhere in the input and trims a
12569
  // trailing C0 control or space; this fast path does neither. A query or
12570
  // fragment reaching the helpers below would keep those bytes percent-encoded
12571
  // ("?a\nb" -> "?a%0Ab", "#f " -> "#f%20") instead of stripped, so hand such
12572
  // inputs back to the slow path.
12573
3.49k
  if (!rest_simple && (unicode::is_c0_control_or_space(input.back()) ||
12574
1.25k
                       unicode::has_tabs_or_newline(input))) {
12575
60
    return false;
12576
60
  }
12577
12578
3.43k
  out.type = scheme_type;
12579
3.43k
  out.is_valid = true;
12580
3.43k
  out.has_opaque_path = false;
12581
3.43k
  out.host_type = DEFAULT;
12582
12583
3.43k
  if (!rest_simple) {
12584
    // Host is a plain domain. Finish path/query/hash with
12585
    // the regular helpers
12586
    // so percent-encoding and dot segments do not re-parse the authority.
12587
1.23k
    const std::string_view path_view =
12588
1.23k
        has_path
12589
1.23k
            ? std::string_view(input.data() + path_start, path_end - path_start)
12590
1.23k
            : std::string_view{};
12591
1.23k
    auto apply_query_and_hash = [&]() {
12592
1.23k
      if (query_start != std::string_view::npos) {
12593
1.23k
        const size_t q_end =
12594
1.23k
            (hash_start != std::string_view::npos) ? hash_start : len;
12595
1.23k
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12596
1.23k
                                                q_end - query_start - 1),
12597
1.23k
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12598
1.23k
      }
12599
1.23k
      if (hash_start != std::string_view::npos) {
12600
1.23k
        out.update_unencoded_base_hash(std::string_view(
12601
1.23k
            input.data() + hash_start + 1, len - hash_start - 1));
12602
1.23k
      }
12603
1.23k
    };
12604
    if constexpr (is_aggregator) {
12605
      out.buffer.assign(input.substr(0, host_end));
12606
      if (has_upper) {
12607
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12608
      }
12609
      out.components.protocol_end = protocol_end;
12610
      out.components.username_end = protocol_end + 2;
12611
      out.components.host_start = protocol_end + 2;
12612
      out.components.host_end = static_cast<uint32_t>(host_end);
12613
      out.components.port = url_components::omitted;
12614
      out.components.pathname_start = static_cast<uint32_t>(host_end);
12615
      out.components.search_start = url_components::omitted;
12616
      out.components.hash_start = url_components::omitted;
12617
      out.parse_path(path_view);
12618
      apply_query_and_hash();
12619
1.23k
    } else {
12620
1.23k
      std::string host_str(input.substr(host_start, host_len));
12621
1.23k
      if (has_upper) {
12622
160
        unicode::to_lower_ascii(host_str.data(), host_str.size());
12623
160
      }
12624
1.23k
      out.host = std::move(host_str);
12625
1.23k
      out.parse_path(path_view);
12626
1.23k
      apply_query_and_hash();
12627
1.23k
    }
12628
1.23k
    return true;
12629
1.23k
  }
12630
12631
2.19k
  const bool need_slash = !has_path;
12632
  if constexpr (is_aggregator) {
12633
    if (!need_slash) {
12634
      // assign copies once. resize()+memcpy would value-init then overwrite.
12635
      out.buffer.assign(input);
12636
      if (has_upper) {
12637
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12638
      }
12639
      out.components.protocol_end = protocol_end;
12640
      out.components.username_end = protocol_end + 2;
12641
      out.components.host_start = protocol_end + 2;
12642
      out.components.host_end = static_cast<uint32_t>(host_end);
12643
      out.components.port = url_components::omitted;
12644
      out.components.pathname_start = static_cast<uint32_t>(path_start);
12645
      out.components.search_start = (query_start != std::string_view::npos)
12646
                                        ? static_cast<uint32_t>(query_start)
12647
                                        : url_components::omitted;
12648
      out.components.hash_start = (hash_start != std::string_view::npos)
12649
                                      ? static_cast<uint32_t>(hash_start)
12650
                                      : url_components::omitted;
12651
    } else {
12652
      out.buffer.clear();
12653
      out.buffer.reserve(len + 1);
12654
      out.buffer.append(input.substr(0, host_end));
12655
      out.buffer.push_back('/');
12656
      if (host_end < len) {
12657
        out.buffer.append(input.substr(host_end));
12658
      }
12659
      if (has_upper) {
12660
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12661
      }
12662
      out.components.protocol_end = protocol_end;
12663
      out.components.username_end = protocol_end + 2;
12664
      out.components.host_start = protocol_end + 2;
12665
      out.components.host_end = static_cast<uint32_t>(host_end);
12666
      out.components.port = url_components::omitted;
12667
      out.components.pathname_start = static_cast<uint32_t>(host_end);
12668
      out.components.search_start = (query_start != std::string_view::npos)
12669
                                        ? static_cast<uint32_t>(query_start + 1)
12670
                                        : url_components::omitted;
12671
      out.components.hash_start = (hash_start != std::string_view::npos)
12672
                                      ? static_cast<uint32_t>(hash_start + 1)
12673
                                      : url_components::omitted;
12674
    }
12675
2.19k
  } else {
12676
2.19k
    std::string host_str(input.substr(host_start, host_len));
12677
2.19k
    if (has_upper) {
12678
139
      unicode::to_lower_ascii(host_str.data(), host_str.size());
12679
139
    }
12680
2.19k
    out.host = std::move(host_str);
12681
2.19k
    if (need_slash) {
12682
237
      out.path = "/";
12683
1.96k
    } else {
12684
1.96k
      out.path.assign(input.data() + path_start, path_end - path_start);
12685
1.96k
    }
12686
2.19k
    if (query_start != std::string_view::npos) {
12687
282
      const size_t q_end =
12688
282
          (hash_start != std::string_view::npos) ? hash_start : len;
12689
282
      out.query.emplace(input.data() + query_start + 1,
12690
282
                        q_end - query_start - 1);
12691
282
    }
12692
2.19k
    if (hash_start != std::string_view::npos) {
12693
290
      out.hash.emplace(input.data() + hash_start + 1, len - hash_start - 1);
12694
290
    }
12695
2.19k
  }
12696
2.19k
  return true;
12697
3.43k
}
bool ada::parser::try_parse_simple_absolute<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator&)
Line
Count
Source
12329
45.5k
                                                result_type& out) {
12330
45.5k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12331
45.5k
  constexpr bool is_aggregator =
12332
45.5k
      std::is_same_v<result_type, ada::url_aggregator>;
12333
45.5k
  static_assert(is_ada_url || is_aggregator);
12334
12335
45.5k
  const size_t len = input.size();
12336
  // Shortest accepted form is "ws://x" (6).
12337
45.5k
  if (len < 6) [[unlikely]] {
12338
25.3k
    return false;
12339
25.3k
  }
12340
20.1k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12341
12342
20.1k
  size_t pos = 0;
12343
20.1k
  ada::scheme::type scheme_type = ada::scheme::type::NOT_SPECIAL;
12344
20.1k
  uint32_t protocol_end = 0;
12345
20.1k
#if (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || \
12346
20.1k
    defined(_M_X64) || defined(_M_IX86) || defined(_M_AMD64)
12347
  // One 8-byte load + integer compare is a single cmp/jcc on x86-64.
12348
  // Masked compares cover the shorter special schemes without extra loads.
12349
20.1k
  if (len >= 8) {
12350
17.4k
    uint64_t first8 = 0;
12351
17.4k
    std::memcpy(&first8, b, 8);
12352
17.4k
    if (first8 == 0x2f2f3a7370747468ull) {  // "https://"
12353
8
      pos = 8;
12354
8
      scheme_type = ada::scheme::type::HTTPS;
12355
8
      protocol_end = 6;
12356
17.4k
    } else if ((first8 & 0x00ffffffffffffffull) ==
12357
17.4k
               0x002f2f3a70747468ull) {  // "http://"
12358
371
      pos = 7;
12359
371
      scheme_type = ada::scheme::type::HTTP;
12360
371
      protocol_end = 5;
12361
17.0k
    } else if ((first8 & 0x0000ffffffffffffull) ==
12362
17.0k
               0x00002f2f3a737377ull) {  // "wss://"
12363
59
      pos = 6;
12364
59
      scheme_type = ada::scheme::type::WSS;
12365
59
      protocol_end = 4;
12366
17.0k
    } else if ((first8 & 0x0000ffffffffffffull) ==
12367
17.0k
               0x00002f2f3a707466ull) {  // "ftp://"
12368
18
      pos = 6;
12369
18
      scheme_type = ada::scheme::type::FTP;
12370
18
      protocol_end = 4;
12371
17.0k
    } else if ((first8 & 0x000000ffffffffffull) ==
12372
17.0k
               0x0000002f2f3a7377ull) {  // "ws://"
12373
7.47k
      pos = 5;
12374
7.47k
      scheme_type = ada::scheme::type::WS;
12375
7.47k
      protocol_end = 3;
12376
9.54k
    } else {
12377
9.54k
      return false;
12378
9.54k
    }
12379
17.4k
  } else if (b[0] == 'w' && b[1] == 's') {
12380
1.32k
    if (b[2] == ':' && b[3] == '/' && b[4] == '/') {
12381
539
      pos = 5;
12382
539
      scheme_type = ada::scheme::type::WS;
12383
539
      protocol_end = 3;
12384
785
    } else if (b[2] == 's' && b[3] == ':' && b[4] == '/' && b[5] == '/') {
12385
5
      pos = 6;
12386
5
      scheme_type = ada::scheme::type::WSS;
12387
5
      protocol_end = 4;
12388
780
    } else {
12389
780
      return false;
12390
780
    }
12391
1.38k
  } else if (b[0] == 'f' && b[1] == 't' && b[2] == 'p' && b[3] == ':' &&
12392
25
             b[4] == '/' && b[5] == '/') {
12393
3
    pos = 6;
12394
3
    scheme_type = ada::scheme::type::FTP;
12395
3
    protocol_end = 4;
12396
1.37k
  } else if (len >= 7 && b[0] == 'h' && b[1] == 't' && b[2] == 't' &&
12397
62
             b[3] == 'p' && b[4] == ':' && b[5] == '/' && b[6] == '/') {
12398
3
    pos = 7;
12399
3
    scheme_type = ada::scheme::type::HTTP;
12400
3
    protocol_end = 5;
12401
1.37k
  } else {
12402
1.37k
    return false;
12403
1.37k
  }
12404
#else
12405
  // Big-endian / uncommon arches: byte-wise special-scheme match.
12406
  if (len >= 8 && b[0] == 'h' && b[1] == 't' && b[2] == 't' && b[3] == 'p' &&
12407
      b[4] == 's' && b[5] == ':' && b[6] == '/' && b[7] == '/') {
12408
    pos = 8;
12409
    scheme_type = ada::scheme::type::HTTPS;
12410
    protocol_end = 6;
12411
  } else if (len >= 7 && b[0] == 'h' && b[1] == 't' && b[2] == 't' &&
12412
             b[3] == 'p' && b[4] == ':' && b[5] == '/' && b[6] == '/') {
12413
    pos = 7;
12414
    scheme_type = ada::scheme::type::HTTP;
12415
    protocol_end = 5;
12416
  } else if (b[0] == 'w' && b[1] == 's') {
12417
    if (b[2] == ':' && b[3] == '/' && b[4] == '/') {
12418
      pos = 5;
12419
      scheme_type = ada::scheme::type::WS;
12420
      protocol_end = 3;
12421
    } else if (len >= 6 && b[2] == 's' && b[3] == ':' && b[4] == '/' &&
12422
               b[5] == '/') {
12423
      pos = 6;
12424
      scheme_type = ada::scheme::type::WSS;
12425
      protocol_end = 4;
12426
    } else {
12427
      return false;
12428
    }
12429
  } else if (b[0] == 'f' && b[1] == 't' && b[2] == 'p' && b[3] == ':' &&
12430
             b[4] == '/' && b[5] == '/') {
12431
    pos = 6;
12432
    scheme_type = ada::scheme::type::FTP;
12433
    protocol_end = 4;
12434
  } else {
12435
    return false;
12436
  }
12437
#endif
12438
8.47k
  if (pos < len && (b[pos] == '/' || b[pos] == '\\')) [[unlikely]] {
12439
20
    return false;
12440
20
  }
12441
12442
  // Digit-led hosts are IPv4/numeric; '[' is IPv6. Skip before scanning.
12443
8.45k
  if (pos < len && ((b[pos] >= '0' && b[pos] <= '9') || b[pos] == '[')) {
12444
1.24k
    return false;
12445
1.24k
  }
12446
12447
7.21k
  const size_t host_start = pos;
12448
7.21k
  bool has_upper = false;
12449
7.21k
  bool has_x = false;
12450
7.21k
  size_t host_end = pos;
12451
7.21k
  if (!scan_plain_host(b, pos, len, host_end, has_upper, has_x)) {
12452
282
    return false;
12453
282
  }
12454
6.93k
  if (host_start == host_end) [[unlikely]] {
12455
61
    return false;
12456
61
  }
12457
6.87k
  const size_t host_len = host_end - host_start;
12458
6.87k
  if (host_len > 253) [[unlikely]] {
12459
88
    return false;
12460
88
  }
12461
6.78k
  {
12462
6.78k
    std::string_view hv(input.data() + host_start, host_len);
12463
6.78k
    char host_buf[256];
12464
6.78k
    if (has_upper) [[unlikely]] {
12465
602
      std::memcpy(host_buf, input.data() + host_start, host_len);
12466
602
      unicode::to_lower_ascii(host_buf, host_len);
12467
602
      hv = std::string_view(host_buf, host_len);
12468
602
    }
12469
6.78k
    if (ada::checkers::last_label_may_be_a_number(hv)) [[unlikely]] {
12470
95
      return false;
12471
95
    }
12472
    // Punycode is "xn--...". The host scan already notes a lowercase 'x';
12473
    // uppercase 'X' is covered by has_upper after the in-place lower.
12474
6.68k
    static constexpr std::string_view xn{"xn-", 3};
12475
6.68k
    if ((has_x || has_upper) && hv.find(xn) != std::string_view::npos)
12476
1.23k
        [[unlikely]] {
12477
1.23k
      return false;
12478
1.23k
    }
12479
6.68k
  }
12480
12481
5.45k
  if (host_end < len && b[host_end] == ':') [[unlikely]] {
12482
1.96k
    return finish_simple_absolute_with_port(input, out, scheme_type,
12483
1.96k
                                            protocol_end, host_start, host_end,
12484
1.96k
                                            host_len, has_upper);
12485
1.96k
  }
12486
12487
3.49k
  size_t i = host_end;
12488
3.49k
  size_t path_start = host_end;
12489
3.49k
  size_t path_end = host_end;
12490
3.49k
  size_t query_start = std::string_view::npos;
12491
3.49k
  size_t hash_start = std::string_view::npos;
12492
3.49k
  bool has_path = false;
12493
3.49k
  bool maybe_dot_segment = false;
12494
3.49k
  bool rest_simple = true;
12495
12496
3.49k
  if (i < len && b[i] == '/') {
12497
3.17k
    has_path = true;
12498
3.17k
    path_start = i;
12499
3.17k
    ++i;
12500
3.17k
    scan_path_run(b, i, len, maybe_dot_segment);
12501
3.17k
    if (i < len) {
12502
1.42k
      const uint8_t cls = k_path[b[i]];
12503
1.42k
      if (cls == 1) {
12504
427
        path_end = i;
12505
427
        if (b[i] == '?') {
12506
268
          query_start = i;
12507
268
          ++i;
12508
268
          goto scan_query;
12509
268
        }
12510
159
        hash_start = i;
12511
159
        ++i;
12512
159
        goto scan_hash;
12513
427
      }
12514
1.00k
      rest_simple = false;
12515
1.00k
      hash_start = input.find('#', i);
12516
1.00k
      query_start = input.substr(0, hash_start).find('?', i);
12517
1.00k
      if (query_start != std::string_view::npos) {
12518
50
        path_end = query_start;
12519
952
      } else {
12520
952
        path_end = hash_start != std::string_view::npos ? hash_start : len;
12521
952
      }
12522
1.00k
      goto after_rest;
12523
1.42k
    }
12524
1.74k
    path_end = i;
12525
1.74k
  } else if (i < len && b[i] == '?') {
12526
73
    query_start = i;
12527
73
    ++i;
12528
73
    goto scan_query;
12529
243
  } else if (i < len && b[i] == '#') {
12530
70
    hash_start = i;
12531
70
    ++i;
12532
70
    goto scan_hash;
12533
70
  }
12534
1.92k
  goto after_rest;
12535
12536
1.92k
scan_query:
12537
341
  scan_query_run(b, i, len);
12538
341
  if (i < len) {
12539
175
    if (b[i] == '#') {
12540
119
      hash_start = i;
12541
119
      ++i;
12542
119
      goto scan_hash;
12543
119
    }
12544
56
    rest_simple = false;
12545
56
    goto scan_query_boundary;
12546
175
  }
12547
166
  goto after_rest;
12548
12549
166
scan_query_boundary:
12550
56
  hash_start = input.find('#', i);
12551
56
  goto after_rest;
12552
12553
348
scan_hash:
12554
348
  scan_hash_run(b, i, len);
12555
348
  if (i < len) {
12556
58
    rest_simple = false;
12557
58
  }
12558
12559
3.49k
after_rest:
12560
3.49k
  if (rest_simple && maybe_dot_segment) {
12561
429
    const std::string_view path_body(input.data() + path_start,
12562
429
                                     path_end - path_start);
12563
429
    if (path_has_dot_segment(path_body)) {
12564
178
      rest_simple = false;
12565
178
    }
12566
429
  }
12567
12568
  // The slow path removes ASCII tab/newline anywhere in the input and trims a
12569
  // trailing C0 control or space; this fast path does neither. A query or
12570
  // fragment reaching the helpers below would keep those bytes percent-encoded
12571
  // ("?a\nb" -> "?a%0Ab", "#f " -> "#f%20") instead of stripped, so hand such
12572
  // inputs back to the slow path.
12573
3.49k
  if (!rest_simple && (unicode::is_c0_control_or_space(input.back()) ||
12574
1.25k
                       unicode::has_tabs_or_newline(input))) {
12575
60
    return false;
12576
60
  }
12577
12578
3.43k
  out.type = scheme_type;
12579
3.43k
  out.is_valid = true;
12580
3.43k
  out.has_opaque_path = false;
12581
3.43k
  out.host_type = DEFAULT;
12582
12583
3.43k
  if (!rest_simple) {
12584
    // Host is a plain domain. Finish path/query/hash with
12585
    // the regular helpers
12586
    // so percent-encoding and dot segments do not re-parse the authority.
12587
1.23k
    const std::string_view path_view =
12588
1.23k
        has_path
12589
1.23k
            ? std::string_view(input.data() + path_start, path_end - path_start)
12590
1.23k
            : std::string_view{};
12591
1.23k
    auto apply_query_and_hash = [&]() {
12592
1.23k
      if (query_start != std::string_view::npos) {
12593
1.23k
        const size_t q_end =
12594
1.23k
            (hash_start != std::string_view::npos) ? hash_start : len;
12595
1.23k
        out.update_base_search(std::string_view(input.data() + query_start + 1,
12596
1.23k
                                                q_end - query_start - 1),
12597
1.23k
                               character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
12598
1.23k
      }
12599
1.23k
      if (hash_start != std::string_view::npos) {
12600
1.23k
        out.update_unencoded_base_hash(std::string_view(
12601
1.23k
            input.data() + hash_start + 1, len - hash_start - 1));
12602
1.23k
      }
12603
1.23k
    };
12604
1.23k
    if constexpr (is_aggregator) {
12605
1.23k
      out.buffer.assign(input.substr(0, host_end));
12606
1.23k
      if (has_upper) {
12607
160
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12608
160
      }
12609
1.23k
      out.components.protocol_end = protocol_end;
12610
1.23k
      out.components.username_end = protocol_end + 2;
12611
1.23k
      out.components.host_start = protocol_end + 2;
12612
1.23k
      out.components.host_end = static_cast<uint32_t>(host_end);
12613
1.23k
      out.components.port = url_components::omitted;
12614
1.23k
      out.components.pathname_start = static_cast<uint32_t>(host_end);
12615
1.23k
      out.components.search_start = url_components::omitted;
12616
1.23k
      out.components.hash_start = url_components::omitted;
12617
1.23k
      out.parse_path(path_view);
12618
1.23k
      apply_query_and_hash();
12619
    } else {
12620
      std::string host_str(input.substr(host_start, host_len));
12621
      if (has_upper) {
12622
        unicode::to_lower_ascii(host_str.data(), host_str.size());
12623
      }
12624
      out.host = std::move(host_str);
12625
      out.parse_path(path_view);
12626
      apply_query_and_hash();
12627
    }
12628
1.23k
    return true;
12629
1.23k
  }
12630
12631
2.19k
  const bool need_slash = !has_path;
12632
2.19k
  if constexpr (is_aggregator) {
12633
2.19k
    if (!need_slash) {
12634
      // assign copies once. resize()+memcpy would value-init then overwrite.
12635
1.96k
      out.buffer.assign(input);
12636
1.96k
      if (has_upper) {
12637
32
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12638
32
      }
12639
1.96k
      out.components.protocol_end = protocol_end;
12640
1.96k
      out.components.username_end = protocol_end + 2;
12641
1.96k
      out.components.host_start = protocol_end + 2;
12642
1.96k
      out.components.host_end = static_cast<uint32_t>(host_end);
12643
1.96k
      out.components.port = url_components::omitted;
12644
1.96k
      out.components.pathname_start = static_cast<uint32_t>(path_start);
12645
1.96k
      out.components.search_start = (query_start != std::string_view::npos)
12646
1.96k
                                        ? static_cast<uint32_t>(query_start)
12647
1.96k
                                        : url_components::omitted;
12648
1.96k
      out.components.hash_start = (hash_start != std::string_view::npos)
12649
1.96k
                                      ? static_cast<uint32_t>(hash_start)
12650
1.96k
                                      : url_components::omitted;
12651
1.96k
    } else {
12652
237
      out.buffer.clear();
12653
237
      out.buffer.reserve(len + 1);
12654
237
      out.buffer.append(input.substr(0, host_end));
12655
237
      out.buffer.push_back('/');
12656
237
      if (host_end < len) {
12657
64
        out.buffer.append(input.substr(host_end));
12658
64
      }
12659
237
      if (has_upper) {
12660
107
        unicode::to_lower_ascii(out.buffer.data() + host_start, host_len);
12661
107
      }
12662
237
      out.components.protocol_end = protocol_end;
12663
237
      out.components.username_end = protocol_end + 2;
12664
237
      out.components.host_start = protocol_end + 2;
12665
237
      out.components.host_end = static_cast<uint32_t>(host_end);
12666
237
      out.components.port = url_components::omitted;
12667
237
      out.components.pathname_start = static_cast<uint32_t>(host_end);
12668
237
      out.components.search_start = (query_start != std::string_view::npos)
12669
237
                                        ? static_cast<uint32_t>(query_start + 1)
12670
237
                                        : url_components::omitted;
12671
237
      out.components.hash_start = (hash_start != std::string_view::npos)
12672
237
                                      ? static_cast<uint32_t>(hash_start + 1)
12673
237
                                      : url_components::omitted;
12674
237
    }
12675
  } else {
12676
    std::string host_str(input.substr(host_start, host_len));
12677
    if (has_upper) {
12678
      unicode::to_lower_ascii(host_str.data(), host_str.size());
12679
    }
12680
    out.host = std::move(host_str);
12681
    if (need_slash) {
12682
      out.path = "/";
12683
    } else {
12684
      out.path.assign(input.data() + path_start, path_end - path_start);
12685
    }
12686
    if (query_start != std::string_view::npos) {
12687
      const size_t q_end =
12688
          (hash_start != std::string_view::npos) ? hash_start : len;
12689
      out.query.emplace(input.data() + query_start + 1,
12690
                        q_end - query_start - 1);
12691
    }
12692
    if (hash_start != std::string_view::npos) {
12693
      out.hash.emplace(input.data() + hash_start + 1, len - hash_start - 1);
12694
    }
12695
  }
12696
2.19k
  return true;
12697
3.43k
}
12698
12699
// Fast path for `/path`, path-relative (`foo`, `c/d?q`), `?query`, and
12700
// `#fragment` against a special-scheme base. Scheme-relative (`//`) and
12701
// scheme-like first segments (`foo:bar`) stay on the state machine.
12702
template <class result_type>
12703
ada_never_inline bool try_parse_simple_relative(std::string_view input,
12704
                                                const result_type& base,
12705
8.91k
                                                result_type& out) {
12706
8.91k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12707
8.91k
  constexpr bool is_aggregator =
12708
8.91k
      std::is_same_v<result_type, ada::url_aggregator>;
12709
8.91k
  static_assert(is_ada_url || is_aggregator);
12710
12711
8.91k
  if (!base.is_special() || base.type == ada::scheme::type::FILE ||
12712
5.53k
      base.has_opaque_path || input.empty()) {
12713
5.53k
    return false;
12714
5.53k
  }
12715
3.38k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12716
3.38k
  const size_t len = input.size();
12717
3.38k
  const uint8_t first = b[0];
12718
3.38k
  const bool path_relative = first != '/' && first != '?' && first != '#';
12719
3.38k
  if (first == '/' && len > 1 && (b[1] == '/' || b[1] == '\\')) {
12720
8
    return false;
12721
8
  }
12722
  // A ':' before the first / ? # is a scheme, not a path segment.
12723
3.37k
  if (path_relative) {
12724
2.95k
    const size_t delim = input.find_first_of("/?#:");
12725
2.95k
    if (delim != std::string_view::npos && input[delim] == ':') {
12726
1.93k
      return false;
12727
1.93k
    }
12728
2.95k
  }
12729
12730
1.43k
  size_t i = 0;
12731
1.43k
  size_t path_start = 0;
12732
1.43k
  size_t path_end = 0;
12733
1.43k
  size_t query_start = std::string_view::npos;
12734
1.43k
  size_t hash_start = std::string_view::npos;
12735
1.43k
  bool has_path = false;
12736
1.43k
  bool maybe_dot_segment = false;
12737
12738
1.43k
  if (first == '/' || path_relative) {
12739
1.11k
    has_path = true;
12740
1.11k
    path_start = 0;
12741
1.11k
    if (first == '/') {
12742
96
      i = 1;
12743
96
    }
12744
1.11k
    scan_path_run(b, i, len, maybe_dot_segment);
12745
1.11k
    if (i < len) {
12746
626
      const uint8_t cls = k_path[b[i]];
12747
626
      if (cls == 2) {
12748
262
        return false;
12749
262
      }
12750
626
    }
12751
850
    path_end = i;
12752
850
    if (i < len && b[i] == '?') {
12753
238
      query_start = i;
12754
238
      ++i;
12755
238
      scan_query_run(b, i, len);
12756
238
      if (i < len) {
12757
182
        if (b[i] != '#') {
12758
56
          return false;
12759
56
        }
12760
126
        hash_start = i;
12761
126
        ++i;
12762
126
        scan_hash_run(b, i, len);
12763
126
        if (i < len) {
12764
98
          return false;
12765
98
        }
12766
126
      }
12767
612
    } else if (i < len && b[i] == '#') {
12768
126
      hash_start = i;
12769
126
      ++i;
12770
126
      scan_hash_run(b, i, len);
12771
126
      if (i < len) {
12772
84
        return false;
12773
84
      }
12774
486
    } else if (i < len) {
12775
0
      return false;
12776
0
    }
12777
850
  } else if (first == '?') {
12778
182
    query_start = 0;
12779
182
    i = 1;
12780
182
    scan_query_run(b, i, len);
12781
182
    if (i < len) {
12782
148
      if (b[i] != '#') {
12783
40
        return false;
12784
40
      }
12785
108
      hash_start = i;
12786
108
      ++i;
12787
108
      scan_hash_run(b, i, len);
12788
108
      if (i < len) {
12789
78
        return false;
12790
78
      }
12791
108
    }
12792
182
  } else {
12793
144
    hash_start = 0;
12794
144
    i = 1;
12795
144
    scan_hash_run(b, i, len);
12796
144
    if (i < len) {
12797
78
      return false;
12798
78
    }
12799
144
  }
12800
12801
742
  if (has_path && maybe_dot_segment) {
12802
258
    const std::string_view path_body(input.data() + path_start,
12803
258
                                     path_end - path_start);
12804
258
    if (path_has_dot_segment(path_body)) {
12805
224
      return false;
12806
224
    }
12807
258
  }
12808
12809
518
  out = base;
12810
518
  out.is_valid = true;
12811
518
  out.has_opaque_path = false;
12812
12813
518
  const size_t q_end =
12814
518
      (hash_start != std::string_view::npos) ? hash_start : len;
12815
518
  const bool has_query = query_start != std::string_view::npos;
12816
518
  const bool has_hash = hash_start != std::string_view::npos;
12817
518
  const std::string_view query =
12818
518
      has_query ? std::string_view(input.data() + query_start + 1,
12819
138
                                   q_end - query_start - 1)
12820
518
                : std::string_view{};
12821
518
  const std::string_view hash =
12822
518
      has_hash ? std::string_view(input.data() + hash_start + 1,
12823
162
                                  len - hash_start - 1)
12824
518
               : std::string_view{};
12825
12826
518
  if constexpr (is_aggregator) {
12827
259
    if (first == '/' || first == '?' || path_relative) {
12828
226
      out.clear_hash();
12829
226
      out.clear_search();
12830
226
    }
12831
259
    if (first == '/') {
12832
29
      out.update_base_pathname(input.substr(path_start, path_end - path_start));
12833
230
    } else if (path_relative) {
12834
165
      const std::string_view base_path = out.get_pathname();
12835
165
      const size_t slash = base_path.rfind('/');
12836
165
      const std::string_view prefix = (slash == std::string_view::npos)
12837
165
                                          ? std::string_view("/")
12838
165
                                          : base_path.substr(0, slash + 1);
12839
165
      const std::string_view rel(input.data() + path_start,
12840
165
                                 path_end - path_start);
12841
165
      std::string new_path;
12842
165
      new_path.reserve(prefix.size() + rel.size());
12843
165
      new_path.assign(prefix);
12844
165
      new_path.append(rel);
12845
165
      out.update_base_pathname(new_path);
12846
165
    }
12847
259
    if (has_query) {
12848
      // Do not use update_base_search: it strips a leading '?' and would
12849
      // collapse '??a=b' into '?a=b'.
12850
69
      out.components.search_start = static_cast<uint32_t>(out.buffer.size());
12851
69
      out.buffer += '?';
12852
69
      out.buffer.append(query);
12853
69
    }
12854
259
    if (has_hash) {
12855
81
      out.update_unencoded_base_hash(hash);
12856
81
    }
12857
259
  } else {
12858
259
    if (first == '/' || first == '?' || path_relative) {
12859
226
      out.hash.reset();
12860
226
    }
12861
259
    if (first == '/') {
12862
29
      out.query.reset();
12863
29
      out.path.assign(input.substr(path_start, path_end - path_start));
12864
230
    } else if (path_relative) {
12865
165
      out.query.reset();
12866
165
      const size_t slash = out.path.rfind('/');
12867
165
      if (slash == std::string::npos) {
12868
0
        out.path = '/';
12869
165
      } else {
12870
165
        out.path.resize(slash + 1);
12871
165
      }
12872
165
      out.path.append(input.substr(path_start, path_end - path_start));
12873
165
    }
12874
259
    if (has_query) {
12875
69
      out.query.emplace(query);
12876
69
    }
12877
259
    if (has_hash) {
12878
81
      out.hash.emplace(hash);
12879
81
    }
12880
259
  }
12881
518
  return true;
12882
742
}
bool ada::parser::try_parse_simple_relative<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url const&, ada::url&)
Line
Count
Source
12705
4.45k
                                                result_type& out) {
12706
4.45k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12707
4.45k
  constexpr bool is_aggregator =
12708
4.45k
      std::is_same_v<result_type, ada::url_aggregator>;
12709
4.45k
  static_assert(is_ada_url || is_aggregator);
12710
12711
4.45k
  if (!base.is_special() || base.type == ada::scheme::type::FILE ||
12712
2.76k
      base.has_opaque_path || input.empty()) {
12713
2.76k
    return false;
12714
2.76k
  }
12715
1.69k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12716
1.69k
  const size_t len = input.size();
12717
1.69k
  const uint8_t first = b[0];
12718
1.69k
  const bool path_relative = first != '/' && first != '?' && first != '#';
12719
1.69k
  if (first == '/' && len > 1 && (b[1] == '/' || b[1] == '\\')) {
12720
4
    return false;
12721
4
  }
12722
  // A ':' before the first / ? # is a scheme, not a path segment.
12723
1.68k
  if (path_relative) {
12724
1.47k
    const size_t delim = input.find_first_of("/?#:");
12725
1.47k
    if (delim != std::string_view::npos && input[delim] == ':') {
12726
968
      return false;
12727
968
    }
12728
1.47k
  }
12729
12730
719
  size_t i = 0;
12731
719
  size_t path_start = 0;
12732
719
  size_t path_end = 0;
12733
719
  size_t query_start = std::string_view::npos;
12734
719
  size_t hash_start = std::string_view::npos;
12735
719
  bool has_path = false;
12736
719
  bool maybe_dot_segment = false;
12737
12738
719
  if (first == '/' || path_relative) {
12739
556
    has_path = true;
12740
556
    path_start = 0;
12741
556
    if (first == '/') {
12742
48
      i = 1;
12743
48
    }
12744
556
    scan_path_run(b, i, len, maybe_dot_segment);
12745
556
    if (i < len) {
12746
313
      const uint8_t cls = k_path[b[i]];
12747
313
      if (cls == 2) {
12748
131
        return false;
12749
131
      }
12750
313
    }
12751
425
    path_end = i;
12752
425
    if (i < len && b[i] == '?') {
12753
119
      query_start = i;
12754
119
      ++i;
12755
119
      scan_query_run(b, i, len);
12756
119
      if (i < len) {
12757
91
        if (b[i] != '#') {
12758
28
          return false;
12759
28
        }
12760
63
        hash_start = i;
12761
63
        ++i;
12762
63
        scan_hash_run(b, i, len);
12763
63
        if (i < len) {
12764
49
          return false;
12765
49
        }
12766
63
      }
12767
306
    } else if (i < len && b[i] == '#') {
12768
63
      hash_start = i;
12769
63
      ++i;
12770
63
      scan_hash_run(b, i, len);
12771
63
      if (i < len) {
12772
42
        return false;
12773
42
      }
12774
243
    } else if (i < len) {
12775
0
      return false;
12776
0
    }
12777
425
  } else if (first == '?') {
12778
91
    query_start = 0;
12779
91
    i = 1;
12780
91
    scan_query_run(b, i, len);
12781
91
    if (i < len) {
12782
74
      if (b[i] != '#') {
12783
20
        return false;
12784
20
      }
12785
54
      hash_start = i;
12786
54
      ++i;
12787
54
      scan_hash_run(b, i, len);
12788
54
      if (i < len) {
12789
39
        return false;
12790
39
      }
12791
54
    }
12792
91
  } else {
12793
72
    hash_start = 0;
12794
72
    i = 1;
12795
72
    scan_hash_run(b, i, len);
12796
72
    if (i < len) {
12797
39
      return false;
12798
39
    }
12799
72
  }
12800
12801
371
  if (has_path && maybe_dot_segment) {
12802
129
    const std::string_view path_body(input.data() + path_start,
12803
129
                                     path_end - path_start);
12804
129
    if (path_has_dot_segment(path_body)) {
12805
112
      return false;
12806
112
    }
12807
129
  }
12808
12809
259
  out = base;
12810
259
  out.is_valid = true;
12811
259
  out.has_opaque_path = false;
12812
12813
259
  const size_t q_end =
12814
259
      (hash_start != std::string_view::npos) ? hash_start : len;
12815
259
  const bool has_query = query_start != std::string_view::npos;
12816
259
  const bool has_hash = hash_start != std::string_view::npos;
12817
259
  const std::string_view query =
12818
259
      has_query ? std::string_view(input.data() + query_start + 1,
12819
69
                                   q_end - query_start - 1)
12820
259
                : std::string_view{};
12821
259
  const std::string_view hash =
12822
259
      has_hash ? std::string_view(input.data() + hash_start + 1,
12823
81
                                  len - hash_start - 1)
12824
259
               : std::string_view{};
12825
12826
  if constexpr (is_aggregator) {
12827
    if (first == '/' || first == '?' || path_relative) {
12828
      out.clear_hash();
12829
      out.clear_search();
12830
    }
12831
    if (first == '/') {
12832
      out.update_base_pathname(input.substr(path_start, path_end - path_start));
12833
    } else if (path_relative) {
12834
      const std::string_view base_path = out.get_pathname();
12835
      const size_t slash = base_path.rfind('/');
12836
      const std::string_view prefix = (slash == std::string_view::npos)
12837
                                          ? std::string_view("/")
12838
                                          : base_path.substr(0, slash + 1);
12839
      const std::string_view rel(input.data() + path_start,
12840
                                 path_end - path_start);
12841
      std::string new_path;
12842
      new_path.reserve(prefix.size() + rel.size());
12843
      new_path.assign(prefix);
12844
      new_path.append(rel);
12845
      out.update_base_pathname(new_path);
12846
    }
12847
    if (has_query) {
12848
      // Do not use update_base_search: it strips a leading '?' and would
12849
      // collapse '??a=b' into '?a=b'.
12850
      out.components.search_start = static_cast<uint32_t>(out.buffer.size());
12851
      out.buffer += '?';
12852
      out.buffer.append(query);
12853
    }
12854
    if (has_hash) {
12855
      out.update_unencoded_base_hash(hash);
12856
    }
12857
259
  } else {
12858
259
    if (first == '/' || first == '?' || path_relative) {
12859
226
      out.hash.reset();
12860
226
    }
12861
259
    if (first == '/') {
12862
29
      out.query.reset();
12863
29
      out.path.assign(input.substr(path_start, path_end - path_start));
12864
230
    } else if (path_relative) {
12865
165
      out.query.reset();
12866
165
      const size_t slash = out.path.rfind('/');
12867
165
      if (slash == std::string::npos) {
12868
0
        out.path = '/';
12869
165
      } else {
12870
165
        out.path.resize(slash + 1);
12871
165
      }
12872
165
      out.path.append(input.substr(path_start, path_end - path_start));
12873
165
    }
12874
259
    if (has_query) {
12875
69
      out.query.emplace(query);
12876
69
    }
12877
259
    if (has_hash) {
12878
81
      out.hash.emplace(hash);
12879
81
    }
12880
259
  }
12881
259
  return true;
12882
371
}
bool ada::parser::try_parse_simple_relative<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const&, ada::url_aggregator&)
Line
Count
Source
12705
4.45k
                                                result_type& out) {
12706
4.45k
  constexpr bool is_ada_url = std::is_same_v<result_type, ada::url>;
12707
4.45k
  constexpr bool is_aggregator =
12708
4.45k
      std::is_same_v<result_type, ada::url_aggregator>;
12709
4.45k
  static_assert(is_ada_url || is_aggregator);
12710
12711
4.45k
  if (!base.is_special() || base.type == ada::scheme::type::FILE ||
12712
2.76k
      base.has_opaque_path || input.empty()) {
12713
2.76k
    return false;
12714
2.76k
  }
12715
1.69k
  const auto* b = reinterpret_cast<const uint8_t*>(input.data());
12716
1.69k
  const size_t len = input.size();
12717
1.69k
  const uint8_t first = b[0];
12718
1.69k
  const bool path_relative = first != '/' && first != '?' && first != '#';
12719
1.69k
  if (first == '/' && len > 1 && (b[1] == '/' || b[1] == '\\')) {
12720
4
    return false;
12721
4
  }
12722
  // A ':' before the first / ? # is a scheme, not a path segment.
12723
1.68k
  if (path_relative) {
12724
1.47k
    const size_t delim = input.find_first_of("/?#:");
12725
1.47k
    if (delim != std::string_view::npos && input[delim] == ':') {
12726
968
      return false;
12727
968
    }
12728
1.47k
  }
12729
12730
719
  size_t i = 0;
12731
719
  size_t path_start = 0;
12732
719
  size_t path_end = 0;
12733
719
  size_t query_start = std::string_view::npos;
12734
719
  size_t hash_start = std::string_view::npos;
12735
719
  bool has_path = false;
12736
719
  bool maybe_dot_segment = false;
12737
12738
719
  if (first == '/' || path_relative) {
12739
556
    has_path = true;
12740
556
    path_start = 0;
12741
556
    if (first == '/') {
12742
48
      i = 1;
12743
48
    }
12744
556
    scan_path_run(b, i, len, maybe_dot_segment);
12745
556
    if (i < len) {
12746
313
      const uint8_t cls = k_path[b[i]];
12747
313
      if (cls == 2) {
12748
131
        return false;
12749
131
      }
12750
313
    }
12751
425
    path_end = i;
12752
425
    if (i < len && b[i] == '?') {
12753
119
      query_start = i;
12754
119
      ++i;
12755
119
      scan_query_run(b, i, len);
12756
119
      if (i < len) {
12757
91
        if (b[i] != '#') {
12758
28
          return false;
12759
28
        }
12760
63
        hash_start = i;
12761
63
        ++i;
12762
63
        scan_hash_run(b, i, len);
12763
63
        if (i < len) {
12764
49
          return false;
12765
49
        }
12766
63
      }
12767
306
    } else if (i < len && b[i] == '#') {
12768
63
      hash_start = i;
12769
63
      ++i;
12770
63
      scan_hash_run(b, i, len);
12771
63
      if (i < len) {
12772
42
        return false;
12773
42
      }
12774
243
    } else if (i < len) {
12775
0
      return false;
12776
0
    }
12777
425
  } else if (first == '?') {
12778
91
    query_start = 0;
12779
91
    i = 1;
12780
91
    scan_query_run(b, i, len);
12781
91
    if (i < len) {
12782
74
      if (b[i] != '#') {
12783
20
        return false;
12784
20
      }
12785
54
      hash_start = i;
12786
54
      ++i;
12787
54
      scan_hash_run(b, i, len);
12788
54
      if (i < len) {
12789
39
        return false;
12790
39
      }
12791
54
    }
12792
91
  } else {
12793
72
    hash_start = 0;
12794
72
    i = 1;
12795
72
    scan_hash_run(b, i, len);
12796
72
    if (i < len) {
12797
39
      return false;
12798
39
    }
12799
72
  }
12800
12801
371
  if (has_path && maybe_dot_segment) {
12802
129
    const std::string_view path_body(input.data() + path_start,
12803
129
                                     path_end - path_start);
12804
129
    if (path_has_dot_segment(path_body)) {
12805
112
      return false;
12806
112
    }
12807
129
  }
12808
12809
259
  out = base;
12810
259
  out.is_valid = true;
12811
259
  out.has_opaque_path = false;
12812
12813
259
  const size_t q_end =
12814
259
      (hash_start != std::string_view::npos) ? hash_start : len;
12815
259
  const bool has_query = query_start != std::string_view::npos;
12816
259
  const bool has_hash = hash_start != std::string_view::npos;
12817
259
  const std::string_view query =
12818
259
      has_query ? std::string_view(input.data() + query_start + 1,
12819
69
                                   q_end - query_start - 1)
12820
259
                : std::string_view{};
12821
259
  const std::string_view hash =
12822
259
      has_hash ? std::string_view(input.data() + hash_start + 1,
12823
81
                                  len - hash_start - 1)
12824
259
               : std::string_view{};
12825
12826
259
  if constexpr (is_aggregator) {
12827
259
    if (first == '/' || first == '?' || path_relative) {
12828
226
      out.clear_hash();
12829
226
      out.clear_search();
12830
226
    }
12831
259
    if (first == '/') {
12832
29
      out.update_base_pathname(input.substr(path_start, path_end - path_start));
12833
230
    } else if (path_relative) {
12834
165
      const std::string_view base_path = out.get_pathname();
12835
165
      const size_t slash = base_path.rfind('/');
12836
165
      const std::string_view prefix = (slash == std::string_view::npos)
12837
165
                                          ? std::string_view("/")
12838
165
                                          : base_path.substr(0, slash + 1);
12839
165
      const std::string_view rel(input.data() + path_start,
12840
165
                                 path_end - path_start);
12841
165
      std::string new_path;
12842
165
      new_path.reserve(prefix.size() + rel.size());
12843
165
      new_path.assign(prefix);
12844
165
      new_path.append(rel);
12845
165
      out.update_base_pathname(new_path);
12846
165
    }
12847
259
    if (has_query) {
12848
      // Do not use update_base_search: it strips a leading '?' and would
12849
      // collapse '??a=b' into '?a=b'.
12850
69
      out.components.search_start = static_cast<uint32_t>(out.buffer.size());
12851
69
      out.buffer += '?';
12852
69
      out.buffer.append(query);
12853
69
    }
12854
259
    if (has_hash) {
12855
81
      out.update_unencoded_base_hash(hash);
12856
81
    }
12857
  } else {
12858
    if (first == '/' || first == '?' || path_relative) {
12859
      out.hash.reset();
12860
    }
12861
    if (first == '/') {
12862
      out.query.reset();
12863
      out.path.assign(input.substr(path_start, path_end - path_start));
12864
    } else if (path_relative) {
12865
      out.query.reset();
12866
      const size_t slash = out.path.rfind('/');
12867
      if (slash == std::string::npos) {
12868
        out.path = '/';
12869
      } else {
12870
        out.path.resize(slash + 1);
12871
      }
12872
      out.path.append(input.substr(path_start, path_end - path_start));
12873
    }
12874
    if (has_query) {
12875
      out.query.emplace(query);
12876
    }
12877
    if (has_hash) {
12878
      out.hash.emplace(hash);
12879
    }
12880
  }
12881
259
  return true;
12882
371
}
12883
12884
template <class result_type, bool store_values>
12885
result_type parse_url_impl(std::string_view user_input,
12886
132k
                           const result_type* base_url) {
12887
  // We can specialize the implementation per type.
12888
  // Important: result_type_is_ada_url is evaluated at *compile time*. This
12889
  // means that doing if constexpr(result_type_is_ada_url) { something } else {
12890
  // something else } is free (at runtime). This means that ada::url_aggregator
12891
  // and ada::url **do not have to support the exact same API**.
12892
132k
  constexpr bool result_type_is_ada_url = std::is_same_v<url, result_type>;
12893
132k
  constexpr bool result_type_is_ada_url_aggregator =
12894
132k
      std::is_same_v<url_aggregator, result_type>;
12895
132k
  static_assert(result_type_is_ada_url ||
12896
132k
                result_type_is_ada_url_aggregator);  // We don't support
12897
                                                     // anything else for now.
12898
12899
132k
  ada_log("ada::parser::parse_url('", user_input, "' [", user_input.size(),
12900
132k
          " bytes],", (base_url != nullptr ? base_url->to_string() : "null"),
12901
132k
          ")");
12902
12903
132k
  result_type url{};
12904
12905
132k
  const uint32_t max_input_length = ada::get_max_input_length();
12906
12907
  // Normalization (percent-encoding, IDNA) can push the serialized URL past
12908
  // max_input_length even when the input fit under it. The check at the end of
12909
  // the state machine covers URLs that run to completion, but several states
12910
  // return early after appending a query or fragment, so run the same check on
12911
  // those exits too. Without this, a query- or fragment-terminated URL such as
12912
  // file://x/?<...> or https://user@x/?<...> is accepted while the equivalent
12913
  // https://x/?<...> that takes the absolute fast path is rejected.
12914
132k
  const auto enforce_max_input_length = [&]() {
12915
38.8k
    if constexpr (store_values) {
12916
38.4k
      if (url.is_valid) {
12917
38.4k
        if constexpr (result_type_is_ada_url_aggregator) {
12918
19.2k
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
0
            url.is_valid = false;
12920
0
          }
12921
19.2k
        } else {
12922
19.2k
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
0
            url.is_valid = false;
12924
0
          }
12925
19.2k
        }
12926
38.4k
      }
12927
38.4k
    }
12928
38.8k
  };
ada::parser::parse_url_impl<ada::url, true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url const*)::{lambda()#1}::operator()() const
Line
Count
Source
12914
19.2k
  const auto enforce_max_input_length = [&]() {
12915
19.2k
    if constexpr (store_values) {
12916
19.2k
      if (url.is_valid) {
12917
        if constexpr (result_type_is_ada_url_aggregator) {
12918
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
            url.is_valid = false;
12920
          }
12921
19.2k
        } else {
12922
19.2k
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
0
            url.is_valid = false;
12924
0
          }
12925
19.2k
        }
12926
19.2k
      }
12927
19.2k
    }
12928
19.2k
  };
ada::parser::parse_url_impl<ada::url_aggregator, true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const*)::{lambda()#1}::operator()() const
Line
Count
Source
12914
19.2k
  const auto enforce_max_input_length = [&]() {
12915
19.2k
    if constexpr (store_values) {
12916
19.2k
      if (url.is_valid) {
12917
19.2k
        if constexpr (result_type_is_ada_url_aggregator) {
12918
19.2k
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
0
            url.is_valid = false;
12920
0
          }
12921
        } else {
12922
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
            url.is_valid = false;
12924
          }
12925
        }
12926
19.2k
      }
12927
19.2k
    }
12928
19.2k
  };
ada::parser::parse_url_impl<ada::url_aggregator, false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const*)::{lambda()#1}::operator()() const
Line
Count
Source
12914
441
  const auto enforce_max_input_length = [&]() {
12915
    if constexpr (store_values) {
12916
      if (url.is_valid) {
12917
        if constexpr (result_type_is_ada_url_aggregator) {
12918
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
            url.is_valid = false;
12920
          }
12921
        } else {
12922
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
            url.is_valid = false;
12924
          }
12925
        }
12926
      }
12927
    }
12928
441
  };
12929
12930
  // We refuse to parse URL strings that exceed the maximum input length.
12931
  // By default, this is 4GB but can be configured via
12932
  // ada::set_max_input_length().
12933
132k
  if (user_input.size() > max_input_length) [[unlikely]] {
12934
0
    url.is_valid = false;
12935
0
  }
12936
  // Going forward, user_input.size() is in [0,
12937
  // std::numeric_limits<uint32_t>::max). If we are provided with an invalid
12938
  // base, or the optional_url was invalid, we must return.
12939
132k
  if (base_url != nullptr) {
12940
13.3k
    url.is_valid &= base_url->is_valid;
12941
13.3k
  }
12942
132k
  if (!url.is_valid) {
12943
0
    return url;
12944
0
  }
12945
12946
  // Simple absolute / relative fast paths (before tabs/newline scan).
12947
132k
  if constexpr (store_values) {
12948
101k
    bool hit_fast_path = false;
12949
101k
    if (base_url == nullptr) {
12950
      // IPv4/IPv6 and userinfo miss the fast path. Skip the never_inline
12951
      // call so those URLs (including SetHref) do not pay for a miss.
12952
92.4k
      const auto* p = reinterpret_cast<const uint8_t*>(user_input.data());
12953
92.4k
      const size_t n = user_input.size();
12954
92.4k
      size_t host_start = 0;
12955
92.4k
      if (n >= 8 && p[4] == ':' && p[5] == '/' && p[6] == '/') {
12956
4.64k
        host_start = 7;
12957
87.8k
      } else if (n >= 9 && p[5] == ':' && p[6] == '/' && p[7] == '/') {
12958
52
        host_start = 8;
12959
52
      }
12960
92.4k
      const uint8_t host_first = host_start != 0 ? p[host_start] : 0;
12961
92.4k
      const bool skip_ip =
12962
92.4k
          host_first == '[' || (host_first >= '0' && host_first <= '9');
12963
      // Only scan for userinfo when the host is not an IP literal, so
12964
      // IPv4/IPv6 inputs skip the SIMD '@' check entirely.
12965
92.4k
      hit_fast_path =
12966
92.4k
          !skip_ip &&
12967
91.1k
          !(host_start != 0 && authority_has_at(p, host_start, n)) &&
12968
91.1k
          try_parse_simple_absolute(user_input, url);
12969
92.4k
    } else {
12970
8.91k
      hit_fast_path = try_parse_simple_relative(user_input, *base_url, url);
12971
8.91k
    }
12972
101k
    if (hit_fast_path) {
12973
11.0k
      if constexpr (result_type_is_ada_url_aggregator) {
12974
5.52k
        if (url.buffer.size() > max_input_length) [[unlikely]] {
12975
0
          url.is_valid = false;
12976
0
        }
12977
5.52k
      } else {
12978
        // For a small absolute input, even worst-case normalization cannot
12979
        // exceed the limit: percent encoding expands at most 3x and IDNA at
12980
        // most 4.5x. Avoid traversing every stored component on the common
12981
        // default-limit path.
12982
5.52k
        if ((base_url != nullptr ||
12983
5.26k
             user_input.size() > static_cast<size_t>(max_input_length) / 5) &&
12984
259
            url.get_href_size() > max_input_length) [[unlikely]] {
12985
0
          url.is_valid = false;
12986
0
        }
12987
5.52k
      }
12988
11.0k
      return url;
12989
11.0k
    }
12990
101k
  }
12991
12992
90.3k
  state state = state::SCHEME_START;
12993
12994
132k
  std::string tmp_buffer;
12995
132k
  std::string_view url_data;
12996
132k
  if (unicode::has_tabs_or_newline(user_input)) [[unlikely]] {
12997
1.36k
    tmp_buffer = user_input;
12998
    // Optimization opportunity: Instead of copying and then pruning, we could
12999
    // just directly build the string from user_input.
13000
1.36k
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
13001
1.36k
    url_data = tmp_buffer;
13002
131k
  } else [[likely]] {
13003
131k
    url_data = user_input;
13004
131k
  }
13005
13006
  // Leading and trailing control characters are uncommon and easy to deal with
13007
  // (no performance concern).
13008
132k
  helpers::trim_c0_whitespace(url_data);
13009
13010
132k
  if constexpr (result_type_is_ada_url_aggregator && store_values) {
13011
    // Most of the time, we just need user_input.size().
13012
    // In some instances, we may need a bit more.
13013
    ///////////////////////////
13014
    // This is *very* important. This line should *not* be removed
13015
    // hastily. There are principled reasons why reserve is important
13016
    // for performance. If you have a benchmark with small inputs,
13017
    // it may not matter, but in other instances, it could.
13018
    ////
13019
    // This rounds up to the next power of two.
13020
    // We know that user_input.size() is in [0,
13021
    // std::numeric_limits<uint32_t>::max).
13022
50.6k
    uint32_t reserve_capacity =
13023
50.6k
        (0xFFFFFFFF >>
13024
50.6k
         helpers::leading_zeroes(uint32_t(1 | user_input.size()))) +
13025
50.6k
        1;
13026
50.6k
    url.reserve(reserve_capacity);
13027
50.6k
  }
13028
13029
  // Optimization opportunity. Most websites do not have fragment.
13030
132k
  std::optional<std::string_view> fragment = helpers::prune_hash(url_data);
13031
  // We add it last so that an implementation like ada::url_aggregator
13032
  // can append it last to its internal buffer, thus improving performance.
13033
13034
  // Here url_data no longer has its fragment.
13035
  // We are going to access the data from url_data (it is immutable).
13036
  // At any given time, we are pointing at byte 'input_position' in url_data.
13037
  // The input_position variable should range from 0 to input_size.
13038
  // It is illegal to access url_data at input_size.
13039
132k
  size_t input_position = 0;
13040
132k
  const size_t input_size = url_data.size();
13041
  // Keep running the following state machine by switching on state.
13042
  // If after a run pointer points to the EOF code point, go to the next step.
13043
  // Otherwise, increase pointer by 1 and continue with the state machine.
13044
  // We never decrement input_position.
13045
506k
  while (input_position <= input_size) {
13046
472k
    ada_log("In parsing at ", input_position, " out of ", input_size,
13047
472k
            " in state ", ada::to_string(state));
13048
472k
    switch (state) {
13049
121k
      case state::SCHEME_START: {
13050
121k
        ada_log("SCHEME_START ", helpers::substring(url_data, input_position));
13051
        // If c is an ASCII alpha, append c, lowercased, to buffer, and set
13052
        // state to scheme state.
13053
121k
        if ((input_position != input_size) &&
13054
70.1k
            checkers::is_alpha(url_data[input_position])) {
13055
66.3k
          state = state::SCHEME;
13056
66.3k
          input_position++;
13057
66.3k
        } else {
13058
          // Otherwise, if state override is not given, set state to no scheme
13059
          // state and decrease pointer by 1.
13060
55.0k
          state = state::NO_SCHEME;
13061
55.0k
        }
13062
121k
        break;
13063
0
      }
13064
66.3k
      case state::SCHEME: {
13065
66.3k
        ada_log("SCHEME ", helpers::substring(url_data, input_position));
13066
        // If c is an ASCII alphanumeric, U+002B (+), U+002D (-), or U+002E (.),
13067
        // append c, lowercased, to buffer.
13068
163k
        while ((input_position != input_size) &&
13069
162k
               (unicode::is_alnum_plus(url_data[input_position]))) {
13070
97.5k
          input_position++;
13071
97.5k
        }
13072
        // Otherwise, if c is U+003A (:), then:
13073
66.3k
        if ((input_position != input_size) &&
13074
65.3k
            (url_data[input_position] == ':')) {
13075
64.1k
          ada_log("SCHEME the scheme should be ",
13076
64.1k
                  url_data.substr(0, input_position));
13077
64.1k
          if constexpr (result_type_is_ada_url) {
13078
21.4k
            if (!url.parse_scheme(url_data.substr(0, input_position))) {
13079
0
              return url;
13080
0
            }
13081
42.7k
          } else {
13082
            // we pass the colon along instead of painfully adding it back.
13083
42.7k
            if (!url.parse_scheme_with_colon(
13084
42.7k
                    url_data.substr(0, input_position + 1))) {
13085
0
              return url;
13086
0
            }
13087
42.7k
          }
13088
64.1k
          ada_log("SCHEME the scheme is ", url.get_protocol());
13089
13090
          // If url's scheme is "file", then:
13091
          // NOLINTNEXTLINE(bugprone-branch-clone)
13092
64.1k
          if (url.type == scheme::type::FILE) {
13093
            // Set state to file state.
13094
8.05k
            state = state::FILE;
13095
8.05k
          }
13096
          // Otherwise, if url is special, base is non-null, and base's scheme
13097
          // is url's scheme: Note: Doing base_url->scheme is unsafe if base_url
13098
          // != nullptr is false.
13099
56.0k
          else if (url.is_special() && base_url != nullptr &&
13100
6.67k
                   base_url->type == url.type) {
13101
            // Set state to special relative or authority state.
13102
1.34k
            state = state::SPECIAL_RELATIVE_OR_AUTHORITY;
13103
1.34k
          }
13104
          // Otherwise, if url is special, set state to special authority
13105
          // slashes state.
13106
54.7k
          else if (url.is_special()) {
13107
38.3k
            state = state::SPECIAL_AUTHORITY_SLASHES;
13108
38.3k
          }
13109
          // Otherwise, if remaining starts with an U+002F (/), set state to
13110
          // path or authority state and increase pointer by 1.
13111
16.4k
          else if (input_position + 1 < input_size &&
13112
9.60k
                   url_data[input_position + 1] == '/') {
13113
6.72k
            state = state::PATH_OR_AUTHORITY;
13114
6.72k
            input_position++;
13115
6.72k
          }
13116
          // Otherwise, set url's path to the empty string and set state to
13117
          // opaque path state.
13118
9.68k
          else {
13119
9.68k
            state = state::OPAQUE_PATH;
13120
9.68k
          }
13121
64.1k
        }
13122
        // Otherwise, if state override is not given, set buffer to the empty
13123
        // string, state to no scheme state, and start over (from the first code
13124
        // point in input).
13125
2.20k
        else {
13126
2.20k
          state = state::NO_SCHEME;
13127
2.20k
          input_position = 0;
13128
2.20k
          break;
13129
2.20k
        }
13130
64.1k
        input_position++;
13131
64.1k
        break;
13132
66.3k
      }
13133
57.2k
      case state::NO_SCHEME: {
13134
57.2k
        ada_log("NO_SCHEME ", helpers::substring(url_data, input_position));
13135
        // The fragment was pruned from url_data before the state machine ran,
13136
        // so 'c is U+0023 (#)' holds exactly when a fragment was found and
13137
        // nothing else remains in front of it.
13138
57.2k
        const bool c_is_hash =
13139
57.2k
            fragment.has_value() && input_position == input_size;
13140
        // If base is null, or base has an opaque path and c is not U+0023 (#),
13141
        // validation error, return failure.
13142
57.2k
        if (base_url == nullptr || (base_url->has_opaque_path && !c_is_hash)) {
13143
53.6k
          ada_log("NO_SCHEME validation error");
13144
53.6k
          url.is_valid = false;
13145
53.6k
          return url;
13146
53.6k
        }
13147
        // Otherwise, if base has an opaque path and c is U+0023 (#),
13148
        // set url's scheme to base's scheme, url's path to base's path, url's
13149
        // query to base's query, and set state to fragment state.
13150
3.54k
        else if (base_url->has_opaque_path && c_is_hash) {
13151
165
          ada_log("NO_SCHEME opaque base with fragment");
13152
165
          url.copy_scheme(*base_url);
13153
165
          url.has_opaque_path = base_url->has_opaque_path;
13154
13155
165
          if constexpr (result_type_is_ada_url) {
13156
55
            url.path = base_url->path;
13157
55
            url.query = base_url->query;
13158
110
          } else {
13159
110
            url.update_base_pathname(base_url->get_pathname());
13160
110
            if (base_url->has_search()) {
13161
              // get_search() returns "" for an empty query string (URL ends
13162
              // with '?'). update_base_search("") would incorrectly clear the
13163
              // query, so pass "?" to preserve the empty query distinction.
13164
24
              auto s = base_url->get_search();
13165
24
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13166
24
            }
13167
110
          }
13168
165
          url.update_unencoded_base_hash(*fragment);
13169
165
          enforce_max_input_length();
13170
165
          return url;
13171
165
        }
13172
        // Otherwise, if base's scheme is not "file", set state to relative
13173
        // state and decrease pointer by 1.
13174
        // NOLINTNEXTLINE(bugprone-branch-clone)
13175
3.38k
        else if (base_url->type != scheme::type::FILE) {
13176
2.59k
          ada_log("NO_SCHEME non-file relative path");
13177
2.59k
          state = state::RELATIVE_SCHEME;
13178
2.59k
        }
13179
        // Otherwise, set state to file state and decrease pointer by 1.
13180
792
        else {
13181
792
          ada_log("NO_SCHEME file base type");
13182
792
          state = state::FILE;
13183
792
        }
13184
3.38k
        break;
13185
57.2k
      }
13186
42.1k
      case state::AUTHORITY: {
13187
42.1k
        ada_log("AUTHORITY ", helpers::substring(url_data, input_position));
13188
        // most URLs have no @. Having no @ tells us that we don't have to worry
13189
        // about AUTHORITY. Of course, we could have @ and still not have to
13190
        // worry about AUTHORITY.
13191
        // TODO: Instead of just collecting a bool, collect the location of the
13192
        // '@' and do something useful with it.
13193
        // TODO: We could do various processing early on, using a single pass
13194
        // over the string to collect information about it, e.g., telling us
13195
        // whether there is a @ and if so, where (or how many).
13196
13197
        // Check if url data contains an @.
13198
42.1k
        if (url_data.find('@', input_position) == std::string_view::npos) {
13199
38.3k
          state = state::HOST;
13200
38.3k
          break;
13201
38.3k
        }
13202
3.80k
        bool at_sign_seen{false};
13203
3.80k
        bool password_token_seen{false};
13204
        /**
13205
         * We expect something of the sort...
13206
         * https://user:pass@example.com:1234/foo/bar?baz#quux
13207
         * --------^
13208
         */
13209
24.5k
        do {
13210
24.5k
          std::string_view view = url_data.substr(input_position);
13211
          // The delimiters are @, /, ? \\.
13212
24.5k
          size_t location =
13213
24.5k
              url.is_special() ? helpers::find_authority_delimiter_special(view)
13214
24.5k
                               : helpers::find_authority_delimiter(view);
13215
24.5k
          std::string_view authority_view = view.substr(0, location);
13216
24.5k
          size_t end_of_authority = input_position + authority_view.size();
13217
          // If c is U+0040 (@), then:
13218
24.5k
          if ((end_of_authority != input_size) &&
13219
22.1k
              (url_data[end_of_authority] == '@')) {
13220
            // If atSignSeen is true, then prepend "%40" to buffer.
13221
20.7k
            if (at_sign_seen) {
13222
17.4k
              if (password_token_seen) {
13223
7.41k
                if constexpr (result_type_is_ada_url) {
13224
2.47k
                  url.password += "%40";
13225
4.94k
                } else {
13226
4.94k
                  url.append_base_password("%40");
13227
4.94k
                }
13228
10.0k
              } else {
13229
10.0k
                if constexpr (result_type_is_ada_url) {
13230
3.34k
                  url.username += "%40";
13231
6.69k
                } else {
13232
6.69k
                  url.append_base_username("%40");
13233
6.69k
                }
13234
10.0k
              }
13235
17.4k
            }
13236
13237
20.7k
            at_sign_seen = true;
13238
13239
20.7k
            if (!password_token_seen) {
13240
13.3k
              size_t password_token_location = authority_view.find(':');
13241
13.3k
              password_token_seen =
13242
13.3k
                  password_token_location != std::string_view::npos;
13243
13244
13.3k
              if constexpr (store_values) {
13245
8.91k
                if (!password_token_seen) {
13246
8.06k
                  if constexpr (result_type_is_ada_url) {
13247
4.03k
                    url.username += unicode::percent_encode(
13248
4.03k
                        authority_view,
13249
4.03k
                        character_sets::USERINFO_PERCENT_ENCODE);
13250
4.03k
                  } else {
13251
4.03k
                    url.append_base_username(unicode::percent_encode(
13252
4.03k
                        authority_view,
13253
4.03k
                        character_sets::USERINFO_PERCENT_ENCODE));
13254
4.03k
                  }
13255
8.06k
                } else {
13256
852
                  if constexpr (result_type_is_ada_url) {
13257
426
                    url.username += unicode::percent_encode(
13258
426
                        authority_view.substr(0, password_token_location),
13259
426
                        character_sets::USERINFO_PERCENT_ENCODE);
13260
426
                    url.password += unicode::percent_encode(
13261
426
                        authority_view.substr(password_token_location + 1),
13262
426
                        character_sets::USERINFO_PERCENT_ENCODE);
13263
426
                  } else {
13264
426
                    url.append_base_username(unicode::percent_encode(
13265
426
                        authority_view.substr(0, password_token_location),
13266
426
                        character_sets::USERINFO_PERCENT_ENCODE));
13267
426
                    url.append_base_password(unicode::percent_encode(
13268
426
                        authority_view.substr(password_token_location + 1),
13269
426
                        character_sets::USERINFO_PERCENT_ENCODE));
13270
426
                  }
13271
852
                }
13272
8.91k
              }
13273
13.3k
            } else if constexpr (store_values) {
13274
4.94k
              if constexpr (result_type_is_ada_url) {
13275
2.47k
                url.password += unicode::percent_encode(
13276
2.47k
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE);
13277
2.47k
              } else {
13278
2.47k
                url.append_base_password(unicode::percent_encode(
13279
2.47k
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE));
13280
2.47k
              }
13281
4.94k
            }
13282
20.7k
          }
13283
          // Otherwise, if one of the following is true:
13284
          // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13285
          // - url is special and c is U+005C (\)
13286
3.80k
          else if (end_of_authority == input_size ||
13287
1.36k
                   url_data[end_of_authority] == '/' ||
13288
120
                   url_data[end_of_authority] == '?' ||
13289
3.80k
                   (url.is_special() && url_data[end_of_authority] == '\\')) {
13290
            // If atSignSeen is true and authority_view is the empty string,
13291
            // validation error, return failure.
13292
3.80k
            if (at_sign_seen && authority_view.empty()) {
13293
1.05k
              url.is_valid = false;
13294
1.05k
              return url;
13295
1.05k
            }
13296
2.75k
            state = state::HOST;
13297
2.75k
            break;
13298
3.80k
          }
13299
20.7k
          if (end_of_authority == input_size) {
13300
0
            if constexpr (store_values) {
13301
0
              if (fragment.has_value()) {
13302
0
                url.update_unencoded_base_hash(*fragment);
13303
0
              }
13304
0
            }
13305
0
            enforce_max_input_length();
13306
0
            return url;
13307
0
          }
13308
20.7k
          input_position = end_of_authority + 1;
13309
20.7k
        } while (true);
13310
13311
2.75k
        break;
13312
3.80k
      }
13313
2.75k
      case state::SPECIAL_RELATIVE_OR_AUTHORITY: {
13314
1.34k
        ada_log("SPECIAL_RELATIVE_OR_AUTHORITY ",
13315
1.34k
                helpers::substring(url_data, input_position));
13316
13317
        // If c is U+002F (/) and remaining starts with U+002F (/),
13318
        // then set state to special authority ignore slashes state and increase
13319
        // pointer by 1.
13320
1.34k
        if (url_data.substr(input_position, 2) == "//") {
13321
1.08k
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13322
1.08k
          input_position += 2;
13323
1.08k
        } else {
13324
          // Otherwise, validation error, set state to relative state and
13325
          // decrease pointer by 1.
13326
264
          state = state::RELATIVE_SCHEME;
13327
264
        }
13328
13329
1.34k
        break;
13330
3.80k
      }
13331
6.72k
      case state::PATH_OR_AUTHORITY: {
13332
6.72k
        ada_log("PATH_OR_AUTHORITY ",
13333
6.72k
                helpers::substring(url_data, input_position));
13334
13335
        // If c is U+002F (/), then set state to authority state.
13336
6.72k
        if ((input_position != input_size) &&
13337
6.32k
            (url_data[input_position] == '/')) {
13338
2.74k
          state = state::AUTHORITY;
13339
2.74k
          input_position++;
13340
3.98k
        } else {
13341
          // Otherwise, set state to path state, and decrease pointer by 1.
13342
3.98k
          state = state::PATH;
13343
3.98k
        }
13344
13345
6.72k
        break;
13346
3.80k
      }
13347
2.85k
      case state::RELATIVE_SCHEME: {
13348
2.85k
        ada_log("RELATIVE_SCHEME ",
13349
2.85k
                helpers::substring(url_data, input_position));
13350
13351
        // Set url's scheme to base's scheme.
13352
2.85k
        url.copy_scheme(*base_url);
13353
13354
        // If c is U+002F (/), then set state to relative slash state.
13355
2.85k
        if ((input_position != input_size) &&
13356
            // NOLINTNEXTLINE(bugprone-branch-clone)
13357
2.29k
            (url_data[input_position] == '/')) {
13358
230
          ada_log(
13359
230
              "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
13360
230
              "slash state");
13361
230
          state = state::RELATIVE_SLASH;
13362
2.62k
        } else if (url.is_special() && (input_position != input_size) &&
13363
1.72k
                   (url_data[input_position] == '\\')) {
13364
          // Otherwise, if url is special and c is U+005C (\), validation error,
13365
          // set state to relative slash state.
13366
6
          ada_log(
13367
6
              "RELATIVE_SCHEME  if url is special and c is U+005C, validation "
13368
6
              "error, set state to relative slash state");
13369
6
          state = state::RELATIVE_SLASH;
13370
2.61k
        } else {
13371
2.61k
          ada_log("RELATIVE_SCHEME otherwise");
13372
          // Set url's username to base's username, url's password to base's
13373
          // password, url's host to base's host, url's port to base's port,
13374
          // url's path to a clone of base's path, and url's query to base's
13375
          // query.
13376
2.61k
          if constexpr (result_type_is_ada_url) {
13377
796
            url.username = base_url->username;
13378
796
            url.password = base_url->password;
13379
796
            url.host = base_url->host;
13380
796
            url.port = base_url->port;
13381
            // cloning the base path includes cloning the has_opaque_path flag
13382
796
            url.has_opaque_path = base_url->has_opaque_path;
13383
796
            url.path = base_url->path;
13384
796
            url.query = base_url->query;
13385
1.82k
          } else {
13386
1.82k
            url.update_base_authority(base_url->get_href(),
13387
1.82k
                                      base_url->get_components());
13388
1.82k
            url.update_host_to_base_host(base_url->get_hostname());
13389
1.82k
            url.update_base_port(base_url->retrieve_base_port());
13390
            // cloning the base path includes cloning the has_opaque_path flag
13391
1.82k
            url.has_opaque_path = base_url->has_opaque_path;
13392
1.82k
            url.update_base_pathname(base_url->get_pathname());
13393
1.82k
            if (base_url->has_search()) {
13394
              // get_search() returns "" for an empty query string (URL ends
13395
              // with '?'). update_base_search("") would incorrectly clear the
13396
              // query, so pass "?" to preserve the empty query distinction.
13397
82
              auto s = base_url->get_search();
13398
82
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13399
82
            }
13400
1.82k
          }
13401
13402
2.61k
          url.has_opaque_path = base_url->has_opaque_path;
13403
13404
          // If c is U+003F (?), then set url's query to the empty string, and
13405
          // state to query state.
13406
2.61k
          if ((input_position != input_size) &&
13407
2.05k
              (url_data[input_position] == '?')) {
13408
251
            state = state::QUERY;
13409
251
          }
13410
          // Otherwise, if c is not the EOF code point:
13411
2.36k
          else if (input_position != input_size) {
13412
            // Set url's query to null.
13413
1.80k
            url.clear_search();
13414
1.80k
            if constexpr (result_type_is_ada_url) {
13415
              // Shorten url's path.
13416
547
              helpers::shorten_path(url.path, url.type);
13417
1.25k
            } else {
13418
1.25k
              std::string_view path = url.get_pathname();
13419
1.25k
              if (helpers::shorten_path(path, url.type)) {
13420
542
                url.update_base_pathname(std::move(std::string(path)));
13421
542
              }
13422
1.25k
            }
13423
            // Set state to path state and decrease pointer by 1.
13424
1.80k
            state = state::PATH;
13425
1.80k
            break;
13426
1.80k
          }
13427
2.61k
        }
13428
1.04k
        input_position++;
13429
1.04k
        break;
13430
2.85k
      }
13431
236
      case state::RELATIVE_SLASH: {
13432
236
        ada_log("RELATIVE_SLASH ",
13433
236
                helpers::substring(url_data, input_position));
13434
13435
        // If url is special and c is U+002F (/) or U+005C (\), then:
13436
        // NOLINTNEXTLINE(bugprone-branch-clone)
13437
236
        if (url.is_special() && (input_position != input_size) &&
13438
112
            (url_data[input_position] == '/' ||
13439
103
             url_data[input_position] == '\\')) {
13440
          // Set state to special authority ignore slashes state.
13441
15
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13442
15
        }
13443
        // Otherwise, if c is U+002F (/), then set state to authority state.
13444
221
        else if ((input_position != input_size) &&
13445
142
                 (url_data[input_position] == '/')) {
13446
15
          state = state::AUTHORITY;
13447
15
        }
13448
        // Otherwise, set
13449
        // - url's username to base's username,
13450
        // - url's password to base's password,
13451
        // - url's host to base's host,
13452
        // - url's port to base's port,
13453
        // - state to path state, and then, decrease pointer by 1.
13454
206
        else {
13455
206
          if constexpr (result_type_is_ada_url) {
13456
59
            url.username = base_url->username;
13457
59
            url.password = base_url->password;
13458
59
            url.host = base_url->host;
13459
59
            url.port = base_url->port;
13460
147
          } else {
13461
147
            url.update_base_authority(base_url->get_href(),
13462
147
                                      base_url->get_components());
13463
147
            url.update_host_to_base_host(base_url->get_hostname());
13464
147
            url.update_base_port(base_url->retrieve_base_port());
13465
147
          }
13466
206
          state = state::PATH;
13467
206
          break;
13468
206
        }
13469
13470
30
        input_position++;
13471
30
        break;
13472
236
      }
13473
38.3k
      case state::SPECIAL_AUTHORITY_SLASHES: {
13474
38.3k
        ada_log("SPECIAL_AUTHORITY_SLASHES ",
13475
38.3k
                helpers::substring(url_data, input_position));
13476
13477
        // If c is U+002F (/) and remaining starts with U+002F (/),
13478
        // then set state to special authority ignore slashes state and increase
13479
        // pointer by 1.
13480
38.3k
        if (url_data.substr(input_position, 2) == "//") {
13481
9.76k
          input_position += 2;
13482
9.76k
        }
13483
13484
38.3k
        [[fallthrough]];
13485
38.3k
      }
13486
39.4k
      case state::SPECIAL_AUTHORITY_IGNORE_SLASHES: {
13487
39.4k
        ada_log("SPECIAL_AUTHORITY_IGNORE_SLASHES ",
13488
39.4k
                helpers::substring(url_data, input_position));
13489
13490
        // If c is neither U+002F (/) nor U+005C (\), then set state to
13491
        // authority state and decrease pointer by 1.
13492
41.9k
        while ((input_position != input_size) &&
13493
41.7k
               ((url_data[input_position] == '/') ||
13494
40.2k
                (url_data[input_position] == '\\'))) {
13495
2.56k
          input_position++;
13496
2.56k
        }
13497
39.4k
        state = state::AUTHORITY;
13498
13499
39.4k
        break;
13500
38.3k
      }
13501
2.61k
      case state::QUERY: {
13502
2.61k
        ada_log("QUERY ", helpers::substring(url_data, input_position));
13503
2.61k
        if constexpr (store_values) {
13504
          // Let queryPercentEncodeSet be the special-query percent-encode set
13505
          // if url is special; otherwise the query percent-encode set.
13506
2.49k
          const uint8_t* query_percent_encode_set =
13507
2.49k
              url.is_special() ? character_sets::SPECIAL_QUERY_PERCENT_ENCODE
13508
2.49k
                               : character_sets::QUERY_PERCENT_ENCODE;
13509
13510
          // Percent-encode after encoding, with encoding, buffer, and
13511
          // queryPercentEncodeSet, and append the result to url's query.
13512
2.49k
          url.update_base_search(url_data.substr(input_position),
13513
2.49k
                                 query_percent_encode_set);
13514
2.49k
          ada_log("QUERY update_base_search completed ");
13515
2.49k
          if (fragment.has_value()) {
13516
700
            url.update_unencoded_base_hash(*fragment);
13517
700
          }
13518
2.49k
        }
13519
2.61k
        enforce_max_input_length();
13520
2.61k
        return url;
13521
38.3k
      }
13522
41.1k
      case state::HOST: {
13523
41.1k
        ada_log("HOST ", helpers::substring(url_data, input_position));
13524
13525
41.1k
        std::string_view host_view = url_data.substr(input_position);
13526
41.1k
        auto [location, found_colon] =
13527
41.1k
            helpers::get_host_delimiter_location(url.is_special(), host_view);
13528
41.1k
        input_position = (location != std::string_view::npos)
13529
41.1k
                             ? input_position + location
13530
41.1k
                             : input_size;
13531
        // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
13532
        // Note: the 'found_colon' value is true if and only if a colon was
13533
        // encountered while not inside brackets.
13534
41.1k
        if (found_colon) {
13535
          // If buffer is the empty string, validation error, return failure.
13536
          // Let host be the result of host parsing buffer with url is not
13537
          // special.
13538
7.93k
          ada_log("HOST parsing ", host_view);
13539
7.93k
          if (!url.parse_host(host_view)) {
13540
753
            return url;
13541
753
          }
13542
7.18k
          ada_log("HOST parsing results in ", url.get_hostname());
13543
          // Set url's host to host, buffer to the empty string, and state to
13544
          // port state.
13545
7.18k
          state = state::PORT;
13546
7.18k
          input_position++;
13547
7.18k
        }
13548
        // Otherwise, if one of the following is true:
13549
        // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13550
        // - url is special and c is U+005C (\)
13551
        // The get_host_delimiter_location function either brings us to
13552
        // the colon outside of the bracket, or to one of those characters.
13553
33.2k
        else {
13554
          // If url is special and host_view is the empty string, validation
13555
          // error, return failure.
13556
33.2k
          if (host_view.empty() && url.is_special()) {
13557
272
            url.is_valid = false;
13558
272
            return url;
13559
272
          }
13560
32.9k
          ada_log("HOST parsing ", host_view, " href=", url.get_href());
13561
          // Let host be the result of host parsing host_view with url is not
13562
          // special.
13563
32.9k
          if (host_view.empty()) {
13564
378
            url.update_base_hostname("");
13565
32.5k
          } else if (!url.parse_host(host_view)) {
13566
6.88k
            return url;
13567
6.88k
          }
13568
26.0k
          ada_log("HOST parsing results in ", url.get_hostname(),
13569
26.0k
                  " href=", url.get_href());
13570
13571
          // Set url's host to host, and state to path start state.
13572
26.0k
          state = state::PATH_START;
13573
26.0k
        }
13574
13575
33.2k
        break;
13576
41.1k
      }
13577
33.2k
      case state::OPAQUE_PATH: {
13578
9.68k
        ada_log("OPAQUE_PATH ", helpers::substring(url_data, input_position));
13579
        // Opaque path, query, and fragment are structurally always valid:
13580
        // the parser would just percent-encode whatever is there. When we
13581
        // are not storing values (can_parse), we can return immediately.
13582
        // We must set has_opaque_path = true before returning so that when
13583
        // this URL is used as an internal base inside can_parse, NO_SCHEME
13584
        // correctly rejects relative inputs against an opaque-path base
13585
        // (e.g. can_parse("", &"W:") must return false).
13586
9.68k
        if constexpr (!store_values) {
13587
3.22k
          url.has_opaque_path = true;
13588
3.22k
          return url;
13589
3.22k
        }
13590
0
        std::string_view view = url_data.substr(input_position);
13591
        // If c is U+003F (?), then set url's query to the empty string and
13592
        // state to query state.
13593
9.68k
        size_t location = view.find('?');
13594
9.68k
        if (location != std::string_view::npos) {
13595
506
          view.remove_suffix(view.size() - location);
13596
506
          state = state::QUERY;
13597
506
          input_position += location + 1;
13598
9.17k
        } else {
13599
9.17k
          input_position = input_size + 1;
13600
9.17k
        }
13601
9.68k
        url.has_opaque_path = true;
13602
13603
        // This is a really unlikely scenario in real world. We should not seek
13604
        // to optimize it.
13605
9.68k
        if (view.ends_with(' ')) {
13606
232
          std::string modified_view =
13607
232
              std::string(view.substr(0, view.size() - 1)) + "%20";
13608
232
          url.update_base_pathname(unicode::percent_encode(
13609
232
              modified_view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13610
9.44k
        } else {
13611
9.44k
          url.update_base_pathname(unicode::percent_encode(
13612
9.44k
              view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13613
9.44k
        }
13614
9.68k
        break;
13615
41.1k
      }
13616
7.18k
      case state::PORT: {
13617
7.18k
        ada_log("PORT ", helpers::substring(url_data, input_position));
13618
7.18k
        std::string_view port_view = url_data.substr(input_position);
13619
7.18k
        input_position += url.parse_port(port_view, true);
13620
7.18k
        if (!url.is_valid) {
13621
370
          return url;
13622
370
        }
13623
6.81k
        state = state::PATH_START;
13624
6.81k
        [[fallthrough]];
13625
6.81k
      }
13626
38.6k
      case state::PATH_START: {
13627
38.6k
        ada_log("PATH_START ", helpers::substring(url_data, input_position));
13628
        // Path, query, and fragment are structurally always valid: the
13629
        // parser would just percent-encode whatever is there. When we are
13630
        // not storing values (can_parse), we can return immediately since
13631
        // no subsequent state can invalidate the URL.
13632
38.6k
        if constexpr (!store_values) {
13633
12.8k
          return url;
13634
12.8k
        }
13635
13636
        // If url is special, then:
13637
38.6k
        if (url.is_special()) {
13638
          // Set state to path state.
13639
24.3k
          state = state::PATH;
13640
13641
          // Optimization: Avoiding going into PATH state improves the
13642
          // performance of urls ending with /.
13643
24.3k
          if (input_position == input_size) {
13644
12.8k
            if constexpr (store_values) {
13645
12.8k
              url.update_base_pathname("/");
13646
12.8k
              if (fragment.has_value()) {
13647
346
                url.update_unencoded_base_hash(*fragment);
13648
346
              }
13649
12.8k
            }
13650
12.8k
            enforce_max_input_length();
13651
12.8k
            return url;
13652
12.8k
          }
13653
          // If c is neither U+002F (/) nor U+005C (\), then decrease pointer
13654
          // by 1. We know that (input_position == input_size) is impossible
13655
          // here, because of the previous if-check.
13656
11.4k
          if ((url_data[input_position] != '/') &&
13657
886
              (url_data[input_position] != '\\')) {
13658
860
            break;
13659
860
          }
13660
11.4k
        }
13661
        // Otherwise, if state override is not given and c is U+003F (?),
13662
        // set url's query to the empty string and state to query state.
13663
14.3k
        else if ((input_position != input_size) &&
13664
340
                 (url_data[input_position] == '?')) {
13665
122
          state = state::QUERY;
13666
122
        }
13667
        // Otherwise, if c is not the EOF code point:
13668
14.2k
        else if (input_position != input_size) {
13669
          // Set state to path state.
13670
218
          state = state::PATH;
13671
13672
          // If c is not U+002F (/), then decrease pointer by 1.
13673
218
          if (url_data[input_position] != '/') {
13674
0
            break;
13675
0
          }
13676
218
        }
13677
13678
24.9k
        input_position++;
13679
24.9k
        break;
13680
38.6k
      }
13681
19.8k
      case state::PATH: {
13682
19.8k
        ada_log("PATH ", helpers::substring(url_data, input_position));
13683
        // Path, query, and fragment are structurally always valid: the
13684
        // parser would just percent-encode whatever is there. When we are
13685
        // not storing values (can_parse), we can return immediately since
13686
        // no subsequent state can invalidate the URL.
13687
19.8k
        if constexpr (!store_values) {
13688
2.87k
          return url;
13689
2.87k
        }
13690
0
        std::string_view view = url_data.substr(input_position);
13691
13692
        // Most time, we do not need percent encoding.
13693
        // Furthermore, we can immediately locate the '?'.
13694
19.8k
        size_t locofquestionmark = view.find('?');
13695
19.8k
        if (locofquestionmark != std::string_view::npos) {
13696
1.70k
          state = state::QUERY;
13697
1.70k
          view.remove_suffix(view.size() - locofquestionmark);
13698
1.70k
          input_position += locofquestionmark + 1;
13699
18.1k
        } else {
13700
18.1k
          input_position = input_size + 1;
13701
18.1k
        }
13702
19.8k
        if constexpr (store_values) {
13703
17.0k
          if constexpr (result_type_is_ada_url) {
13704
8.50k
            helpers::parse_prepared_path(view, url.type, url.path);
13705
8.50k
          } else {
13706
8.50k
            url.consume_prepared_path(view);
13707
8.50k
            ADA_ASSERT_TRUE(url.validate());
13708
8.50k
          }
13709
17.0k
        }
13710
19.8k
        break;
13711
38.6k
      }
13712
6.77k
      case state::FILE_SLASH: {
13713
6.77k
        ada_log("FILE_SLASH ", helpers::substring(url_data, input_position));
13714
13715
        // If c is U+002F (/) or U+005C (\), then:
13716
6.77k
        if ((input_position != input_size) &&
13717
6.56k
            (url_data[input_position] == '/' ||
13718
6.43k
             url_data[input_position] == '\\')) {
13719
6.43k
          ada_log("FILE_SLASH c is U+002F or U+005C");
13720
          // Set state to file host state.
13721
6.43k
          state = state::FILE_HOST;
13722
6.43k
          input_position++;
13723
6.43k
        } else {
13724
336
          ada_log("FILE_SLASH otherwise");
13725
          // If base is non-null and base's scheme is "file", then:
13726
          // Note: it is unsafe to do base_url->scheme unless you know that
13727
          // base_url_has_value() is true.
13728
336
          if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13729
            // Set url's host to base's host.
13730
252
            if constexpr (result_type_is_ada_url) {
13731
84
              url.host = base_url->host;
13732
168
            } else {
13733
168
              url.update_host_to_base_host(base_url->get_host());
13734
168
            }
13735
            // If the code point substring from pointer to the end of input does
13736
            // not start with a Windows drive letter and base's path[0] is a
13737
            // normalized Windows drive letter, then append base's path[0] to
13738
            // url's path.
13739
252
            if (!base_url->get_pathname().empty()) {
13740
168
              if (!checkers::is_windows_drive_letter(
13741
168
                      url_data.substr(input_position))) {
13742
158
                std::string_view first_base_url_path =
13743
158
                    base_url->get_pathname().substr(1);
13744
158
                size_t loc = first_base_url_path.find('/');
13745
158
                if (loc != std::string_view::npos) {
13746
24
                  helpers::resize(first_base_url_path, loc);
13747
24
                }
13748
158
                if (checkers::is_normalized_windows_drive_letter(
13749
158
                        first_base_url_path)) {
13750
6
                  if constexpr (result_type_is_ada_url) {
13751
3
                    url.path += '/';
13752
3
                    url.path += first_base_url_path;
13753
3
                  } else {
13754
3
                    url.append_base_pathname(
13755
3
                        helpers::concat("/", first_base_url_path));
13756
3
                  }
13757
6
                }
13758
158
              }
13759
168
            }
13760
252
          }
13761
13762
          // Set state to path state, and decrease pointer by 1.
13763
336
          state = state::PATH;
13764
336
        }
13765
13766
6.77k
        break;
13767
38.6k
      }
13768
6.43k
      case state::FILE_HOST: {
13769
6.43k
        ada_log("FILE_HOST ", helpers::substring(url_data, input_position));
13770
6.43k
        std::string_view view = url_data.substr(input_position);
13771
13772
6.43k
        size_t location = view.find_first_of("/\\?");
13773
6.43k
        std::string_view file_host_buffer = view.substr(
13774
6.43k
            0, (location != std::string_view::npos) ? location : view.size());
13775
13776
6.43k
        if (checkers::is_windows_drive_letter(file_host_buffer)) {
13777
36
          state = state::PATH;
13778
6.39k
        } else if (file_host_buffer.empty()) {
13779
          // Set url's host to the empty string.
13780
822
          if constexpr (result_type_is_ada_url) {
13781
274
            url.host = "";
13782
548
          } else {
13783
548
            url.update_base_hostname("");
13784
548
          }
13785
          // Set state to path start state.
13786
822
          state = state::PATH_START;
13787
5.57k
        } else {
13788
5.57k
          size_t consumed_bytes = file_host_buffer.size();
13789
5.57k
          input_position += consumed_bytes;
13790
          // Let host be the result of host parsing buffer with url is not
13791
          // special.
13792
5.57k
          if (!url.parse_host(file_host_buffer)) {
13793
573
            return url;
13794
573
          }
13795
13796
5.00k
          if constexpr (result_type_is_ada_url) {
13797
            // If host is "localhost", then set host to the empty string.
13798
1.66k
            if (url.host.has_value() && url.host.value() == "localhost") {
13799
12
              url.host = "";
13800
12
            }
13801
3.33k
          } else {
13802
3.33k
            if (url.get_hostname() == "localhost") {
13803
24
              url.update_base_hostname("");
13804
24
            }
13805
3.33k
          }
13806
13807
          // Set buffer to the empty string and state to path start state.
13808
5.00k
          state = state::PATH_START;
13809
5.00k
        }
13810
13811
5.86k
        break;
13812
6.43k
      }
13813
8.85k
      case state::FILE: {
13814
8.85k
        ada_log("FILE ", helpers::substring(url_data, input_position));
13815
8.85k
        std::string_view file_view = url_data.substr(input_position);
13816
13817
8.85k
        url.set_protocol_as_file();
13818
8.85k
        if constexpr (result_type_is_ada_url) {
13819
          // Set url's host to the empty string.
13820
2.95k
          url.host = "";
13821
5.90k
        } else {
13822
5.90k
          url.update_base_hostname("");
13823
5.90k
        }
13824
        // If c is U+002F (/) or U+005C (\), then:
13825
8.85k
        if (input_position != input_size &&
13826
8.43k
            (url_data[input_position] == '/' ||
13827
6.77k
             url_data[input_position] == '\\')) {
13828
6.77k
          ada_log("FILE c is U+002F or U+005C");
13829
          // Set state to file slash state.
13830
6.77k
          state = state::FILE_SLASH;
13831
6.77k
        }
13832
        // Otherwise, if base is non-null and base's scheme is "file":
13833
2.07k
        else if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13834
          // Set url's host to base's host, url's path to a clone of base's
13835
          // path, and url's query to base's query.
13836
597
          ada_log("FILE base non-null");
13837
597
          if constexpr (result_type_is_ada_url) {
13838
199
            url.host = base_url->host;
13839
199
            url.path = base_url->path;
13840
199
            url.query = base_url->query;
13841
398
          } else {
13842
398
            url.update_host_to_base_host(base_url->get_hostname());
13843
398
            url.update_base_pathname(base_url->get_pathname());
13844
398
            if (base_url->has_search()) {
13845
              // get_search() returns "" for an empty query string (URL ends
13846
              // with '?'). update_base_search("") would incorrectly clear the
13847
              // query, so pass "?" to preserve the empty query distinction.
13848
62
              auto s = base_url->get_search();
13849
62
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13850
62
            }
13851
398
          }
13852
597
          url.has_opaque_path = base_url->has_opaque_path;
13853
13854
          // If c is U+003F (?), then set url's query to the empty string and
13855
          // state to query state.
13856
597
          if (input_position != input_size && url_data[input_position] == '?') {
13857
27
            state = state::QUERY;
13858
27
          }
13859
          // Otherwise, if c is not the EOF code point:
13860
570
          else if (input_position != input_size) {
13861
            // Set url's query to null.
13862
381
            url.clear_search();
13863
            // If the code point substring from pointer to the end of input does
13864
            // not start with a Windows drive letter, then shorten url's path.
13865
381
            if (!checkers::is_windows_drive_letter(file_view)) {
13866
321
              if constexpr (result_type_is_ada_url) {
13867
107
                helpers::shorten_path(url.path, url.type);
13868
214
              } else {
13869
214
                std::string_view path = url.get_pathname();
13870
214
                if (helpers::shorten_path(path, url.type)) {
13871
104
                  url.update_base_pathname(std::move(std::string(path)));
13872
104
                }
13873
214
              }
13874
321
            }
13875
            // Otherwise:
13876
60
            else {
13877
              // Set url's path to an empty list.
13878
60
              url.clear_pathname();
13879
60
            }
13880
13881
            // Set state to path state and decrease pointer by 1.
13882
381
            state = state::PATH;
13883
381
            break;
13884
381
          }
13885
597
        }
13886
        // Otherwise, set state to path state, and decrease pointer by 1.
13887
1.48k
        else {
13888
1.48k
          ada_log("FILE go to path");
13889
1.48k
          state = state::PATH;
13890
1.48k
          break;
13891
1.48k
        }
13892
13893
6.98k
        input_position++;
13894
6.98k
        break;
13895
8.85k
      }
13896
0
      default:
13897
0
        unreachable();
13898
472k
    }
13899
472k
  }
13900
34.2k
  if constexpr (store_values) {
13901
34.0k
    if (fragment.has_value()) {
13902
892
      url.update_unencoded_base_hash(*fragment);
13903
892
    }
13904
34.0k
  }
13905
34.2k
  enforce_max_input_length();
13906
34.2k
  return url;
13907
132k
}
ada::url ada::parser::parse_url_impl<ada::url, true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url const*)
Line
Count
Source
12886
50.6k
                           const result_type* base_url) {
12887
  // We can specialize the implementation per type.
12888
  // Important: result_type_is_ada_url is evaluated at *compile time*. This
12889
  // means that doing if constexpr(result_type_is_ada_url) { something } else {
12890
  // something else } is free (at runtime). This means that ada::url_aggregator
12891
  // and ada::url **do not have to support the exact same API**.
12892
50.6k
  constexpr bool result_type_is_ada_url = std::is_same_v<url, result_type>;
12893
50.6k
  constexpr bool result_type_is_ada_url_aggregator =
12894
50.6k
      std::is_same_v<url_aggregator, result_type>;
12895
50.6k
  static_assert(result_type_is_ada_url ||
12896
50.6k
                result_type_is_ada_url_aggregator);  // We don't support
12897
                                                     // anything else for now.
12898
12899
50.6k
  ada_log("ada::parser::parse_url('", user_input, "' [", user_input.size(),
12900
50.6k
          " bytes],", (base_url != nullptr ? base_url->to_string() : "null"),
12901
50.6k
          ")");
12902
12903
50.6k
  result_type url{};
12904
12905
50.6k
  const uint32_t max_input_length = ada::get_max_input_length();
12906
12907
  // Normalization (percent-encoding, IDNA) can push the serialized URL past
12908
  // max_input_length even when the input fit under it. The check at the end of
12909
  // the state machine covers URLs that run to completion, but several states
12910
  // return early after appending a query or fragment, so run the same check on
12911
  // those exits too. Without this, a query- or fragment-terminated URL such as
12912
  // file://x/?<...> or https://user@x/?<...> is accepted while the equivalent
12913
  // https://x/?<...> that takes the absolute fast path is rejected.
12914
50.6k
  const auto enforce_max_input_length = [&]() {
12915
50.6k
    if constexpr (store_values) {
12916
50.6k
      if (url.is_valid) {
12917
50.6k
        if constexpr (result_type_is_ada_url_aggregator) {
12918
50.6k
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
50.6k
            url.is_valid = false;
12920
50.6k
          }
12921
50.6k
        } else {
12922
50.6k
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
50.6k
            url.is_valid = false;
12924
50.6k
          }
12925
50.6k
        }
12926
50.6k
      }
12927
50.6k
    }
12928
50.6k
  };
12929
12930
  // We refuse to parse URL strings that exceed the maximum input length.
12931
  // By default, this is 4GB but can be configured via
12932
  // ada::set_max_input_length().
12933
50.6k
  if (user_input.size() > max_input_length) [[unlikely]] {
12934
0
    url.is_valid = false;
12935
0
  }
12936
  // Going forward, user_input.size() is in [0,
12937
  // std::numeric_limits<uint32_t>::max). If we are provided with an invalid
12938
  // base, or the optional_url was invalid, we must return.
12939
50.6k
  if (base_url != nullptr) {
12940
4.45k
    url.is_valid &= base_url->is_valid;
12941
4.45k
  }
12942
50.6k
  if (!url.is_valid) {
12943
0
    return url;
12944
0
  }
12945
12946
  // Simple absolute / relative fast paths (before tabs/newline scan).
12947
50.6k
  if constexpr (store_values) {
12948
50.6k
    bool hit_fast_path = false;
12949
50.6k
    if (base_url == nullptr) {
12950
      // IPv4/IPv6 and userinfo miss the fast path. Skip the never_inline
12951
      // call so those URLs (including SetHref) do not pay for a miss.
12952
46.2k
      const auto* p = reinterpret_cast<const uint8_t*>(user_input.data());
12953
46.2k
      const size_t n = user_input.size();
12954
46.2k
      size_t host_start = 0;
12955
46.2k
      if (n >= 8 && p[4] == ':' && p[5] == '/' && p[6] == '/') {
12956
2.32k
        host_start = 7;
12957
43.9k
      } else if (n >= 9 && p[5] == ':' && p[6] == '/' && p[7] == '/') {
12958
26
        host_start = 8;
12959
26
      }
12960
46.2k
      const uint8_t host_first = host_start != 0 ? p[host_start] : 0;
12961
46.2k
      const bool skip_ip =
12962
46.2k
          host_first == '[' || (host_first >= '0' && host_first <= '9');
12963
      // Only scan for userinfo when the host is not an IP literal, so
12964
      // IPv4/IPv6 inputs skip the SIMD '@' check entirely.
12965
46.2k
      hit_fast_path =
12966
46.2k
          !skip_ip &&
12967
45.5k
          !(host_start != 0 && authority_has_at(p, host_start, n)) &&
12968
45.5k
          try_parse_simple_absolute(user_input, url);
12969
46.2k
    } else {
12970
4.45k
      hit_fast_path = try_parse_simple_relative(user_input, *base_url, url);
12971
4.45k
    }
12972
50.6k
    if (hit_fast_path) {
12973
      if constexpr (result_type_is_ada_url_aggregator) {
12974
        if (url.buffer.size() > max_input_length) [[unlikely]] {
12975
          url.is_valid = false;
12976
        }
12977
5.52k
      } else {
12978
        // For a small absolute input, even worst-case normalization cannot
12979
        // exceed the limit: percent encoding expands at most 3x and IDNA at
12980
        // most 4.5x. Avoid traversing every stored component on the common
12981
        // default-limit path.
12982
5.52k
        if ((base_url != nullptr ||
12983
5.26k
             user_input.size() > static_cast<size_t>(max_input_length) / 5) &&
12984
259
            url.get_href_size() > max_input_length) [[unlikely]] {
12985
0
          url.is_valid = false;
12986
0
        }
12987
5.52k
      }
12988
5.52k
      return url;
12989
5.52k
    }
12990
50.6k
  }
12991
12992
45.1k
  state state = state::SCHEME_START;
12993
12994
50.6k
  std::string tmp_buffer;
12995
50.6k
  std::string_view url_data;
12996
50.6k
  if (unicode::has_tabs_or_newline(user_input)) [[unlikely]] {
12997
495
    tmp_buffer = user_input;
12998
    // Optimization opportunity: Instead of copying and then pruning, we could
12999
    // just directly build the string from user_input.
13000
495
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
13001
495
    url_data = tmp_buffer;
13002
50.1k
  } else [[likely]] {
13003
50.1k
    url_data = user_input;
13004
50.1k
  }
13005
13006
  // Leading and trailing control characters are uncommon and easy to deal with
13007
  // (no performance concern).
13008
50.6k
  helpers::trim_c0_whitespace(url_data);
13009
13010
  if constexpr (result_type_is_ada_url_aggregator && store_values) {
13011
    // Most of the time, we just need user_input.size().
13012
    // In some instances, we may need a bit more.
13013
    ///////////////////////////
13014
    // This is *very* important. This line should *not* be removed
13015
    // hastily. There are principled reasons why reserve is important
13016
    // for performance. If you have a benchmark with small inputs,
13017
    // it may not matter, but in other instances, it could.
13018
    ////
13019
    // This rounds up to the next power of two.
13020
    // We know that user_input.size() is in [0,
13021
    // std::numeric_limits<uint32_t>::max).
13022
    uint32_t reserve_capacity =
13023
        (0xFFFFFFFF >>
13024
         helpers::leading_zeroes(uint32_t(1 | user_input.size()))) +
13025
        1;
13026
    url.reserve(reserve_capacity);
13027
  }
13028
13029
  // Optimization opportunity. Most websites do not have fragment.
13030
50.6k
  std::optional<std::string_view> fragment = helpers::prune_hash(url_data);
13031
  // We add it last so that an implementation like ada::url_aggregator
13032
  // can append it last to its internal buffer, thus improving performance.
13033
13034
  // Here url_data no longer has its fragment.
13035
  // We are going to access the data from url_data (it is immutable).
13036
  // At any given time, we are pointing at byte 'input_position' in url_data.
13037
  // The input_position variable should range from 0 to input_size.
13038
  // It is illegal to access url_data at input_size.
13039
50.6k
  size_t input_position = 0;
13040
50.6k
  const size_t input_size = url_data.size();
13041
  // Keep running the following state machine by switching on state.
13042
  // If after a run pointer points to the EOF code point, go to the next step.
13043
  // Otherwise, increase pointer by 1 and continue with the state machine.
13044
  // We never decrement input_position.
13045
186k
  while (input_position <= input_size) {
13046
169k
    ada_log("In parsing at ", input_position, " out of ", input_size,
13047
169k
            " in state ", ada::to_string(state));
13048
169k
    switch (state) {
13049
45.1k
      case state::SCHEME_START: {
13050
45.1k
        ada_log("SCHEME_START ", helpers::substring(url_data, input_position));
13051
        // If c is an ASCII alpha, append c, lowercased, to buffer, and set
13052
        // state to scheme state.
13053
45.1k
        if ((input_position != input_size) &&
13054
23.7k
            checkers::is_alpha(url_data[input_position])) {
13055
22.2k
          state = state::SCHEME;
13056
22.2k
          input_position++;
13057
22.9k
        } else {
13058
          // Otherwise, if state override is not given, set state to no scheme
13059
          // state and decrease pointer by 1.
13060
22.9k
          state = state::NO_SCHEME;
13061
22.9k
        }
13062
45.1k
        break;
13063
0
      }
13064
22.2k
      case state::SCHEME: {
13065
22.2k
        ada_log("SCHEME ", helpers::substring(url_data, input_position));
13066
        // If c is an ASCII alphanumeric, U+002B (+), U+002D (-), or U+002E (.),
13067
        // append c, lowercased, to buffer.
13068
54.5k
        while ((input_position != input_size) &&
13069
54.1k
               (unicode::is_alnum_plus(url_data[input_position]))) {
13070
32.2k
          input_position++;
13071
32.2k
        }
13072
        // Otherwise, if c is U+003A (:), then:
13073
22.2k
        if ((input_position != input_size) &&
13074
21.9k
            (url_data[input_position] == ':')) {
13075
21.4k
          ada_log("SCHEME the scheme should be ",
13076
21.4k
                  url_data.substr(0, input_position));
13077
21.4k
          if constexpr (result_type_is_ada_url) {
13078
21.4k
            if (!url.parse_scheme(url_data.substr(0, input_position))) {
13079
0
              return url;
13080
0
            }
13081
          } else {
13082
            // we pass the colon along instead of painfully adding it back.
13083
            if (!url.parse_scheme_with_colon(
13084
                    url_data.substr(0, input_position + 1))) {
13085
              return url;
13086
            }
13087
          }
13088
21.4k
          ada_log("SCHEME the scheme is ", url.get_protocol());
13089
13090
          // If url's scheme is "file", then:
13091
          // NOLINTNEXTLINE(bugprone-branch-clone)
13092
21.4k
          if (url.type == scheme::type::FILE) {
13093
            // Set state to file state.
13094
2.68k
            state = state::FILE;
13095
2.68k
          }
13096
          // Otherwise, if url is special, base is non-null, and base's scheme
13097
          // is url's scheme: Note: Doing base_url->scheme is unsafe if base_url
13098
          // != nullptr is false.
13099
18.7k
          else if (url.is_special() && base_url != nullptr &&
13100
2.22k
                   base_url->type == url.type) {
13101
            // Set state to special relative or authority state.
13102
448
            state = state::SPECIAL_RELATIVE_OR_AUTHORITY;
13103
448
          }
13104
          // Otherwise, if url is special, set state to special authority
13105
          // slashes state.
13106
18.3k
          else if (url.is_special()) {
13107
12.8k
            state = state::SPECIAL_AUTHORITY_SLASHES;
13108
12.8k
          }
13109
          // Otherwise, if remaining starts with an U+002F (/), set state to
13110
          // path or authority state and increase pointer by 1.
13111
5.46k
          else if (input_position + 1 < input_size &&
13112
3.20k
                   url_data[input_position + 1] == '/') {
13113
2.24k
            state = state::PATH_OR_AUTHORITY;
13114
2.24k
            input_position++;
13115
2.24k
          }
13116
          // Otherwise, set url's path to the empty string and set state to
13117
          // opaque path state.
13118
3.22k
          else {
13119
3.22k
            state = state::OPAQUE_PATH;
13120
3.22k
          }
13121
21.4k
        }
13122
        // Otherwise, if state override is not given, set buffer to the empty
13123
        // string, state to no scheme state, and start over (from the first code
13124
        // point in input).
13125
790
        else {
13126
790
          state = state::NO_SCHEME;
13127
790
          input_position = 0;
13128
790
          break;
13129
790
        }
13130
21.4k
        input_position++;
13131
21.4k
        break;
13132
22.2k
      }
13133
23.7k
      case state::NO_SCHEME: {
13134
23.7k
        ada_log("NO_SCHEME ", helpers::substring(url_data, input_position));
13135
        // The fragment was pruned from url_data before the state machine ran,
13136
        // so 'c is U+0023 (#)' holds exactly when a fragment was found and
13137
        // nothing else remains in front of it.
13138
23.7k
        const bool c_is_hash =
13139
23.7k
            fragment.has_value() && input_position == input_size;
13140
        // If base is null, or base has an opaque path and c is not U+0023 (#),
13141
        // validation error, return failure.
13142
23.7k
        if (base_url == nullptr || (base_url->has_opaque_path && !c_is_hash)) {
13143
22.6k
          ada_log("NO_SCHEME validation error");
13144
22.6k
          url.is_valid = false;
13145
22.6k
          return url;
13146
22.6k
        }
13147
        // Otherwise, if base has an opaque path and c is U+0023 (#),
13148
        // set url's scheme to base's scheme, url's path to base's path, url's
13149
        // query to base's query, and set state to fragment state.
13150
1.09k
        else if (base_url->has_opaque_path && c_is_hash) {
13151
55
          ada_log("NO_SCHEME opaque base with fragment");
13152
55
          url.copy_scheme(*base_url);
13153
55
          url.has_opaque_path = base_url->has_opaque_path;
13154
13155
55
          if constexpr (result_type_is_ada_url) {
13156
55
            url.path = base_url->path;
13157
55
            url.query = base_url->query;
13158
          } else {
13159
            url.update_base_pathname(base_url->get_pathname());
13160
            if (base_url->has_search()) {
13161
              // get_search() returns "" for an empty query string (URL ends
13162
              // with '?'). update_base_search("") would incorrectly clear the
13163
              // query, so pass "?" to preserve the empty query distinction.
13164
              auto s = base_url->get_search();
13165
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13166
            }
13167
          }
13168
55
          url.update_unencoded_base_hash(*fragment);
13169
55
          enforce_max_input_length();
13170
55
          return url;
13171
55
        }
13172
        // Otherwise, if base's scheme is not "file", set state to relative
13173
        // state and decrease pointer by 1.
13174
        // NOLINTNEXTLINE(bugprone-branch-clone)
13175
1.04k
        else if (base_url->type != scheme::type::FILE) {
13176
777
          ada_log("NO_SCHEME non-file relative path");
13177
777
          state = state::RELATIVE_SCHEME;
13178
777
        }
13179
        // Otherwise, set state to file state and decrease pointer by 1.
13180
264
        else {
13181
264
          ada_log("NO_SCHEME file base type");
13182
264
          state = state::FILE;
13183
264
        }
13184
1.04k
        break;
13185
23.7k
      }
13186
14.1k
      case state::AUTHORITY: {
13187
14.1k
        ada_log("AUTHORITY ", helpers::substring(url_data, input_position));
13188
        // most URLs have no @. Having no @ tells us that we don't have to worry
13189
        // about AUTHORITY. Of course, we could have @ and still not have to
13190
        // worry about AUTHORITY.
13191
        // TODO: Instead of just collecting a bool, collect the location of the
13192
        // '@' and do something useful with it.
13193
        // TODO: We could do various processing early on, using a single pass
13194
        // over the string to collect information about it, e.g., telling us
13195
        // whether there is a @ and if so, where (or how many).
13196
13197
        // Check if url data contains an @.
13198
14.1k
        if (url_data.find('@', input_position) == std::string_view::npos) {
13199
12.8k
          state = state::HOST;
13200
12.8k
          break;
13201
12.8k
        }
13202
1.25k
        bool at_sign_seen{false};
13203
1.25k
        bool password_token_seen{false};
13204
        /**
13205
         * We expect something of the sort...
13206
         * https://user:pass@example.com:1234/foo/bar?baz#quux
13207
         * --------^
13208
         */
13209
8.18k
        do {
13210
8.18k
          std::string_view view = url_data.substr(input_position);
13211
          // The delimiters are @, /, ? \\.
13212
8.18k
          size_t location =
13213
8.18k
              url.is_special() ? helpers::find_authority_delimiter_special(view)
13214
8.18k
                               : helpers::find_authority_delimiter(view);
13215
8.18k
          std::string_view authority_view = view.substr(0, location);
13216
8.18k
          size_t end_of_authority = input_position + authority_view.size();
13217
          // If c is U+0040 (@), then:
13218
8.18k
          if ((end_of_authority != input_size) &&
13219
7.37k
              (url_data[end_of_authority] == '@')) {
13220
            // If atSignSeen is true, then prepend "%40" to buffer.
13221
6.92k
            if (at_sign_seen) {
13222
5.81k
              if (password_token_seen) {
13223
2.47k
                if constexpr (result_type_is_ada_url) {
13224
2.47k
                  url.password += "%40";
13225
                } else {
13226
                  url.append_base_password("%40");
13227
                }
13228
3.34k
              } else {
13229
3.34k
                if constexpr (result_type_is_ada_url) {
13230
3.34k
                  url.username += "%40";
13231
                } else {
13232
                  url.append_base_username("%40");
13233
                }
13234
3.34k
              }
13235
5.81k
            }
13236
13237
6.92k
            at_sign_seen = true;
13238
13239
6.92k
            if (!password_token_seen) {
13240
4.45k
              size_t password_token_location = authority_view.find(':');
13241
4.45k
              password_token_seen =
13242
4.45k
                  password_token_location != std::string_view::npos;
13243
13244
4.45k
              if constexpr (store_values) {
13245
4.45k
                if (!password_token_seen) {
13246
4.03k
                  if constexpr (result_type_is_ada_url) {
13247
4.03k
                    url.username += unicode::percent_encode(
13248
4.03k
                        authority_view,
13249
4.03k
                        character_sets::USERINFO_PERCENT_ENCODE);
13250
                  } else {
13251
                    url.append_base_username(unicode::percent_encode(
13252
                        authority_view,
13253
                        character_sets::USERINFO_PERCENT_ENCODE));
13254
                  }
13255
4.03k
                } else {
13256
426
                  if constexpr (result_type_is_ada_url) {
13257
426
                    url.username += unicode::percent_encode(
13258
426
                        authority_view.substr(0, password_token_location),
13259
426
                        character_sets::USERINFO_PERCENT_ENCODE);
13260
426
                    url.password += unicode::percent_encode(
13261
426
                        authority_view.substr(password_token_location + 1),
13262
426
                        character_sets::USERINFO_PERCENT_ENCODE);
13263
                  } else {
13264
                    url.append_base_username(unicode::percent_encode(
13265
                        authority_view.substr(0, password_token_location),
13266
                        character_sets::USERINFO_PERCENT_ENCODE));
13267
                    url.append_base_password(unicode::percent_encode(
13268
                        authority_view.substr(password_token_location + 1),
13269
                        character_sets::USERINFO_PERCENT_ENCODE));
13270
                  }
13271
426
                }
13272
4.45k
              }
13273
4.45k
            } else if constexpr (store_values) {
13274
2.47k
              if constexpr (result_type_is_ada_url) {
13275
2.47k
                url.password += unicode::percent_encode(
13276
2.47k
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE);
13277
              } else {
13278
                url.append_base_password(unicode::percent_encode(
13279
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE));
13280
              }
13281
2.47k
            }
13282
6.92k
          }
13283
          // Otherwise, if one of the following is true:
13284
          // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13285
          // - url is special and c is U+005C (\)
13286
1.25k
          else if (end_of_authority == input_size ||
13287
447
                   url_data[end_of_authority] == '/' ||
13288
39
                   url_data[end_of_authority] == '?' ||
13289
1.25k
                   (url.is_special() && url_data[end_of_authority] == '\\')) {
13290
            // If atSignSeen is true and authority_view is the empty string,
13291
            // validation error, return failure.
13292
1.25k
            if (at_sign_seen && authority_view.empty()) {
13293
350
              url.is_valid = false;
13294
350
              return url;
13295
350
            }
13296
909
            state = state::HOST;
13297
909
            break;
13298
1.25k
          }
13299
6.92k
          if (end_of_authority == input_size) {
13300
0
            if constexpr (store_values) {
13301
0
              if (fragment.has_value()) {
13302
0
                url.update_unencoded_base_hash(*fragment);
13303
0
              }
13304
0
            }
13305
0
            enforce_max_input_length();
13306
0
            return url;
13307
0
          }
13308
6.92k
          input_position = end_of_authority + 1;
13309
6.92k
        } while (true);
13310
13311
909
        break;
13312
1.25k
      }
13313
909
      case state::SPECIAL_RELATIVE_OR_AUTHORITY: {
13314
448
        ada_log("SPECIAL_RELATIVE_OR_AUTHORITY ",
13315
448
                helpers::substring(url_data, input_position));
13316
13317
        // If c is U+002F (/) and remaining starts with U+002F (/),
13318
        // then set state to special authority ignore slashes state and increase
13319
        // pointer by 1.
13320
448
        if (url_data.substr(input_position, 2) == "//") {
13321
360
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13322
360
          input_position += 2;
13323
360
        } else {
13324
          // Otherwise, validation error, set state to relative state and
13325
          // decrease pointer by 1.
13326
88
          state = state::RELATIVE_SCHEME;
13327
88
        }
13328
13329
448
        break;
13330
1.25k
      }
13331
2.24k
      case state::PATH_OR_AUTHORITY: {
13332
2.24k
        ada_log("PATH_OR_AUTHORITY ",
13333
2.24k
                helpers::substring(url_data, input_position));
13334
13335
        // If c is U+002F (/), then set state to authority state.
13336
2.24k
        if ((input_position != input_size) &&
13337
2.10k
            (url_data[input_position] == '/')) {
13338
914
          state = state::AUTHORITY;
13339
914
          input_position++;
13340
1.32k
        } else {
13341
          // Otherwise, set state to path state, and decrease pointer by 1.
13342
1.32k
          state = state::PATH;
13343
1.32k
        }
13344
13345
2.24k
        break;
13346
1.25k
      }
13347
865
      case state::RELATIVE_SCHEME: {
13348
865
        ada_log("RELATIVE_SCHEME ",
13349
865
                helpers::substring(url_data, input_position));
13350
13351
        // Set url's scheme to base's scheme.
13352
865
        url.copy_scheme(*base_url);
13353
13354
        // If c is U+002F (/), then set state to relative slash state.
13355
865
        if ((input_position != input_size) &&
13356
            // NOLINTNEXTLINE(bugprone-branch-clone)
13357
689
            (url_data[input_position] == '/')) {
13358
67
          ada_log(
13359
67
              "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
13360
67
              "slash state");
13361
67
          state = state::RELATIVE_SLASH;
13362
798
        } else if (url.is_special() && (input_position != input_size) &&
13363
508
                   (url_data[input_position] == '\\')) {
13364
          // Otherwise, if url is special and c is U+005C (\), validation error,
13365
          // set state to relative slash state.
13366
2
          ada_log(
13367
2
              "RELATIVE_SCHEME  if url is special and c is U+005C, validation "
13368
2
              "error, set state to relative slash state");
13369
2
          state = state::RELATIVE_SLASH;
13370
796
        } else {
13371
796
          ada_log("RELATIVE_SCHEME otherwise");
13372
          // Set url's username to base's username, url's password to base's
13373
          // password, url's host to base's host, url's port to base's port,
13374
          // url's path to a clone of base's path, and url's query to base's
13375
          // query.
13376
796
          if constexpr (result_type_is_ada_url) {
13377
796
            url.username = base_url->username;
13378
796
            url.password = base_url->password;
13379
796
            url.host = base_url->host;
13380
796
            url.port = base_url->port;
13381
            // cloning the base path includes cloning the has_opaque_path flag
13382
796
            url.has_opaque_path = base_url->has_opaque_path;
13383
796
            url.path = base_url->path;
13384
796
            url.query = base_url->query;
13385
          } else {
13386
            url.update_base_authority(base_url->get_href(),
13387
                                      base_url->get_components());
13388
            url.update_host_to_base_host(base_url->get_hostname());
13389
            url.update_base_port(base_url->retrieve_base_port());
13390
            // cloning the base path includes cloning the has_opaque_path flag
13391
            url.has_opaque_path = base_url->has_opaque_path;
13392
            url.update_base_pathname(base_url->get_pathname());
13393
            if (base_url->has_search()) {
13394
              // get_search() returns "" for an empty query string (URL ends
13395
              // with '?'). update_base_search("") would incorrectly clear the
13396
              // query, so pass "?" to preserve the empty query distinction.
13397
              auto s = base_url->get_search();
13398
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13399
            }
13400
          }
13401
13402
796
          url.has_opaque_path = base_url->has_opaque_path;
13403
13404
          // If c is U+003F (?), then set url's query to the empty string, and
13405
          // state to query state.
13406
796
          if ((input_position != input_size) &&
13407
620
              (url_data[input_position] == '?')) {
13408
73
            state = state::QUERY;
13409
73
          }
13410
          // Otherwise, if c is not the EOF code point:
13411
723
          else if (input_position != input_size) {
13412
            // Set url's query to null.
13413
547
            url.clear_search();
13414
547
            if constexpr (result_type_is_ada_url) {
13415
              // Shorten url's path.
13416
547
              helpers::shorten_path(url.path, url.type);
13417
            } else {
13418
              std::string_view path = url.get_pathname();
13419
              if (helpers::shorten_path(path, url.type)) {
13420
                url.update_base_pathname(std::move(std::string(path)));
13421
              }
13422
            }
13423
            // Set state to path state and decrease pointer by 1.
13424
547
            state = state::PATH;
13425
547
            break;
13426
547
          }
13427
796
        }
13428
318
        input_position++;
13429
318
        break;
13430
865
      }
13431
69
      case state::RELATIVE_SLASH: {
13432
69
        ada_log("RELATIVE_SLASH ",
13433
69
                helpers::substring(url_data, input_position));
13434
13435
        // If url is special and c is U+002F (/) or U+005C (\), then:
13436
        // NOLINTNEXTLINE(bugprone-branch-clone)
13437
69
        if (url.is_special() && (input_position != input_size) &&
13438
33
            (url_data[input_position] == '/' ||
13439
30
             url_data[input_position] == '\\')) {
13440
          // Set state to special authority ignore slashes state.
13441
5
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13442
5
        }
13443
        // Otherwise, if c is U+002F (/), then set state to authority state.
13444
64
        else if ((input_position != input_size) &&
13445
43
                 (url_data[input_position] == '/')) {
13446
5
          state = state::AUTHORITY;
13447
5
        }
13448
        // Otherwise, set
13449
        // - url's username to base's username,
13450
        // - url's password to base's password,
13451
        // - url's host to base's host,
13452
        // - url's port to base's port,
13453
        // - state to path state, and then, decrease pointer by 1.
13454
59
        else {
13455
59
          if constexpr (result_type_is_ada_url) {
13456
59
            url.username = base_url->username;
13457
59
            url.password = base_url->password;
13458
59
            url.host = base_url->host;
13459
59
            url.port = base_url->port;
13460
          } else {
13461
            url.update_base_authority(base_url->get_href(),
13462
                                      base_url->get_components());
13463
            url.update_host_to_base_host(base_url->get_hostname());
13464
            url.update_base_port(base_url->retrieve_base_port());
13465
          }
13466
59
          state = state::PATH;
13467
59
          break;
13468
59
        }
13469
13470
10
        input_position++;
13471
10
        break;
13472
69
      }
13473
12.8k
      case state::SPECIAL_AUTHORITY_SLASHES: {
13474
12.8k
        ada_log("SPECIAL_AUTHORITY_SLASHES ",
13475
12.8k
                helpers::substring(url_data, input_position));
13476
13477
        // If c is U+002F (/) and remaining starts with U+002F (/),
13478
        // then set state to special authority ignore slashes state and increase
13479
        // pointer by 1.
13480
12.8k
        if (url_data.substr(input_position, 2) == "//") {
13481
3.31k
          input_position += 2;
13482
3.31k
        }
13483
13484
12.8k
        [[fallthrough]];
13485
12.8k
      }
13486
13.2k
      case state::SPECIAL_AUTHORITY_IGNORE_SLASHES: {
13487
13.2k
        ada_log("SPECIAL_AUTHORITY_IGNORE_SLASHES ",
13488
13.2k
                helpers::substring(url_data, input_position));
13489
13490
        // If c is neither U+002F (/) nor U+005C (\), then set state to
13491
        // authority state and decrease pointer by 1.
13492
14.1k
        while ((input_position != input_size) &&
13493
14.0k
               ((url_data[input_position] == '/') ||
13494
13.5k
                (url_data[input_position] == '\\'))) {
13495
969
          input_position++;
13496
969
        }
13497
13.2k
        state = state::AUTHORITY;
13498
13499
13.2k
        break;
13500
12.8k
      }
13501
1.24k
      case state::QUERY: {
13502
1.24k
        ada_log("QUERY ", helpers::substring(url_data, input_position));
13503
1.24k
        if constexpr (store_values) {
13504
          // Let queryPercentEncodeSet be the special-query percent-encode set
13505
          // if url is special; otherwise the query percent-encode set.
13506
1.24k
          const uint8_t* query_percent_encode_set =
13507
1.24k
              url.is_special() ? character_sets::SPECIAL_QUERY_PERCENT_ENCODE
13508
1.24k
                               : character_sets::QUERY_PERCENT_ENCODE;
13509
13510
          // Percent-encode after encoding, with encoding, buffer, and
13511
          // queryPercentEncodeSet, and append the result to url's query.
13512
1.24k
          url.update_base_search(url_data.substr(input_position),
13513
1.24k
                                 query_percent_encode_set);
13514
1.24k
          ada_log("QUERY update_base_search completed ");
13515
1.24k
          if (fragment.has_value()) {
13516
350
            url.update_unencoded_base_hash(*fragment);
13517
350
          }
13518
1.24k
        }
13519
1.24k
        enforce_max_input_length();
13520
1.24k
        return url;
13521
12.8k
      }
13522
13.7k
      case state::HOST: {
13523
13.7k
        ada_log("HOST ", helpers::substring(url_data, input_position));
13524
13525
13.7k
        std::string_view host_view = url_data.substr(input_position);
13526
13.7k
        auto [location, found_colon] =
13527
13.7k
            helpers::get_host_delimiter_location(url.is_special(), host_view);
13528
13.7k
        input_position = (location != std::string_view::npos)
13529
13.7k
                             ? input_position + location
13530
13.7k
                             : input_size;
13531
        // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
13532
        // Note: the 'found_colon' value is true if and only if a colon was
13533
        // encountered while not inside brackets.
13534
13.7k
        if (found_colon) {
13535
          // If buffer is the empty string, validation error, return failure.
13536
          // Let host be the result of host parsing buffer with url is not
13537
          // special.
13538
2.59k
          ada_log("HOST parsing ", host_view);
13539
2.59k
          if (!url.parse_host(host_view)) {
13540
254
            return url;
13541
254
          }
13542
2.34k
          ada_log("HOST parsing results in ", url.get_hostname());
13543
          // Set url's host to host, buffer to the empty string, and state to
13544
          // port state.
13545
2.34k
          state = state::PORT;
13546
2.34k
          input_position++;
13547
2.34k
        }
13548
        // Otherwise, if one of the following is true:
13549
        // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13550
        // - url is special and c is U+005C (\)
13551
        // The get_host_delimiter_location function either brings us to
13552
        // the colon outside of the bracket, or to one of those characters.
13553
11.1k
        else {
13554
          // If url is special and host_view is the empty string, validation
13555
          // error, return failure.
13556
11.1k
          if (host_view.empty() && url.is_special()) {
13557
102
            url.is_valid = false;
13558
102
            return url;
13559
102
          }
13560
11.0k
          ada_log("HOST parsing ", host_view, " href=", url.get_href());
13561
          // Let host be the result of host parsing host_view with url is not
13562
          // special.
13563
11.0k
          if (host_view.empty()) {
13564
126
            url.update_base_hostname("");
13565
10.9k
          } else if (!url.parse_host(host_view)) {
13566
2.29k
            return url;
13567
2.29k
          }
13568
8.78k
          ada_log("HOST parsing results in ", url.get_hostname(),
13569
8.78k
                  " href=", url.get_href());
13570
13571
          // Set url's host to host, and state to path start state.
13572
8.78k
          state = state::PATH_START;
13573
8.78k
        }
13574
13575
11.1k
        break;
13576
13.7k
      }
13577
11.1k
      case state::OPAQUE_PATH: {
13578
3.22k
        ada_log("OPAQUE_PATH ", helpers::substring(url_data, input_position));
13579
        // Opaque path, query, and fragment are structurally always valid:
13580
        // the parser would just percent-encode whatever is there. When we
13581
        // are not storing values (can_parse), we can return immediately.
13582
        // We must set has_opaque_path = true before returning so that when
13583
        // this URL is used as an internal base inside can_parse, NO_SCHEME
13584
        // correctly rejects relative inputs against an opaque-path base
13585
        // (e.g. can_parse("", &"W:") must return false).
13586
        if constexpr (!store_values) {
13587
          url.has_opaque_path = true;
13588
          return url;
13589
        }
13590
3.22k
        std::string_view view = url_data.substr(input_position);
13591
        // If c is U+003F (?), then set url's query to the empty string and
13592
        // state to query state.
13593
3.22k
        size_t location = view.find('?');
13594
3.22k
        if (location != std::string_view::npos) {
13595
253
          view.remove_suffix(view.size() - location);
13596
253
          state = state::QUERY;
13597
253
          input_position += location + 1;
13598
2.97k
        } else {
13599
2.97k
          input_position = input_size + 1;
13600
2.97k
        }
13601
3.22k
        url.has_opaque_path = true;
13602
13603
        // This is a really unlikely scenario in real world. We should not seek
13604
        // to optimize it.
13605
3.22k
        if (view.ends_with(' ')) {
13606
116
          std::string modified_view =
13607
116
              std::string(view.substr(0, view.size() - 1)) + "%20";
13608
116
          url.update_base_pathname(unicode::percent_encode(
13609
116
              modified_view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13610
3.11k
        } else {
13611
3.11k
          url.update_base_pathname(unicode::percent_encode(
13612
3.11k
              view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13613
3.11k
        }
13614
3.22k
        break;
13615
13.7k
      }
13616
2.34k
      case state::PORT: {
13617
2.34k
        ada_log("PORT ", helpers::substring(url_data, input_position));
13618
2.34k
        std::string_view port_view = url_data.substr(input_position);
13619
2.34k
        input_position += url.parse_port(port_view, true);
13620
2.34k
        if (!url.is_valid) {
13621
132
          return url;
13622
132
        }
13623
2.21k
        state = state::PATH_START;
13624
2.21k
        [[fallthrough]];
13625
2.21k
      }
13626
12.9k
      case state::PATH_START: {
13627
12.9k
        ada_log("PATH_START ", helpers::substring(url_data, input_position));
13628
        // Path, query, and fragment are structurally always valid: the
13629
        // parser would just percent-encode whatever is there. When we are
13630
        // not storing values (can_parse), we can return immediately since
13631
        // no subsequent state can invalidate the URL.
13632
        if constexpr (!store_values) {
13633
          return url;
13634
        }
13635
13636
        // If url is special, then:
13637
12.9k
        if (url.is_special()) {
13638
          // Set state to path state.
13639
12.1k
          state = state::PATH;
13640
13641
          // Optimization: Avoiding going into PATH state improves the
13642
          // performance of urls ending with /.
13643
12.1k
          if (input_position == input_size) {
13644
6.43k
            if constexpr (store_values) {
13645
6.43k
              url.update_base_pathname("/");
13646
6.43k
              if (fragment.has_value()) {
13647
173
                url.update_unencoded_base_hash(*fragment);
13648
173
              }
13649
6.43k
            }
13650
6.43k
            enforce_max_input_length();
13651
6.43k
            return url;
13652
6.43k
          }
13653
          // If c is neither U+002F (/) nor U+005C (\), then decrease pointer
13654
          // by 1. We know that (input_position == input_size) is impossible
13655
          // here, because of the previous if-check.
13656
5.72k
          if ((url_data[input_position] != '/') &&
13657
443
              (url_data[input_position] != '\\')) {
13658
430
            break;
13659
430
          }
13660
5.72k
        }
13661
        // Otherwise, if state override is not given and c is U+003F (?),
13662
        // set url's query to the empty string and state to query state.
13663
781
        else if ((input_position != input_size) &&
13664
170
                 (url_data[input_position] == '?')) {
13665
61
          state = state::QUERY;
13666
61
        }
13667
        // Otherwise, if c is not the EOF code point:
13668
720
        else if (input_position != input_size) {
13669
          // Set state to path state.
13670
109
          state = state::PATH;
13671
13672
          // If c is not U+002F (/), then decrease pointer by 1.
13673
109
          if (url_data[input_position] != '/') {
13674
0
            break;
13675
0
          }
13676
109
        }
13677
13678
6.07k
        input_position++;
13679
6.07k
        break;
13680
12.9k
      }
13681
8.50k
      case state::PATH: {
13682
8.50k
        ada_log("PATH ", helpers::substring(url_data, input_position));
13683
        // Path, query, and fragment are structurally always valid: the
13684
        // parser would just percent-encode whatever is there. When we are
13685
        // not storing values (can_parse), we can return immediately since
13686
        // no subsequent state can invalidate the URL.
13687
        if constexpr (!store_values) {
13688
          return url;
13689
        }
13690
8.50k
        std::string_view view = url_data.substr(input_position);
13691
13692
        // Most time, we do not need percent encoding.
13693
        // Furthermore, we can immediately locate the '?'.
13694
8.50k
        size_t locofquestionmark = view.find('?');
13695
8.50k
        if (locofquestionmark != std::string_view::npos) {
13696
853
          state = state::QUERY;
13697
853
          view.remove_suffix(view.size() - locofquestionmark);
13698
853
          input_position += locofquestionmark + 1;
13699
7.65k
        } else {
13700
7.65k
          input_position = input_size + 1;
13701
7.65k
        }
13702
8.50k
        if constexpr (store_values) {
13703
8.50k
          if constexpr (result_type_is_ada_url) {
13704
8.50k
            helpers::parse_prepared_path(view, url.type, url.path);
13705
          } else {
13706
            url.consume_prepared_path(view);
13707
            ADA_ASSERT_TRUE(url.validate());
13708
          }
13709
8.50k
        }
13710
8.50k
        break;
13711
12.9k
      }
13712
2.25k
      case state::FILE_SLASH: {
13713
2.25k
        ada_log("FILE_SLASH ", helpers::substring(url_data, input_position));
13714
13715
        // If c is U+002F (/) or U+005C (\), then:
13716
2.25k
        if ((input_position != input_size) &&
13717
2.18k
            (url_data[input_position] == '/' ||
13718
2.14k
             url_data[input_position] == '\\')) {
13719
2.14k
          ada_log("FILE_SLASH c is U+002F or U+005C");
13720
          // Set state to file host state.
13721
2.14k
          state = state::FILE_HOST;
13722
2.14k
          input_position++;
13723
2.14k
        } else {
13724
112
          ada_log("FILE_SLASH otherwise");
13725
          // If base is non-null and base's scheme is "file", then:
13726
          // Note: it is unsafe to do base_url->scheme unless you know that
13727
          // base_url_has_value() is true.
13728
112
          if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13729
            // Set url's host to base's host.
13730
84
            if constexpr (result_type_is_ada_url) {
13731
84
              url.host = base_url->host;
13732
            } else {
13733
              url.update_host_to_base_host(base_url->get_host());
13734
            }
13735
            // If the code point substring from pointer to the end of input does
13736
            // not start with a Windows drive letter and base's path[0] is a
13737
            // normalized Windows drive letter, then append base's path[0] to
13738
            // url's path.
13739
84
            if (!base_url->get_pathname().empty()) {
13740
84
              if (!checkers::is_windows_drive_letter(
13741
84
                      url_data.substr(input_position))) {
13742
79
                std::string_view first_base_url_path =
13743
79
                    base_url->get_pathname().substr(1);
13744
79
                size_t loc = first_base_url_path.find('/');
13745
79
                if (loc != std::string_view::npos) {
13746
12
                  helpers::resize(first_base_url_path, loc);
13747
12
                }
13748
79
                if (checkers::is_normalized_windows_drive_letter(
13749
79
                        first_base_url_path)) {
13750
3
                  if constexpr (result_type_is_ada_url) {
13751
3
                    url.path += '/';
13752
3
                    url.path += first_base_url_path;
13753
                  } else {
13754
                    url.append_base_pathname(
13755
                        helpers::concat("/", first_base_url_path));
13756
                  }
13757
3
                }
13758
79
              }
13759
84
            }
13760
84
          }
13761
13762
          // Set state to path state, and decrease pointer by 1.
13763
112
          state = state::PATH;
13764
112
        }
13765
13766
2.25k
        break;
13767
12.9k
      }
13768
2.14k
      case state::FILE_HOST: {
13769
2.14k
        ada_log("FILE_HOST ", helpers::substring(url_data, input_position));
13770
2.14k
        std::string_view view = url_data.substr(input_position);
13771
13772
2.14k
        size_t location = view.find_first_of("/\\?");
13773
2.14k
        std::string_view file_host_buffer = view.substr(
13774
2.14k
            0, (location != std::string_view::npos) ? location : view.size());
13775
13776
2.14k
        if (checkers::is_windows_drive_letter(file_host_buffer)) {
13777
12
          state = state::PATH;
13778
2.13k
        } else if (file_host_buffer.empty()) {
13779
          // Set url's host to the empty string.
13780
274
          if constexpr (result_type_is_ada_url) {
13781
274
            url.host = "";
13782
          } else {
13783
            url.update_base_hostname("");
13784
          }
13785
          // Set state to path start state.
13786
274
          state = state::PATH_START;
13787
1.85k
        } else {
13788
1.85k
          size_t consumed_bytes = file_host_buffer.size();
13789
1.85k
          input_position += consumed_bytes;
13790
          // Let host be the result of host parsing buffer with url is not
13791
          // special.
13792
1.85k
          if (!url.parse_host(file_host_buffer)) {
13793
191
            return url;
13794
191
          }
13795
13796
1.66k
          if constexpr (result_type_is_ada_url) {
13797
            // If host is "localhost", then set host to the empty string.
13798
1.66k
            if (url.host.has_value() && url.host.value() == "localhost") {
13799
12
              url.host = "";
13800
12
            }
13801
          } else {
13802
            if (url.get_hostname() == "localhost") {
13803
              url.update_base_hostname("");
13804
            }
13805
          }
13806
13807
          // Set buffer to the empty string and state to path start state.
13808
1.66k
          state = state::PATH_START;
13809
1.66k
        }
13810
13811
1.95k
        break;
13812
2.14k
      }
13813
2.95k
      case state::FILE: {
13814
2.95k
        ada_log("FILE ", helpers::substring(url_data, input_position));
13815
2.95k
        std::string_view file_view = url_data.substr(input_position);
13816
13817
2.95k
        url.set_protocol_as_file();
13818
2.95k
        if constexpr (result_type_is_ada_url) {
13819
          // Set url's host to the empty string.
13820
2.95k
          url.host = "";
13821
        } else {
13822
          url.update_base_hostname("");
13823
        }
13824
        // If c is U+002F (/) or U+005C (\), then:
13825
2.95k
        if (input_position != input_size &&
13826
2.81k
            (url_data[input_position] == '/' ||
13827
2.25k
             url_data[input_position] == '\\')) {
13828
2.25k
          ada_log("FILE c is U+002F or U+005C");
13829
          // Set state to file slash state.
13830
2.25k
          state = state::FILE_SLASH;
13831
2.25k
        }
13832
        // Otherwise, if base is non-null and base's scheme is "file":
13833
693
        else if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13834
          // Set url's host to base's host, url's path to a clone of base's
13835
          // path, and url's query to base's query.
13836
199
          ada_log("FILE base non-null");
13837
199
          if constexpr (result_type_is_ada_url) {
13838
199
            url.host = base_url->host;
13839
199
            url.path = base_url->path;
13840
199
            url.query = base_url->query;
13841
          } else {
13842
            url.update_host_to_base_host(base_url->get_hostname());
13843
            url.update_base_pathname(base_url->get_pathname());
13844
            if (base_url->has_search()) {
13845
              // get_search() returns "" for an empty query string (URL ends
13846
              // with '?'). update_base_search("") would incorrectly clear the
13847
              // query, so pass "?" to preserve the empty query distinction.
13848
              auto s = base_url->get_search();
13849
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13850
            }
13851
          }
13852
199
          url.has_opaque_path = base_url->has_opaque_path;
13853
13854
          // If c is U+003F (?), then set url's query to the empty string and
13855
          // state to query state.
13856
199
          if (input_position != input_size && url_data[input_position] == '?') {
13857
9
            state = state::QUERY;
13858
9
          }
13859
          // Otherwise, if c is not the EOF code point:
13860
190
          else if (input_position != input_size) {
13861
            // Set url's query to null.
13862
127
            url.clear_search();
13863
            // If the code point substring from pointer to the end of input does
13864
            // not start with a Windows drive letter, then shorten url's path.
13865
127
            if (!checkers::is_windows_drive_letter(file_view)) {
13866
107
              if constexpr (result_type_is_ada_url) {
13867
107
                helpers::shorten_path(url.path, url.type);
13868
              } else {
13869
                std::string_view path = url.get_pathname();
13870
                if (helpers::shorten_path(path, url.type)) {
13871
                  url.update_base_pathname(std::move(std::string(path)));
13872
                }
13873
              }
13874
107
            }
13875
            // Otherwise:
13876
20
            else {
13877
              // Set url's path to an empty list.
13878
20
              url.clear_pathname();
13879
20
            }
13880
13881
            // Set state to path state and decrease pointer by 1.
13882
127
            state = state::PATH;
13883
127
            break;
13884
127
          }
13885
199
        }
13886
        // Otherwise, set state to path state, and decrease pointer by 1.
13887
494
        else {
13888
494
          ada_log("FILE go to path");
13889
494
          state = state::PATH;
13890
494
          break;
13891
494
        }
13892
13893
2.32k
        input_position++;
13894
2.32k
        break;
13895
2.95k
      }
13896
0
      default:
13897
0
        unreachable();
13898
169k
    }
13899
169k
  }
13900
17.0k
  if constexpr (store_values) {
13901
17.0k
    if (fragment.has_value()) {
13902
446
      url.update_unencoded_base_hash(*fragment);
13903
446
    }
13904
17.0k
  }
13905
17.0k
  enforce_max_input_length();
13906
17.0k
  return url;
13907
50.6k
}
ada::url_aggregator ada::parser::parse_url_impl<ada::url_aggregator, true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const*)
Line
Count
Source
12886
50.6k
                           const result_type* base_url) {
12887
  // We can specialize the implementation per type.
12888
  // Important: result_type_is_ada_url is evaluated at *compile time*. This
12889
  // means that doing if constexpr(result_type_is_ada_url) { something } else {
12890
  // something else } is free (at runtime). This means that ada::url_aggregator
12891
  // and ada::url **do not have to support the exact same API**.
12892
50.6k
  constexpr bool result_type_is_ada_url = std::is_same_v<url, result_type>;
12893
50.6k
  constexpr bool result_type_is_ada_url_aggregator =
12894
50.6k
      std::is_same_v<url_aggregator, result_type>;
12895
50.6k
  static_assert(result_type_is_ada_url ||
12896
50.6k
                result_type_is_ada_url_aggregator);  // We don't support
12897
                                                     // anything else for now.
12898
12899
50.6k
  ada_log("ada::parser::parse_url('", user_input, "' [", user_input.size(),
12900
50.6k
          " bytes],", (base_url != nullptr ? base_url->to_string() : "null"),
12901
50.6k
          ")");
12902
12903
50.6k
  result_type url{};
12904
12905
50.6k
  const uint32_t max_input_length = ada::get_max_input_length();
12906
12907
  // Normalization (percent-encoding, IDNA) can push the serialized URL past
12908
  // max_input_length even when the input fit under it. The check at the end of
12909
  // the state machine covers URLs that run to completion, but several states
12910
  // return early after appending a query or fragment, so run the same check on
12911
  // those exits too. Without this, a query- or fragment-terminated URL such as
12912
  // file://x/?<...> or https://user@x/?<...> is accepted while the equivalent
12913
  // https://x/?<...> that takes the absolute fast path is rejected.
12914
50.6k
  const auto enforce_max_input_length = [&]() {
12915
50.6k
    if constexpr (store_values) {
12916
50.6k
      if (url.is_valid) {
12917
50.6k
        if constexpr (result_type_is_ada_url_aggregator) {
12918
50.6k
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
50.6k
            url.is_valid = false;
12920
50.6k
          }
12921
50.6k
        } else {
12922
50.6k
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
50.6k
            url.is_valid = false;
12924
50.6k
          }
12925
50.6k
        }
12926
50.6k
      }
12927
50.6k
    }
12928
50.6k
  };
12929
12930
  // We refuse to parse URL strings that exceed the maximum input length.
12931
  // By default, this is 4GB but can be configured via
12932
  // ada::set_max_input_length().
12933
50.6k
  if (user_input.size() > max_input_length) [[unlikely]] {
12934
0
    url.is_valid = false;
12935
0
  }
12936
  // Going forward, user_input.size() is in [0,
12937
  // std::numeric_limits<uint32_t>::max). If we are provided with an invalid
12938
  // base, or the optional_url was invalid, we must return.
12939
50.6k
  if (base_url != nullptr) {
12940
4.45k
    url.is_valid &= base_url->is_valid;
12941
4.45k
  }
12942
50.6k
  if (!url.is_valid) {
12943
0
    return url;
12944
0
  }
12945
12946
  // Simple absolute / relative fast paths (before tabs/newline scan).
12947
50.6k
  if constexpr (store_values) {
12948
50.6k
    bool hit_fast_path = false;
12949
50.6k
    if (base_url == nullptr) {
12950
      // IPv4/IPv6 and userinfo miss the fast path. Skip the never_inline
12951
      // call so those URLs (including SetHref) do not pay for a miss.
12952
46.2k
      const auto* p = reinterpret_cast<const uint8_t*>(user_input.data());
12953
46.2k
      const size_t n = user_input.size();
12954
46.2k
      size_t host_start = 0;
12955
46.2k
      if (n >= 8 && p[4] == ':' && p[5] == '/' && p[6] == '/') {
12956
2.32k
        host_start = 7;
12957
43.9k
      } else if (n >= 9 && p[5] == ':' && p[6] == '/' && p[7] == '/') {
12958
26
        host_start = 8;
12959
26
      }
12960
46.2k
      const uint8_t host_first = host_start != 0 ? p[host_start] : 0;
12961
46.2k
      const bool skip_ip =
12962
46.2k
          host_first == '[' || (host_first >= '0' && host_first <= '9');
12963
      // Only scan for userinfo when the host is not an IP literal, so
12964
      // IPv4/IPv6 inputs skip the SIMD '@' check entirely.
12965
46.2k
      hit_fast_path =
12966
46.2k
          !skip_ip &&
12967
45.5k
          !(host_start != 0 && authority_has_at(p, host_start, n)) &&
12968
45.5k
          try_parse_simple_absolute(user_input, url);
12969
46.2k
    } else {
12970
4.45k
      hit_fast_path = try_parse_simple_relative(user_input, *base_url, url);
12971
4.45k
    }
12972
50.6k
    if (hit_fast_path) {
12973
5.52k
      if constexpr (result_type_is_ada_url_aggregator) {
12974
5.52k
        if (url.buffer.size() > max_input_length) [[unlikely]] {
12975
0
          url.is_valid = false;
12976
0
        }
12977
      } else {
12978
        // For a small absolute input, even worst-case normalization cannot
12979
        // exceed the limit: percent encoding expands at most 3x and IDNA at
12980
        // most 4.5x. Avoid traversing every stored component on the common
12981
        // default-limit path.
12982
        if ((base_url != nullptr ||
12983
             user_input.size() > static_cast<size_t>(max_input_length) / 5) &&
12984
            url.get_href_size() > max_input_length) [[unlikely]] {
12985
          url.is_valid = false;
12986
        }
12987
      }
12988
5.52k
      return url;
12989
5.52k
    }
12990
50.6k
  }
12991
12992
45.1k
  state state = state::SCHEME_START;
12993
12994
50.6k
  std::string tmp_buffer;
12995
50.6k
  std::string_view url_data;
12996
50.6k
  if (unicode::has_tabs_or_newline(user_input)) [[unlikely]] {
12997
495
    tmp_buffer = user_input;
12998
    // Optimization opportunity: Instead of copying and then pruning, we could
12999
    // just directly build the string from user_input.
13000
495
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
13001
495
    url_data = tmp_buffer;
13002
50.1k
  } else [[likely]] {
13003
50.1k
    url_data = user_input;
13004
50.1k
  }
13005
13006
  // Leading and trailing control characters are uncommon and easy to deal with
13007
  // (no performance concern).
13008
50.6k
  helpers::trim_c0_whitespace(url_data);
13009
13010
50.6k
  if constexpr (result_type_is_ada_url_aggregator && store_values) {
13011
    // Most of the time, we just need user_input.size().
13012
    // In some instances, we may need a bit more.
13013
    ///////////////////////////
13014
    // This is *very* important. This line should *not* be removed
13015
    // hastily. There are principled reasons why reserve is important
13016
    // for performance. If you have a benchmark with small inputs,
13017
    // it may not matter, but in other instances, it could.
13018
    ////
13019
    // This rounds up to the next power of two.
13020
    // We know that user_input.size() is in [0,
13021
    // std::numeric_limits<uint32_t>::max).
13022
50.6k
    uint32_t reserve_capacity =
13023
50.6k
        (0xFFFFFFFF >>
13024
50.6k
         helpers::leading_zeroes(uint32_t(1 | user_input.size()))) +
13025
50.6k
        1;
13026
50.6k
    url.reserve(reserve_capacity);
13027
50.6k
  }
13028
13029
  // Optimization opportunity. Most websites do not have fragment.
13030
50.6k
  std::optional<std::string_view> fragment = helpers::prune_hash(url_data);
13031
  // We add it last so that an implementation like ada::url_aggregator
13032
  // can append it last to its internal buffer, thus improving performance.
13033
13034
  // Here url_data no longer has its fragment.
13035
  // We are going to access the data from url_data (it is immutable).
13036
  // At any given time, we are pointing at byte 'input_position' in url_data.
13037
  // The input_position variable should range from 0 to input_size.
13038
  // It is illegal to access url_data at input_size.
13039
50.6k
  size_t input_position = 0;
13040
50.6k
  const size_t input_size = url_data.size();
13041
  // Keep running the following state machine by switching on state.
13042
  // If after a run pointer points to the EOF code point, go to the next step.
13043
  // Otherwise, increase pointer by 1 and continue with the state machine.
13044
  // We never decrement input_position.
13045
186k
  while (input_position <= input_size) {
13046
169k
    ada_log("In parsing at ", input_position, " out of ", input_size,
13047
169k
            " in state ", ada::to_string(state));
13048
169k
    switch (state) {
13049
45.1k
      case state::SCHEME_START: {
13050
45.1k
        ada_log("SCHEME_START ", helpers::substring(url_data, input_position));
13051
        // If c is an ASCII alpha, append c, lowercased, to buffer, and set
13052
        // state to scheme state.
13053
45.1k
        if ((input_position != input_size) &&
13054
23.7k
            checkers::is_alpha(url_data[input_position])) {
13055
22.2k
          state = state::SCHEME;
13056
22.2k
          input_position++;
13057
22.9k
        } else {
13058
          // Otherwise, if state override is not given, set state to no scheme
13059
          // state and decrease pointer by 1.
13060
22.9k
          state = state::NO_SCHEME;
13061
22.9k
        }
13062
45.1k
        break;
13063
0
      }
13064
22.2k
      case state::SCHEME: {
13065
22.2k
        ada_log("SCHEME ", helpers::substring(url_data, input_position));
13066
        // If c is an ASCII alphanumeric, U+002B (+), U+002D (-), or U+002E (.),
13067
        // append c, lowercased, to buffer.
13068
54.5k
        while ((input_position != input_size) &&
13069
54.1k
               (unicode::is_alnum_plus(url_data[input_position]))) {
13070
32.2k
          input_position++;
13071
32.2k
        }
13072
        // Otherwise, if c is U+003A (:), then:
13073
22.2k
        if ((input_position != input_size) &&
13074
21.9k
            (url_data[input_position] == ':')) {
13075
21.4k
          ada_log("SCHEME the scheme should be ",
13076
21.4k
                  url_data.substr(0, input_position));
13077
          if constexpr (result_type_is_ada_url) {
13078
            if (!url.parse_scheme(url_data.substr(0, input_position))) {
13079
              return url;
13080
            }
13081
21.4k
          } else {
13082
            // we pass the colon along instead of painfully adding it back.
13083
21.4k
            if (!url.parse_scheme_with_colon(
13084
21.4k
                    url_data.substr(0, input_position + 1))) {
13085
0
              return url;
13086
0
            }
13087
21.4k
          }
13088
21.4k
          ada_log("SCHEME the scheme is ", url.get_protocol());
13089
13090
          // If url's scheme is "file", then:
13091
          // NOLINTNEXTLINE(bugprone-branch-clone)
13092
21.4k
          if (url.type == scheme::type::FILE) {
13093
            // Set state to file state.
13094
2.68k
            state = state::FILE;
13095
2.68k
          }
13096
          // Otherwise, if url is special, base is non-null, and base's scheme
13097
          // is url's scheme: Note: Doing base_url->scheme is unsafe if base_url
13098
          // != nullptr is false.
13099
18.7k
          else if (url.is_special() && base_url != nullptr &&
13100
2.22k
                   base_url->type == url.type) {
13101
            // Set state to special relative or authority state.
13102
448
            state = state::SPECIAL_RELATIVE_OR_AUTHORITY;
13103
448
          }
13104
          // Otherwise, if url is special, set state to special authority
13105
          // slashes state.
13106
18.3k
          else if (url.is_special()) {
13107
12.8k
            state = state::SPECIAL_AUTHORITY_SLASHES;
13108
12.8k
          }
13109
          // Otherwise, if remaining starts with an U+002F (/), set state to
13110
          // path or authority state and increase pointer by 1.
13111
5.46k
          else if (input_position + 1 < input_size &&
13112
3.20k
                   url_data[input_position + 1] == '/') {
13113
2.24k
            state = state::PATH_OR_AUTHORITY;
13114
2.24k
            input_position++;
13115
2.24k
          }
13116
          // Otherwise, set url's path to the empty string and set state to
13117
          // opaque path state.
13118
3.22k
          else {
13119
3.22k
            state = state::OPAQUE_PATH;
13120
3.22k
          }
13121
21.4k
        }
13122
        // Otherwise, if state override is not given, set buffer to the empty
13123
        // string, state to no scheme state, and start over (from the first code
13124
        // point in input).
13125
790
        else {
13126
790
          state = state::NO_SCHEME;
13127
790
          input_position = 0;
13128
790
          break;
13129
790
        }
13130
21.4k
        input_position++;
13131
21.4k
        break;
13132
22.2k
      }
13133
23.7k
      case state::NO_SCHEME: {
13134
23.7k
        ada_log("NO_SCHEME ", helpers::substring(url_data, input_position));
13135
        // The fragment was pruned from url_data before the state machine ran,
13136
        // so 'c is U+0023 (#)' holds exactly when a fragment was found and
13137
        // nothing else remains in front of it.
13138
23.7k
        const bool c_is_hash =
13139
23.7k
            fragment.has_value() && input_position == input_size;
13140
        // If base is null, or base has an opaque path and c is not U+0023 (#),
13141
        // validation error, return failure.
13142
23.7k
        if (base_url == nullptr || (base_url->has_opaque_path && !c_is_hash)) {
13143
22.6k
          ada_log("NO_SCHEME validation error");
13144
22.6k
          url.is_valid = false;
13145
22.6k
          return url;
13146
22.6k
        }
13147
        // Otherwise, if base has an opaque path and c is U+0023 (#),
13148
        // set url's scheme to base's scheme, url's path to base's path, url's
13149
        // query to base's query, and set state to fragment state.
13150
1.09k
        else if (base_url->has_opaque_path && c_is_hash) {
13151
55
          ada_log("NO_SCHEME opaque base with fragment");
13152
55
          url.copy_scheme(*base_url);
13153
55
          url.has_opaque_path = base_url->has_opaque_path;
13154
13155
          if constexpr (result_type_is_ada_url) {
13156
            url.path = base_url->path;
13157
            url.query = base_url->query;
13158
55
          } else {
13159
55
            url.update_base_pathname(base_url->get_pathname());
13160
55
            if (base_url->has_search()) {
13161
              // get_search() returns "" for an empty query string (URL ends
13162
              // with '?'). update_base_search("") would incorrectly clear the
13163
              // query, so pass "?" to preserve the empty query distinction.
13164
24
              auto s = base_url->get_search();
13165
24
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13166
24
            }
13167
55
          }
13168
55
          url.update_unencoded_base_hash(*fragment);
13169
55
          enforce_max_input_length();
13170
55
          return url;
13171
55
        }
13172
        // Otherwise, if base's scheme is not "file", set state to relative
13173
        // state and decrease pointer by 1.
13174
        // NOLINTNEXTLINE(bugprone-branch-clone)
13175
1.04k
        else if (base_url->type != scheme::type::FILE) {
13176
777
          ada_log("NO_SCHEME non-file relative path");
13177
777
          state = state::RELATIVE_SCHEME;
13178
777
        }
13179
        // Otherwise, set state to file state and decrease pointer by 1.
13180
264
        else {
13181
264
          ada_log("NO_SCHEME file base type");
13182
264
          state = state::FILE;
13183
264
        }
13184
1.04k
        break;
13185
23.7k
      }
13186
14.1k
      case state::AUTHORITY: {
13187
14.1k
        ada_log("AUTHORITY ", helpers::substring(url_data, input_position));
13188
        // most URLs have no @. Having no @ tells us that we don't have to worry
13189
        // about AUTHORITY. Of course, we could have @ and still not have to
13190
        // worry about AUTHORITY.
13191
        // TODO: Instead of just collecting a bool, collect the location of the
13192
        // '@' and do something useful with it.
13193
        // TODO: We could do various processing early on, using a single pass
13194
        // over the string to collect information about it, e.g., telling us
13195
        // whether there is a @ and if so, where (or how many).
13196
13197
        // Check if url data contains an @.
13198
14.1k
        if (url_data.find('@', input_position) == std::string_view::npos) {
13199
12.8k
          state = state::HOST;
13200
12.8k
          break;
13201
12.8k
        }
13202
1.25k
        bool at_sign_seen{false};
13203
1.25k
        bool password_token_seen{false};
13204
        /**
13205
         * We expect something of the sort...
13206
         * https://user:pass@example.com:1234/foo/bar?baz#quux
13207
         * --------^
13208
         */
13209
8.18k
        do {
13210
8.18k
          std::string_view view = url_data.substr(input_position);
13211
          // The delimiters are @, /, ? \\.
13212
8.18k
          size_t location =
13213
8.18k
              url.is_special() ? helpers::find_authority_delimiter_special(view)
13214
8.18k
                               : helpers::find_authority_delimiter(view);
13215
8.18k
          std::string_view authority_view = view.substr(0, location);
13216
8.18k
          size_t end_of_authority = input_position + authority_view.size();
13217
          // If c is U+0040 (@), then:
13218
8.18k
          if ((end_of_authority != input_size) &&
13219
7.37k
              (url_data[end_of_authority] == '@')) {
13220
            // If atSignSeen is true, then prepend "%40" to buffer.
13221
6.92k
            if (at_sign_seen) {
13222
5.81k
              if (password_token_seen) {
13223
                if constexpr (result_type_is_ada_url) {
13224
                  url.password += "%40";
13225
2.47k
                } else {
13226
2.47k
                  url.append_base_password("%40");
13227
2.47k
                }
13228
3.34k
              } else {
13229
                if constexpr (result_type_is_ada_url) {
13230
                  url.username += "%40";
13231
3.34k
                } else {
13232
3.34k
                  url.append_base_username("%40");
13233
3.34k
                }
13234
3.34k
              }
13235
5.81k
            }
13236
13237
6.92k
            at_sign_seen = true;
13238
13239
6.92k
            if (!password_token_seen) {
13240
4.45k
              size_t password_token_location = authority_view.find(':');
13241
4.45k
              password_token_seen =
13242
4.45k
                  password_token_location != std::string_view::npos;
13243
13244
4.45k
              if constexpr (store_values) {
13245
4.45k
                if (!password_token_seen) {
13246
                  if constexpr (result_type_is_ada_url) {
13247
                    url.username += unicode::percent_encode(
13248
                        authority_view,
13249
                        character_sets::USERINFO_PERCENT_ENCODE);
13250
4.03k
                  } else {
13251
4.03k
                    url.append_base_username(unicode::percent_encode(
13252
4.03k
                        authority_view,
13253
4.03k
                        character_sets::USERINFO_PERCENT_ENCODE));
13254
4.03k
                  }
13255
4.03k
                } else {
13256
                  if constexpr (result_type_is_ada_url) {
13257
                    url.username += unicode::percent_encode(
13258
                        authority_view.substr(0, password_token_location),
13259
                        character_sets::USERINFO_PERCENT_ENCODE);
13260
                    url.password += unicode::percent_encode(
13261
                        authority_view.substr(password_token_location + 1),
13262
                        character_sets::USERINFO_PERCENT_ENCODE);
13263
426
                  } else {
13264
426
                    url.append_base_username(unicode::percent_encode(
13265
426
                        authority_view.substr(0, password_token_location),
13266
426
                        character_sets::USERINFO_PERCENT_ENCODE));
13267
426
                    url.append_base_password(unicode::percent_encode(
13268
426
                        authority_view.substr(password_token_location + 1),
13269
426
                        character_sets::USERINFO_PERCENT_ENCODE));
13270
426
                  }
13271
426
                }
13272
4.45k
              }
13273
4.45k
            } else if constexpr (store_values) {
13274
              if constexpr (result_type_is_ada_url) {
13275
                url.password += unicode::percent_encode(
13276
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE);
13277
2.47k
              } else {
13278
2.47k
                url.append_base_password(unicode::percent_encode(
13279
2.47k
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE));
13280
2.47k
              }
13281
2.47k
            }
13282
6.92k
          }
13283
          // Otherwise, if one of the following is true:
13284
          // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13285
          // - url is special and c is U+005C (\)
13286
1.25k
          else if (end_of_authority == input_size ||
13287
447
                   url_data[end_of_authority] == '/' ||
13288
39
                   url_data[end_of_authority] == '?' ||
13289
1.25k
                   (url.is_special() && url_data[end_of_authority] == '\\')) {
13290
            // If atSignSeen is true and authority_view is the empty string,
13291
            // validation error, return failure.
13292
1.25k
            if (at_sign_seen && authority_view.empty()) {
13293
350
              url.is_valid = false;
13294
350
              return url;
13295
350
            }
13296
909
            state = state::HOST;
13297
909
            break;
13298
1.25k
          }
13299
6.92k
          if (end_of_authority == input_size) {
13300
0
            if constexpr (store_values) {
13301
0
              if (fragment.has_value()) {
13302
0
                url.update_unencoded_base_hash(*fragment);
13303
0
              }
13304
0
            }
13305
0
            enforce_max_input_length();
13306
0
            return url;
13307
0
          }
13308
6.92k
          input_position = end_of_authority + 1;
13309
6.92k
        } while (true);
13310
13311
909
        break;
13312
1.25k
      }
13313
909
      case state::SPECIAL_RELATIVE_OR_AUTHORITY: {
13314
448
        ada_log("SPECIAL_RELATIVE_OR_AUTHORITY ",
13315
448
                helpers::substring(url_data, input_position));
13316
13317
        // If c is U+002F (/) and remaining starts with U+002F (/),
13318
        // then set state to special authority ignore slashes state and increase
13319
        // pointer by 1.
13320
448
        if (url_data.substr(input_position, 2) == "//") {
13321
360
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13322
360
          input_position += 2;
13323
360
        } else {
13324
          // Otherwise, validation error, set state to relative state and
13325
          // decrease pointer by 1.
13326
88
          state = state::RELATIVE_SCHEME;
13327
88
        }
13328
13329
448
        break;
13330
1.25k
      }
13331
2.24k
      case state::PATH_OR_AUTHORITY: {
13332
2.24k
        ada_log("PATH_OR_AUTHORITY ",
13333
2.24k
                helpers::substring(url_data, input_position));
13334
13335
        // If c is U+002F (/), then set state to authority state.
13336
2.24k
        if ((input_position != input_size) &&
13337
2.10k
            (url_data[input_position] == '/')) {
13338
914
          state = state::AUTHORITY;
13339
914
          input_position++;
13340
1.32k
        } else {
13341
          // Otherwise, set state to path state, and decrease pointer by 1.
13342
1.32k
          state = state::PATH;
13343
1.32k
        }
13344
13345
2.24k
        break;
13346
1.25k
      }
13347
865
      case state::RELATIVE_SCHEME: {
13348
865
        ada_log("RELATIVE_SCHEME ",
13349
865
                helpers::substring(url_data, input_position));
13350
13351
        // Set url's scheme to base's scheme.
13352
865
        url.copy_scheme(*base_url);
13353
13354
        // If c is U+002F (/), then set state to relative slash state.
13355
865
        if ((input_position != input_size) &&
13356
            // NOLINTNEXTLINE(bugprone-branch-clone)
13357
689
            (url_data[input_position] == '/')) {
13358
67
          ada_log(
13359
67
              "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
13360
67
              "slash state");
13361
67
          state = state::RELATIVE_SLASH;
13362
798
        } else if (url.is_special() && (input_position != input_size) &&
13363
508
                   (url_data[input_position] == '\\')) {
13364
          // Otherwise, if url is special and c is U+005C (\), validation error,
13365
          // set state to relative slash state.
13366
2
          ada_log(
13367
2
              "RELATIVE_SCHEME  if url is special and c is U+005C, validation "
13368
2
              "error, set state to relative slash state");
13369
2
          state = state::RELATIVE_SLASH;
13370
796
        } else {
13371
796
          ada_log("RELATIVE_SCHEME otherwise");
13372
          // Set url's username to base's username, url's password to base's
13373
          // password, url's host to base's host, url's port to base's port,
13374
          // url's path to a clone of base's path, and url's query to base's
13375
          // query.
13376
          if constexpr (result_type_is_ada_url) {
13377
            url.username = base_url->username;
13378
            url.password = base_url->password;
13379
            url.host = base_url->host;
13380
            url.port = base_url->port;
13381
            // cloning the base path includes cloning the has_opaque_path flag
13382
            url.has_opaque_path = base_url->has_opaque_path;
13383
            url.path = base_url->path;
13384
            url.query = base_url->query;
13385
796
          } else {
13386
796
            url.update_base_authority(base_url->get_href(),
13387
796
                                      base_url->get_components());
13388
796
            url.update_host_to_base_host(base_url->get_hostname());
13389
796
            url.update_base_port(base_url->retrieve_base_port());
13390
            // cloning the base path includes cloning the has_opaque_path flag
13391
796
            url.has_opaque_path = base_url->has_opaque_path;
13392
796
            url.update_base_pathname(base_url->get_pathname());
13393
796
            if (base_url->has_search()) {
13394
              // get_search() returns "" for an empty query string (URL ends
13395
              // with '?'). update_base_search("") would incorrectly clear the
13396
              // query, so pass "?" to preserve the empty query distinction.
13397
82
              auto s = base_url->get_search();
13398
82
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13399
82
            }
13400
796
          }
13401
13402
796
          url.has_opaque_path = base_url->has_opaque_path;
13403
13404
          // If c is U+003F (?), then set url's query to the empty string, and
13405
          // state to query state.
13406
796
          if ((input_position != input_size) &&
13407
620
              (url_data[input_position] == '?')) {
13408
73
            state = state::QUERY;
13409
73
          }
13410
          // Otherwise, if c is not the EOF code point:
13411
723
          else if (input_position != input_size) {
13412
            // Set url's query to null.
13413
547
            url.clear_search();
13414
            if constexpr (result_type_is_ada_url) {
13415
              // Shorten url's path.
13416
              helpers::shorten_path(url.path, url.type);
13417
547
            } else {
13418
547
              std::string_view path = url.get_pathname();
13419
547
              if (helpers::shorten_path(path, url.type)) {
13420
542
                url.update_base_pathname(std::move(std::string(path)));
13421
542
              }
13422
547
            }
13423
            // Set state to path state and decrease pointer by 1.
13424
547
            state = state::PATH;
13425
547
            break;
13426
547
          }
13427
796
        }
13428
318
        input_position++;
13429
318
        break;
13430
865
      }
13431
69
      case state::RELATIVE_SLASH: {
13432
69
        ada_log("RELATIVE_SLASH ",
13433
69
                helpers::substring(url_data, input_position));
13434
13435
        // If url is special and c is U+002F (/) or U+005C (\), then:
13436
        // NOLINTNEXTLINE(bugprone-branch-clone)
13437
69
        if (url.is_special() && (input_position != input_size) &&
13438
33
            (url_data[input_position] == '/' ||
13439
30
             url_data[input_position] == '\\')) {
13440
          // Set state to special authority ignore slashes state.
13441
5
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13442
5
        }
13443
        // Otherwise, if c is U+002F (/), then set state to authority state.
13444
64
        else if ((input_position != input_size) &&
13445
43
                 (url_data[input_position] == '/')) {
13446
5
          state = state::AUTHORITY;
13447
5
        }
13448
        // Otherwise, set
13449
        // - url's username to base's username,
13450
        // - url's password to base's password,
13451
        // - url's host to base's host,
13452
        // - url's port to base's port,
13453
        // - state to path state, and then, decrease pointer by 1.
13454
59
        else {
13455
          if constexpr (result_type_is_ada_url) {
13456
            url.username = base_url->username;
13457
            url.password = base_url->password;
13458
            url.host = base_url->host;
13459
            url.port = base_url->port;
13460
59
          } else {
13461
59
            url.update_base_authority(base_url->get_href(),
13462
59
                                      base_url->get_components());
13463
59
            url.update_host_to_base_host(base_url->get_hostname());
13464
59
            url.update_base_port(base_url->retrieve_base_port());
13465
59
          }
13466
59
          state = state::PATH;
13467
59
          break;
13468
59
        }
13469
13470
10
        input_position++;
13471
10
        break;
13472
69
      }
13473
12.8k
      case state::SPECIAL_AUTHORITY_SLASHES: {
13474
12.8k
        ada_log("SPECIAL_AUTHORITY_SLASHES ",
13475
12.8k
                helpers::substring(url_data, input_position));
13476
13477
        // If c is U+002F (/) and remaining starts with U+002F (/),
13478
        // then set state to special authority ignore slashes state and increase
13479
        // pointer by 1.
13480
12.8k
        if (url_data.substr(input_position, 2) == "//") {
13481
3.31k
          input_position += 2;
13482
3.31k
        }
13483
13484
12.8k
        [[fallthrough]];
13485
12.8k
      }
13486
13.2k
      case state::SPECIAL_AUTHORITY_IGNORE_SLASHES: {
13487
13.2k
        ada_log("SPECIAL_AUTHORITY_IGNORE_SLASHES ",
13488
13.2k
                helpers::substring(url_data, input_position));
13489
13490
        // If c is neither U+002F (/) nor U+005C (\), then set state to
13491
        // authority state and decrease pointer by 1.
13492
14.1k
        while ((input_position != input_size) &&
13493
14.0k
               ((url_data[input_position] == '/') ||
13494
13.5k
                (url_data[input_position] == '\\'))) {
13495
969
          input_position++;
13496
969
        }
13497
13.2k
        state = state::AUTHORITY;
13498
13499
13.2k
        break;
13500
12.8k
      }
13501
1.24k
      case state::QUERY: {
13502
1.24k
        ada_log("QUERY ", helpers::substring(url_data, input_position));
13503
1.24k
        if constexpr (store_values) {
13504
          // Let queryPercentEncodeSet be the special-query percent-encode set
13505
          // if url is special; otherwise the query percent-encode set.
13506
1.24k
          const uint8_t* query_percent_encode_set =
13507
1.24k
              url.is_special() ? character_sets::SPECIAL_QUERY_PERCENT_ENCODE
13508
1.24k
                               : character_sets::QUERY_PERCENT_ENCODE;
13509
13510
          // Percent-encode after encoding, with encoding, buffer, and
13511
          // queryPercentEncodeSet, and append the result to url's query.
13512
1.24k
          url.update_base_search(url_data.substr(input_position),
13513
1.24k
                                 query_percent_encode_set);
13514
1.24k
          ada_log("QUERY update_base_search completed ");
13515
1.24k
          if (fragment.has_value()) {
13516
350
            url.update_unencoded_base_hash(*fragment);
13517
350
          }
13518
1.24k
        }
13519
1.24k
        enforce_max_input_length();
13520
1.24k
        return url;
13521
12.8k
      }
13522
13.7k
      case state::HOST: {
13523
13.7k
        ada_log("HOST ", helpers::substring(url_data, input_position));
13524
13525
13.7k
        std::string_view host_view = url_data.substr(input_position);
13526
13.7k
        auto [location, found_colon] =
13527
13.7k
            helpers::get_host_delimiter_location(url.is_special(), host_view);
13528
13.7k
        input_position = (location != std::string_view::npos)
13529
13.7k
                             ? input_position + location
13530
13.7k
                             : input_size;
13531
        // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
13532
        // Note: the 'found_colon' value is true if and only if a colon was
13533
        // encountered while not inside brackets.
13534
13.7k
        if (found_colon) {
13535
          // If buffer is the empty string, validation error, return failure.
13536
          // Let host be the result of host parsing buffer with url is not
13537
          // special.
13538
2.59k
          ada_log("HOST parsing ", host_view);
13539
2.59k
          if (!url.parse_host(host_view)) {
13540
254
            return url;
13541
254
          }
13542
2.34k
          ada_log("HOST parsing results in ", url.get_hostname());
13543
          // Set url's host to host, buffer to the empty string, and state to
13544
          // port state.
13545
2.34k
          state = state::PORT;
13546
2.34k
          input_position++;
13547
2.34k
        }
13548
        // Otherwise, if one of the following is true:
13549
        // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13550
        // - url is special and c is U+005C (\)
13551
        // The get_host_delimiter_location function either brings us to
13552
        // the colon outside of the bracket, or to one of those characters.
13553
11.1k
        else {
13554
          // If url is special and host_view is the empty string, validation
13555
          // error, return failure.
13556
11.1k
          if (host_view.empty() && url.is_special()) {
13557
102
            url.is_valid = false;
13558
102
            return url;
13559
102
          }
13560
11.0k
          ada_log("HOST parsing ", host_view, " href=", url.get_href());
13561
          // Let host be the result of host parsing host_view with url is not
13562
          // special.
13563
11.0k
          if (host_view.empty()) {
13564
126
            url.update_base_hostname("");
13565
10.9k
          } else if (!url.parse_host(host_view)) {
13566
2.29k
            return url;
13567
2.29k
          }
13568
8.78k
          ada_log("HOST parsing results in ", url.get_hostname(),
13569
8.78k
                  " href=", url.get_href());
13570
13571
          // Set url's host to host, and state to path start state.
13572
8.78k
          state = state::PATH_START;
13573
8.78k
        }
13574
13575
11.1k
        break;
13576
13.7k
      }
13577
11.1k
      case state::OPAQUE_PATH: {
13578
3.22k
        ada_log("OPAQUE_PATH ", helpers::substring(url_data, input_position));
13579
        // Opaque path, query, and fragment are structurally always valid:
13580
        // the parser would just percent-encode whatever is there. When we
13581
        // are not storing values (can_parse), we can return immediately.
13582
        // We must set has_opaque_path = true before returning so that when
13583
        // this URL is used as an internal base inside can_parse, NO_SCHEME
13584
        // correctly rejects relative inputs against an opaque-path base
13585
        // (e.g. can_parse("", &"W:") must return false).
13586
        if constexpr (!store_values) {
13587
          url.has_opaque_path = true;
13588
          return url;
13589
        }
13590
3.22k
        std::string_view view = url_data.substr(input_position);
13591
        // If c is U+003F (?), then set url's query to the empty string and
13592
        // state to query state.
13593
3.22k
        size_t location = view.find('?');
13594
3.22k
        if (location != std::string_view::npos) {
13595
253
          view.remove_suffix(view.size() - location);
13596
253
          state = state::QUERY;
13597
253
          input_position += location + 1;
13598
2.97k
        } else {
13599
2.97k
          input_position = input_size + 1;
13600
2.97k
        }
13601
3.22k
        url.has_opaque_path = true;
13602
13603
        // This is a really unlikely scenario in real world. We should not seek
13604
        // to optimize it.
13605
3.22k
        if (view.ends_with(' ')) {
13606
116
          std::string modified_view =
13607
116
              std::string(view.substr(0, view.size() - 1)) + "%20";
13608
116
          url.update_base_pathname(unicode::percent_encode(
13609
116
              modified_view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13610
3.11k
        } else {
13611
3.11k
          url.update_base_pathname(unicode::percent_encode(
13612
3.11k
              view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13613
3.11k
        }
13614
3.22k
        break;
13615
13.7k
      }
13616
2.34k
      case state::PORT: {
13617
2.34k
        ada_log("PORT ", helpers::substring(url_data, input_position));
13618
2.34k
        std::string_view port_view = url_data.substr(input_position);
13619
2.34k
        input_position += url.parse_port(port_view, true);
13620
2.34k
        if (!url.is_valid) {
13621
132
          return url;
13622
132
        }
13623
2.21k
        state = state::PATH_START;
13624
2.21k
        [[fallthrough]];
13625
2.21k
      }
13626
12.9k
      case state::PATH_START: {
13627
12.9k
        ada_log("PATH_START ", helpers::substring(url_data, input_position));
13628
        // Path, query, and fragment are structurally always valid: the
13629
        // parser would just percent-encode whatever is there. When we are
13630
        // not storing values (can_parse), we can return immediately since
13631
        // no subsequent state can invalidate the URL.
13632
        if constexpr (!store_values) {
13633
          return url;
13634
        }
13635
13636
        // If url is special, then:
13637
12.9k
        if (url.is_special()) {
13638
          // Set state to path state.
13639
12.1k
          state = state::PATH;
13640
13641
          // Optimization: Avoiding going into PATH state improves the
13642
          // performance of urls ending with /.
13643
12.1k
          if (input_position == input_size) {
13644
6.43k
            if constexpr (store_values) {
13645
6.43k
              url.update_base_pathname("/");
13646
6.43k
              if (fragment.has_value()) {
13647
173
                url.update_unencoded_base_hash(*fragment);
13648
173
              }
13649
6.43k
            }
13650
6.43k
            enforce_max_input_length();
13651
6.43k
            return url;
13652
6.43k
          }
13653
          // If c is neither U+002F (/) nor U+005C (\), then decrease pointer
13654
          // by 1. We know that (input_position == input_size) is impossible
13655
          // here, because of the previous if-check.
13656
5.72k
          if ((url_data[input_position] != '/') &&
13657
443
              (url_data[input_position] != '\\')) {
13658
430
            break;
13659
430
          }
13660
5.72k
        }
13661
        // Otherwise, if state override is not given and c is U+003F (?),
13662
        // set url's query to the empty string and state to query state.
13663
781
        else if ((input_position != input_size) &&
13664
170
                 (url_data[input_position] == '?')) {
13665
61
          state = state::QUERY;
13666
61
        }
13667
        // Otherwise, if c is not the EOF code point:
13668
720
        else if (input_position != input_size) {
13669
          // Set state to path state.
13670
109
          state = state::PATH;
13671
13672
          // If c is not U+002F (/), then decrease pointer by 1.
13673
109
          if (url_data[input_position] != '/') {
13674
0
            break;
13675
0
          }
13676
109
        }
13677
13678
6.07k
        input_position++;
13679
6.07k
        break;
13680
12.9k
      }
13681
8.50k
      case state::PATH: {
13682
8.50k
        ada_log("PATH ", helpers::substring(url_data, input_position));
13683
        // Path, query, and fragment are structurally always valid: the
13684
        // parser would just percent-encode whatever is there. When we are
13685
        // not storing values (can_parse), we can return immediately since
13686
        // no subsequent state can invalidate the URL.
13687
        if constexpr (!store_values) {
13688
          return url;
13689
        }
13690
8.50k
        std::string_view view = url_data.substr(input_position);
13691
13692
        // Most time, we do not need percent encoding.
13693
        // Furthermore, we can immediately locate the '?'.
13694
8.50k
        size_t locofquestionmark = view.find('?');
13695
8.50k
        if (locofquestionmark != std::string_view::npos) {
13696
853
          state = state::QUERY;
13697
853
          view.remove_suffix(view.size() - locofquestionmark);
13698
853
          input_position += locofquestionmark + 1;
13699
7.65k
        } else {
13700
7.65k
          input_position = input_size + 1;
13701
7.65k
        }
13702
8.50k
        if constexpr (store_values) {
13703
          if constexpr (result_type_is_ada_url) {
13704
            helpers::parse_prepared_path(view, url.type, url.path);
13705
8.50k
          } else {
13706
8.50k
            url.consume_prepared_path(view);
13707
8.50k
            ADA_ASSERT_TRUE(url.validate());
13708
8.50k
          }
13709
8.50k
        }
13710
8.50k
        break;
13711
12.9k
      }
13712
2.25k
      case state::FILE_SLASH: {
13713
2.25k
        ada_log("FILE_SLASH ", helpers::substring(url_data, input_position));
13714
13715
        // If c is U+002F (/) or U+005C (\), then:
13716
2.25k
        if ((input_position != input_size) &&
13717
2.18k
            (url_data[input_position] == '/' ||
13718
2.14k
             url_data[input_position] == '\\')) {
13719
2.14k
          ada_log("FILE_SLASH c is U+002F or U+005C");
13720
          // Set state to file host state.
13721
2.14k
          state = state::FILE_HOST;
13722
2.14k
          input_position++;
13723
2.14k
        } else {
13724
112
          ada_log("FILE_SLASH otherwise");
13725
          // If base is non-null and base's scheme is "file", then:
13726
          // Note: it is unsafe to do base_url->scheme unless you know that
13727
          // base_url_has_value() is true.
13728
112
          if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13729
            // Set url's host to base's host.
13730
            if constexpr (result_type_is_ada_url) {
13731
              url.host = base_url->host;
13732
84
            } else {
13733
84
              url.update_host_to_base_host(base_url->get_host());
13734
84
            }
13735
            // If the code point substring from pointer to the end of input does
13736
            // not start with a Windows drive letter and base's path[0] is a
13737
            // normalized Windows drive letter, then append base's path[0] to
13738
            // url's path.
13739
84
            if (!base_url->get_pathname().empty()) {
13740
84
              if (!checkers::is_windows_drive_letter(
13741
84
                      url_data.substr(input_position))) {
13742
79
                std::string_view first_base_url_path =
13743
79
                    base_url->get_pathname().substr(1);
13744
79
                size_t loc = first_base_url_path.find('/');
13745
79
                if (loc != std::string_view::npos) {
13746
12
                  helpers::resize(first_base_url_path, loc);
13747
12
                }
13748
79
                if (checkers::is_normalized_windows_drive_letter(
13749
79
                        first_base_url_path)) {
13750
                  if constexpr (result_type_is_ada_url) {
13751
                    url.path += '/';
13752
                    url.path += first_base_url_path;
13753
3
                  } else {
13754
3
                    url.append_base_pathname(
13755
3
                        helpers::concat("/", first_base_url_path));
13756
3
                  }
13757
3
                }
13758
79
              }
13759
84
            }
13760
84
          }
13761
13762
          // Set state to path state, and decrease pointer by 1.
13763
112
          state = state::PATH;
13764
112
        }
13765
13766
2.25k
        break;
13767
12.9k
      }
13768
2.14k
      case state::FILE_HOST: {
13769
2.14k
        ada_log("FILE_HOST ", helpers::substring(url_data, input_position));
13770
2.14k
        std::string_view view = url_data.substr(input_position);
13771
13772
2.14k
        size_t location = view.find_first_of("/\\?");
13773
2.14k
        std::string_view file_host_buffer = view.substr(
13774
2.14k
            0, (location != std::string_view::npos) ? location : view.size());
13775
13776
2.14k
        if (checkers::is_windows_drive_letter(file_host_buffer)) {
13777
12
          state = state::PATH;
13778
2.13k
        } else if (file_host_buffer.empty()) {
13779
          // Set url's host to the empty string.
13780
          if constexpr (result_type_is_ada_url) {
13781
            url.host = "";
13782
274
          } else {
13783
274
            url.update_base_hostname("");
13784
274
          }
13785
          // Set state to path start state.
13786
274
          state = state::PATH_START;
13787
1.85k
        } else {
13788
1.85k
          size_t consumed_bytes = file_host_buffer.size();
13789
1.85k
          input_position += consumed_bytes;
13790
          // Let host be the result of host parsing buffer with url is not
13791
          // special.
13792
1.85k
          if (!url.parse_host(file_host_buffer)) {
13793
191
            return url;
13794
191
          }
13795
13796
          if constexpr (result_type_is_ada_url) {
13797
            // If host is "localhost", then set host to the empty string.
13798
            if (url.host.has_value() && url.host.value() == "localhost") {
13799
              url.host = "";
13800
            }
13801
1.66k
          } else {
13802
1.66k
            if (url.get_hostname() == "localhost") {
13803
12
              url.update_base_hostname("");
13804
12
            }
13805
1.66k
          }
13806
13807
          // Set buffer to the empty string and state to path start state.
13808
1.66k
          state = state::PATH_START;
13809
1.66k
        }
13810
13811
1.95k
        break;
13812
2.14k
      }
13813
2.95k
      case state::FILE: {
13814
2.95k
        ada_log("FILE ", helpers::substring(url_data, input_position));
13815
2.95k
        std::string_view file_view = url_data.substr(input_position);
13816
13817
2.95k
        url.set_protocol_as_file();
13818
        if constexpr (result_type_is_ada_url) {
13819
          // Set url's host to the empty string.
13820
          url.host = "";
13821
2.95k
        } else {
13822
2.95k
          url.update_base_hostname("");
13823
2.95k
        }
13824
        // If c is U+002F (/) or U+005C (\), then:
13825
2.95k
        if (input_position != input_size &&
13826
2.81k
            (url_data[input_position] == '/' ||
13827
2.25k
             url_data[input_position] == '\\')) {
13828
2.25k
          ada_log("FILE c is U+002F or U+005C");
13829
          // Set state to file slash state.
13830
2.25k
          state = state::FILE_SLASH;
13831
2.25k
        }
13832
        // Otherwise, if base is non-null and base's scheme is "file":
13833
693
        else if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13834
          // Set url's host to base's host, url's path to a clone of base's
13835
          // path, and url's query to base's query.
13836
199
          ada_log("FILE base non-null");
13837
          if constexpr (result_type_is_ada_url) {
13838
            url.host = base_url->host;
13839
            url.path = base_url->path;
13840
            url.query = base_url->query;
13841
199
          } else {
13842
199
            url.update_host_to_base_host(base_url->get_hostname());
13843
199
            url.update_base_pathname(base_url->get_pathname());
13844
199
            if (base_url->has_search()) {
13845
              // get_search() returns "" for an empty query string (URL ends
13846
              // with '?'). update_base_search("") would incorrectly clear the
13847
              // query, so pass "?" to preserve the empty query distinction.
13848
62
              auto s = base_url->get_search();
13849
62
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13850
62
            }
13851
199
          }
13852
199
          url.has_opaque_path = base_url->has_opaque_path;
13853
13854
          // If c is U+003F (?), then set url's query to the empty string and
13855
          // state to query state.
13856
199
          if (input_position != input_size && url_data[input_position] == '?') {
13857
9
            state = state::QUERY;
13858
9
          }
13859
          // Otherwise, if c is not the EOF code point:
13860
190
          else if (input_position != input_size) {
13861
            // Set url's query to null.
13862
127
            url.clear_search();
13863
            // If the code point substring from pointer to the end of input does
13864
            // not start with a Windows drive letter, then shorten url's path.
13865
127
            if (!checkers::is_windows_drive_letter(file_view)) {
13866
              if constexpr (result_type_is_ada_url) {
13867
                helpers::shorten_path(url.path, url.type);
13868
107
              } else {
13869
107
                std::string_view path = url.get_pathname();
13870
107
                if (helpers::shorten_path(path, url.type)) {
13871
104
                  url.update_base_pathname(std::move(std::string(path)));
13872
104
                }
13873
107
              }
13874
107
            }
13875
            // Otherwise:
13876
20
            else {
13877
              // Set url's path to an empty list.
13878
20
              url.clear_pathname();
13879
20
            }
13880
13881
            // Set state to path state and decrease pointer by 1.
13882
127
            state = state::PATH;
13883
127
            break;
13884
127
          }
13885
199
        }
13886
        // Otherwise, set state to path state, and decrease pointer by 1.
13887
494
        else {
13888
494
          ada_log("FILE go to path");
13889
494
          state = state::PATH;
13890
494
          break;
13891
494
        }
13892
13893
2.32k
        input_position++;
13894
2.32k
        break;
13895
2.95k
      }
13896
0
      default:
13897
0
        unreachable();
13898
169k
    }
13899
169k
  }
13900
17.0k
  if constexpr (store_values) {
13901
17.0k
    if (fragment.has_value()) {
13902
446
      url.update_unencoded_base_hash(*fragment);
13903
446
    }
13904
17.0k
  }
13905
17.0k
  enforce_max_input_length();
13906
17.0k
  return url;
13907
50.6k
}
ada::url_aggregator ada::parser::parse_url_impl<ada::url_aggregator, false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const*)
Line
Count
Source
12886
31.0k
                           const result_type* base_url) {
12887
  // We can specialize the implementation per type.
12888
  // Important: result_type_is_ada_url is evaluated at *compile time*. This
12889
  // means that doing if constexpr(result_type_is_ada_url) { something } else {
12890
  // something else } is free (at runtime). This means that ada::url_aggregator
12891
  // and ada::url **do not have to support the exact same API**.
12892
31.0k
  constexpr bool result_type_is_ada_url = std::is_same_v<url, result_type>;
12893
31.0k
  constexpr bool result_type_is_ada_url_aggregator =
12894
31.0k
      std::is_same_v<url_aggregator, result_type>;
12895
31.0k
  static_assert(result_type_is_ada_url ||
12896
31.0k
                result_type_is_ada_url_aggregator);  // We don't support
12897
                                                     // anything else for now.
12898
12899
31.0k
  ada_log("ada::parser::parse_url('", user_input, "' [", user_input.size(),
12900
31.0k
          " bytes],", (base_url != nullptr ? base_url->to_string() : "null"),
12901
31.0k
          ")");
12902
12903
31.0k
  result_type url{};
12904
12905
31.0k
  const uint32_t max_input_length = ada::get_max_input_length();
12906
12907
  // Normalization (percent-encoding, IDNA) can push the serialized URL past
12908
  // max_input_length even when the input fit under it. The check at the end of
12909
  // the state machine covers URLs that run to completion, but several states
12910
  // return early after appending a query or fragment, so run the same check on
12911
  // those exits too. Without this, a query- or fragment-terminated URL such as
12912
  // file://x/?<...> or https://user@x/?<...> is accepted while the equivalent
12913
  // https://x/?<...> that takes the absolute fast path is rejected.
12914
31.0k
  const auto enforce_max_input_length = [&]() {
12915
31.0k
    if constexpr (store_values) {
12916
31.0k
      if (url.is_valid) {
12917
31.0k
        if constexpr (result_type_is_ada_url_aggregator) {
12918
31.0k
          if (url.buffer.size() > max_input_length) [[unlikely]] {
12919
31.0k
            url.is_valid = false;
12920
31.0k
          }
12921
31.0k
        } else {
12922
31.0k
          if (url.get_href_size() > max_input_length) [[unlikely]] {
12923
31.0k
            url.is_valid = false;
12924
31.0k
          }
12925
31.0k
        }
12926
31.0k
      }
12927
31.0k
    }
12928
31.0k
  };
12929
12930
  // We refuse to parse URL strings that exceed the maximum input length.
12931
  // By default, this is 4GB but can be configured via
12932
  // ada::set_max_input_length().
12933
31.0k
  if (user_input.size() > max_input_length) [[unlikely]] {
12934
0
    url.is_valid = false;
12935
0
  }
12936
  // Going forward, user_input.size() is in [0,
12937
  // std::numeric_limits<uint32_t>::max). If we are provided with an invalid
12938
  // base, or the optional_url was invalid, we must return.
12939
31.0k
  if (base_url != nullptr) {
12940
4.45k
    url.is_valid &= base_url->is_valid;
12941
4.45k
  }
12942
31.0k
  if (!url.is_valid) {
12943
0
    return url;
12944
0
  }
12945
12946
  // Simple absolute / relative fast paths (before tabs/newline scan).
12947
  if constexpr (store_values) {
12948
    bool hit_fast_path = false;
12949
    if (base_url == nullptr) {
12950
      // IPv4/IPv6 and userinfo miss the fast path. Skip the never_inline
12951
      // call so those URLs (including SetHref) do not pay for a miss.
12952
      const auto* p = reinterpret_cast<const uint8_t*>(user_input.data());
12953
      const size_t n = user_input.size();
12954
      size_t host_start = 0;
12955
      if (n >= 8 && p[4] == ':' && p[5] == '/' && p[6] == '/') {
12956
        host_start = 7;
12957
      } else if (n >= 9 && p[5] == ':' && p[6] == '/' && p[7] == '/') {
12958
        host_start = 8;
12959
      }
12960
      const uint8_t host_first = host_start != 0 ? p[host_start] : 0;
12961
      const bool skip_ip =
12962
          host_first == '[' || (host_first >= '0' && host_first <= '9');
12963
      // Only scan for userinfo when the host is not an IP literal, so
12964
      // IPv4/IPv6 inputs skip the SIMD '@' check entirely.
12965
      hit_fast_path =
12966
          !skip_ip &&
12967
          !(host_start != 0 && authority_has_at(p, host_start, n)) &&
12968
          try_parse_simple_absolute(user_input, url);
12969
    } else {
12970
      hit_fast_path = try_parse_simple_relative(user_input, *base_url, url);
12971
    }
12972
    if (hit_fast_path) {
12973
      if constexpr (result_type_is_ada_url_aggregator) {
12974
        if (url.buffer.size() > max_input_length) [[unlikely]] {
12975
          url.is_valid = false;
12976
        }
12977
      } else {
12978
        // For a small absolute input, even worst-case normalization cannot
12979
        // exceed the limit: percent encoding expands at most 3x and IDNA at
12980
        // most 4.5x. Avoid traversing every stored component on the common
12981
        // default-limit path.
12982
        if ((base_url != nullptr ||
12983
             user_input.size() > static_cast<size_t>(max_input_length) / 5) &&
12984
            url.get_href_size() > max_input_length) [[unlikely]] {
12985
          url.is_valid = false;
12986
        }
12987
      }
12988
      return url;
12989
    }
12990
  }
12991
12992
31.0k
  state state = state::SCHEME_START;
12993
12994
31.0k
  std::string tmp_buffer;
12995
31.0k
  std::string_view url_data;
12996
31.0k
  if (unicode::has_tabs_or_newline(user_input)) [[unlikely]] {
12997
379
    tmp_buffer = user_input;
12998
    // Optimization opportunity: Instead of copying and then pruning, we could
12999
    // just directly build the string from user_input.
13000
379
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
13001
379
    url_data = tmp_buffer;
13002
30.6k
  } else [[likely]] {
13003
30.6k
    url_data = user_input;
13004
30.6k
  }
13005
13006
  // Leading and trailing control characters are uncommon and easy to deal with
13007
  // (no performance concern).
13008
31.0k
  helpers::trim_c0_whitespace(url_data);
13009
13010
  if constexpr (result_type_is_ada_url_aggregator && store_values) {
13011
    // Most of the time, we just need user_input.size().
13012
    // In some instances, we may need a bit more.
13013
    ///////////////////////////
13014
    // This is *very* important. This line should *not* be removed
13015
    // hastily. There are principled reasons why reserve is important
13016
    // for performance. If you have a benchmark with small inputs,
13017
    // it may not matter, but in other instances, it could.
13018
    ////
13019
    // This rounds up to the next power of two.
13020
    // We know that user_input.size() is in [0,
13021
    // std::numeric_limits<uint32_t>::max).
13022
    uint32_t reserve_capacity =
13023
        (0xFFFFFFFF >>
13024
         helpers::leading_zeroes(uint32_t(1 | user_input.size()))) +
13025
        1;
13026
    url.reserve(reserve_capacity);
13027
  }
13028
13029
  // Optimization opportunity. Most websites do not have fragment.
13030
31.0k
  std::optional<std::string_view> fragment = helpers::prune_hash(url_data);
13031
  // We add it last so that an implementation like ada::url_aggregator
13032
  // can append it last to its internal buffer, thus improving performance.
13033
13034
  // Here url_data no longer has its fragment.
13035
  // We are going to access the data from url_data (it is immutable).
13036
  // At any given time, we are pointing at byte 'input_position' in url_data.
13037
  // The input_position variable should range from 0 to input_size.
13038
  // It is illegal to access url_data at input_size.
13039
31.0k
  size_t input_position = 0;
13040
31.0k
  const size_t input_size = url_data.size();
13041
  // Keep running the following state machine by switching on state.
13042
  // If after a run pointer points to the EOF code point, go to the next step.
13043
  // Otherwise, increase pointer by 1 and continue with the state machine.
13044
  // We never decrement input_position.
13045
133k
  while (input_position <= input_size) {
13046
133k
    ada_log("In parsing at ", input_position, " out of ", input_size,
13047
133k
            " in state ", ada::to_string(state));
13048
133k
    switch (state) {
13049
31.0k
      case state::SCHEME_START: {
13050
31.0k
        ada_log("SCHEME_START ", helpers::substring(url_data, input_position));
13051
        // If c is an ASCII alpha, append c, lowercased, to buffer, and set
13052
        // state to scheme state.
13053
31.0k
        if ((input_position != input_size) &&
13054
22.6k
            checkers::is_alpha(url_data[input_position])) {
13055
21.8k
          state = state::SCHEME;
13056
21.8k
          input_position++;
13057
21.8k
        } else {
13058
          // Otherwise, if state override is not given, set state to no scheme
13059
          // state and decrease pointer by 1.
13060
9.15k
          state = state::NO_SCHEME;
13061
9.15k
        }
13062
31.0k
        break;
13063
0
      }
13064
21.8k
      case state::SCHEME: {
13065
21.8k
        ada_log("SCHEME ", helpers::substring(url_data, input_position));
13066
        // If c is an ASCII alphanumeric, U+002B (+), U+002D (-), or U+002E (.),
13067
        // append c, lowercased, to buffer.
13068
54.9k
        while ((input_position != input_size) &&
13069
54.5k
               (unicode::is_alnum_plus(url_data[input_position]))) {
13070
33.0k
          input_position++;
13071
33.0k
        }
13072
        // Otherwise, if c is U+003A (:), then:
13073
21.8k
        if ((input_position != input_size) &&
13074
21.5k
            (url_data[input_position] == ':')) {
13075
21.2k
          ada_log("SCHEME the scheme should be ",
13076
21.2k
                  url_data.substr(0, input_position));
13077
          if constexpr (result_type_is_ada_url) {
13078
            if (!url.parse_scheme(url_data.substr(0, input_position))) {
13079
              return url;
13080
            }
13081
21.2k
          } else {
13082
            // we pass the colon along instead of painfully adding it back.
13083
21.2k
            if (!url.parse_scheme_with_colon(
13084
21.2k
                    url_data.substr(0, input_position + 1))) {
13085
0
              return url;
13086
0
            }
13087
21.2k
          }
13088
21.2k
          ada_log("SCHEME the scheme is ", url.get_protocol());
13089
13090
          // If url's scheme is "file", then:
13091
          // NOLINTNEXTLINE(bugprone-branch-clone)
13092
21.2k
          if (url.type == scheme::type::FILE) {
13093
            // Set state to file state.
13094
2.68k
            state = state::FILE;
13095
2.68k
          }
13096
          // Otherwise, if url is special, base is non-null, and base's scheme
13097
          // is url's scheme: Note: Doing base_url->scheme is unsafe if base_url
13098
          // != nullptr is false.
13099
18.5k
          else if (url.is_special() && base_url != nullptr &&
13100
2.22k
                   base_url->type == url.type) {
13101
            // Set state to special relative or authority state.
13102
448
            state = state::SPECIAL_RELATIVE_OR_AUTHORITY;
13103
448
          }
13104
          // Otherwise, if url is special, set state to special authority
13105
          // slashes state.
13106
18.1k
          else if (url.is_special()) {
13107
12.6k
            state = state::SPECIAL_AUTHORITY_SLASHES;
13108
12.6k
          }
13109
          // Otherwise, if remaining starts with an U+002F (/), set state to
13110
          // path or authority state and increase pointer by 1.
13111
5.46k
          else if (input_position + 1 < input_size &&
13112
3.20k
                   url_data[input_position + 1] == '/') {
13113
2.24k
            state = state::PATH_OR_AUTHORITY;
13114
2.24k
            input_position++;
13115
2.24k
          }
13116
          // Otherwise, set url's path to the empty string and set state to
13117
          // opaque path state.
13118
3.22k
          else {
13119
3.22k
            state = state::OPAQUE_PATH;
13120
3.22k
          }
13121
21.2k
        }
13122
        // Otherwise, if state override is not given, set buffer to the empty
13123
        // string, state to no scheme state, and start over (from the first code
13124
        // point in input).
13125
623
        else {
13126
623
          state = state::NO_SCHEME;
13127
623
          input_position = 0;
13128
623
          break;
13129
623
        }
13130
21.2k
        input_position++;
13131
21.2k
        break;
13132
21.8k
      }
13133
9.77k
      case state::NO_SCHEME: {
13134
9.77k
        ada_log("NO_SCHEME ", helpers::substring(url_data, input_position));
13135
        // The fragment was pruned from url_data before the state machine ran,
13136
        // so 'c is U+0023 (#)' holds exactly when a fragment was found and
13137
        // nothing else remains in front of it.
13138
9.77k
        const bool c_is_hash =
13139
9.77k
            fragment.has_value() && input_position == input_size;
13140
        // If base is null, or base has an opaque path and c is not U+0023 (#),
13141
        // validation error, return failure.
13142
9.77k
        if (base_url == nullptr || (base_url->has_opaque_path && !c_is_hash)) {
13143
8.42k
          ada_log("NO_SCHEME validation error");
13144
8.42k
          url.is_valid = false;
13145
8.42k
          return url;
13146
8.42k
        }
13147
        // Otherwise, if base has an opaque path and c is U+0023 (#),
13148
        // set url's scheme to base's scheme, url's path to base's path, url's
13149
        // query to base's query, and set state to fragment state.
13150
1.35k
        else if (base_url->has_opaque_path && c_is_hash) {
13151
55
          ada_log("NO_SCHEME opaque base with fragment");
13152
55
          url.copy_scheme(*base_url);
13153
55
          url.has_opaque_path = base_url->has_opaque_path;
13154
13155
          if constexpr (result_type_is_ada_url) {
13156
            url.path = base_url->path;
13157
            url.query = base_url->query;
13158
55
          } else {
13159
55
            url.update_base_pathname(base_url->get_pathname());
13160
55
            if (base_url->has_search()) {
13161
              // get_search() returns "" for an empty query string (URL ends
13162
              // with '?'). update_base_search("") would incorrectly clear the
13163
              // query, so pass "?" to preserve the empty query distinction.
13164
0
              auto s = base_url->get_search();
13165
0
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13166
0
            }
13167
55
          }
13168
55
          url.update_unencoded_base_hash(*fragment);
13169
55
          enforce_max_input_length();
13170
55
          return url;
13171
55
        }
13172
        // Otherwise, if base's scheme is not "file", set state to relative
13173
        // state and decrease pointer by 1.
13174
        // NOLINTNEXTLINE(bugprone-branch-clone)
13175
1.30k
        else if (base_url->type != scheme::type::FILE) {
13176
1.03k
          ada_log("NO_SCHEME non-file relative path");
13177
1.03k
          state = state::RELATIVE_SCHEME;
13178
1.03k
        }
13179
        // Otherwise, set state to file state and decrease pointer by 1.
13180
264
        else {
13181
264
          ada_log("NO_SCHEME file base type");
13182
264
          state = state::FILE;
13183
264
        }
13184
1.30k
        break;
13185
9.77k
      }
13186
13.9k
      case state::AUTHORITY: {
13187
13.9k
        ada_log("AUTHORITY ", helpers::substring(url_data, input_position));
13188
        // most URLs have no @. Having no @ tells us that we don't have to worry
13189
        // about AUTHORITY. Of course, we could have @ and still not have to
13190
        // worry about AUTHORITY.
13191
        // TODO: Instead of just collecting a bool, collect the location of the
13192
        // '@' and do something useful with it.
13193
        // TODO: We could do various processing early on, using a single pass
13194
        // over the string to collect information about it, e.g., telling us
13195
        // whether there is a @ and if so, where (or how many).
13196
13197
        // Check if url data contains an @.
13198
13.9k
        if (url_data.find('@', input_position) == std::string_view::npos) {
13199
12.6k
          state = state::HOST;
13200
12.6k
          break;
13201
12.6k
        }
13202
1.28k
        bool at_sign_seen{false};
13203
1.28k
        bool password_token_seen{false};
13204
        /**
13205
         * We expect something of the sort...
13206
         * https://user:pass@example.com:1234/foo/bar?baz#quux
13207
         * --------^
13208
         */
13209
8.21k
        do {
13210
8.21k
          std::string_view view = url_data.substr(input_position);
13211
          // The delimiters are @, /, ? \\.
13212
8.21k
          size_t location =
13213
8.21k
              url.is_special() ? helpers::find_authority_delimiter_special(view)
13214
8.21k
                               : helpers::find_authority_delimiter(view);
13215
8.21k
          std::string_view authority_view = view.substr(0, location);
13216
8.21k
          size_t end_of_authority = input_position + authority_view.size();
13217
          // If c is U+0040 (@), then:
13218
8.21k
          if ((end_of_authority != input_size) &&
13219
7.39k
              (url_data[end_of_authority] == '@')) {
13220
            // If atSignSeen is true, then prepend "%40" to buffer.
13221
6.92k
            if (at_sign_seen) {
13222
5.81k
              if (password_token_seen) {
13223
                if constexpr (result_type_is_ada_url) {
13224
                  url.password += "%40";
13225
2.47k
                } else {
13226
2.47k
                  url.append_base_password("%40");
13227
2.47k
                }
13228
3.34k
              } else {
13229
                if constexpr (result_type_is_ada_url) {
13230
                  url.username += "%40";
13231
3.34k
                } else {
13232
3.34k
                  url.append_base_username("%40");
13233
3.34k
                }
13234
3.34k
              }
13235
5.81k
            }
13236
13237
6.92k
            at_sign_seen = true;
13238
13239
6.92k
            if (!password_token_seen) {
13240
4.45k
              size_t password_token_location = authority_view.find(':');
13241
4.45k
              password_token_seen =
13242
4.45k
                  password_token_location != std::string_view::npos;
13243
13244
              if constexpr (store_values) {
13245
                if (!password_token_seen) {
13246
                  if constexpr (result_type_is_ada_url) {
13247
                    url.username += unicode::percent_encode(
13248
                        authority_view,
13249
                        character_sets::USERINFO_PERCENT_ENCODE);
13250
                  } else {
13251
                    url.append_base_username(unicode::percent_encode(
13252
                        authority_view,
13253
                        character_sets::USERINFO_PERCENT_ENCODE));
13254
                  }
13255
                } else {
13256
                  if constexpr (result_type_is_ada_url) {
13257
                    url.username += unicode::percent_encode(
13258
                        authority_view.substr(0, password_token_location),
13259
                        character_sets::USERINFO_PERCENT_ENCODE);
13260
                    url.password += unicode::percent_encode(
13261
                        authority_view.substr(password_token_location + 1),
13262
                        character_sets::USERINFO_PERCENT_ENCODE);
13263
                  } else {
13264
                    url.append_base_username(unicode::percent_encode(
13265
                        authority_view.substr(0, password_token_location),
13266
                        character_sets::USERINFO_PERCENT_ENCODE));
13267
                    url.append_base_password(unicode::percent_encode(
13268
                        authority_view.substr(password_token_location + 1),
13269
                        character_sets::USERINFO_PERCENT_ENCODE));
13270
                  }
13271
                }
13272
              }
13273
4.45k
            } else if constexpr (store_values) {
13274
2.47k
              if constexpr (result_type_is_ada_url) {
13275
2.47k
                url.password += unicode::percent_encode(
13276
2.47k
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE);
13277
2.47k
              } else {
13278
2.47k
                url.append_base_password(unicode::percent_encode(
13279
2.47k
                    authority_view, character_sets::USERINFO_PERCENT_ENCODE));
13280
2.47k
              }
13281
2.47k
            }
13282
6.92k
          }
13283
          // Otherwise, if one of the following is true:
13284
          // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13285
          // - url is special and c is U+005C (\)
13286
1.28k
          else if (end_of_authority == input_size ||
13287
470
                   url_data[end_of_authority] == '/' ||
13288
42
                   url_data[end_of_authority] == '?' ||
13289
1.28k
                   (url.is_special() && url_data[end_of_authority] == '\\')) {
13290
            // If atSignSeen is true and authority_view is the empty string,
13291
            // validation error, return failure.
13292
1.28k
            if (at_sign_seen && authority_view.empty()) {
13293
350
              url.is_valid = false;
13294
350
              return url;
13295
350
            }
13296
932
            state = state::HOST;
13297
932
            break;
13298
1.28k
          }
13299
6.92k
          if (end_of_authority == input_size) {
13300
            if constexpr (store_values) {
13301
              if (fragment.has_value()) {
13302
                url.update_unencoded_base_hash(*fragment);
13303
              }
13304
            }
13305
0
            enforce_max_input_length();
13306
0
            return url;
13307
0
          }
13308
6.92k
          input_position = end_of_authority + 1;
13309
6.92k
        } while (true);
13310
13311
932
        break;
13312
1.28k
      }
13313
932
      case state::SPECIAL_RELATIVE_OR_AUTHORITY: {
13314
448
        ada_log("SPECIAL_RELATIVE_OR_AUTHORITY ",
13315
448
                helpers::substring(url_data, input_position));
13316
13317
        // If c is U+002F (/) and remaining starts with U+002F (/),
13318
        // then set state to special authority ignore slashes state and increase
13319
        // pointer by 1.
13320
448
        if (url_data.substr(input_position, 2) == "//") {
13321
360
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13322
360
          input_position += 2;
13323
360
        } else {
13324
          // Otherwise, validation error, set state to relative state and
13325
          // decrease pointer by 1.
13326
88
          state = state::RELATIVE_SCHEME;
13327
88
        }
13328
13329
448
        break;
13330
1.28k
      }
13331
2.24k
      case state::PATH_OR_AUTHORITY: {
13332
2.24k
        ada_log("PATH_OR_AUTHORITY ",
13333
2.24k
                helpers::substring(url_data, input_position));
13334
13335
        // If c is U+002F (/), then set state to authority state.
13336
2.24k
        if ((input_position != input_size) &&
13337
2.10k
            (url_data[input_position] == '/')) {
13338
914
          state = state::AUTHORITY;
13339
914
          input_position++;
13340
1.32k
        } else {
13341
          // Otherwise, set state to path state, and decrease pointer by 1.
13342
1.32k
          state = state::PATH;
13343
1.32k
        }
13344
13345
2.24k
        break;
13346
1.28k
      }
13347
1.12k
      case state::RELATIVE_SCHEME: {
13348
1.12k
        ada_log("RELATIVE_SCHEME ",
13349
1.12k
                helpers::substring(url_data, input_position));
13350
13351
        // Set url's scheme to base's scheme.
13352
1.12k
        url.copy_scheme(*base_url);
13353
13354
        // If c is U+002F (/), then set state to relative slash state.
13355
1.12k
        if ((input_position != input_size) &&
13356
            // NOLINTNEXTLINE(bugprone-branch-clone)
13357
915
            (url_data[input_position] == '/')) {
13358
96
          ada_log(
13359
96
              "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
13360
96
              "slash state");
13361
96
          state = state::RELATIVE_SLASH;
13362
1.02k
        } else if (url.is_special() && (input_position != input_size) &&
13363
705
                   (url_data[input_position] == '\\')) {
13364
          // Otherwise, if url is special and c is U+005C (\), validation error,
13365
          // set state to relative slash state.
13366
2
          ada_log(
13367
2
              "RELATIVE_SCHEME  if url is special and c is U+005C, validation "
13368
2
              "error, set state to relative slash state");
13369
2
          state = state::RELATIVE_SLASH;
13370
1.02k
        } else {
13371
1.02k
          ada_log("RELATIVE_SCHEME otherwise");
13372
          // Set url's username to base's username, url's password to base's
13373
          // password, url's host to base's host, url's port to base's port,
13374
          // url's path to a clone of base's path, and url's query to base's
13375
          // query.
13376
          if constexpr (result_type_is_ada_url) {
13377
            url.username = base_url->username;
13378
            url.password = base_url->password;
13379
            url.host = base_url->host;
13380
            url.port = base_url->port;
13381
            // cloning the base path includes cloning the has_opaque_path flag
13382
            url.has_opaque_path = base_url->has_opaque_path;
13383
            url.path = base_url->path;
13384
            url.query = base_url->query;
13385
1.02k
          } else {
13386
1.02k
            url.update_base_authority(base_url->get_href(),
13387
1.02k
                                      base_url->get_components());
13388
1.02k
            url.update_host_to_base_host(base_url->get_hostname());
13389
1.02k
            url.update_base_port(base_url->retrieve_base_port());
13390
            // cloning the base path includes cloning the has_opaque_path flag
13391
1.02k
            url.has_opaque_path = base_url->has_opaque_path;
13392
1.02k
            url.update_base_pathname(base_url->get_pathname());
13393
1.02k
            if (base_url->has_search()) {
13394
              // get_search() returns "" for an empty query string (URL ends
13395
              // with '?'). update_base_search("") would incorrectly clear the
13396
              // query, so pass "?" to preserve the empty query distinction.
13397
0
              auto s = base_url->get_search();
13398
0
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13399
0
            }
13400
1.02k
          }
13401
13402
1.02k
          url.has_opaque_path = base_url->has_opaque_path;
13403
13404
          // If c is U+003F (?), then set url's query to the empty string, and
13405
          // state to query state.
13406
1.02k
          if ((input_position != input_size) &&
13407
817
              (url_data[input_position] == '?')) {
13408
105
            state = state::QUERY;
13409
105
          }
13410
          // Otherwise, if c is not the EOF code point:
13411
921
          else if (input_position != input_size) {
13412
            // Set url's query to null.
13413
712
            url.clear_search();
13414
            if constexpr (result_type_is_ada_url) {
13415
              // Shorten url's path.
13416
              helpers::shorten_path(url.path, url.type);
13417
712
            } else {
13418
712
              std::string_view path = url.get_pathname();
13419
712
              if (helpers::shorten_path(path, url.type)) {
13420
0
                url.update_base_pathname(std::move(std::string(path)));
13421
0
              }
13422
712
            }
13423
            // Set state to path state and decrease pointer by 1.
13424
712
            state = state::PATH;
13425
712
            break;
13426
712
          }
13427
1.02k
        }
13428
412
        input_position++;
13429
412
        break;
13430
1.12k
      }
13431
98
      case state::RELATIVE_SLASH: {
13432
98
        ada_log("RELATIVE_SLASH ",
13433
98
                helpers::substring(url_data, input_position));
13434
13435
        // If url is special and c is U+002F (/) or U+005C (\), then:
13436
        // NOLINTNEXTLINE(bugprone-branch-clone)
13437
98
        if (url.is_special() && (input_position != input_size) &&
13438
46
            (url_data[input_position] == '/' ||
13439
43
             url_data[input_position] == '\\')) {
13440
          // Set state to special authority ignore slashes state.
13441
5
          state = state::SPECIAL_AUTHORITY_IGNORE_SLASHES;
13442
5
        }
13443
        // Otherwise, if c is U+002F (/), then set state to authority state.
13444
93
        else if ((input_position != input_size) &&
13445
56
                 (url_data[input_position] == '/')) {
13446
5
          state = state::AUTHORITY;
13447
5
        }
13448
        // Otherwise, set
13449
        // - url's username to base's username,
13450
        // - url's password to base's password,
13451
        // - url's host to base's host,
13452
        // - url's port to base's port,
13453
        // - state to path state, and then, decrease pointer by 1.
13454
88
        else {
13455
          if constexpr (result_type_is_ada_url) {
13456
            url.username = base_url->username;
13457
            url.password = base_url->password;
13458
            url.host = base_url->host;
13459
            url.port = base_url->port;
13460
88
          } else {
13461
88
            url.update_base_authority(base_url->get_href(),
13462
88
                                      base_url->get_components());
13463
88
            url.update_host_to_base_host(base_url->get_hostname());
13464
88
            url.update_base_port(base_url->retrieve_base_port());
13465
88
          }
13466
88
          state = state::PATH;
13467
88
          break;
13468
88
        }
13469
13470
10
        input_position++;
13471
10
        break;
13472
98
      }
13473
12.6k
      case state::SPECIAL_AUTHORITY_SLASHES: {
13474
12.6k
        ada_log("SPECIAL_AUTHORITY_SLASHES ",
13475
12.6k
                helpers::substring(url_data, input_position));
13476
13477
        // If c is U+002F (/) and remaining starts with U+002F (/),
13478
        // then set state to special authority ignore slashes state and increase
13479
        // pointer by 1.
13480
12.6k
        if (url_data.substr(input_position, 2) == "//") {
13481
3.13k
          input_position += 2;
13482
3.13k
        }
13483
13484
12.6k
        [[fallthrough]];
13485
12.6k
      }
13486
13.0k
      case state::SPECIAL_AUTHORITY_IGNORE_SLASHES: {
13487
13.0k
        ada_log("SPECIAL_AUTHORITY_IGNORE_SLASHES ",
13488
13.0k
                helpers::substring(url_data, input_position));
13489
13490
        // If c is neither U+002F (/) nor U+005C (\), then set state to
13491
        // authority state and decrease pointer by 1.
13492
13.6k
        while ((input_position != input_size) &&
13493
13.5k
               ((url_data[input_position] == '/') ||
13494
13.2k
                (url_data[input_position] == '\\'))) {
13495
623
          input_position++;
13496
623
        }
13497
13.0k
        state = state::AUTHORITY;
13498
13499
13.0k
        break;
13500
12.6k
      }
13501
114
      case state::QUERY: {
13502
114
        ada_log("QUERY ", helpers::substring(url_data, input_position));
13503
        if constexpr (store_values) {
13504
          // Let queryPercentEncodeSet be the special-query percent-encode set
13505
          // if url is special; otherwise the query percent-encode set.
13506
          const uint8_t* query_percent_encode_set =
13507
              url.is_special() ? character_sets::SPECIAL_QUERY_PERCENT_ENCODE
13508
                               : character_sets::QUERY_PERCENT_ENCODE;
13509
13510
          // Percent-encode after encoding, with encoding, buffer, and
13511
          // queryPercentEncodeSet, and append the result to url's query.
13512
          url.update_base_search(url_data.substr(input_position),
13513
                                 query_percent_encode_set);
13514
          ada_log("QUERY update_base_search completed ");
13515
          if (fragment.has_value()) {
13516
            url.update_unencoded_base_hash(*fragment);
13517
          }
13518
        }
13519
114
        enforce_max_input_length();
13520
114
        return url;
13521
12.6k
      }
13522
13.5k
      case state::HOST: {
13523
13.5k
        ada_log("HOST ", helpers::substring(url_data, input_position));
13524
13525
13.5k
        std::string_view host_view = url_data.substr(input_position);
13526
13.5k
        auto [location, found_colon] =
13527
13.5k
            helpers::get_host_delimiter_location(url.is_special(), host_view);
13528
13.5k
        input_position = (location != std::string_view::npos)
13529
13.5k
                             ? input_position + location
13530
13.5k
                             : input_size;
13531
        // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
13532
        // Note: the 'found_colon' value is true if and only if a colon was
13533
        // encountered while not inside brackets.
13534
13.5k
        if (found_colon) {
13535
          // If buffer is the empty string, validation error, return failure.
13536
          // Let host be the result of host parsing buffer with url is not
13537
          // special.
13538
2.73k
          ada_log("HOST parsing ", host_view);
13539
2.73k
          if (!url.parse_host(host_view)) {
13540
245
            return url;
13541
245
          }
13542
2.49k
          ada_log("HOST parsing results in ", url.get_hostname());
13543
          // Set url's host to host, buffer to the empty string, and state to
13544
          // port state.
13545
2.49k
          state = state::PORT;
13546
2.49k
          input_position++;
13547
2.49k
        }
13548
        // Otherwise, if one of the following is true:
13549
        // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
13550
        // - url is special and c is U+005C (\)
13551
        // The get_host_delimiter_location function either brings us to
13552
        // the colon outside of the bracket, or to one of those characters.
13553
10.8k
        else {
13554
          // If url is special and host_view is the empty string, validation
13555
          // error, return failure.
13556
10.8k
          if (host_view.empty() && url.is_special()) {
13557
68
            url.is_valid = false;
13558
68
            return url;
13559
68
          }
13560
10.7k
          ada_log("HOST parsing ", host_view, " href=", url.get_href());
13561
          // Let host be the result of host parsing host_view with url is not
13562
          // special.
13563
10.7k
          if (host_view.empty()) {
13564
126
            url.update_base_hostname("");
13565
10.6k
          } else if (!url.parse_host(host_view)) {
13566
2.29k
            return url;
13567
2.29k
          }
13568
8.48k
          ada_log("HOST parsing results in ", url.get_hostname(),
13569
8.48k
                  " href=", url.get_href());
13570
13571
          // Set url's host to host, and state to path start state.
13572
8.48k
          state = state::PATH_START;
13573
8.48k
        }
13574
13575
10.9k
        break;
13576
13.5k
      }
13577
10.9k
      case state::OPAQUE_PATH: {
13578
3.22k
        ada_log("OPAQUE_PATH ", helpers::substring(url_data, input_position));
13579
        // Opaque path, query, and fragment are structurally always valid:
13580
        // the parser would just percent-encode whatever is there. When we
13581
        // are not storing values (can_parse), we can return immediately.
13582
        // We must set has_opaque_path = true before returning so that when
13583
        // this URL is used as an internal base inside can_parse, NO_SCHEME
13584
        // correctly rejects relative inputs against an opaque-path base
13585
        // (e.g. can_parse("", &"W:") must return false).
13586
3.22k
        if constexpr (!store_values) {
13587
3.22k
          url.has_opaque_path = true;
13588
3.22k
          return url;
13589
3.22k
        }
13590
0
        std::string_view view = url_data.substr(input_position);
13591
        // If c is U+003F (?), then set url's query to the empty string and
13592
        // state to query state.
13593
3.22k
        size_t location = view.find('?');
13594
3.22k
        if (location != std::string_view::npos) {
13595
0
          view.remove_suffix(view.size() - location);
13596
0
          state = state::QUERY;
13597
0
          input_position += location + 1;
13598
3.22k
        } else {
13599
3.22k
          input_position = input_size + 1;
13600
3.22k
        }
13601
3.22k
        url.has_opaque_path = true;
13602
13603
        // This is a really unlikely scenario in real world. We should not seek
13604
        // to optimize it.
13605
3.22k
        if (view.ends_with(' ')) {
13606
0
          std::string modified_view =
13607
0
              std::string(view.substr(0, view.size() - 1)) + "%20";
13608
0
          url.update_base_pathname(unicode::percent_encode(
13609
0
              modified_view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13610
3.22k
        } else {
13611
3.22k
          url.update_base_pathname(unicode::percent_encode(
13612
3.22k
              view, character_sets::C0_CONTROL_PERCENT_ENCODE));
13613
3.22k
        }
13614
3.22k
        break;
13615
13.5k
      }
13616
2.49k
      case state::PORT: {
13617
2.49k
        ada_log("PORT ", helpers::substring(url_data, input_position));
13618
2.49k
        std::string_view port_view = url_data.substr(input_position);
13619
2.49k
        input_position += url.parse_port(port_view, true);
13620
2.49k
        if (!url.is_valid) {
13621
106
          return url;
13622
106
        }
13623
2.38k
        state = state::PATH_START;
13624
2.38k
        [[fallthrough]];
13625
2.38k
      }
13626
12.8k
      case state::PATH_START: {
13627
12.8k
        ada_log("PATH_START ", helpers::substring(url_data, input_position));
13628
        // Path, query, and fragment are structurally always valid: the
13629
        // parser would just percent-encode whatever is there. When we are
13630
        // not storing values (can_parse), we can return immediately since
13631
        // no subsequent state can invalidate the URL.
13632
12.8k
        if constexpr (!store_values) {
13633
12.8k
          return url;
13634
12.8k
        }
13635
13636
        // If url is special, then:
13637
12.8k
        if (url.is_special()) {
13638
          // Set state to path state.
13639
0
          state = state::PATH;
13640
13641
          // Optimization: Avoiding going into PATH state improves the
13642
          // performance of urls ending with /.
13643
0
          if (input_position == input_size) {
13644
            if constexpr (store_values) {
13645
              url.update_base_pathname("/");
13646
              if (fragment.has_value()) {
13647
                url.update_unencoded_base_hash(*fragment);
13648
              }
13649
            }
13650
0
            enforce_max_input_length();
13651
0
            return url;
13652
0
          }
13653
          // If c is neither U+002F (/) nor U+005C (\), then decrease pointer
13654
          // by 1. We know that (input_position == input_size) is impossible
13655
          // here, because of the previous if-check.
13656
0
          if ((url_data[input_position] != '/') &&
13657
0
              (url_data[input_position] != '\\')) {
13658
0
            break;
13659
0
          }
13660
0
        }
13661
        // Otherwise, if state override is not given and c is U+003F (?),
13662
        // set url's query to the empty string and state to query state.
13663
12.8k
        else if ((input_position != input_size) &&
13664
0
                 (url_data[input_position] == '?')) {
13665
0
          state = state::QUERY;
13666
0
        }
13667
        // Otherwise, if c is not the EOF code point:
13668
12.8k
        else if (input_position != input_size) {
13669
          // Set state to path state.
13670
0
          state = state::PATH;
13671
13672
          // If c is not U+002F (/), then decrease pointer by 1.
13673
0
          if (url_data[input_position] != '/') {
13674
0
            break;
13675
0
          }
13676
0
        }
13677
13678
12.8k
        input_position++;
13679
12.8k
        break;
13680
12.8k
      }
13681
2.87k
      case state::PATH: {
13682
2.87k
        ada_log("PATH ", helpers::substring(url_data, input_position));
13683
        // Path, query, and fragment are structurally always valid: the
13684
        // parser would just percent-encode whatever is there. When we are
13685
        // not storing values (can_parse), we can return immediately since
13686
        // no subsequent state can invalidate the URL.
13687
2.87k
        if constexpr (!store_values) {
13688
2.87k
          return url;
13689
2.87k
        }
13690
0
        std::string_view view = url_data.substr(input_position);
13691
13692
        // Most time, we do not need percent encoding.
13693
        // Furthermore, we can immediately locate the '?'.
13694
2.87k
        size_t locofquestionmark = view.find('?');
13695
2.87k
        if (locofquestionmark != std::string_view::npos) {
13696
0
          state = state::QUERY;
13697
0
          view.remove_suffix(view.size() - locofquestionmark);
13698
0
          input_position += locofquestionmark + 1;
13699
2.87k
        } else {
13700
2.87k
          input_position = input_size + 1;
13701
2.87k
        }
13702
        if constexpr (store_values) {
13703
          if constexpr (result_type_is_ada_url) {
13704
            helpers::parse_prepared_path(view, url.type, url.path);
13705
          } else {
13706
            url.consume_prepared_path(view);
13707
            ADA_ASSERT_TRUE(url.validate());
13708
          }
13709
        }
13710
2.87k
        break;
13711
12.8k
      }
13712
2.25k
      case state::FILE_SLASH: {
13713
2.25k
        ada_log("FILE_SLASH ", helpers::substring(url_data, input_position));
13714
13715
        // If c is U+002F (/) or U+005C (\), then:
13716
2.25k
        if ((input_position != input_size) &&
13717
2.18k
            (url_data[input_position] == '/' ||
13718
2.14k
             url_data[input_position] == '\\')) {
13719
2.14k
          ada_log("FILE_SLASH c is U+002F or U+005C");
13720
          // Set state to file host state.
13721
2.14k
          state = state::FILE_HOST;
13722
2.14k
          input_position++;
13723
2.14k
        } else {
13724
112
          ada_log("FILE_SLASH otherwise");
13725
          // If base is non-null and base's scheme is "file", then:
13726
          // Note: it is unsafe to do base_url->scheme unless you know that
13727
          // base_url_has_value() is true.
13728
112
          if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13729
            // Set url's host to base's host.
13730
            if constexpr (result_type_is_ada_url) {
13731
              url.host = base_url->host;
13732
84
            } else {
13733
84
              url.update_host_to_base_host(base_url->get_host());
13734
84
            }
13735
            // If the code point substring from pointer to the end of input does
13736
            // not start with a Windows drive letter and base's path[0] is a
13737
            // normalized Windows drive letter, then append base's path[0] to
13738
            // url's path.
13739
84
            if (!base_url->get_pathname().empty()) {
13740
0
              if (!checkers::is_windows_drive_letter(
13741
0
                      url_data.substr(input_position))) {
13742
0
                std::string_view first_base_url_path =
13743
0
                    base_url->get_pathname().substr(1);
13744
0
                size_t loc = first_base_url_path.find('/');
13745
0
                if (loc != std::string_view::npos) {
13746
0
                  helpers::resize(first_base_url_path, loc);
13747
0
                }
13748
0
                if (checkers::is_normalized_windows_drive_letter(
13749
0
                        first_base_url_path)) {
13750
                  if constexpr (result_type_is_ada_url) {
13751
                    url.path += '/';
13752
                    url.path += first_base_url_path;
13753
0
                  } else {
13754
0
                    url.append_base_pathname(
13755
0
                        helpers::concat("/", first_base_url_path));
13756
0
                  }
13757
0
                }
13758
0
              }
13759
0
            }
13760
84
          }
13761
13762
          // Set state to path state, and decrease pointer by 1.
13763
112
          state = state::PATH;
13764
112
        }
13765
13766
2.25k
        break;
13767
12.8k
      }
13768
2.14k
      case state::FILE_HOST: {
13769
2.14k
        ada_log("FILE_HOST ", helpers::substring(url_data, input_position));
13770
2.14k
        std::string_view view = url_data.substr(input_position);
13771
13772
2.14k
        size_t location = view.find_first_of("/\\?");
13773
2.14k
        std::string_view file_host_buffer = view.substr(
13774
2.14k
            0, (location != std::string_view::npos) ? location : view.size());
13775
13776
2.14k
        if (checkers::is_windows_drive_letter(file_host_buffer)) {
13777
12
          state = state::PATH;
13778
2.13k
        } else if (file_host_buffer.empty()) {
13779
          // Set url's host to the empty string.
13780
          if constexpr (result_type_is_ada_url) {
13781
            url.host = "";
13782
274
          } else {
13783
274
            url.update_base_hostname("");
13784
274
          }
13785
          // Set state to path start state.
13786
274
          state = state::PATH_START;
13787
1.85k
        } else {
13788
1.85k
          size_t consumed_bytes = file_host_buffer.size();
13789
1.85k
          input_position += consumed_bytes;
13790
          // Let host be the result of host parsing buffer with url is not
13791
          // special.
13792
1.85k
          if (!url.parse_host(file_host_buffer)) {
13793
191
            return url;
13794
191
          }
13795
13796
          if constexpr (result_type_is_ada_url) {
13797
            // If host is "localhost", then set host to the empty string.
13798
            if (url.host.has_value() && url.host.value() == "localhost") {
13799
              url.host = "";
13800
            }
13801
1.66k
          } else {
13802
1.66k
            if (url.get_hostname() == "localhost") {
13803
12
              url.update_base_hostname("");
13804
12
            }
13805
1.66k
          }
13806
13807
          // Set buffer to the empty string and state to path start state.
13808
1.66k
          state = state::PATH_START;
13809
1.66k
        }
13810
13811
1.95k
        break;
13812
2.14k
      }
13813
2.95k
      case state::FILE: {
13814
2.95k
        ada_log("FILE ", helpers::substring(url_data, input_position));
13815
2.95k
        std::string_view file_view = url_data.substr(input_position);
13816
13817
2.95k
        url.set_protocol_as_file();
13818
        if constexpr (result_type_is_ada_url) {
13819
          // Set url's host to the empty string.
13820
          url.host = "";
13821
2.95k
        } else {
13822
2.95k
          url.update_base_hostname("");
13823
2.95k
        }
13824
        // If c is U+002F (/) or U+005C (\), then:
13825
2.95k
        if (input_position != input_size &&
13826
2.81k
            (url_data[input_position] == '/' ||
13827
2.25k
             url_data[input_position] == '\\')) {
13828
2.25k
          ada_log("FILE c is U+002F or U+005C");
13829
          // Set state to file slash state.
13830
2.25k
          state = state::FILE_SLASH;
13831
2.25k
        }
13832
        // Otherwise, if base is non-null and base's scheme is "file":
13833
693
        else if (base_url != nullptr && base_url->type == scheme::type::FILE) {
13834
          // Set url's host to base's host, url's path to a clone of base's
13835
          // path, and url's query to base's query.
13836
199
          ada_log("FILE base non-null");
13837
          if constexpr (result_type_is_ada_url) {
13838
            url.host = base_url->host;
13839
            url.path = base_url->path;
13840
            url.query = base_url->query;
13841
199
          } else {
13842
199
            url.update_host_to_base_host(base_url->get_hostname());
13843
199
            url.update_base_pathname(base_url->get_pathname());
13844
199
            if (base_url->has_search()) {
13845
              // get_search() returns "" for an empty query string (URL ends
13846
              // with '?'). update_base_search("") would incorrectly clear the
13847
              // query, so pass "?" to preserve the empty query distinction.
13848
0
              auto s = base_url->get_search();
13849
0
              url.update_base_search(s.empty() ? std::string_view("?") : s);
13850
0
            }
13851
199
          }
13852
199
          url.has_opaque_path = base_url->has_opaque_path;
13853
13854
          // If c is U+003F (?), then set url's query to the empty string and
13855
          // state to query state.
13856
199
          if (input_position != input_size && url_data[input_position] == '?') {
13857
9
            state = state::QUERY;
13858
9
          }
13859
          // Otherwise, if c is not the EOF code point:
13860
190
          else if (input_position != input_size) {
13861
            // Set url's query to null.
13862
127
            url.clear_search();
13863
            // If the code point substring from pointer to the end of input does
13864
            // not start with a Windows drive letter, then shorten url's path.
13865
127
            if (!checkers::is_windows_drive_letter(file_view)) {
13866
              if constexpr (result_type_is_ada_url) {
13867
                helpers::shorten_path(url.path, url.type);
13868
107
              } else {
13869
107
                std::string_view path = url.get_pathname();
13870
107
                if (helpers::shorten_path(path, url.type)) {
13871
0
                  url.update_base_pathname(std::move(std::string(path)));
13872
0
                }
13873
107
              }
13874
107
            }
13875
            // Otherwise:
13876
20
            else {
13877
              // Set url's path to an empty list.
13878
20
              url.clear_pathname();
13879
20
            }
13880
13881
            // Set state to path state and decrease pointer by 1.
13882
127
            state = state::PATH;
13883
127
            break;
13884
127
          }
13885
199
        }
13886
        // Otherwise, set state to path state, and decrease pointer by 1.
13887
494
        else {
13888
494
          ada_log("FILE go to path");
13889
494
          state = state::PATH;
13890
494
          break;
13891
494
        }
13892
13893
2.32k
        input_position++;
13894
2.32k
        break;
13895
2.95k
      }
13896
0
      default:
13897
0
        unreachable();
13898
133k
    }
13899
133k
  }
13900
  if constexpr (store_values) {
13901
    if (fragment.has_value()) {
13902
      url.update_unencoded_base_hash(*fragment);
13903
    }
13904
  }
13905
272
  enforce_max_input_length();
13906
272
  return url;
13907
31.0k
}
13908
13909
template bool try_parse_simple_absolute<url>(std::string_view, url&);
13910
template bool try_parse_simple_absolute<url_aggregator>(std::string_view,
13911
                                                        url_aggregator&);
13912
template bool finish_simple_absolute_with_port<url>(std::string_view, url&,
13913
                                                    ada::scheme::type, uint32_t,
13914
                                                    size_t, size_t, size_t,
13915
                                                    bool);
13916
template bool finish_simple_absolute_with_port<url_aggregator>(
13917
    std::string_view, url_aggregator&, ada::scheme::type, uint32_t, size_t,
13918
    size_t, size_t, bool);
13919
template bool try_parse_simple_relative<url>(std::string_view, const url&,
13920
                                             url&);
13921
template bool try_parse_simple_relative<url_aggregator>(std::string_view,
13922
                                                        const url_aggregator&,
13923
                                                        url_aggregator&);
13924
13925
template url parse_url_impl<url, true>(std::string_view user_input,
13926
                                       const url* base_url = nullptr);
13927
template url_aggregator parse_url_impl<url_aggregator, true>(
13928
    std::string_view user_input, const url_aggregator* base_url = nullptr);
13929
template url_aggregator parse_url_impl<url_aggregator, false>(
13930
    std::string_view user_input, const url_aggregator* base_url = nullptr);
13931
13932
template <class result_type>
13933
result_type parse_url(std::string_view user_input,
13934
0
                      const result_type* base_url) {
13935
0
  return parse_url_impl<result_type, true>(user_input, base_url);
13936
0
}
Unexecuted instantiation: ada::url ada::parser::parse_url<ada::url>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url const*)
Unexecuted instantiation: ada::url_aggregator ada::parser::parse_url<ada::url_aggregator>(std::__1::basic_string_view<char, std::__1::char_traits<char> >, ada::url_aggregator const*)
13937
13938
template url parse_url<url>(std::string_view user_input,
13939
                            const url* base_url = nullptr);
13940
template url_aggregator parse_url<url_aggregator>(
13941
    std::string_view user_input, const url_aggregator* base_url = nullptr);
13942
}  // namespace ada::parser
13943
/* end file src/parser.cpp */
13944
/* begin file src/url_components.cpp */
13945
13946
#include <iterator>
13947
#include <string>
13948
13949
namespace ada {
13950
13951
0
[[nodiscard]] std::string url_components::to_string() const {
13952
0
  std::string answer;
13953
0
  auto back = std::back_insert_iterator(answer);
13954
0
  answer.append("{\n");
13955
13956
0
  answer.append("\t\"protocol_end\":\"");
13957
0
  helpers::encode_json(std::to_string(protocol_end), back);
13958
0
  answer.append("\",\n");
13959
13960
0
  answer.append("\t\"username_end\":\"");
13961
0
  helpers::encode_json(std::to_string(username_end), back);
13962
0
  answer.append("\",\n");
13963
13964
0
  answer.append("\t\"host_start\":\"");
13965
0
  helpers::encode_json(std::to_string(host_start), back);
13966
0
  answer.append("\",\n");
13967
13968
0
  answer.append("\t\"host_end\":\"");
13969
0
  helpers::encode_json(std::to_string(host_end), back);
13970
0
  answer.append("\",\n");
13971
13972
0
  answer.append("\t\"port\":\"");
13973
0
  helpers::encode_json(std::to_string(port), back);
13974
0
  answer.append("\",\n");
13975
13976
0
  answer.append("\t\"pathname_start\":\"");
13977
0
  helpers::encode_json(std::to_string(pathname_start), back);
13978
0
  answer.append("\",\n");
13979
13980
0
  answer.append("\t\"search_start\":\"");
13981
0
  helpers::encode_json(std::to_string(search_start), back);
13982
0
  answer.append("\",\n");
13983
13984
0
  answer.append("\t\"hash_start\":\"");
13985
0
  helpers::encode_json(std::to_string(hash_start), back);
13986
0
  answer.append("\",\n");
13987
13988
0
  answer.append("\n}");
13989
0
  return answer;
13990
0
}
13991
13992
}  // namespace ada
13993
/* end file src/url_components.cpp */
13994
/* begin file src/url_aggregator.cpp */
13995
13996
#include <algorithm>
13997
#include <array>
13998
#include <cstdint>
13999
#include <cstring>
14000
#include <iterator>
14001
#include <optional>
14002
#include <ranges>
14003
#include <string>
14004
#include <string_view>
14005
#include <utility>
14006
14007
namespace {
14008
14009
ada_really_inline void apply_shifted_non_scheme_offsets(
14010
44.6k
    ada::url_components& components, uint32_t new_difference) {
14011
44.6k
  components.username_end += new_difference;
14012
44.6k
  components.host_start += new_difference;
14013
44.6k
  components.host_end += new_difference;
14014
44.6k
  components.pathname_start += new_difference;
14015
44.6k
  if (components.search_start != ada::url_components::omitted) {
14016
0
    components.search_start += new_difference;
14017
0
  }
14018
44.6k
  if (components.hash_start != ada::url_components::omitted) {
14019
0
    components.hash_start += new_difference;
14020
0
  }
14021
44.6k
}
14022
14023
}  // namespace
14024
14025
namespace ada {
14026
template <bool has_state_override>
14027
[[nodiscard]] ada_really_inline bool url_aggregator::parse_scheme_with_colon(
14028
42.7k
    const std::string_view input_with_colon) {
14029
42.7k
  ada_log("url_aggregator::parse_scheme_with_colon ", input_with_colon);
14030
42.7k
  ADA_ASSERT_TRUE(validate());
14031
42.7k
  ADA_ASSERT_TRUE(!helpers::overlaps(input_with_colon, buffer));
14032
42.7k
  std::string_view input{input_with_colon};
14033
42.7k
  input.remove_suffix(1);
14034
42.7k
  auto parsed_type = ada::scheme::get_scheme_type(input);
14035
42.7k
  const bool is_input_special = (parsed_type != ada::scheme::NOT_SPECIAL);
14036
  /**
14037
   * In the common case, we will immediately recognize a special scheme (e.g.,
14038
   *http, https), in which case, we can go really fast.
14039
   **/
14040
42.7k
  if (is_input_special) {  // fast path!!!
14041
20.3k
    if constexpr (has_state_override) {
14042
      // If url's scheme is not a special scheme and buffer is a special scheme,
14043
      // then return.
14044
0
      if (is_special() != is_input_special) {
14045
0
        return false;
14046
0
      }
14047
14048
      // If url includes credentials or has a non-null port, and buffer is
14049
      // "file", then return.
14050
0
      if ((has_credentials() || components.port != url_components::omitted) &&
14051
0
          parsed_type == ada::scheme::type::FILE) {
14052
0
        return false;
14053
0
      }
14054
14055
      // If url's scheme is "file" and its host is an empty host, then return.
14056
      // An empty host is the empty string.
14057
0
      if (type == ada::scheme::type::FILE &&
14058
0
          components.host_start == components.host_end) {
14059
0
        return false;
14060
0
      }
14061
0
    }
14062
14063
0
    type = parsed_type;
14064
20.3k
    set_scheme_from_view_with_colon(input_with_colon);
14065
14066
20.3k
    if constexpr (has_state_override) {
14067
      // This is uncommon.
14068
0
      uint16_t urls_scheme_port = get_special_port();
14069
14070
0
      if (urls_scheme_port) {
14071
        // If url's port is url's scheme's default port, then set url's port to
14072
        // null.
14073
0
        if (components.port == urls_scheme_port) {
14074
0
          clear_port();
14075
0
        }
14076
0
      }
14077
0
    }
14078
22.3k
  } else {  // slow path
14079
22.3k
    std::string _buffer(input);
14080
    // Next function is only valid if the input is ASCII and returns false
14081
    // otherwise, but it seems that we always have ascii content so we do not
14082
    // need to check the return value.
14083
22.3k
    unicode::to_lower_ascii(_buffer.data(), _buffer.size());
14084
14085
22.3k
    if constexpr (has_state_override) {
14086
      // The state-override validation errors below ("return" in the WHATWG URL
14087
      // parser) leave the URL unchanged. The setter contract is
14088
      // "true on success, false if the scheme is invalid" -- the fast path
14089
      // above already returns false here, so the slow path must agree.
14090
14091
      // If url's scheme is a special scheme and buffer is not a special scheme,
14092
      // then return. If url's scheme is not a special scheme and buffer is a
14093
      // special scheme, then return.
14094
0
      if (is_special() != ada::scheme::is_special(_buffer)) {
14095
0
        return false;
14096
0
      }
14097
14098
      // If url includes credentials or has a non-null port, and buffer is
14099
      // "file", then return.
14100
0
      if ((has_credentials() || components.port != url_components::omitted) &&
14101
0
          _buffer == "file") {
14102
0
        return false;
14103
0
      }
14104
14105
      // If url's scheme is "file" and its host is an empty host, then return.
14106
      // An empty host is the empty string.
14107
0
      if (type == ada::scheme::type::FILE &&
14108
0
          components.host_start == components.host_end) {
14109
0
        return false;
14110
0
      }
14111
0
    }
14112
14113
0
    set_scheme(_buffer);
14114
14115
22.3k
    if constexpr (has_state_override) {
14116
      // This is uncommon.
14117
0
      uint16_t urls_scheme_port = get_special_port();
14118
14119
0
      if (urls_scheme_port) {
14120
        // If url's port is url's scheme's default port, then set url's port to
14121
        // null.
14122
0
        if (components.port == urls_scheme_port) {
14123
0
          clear_port();
14124
0
        }
14125
0
      }
14126
0
    }
14127
22.3k
  }
14128
0
  ADA_ASSERT_TRUE(validate());
14129
42.7k
  return true;
14130
42.7k
}
bool ada::url_aggregator::parse_scheme_with_colon<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
Line
Count
Source
14028
42.7k
    const std::string_view input_with_colon) {
14029
42.7k
  ada_log("url_aggregator::parse_scheme_with_colon ", input_with_colon);
14030
42.7k
  ADA_ASSERT_TRUE(validate());
14031
42.7k
  ADA_ASSERT_TRUE(!helpers::overlaps(input_with_colon, buffer));
14032
42.7k
  std::string_view input{input_with_colon};
14033
42.7k
  input.remove_suffix(1);
14034
42.7k
  auto parsed_type = ada::scheme::get_scheme_type(input);
14035
42.7k
  const bool is_input_special = (parsed_type != ada::scheme::NOT_SPECIAL);
14036
  /**
14037
   * In the common case, we will immediately recognize a special scheme (e.g.,
14038
   *http, https), in which case, we can go really fast.
14039
   **/
14040
42.7k
  if (is_input_special) {  // fast path!!!
14041
    if constexpr (has_state_override) {
14042
      // If url's scheme is not a special scheme and buffer is a special scheme,
14043
      // then return.
14044
      if (is_special() != is_input_special) {
14045
        return false;
14046
      }
14047
14048
      // If url includes credentials or has a non-null port, and buffer is
14049
      // "file", then return.
14050
      if ((has_credentials() || components.port != url_components::omitted) &&
14051
          parsed_type == ada::scheme::type::FILE) {
14052
        return false;
14053
      }
14054
14055
      // If url's scheme is "file" and its host is an empty host, then return.
14056
      // An empty host is the empty string.
14057
      if (type == ada::scheme::type::FILE &&
14058
          components.host_start == components.host_end) {
14059
        return false;
14060
      }
14061
    }
14062
14063
20.3k
    type = parsed_type;
14064
20.3k
    set_scheme_from_view_with_colon(input_with_colon);
14065
14066
    if constexpr (has_state_override) {
14067
      // This is uncommon.
14068
      uint16_t urls_scheme_port = get_special_port();
14069
14070
      if (urls_scheme_port) {
14071
        // If url's port is url's scheme's default port, then set url's port to
14072
        // null.
14073
        if (components.port == urls_scheme_port) {
14074
          clear_port();
14075
        }
14076
      }
14077
    }
14078
22.3k
  } else {  // slow path
14079
22.3k
    std::string _buffer(input);
14080
    // Next function is only valid if the input is ASCII and returns false
14081
    // otherwise, but it seems that we always have ascii content so we do not
14082
    // need to check the return value.
14083
22.3k
    unicode::to_lower_ascii(_buffer.data(), _buffer.size());
14084
14085
    if constexpr (has_state_override) {
14086
      // The state-override validation errors below ("return" in the WHATWG URL
14087
      // parser) leave the URL unchanged. The setter contract is
14088
      // "true on success, false if the scheme is invalid" -- the fast path
14089
      // above already returns false here, so the slow path must agree.
14090
14091
      // If url's scheme is a special scheme and buffer is not a special scheme,
14092
      // then return. If url's scheme is not a special scheme and buffer is a
14093
      // special scheme, then return.
14094
      if (is_special() != ada::scheme::is_special(_buffer)) {
14095
        return false;
14096
      }
14097
14098
      // If url includes credentials or has a non-null port, and buffer is
14099
      // "file", then return.
14100
      if ((has_credentials() || components.port != url_components::omitted) &&
14101
          _buffer == "file") {
14102
        return false;
14103
      }
14104
14105
      // If url's scheme is "file" and its host is an empty host, then return.
14106
      // An empty host is the empty string.
14107
      if (type == ada::scheme::type::FILE &&
14108
          components.host_start == components.host_end) {
14109
        return false;
14110
      }
14111
    }
14112
14113
22.3k
    set_scheme(_buffer);
14114
14115
    if constexpr (has_state_override) {
14116
      // This is uncommon.
14117
      uint16_t urls_scheme_port = get_special_port();
14118
14119
      if (urls_scheme_port) {
14120
        // If url's port is url's scheme's default port, then set url's port to
14121
        // null.
14122
        if (components.port == urls_scheme_port) {
14123
          clear_port();
14124
        }
14125
      }
14126
    }
14127
22.3k
  }
14128
42.7k
  ADA_ASSERT_TRUE(validate());
14129
42.7k
  return true;
14130
42.7k
}
Unexecuted instantiation: bool ada::url_aggregator::parse_scheme_with_colon<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
14131
14132
2.09k
inline void url_aggregator::copy_scheme(const url_aggregator& u) {
14133
2.09k
  ada_log("url_aggregator::copy_scheme ", u.buffer);
14134
2.09k
  ADA_ASSERT_TRUE(validate());
14135
  // next line could overflow but unsigned arithmetic has well-defined
14136
  // overflows.
14137
2.09k
  uint32_t new_difference = u.components.protocol_end - components.protocol_end;
14138
14139
2.09k
  type = u.type;
14140
2.09k
  buffer.erase(0, components.protocol_end);
14141
2.09k
  buffer.insert(0, u.get_protocol());
14142
2.09k
  components.protocol_end = u.components.protocol_end;
14143
14144
  // No need to update the components
14145
2.09k
  if (new_difference == 0) {
14146
176
    return;
14147
176
  }
14148
14149
1.92k
  apply_shifted_non_scheme_offsets(components, new_difference);
14150
1.92k
  ADA_ASSERT_TRUE(validate());
14151
1.92k
}
14152
14153
inline void url_aggregator::set_scheme_from_view_with_colon(
14154
20.3k
    std::string_view new_scheme_with_colon) {
14155
20.3k
  ada_log("url_aggregator::set_scheme_from_view_with_colon ",
14156
20.3k
          new_scheme_with_colon);
14157
20.3k
  ADA_ASSERT_TRUE(validate());
14158
20.3k
  ADA_ASSERT_TRUE(!new_scheme_with_colon.empty() &&
14159
20.3k
                  new_scheme_with_colon.back() == ':');
14160
  // next line could overflow but unsigned arithmetic has well-defined
14161
  // overflows.
14162
20.3k
  uint32_t new_difference =
14163
20.3k
      uint32_t(new_scheme_with_colon.size()) - components.protocol_end;
14164
14165
20.3k
  if (buffer.empty()) {
14166
20.3k
    buffer.append(new_scheme_with_colon);
14167
20.3k
  } else {
14168
0
    buffer.erase(0, components.protocol_end);
14169
0
    buffer.insert(0, new_scheme_with_colon);
14170
0
  }
14171
20.3k
  components.protocol_end += new_difference;
14172
14173
20.3k
  apply_shifted_non_scheme_offsets(components, new_difference);
14174
20.3k
  ADA_ASSERT_TRUE(validate());
14175
20.3k
}
14176
14177
22.3k
inline void url_aggregator::set_scheme(std::string_view new_scheme) {
14178
22.3k
  ada_log("url_aggregator::set_scheme ", new_scheme);
14179
22.3k
  ADA_ASSERT_TRUE(validate());
14180
22.3k
  ADA_ASSERT_TRUE(new_scheme.empty() || new_scheme.back() != ':');
14181
  // next line could overflow but unsigned arithmetic has well-defined
14182
  // overflows.
14183
22.3k
  uint32_t new_difference =
14184
22.3k
      uint32_t(new_scheme.size()) - components.protocol_end + 1;
14185
14186
22.3k
  type = ada::scheme::get_scheme_type(new_scheme);
14187
22.3k
  if (buffer.empty()) {
14188
22.3k
    buffer.append(helpers::concat(new_scheme, ":"));
14189
22.3k
  } else {
14190
0
    buffer.erase(0, components.protocol_end);
14191
0
    buffer.insert(0, helpers::concat(new_scheme, ":"));
14192
0
  }
14193
22.3k
  components.protocol_end = uint32_t(new_scheme.size() + 1);
14194
14195
22.3k
  apply_shifted_non_scheme_offsets(components, new_difference);
14196
22.3k
  ADA_ASSERT_TRUE(validate());
14197
22.3k
}
14198
14199
0
bool url_aggregator::needs_rollback_snapshot(size_t input_len) const noexcept {
14200
  // 3x should cover worst-case percent-encoding of every input byte; the
14201
  // constant covers the handful of delimiter bytes a setter may add ("/.", "?",
14202
  // "#" and so on)
14203
0
  return buffer.size() + input_len * 3 + 16 > ada::get_max_input_length();
14204
0
}
14205
14206
0
bool url_aggregator::set_protocol(const std::string_view input) {
14207
0
  ada_log("url_aggregator::set_protocol ", input);
14208
0
  ADA_ASSERT_TRUE(validate());
14209
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14210
0
  std::string view(input);
14211
0
  helpers::remove_ascii_tab_or_newline(view);
14212
0
  if (view.empty()) {
14213
0
    return true;
14214
0
  }
14215
14216
  // Schemes should start with alpha values.
14217
0
  if (!checkers::is_alpha(view[0])) {
14218
0
    return false;
14219
0
  }
14220
14221
0
  view.append(":");
14222
14223
0
  std::string::iterator pointer =
14224
0
      std::ranges::find_if_not(view, unicode::is_alnum_plus);
14225
14226
0
  if (pointer != view.end() && *pointer == ':') {
14227
0
    std::optional<url_aggregator> saved_url;
14228
0
    if (needs_rollback_snapshot(view.size())) {
14229
0
      saved_url = *this;
14230
0
    }
14231
0
    bool result = parse_scheme_with_colon<true>(
14232
0
        view.substr(0, pointer - view.begin() + 1));
14233
0
    if (result && saved_url && buffer.size() > ada::get_max_input_length()) {
14234
0
      *this = std::move(*saved_url);
14235
0
      return false;
14236
0
    }
14237
0
    return result;
14238
0
  }
14239
0
  return false;
14240
0
}
14241
14242
0
bool url_aggregator::set_username(const std::string_view input) {
14243
0
  if (helpers::overlaps(input, buffer)) {
14244
0
    return set_username(std::string(input));
14245
0
  }
14246
0
  ada_log("url_aggregator::set_username '", input, "' ");
14247
0
  ADA_ASSERT_TRUE(validate());
14248
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14249
0
  if (cannot_have_credentials_or_port()) {
14250
0
    return false;
14251
0
  }
14252
0
  std::optional<url_aggregator> saved_url;
14253
0
  if (needs_rollback_snapshot(input.size())) {
14254
0
    saved_url = *this;
14255
0
  }
14256
0
  size_t idx = ada::unicode::percent_encode_index(
14257
0
      input, character_sets::USERINFO_PERCENT_ENCODE);
14258
0
  if (idx == input.size()) {
14259
0
    update_base_username(input);
14260
0
  } else {
14261
    // We only create a temporary string if we have to!
14262
0
    update_base_username(ada::unicode::percent_encode(
14263
0
        input, character_sets::USERINFO_PERCENT_ENCODE, idx));
14264
0
  }
14265
0
  if (saved_url && buffer.size() > ada::get_max_input_length()) {
14266
0
    *this = std::move(*saved_url);
14267
0
    return false;
14268
0
  }
14269
0
  ADA_ASSERT_TRUE(validate());
14270
0
  return true;
14271
0
}
14272
14273
0
bool url_aggregator::set_password(const std::string_view input) {
14274
0
  if (helpers::overlaps(input, buffer)) {
14275
0
    return set_password(std::string(input));
14276
0
  }
14277
0
  ada_log("url_aggregator::set_password '", input, "'");
14278
0
  ADA_ASSERT_TRUE(validate());
14279
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14280
0
  if (cannot_have_credentials_or_port()) {
14281
0
    return false;
14282
0
  }
14283
0
  std::optional<url_aggregator> saved_url;
14284
0
  if (needs_rollback_snapshot(input.size())) {
14285
0
    saved_url = *this;
14286
0
  }
14287
0
  size_t idx = ada::unicode::percent_encode_index(
14288
0
      input, character_sets::USERINFO_PERCENT_ENCODE);
14289
0
  if (idx == input.size()) {
14290
0
    update_base_password(input);
14291
0
  } else {
14292
    // We only create a temporary string if we have to!
14293
0
    update_base_password(ada::unicode::percent_encode(
14294
0
        input, character_sets::USERINFO_PERCENT_ENCODE, idx));
14295
0
  }
14296
0
  if (saved_url && buffer.size() > ada::get_max_input_length()) {
14297
0
    *this = std::move(*saved_url);
14298
0
    return false;
14299
0
  }
14300
0
  ADA_ASSERT_TRUE(validate());
14301
0
  return true;
14302
0
}
14303
14304
0
bool url_aggregator::set_port(const std::string_view input) {
14305
0
  ada_log("url_aggregator::set_port ", input);
14306
0
  ADA_ASSERT_TRUE(validate());
14307
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14308
0
  if (cannot_have_credentials_or_port()) {
14309
0
    return false;
14310
0
  }
14311
14312
0
  if (input.empty()) {
14313
0
    clear_port();
14314
0
    return true;
14315
0
  }
14316
14317
0
  std::string trimmed(input);
14318
0
  helpers::remove_ascii_tab_or_newline(trimmed);
14319
14320
0
  if (trimmed.empty()) {
14321
0
    return true;
14322
0
  }
14323
14324
  // Input should not start with a non-digit character.
14325
0
  if (!ada::unicode::is_ascii_digit(trimmed.front())) {
14326
0
    return false;
14327
0
  }
14328
14329
  // Find the first non-digit character to determine the length of digits
14330
0
  auto first_non_digit =
14331
0
      std::ranges::find_if_not(trimmed, ada::unicode::is_ascii_digit);
14332
0
  std::string_view digits_to_parse =
14333
0
      std::string_view(trimmed.data(), first_non_digit - trimmed.begin());
14334
14335
  // parse_port only touches the buffer once the digits are already known to
14336
  // be in range, so an invalid port never mutates anything and needs no
14337
  // rollback; a valid one can only grow the buffer by a few bytes.
14338
0
  std::optional<url_aggregator> saved_url;
14339
0
  if (needs_rollback_snapshot(digits_to_parse.size())) {
14340
0
    saved_url = *this;
14341
0
  }
14342
0
  parse_port(digits_to_parse);
14343
0
  if (!is_valid) {
14344
0
    is_valid = true;
14345
0
    ADA_ASSERT_TRUE(validate());
14346
0
    return false;
14347
0
  }
14348
0
  if (saved_url && buffer.size() > ada::get_max_input_length()) {
14349
0
    *this = std::move(*saved_url);
14350
0
    return false;
14351
0
  }
14352
0
  return true;
14353
0
}
14354
14355
0
bool url_aggregator::set_pathname(const std::string_view input) {
14356
0
  if (helpers::overlaps(input, buffer)) {
14357
0
    return set_pathname(std::string(input));
14358
0
  }
14359
0
  ada_log("url_aggregator::set_pathname ", input);
14360
0
  ADA_ASSERT_TRUE(validate());
14361
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14362
0
  if (has_opaque_path) {
14363
0
    return false;
14364
0
  }
14365
0
  std::optional<url_aggregator> saved_url;
14366
0
  if (needs_rollback_snapshot(input.size())) {
14367
0
    saved_url = *this;
14368
0
  }
14369
0
  clear_pathname();
14370
0
  parse_path(input);
14371
0
  if (get_pathname().starts_with("//") && !has_authority() && !has_dash_dot()) {
14372
0
    buffer.insert(components.pathname_start, "/.");
14373
0
    components.pathname_start += 2;
14374
0
    if (components.search_start != url_components::omitted) {
14375
0
      components.search_start += 2;
14376
0
    }
14377
0
    if (components.hash_start != url_components::omitted) {
14378
0
      components.hash_start += 2;
14379
0
    }
14380
0
  }
14381
0
  if (saved_url && buffer.size() > ada::get_max_input_length()) {
14382
0
    *this = std::move(*saved_url);
14383
0
    return false;
14384
0
  }
14385
0
  ADA_ASSERT_TRUE(validate());
14386
0
  return true;
14387
0
}
14388
14389
2.33k
ada_really_inline void url_aggregator::parse_path(std::string_view input) {
14390
2.33k
  ada_log("url_aggregator::parse_path ", input);
14391
2.33k
  ADA_ASSERT_TRUE(validate());
14392
2.33k
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14393
2.33k
  std::string tmp_buffer;
14394
2.33k
  std::string_view internal_input;
14395
2.33k
  if (unicode::has_tabs_or_newline(input)) {
14396
0
    tmp_buffer = input;
14397
    // Optimization opportunity: Instead of copying and then pruning, we could
14398
    // just directly build the string from user_input.
14399
0
    helpers::remove_ascii_tab_or_newline(tmp_buffer);
14400
0
    internal_input = tmp_buffer;
14401
2.33k
  } else {
14402
2.33k
    internal_input = input;
14403
2.33k
  }
14404
14405
  // If url is special, then:
14406
2.33k
  if (is_special()) {
14407
2.33k
    if (internal_input.empty()) {
14408
102
      update_base_pathname("/");
14409
2.22k
    } else if ((internal_input[0] == '/') || (internal_input[0] == '\\')) {
14410
2.22k
      consume_prepared_path(internal_input.substr(1));
14411
2.22k
    } else {
14412
0
      consume_prepared_path(internal_input);
14413
0
    }
14414
2.33k
  } else if (!internal_input.empty()) {
14415
0
    if (internal_input[0] == '/') {
14416
0
      consume_prepared_path(internal_input.substr(1));
14417
0
    } else {
14418
0
      consume_prepared_path(internal_input);
14419
0
    }
14420
0
  } else {
14421
    // Non-special URLs with an empty host can have their paths erased
14422
    // Path-only URLs cannot have their paths erased
14423
0
    if (components.host_start == components.host_end && !has_authority()) {
14424
0
      update_base_pathname("/");
14425
0
    }
14426
0
  }
14427
2.33k
  ADA_ASSERT_TRUE(validate());
14428
2.33k
}
14429
14430
0
void url_aggregator::set_search(const std::string_view input) {
14431
0
  if (helpers::overlaps(input, buffer)) {
14432
0
    set_search(std::string(input));
14433
0
    return;
14434
0
  }
14435
0
  ada_log("url_aggregator::set_search ", input);
14436
0
  ADA_ASSERT_TRUE(validate());
14437
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14438
0
  if (input.empty()) {
14439
0
    clear_search();
14440
0
    helpers::strip_trailing_spaces_from_opaque_path(*this);
14441
0
    return;
14442
0
  }
14443
14444
0
  std::string_view stripped = input[0] == '?' ? input.substr(1) : input;
14445
  // Fast path: no tabs/newlines (the common case) avoids the std::string
14446
  // allocation entirely by passing the view straight to update_base_search.
14447
0
  std::string cleaned;
14448
0
  std::string_view effective = stripped;
14449
0
  if (unicode::has_tabs_or_newline(stripped)) {
14450
0
    cleaned = stripped;
14451
0
    helpers::remove_ascii_tab_or_newline(cleaned);
14452
0
    effective = cleaned;
14453
0
  }
14454
14455
0
  auto query_percent_encode_set =
14456
0
      is_special() ? ada::character_sets::SPECIAL_QUERY_PERCENT_ENCODE
14457
0
                   : ada::character_sets::QUERY_PERCENT_ENCODE;
14458
14459
0
  std::optional<url_aggregator> saved_url;
14460
0
  if (needs_rollback_snapshot(effective.size())) {
14461
0
    saved_url = *this;
14462
0
  }
14463
0
  update_base_search(effective, query_percent_encode_set);
14464
0
  if (saved_url && buffer.size() > ada::get_max_input_length()) {
14465
0
    *this = std::move(*saved_url);
14466
0
    return;
14467
0
  }
14468
0
  ADA_ASSERT_TRUE(validate());
14469
0
}
14470
14471
0
void url_aggregator::set_hash(const std::string_view input) {
14472
0
  if (helpers::overlaps(input, buffer)) {
14473
0
    set_hash(std::string(input));
14474
0
    return;
14475
0
  }
14476
0
  ada_log("url_aggregator::set_hash ", input);
14477
0
  ADA_ASSERT_TRUE(validate());
14478
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14479
0
  if (input.empty()) {
14480
0
    if (components.hash_start != url_components::omitted) {
14481
0
      buffer.resize(components.hash_start);
14482
0
      components.hash_start = url_components::omitted;
14483
0
    }
14484
0
    helpers::strip_trailing_spaces_from_opaque_path(*this);
14485
0
    return;
14486
0
  }
14487
14488
0
  std::string_view stripped = input[0] == '#' ? input.substr(1) : input;
14489
  // Fast path: no tabs/newlines (the common case) avoids the std::string
14490
  // allocation entirely by passing the view straight through.
14491
0
  std::string cleaned;
14492
0
  std::string_view effective = stripped;
14493
0
  if (unicode::has_tabs_or_newline(stripped)) {
14494
0
    cleaned = stripped;
14495
0
    helpers::remove_ascii_tab_or_newline(cleaned);
14496
0
    effective = cleaned;
14497
0
  }
14498
0
  std::optional<url_aggregator> saved_url;
14499
0
  if (needs_rollback_snapshot(effective.size())) {
14500
0
    saved_url = *this;
14501
0
  }
14502
0
  update_unencoded_base_hash(effective);
14503
0
  if (saved_url && buffer.size() > ada::get_max_input_length()) {
14504
0
    *this = std::move(*saved_url);
14505
0
    return;
14506
0
  }
14507
0
  ADA_ASSERT_TRUE(validate());
14508
0
}
14509
14510
0
bool url_aggregator::set_href(const std::string_view input) {
14511
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14512
0
  ada_log("url_aggregator::set_href ", input, " [", input.size(), " bytes]");
14513
0
  ada::result<url_aggregator> out = ada::parse<url_aggregator>(input);
14514
0
  ada_log("url_aggregator::set_href, success :", out.has_value());
14515
14516
0
  if (out) {
14517
    // The parser enforces get_max_input_length() on both the input and the
14518
    // normalized result. This is a defense-in-depth check.
14519
0
    if (out->buffer.size() > ada::get_max_input_length()) {
14520
0
      return false;
14521
0
    }
14522
0
    ada_log("url_aggregator::set_href, parsed ", out->to_string());
14523
    // TODO: Figure out why the following line puts test to never finish.
14524
0
    *this = std::move(*out);
14525
0
  }
14526
14527
0
  return out.has_value();
14528
0
}
14529
14530
30.6k
ada_really_inline bool url_aggregator::parse_host(std::string_view input) {
14531
30.6k
  ada_log("url_aggregator:parse_host \"", input, "\" [", input.size(),
14532
30.6k
          " bytes]");
14533
30.6k
  ADA_ASSERT_TRUE(validate());
14534
30.6k
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14535
30.6k
  if (input.empty()) {
14536
41
    return is_valid = false;
14537
41
  }  // technically unnecessary.
14538
  // If input starts with U+005B ([), then:
14539
30.6k
  if (input[0] == '[') {
14540
    // If input does not end with U+005D (]), validation error, return failure.
14541
1.42k
    if (input.back() != ']') {
14542
318
      return is_valid = false;
14543
318
    }
14544
1.10k
    ada_log("parse_host ipv6");
14545
14546
    // Return the result of IPv6 parsing input with its leading U+005B ([) and
14547
    // trailing U+005D (]) removed.
14548
1.10k
    input.remove_prefix(1);
14549
1.10k
    input.remove_suffix(1);
14550
1.10k
    return parse_ipv6(input);
14551
1.42k
  }
14552
14553
  // If isNotSpecial is true, then return the result of opaque-host parsing
14554
  // input.
14555
29.1k
  if (!is_special()) {
14556
1.28k
    return parse_opaque_host(input);
14557
1.28k
  }
14558
  // Let domain be the result of running UTF-8 decode without BOM on the
14559
  // percent-decoding of input. Let asciiDomain be the result of running domain
14560
  // to ASCII with domain and false. The most common case is an ASCII input, in
14561
  // which case we do not need to call the expensive 'to_ascii' if a few
14562
  // conditions are met: no '%' and no 'xn-' subsequence.
14563
14564
  // Often, the input does not contain any forbidden code points, and no upper
14565
  // case ASCII letter, then we can just copy it to the buffer. We want to
14566
  // optimize for such a common case.
14567
14568
  // Fast path: try to parse as pure decimal IPv4 first.
14569
27.9k
  const uint64_t fast_result = checkers::try_parse_ipv4_fast(input);
14570
27.9k
  if (fast_result < checkers::ipv4_fast_fail) {
14571
1.28k
    if (!input.empty() && input.back() == '.') {
14572
43
      update_base_hostname(input.substr(0, input.size() - 1));
14573
1.24k
    } else {
14574
1.24k
      update_base_hostname(input);
14575
1.24k
    }
14576
1.28k
    host_type = IPV4;
14577
1.28k
    is_valid = true;
14578
1.28k
    ada_log("parse_host fast path decimal ipv4");
14579
1.28k
    ADA_ASSERT_TRUE(validate());
14580
1.28k
    return true;
14581
1.28k
  }
14582
26.6k
  uint8_t is_forbidden_or_upper =
14583
26.6k
      unicode::contains_forbidden_domain_code_point_or_upper(input.data(),
14584
26.6k
                                                             input.size());
14585
26.6k
  static constexpr std::string_view xn_dash{"xn-", 3};
14586
26.6k
  if ((is_forbidden_or_upper & 1) == 0) {
14587
16.3k
    if ((is_forbidden_or_upper & 2) != 0) {
14588
3.00k
      std::string lowered(input);
14589
3.00k
      unicode::to_lower_ascii(lowered.data(), lowered.size());
14590
3.00k
      if (lowered.find('-') == std::string_view::npos ||
14591
2.78k
          lowered.find(xn_dash) == std::string_view::npos) {
14592
        // Check IPv4 before mutating so failures leave the buffer untouched.
14593
        // This also avoids a double buffer rewrite for hex/octal IPv4.
14594
2.78k
        if (checkers::is_ipv4(lowered)) {
14595
498
          ada_log("parse_host fast path ipv4");
14596
498
          return parse_ipv4(lowered, false);
14597
498
        }
14598
2.29k
        update_base_hostname(lowered);
14599
2.29k
        ada_log("parse_host fast path ", get_hostname());
14600
2.29k
        is_valid = true;
14601
2.29k
        return true;
14602
2.78k
      }
14603
13.3k
    } else if (input.find('-') == std::string_view::npos ||
14604
10.1k
               input.find(xn_dash) == std::string_view::npos) {
14605
      // Check IPv4 before mutating so failures leave the buffer untouched.
14606
10.1k
      if (checkers::is_ipv4(input)) {
14607
2.42k
        ada_log("parse_host fast path ipv4");
14608
2.42k
        return parse_ipv4(input, false);
14609
2.42k
      }
14610
7.69k
      update_base_hostname(input);
14611
7.69k
      ada_log("parse_host fast path ", get_hostname());
14612
7.69k
      is_valid = true;
14613
7.69k
      return true;
14614
10.1k
    }
14615
16.3k
  } else if (const size_t first_percent = input.find('%');
14616
10.2k
             first_percent != std::string_view::npos) {
14617
2.05k
    std::string decoded = unicode::percent_decode(input, first_percent);
14618
2.05k
    const uint8_t decoded_flags =
14619
2.05k
        unicode::contains_forbidden_domain_code_point_or_upper(decoded.data(),
14620
2.05k
                                                               decoded.size());
14621
2.05k
    if ((decoded_flags & 1) == 0) {
14622
1.42k
      if ((decoded_flags & 2) != 0) {
14623
640
        unicode::to_lower_ascii(decoded.data(), decoded.size());
14624
640
      }
14625
1.42k
      if (decoded.find('-') == std::string_view::npos ||
14626
1.30k
          decoded.find(xn_dash) == std::string_view::npos) {
14627
        // Check IPv4 before mutating so failures leave the buffer untouched.
14628
1.30k
        if (checkers::is_ipv4(decoded)) {
14629
568
          return parse_ipv4(decoded, false);
14630
568
        }
14631
740
        update_base_hostname(decoded);
14632
740
        is_valid = true;
14633
740
        return true;
14634
1.30k
      }
14635
1.42k
    }
14636
2.05k
  }
14637
  // We have encountered at least one forbidden code point or the input contains
14638
  // 'xn-' (case insensitive), so we need to call 'to_ascii' to perform the full
14639
  // conversion.
14640
14641
12.4k
  ada_log("parse_host calling to_ascii");
14642
12.4k
  std::optional<std::string> host = std::string(get_hostname());
14643
12.4k
  is_valid = ada::unicode::to_ascii(host, input, input.find('%'));
14644
12.4k
  if (!is_valid) {
14645
3.80k
    ada_log("parse_host to_ascii returns false");
14646
3.80k
    return is_valid = false;
14647
3.80k
  }
14648
8.61k
  ada_log("parse_host to_ascii succeeded ", *host, " [", host->size(),
14649
8.61k
          " bytes]");
14650
14651
8.61k
  if (std::ranges::any_of(host.value(),
14652
8.61k
                          ada::unicode::is_forbidden_domain_code_point)) {
14653
0
    return is_valid = false;
14654
0
  }
14655
14656
  // If asciiDomain ends in a number, then return the result of IPv4 parsing
14657
  // asciiDomain.
14658
8.61k
  if (checkers::is_ipv4(host.value())) {
14659
432
    ada_log("parse_host got ipv4 ", *host);
14660
432
    return parse_ipv4(host.value(), false);
14661
432
  }
14662
14663
8.17k
  update_base_hostname(host.value());
14664
8.17k
  ADA_ASSERT_TRUE(validate());
14665
8.17k
  return true;
14666
8.61k
}
14667
14668
template <bool override_hostname>
14669
0
bool url_aggregator::set_host_or_hostname(const std::string_view input) {
14670
0
  ada_log("url_aggregator::set_host_or_hostname ", input);
14671
0
  ADA_ASSERT_TRUE(validate());
14672
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14673
0
  if (has_opaque_path) {
14674
0
    return false;
14675
0
  }
14676
14677
  // parse_host no longer mutates the buffer on failure (IPv4 is checked
14678
  // before update_base_hostname), so the only rollback needed is for the
14679
  // length limit. Snapshot only when the bound can be reached, like the
14680
  // other setters do via needs_rollback_snapshot. That bound assumes
14681
  // percent-encoding (3x) is the worst growth, but domain to ASCII can grow
14682
  // a non-ASCII host further (U+337F, 3 bytes, becomes the 17-byte label
14683
  // "xn--6oqv20b1zgzxr"), so a non-ASCII host always takes the snapshot.
14684
0
  const bool was_valid = is_valid;
14685
0
  std::optional<url_aggregator> saved_url;
14686
  // The 3x bound covers percent-encoding. Domain-to-ASCII can grow a
14687
  // non-ASCII host further, so those inputs always snapshot. The byte
14688
  // scan runs only when the 3x bound did not already require a snapshot
14689
  // (the common ASCII setter path stays a size compare).
14690
0
  bool take_snapshot = needs_rollback_snapshot(input.size());
14691
0
  if (!take_snapshot) {
14692
0
    const size_t host_end = input.find('#');
14693
0
    const size_t n =
14694
0
        host_end == std::string_view::npos ? input.size() : host_end;
14695
0
    for (size_t i = 0; i < n; ++i) {
14696
0
      if (static_cast<unsigned char>(input[i]) >= 0x80) {
14697
0
        take_snapshot = true;
14698
0
        break;
14699
0
      }
14700
0
    }
14701
0
  }
14702
0
  if (take_snapshot) {
14703
0
    saved_url = *this;
14704
0
  }
14705
14706
0
  auto restore_on_failure = [&]() {
14707
0
    if (saved_url) {
14708
0
      *this = std::move(*saved_url);
14709
0
    } else {
14710
      // Buffer is untouched on parse failure; just restore the is_valid flag
14711
      // that parse_host may have cleared.
14712
0
      is_valid = was_valid;
14713
0
    }
14714
0
  };
Unexecuted instantiation: ada::url_aggregator::set_host_or_hostname<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda()#1}::operator()() const
Unexecuted instantiation: ada::url_aggregator::set_host_or_hostname<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda()#1}::operator()() const
14715
14716
0
  size_t host_end_pos = input.find('#');
14717
0
  std::string_view host_input(
14718
0
      input.data(),
14719
0
      host_end_pos != std::string_view::npos ? host_end_pos : input.size());
14720
  // Fast path: no tabs/newlines (the common case) avoids the std::string
14721
  // allocation by viewing the input prefix directly.
14722
0
  std::string _host_buf;
14723
0
  std::string_view new_host;
14724
0
  if (unicode::has_tabs_or_newline(host_input)) {
14725
0
    _host_buf = host_input;
14726
0
    helpers::remove_ascii_tab_or_newline(_host_buf);
14727
0
    new_host = _host_buf;
14728
0
  } else {
14729
0
    new_host = host_input;
14730
0
  }
14731
14732
0
  auto check_url_size = [&]() -> bool {
14733
0
    if (saved_url && buffer.size() > ada::get_max_input_length()) {
14734
0
      *this = std::move(*saved_url);
14735
0
      return false;
14736
0
    }
14737
0
    return true;
14738
0
  };
Unexecuted instantiation: ada::url_aggregator::set_host_or_hostname<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda()#2}::operator()() const
Unexecuted instantiation: ada::url_aggregator::set_host_or_hostname<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)::{lambda()#2}::operator()() const
14739
14740
  // If url's scheme is "file", then set state to file host state, instead of
14741
  // host state.
14742
0
  if (type != ada::scheme::type::FILE) {
14743
0
    std::string_view host_view = new_host;
14744
0
    auto [location, found_colon] =
14745
0
        helpers::get_host_delimiter_location(is_special(), host_view);
14746
14747
    // Otherwise, if c is U+003A (:) and insideBrackets is false, then:
14748
    // Note: the 'found_colon' value is true if and only if a colon was
14749
    // encountered while not inside brackets.
14750
0
    if (found_colon) {
14751
      // If buffer is the empty string, host-missing validation error, return
14752
      // failure.
14753
0
      std::string_view host_buffer = host_view.substr(0, location);
14754
0
      if (host_buffer.empty()) {
14755
0
        return false;
14756
0
      }
14757
14758
      // If state override is given and state override is hostname state, then
14759
      // return failure.
14760
0
      if constexpr (override_hostname) {
14761
0
        return false;
14762
0
      }
14763
14764
      // Let host be the result of host parsing buffer with url is not special.
14765
0
      bool succeeded = parse_host(host_buffer);
14766
0
      if (!succeeded) {
14767
0
        restore_on_failure();
14768
0
        return false;
14769
0
      } else if (has_dash_dot()) {
14770
        // The url now has a non-null host, so the "/." that guarded a
14771
        // leading "//" path is no longer needed. Drop it before the port is
14772
        // inserted at host_end, otherwise it stays wedged in the path.
14773
0
        delete_dash_dot();
14774
0
      }
14775
14776
      // Set url's host to host, buffer to the empty string, and state to port
14777
      // state.
14778
      // Not set_port(): its size check and rollback cover only the port.
14779
0
      std::string_view port_buffer = new_host.substr(location + 1);
14780
0
      std::string_view digits =
14781
0
          port_buffer.substr(0, port_buffer.find_first_not_of("0123456789"));
14782
0
      if (!digits.empty() && !cannot_have_credentials_or_port()) {
14783
0
        parse_port(digits);
14784
0
        is_valid = true;  // an out-of-range port is ignored
14785
0
      }
14786
0
      return check_url_size();
14787
0
    }
14788
    // Otherwise, if one of the following is true:
14789
    // - c is the EOF code point, U+002F (/), U+003F (?), or U+0023 (#)
14790
    // - url is special and c is U+005C (\)
14791
0
    else {
14792
      // If url is special and host_view is the empty string, host-missing
14793
      // validation error, return failure.
14794
0
      if (host_view.empty() && is_special()) {
14795
0
        return false;
14796
0
      }
14797
14798
      // Otherwise, if state override is given, host_view is the empty string,
14799
      // and either url includes credentials or url's port is non-null, then
14800
      // return failure.
14801
0
      if (host_view.empty() && (has_credentials() || has_port())) {
14802
0
        return false;
14803
0
      }
14804
14805
      // Let host be the result of host parsing host_view with url is not
14806
      // special.
14807
0
      if (host_view.empty() && !is_special()) {
14808
0
        if (has_hostname()) {
14809
0
          clear_hostname();  // easy!
14810
0
        } else if (has_dash_dot()) {
14811
0
          add_authority_slashes_if_needed();
14812
0
          delete_dash_dot();
14813
0
        } else {
14814
          // The url has no authority yet (e.g. "foo:/bar"); setting an empty
14815
          // host must still give it an (empty) authority, matching ada::url.
14816
0
          add_authority_slashes_if_needed();
14817
0
        }
14818
0
        return check_url_size();
14819
0
      }
14820
14821
0
      bool succeeded = parse_host(host_view);
14822
0
      if (!succeeded) {
14823
0
        restore_on_failure();
14824
0
        return false;
14825
0
      } else if (has_dash_dot()) {
14826
        // Should remove dash_dot from pathname
14827
0
        delete_dash_dot();
14828
0
      }
14829
0
      return check_url_size();
14830
0
    }
14831
0
  }
14832
14833
0
  size_t location = new_host.find_first_of("/\\?");
14834
0
  if (location != std::string_view::npos) {
14835
0
    new_host.remove_suffix(new_host.length() - location);
14836
0
  }
14837
14838
0
  if (new_host.empty()) {
14839
    // Set url's host to the empty string.
14840
0
    clear_hostname();
14841
0
  } else {
14842
    // Let host be the result of host parsing buffer with url is not special.
14843
0
    if (!parse_host(new_host)) {
14844
0
      restore_on_failure();
14845
0
      return false;
14846
0
    }
14847
14848
    // If host is "localhost", then set host to the empty string.
14849
0
    if (helpers::substring(buffer, components.host_start,
14850
0
                           components.host_end) == "localhost") {
14851
0
      clear_hostname();
14852
0
    }
14853
0
  }
14854
0
  ADA_ASSERT_TRUE(validate());
14855
0
  return check_url_size();
14856
0
}
Unexecuted instantiation: bool ada::url_aggregator::set_host_or_hostname<false>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
Unexecuted instantiation: bool ada::url_aggregator::set_host_or_hostname<true>(std::__1::basic_string_view<char, std::__1::char_traits<char> >)
14857
14858
0
bool url_aggregator::set_host(const std::string_view input) {
14859
0
  if (helpers::overlaps(input, buffer)) {
14860
0
    return set_host(std::string(input));
14861
0
  }
14862
0
  ada_log("url_aggregator::set_host '", input, "'");
14863
0
  ADA_ASSERT_TRUE(validate());
14864
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14865
0
  return set_host_or_hostname<false>(input);
14866
0
}
14867
14868
0
bool url_aggregator::set_hostname(const std::string_view input) {
14869
0
  if (helpers::overlaps(input, buffer)) {
14870
0
    return set_hostname(std::string(input));
14871
0
  }
14872
0
  ada_log("url_aggregator::set_hostname '", input, "'");
14873
0
  ADA_ASSERT_TRUE(validate());
14874
0
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
14875
0
  return set_host_or_hostname<true>(input);
14876
0
}
14877
14878
0
[[nodiscard]] std::string url_aggregator::get_origin() const {
14879
0
  ada_log("url_aggregator::get_origin");
14880
0
  if (is_special()) {
14881
    // Return a new opaque origin.
14882
0
    if (type == scheme::FILE) {
14883
0
      return "null";
14884
0
    }
14885
14886
0
    return helpers::concat(get_protocol(), "//", get_host());
14887
0
  }
14888
14889
0
  if (get_protocol() == "blob:") {
14890
0
    std::string_view path = get_pathname();
14891
0
    if (!path.empty()) {
14892
0
      auto out = ada::parse<ada::url_aggregator>(path);
14893
0
      if (out && (out->type == scheme::HTTP || out->type == scheme::HTTPS)) {
14894
        // If pathURL's scheme is not "http" and not "https", then return a
14895
        // new opaque origin.
14896
0
        return helpers::concat(out->get_protocol(), "//", out->get_host());
14897
0
      }
14898
0
    }
14899
0
  }
14900
14901
  // Return a new opaque origin.
14902
0
  return "null";
14903
0
}
14904
14905
[[nodiscard]] std::string_view url_aggregator::get_username() const
14906
0
    ada_lifetime_bound {
14907
0
  ada_log("url_aggregator::get_username");
14908
0
  if (has_non_empty_username()) {
14909
0
    return helpers::substring(buffer, components.protocol_end + 2,
14910
0
                              components.username_end);
14911
0
  }
14912
0
  return "";
14913
0
}
14914
14915
[[nodiscard]] std::string_view url_aggregator::get_password() const
14916
0
    ada_lifetime_bound {
14917
0
  ada_log("url_aggregator::get_password");
14918
0
  if (has_non_empty_password()) {
14919
0
    return helpers::substring(buffer, components.username_end + 1,
14920
0
                              components.host_start);
14921
0
  }
14922
0
  return "";
14923
0
}
14924
14925
[[nodiscard]] std::string_view url_aggregator::get_port() const
14926
0
    ada_lifetime_bound {
14927
0
  ada_log("url_aggregator::get_port");
14928
0
  if (components.port == url_components::omitted) {
14929
0
    return "";
14930
0
  }
14931
0
  return helpers::substring(buffer, components.host_end + 1,
14932
0
                            components.pathname_start);
14933
0
}
14934
14935
[[nodiscard]] std::string_view url_aggregator::get_hash() const
14936
0
    ada_lifetime_bound {
14937
0
  ada_log("url_aggregator::get_hash");
14938
  // If this's URL's fragment is either null or the empty string, then return
14939
  // the empty string. Return U+0023 (#), followed by this's URL's fragment.
14940
0
  if (components.hash_start == url_components::omitted) {
14941
0
    return "";
14942
0
  }
14943
0
  if (buffer.size() - components.hash_start <= 1) {
14944
0
    return "";
14945
0
  }
14946
0
  return helpers::substring(buffer, components.hash_start);
14947
0
}
14948
14949
[[nodiscard]] std::string_view url_aggregator::get_host() const
14950
168
    ada_lifetime_bound {
14951
168
  ada_log("url_aggregator::get_host");
14952
  // Technically, we should check if there is a hostname, but
14953
  // the code below works even if there isn't.
14954
  // if(!has_hostname()) { return ""; }
14955
168
  size_t start = components.host_start;
14956
168
  if (components.host_end > components.host_start &&
14957
38
      buffer[components.host_start] == '@') {
14958
0
    start++;
14959
0
  }
14960
  // if we have an empty host, then the space between components.host_end and
14961
  // components.pathname_start may be occupied by /.
14962
168
  if (start == components.host_end) {
14963
130
    return {};
14964
130
  }
14965
38
  return helpers::substring(buffer, start, components.pathname_start);
14966
168
}
14967
14968
[[nodiscard]] std::string_view url_aggregator::get_hostname() const
14969
18.8k
    ada_lifetime_bound {
14970
18.8k
  ada_log("url_aggregator::get_hostname");
14971
  // Technically, we should check if there is a hostname, but
14972
  // the code below works even if there isn't.
14973
  // if(!has_hostname()) { return ""; }
14974
18.8k
  size_t start = components.host_start;
14975
  // So host_start is not where the host begins.
14976
18.8k
  if (components.host_end > components.host_start &&
14977
5.21k
      buffer[components.host_start] == '@') {
14978
202
    start++;
14979
202
  }
14980
18.8k
  return helpers::substring(buffer, start, components.host_end);
14981
18.8k
}
14982
14983
[[nodiscard]] std::string_view url_aggregator::get_search() const
14984
168
    ada_lifetime_bound {
14985
168
  ada_log("url_aggregator::get_search");
14986
  // If this's URL's query is either null or the empty string, then return the
14987
  // empty string. Return U+003F (?), followed by this's URL's query.
14988
168
  if (components.search_start == url_components::omitted) {
14989
0
    return "";
14990
0
  }
14991
168
  auto ending_index = uint32_t(buffer.size());
14992
168
  if (components.hash_start != url_components::omitted) {
14993
35
    ending_index = components.hash_start;
14994
35
  }
14995
168
  if (ending_index - components.search_start <= 1) {
14996
72
    return "";
14997
72
  }
14998
96
  return helpers::substring(buffer, components.search_start, ending_index);
14999
168
}
15000
15001
[[nodiscard]] std::string_view url_aggregator::get_protocol() const
15002
2.09k
    ada_lifetime_bound {
15003
2.09k
  ada_log("url_aggregator::get_protocol");
15004
2.09k
  return helpers::substring(buffer, 0, components.protocol_end);
15005
2.09k
}
15006
15007
0
[[nodiscard]] std::string ada::url_aggregator::to_string() const {
15008
0
  ada_log("url_aggregator::to_string buffer:", buffer, " [", buffer.size(),
15009
0
          " bytes]");
15010
0
  if (!is_valid) {
15011
0
    return "null";
15012
0
  }
15013
15014
0
  std::string answer;
15015
0
  auto back = std::back_insert_iterator(answer);
15016
0
  answer.append("{\n");
15017
15018
0
  answer.append("\t\"buffer\":\"");
15019
0
  helpers::encode_json(buffer, back);
15020
0
  answer.append("\",\n");
15021
15022
0
  answer.append("\t\"protocol\":\"");
15023
0
  helpers::encode_json(get_protocol(), back);
15024
0
  answer.append("\",\n");
15025
15026
0
  if (has_credentials()) {
15027
0
    answer.append("\t\"username\":\"");
15028
0
    helpers::encode_json(get_username(), back);
15029
0
    answer.append("\",\n");
15030
0
    answer.append("\t\"password\":\"");
15031
0
    helpers::encode_json(get_password(), back);
15032
0
    answer.append("\",\n");
15033
0
  }
15034
15035
0
  answer.append("\t\"host\":\"");
15036
0
  helpers::encode_json(get_host(), back);
15037
0
  answer.append("\",\n");
15038
15039
0
  answer.append("\t\"path\":\"");
15040
0
  helpers::encode_json(get_pathname(), back);
15041
0
  answer.append("\",\n");
15042
0
  answer.append("\t\"opaque path\":");
15043
0
  answer.append((has_opaque_path ? "true" : "false"));
15044
0
  answer.append(",\n");
15045
15046
0
  if (components.search_start != url_components::omitted) {
15047
0
    answer.append("\t\"query\":\"");
15048
0
    helpers::encode_json(get_search(), back);
15049
0
    answer.append("\",\n");
15050
0
  }
15051
0
  if (components.hash_start != url_components::omitted) {
15052
0
    answer.append("\t\"fragment\":\"");
15053
0
    helpers::encode_json(get_hash(), back);
15054
0
    answer.append("\",\n");
15055
0
  }
15056
15057
0
  auto convert_offset_to_string = [](uint32_t offset) -> std::string {
15058
0
    if (offset == url_components::omitted) {
15059
0
      return "null";
15060
0
    } else {
15061
0
      return std::to_string(offset);
15062
0
    }
15063
0
  };
15064
15065
0
  answer.append("\t\"protocol_end\":");
15066
0
  answer.append(convert_offset_to_string(components.protocol_end));
15067
0
  answer.append(",\n");
15068
15069
0
  answer.append("\t\"username_end\":");
15070
0
  answer.append(convert_offset_to_string(components.username_end));
15071
0
  answer.append(",\n");
15072
15073
0
  answer.append("\t\"host_start\":");
15074
0
  answer.append(convert_offset_to_string(components.host_start));
15075
0
  answer.append(",\n");
15076
15077
0
  answer.append("\t\"host_end\":");
15078
0
  answer.append(convert_offset_to_string(components.host_end));
15079
0
  answer.append(",\n");
15080
15081
0
  answer.append("\t\"port\":");
15082
0
  answer.append(convert_offset_to_string(components.port));
15083
0
  answer.append(",\n");
15084
15085
0
  answer.append("\t\"pathname_start\":");
15086
0
  answer.append(convert_offset_to_string(components.pathname_start));
15087
0
  answer.append(",\n");
15088
15089
0
  answer.append("\t\"search_start\":");
15090
0
  answer.append(convert_offset_to_string(components.search_start));
15091
0
  answer.append(",\n");
15092
15093
0
  answer.append("\t\"hash_start\":");
15094
0
  answer.append(convert_offset_to_string(components.hash_start));
15095
0
  answer.append("\n}");
15096
15097
0
  return answer;
15098
0
}
15099
15100
0
[[nodiscard]] bool url_aggregator::has_valid_domain() const noexcept {
15101
0
  if (components.host_start == components.host_end) {
15102
0
    return false;
15103
0
  }
15104
  // Avoid allocation: construct a string_view directly into the buffer.
15105
0
  size_t start = components.host_start;
15106
0
  if (components.host_end > components.host_start &&
15107
0
      buffer[components.host_start] == '@') {
15108
0
    start++;
15109
0
  }
15110
0
  return checkers::verify_dns_length(
15111
0
      std::string_view(buffer.data() + start, components.host_end - start));
15112
0
}
15113
15114
3.92k
bool url_aggregator::parse_ipv4(std::string_view input, bool in_place) {
15115
3.92k
  ada_log("parse_ipv4 ", input, " [", input.size(),
15116
3.92k
          " bytes], overlaps with buffer: ",
15117
3.92k
          helpers::overlaps(input, buffer) ? "yes" : "no");
15118
3.92k
  ADA_ASSERT_TRUE(validate());
15119
3.92k
  if (input.empty()) {
15120
0
    return is_valid = false;
15121
0
  }
15122
3.92k
  const bool trailing_dot = (input.back() == '.');
15123
3.92k
  if (trailing_dot) {
15124
134
    input.remove_suffix(1);
15125
134
    if (input.empty()) {
15126
0
      return is_valid = false;
15127
0
    }
15128
134
  }
15129
15130
3.92k
  const uint64_t fast = checkers::try_parse_ipv4_fast(input);
15131
3.92k
  if (fast < checkers::ipv4_fast_fail) [[likely]] {
15132
    // Pure decimal: keep the buffer when it already holds the address.
15133
    // Otherwise write the (trailing-dot-stripped) input.
15134
44
    if (!(in_place && !trailing_dot)) {
15135
44
      if (helpers::overlaps(input, buffer)) {
15136
0
        update_base_hostname(std::string(input));
15137
44
      } else {
15138
44
        update_base_hostname(input);
15139
44
      }
15140
44
    }
15141
44
    host_type = IPV4;
15142
44
    ADA_ASSERT_TRUE(validate());
15143
44
    return true;
15144
44
  }
15145
15146
3.87k
  const char* p = input.data();
15147
3.87k
  const char* end = p + input.size();
15148
3.87k
  uint64_t ipv4 = 0;
15149
3.87k
  int digit_count = 0;
15150
3.87k
  int pure_decimal_count = 0;
15151
15152
4.85k
  for (; digit_count < 4 && p < end; ++digit_count) {
15153
4.82k
    uint64_t segment = 0;
15154
4.82k
    bool pure = false;
15155
4.82k
    if (!detail::parse_ipv4_number(p, end, segment, pure)) {
15156
720
      return is_valid = false;
15157
720
    }
15158
4.10k
    if (pure) {
15159
3.00k
      ++pure_decimal_count;
15160
3.00k
    }
15161
4.10k
    if (p >= end) {
15162
3.07k
      const unsigned shift = static_cast<unsigned>(32 - digit_count * 8);
15163
3.07k
      if (segment >= (uint64_t{1} << shift)) {
15164
52
        return is_valid = false;
15165
52
      }
15166
3.02k
      ipv4 = (ipv4 << shift) | segment;
15167
3.02k
      goto ipv4_done;
15168
3.07k
    }
15169
1.03k
    if (segment > 255 || *p != '.') {
15170
58
      return is_valid = false;
15171
58
    }
15172
972
    ipv4 = (ipv4 << 8) | segment;
15173
972
    ++p;
15174
972
  }
15175
22
  if (digit_count != 4 || p != end) {
15176
22
    return is_valid = false;
15177
22
  }
15178
3.02k
ipv4_done:
15179
3.02k
  ada_log("url_aggregator::parse_ipv4 completed ", get_href(),
15180
3.02k
          " host: ", get_host());
15181
3.02k
  if (in_place && pure_decimal_count == 4 && !trailing_dot) {
15182
0
    ada_log(
15183
0
        "url_aggregator::parse_ipv4 completed and was already correct in the "
15184
0
        "buffer");
15185
3.02k
  } else {
15186
3.02k
    update_base_hostname(ada::serializers::ipv4(ipv4));
15187
3.02k
  }
15188
3.02k
  host_type = IPV4;
15189
3.02k
  ADA_ASSERT_TRUE(validate());
15190
3.02k
  return true;
15191
22
}
15192
15193
1.10k
bool url_aggregator::parse_ipv6(std::string_view input) {
15194
1.10k
  ada_log("parse_ipv6 ", input, " [", input.size(), " bytes]");
15195
1.10k
  ADA_ASSERT_TRUE(validate());
15196
1.10k
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
15197
1.10k
  if (input.empty() || input.size() > 45) [[unlikely]] {
15198
60
    return is_valid = false;
15199
60
  }
15200
1.04k
  std::array<uint16_t, 8> address{};
15201
#if defined(ADA_AVX512_IPV6)
15202
  if (bool simd_valid; detail::try_parse_ipv6_avx512(input.data(), input.size(),
15203
                                                     address, simd_valid)) {
15204
    if (!simd_valid) [[unlikely]] {
15205
      return is_valid = false;
15206
    }
15207
    const std::string serialized = ada::serializers::ipv6(address);
15208
    if (get_hostname() != serialized) {
15209
      update_base_hostname(serialized);
15210
    }
15211
    host_type = IPV6;
15212
    return true;
15213
  }
15214
  address = {};
15215
#endif
15216
1.04k
  const char* pointer = input.data();
15217
1.04k
  const char* const end = pointer + input.size();
15218
1.04k
  int piece_index = 0;
15219
1.04k
  int compress = -1;
15220
15221
1.04k
  if (*pointer == ':') {
15222
402
    if (input.size() == 1 || pointer[1] != ':') [[unlikely]] {
15223
24
      return is_valid = false;
15224
24
    }
15225
378
    pointer += 2;
15226
378
    compress = ++piece_index;
15227
378
  }
15228
15229
3.03k
  while (pointer != end) {
15230
2.32k
    if (piece_index == 8) [[unlikely]] {
15231
6
      return is_valid = false;
15232
6
    }
15233
2.32k
    if (*pointer == ':') {
15234
292
      if (compress != -1) [[unlikely]] {
15235
6
        return is_valid = false;
15236
6
      }
15237
286
      ++pointer;
15238
286
      compress = ++piece_index;
15239
286
      continue;
15240
292
    }
15241
15242
2.02k
    uint16_t value = 0;
15243
2.02k
    const int length = detail::parse_hex_piece(pointer, end, value);
15244
15245
2.02k
    if (pointer != end && *pointer == '.') {
15246
194
      if (length == 0) [[unlikely]] {
15247
6
        return is_valid = false;
15248
6
      }
15249
188
      pointer -= length;
15250
188
      if (piece_index > 6) [[unlikely]] {
15251
6
        return is_valid = false;
15252
6
      }
15253
15254
182
      int numbers_seen = 0;
15255
518
      while (pointer != end) {
15256
456
        int ipv4_piece = -1;
15257
456
        if (numbers_seen > 0) {
15258
274
          if (*pointer == '.' && numbers_seen < 4) {
15259
236
            ++pointer;
15260
236
          } else {
15261
38
            return is_valid = false;
15262
38
          }
15263
274
        }
15264
418
        if (pointer == end || *pointer < '0' || *pointer > '9') [[unlikely]] {
15265
64
          return is_valid = false;
15266
64
        }
15267
354
        ipv4_piece = *pointer - '0';
15268
354
        ++pointer;
15269
354
        if (pointer != end && *pointer >= '0' && *pointer <= '9') {
15270
122
          if (ipv4_piece == 0) [[unlikely]] {
15271
6
            return is_valid = false;
15272
6
          }
15273
116
          ipv4_piece = ipv4_piece * 10 + (*pointer - '0');
15274
116
          ++pointer;
15275
116
          if (pointer != end && *pointer >= '0' && *pointer <= '9') {
15276
60
            ipv4_piece = ipv4_piece * 10 + (*pointer - '0');
15277
60
            ++pointer;
15278
60
            if (ipv4_piece > 255) [[unlikely]] {
15279
12
              return is_valid = false;
15280
12
            }
15281
60
          }
15282
116
        }
15283
336
        address[static_cast<size_t>(piece_index)] = static_cast<uint16_t>(
15284
336
            address[static_cast<size_t>(piece_index)] * 0x100 +
15285
336
            static_cast<uint16_t>(ipv4_piece));
15286
336
        ++numbers_seen;
15287
336
        if (numbers_seen == 2 || numbers_seen == 4) {
15288
134
          ++piece_index;
15289
134
        }
15290
336
      }
15291
62
      if (numbers_seen != 4) [[unlikely]] {
15292
38
        return is_valid = false;
15293
38
      }
15294
24
      break;
15295
62
    }
15296
15297
1.83k
    if (length == 0) [[unlikely]] {
15298
88
      return is_valid = false;
15299
88
    }
15300
15301
1.74k
    if (pointer != end && *pointer == ':') {
15302
1.35k
      ++pointer;
15303
1.35k
      if (pointer == end) [[unlikely]] {
15304
6
        return is_valid = false;
15305
6
      }
15306
1.35k
    } else if (pointer != end) [[unlikely]] {
15307
18
      return is_valid = false;
15308
18
    }
15309
15310
1.72k
    address[static_cast<size_t>(piece_index)] = value;
15311
1.72k
    ++piece_index;
15312
1.72k
  }
15313
15314
730
  if (compress != -1) {
15315
646
    const int right = piece_index - compress;
15316
646
    if (right > 0) {
15317
312
      const size_t dest = static_cast<size_t>(8 - right);
15318
312
      const size_t src = static_cast<size_t>(compress);
15319
312
      if (dest != src) {
15320
784
        for (size_t i = static_cast<size_t>(right); i-- > 0;) {
15321
514
          address[dest + i] = address[src + i];
15322
514
          address[src + i] = 0;
15323
514
        }
15324
270
      }
15325
312
    }
15326
646
  } else if (piece_index != 8) [[unlikely]] {
15327
46
    return is_valid = false;
15328
46
  }
15329
15330
  // Serialize once; skip rewrite when hostname is already canonical.
15331
684
  const std::string serialized = ada::serializers::ipv6(address);
15332
684
  const std::string_view current = get_hostname();
15333
684
  if (current.size() == serialized.size() &&
15334
0
      std::memcmp(current.data(), serialized.data(), serialized.size()) == 0) {
15335
0
    ada_log("parse_ipv6 in-place canonical match");
15336
684
  } else {
15337
684
    update_base_hostname(serialized);
15338
684
  }
15339
684
  ada_log("parse_ipv6 ", get_hostname());
15340
684
  ADA_ASSERT_TRUE(validate());
15341
684
  host_type = IPV6;
15342
684
  return true;
15343
730
}
15344
15345
1.28k
bool url_aggregator::parse_opaque_host(std::string_view input) {
15346
1.28k
  ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
15347
1.28k
  ADA_ASSERT_TRUE(validate());
15348
1.28k
  ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
15349
1.28k
  if (std::ranges::any_of(input, ada::unicode::is_forbidden_host_code_point)) {
15350
28
    return is_valid = false;
15351
28
  }
15352
15353
  // Return the result of running UTF-8 percent-encode on input using the C0
15354
  // control percent-encode set.
15355
1.25k
  size_t idx = ada::unicode::percent_encode_index(
15356
1.25k
      input, character_sets::C0_CONTROL_PERCENT_ENCODE);
15357
1.25k
  if (idx == input.size()) {
15358
712
    update_base_hostname(input);
15359
712
  } else {
15360
    // We only create a temporary string if we need to.
15361
542
    update_base_hostname(ada::unicode::percent_encode(
15362
542
        input, character_sets::C0_CONTROL_PERCENT_ENCODE, idx));
15363
542
  }
15364
1.25k
  ADA_ASSERT_TRUE(validate());
15365
1.25k
  return true;
15366
1.28k
}
15367
15368
0
[[nodiscard]] std::string url_aggregator::to_diagram() const {
15369
0
  if (!is_valid) {
15370
0
    return "invalid";
15371
0
  }
15372
0
  std::string answer;
15373
0
  answer.append(buffer);
15374
0
  answer.append(" [");
15375
0
  answer.append(std::to_string(buffer.size()));
15376
0
  answer.append(" bytes]");
15377
0
  answer.append("\n");
15378
  // first line
15379
0
  std::string line1;
15380
0
  line1.resize(buffer.size(), ' ');
15381
0
  if (components.hash_start != url_components::omitted) {
15382
0
    line1[components.hash_start] = '|';
15383
0
  }
15384
0
  if (components.search_start != url_components::omitted) {
15385
0
    line1[components.search_start] = '|';
15386
0
  }
15387
0
  if (components.pathname_start != buffer.size()) {
15388
0
    line1[components.pathname_start] = '|';
15389
0
  }
15390
0
  if (components.host_end != buffer.size()) {
15391
0
    line1[components.host_end] = '|';
15392
0
  }
15393
0
  if (components.host_start != buffer.size()) {
15394
0
    line1[components.host_start] = '|';
15395
0
  }
15396
0
  if (components.username_end != buffer.size()) {
15397
0
    line1[components.username_end] = '|';
15398
0
  }
15399
0
  if (components.protocol_end != buffer.size()) {
15400
0
    line1[components.protocol_end] = '|';
15401
0
  }
15402
0
  answer.append(line1);
15403
0
  answer.append("\n");
15404
15405
0
  std::string line2 = line1;
15406
0
  if (components.hash_start != url_components::omitted) {
15407
0
    line2[components.hash_start] = '`';
15408
0
    line1[components.hash_start] = ' ';
15409
15410
0
    for (size_t i = components.hash_start + 1; i < line2.size(); i++) {
15411
0
      line2[i] = '-';
15412
0
    }
15413
0
    line2.append(" hash_start");
15414
0
    answer.append(line2);
15415
0
    answer.append("\n");
15416
0
  }
15417
15418
0
  std::string line3 = line1;
15419
0
  if (components.search_start != url_components::omitted) {
15420
0
    line3[components.search_start] = '`';
15421
0
    line1[components.search_start] = ' ';
15422
15423
0
    for (size_t i = components.search_start + 1; i < line3.size(); i++) {
15424
0
      line3[i] = '-';
15425
0
    }
15426
0
    line3.append(" search_start ");
15427
0
    line3.append(std::to_string(components.search_start));
15428
0
    answer.append(line3);
15429
0
    answer.append("\n");
15430
0
  }
15431
15432
0
  std::string line4 = line1;
15433
0
  if (components.pathname_start != buffer.size()) {
15434
0
    line4[components.pathname_start] = '`';
15435
0
    line1[components.pathname_start] = ' ';
15436
0
    for (size_t i = components.pathname_start + 1; i < line4.size(); i++) {
15437
0
      line4[i] = '-';
15438
0
    }
15439
0
    line4.append(" pathname_start ");
15440
0
    line4.append(std::to_string(components.pathname_start));
15441
0
    answer.append(line4);
15442
0
    answer.append("\n");
15443
0
  }
15444
15445
0
  std::string line5 = line1;
15446
0
  if (components.host_end != buffer.size()) {
15447
0
    line5[components.host_end] = '`';
15448
0
    line1[components.host_end] = ' ';
15449
15450
0
    for (size_t i = components.host_end + 1; i < line5.size(); i++) {
15451
0
      line5[i] = '-';
15452
0
    }
15453
0
    line5.append(" host_end ");
15454
0
    line5.append(std::to_string(components.host_end));
15455
0
    answer.append(line5);
15456
0
    answer.append("\n");
15457
0
  }
15458
15459
0
  std::string line6 = line1;
15460
0
  if (components.host_start != buffer.size()) {
15461
0
    line6[components.host_start] = '`';
15462
0
    line1[components.host_start] = ' ';
15463
15464
0
    for (size_t i = components.host_start + 1; i < line6.size(); i++) {
15465
0
      line6[i] = '-';
15466
0
    }
15467
0
    line6.append(" host_start ");
15468
0
    line6.append(std::to_string(components.host_start));
15469
0
    answer.append(line6);
15470
0
    answer.append("\n");
15471
0
  }
15472
15473
0
  std::string line7 = line1;
15474
0
  if (components.username_end != buffer.size()) {
15475
0
    line7[components.username_end] = '`';
15476
0
    line1[components.username_end] = ' ';
15477
15478
0
    for (size_t i = components.username_end + 1; i < line7.size(); i++) {
15479
0
      line7[i] = '-';
15480
0
    }
15481
0
    line7.append(" username_end ");
15482
0
    line7.append(std::to_string(components.username_end));
15483
0
    answer.append(line7);
15484
0
    answer.append("\n");
15485
0
  }
15486
15487
0
  std::string line8 = line1;
15488
0
  if (components.protocol_end != buffer.size()) {
15489
0
    line8[components.protocol_end] = '`';
15490
0
    line1[components.protocol_end] = ' ';
15491
15492
0
    for (size_t i = components.protocol_end + 1; i < line8.size(); i++) {
15493
0
      line8[i] = '-';
15494
0
    }
15495
0
    line8.append(" protocol_end ");
15496
0
    line8.append(std::to_string(components.protocol_end));
15497
0
    answer.append(line8);
15498
0
    answer.append("\n");
15499
0
  }
15500
15501
0
  if (components.hash_start == url_components::omitted) {
15502
0
    answer.append("note: hash omitted\n");
15503
0
  }
15504
0
  if (components.search_start == url_components::omitted) {
15505
0
    answer.append("note: search omitted\n");
15506
0
  }
15507
0
  if (components.protocol_end > buffer.size()) {
15508
0
    answer.append("warning: protocol_end overflows\n");
15509
0
  }
15510
0
  if (components.username_end > buffer.size()) {
15511
0
    answer.append("warning: username_end overflows\n");
15512
0
  }
15513
0
  if (components.host_start > buffer.size()) {
15514
0
    answer.append("warning: host_start overflows\n");
15515
0
  }
15516
0
  if (components.host_end > buffer.size()) {
15517
0
    answer.append("warning: host_end overflows\n");
15518
0
  }
15519
0
  if (components.pathname_start > buffer.size()) {
15520
0
    answer.append("warning: pathname_start overflows\n");
15521
0
  }
15522
0
  return answer;
15523
0
}
15524
15525
6
void url_aggregator::delete_dash_dot() {
15526
6
  ada_log("url_aggregator::delete_dash_dot");
15527
6
  ADA_ASSERT_TRUE(validate());
15528
6
  ADA_ASSERT_TRUE(has_dash_dot());
15529
6
  buffer.erase(components.host_end, 2);
15530
6
  components.pathname_start -= 2;
15531
6
  if (components.search_start != url_components::omitted) {
15532
0
    components.search_start -= 2;
15533
0
  }
15534
6
  if (components.hash_start != url_components::omitted) {
15535
0
    components.hash_start -= 2;
15536
0
  }
15537
6
  ADA_ASSERT_TRUE(validate());
15538
6
  ADA_ASSERT_TRUE(!has_dash_dot());
15539
6
}
15540
15541
10.7k
inline void url_aggregator::consume_prepared_path(std::string_view input) {
15542
10.7k
  ada_log("url_aggregator::consume_prepared_path ", input);
15543
  /***
15544
   * This is largely duplicated code from helpers::parse_prepared_path, which is
15545
   * unfortunate. This particular function is nearly identical, except that it
15546
   * is a method on url_aggregator. The idea is that the trivial path (which is
15547
   * very common) merely appends to the buffer. This is the same trivial path as
15548
   * with helpers::parse_prepared_path, except that we have the additional check
15549
   * for is_at_path(). Otherwise, we grab a copy of the current path and we
15550
   * modify it, and then insert it back into the buffer.
15551
   */
15552
10.7k
  uint8_t accumulator = checkers::path_signature(input);
15553
  // Let us first detect a trivial case.
15554
  // If it is special, we check that we have no dot, no %,  no \ and no
15555
  // character needing percent encoding. Otherwise, we check that we have no %,
15556
  // no dot, and no character needing percent encoding.
15557
10.7k
  constexpr uint8_t need_encoding = 1;
15558
10.7k
  constexpr uint8_t backslash_char = 2;
15559
10.7k
  constexpr uint8_t dot_char = 4;
15560
10.7k
  constexpr uint8_t percent_char = 8;
15561
10.7k
  bool special = type != ada::scheme::NOT_SPECIAL;
15562
10.7k
  bool may_need_slow_file_handling = (type == ada::scheme::type::FILE &&
15563
1.66k
                                      checkers::is_windows_drive_letter(input));
15564
10.7k
  bool trivial_path =
15565
10.7k
      (special ? (accumulator == 0)
15566
10.7k
               : ((accumulator & (need_encoding | dot_char | percent_char)) ==
15567
1.55k
                  0)) &&
15568
4.87k
      (!may_need_slow_file_handling);
15569
10.7k
  if (accumulator == dot_char && !may_need_slow_file_handling) {
15570
    // '4' means that we have at least one dot, but nothing that requires
15571
    // percent encoding or decoding. The only part that is not trivial is
15572
    // that we may have single dots and double dots path segments.
15573
    // If we have such segments, then we either have a path that begins
15574
    // with '.' (easy to check), or we have the sequence './'.
15575
    // Note: input cannot be empty, it must at least contain one character ('.')
15576
    // Note: we know that '\' is not present.
15577
1.60k
    if (input[0] != '.') {
15578
863
      size_t slashdot = 0;
15579
863
      bool dot_is_file = true;
15580
5.79k
      for (;;) {
15581
5.79k
        slashdot = input.find("/.", slashdot);
15582
5.79k
        if (slashdot == std::string_view::npos) {  // common case
15583
863
          break;
15584
4.93k
        } else {  // uncommon
15585
          // only three cases matter: /./, /.. or a final /
15586
4.93k
          slashdot += 2;
15587
4.93k
          dot_is_file &= !(slashdot == input.size() || input[slashdot] == '.' ||
15588
1.91k
                           input[slashdot] == '/');
15589
4.93k
        }
15590
5.79k
      }
15591
863
      trivial_path = dot_is_file;
15592
863
    }
15593
1.60k
  }
15594
10.7k
  if (trivial_path && is_at_path()) {
15595
4.92k
    ada_log("parse_path trivial");
15596
4.92k
    buffer += '/';
15597
4.92k
    buffer += input;
15598
4.92k
    return;
15599
4.92k
  }
15600
5.81k
  std::string path = std::string(get_pathname());
15601
  // We are going to need to look a bit at the path, but let us see if we can
15602
  // ignore percent encoding *and* backslashes *and* percent characters.
15603
  // Except for the trivial case, this is likely to capture 99% of paths out
15604
  // there.
15605
5.81k
  bool fast_path =
15606
5.81k
      (special &&
15607
4.66k
       (accumulator & (need_encoding | backslash_char | percent_char)) == 0) &&
15608
1.40k
      (type != ada::scheme::type::FILE);
15609
5.81k
  if (fast_path) {
15610
1.21k
    ada_log("parse_prepared_path fast");
15611
    // Here we don't need to worry about \ or percent encoding.
15612
    // We also do not have a file protocol. We might have dots, however,
15613
    // but dots must as appear as '.', and they cannot be encoded because
15614
    // the symbol '%' is not present.
15615
1.21k
    size_t previous_location = 0;  // We start at 0.
15616
15.6k
    do {
15617
15.6k
      size_t new_location = input.find('/', previous_location);
15618
      // std::string_view path_view = input;
15619
      //  We process the last segment separately:
15620
15.6k
      if (new_location == std::string_view::npos) {
15621
1.21k
        std::string_view path_view = input.substr(previous_location);
15622
1.21k
        if (path_view == "..") {  // The path ends with ..
15623
          // e.g., if you receive ".." with an empty path, you go to "/".
15624
130
          if (path.empty()) {
15625
50
            path = '/';
15626
50
            update_base_pathname(path);
15627
50
            return;
15628
50
          }
15629
          // Fast case where we have nothing to do:
15630
80
          if (path.back() == '/') {
15631
27
            update_base_pathname(path);
15632
27
            return;
15633
27
          }
15634
          // If you have the path "/joe/myfriend",
15635
          // then you delete 'myfriend'.
15636
53
          path.resize(path.rfind('/') + 1);
15637
53
          update_base_pathname(path);
15638
53
          return;
15639
80
        }
15640
1.08k
        path += '/';
15641
1.08k
        if (path_view != ".") {
15642
840
          path.append(path_view);
15643
840
        }
15644
1.08k
        update_base_pathname(path);
15645
1.08k
        return;
15646
14.4k
      } else {
15647
        // This is a non-final segment.
15648
14.4k
        std::string_view path_view =
15649
14.4k
            input.substr(previous_location, new_location - previous_location);
15650
14.4k
        previous_location = new_location + 1;
15651
14.4k
        if (path_view == "..") {
15652
3.18k
          size_t last_delimiter = path.rfind('/');
15653
3.18k
          if (last_delimiter != std::string::npos) {
15654
1.23k
            path.erase(last_delimiter);
15655
1.23k
          }
15656
11.2k
        } else if (path_view != ".") {
15657
9.34k
          path += '/';
15658
9.34k
          path.append(path_view);
15659
9.34k
        }
15660
14.4k
      }
15661
15.6k
    } while (true);
15662
4.59k
  } else {
15663
4.59k
    ada_log("parse_path slow");
15664
    // we have reached the general case
15665
4.59k
    bool needs_percent_encoding = (accumulator & 1);
15666
32.1k
    do {
15667
32.1k
      size_t location = (special && (accumulator & 2))
15668
32.1k
                            ? input.find_first_of("/\\")
15669
32.1k
                            : input.find('/');
15670
32.1k
      std::string_view path_view = input;
15671
32.1k
      if (location != std::string_view::npos) {
15672
27.5k
        path_view.remove_suffix(path_view.size() - location);
15673
27.5k
        input.remove_prefix(location + 1);
15674
27.5k
      }
15675
      // Path encoding preserves dots and percent signs, so normalize first.
15676
32.1k
      if (unicode::is_double_dot_path_segment(path_view)) {
15677
4.45k
        helpers::shorten_path(path, type);
15678
4.45k
        if (location == std::string_view::npos) {
15679
255
          path += '/';
15680
255
        }
15681
27.7k
      } else if (unicode::is_single_dot_path_segment(path_view) &&
15682
1.42k
                 (location == std::string_view::npos)) {
15683
122
        path += '/';
15684
122
      }
15685
      // Otherwise, if path_view is not a single-dot path segment, then:
15686
27.6k
      else if (!unicode::is_single_dot_path_segment(path_view)) {
15687
        // If url's scheme is "file", url's path is empty, and path_view is a
15688
        // Windows drive letter, then replace the second code point in
15689
        // path_view with U+003A (:).
15690
26.3k
        if (type == ada::scheme::type::FILE && path.empty() &&
15691
879
            path_view.size() == 2 &&
15692
346
            checkers::is_windows_drive_letter(path_view)) {
15693
139
          path += '/';
15694
139
          path += path_view[0];
15695
139
          path += ':';
15696
139
          path_view.remove_prefix(2);
15697
139
          path.append(path_view);
15698
26.1k
        } else {
15699
          // Append encoded bytes directly to the pathname.
15700
26.1k
          path += '/';
15701
26.1k
          if (!needs_percent_encoding ||
15702
13.6k
              !ada::unicode::percent_encode<true>(
15703
21.1k
                  path_view, character_sets::PATH_PERCENT_ENCODE, path)) {
15704
21.1k
            path.append(path_view);
15705
21.1k
          }
15706
26.1k
        }
15707
26.3k
      }
15708
32.1k
      if (location == std::string_view::npos) {
15709
4.59k
        update_base_pathname(path);
15710
4.59k
        return;
15711
4.59k
      }
15712
32.1k
    } while (true);
15713
4.59k
  }
15714
5.81k
}
15715
}  // namespace ada
15716
/* end file src/url_aggregator.cpp */
15717
15718
#if ADA_INCLUDE_URL_PATTERN
15719
/* begin file src/url_pattern.cpp */
15720
#if ADA_INCLUDE_URL_PATTERN
15721
15722
15723
#include <algorithm>
15724
#include <optional>
15725
#include <string>
15726
#include <string_view>
15727
#include <utility>
15728
15729
namespace ada {
15730
15731
tl::expected<url_pattern_init, errors> url_pattern_init::process(
15732
    const url_pattern_init& init, url_pattern_init::process_type type,
15733
    std::optional<std::string_view> protocol,
15734
    std::optional<std::string_view> username,
15735
    std::optional<std::string_view> password,
15736
    std::optional<std::string_view> hostname,
15737
    std::optional<std::string_view> port,
15738
    std::optional<std::string_view> pathname,
15739
    std::optional<std::string_view> search,
15740
0
    std::optional<std::string_view> hash) {
15741
  // Let result be the result of creating a new URLPatternInit.
15742
0
  auto result = url_pattern_init{};
15743
15744
  // If protocol is not null, set result["protocol"] to protocol.
15745
0
  if (protocol.has_value()) result.protocol = *protocol;
15746
15747
  // If username is not null, set result["username"] to username.
15748
0
  if (username.has_value()) result.username = *username;
15749
15750
  // If password is not null, set result["password"] to password.
15751
0
  if (password.has_value()) result.password = *password;
15752
15753
  // If hostname is not null, set result["hostname"] to hostname.
15754
0
  if (hostname.has_value()) result.hostname = *hostname;
15755
15756
  // If port is not null, set result["port"] to port.
15757
0
  if (port.has_value()) result.port = *port;
15758
15759
  // If pathname is not null, set result["pathname"] to pathname.
15760
0
  if (pathname.has_value()) result.pathname = *pathname;
15761
15762
  // If search is not null, set result["search"] to search.
15763
0
  if (search.has_value()) result.search = *search;
15764
15765
  // If hash is not null, set result["hash"] to hash.
15766
0
  if (hash.has_value()) result.hash = *hash;
15767
15768
  // Let baseURL be null.
15769
0
  std::optional<url_aggregator> base_url{};
15770
15771
  // If init["baseURL"] exists:
15772
0
  if (init.base_url.has_value()) {
15773
    // Set baseURL to the result of parsing init["baseURL"].
15774
0
    auto parsing_result = ada::parse<url_aggregator>(*init.base_url);
15775
    // If baseURL is failure, then throw a TypeError.
15776
0
    if (!parsing_result) {
15777
0
      return tl::unexpected(errors::type_error);
15778
0
    }
15779
0
    base_url = std::move(*parsing_result);
15780
15781
    // If init["protocol"] does not exist, then set result["protocol"] to the
15782
    // result of processing a base URL string given baseURL's scheme and type.
15783
0
    if (!init.protocol.has_value()) {
15784
0
      ADA_ASSERT_TRUE(base_url.has_value());
15785
0
      std::string_view base_url_protocol = base_url->get_protocol();
15786
0
      if (base_url_protocol.ends_with(":")) base_url_protocol.remove_suffix(1);
15787
0
      result.protocol =
15788
0
          url_pattern_helpers::process_base_url_string(base_url_protocol, type);
15789
0
    }
15790
15791
    // If type is not "pattern" and init contains none of "protocol",
15792
    // "hostname", "port" and "username", then set result["username"] to the
15793
    // result of processing a base URL string given baseURL's username and type.
15794
0
    if (type != process_type::pattern && !init.protocol && !init.hostname &&
15795
0
        !init.port && !init.username) {
15796
0
      result.username = url_pattern_helpers::process_base_url_string(
15797
0
          base_url->get_username(), type);
15798
0
    }
15799
15800
    // TODO: Optimization opportunity: Merge this with the previous check.
15801
    // If type is not "pattern" and init contains none of "protocol",
15802
    // "hostname", "port", "username" and "password", then set
15803
    // result["password"] to the result of processing a base URL string given
15804
    // baseURL's password and type.
15805
0
    if (type != process_type::pattern && !init.protocol && !init.hostname &&
15806
0
        !init.port && !init.username && !init.password) {
15807
0
      result.password = url_pattern_helpers::process_base_url_string(
15808
0
          base_url->get_password(), type);
15809
0
    }
15810
15811
    // If init contains neither "protocol" nor "hostname", then:
15812
0
    if (!init.protocol && !init.hostname) {
15813
      // Let baseHost be baseURL's host.
15814
      // If baseHost is null, then set baseHost to the empty string.
15815
0
      auto base_host = base_url->get_hostname();
15816
      // Set result["hostname"] to the result of processing a base URL string
15817
      // given baseHost and type.
15818
0
      result.hostname =
15819
0
          url_pattern_helpers::process_base_url_string(base_host, type);
15820
0
    }
15821
15822
    // If init contains none of "protocol", "hostname", and "port", then:
15823
0
    if (!init.protocol && !init.hostname && !init.port) {
15824
      // If baseURL's port is null, then set result["port"] to the empty string.
15825
      // Otherwise, set result["port"] to baseURL's port, serialized.
15826
0
      result.port = base_url->get_port();
15827
0
    }
15828
15829
    // If init contains none of "protocol", "hostname", "port", and "pathname",
15830
    // then set result["pathname"] to the result of processing a base URL string
15831
    // given the result of URL path serializing baseURL and type.
15832
0
    if (!init.protocol && !init.hostname && !init.port && !init.pathname) {
15833
0
      result.pathname = url_pattern_helpers::process_base_url_string(
15834
0
          base_url->get_pathname(), type);
15835
0
    }
15836
15837
    // If init contains none of "protocol", "hostname", "port", "pathname", and
15838
    // "search", then:
15839
0
    if (!init.protocol && !init.hostname && !init.port && !init.pathname &&
15840
0
        !init.search) {
15841
      // Let baseQuery be baseURL's query. get_search() carries the leading "?"
15842
      // delimiter, but the spec inherits the query itself, so drop it.
15843
0
      std::string_view base_query = base_url->get_search();
15844
0
      if (base_query.starts_with("?")) base_query.remove_prefix(1);
15845
      // Set result["search"] to the result of processing a base URL string
15846
      // given baseQuery and type.
15847
0
      result.search =
15848
0
          url_pattern_helpers::process_base_url_string(base_query, type);
15849
0
    }
15850
15851
    // If init contains none of "protocol", "hostname", "port", "pathname",
15852
    // "search", and "hash", then:
15853
0
    if (!init.protocol && !init.hostname && !init.port && !init.pathname &&
15854
0
        !init.search && !init.hash) {
15855
      // Let baseFragment be baseURL's fragment. get_hash() carries the leading
15856
      // "#" delimiter, but the spec inherits the fragment itself, so drop it.
15857
0
      std::string_view base_fragment = base_url->get_hash();
15858
0
      if (base_fragment.starts_with("#")) base_fragment.remove_prefix(1);
15859
      // Set result["hash"] to the result of processing a base URL string given
15860
      // baseFragment and type.
15861
0
      result.hash =
15862
0
          url_pattern_helpers::process_base_url_string(base_fragment, type);
15863
0
    }
15864
0
  }
15865
15866
  // If init["protocol"] exists, then set result["protocol"] to the result of
15867
  // process protocol for init given init["protocol"] and type.
15868
0
  if (init.protocol) {
15869
0
    auto process_result = process_protocol(*init.protocol, type);
15870
0
    if (!process_result) {
15871
0
      return tl::unexpected(process_result.error());
15872
0
    }
15873
0
    result.protocol = std::move(*process_result);
15874
0
  }
15875
15876
  // If init["username"] exists, then set result["username"] to the result of
15877
  // process username for init given init["username"] and type.
15878
0
  if (init.username.has_value()) {
15879
0
    auto process_result = process_username(*init.username, type);
15880
0
    if (!process_result) {
15881
0
      return tl::unexpected(process_result.error());
15882
0
    }
15883
0
    result.username = std::move(*process_result);
15884
0
  }
15885
15886
  // If init["password"] exists, then set result["password"] to the result of
15887
  // process password for init given init["password"] and type.
15888
0
  if (init.password.has_value()) {
15889
0
    auto process_result = process_password(*init.password, type);
15890
0
    if (!process_result) {
15891
0
      return tl::unexpected(process_result.error());
15892
0
    }
15893
0
    result.password = std::move(*process_result);
15894
0
  }
15895
15896
  // If init["hostname"] exists, then set result["hostname"] to the result of
15897
  // process hostname for init given init["hostname"] and type.
15898
0
  if (init.hostname.has_value()) {
15899
0
    auto process_result = process_hostname(*init.hostname, type);
15900
0
    if (!process_result) {
15901
0
      return tl::unexpected(process_result.error());
15902
0
    }
15903
0
    result.hostname = std::move(*process_result);
15904
0
  }
15905
15906
  // If init["port"] exists, then set result["port"] to the result of process
15907
  // port for init given init["port"], result["protocol"], and type.
15908
0
  if (init.port) {
15909
0
    auto process_result =
15910
0
        process_port(*init.port, result.protocol.value_or("fake"), type);
15911
0
    if (!process_result) {
15912
0
      return tl::unexpected(process_result.error());
15913
0
    }
15914
0
    result.port = std::move(*process_result);
15915
0
  }
15916
15917
  // If init["pathname"] exists:
15918
0
  if (init.pathname.has_value()) {
15919
    // Set result["pathname"] to init["pathname"].
15920
0
    result.pathname = init.pathname;
15921
15922
    // If the following are all true:
15923
    // - baseURL is not null;
15924
    // - baseURL has an opaque path; and
15925
    // - the result of running is an absolute pathname given result["pathname"]
15926
    // and type is false,
15927
0
    if (base_url && !base_url->has_opaque_path &&
15928
0
        !url_pattern_helpers::is_absolute_pathname(*result.pathname, type)) {
15929
      // Let baseURLPath be the result of running process a base URL string
15930
      // given the result of URL path serializing baseURL and type.
15931
      // TODO: Optimization opportunity: Avoid returning a string if no slash
15932
      // exist.
15933
0
      std::string base_url_path = url_pattern_helpers::process_base_url_string(
15934
0
          base_url->get_pathname(), type);
15935
15936
      // Let slash index be the index of the last U+002F (/) code point found in
15937
      // baseURLPath, interpreted as a sequence of code points, or null if there
15938
      // are no instances of the code point.
15939
0
      auto slash_index = base_url_path.find_last_of('/');
15940
15941
      // If slash index is not null:
15942
0
      if (slash_index != std::string::npos) {
15943
        // Let new pathname be the code point substring from 0 to slash index +
15944
        // 1 within baseURLPath.
15945
0
        base_url_path.resize(slash_index + 1);
15946
        // Append result["pathname"] to the end of new pathname.
15947
0
        ADA_ASSERT_TRUE(result.pathname.has_value());
15948
0
        base_url_path.append(std::move(*result.pathname));
15949
        // Set result["pathname"] to new pathname.
15950
0
        result.pathname = std::move(base_url_path);
15951
0
      }
15952
0
    }
15953
15954
    // Set result["pathname"] to the result of process pathname for init given
15955
    // result["pathname"], result["protocol"], and type.
15956
0
    auto pathname_processing_result =
15957
0
        process_pathname(*result.pathname, result.protocol.value_or(""), type);
15958
0
    if (!pathname_processing_result) {
15959
0
      return tl::unexpected(pathname_processing_result.error());
15960
0
    }
15961
0
    result.pathname = std::move(*pathname_processing_result);
15962
0
  }
15963
15964
  // If init["search"] exists then set result["search"] to the result of process
15965
  // search for init given init["search"] and type.
15966
0
  if (init.search) {
15967
0
    auto process_result = process_search(*init.search, type);
15968
0
    if (!process_result) {
15969
0
      return tl::unexpected(process_result.error());
15970
0
    }
15971
0
    result.search = std::move(*process_result);
15972
0
  }
15973
15974
  // If init["hash"] exists then set result["hash"] to the result of process
15975
  // hash for init given init["hash"] and type.
15976
0
  if (init.hash) {
15977
0
    auto process_result = process_hash(*init.hash, type);
15978
0
    if (!process_result) {
15979
0
      return tl::unexpected(process_result.error());
15980
0
    }
15981
0
    result.hash = std::move(*process_result);
15982
0
  }
15983
  // Return result.
15984
0
  return result;
15985
0
}
15986
15987
tl::expected<std::string, errors> url_pattern_init::process_protocol(
15988
0
    std::string_view value, process_type type) {
15989
0
  ada_log("process_protocol=", value, " [", type, "]");
15990
  // Let strippedValue be the given value with a single trailing U+003A (:)
15991
  // removed, if any.
15992
0
  if (value.ends_with(":")) {
15993
0
    value.remove_suffix(1);
15994
0
  }
15995
  // If type is "pattern" then return strippedValue.
15996
0
  if (type == process_type::pattern) {
15997
0
    return std::string(value);
15998
0
  }
15999
  // Return the result of running canonicalize a protocol given strippedValue.
16000
0
  return url_pattern_helpers::canonicalize_protocol(value);
16001
0
}
16002
16003
tl::expected<std::string, errors> url_pattern_init::process_username(
16004
0
    std::string_view value, process_type type) {
16005
  // If type is "pattern" then return value.
16006
0
  if (type == process_type::pattern) {
16007
0
    return std::string(value);
16008
0
  }
16009
  // Return the result of running canonicalize a username given value.
16010
0
  return url_pattern_helpers::canonicalize_username(value);
16011
0
}
16012
16013
tl::expected<std::string, errors> url_pattern_init::process_password(
16014
0
    std::string_view value, process_type type) {
16015
  // If type is "pattern" then return value.
16016
0
  if (type == process_type::pattern) {
16017
0
    return std::string(value);
16018
0
  }
16019
  // Return the result of running canonicalize a password given value.
16020
0
  return url_pattern_helpers::canonicalize_password(value);
16021
0
}
16022
16023
tl::expected<std::string, errors> url_pattern_init::process_hostname(
16024
0
    std::string_view value, process_type type) {
16025
0
  ada_log("process_hostname value=", value, " type=", type);
16026
  // If type is "pattern" then return value.
16027
0
  if (type == process_type::pattern) {
16028
0
    return std::string(value);
16029
0
  }
16030
  // Return the result of running canonicalize a hostname given value.
16031
0
  return url_pattern_helpers::canonicalize_hostname(value);
16032
0
}
16033
16034
tl::expected<std::string, errors> url_pattern_init::process_port(
16035
0
    std::string_view port, std::string_view protocol, process_type type) {
16036
  // If type is "pattern" then return portValue.
16037
0
  if (type == process_type::pattern) {
16038
0
    return std::string(port);
16039
0
  }
16040
  // Return the result of running canonicalize a port given portValue and
16041
  // protocolValue.
16042
0
  return url_pattern_helpers::canonicalize_port_with_protocol(port, protocol);
16043
0
}
16044
16045
tl::expected<std::string, errors> url_pattern_init::process_pathname(
16046
0
    std::string_view value, std::string_view protocol, process_type type) {
16047
  // If type is "pattern" then return pathnameValue.
16048
0
  if (type == process_type::pattern) {
16049
0
    return std::string(value);
16050
0
  }
16051
16052
  // If protocolValue is a special scheme or the empty string, then return the
16053
  // result of running canonicalize a pathname given pathnameValue.
16054
0
  if (protocol.empty() || scheme::is_special(protocol)) {
16055
0
    return url_pattern_helpers::canonicalize_pathname(value);
16056
0
  }
16057
16058
  // Return the result of running canonicalize an opaque pathname given
16059
  // pathnameValue.
16060
0
  return url_pattern_helpers::canonicalize_opaque_pathname(value);
16061
0
}
16062
16063
tl::expected<std::string, errors> url_pattern_init::process_search(
16064
0
    std::string_view value, process_type type) {
16065
  // Let strippedValue be the given value with a single leading U+003F (?)
16066
  // removed, if any.
16067
0
  if (value.starts_with("?")) {
16068
0
    value.remove_prefix(1);
16069
0
  }
16070
  // We cannot assert that the value is no longer starting with a single
16071
  // question mark because technically it can start. The question is whether or
16072
  // not we should remove the first question mark. Ref:
16073
  // https://github.com/ada-url/ada/pull/992 The spec is not clear on this.
16074
16075
  // If type is "pattern" then return strippedValue.
16076
0
  if (type == process_type::pattern) {
16077
0
    return std::string(value);
16078
0
  }
16079
  // Return the result of running canonicalize a search given strippedValue.
16080
0
  return url_pattern_helpers::canonicalize_search(value);
16081
0
}
16082
16083
tl::expected<std::string, errors> url_pattern_init::process_hash(
16084
0
    std::string_view value, process_type type) {
16085
  // Let strippedValue be the given value with a single leading U+0023 (#)
16086
  // removed, if any.
16087
0
  if (value.starts_with("#")) {
16088
0
    value.remove_prefix(1);
16089
0
  }
16090
0
  ADA_ASSERT_TRUE(!value.starts_with("#"));
16091
  // If type is "pattern" then return strippedValue.
16092
0
  if (type == process_type::pattern) {
16093
0
    return std::string(value);
16094
0
  }
16095
  // Return the result of running canonicalize a hash given strippedValue.
16096
0
  return url_pattern_helpers::canonicalize_hash(value);
16097
0
}
16098
16099
}  // namespace ada
16100
16101
#endif  // ADA_INCLUDE_URL_PATTERN
16102
/* end file src/url_pattern.cpp */
16103
/* begin file src/url_pattern_helpers.cpp */
16104
#if ADA_INCLUDE_URL_PATTERN
16105
16106
#include <algorithm>
16107
#include <array>
16108
#include <charconv>
16109
#include <cstddef>
16110
#include <cstdint>
16111
#include <optional>
16112
#include <ranges>
16113
#include <string>
16114
#include <string_view>
16115
#include <system_error>
16116
#include <tuple>
16117
#include <utility>
16118
#include <vector>
16119
16120
16121
namespace ada::url_pattern_helpers {
16122
16123
std::tuple<std::string, std::vector<std::string>>
16124
generate_regular_expression_and_name_list(
16125
    const std::vector<url_pattern_part>& part_list,
16126
0
    url_pattern_compile_component_options options) {
16127
  // Let result be "^"
16128
0
  std::string result = "^";
16129
  // Reserve capacity to reduce reallocations
16130
0
  result.reserve(part_list.size() * 16);
16131
16132
  // Let name list be a new list
16133
0
  std::vector<std::string> name_list{};
16134
0
  name_list.reserve(part_list.size());
16135
16136
  // Pre-generate segment wildcard regexp if needed (avoids repeated generation)
16137
0
  std::string segment_wildcard_regexp;
16138
16139
  // For each part of part list:
16140
0
  for (const url_pattern_part& part : part_list) {
16141
    // If part's type is "fixed-text":
16142
0
    if (part.type == url_pattern_part_type::FIXED_TEXT) {
16143
      // If part's modifier is "none"
16144
0
      if (part.modifier == url_pattern_part_modifier::none) {
16145
0
        result.append(escape_regexp_string(part.value));
16146
0
      } else {
16147
        // (?:<fixed text>)<modifier>
16148
0
        result.append("(?:");
16149
0
        result.append(escape_regexp_string(part.value));
16150
0
        result.push_back(')');
16151
0
        result.append(convert_modifier_to_string(part.modifier));
16152
0
      }
16153
0
      continue;
16154
0
    }
16155
16156
    // Assert: part's name is not the empty string
16157
0
    ADA_ASSERT_TRUE(!part.name.empty());
16158
0
    name_list.push_back(part.name);
16159
16160
    // Use string_view to avoid copies where possible
16161
0
    std::string_view regexp_value = part.value;
16162
16163
0
    if (part.type == url_pattern_part_type::SEGMENT_WILDCARD) {
16164
      // Lazy generate segment wildcard regexp
16165
0
      if (segment_wildcard_regexp.empty()) {
16166
0
        segment_wildcard_regexp = generate_segment_wildcard_regexp(options);
16167
0
      }
16168
0
      regexp_value = segment_wildcard_regexp;
16169
0
    } else if (part.type == url_pattern_part_type::FULL_WILDCARD) {
16170
0
      regexp_value = ".*";
16171
0
    }
16172
16173
    // If part's prefix is the empty string and part's suffix is the empty
16174
    // string
16175
0
    if (part.prefix.empty() && part.suffix.empty()) {
16176
      // If part's modifier is "none" or "optional"
16177
0
      if (part.modifier == url_pattern_part_modifier::none ||
16178
0
          part.modifier == url_pattern_part_modifier::optional) {
16179
        // (<regexp value>)<modifier>
16180
0
        result.push_back('(');
16181
0
        result.append(regexp_value);
16182
0
        result.push_back(')');
16183
0
        result.append(convert_modifier_to_string(part.modifier));
16184
0
      } else {
16185
        // ((?:<regexp value>)<modifier>)
16186
0
        result.append("((?:");
16187
0
        result.append(regexp_value);
16188
0
        result.push_back(')');
16189
0
        result.append(convert_modifier_to_string(part.modifier));
16190
0
        result.push_back(')');
16191
0
      }
16192
0
      continue;
16193
0
    }
16194
16195
    // If part's modifier is "none" or "optional"
16196
0
    if (part.modifier == url_pattern_part_modifier::none ||
16197
0
        part.modifier == url_pattern_part_modifier::optional) {
16198
      // (?:<prefix>(<regexp value>)<suffix>)<modifier>
16199
0
      result.append("(?:");
16200
0
      result.append(escape_regexp_string(part.prefix));
16201
0
      result.push_back('(');
16202
0
      result.append(regexp_value);
16203
0
      result.push_back(')');
16204
0
      result.append(escape_regexp_string(part.suffix));
16205
0
      result.push_back(')');
16206
0
      result.append(convert_modifier_to_string(part.modifier));
16207
0
      continue;
16208
0
    }
16209
16210
    // Assert: part's modifier is "zero-or-more" or "one-or-more"
16211
0
    ADA_ASSERT_TRUE(part.modifier == url_pattern_part_modifier::zero_or_more ||
16212
0
                    part.modifier == url_pattern_part_modifier::one_or_more);
16213
16214
    // Assert: part's prefix is not the empty string or part's suffix is not the
16215
    // empty string
16216
0
    ADA_ASSERT_TRUE(!part.prefix.empty() || !part.suffix.empty());
16217
16218
    // (?:<prefix>((?:<regexp value>)(?:<suffix><prefix>(?:<regexp
16219
    // value>))*)<suffix>)?
16220
    // Append "(?:" to the end of result.
16221
0
    result.append("(?:");
16222
    // Append the result of running escape a regexp string given part's prefix
16223
    // to the end of result.
16224
0
    result.append(escape_regexp_string(part.prefix));
16225
    // Append "((?:" to the end of result.
16226
0
    result.append("((?:");
16227
    // Append regexp value to the end of result.
16228
0
    result.append(regexp_value);
16229
    // Append ")(?:" to the end of result.
16230
0
    result.append(")(?:");
16231
    // Append the result of running escape a regexp string given part's suffix
16232
    // to the end of result.
16233
0
    result.append(escape_regexp_string(part.suffix));
16234
    // Append the result of running escape a regexp string given part's prefix
16235
    // to the end of result.
16236
0
    result.append(escape_regexp_string(part.prefix));
16237
    // Append "(?:" to the end of result.
16238
0
    result.append("(?:");
16239
    // Append regexp value to the end of result.
16240
0
    result.append(regexp_value);
16241
    // Append "))*)" to the end of result.
16242
0
    result.append("))*)");
16243
    // Append the result of running escape a regexp string given part's suffix
16244
    // to the end of result.
16245
0
    result.append(escape_regexp_string(part.suffix));
16246
    // Append ")" to the end of result.
16247
0
    result.append(")");
16248
16249
    // If part's modifier is "zero-or-more" then append "?" to the end of result
16250
0
    if (part.modifier == url_pattern_part_modifier::zero_or_more) {
16251
0
      result += "?";
16252
0
    }
16253
0
  }
16254
16255
  // Append "$" to the end of result
16256
0
  result += "$";
16257
16258
  // Return (result, name list)
16259
0
  return {std::move(result), std::move(name_list)};
16260
0
}
16261
16262
0
bool is_ipv6_address(std::string_view input) noexcept {
16263
  // If input's code point length is less than 2, then return false.
16264
0
  if (input.size() < 2) return false;
16265
16266
  // Let input code points be input interpreted as a list of code points.
16267
  // If input code points[0] is U+005B ([), then return true.
16268
0
  if (input.front() == '[') return true;
16269
  // If input code points[0] is U+007B ({) and input code points[1] is U+005B
16270
  // ([), then return true.
16271
0
  if (input.starts_with("{[")) return true;
16272
  // If input code points[0] is U+005C (\) and input code points[1] is U+005B
16273
  // ([), then return true.
16274
0
  return input.starts_with("\\[");
16275
0
}
16276
16277
std::string_view convert_modifier_to_string(
16278
0
    url_pattern_part_modifier modifier) {
16279
0
  switch (modifier) {
16280
      // If modifier is "zero-or-more", then return "*".
16281
0
    case url_pattern_part_modifier::zero_or_more:
16282
0
      return "*";
16283
    // If modifier is "optional", then return "?".
16284
0
    case url_pattern_part_modifier::optional:
16285
0
      return "?";
16286
    // If modifier is "one-or-more", then return "+".
16287
0
    case url_pattern_part_modifier::one_or_more:
16288
0
      return "+";
16289
    // Return the empty string.
16290
0
    default:
16291
0
      return "";
16292
0
  }
16293
0
}
16294
16295
std::string generate_segment_wildcard_regexp(
16296
0
    url_pattern_compile_component_options options) {
16297
  // Let result be "[^".
16298
0
  std::string result = "[^";
16299
  // Append the result of running escape a regexp string given options's
16300
  // delimiter code point to the end of result.
16301
0
  result.append(escape_regexp_string(options.get_delimiter()));
16302
  // Append "]+?" to the end of result.
16303
0
  result.append("]+?");
16304
  // Return result.
16305
0
  ada_log("generate_segment_wildcard_regexp result: ", result);
16306
0
  return result;
16307
0
}
16308
16309
namespace {
16310
// Unified lookup table for URL pattern character classification
16311
// Bit flags for different character types
16312
constexpr uint8_t CHAR_SCHEME = 1;  // valid in scheme (a-z, A-Z, 0-9, +, -, .)
16313
constexpr uint8_t CHAR_UPPER = 2;   // uppercase letter (needs lowercasing)
16314
constexpr uint8_t CHAR_SIMPLE_HOSTNAME = 4;  // simple hostname (a-z, 0-9, -, .)
16315
constexpr uint8_t CHAR_SIMPLE_PATHNAME =
16316
    8;  // simple pathname (a-z, A-Z, 0-9, /, -, _, ~)
16317
16318
constexpr std::array<uint8_t, 256> char_class_table = []() consteval {
16319
  std::array<uint8_t, 256> table{};
16320
  for (int c = 'a'; c <= 'z'; c++)
16321
    table[c] = CHAR_SCHEME | CHAR_SIMPLE_HOSTNAME | CHAR_SIMPLE_PATHNAME;
16322
  for (int c = 'A'; c <= 'Z'; c++)
16323
    table[c] = CHAR_SCHEME | CHAR_UPPER | CHAR_SIMPLE_PATHNAME;
16324
  for (int c = '0'; c <= '9'; c++)
16325
    table[c] = CHAR_SCHEME | CHAR_SIMPLE_HOSTNAME | CHAR_SIMPLE_PATHNAME;
16326
  table['+'] = CHAR_SCHEME;
16327
  table['-'] = CHAR_SCHEME | CHAR_SIMPLE_HOSTNAME | CHAR_SIMPLE_PATHNAME;
16328
  table['.'] =
16329
      CHAR_SCHEME | CHAR_SIMPLE_HOSTNAME;  // not pathname (needs normalization)
16330
  table['/'] = CHAR_SIMPLE_PATHNAME;
16331
  table['_'] = CHAR_SIMPLE_PATHNAME;
16332
  table['~'] = CHAR_SIMPLE_PATHNAME;
16333
  return table;
16334
}();
16335
}  // namespace
16336
16337
tl::expected<std::string, errors> canonicalize_protocol(
16338
0
    std::string_view input) {
16339
0
  ada_log("canonicalize_protocol called with input=", input);
16340
0
  if (input.empty()) [[unlikely]] {
16341
0
    return "";
16342
0
  }
16343
16344
0
  if (input.ends_with(":")) {
16345
0
    input.remove_suffix(1);
16346
0
    if (input.empty()) [[unlikely]] {
16347
0
      return tl::unexpected(errors::type_error);
16348
0
    }
16349
0
  }
16350
16351
  // Fast path: special schemes are already canonical
16352
0
  if (scheme::is_special(input)) {
16353
0
    return std::string(input);
16354
0
  }
16355
16356
  // Fast path: validate scheme chars and check for uppercase
16357
  // First char must be alpha (not +, -, ., or digit)
16358
0
  uint8_t first_flags = char_class_table[static_cast<uint8_t>(input[0])];
16359
0
  if (!(first_flags & CHAR_SCHEME) || input[0] == '+' || input[0] == '-' ||
16360
0
      input[0] == '.' || unicode::is_ascii_digit(input[0])) {
16361
0
    return tl::unexpected(errors::type_error);
16362
0
  }
16363
16364
0
  uint8_t needs_lowercase = first_flags & CHAR_UPPER;
16365
0
  for (size_t i = 1; i < input.size(); i++) {
16366
0
    uint8_t flags = char_class_table[static_cast<uint8_t>(input[i])];
16367
0
    if (!(flags & CHAR_SCHEME)) {
16368
0
      return tl::unexpected(errors::type_error);
16369
0
    }
16370
0
    needs_lowercase |= flags & CHAR_UPPER;
16371
0
  }
16372
16373
0
  if (needs_lowercase == 0) {
16374
0
    return std::string(input);
16375
0
  }
16376
16377
0
  std::string result(input);
16378
0
  unicode::to_lower_ascii(result.data(), result.size());
16379
0
  return result;
16380
0
}
16381
16382
tl::expected<std::string, errors> canonicalize_username(
16383
0
    std::string_view input) {
16384
  // If value is the empty string, return value.
16385
0
  if (input.empty()) [[unlikely]] {
16386
0
    return "";
16387
0
  }
16388
  // Percent-encode the input using the userinfo percent-encode set.
16389
0
  size_t idx = ada::unicode::percent_encode_index(
16390
0
      input, character_sets::USERINFO_PERCENT_ENCODE);
16391
0
  if (idx == input.size()) {
16392
    // No encoding needed, return input as-is
16393
0
    return std::string(input);
16394
0
  }
16395
  // Percent-encode from the first character that needs encoding
16396
0
  return ada::unicode::percent_encode(
16397
0
      input, character_sets::USERINFO_PERCENT_ENCODE, idx);
16398
0
}
16399
16400
tl::expected<std::string, errors> canonicalize_password(
16401
0
    std::string_view input) {
16402
  // If value is the empty string, return value.
16403
0
  if (input.empty()) [[unlikely]] {
16404
0
    return "";
16405
0
  }
16406
  // Percent-encode the input using the userinfo percent-encode set.
16407
0
  size_t idx = ada::unicode::percent_encode_index(
16408
0
      input, character_sets::USERINFO_PERCENT_ENCODE);
16409
0
  if (idx == input.size()) {
16410
    // No encoding needed, return input as-is
16411
0
    return std::string(input);
16412
0
  }
16413
  // Percent-encode from the first character that needs encoding
16414
0
  return ada::unicode::percent_encode(
16415
0
      input, character_sets::USERINFO_PERCENT_ENCODE, idx);
16416
0
}
16417
16418
tl::expected<std::string, errors> canonicalize_hostname(
16419
0
    std::string_view input) {
16420
0
  ada_log("canonicalize_hostname input=", input);
16421
0
  if (input.empty()) [[unlikely]] {
16422
0
    return "";
16423
0
  }
16424
16425
  // Fast path: simple hostnames (lowercase ASCII, digits, -, .) need no IDNA.
16426
  // The simple character set also covers IPv4-shaped hosts, which the slow
16427
  // path rewrites ("0" -> "0.0.0.0", "0x7f.1" -> "127.0.0.1"). Exclude those
16428
  // so the fast path can't return a non-canonical hostname.
16429
  //
16430
  // Pure-ASCII "xn--" labels are intentionally left on the fast path: with
16431
  // beStrict=false, domain-to-ASCII returns the lowercased ASCII input even
16432
  // when Unicode ToASCII would fail (e.g. invalid ACE "xn--a"). See
16433
  // https://url.spec.whatwg.org/#concept-domain-to-ascii
16434
0
  bool needs_processing = false;
16435
0
  for (char c : input) {
16436
0
    needs_processing |=
16437
0
        !(char_class_table[static_cast<uint8_t>(c)] & CHAR_SIMPLE_HOSTNAME);
16438
0
  }
16439
0
  if (!needs_processing && !checkers::is_ipv4(input)) {
16440
0
    return std::string(input);
16441
0
  }
16442
16443
  // Let dummyURL be a new URL record.
16444
  // Let parseResult be the result of running the basic URL parser given value
16445
  // with dummyURL as url and hostname state as state override.
16446
16447
  // IMPORTANT: The protocol needs to be a special protocol, otherwise the
16448
  // hostname will not be converted using IDNA.
16449
0
  auto url = ada::parse<url_aggregator>("https://dummy.test", nullptr);
16450
0
  ADA_ASSERT_TRUE(url);
16451
  // if (!isValidHostnameInput(hostname)) return kj::none;
16452
0
  if (!url->set_hostname(input)) {
16453
    // If parseResult is failure, then throw a TypeError.
16454
0
    return tl::unexpected(errors::type_error);
16455
0
  }
16456
  // Return dummyURL's host, serialized, or empty string if it is null.
16457
0
  return std::string(url->get_hostname());
16458
0
}
16459
16460
tl::expected<std::string, errors> canonicalize_ipv6_hostname(
16461
0
    std::string_view input) {
16462
0
  ada_log("canonicalize_ipv6_hostname input=", input);
16463
  // TODO: Optimization opportunity: Use lookup table to speed up checking
16464
0
  if (std::ranges::any_of(input, [](char c) {
16465
0
        return c != '[' && c != ']' && c != ':' &&
16466
0
               !unicode::is_ascii_hex_digit(c);
16467
0
      })) {
16468
0
    return tl::unexpected(errors::type_error);
16469
0
  }
16470
  // Append the result of running ASCII lowercase given code point to the end of
16471
  // result.
16472
0
  auto hostname = std::string(input);
16473
0
  unicode::to_lower_ascii(hostname.data(), hostname.size());
16474
0
  return hostname;
16475
0
}
16476
16477
tl::expected<std::string, errors> canonicalize_port(
16478
0
    std::string_view port_value) {
16479
  // If portValue is the empty string, return portValue.
16480
0
  if (port_value.empty()) [[unlikely]] {
16481
0
    return "";
16482
0
  }
16483
16484
  // Remove ASCII tab or newline characters
16485
0
  std::string trimmed(port_value);
16486
0
  helpers::remove_ascii_tab_or_newline(trimmed);
16487
16488
0
  if (trimmed.empty()) {
16489
0
    return "";
16490
0
  }
16491
16492
  // Input should start with a digit character
16493
0
  if (!unicode::is_ascii_digit(trimmed.front())) {
16494
0
    return tl::unexpected(errors::type_error);
16495
0
  }
16496
16497
  // Find the first non-digit character
16498
0
  auto first_non_digit =
16499
0
      std::ranges::find_if_not(trimmed, unicode::is_ascii_digit);
16500
0
  std::string_view digits_to_parse =
16501
0
      std::string_view(trimmed.data(), first_non_digit - trimmed.begin());
16502
16503
  // Here we have a range of ASCII digit characters identified by
16504
  // digits_to_parse. It is non-empty. The port state of the URL parser reads
16505
  // it as an integer, so leading zeros are part of the number: "0080" is 80
16506
  // and "065535" is 65535, not a six-digit overflow. Only the significant
16507
  // digits count toward the 5-digit maximum, matching the fast path in
16508
  // implementation.cpp.
16509
0
  size_t first_significant = digits_to_parse.find_first_not_of('0');
16510
0
  if (first_significant == std::string_view::npos) {
16511
    // The value is all zeros, i.e. port 0.
16512
0
    return "0";
16513
0
  }
16514
0
  digits_to_parse.remove_prefix(first_significant);
16515
  // We want to determine whether it is a valid port number (0-65535).
16516
  // Clearly, if the length is greater than 5, it is invalid.
16517
  // If the length is 5, we need to compare lexicographically to "65535".
16518
  // Otherwise it is valid.
16519
0
  if (digits_to_parse.size() == 5) {
16520
0
    if (digits_to_parse > "65535") {
16521
0
      return tl::unexpected(errors::type_error);
16522
0
    }
16523
0
  } else if (digits_to_parse.size() > 5) {
16524
0
    return tl::unexpected(errors::type_error);
16525
0
  }
16526
  // It is valid! Most times, we do not need to parse it into an integer.
16527
0
  return std::string(digits_to_parse);
16528
0
}
16529
16530
tl::expected<std::string, errors> canonicalize_port_with_protocol(
16531
0
    std::string_view port_value, std::string_view protocol) {
16532
  // If portValue is the empty string, return portValue.
16533
0
  if (port_value.empty()) [[unlikely]] {
16534
0
    return "";
16535
0
  }
16536
16537
  // Handle empty or trailing colon in protocol
16538
0
  if (protocol.empty()) {
16539
0
    protocol = "fake";
16540
0
  } else if (protocol.ends_with(":")) {
16541
0
    protocol.remove_suffix(1);
16542
0
  }
16543
16544
  // Remove ASCII tab or newline characters
16545
0
  std::string trimmed(port_value);
16546
0
  helpers::remove_ascii_tab_or_newline(trimmed);
16547
16548
0
  if (trimmed.empty()) {
16549
0
    return "";
16550
0
  }
16551
16552
  // Input should start with a digit character
16553
0
  if (!unicode::is_ascii_digit(trimmed.front())) {
16554
0
    return tl::unexpected(errors::type_error);
16555
0
  }
16556
16557
  // Find the first non-digit character
16558
0
  auto first_non_digit =
16559
0
      std::ranges::find_if_not(trimmed, unicode::is_ascii_digit);
16560
0
  std::string_view digits_to_parse =
16561
0
      std::string_view(trimmed.data(), first_non_digit - trimmed.begin());
16562
16563
  // Parse the port number
16564
0
  uint16_t parsed_port{};
16565
  // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage)
16566
0
  auto result = std::from_chars(digits_to_parse.data(),
16567
0
                                digits_to_parse.data() + digits_to_parse.size(),
16568
0
                                parsed_port);
16569
16570
0
  if (result.ec == std::errc::result_out_of_range) {
16571
0
    return tl::unexpected(errors::type_error);
16572
0
  }
16573
16574
0
  if (result.ec == std::errc()) {
16575
    // Check if this is the default port for the scheme
16576
0
    uint16_t default_port = scheme::get_special_port(protocol);
16577
16578
    // If it's the default port for a special scheme, return empty string
16579
0
    if (default_port != 0 && default_port == parsed_port) {
16580
0
      return "";
16581
0
    }
16582
16583
    // Successfully parsed, return as string
16584
0
    return std::to_string(parsed_port);
16585
0
  }
16586
16587
0
  return tl::unexpected(errors::type_error);
16588
0
}
16589
16590
tl::expected<std::string, errors> canonicalize_pathname(
16591
0
    std::string_view input) {
16592
0
  if (input.empty()) [[unlikely]] {
16593
0
    return "";
16594
0
  }
16595
16596
  // Fast path: simple pathnames (no . which needs normalization) can be
16597
  // returned as-is
16598
0
  bool needs_processing = false;
16599
0
  for (char c : input) {
16600
0
    needs_processing |=
16601
0
        !(char_class_table[static_cast<uint8_t>(c)] & CHAR_SIMPLE_PATHNAME);
16602
0
  }
16603
0
  if (!needs_processing) {
16604
0
    return std::string(input);
16605
0
  }
16606
16607
  // Let leading slash be true if the first code point in value is U+002F (/)
16608
  // and otherwise false.
16609
0
  const bool leading_slash = input.starts_with("/");
16610
  // Let modified value be "/-" if leading slash is false and otherwise the
16611
  // empty string.
16612
0
  const auto modified_value =
16613
0
      (leading_slash ? std::string() : std::string("/-")) + std::string(input);
16614
  // The spec runs the basic URL parser with the path in state override, where
16615
  // '?' and '#' are ordinary path code points (percent-encoded) and leading or
16616
  // trailing C0 control or space is kept. Building a full URL string and
16617
  // parsing it (no state override) instead let '?' and '#' start the
16618
  // query/fragment, so the pathname was silently truncated at the first literal
16619
  // '?' or '#'. set_pathname runs the parser in path state override, matching
16620
  // how canonicalize_hostname uses set_hostname.
16621
  // The spec's "create a dummy URL" is "https://dummy.invalid/": a special
16622
  // URL, so the path parser turns "\\" into "/" as it does in a special URL.
16623
  // A non-special dummy kept a literal backslash, so a pattern such as
16624
  // "/a\\b" never matched "https://h/a/b".
16625
0
  auto url = ada::parse<url_aggregator>("https://dummy.invalid/", nullptr);
16626
0
  ADA_ASSERT_TRUE(url);
16627
0
  if (!url->set_pathname(modified_value)) {
16628
    // If parseResult is failure, then throw a TypeError.
16629
0
    return tl::unexpected(errors::type_error);
16630
0
  }
16631
0
  const auto pathname = url->get_pathname();
16632
  // If leading slash is false, then set result to the code point substring
16633
  // from 2 to the end of the string within result.
16634
0
  if (!leading_slash) {
16635
    // pathname should start with "/-" but path traversal (e.g. "../../")
16636
    // can reduce it to just "/" which is shorter than 2 characters.
16637
0
    if (pathname.size() < 2) {
16638
0
      return tl::unexpected(errors::type_error);
16639
0
    }
16640
0
    return std::string(pathname.substr(2));
16641
0
  }
16642
0
  return std::string(pathname);
16643
0
}
16644
16645
tl::expected<std::string, errors> canonicalize_opaque_pathname(
16646
0
    std::string_view input) {
16647
  // If value is the empty string, return value.
16648
0
  if (input.empty()) [[unlikely]] {
16649
0
    return "";
16650
0
  }
16651
  // Opaque-path state: no authority and no dot-segment normalization.
16652
0
  std::string value(input);
16653
0
  helpers::remove_ascii_tab_or_newline(value);
16654
0
  return ada::unicode::percent_encode(
16655
0
      value, character_sets::C0_CONTROL_PERCENT_ENCODE);
16656
0
}
16657
16658
0
tl::expected<std::string, errors> canonicalize_search(std::string_view input) {
16659
  // If value is the empty string, return value.
16660
0
  if (input.empty()) [[unlikely]] {
16661
0
    return "";
16662
0
  }
16663
  // A leading '?' is a valid query code point here: it is the caller (process a
16664
  // search) that removes a single delimiter, not this step, which mirrors the
16665
  // basic URL parser's query state.
16666
0
  std::string new_value(input);
16667
  // Remove ASCII tab or newline characters
16668
0
  helpers::remove_ascii_tab_or_newline(new_value);
16669
16670
0
  if (new_value.empty()) {
16671
0
    return "";
16672
0
  }
16673
16674
  // The spec's dummy URL is special, so use the special-query set.
16675
0
  size_t idx = ada::unicode::percent_encode_index(
16676
0
      new_value, character_sets::SPECIAL_QUERY_PERCENT_ENCODE);
16677
0
  if (idx == new_value.size()) {
16678
    // No encoding needed
16679
0
    return new_value;
16680
0
  }
16681
  // Percent-encode from the first character that needs encoding
16682
0
  return ada::unicode::percent_encode(
16683
0
      new_value, character_sets::SPECIAL_QUERY_PERCENT_ENCODE, idx);
16684
0
}
16685
16686
0
tl::expected<std::string, errors> canonicalize_hash(std::string_view input) {
16687
  // If value is the empty string, return value.
16688
0
  if (input.empty()) [[unlikely]] {
16689
0
    return "";
16690
0
  }
16691
  // A leading '#' is a valid fragment code point here: it is the caller
16692
  // (process a hash) that removes a single delimiter, not this step, which
16693
  // mirrors the basic URL parser's fragment state.
16694
0
  std::string new_value(input);
16695
  // Remove ASCII tab or newline characters
16696
0
  helpers::remove_ascii_tab_or_newline(new_value);
16697
16698
0
  if (new_value.empty()) {
16699
0
    return "";
16700
0
  }
16701
16702
  // Percent-encode using FRAGMENT_PERCENT_ENCODE
16703
0
  size_t idx = ada::unicode::percent_encode_index(
16704
0
      new_value, character_sets::FRAGMENT_PERCENT_ENCODE);
16705
0
  if (idx == new_value.size()) {
16706
    // No encoding needed
16707
0
    return new_value;
16708
0
  }
16709
  // Percent-encode from the first character that needs encoding
16710
0
  return ada::unicode::percent_encode(
16711
0
      new_value, character_sets::FRAGMENT_PERCENT_ENCODE, idx);
16712
0
}
16713
16714
tl::expected<std::vector<token>, errors> tokenize(std::string_view input,
16715
0
                                                  token_policy policy) {
16716
0
  ada_log("tokenize input: ", input);
16717
  // Let tokenizer be a new tokenizer.
16718
  // Set tokenizer's input to input.
16719
  // Set tokenizer's policy to policy.
16720
0
  auto tokenizer = Tokenizer(input, policy);
16721
  // While tokenizer's index is less than tokenizer's input's code point length:
16722
0
  while (tokenizer.index < tokenizer.input.size()) {
16723
    // Run seek and get the next code point given tokenizer and tokenizer's
16724
    // index.
16725
0
    tokenizer.seek_and_get_next_code_point(tokenizer.index);
16726
16727
    // Malformed UTF-8 must not stall tokenization: report an invalid-char
16728
    // token (lenient) or fail fast (strict), while always making progress.
16729
0
    if (tokenizer.had_invalid_code_point()) {
16730
0
      if (auto error = tokenizer.process_tokenizing_error(tokenizer.next_index,
16731
0
                                                          tokenizer.index)) {
16732
0
        return tl::unexpected(*error);
16733
0
      }
16734
0
      continue;
16735
0
    }
16736
16737
    // If tokenizer's code point is U+002A (*):
16738
0
    if (tokenizer.code_point == '*') {
16739
      // Run add a token with default position and length given tokenizer and
16740
      // "asterisk".
16741
0
      tokenizer.add_token_with_defaults(token_type::ASTERISK);
16742
0
      ada_log("add ASTERISK token");
16743
      // Continue.
16744
0
      continue;
16745
0
    }
16746
16747
    // If tokenizer's code point is U+002B (+) or U+003F (?):
16748
0
    if (tokenizer.code_point == '+' || tokenizer.code_point == '?') {
16749
      // Run add a token with default position and length given tokenizer and
16750
      // "other-modifier".
16751
0
      tokenizer.add_token_with_defaults(token_type::OTHER_MODIFIER);
16752
      // Continue.
16753
0
      continue;
16754
0
    }
16755
16756
    // If tokenizer's code point is U+005C (\):
16757
0
    if (tokenizer.code_point == '\\') {
16758
      // If tokenizer's index is equal to tokenizer's input's code point length
16759
      // - 1:
16760
0
      if (tokenizer.index == tokenizer.input.size() - 1) {
16761
        // Run process a tokenizing error given tokenizer, tokenizer's next
16762
        // index, and tokenizer's index.
16763
0
        if (auto error = tokenizer.process_tokenizing_error(
16764
0
                tokenizer.next_index, tokenizer.index)) {
16765
0
          ada_log("process_tokenizing_error failed");
16766
0
          return tl::unexpected(*error);
16767
0
        }
16768
0
        continue;
16769
0
      }
16770
16771
      // Let escaped index be tokenizer's next index.
16772
0
      auto escaped_index = tokenizer.next_index;
16773
      // Run get the next code point given tokenizer.
16774
0
      tokenizer.get_next_code_point();
16775
0
      if (tokenizer.had_invalid_code_point()) {
16776
0
        if (auto error = tokenizer.process_tokenizing_error(
16777
0
                tokenizer.next_index, escaped_index)) {
16778
0
          return tl::unexpected(*error);
16779
0
        }
16780
0
        continue;
16781
0
      }
16782
      // Run add a token with default length given tokenizer, "escaped-char",
16783
      // tokenizer's next index, and escaped index.
16784
0
      tokenizer.add_token_with_default_length(
16785
0
          token_type::ESCAPED_CHAR, tokenizer.next_index, escaped_index);
16786
0
      ada_log("add ESCAPED_CHAR token on next_index ", tokenizer.next_index,
16787
0
              " with escaped index ", escaped_index);
16788
      // Continue.
16789
0
      continue;
16790
0
    }
16791
16792
    // If tokenizer's code point is U+007B ({):
16793
0
    if (tokenizer.code_point == '{') {
16794
      // Run add a token with default position and length given tokenizer and
16795
      // "open".
16796
0
      tokenizer.add_token_with_defaults(token_type::OPEN);
16797
0
      ada_log("add OPEN token");
16798
0
      continue;
16799
0
    }
16800
16801
    // If tokenizer's code point is U+007D (}):
16802
0
    if (tokenizer.code_point == '}') {
16803
      // Run add a token with default position and length given tokenizer and
16804
      // "close".
16805
0
      tokenizer.add_token_with_defaults(token_type::CLOSE);
16806
0
      ada_log("add CLOSE token");
16807
0
      continue;
16808
0
    }
16809
16810
    // If tokenizer's code point is U+003A (:):
16811
0
    if (tokenizer.code_point == ':') {
16812
      // Let name position be tokenizer's next index.
16813
0
      auto name_position = tokenizer.next_index;
16814
      // Let name start be name position.
16815
0
      auto name_start = name_position;
16816
0
      bool invalid_name = false;
16817
      // While name position is less than tokenizer's input's code point length:
16818
0
      while (name_position < tokenizer.input.size()) {
16819
        // Run seek and get the next code point given tokenizer and name
16820
        // position.
16821
0
        tokenizer.seek_and_get_next_code_point(name_position);
16822
0
        if (tokenizer.had_invalid_code_point()) {
16823
0
          if (auto error = tokenizer.process_tokenizing_error(
16824
0
                  tokenizer.next_index, name_position)) {
16825
0
            return tl::unexpected(*error);
16826
0
          }
16827
0
          invalid_name = true;
16828
0
          break;
16829
0
        }
16830
        // Let first code point be true if name position equals name start and
16831
        // false otherwise.
16832
0
        bool first_code_point = name_position == name_start;
16833
        // Let valid code point be the result of running is a valid name code
16834
        // point given tokenizer's code point and first code point.
16835
0
        auto valid_code_point =
16836
0
            idna::valid_name_code_point(tokenizer.code_point, first_code_point);
16837
0
        ada_log("tokenizer.code_point=", uint32_t(tokenizer.code_point),
16838
0
                " first_code_point=", first_code_point,
16839
0
                " valid_code_point=", valid_code_point);
16840
        // If valid code point is false break.
16841
0
        if (!valid_code_point) break;
16842
        // Set name position to tokenizer's next index.
16843
0
        name_position = tokenizer.next_index;
16844
0
      }
16845
16846
0
      if (invalid_name) {
16847
0
        continue;
16848
0
      }
16849
16850
      // If name position is less than or equal to name start:
16851
0
      if (name_position <= name_start) {
16852
        // Run process a tokenizing error given tokenizer, name start, and
16853
        // tokenizer's index.
16854
0
        if (auto error = tokenizer.process_tokenizing_error(name_start,
16855
0
                                                            tokenizer.index)) {
16856
0
          ada_log("process_tokenizing_error failed");
16857
0
          return tl::unexpected(*error);
16858
0
        }
16859
        // Continue
16860
0
        continue;
16861
0
      }
16862
16863
      // Run add a token with default length given tokenizer, "name", name
16864
      // position, and name start.
16865
0
      tokenizer.add_token_with_default_length(token_type::NAME, name_position,
16866
0
                                              name_start);
16867
0
      continue;
16868
0
    }
16869
16870
    // If tokenizer's code point is U+0028 (():
16871
0
    if (tokenizer.code_point == '(') {
16872
      // Let depth be 1.
16873
0
      size_t depth = 1;
16874
      // Let regexp position be tokenizer's next index.
16875
0
      auto regexp_position = tokenizer.next_index;
16876
      // Let regexp start be regexp position.
16877
0
      auto regexp_start = regexp_position;
16878
      // Let error be false.
16879
0
      bool error = false;
16880
16881
      // While regexp position is less than tokenizer's input's code point
16882
      // length:
16883
0
      while (regexp_position < tokenizer.input.size()) {
16884
        // Run seek and get the next code point given tokenizer and regexp
16885
        // position.
16886
0
        tokenizer.seek_and_get_next_code_point(regexp_position);
16887
0
        if (tokenizer.had_invalid_code_point()) {
16888
0
          if (auto process_error = tokenizer.process_tokenizing_error(
16889
0
                  tokenizer.next_index, regexp_position)) {
16890
0
            return tl::unexpected(*process_error);
16891
0
          }
16892
0
          error = true;
16893
0
          break;
16894
0
        }
16895
16896
        // TODO: Optimization opportunity: The next 2 if statements can be
16897
        // merged. If the result of running is ASCII given tokenizer's code
16898
        // point is false:
16899
0
        if (!unicode::is_ascii(tokenizer.code_point)) {
16900
          // Run process a tokenizing error given tokenizer, regexp start, and
16901
          // tokenizer's index.
16902
0
          if (auto process_error = tokenizer.process_tokenizing_error(
16903
0
                  regexp_start, tokenizer.index)) {
16904
0
            return tl::unexpected(*process_error);
16905
0
          }
16906
          // Set error to true.
16907
0
          error = true;
16908
0
          break;
16909
0
        }
16910
16911
        // If regexp position equals regexp start and tokenizer's code point is
16912
        // U+003F (?):
16913
0
        if (regexp_position == regexp_start && tokenizer.code_point == '?') {
16914
          // Run process a tokenizing error given tokenizer, regexp start, and
16915
          // tokenizer's index.
16916
0
          if (auto process_error = tokenizer.process_tokenizing_error(
16917
0
                  regexp_start, tokenizer.index)) {
16918
0
            return tl::unexpected(*process_error);
16919
0
          }
16920
          // Set error to true;
16921
0
          error = true;
16922
0
          break;
16923
0
        }
16924
16925
        // If tokenizer's code point is U+005C (\):
16926
0
        if (tokenizer.code_point == '\\') {
16927
          // If regexp position equals tokenizer's input's code point length - 1
16928
0
          if (regexp_position == tokenizer.input.size() - 1) {
16929
            // Run process a tokenizing error given tokenizer, regexp start, and
16930
            // tokenizer's index.
16931
0
            if (auto process_error = tokenizer.process_tokenizing_error(
16932
0
                    regexp_start, tokenizer.index)) {
16933
0
              return tl::unexpected(*process_error);
16934
0
            }
16935
            // Set error to true.
16936
0
            error = true;
16937
0
            break;
16938
0
          }
16939
          // Run get the next code point given tokenizer.
16940
0
          auto escaped_index = tokenizer.next_index;
16941
0
          tokenizer.get_next_code_point();
16942
0
          if (tokenizer.had_invalid_code_point()) {
16943
0
            if (auto process_error = tokenizer.process_tokenizing_error(
16944
0
                    tokenizer.next_index, escaped_index)) {
16945
0
              return tl::unexpected(*process_error);
16946
0
            }
16947
0
            error = true;
16948
0
            break;
16949
0
          }
16950
          // If the result of running is ASCII given tokenizer's code point is
16951
          // false:
16952
0
          if (!unicode::is_ascii(tokenizer.code_point)) {
16953
            // Run process a tokenizing error given tokenizer, regexp start, and
16954
            // tokenizer's index.
16955
0
            if (auto process_error = tokenizer.process_tokenizing_error(
16956
0
                    regexp_start, tokenizer.index);
16957
0
                process_error.has_value()) {
16958
0
              return tl::unexpected(*process_error);
16959
0
            }
16960
            // Set error to true.
16961
0
            error = true;
16962
0
            break;
16963
0
          }
16964
          // Set regexp position to tokenizer's next index.
16965
0
          regexp_position = tokenizer.next_index;
16966
0
          continue;
16967
0
        }
16968
16969
        // If tokenizer's code point is U+0029 ()):
16970
0
        if (tokenizer.code_point == ')') {
16971
          // Decrement depth by 1.
16972
0
          depth--;
16973
          // If depth is 0:
16974
0
          if (depth == 0) {
16975
            // Set regexp position to tokenizer's next index.
16976
0
            regexp_position = tokenizer.next_index;
16977
            // Break.
16978
0
            break;
16979
0
          }
16980
0
        } else if (tokenizer.code_point == '(') {
16981
          // Otherwise if tokenizer's code point is U+0028 (():
16982
          // Increment depth by 1.
16983
0
          depth++;
16984
          // If regexp position equals tokenizer's input's code point length -
16985
          // 1:
16986
0
          if (regexp_position == tokenizer.input.size() - 1) {
16987
            // Run process a tokenizing error given tokenizer, regexp start, and
16988
            // tokenizer's index.
16989
0
            if (auto process_error = tokenizer.process_tokenizing_error(
16990
0
                    regexp_start, tokenizer.index)) {
16991
0
              return tl::unexpected(*process_error);
16992
0
            }
16993
            // Set error to true.
16994
0
            error = true;
16995
0
            break;
16996
0
          }
16997
          // Let temporary position be tokenizer's next index.
16998
0
          auto temporary_position = tokenizer.next_index;
16999
          // Run get the next code point given tokenizer.
17000
0
          tokenizer.get_next_code_point();
17001
0
          if (tokenizer.had_invalid_code_point()) {
17002
0
            if (auto process_error = tokenizer.process_tokenizing_error(
17003
0
                    tokenizer.next_index, temporary_position)) {
17004
0
              return tl::unexpected(*process_error);
17005
0
            }
17006
0
            error = true;
17007
0
            break;
17008
0
          }
17009
          // If tokenizer's code point is not U+003F (?):
17010
0
          if (tokenizer.code_point != '?') {
17011
            // Run process a tokenizing error given tokenizer, regexp start, and
17012
            // tokenizer's index.
17013
0
            if (auto process_error = tokenizer.process_tokenizing_error(
17014
0
                    regexp_start, tokenizer.index)) {
17015
0
              return tl::unexpected(*process_error);
17016
0
            }
17017
            // Set error to true.
17018
0
            error = true;
17019
0
            break;
17020
0
          }
17021
          // Set tokenizer's next index to temporary position.
17022
0
          tokenizer.next_index = temporary_position;
17023
0
        }
17024
        // Set regexp position to tokenizer's next index.
17025
0
        regexp_position = tokenizer.next_index;
17026
0
      }
17027
17028
      // If error is true continue.
17029
0
      if (error) continue;
17030
      // If depth is not zero:
17031
0
      if (depth != 0) {
17032
        // Run process a tokenizing error given tokenizer, regexp start, and
17033
        // tokenizer's index.
17034
0
        if (auto process_error = tokenizer.process_tokenizing_error(
17035
0
                regexp_start, tokenizer.index)) {
17036
0
          return tl::unexpected(*process_error);
17037
0
        }
17038
0
        continue;
17039
0
      }
17040
      // Let regexp length be regexp position - regexp start - 1.
17041
0
      auto regexp_length = regexp_position - regexp_start - 1;
17042
      // If regexp length is zero:
17043
0
      if (regexp_length == 0) {
17044
        // Run process a tokenizing error given tokenizer, regexp start, and
17045
        // tokenizer's index.
17046
0
        if (auto process_error = tokenizer.process_tokenizing_error(
17047
0
                regexp_start, tokenizer.index)) {
17048
0
          ada_log("process_tokenizing_error failed");
17049
0
          return tl::unexpected(*process_error);
17050
0
        }
17051
0
        continue;
17052
0
      }
17053
      // Run add a token given tokenizer, "regexp", regexp position, regexp
17054
      // start, and regexp length.
17055
0
      tokenizer.add_token(token_type::REGEXP, regexp_position, regexp_start,
17056
0
                          regexp_length);
17057
0
      continue;
17058
0
    }
17059
    // Run add a token with default position and length given tokenizer and
17060
    // "char".
17061
0
    tokenizer.add_token_with_defaults(token_type::CHAR);
17062
0
  }
17063
  // Run add a token with default length given tokenizer, "end", tokenizer's
17064
  // index, and tokenizer's index.
17065
0
  tokenizer.add_token_with_default_length(token_type::END, tokenizer.index,
17066
0
                                          tokenizer.index);
17067
17068
0
  ada_log("tokenizer.token_list size is: ", tokenizer.token_list.size());
17069
  // Return tokenizer's token list.
17070
0
  return tokenizer.token_list;
17071
0
}
17072
17073
namespace {
17074
constexpr std::array<uint8_t, 256> escape_pattern_table = []() consteval {
17075
  std::array<uint8_t, 256> out{};
17076
  for (auto& c : {'+', '*', '?', ':', '{', '}', '(', ')', '\\'}) {
17077
    out[c] = 1;
17078
  }
17079
  return out;
17080
}();
17081
17082
0
constexpr bool should_escape_pattern_char(char c) {
17083
0
  return escape_pattern_table[static_cast<uint8_t>(c)];
17084
0
}
17085
}  // namespace
17086
17087
0
std::string escape_pattern_string(std::string_view input) {
17088
0
  ada_log("escape_pattern_string called with input=", input);
17089
0
  if (input.empty()) [[unlikely]] {
17090
0
    return "";
17091
0
  }
17092
  // Assert: input is an ASCII string.
17093
0
  ADA_ASSERT_TRUE(ada::idna::is_ascii(input));
17094
  // Let result be the empty string.
17095
0
  std::string result{};
17096
  // Reserve extra space for potential escapes
17097
0
  result.reserve(input.size() * 2);
17098
17099
  // While index is less than input's length:
17100
0
  for (const char c : input) {
17101
0
    if (should_escape_pattern_char(c)) {
17102
      // Append U+005C (\) to the end of result.
17103
0
      result.push_back('\\');
17104
0
    }
17105
    // Append c to the end of result.
17106
0
    result.push_back(c);
17107
0
  }
17108
  // Return result.
17109
0
  return result;
17110
0
}
17111
17112
namespace {
17113
constexpr std::array<uint8_t, 256> escape_regexp_table = []() consteval {
17114
  std::array<uint8_t, 256> out{};
17115
  for (auto& c : {'.', '+', '*', '?', '^', '$', '{', '}', '(', ')', '[', ']',
17116
                  '|', '/', '\\'}) {
17117
    out[c] = 1;
17118
  }
17119
  return out;
17120
}();
17121
17122
0
constexpr bool should_escape_regexp_char(char c) {
17123
0
  return escape_regexp_table[(uint8_t)c];
17124
0
}
17125
}  // namespace
17126
17127
0
std::string escape_regexp_string(std::string_view input) {
17128
  // Assert: input is an ASCII string.
17129
0
  ADA_ASSERT_TRUE(idna::is_ascii(input));
17130
  // Let result be the empty string.
17131
0
  std::string result{};
17132
  // Reserve extra space for potential escapes (worst case: all chars escaped)
17133
0
  result.reserve(input.size() * 2);
17134
0
  for (const char c : input) {
17135
0
    if (should_escape_regexp_char(c)) {
17136
      // Avoid temporary string allocation - directly append characters
17137
0
      result.push_back('\\');
17138
0
      result.push_back(c);
17139
0
    } else {
17140
0
      result.push_back(c);
17141
0
    }
17142
0
  }
17143
0
  return result;
17144
0
}
17145
17146
std::string process_base_url_string(std::string_view input,
17147
0
                                    url_pattern_init::process_type type) {
17148
  // If type is not "pattern" return input.
17149
0
  if (type != url_pattern_init::process_type::pattern) {
17150
0
    return std::string(input);
17151
0
  }
17152
  // Return the result of escaping a pattern string given input.
17153
0
  return escape_pattern_string(input);
17154
0
}
17155
17156
constexpr bool is_absolute_pathname(
17157
0
    std::string_view input, url_pattern_init::process_type type) noexcept {
17158
  // If input is the empty string, then return false.
17159
0
  if (input.empty()) [[unlikely]] {
17160
0
    return false;
17161
0
  }
17162
  // If input[0] is U+002F (/), then return true.
17163
0
  if (input.starts_with("/")) return true;
17164
  // If type is "url", then return false.
17165
0
  if (type == url_pattern_init::process_type::url) return false;
17166
  // If input's code point length is less than 2, then return false.
17167
0
  if (input.size() < 2) return false;
17168
  // If input[0] is U+005C (\) and input[1] is U+002F (/), then return true.
17169
  // If input[0] is U+007B ({) and input[1] is U+002F (/), then return true.
17170
  // Return false.
17171
0
  return input[1] == '/' && (input[0] == '\\' || input[0] == '{');
17172
0
}
17173
17174
std::string generate_pattern_string(
17175
    std::vector<url_pattern_part>& part_list,
17176
0
    url_pattern_compile_component_options& options) {
17177
  // Let result be the empty string.
17178
0
  std::string result{};
17179
  // Let index list be the result of getting the indices for part list.
17180
  // For each index of index list:
17181
0
  for (size_t index = 0; index < part_list.size(); index++) {
17182
    // Let part be part list[index].
17183
    // Use reference to avoid copy
17184
0
    const auto& part = part_list[index];
17185
    // Let previous part be part list[index - 1] if index is greater than 0,
17186
    // otherwise let it be null.
17187
    // Use pointer to avoid copy
17188
0
    const url_pattern_part* previous_part =
17189
0
        index == 0 ? nullptr : &part_list[index - 1];
17190
    // Let next part be part list[index + 1] if index is less than index list's
17191
    // size - 1, otherwise let it be null.
17192
0
    const url_pattern_part* next_part =
17193
0
        index < part_list.size() - 1 ? &part_list[index + 1] : nullptr;
17194
    // If part's type is "fixed-text" then:
17195
0
    if (part.type == url_pattern_part_type::FIXED_TEXT) {
17196
      // If part's modifier is "none" then:
17197
0
      if (part.modifier == url_pattern_part_modifier::none) {
17198
        // Append the result of running escape a pattern string given part's
17199
        // value to the end of result.
17200
0
        result.append(escape_pattern_string(part.value));
17201
0
        continue;
17202
0
      }
17203
      // Append "{" to the end of result.
17204
0
      result += "{";
17205
      // Append the result of running escape a pattern string given part's value
17206
      // to the end of result.
17207
0
      result.append(escape_pattern_string(part.value));
17208
      // Append "}" to the end of result.
17209
0
      result += "}";
17210
      // Append the result of running convert a modifier to a string given
17211
      // part's modifier to the end of result.
17212
0
      result.append(convert_modifier_to_string(part.modifier));
17213
0
      continue;
17214
0
    }
17215
    // Let custom name be true if part's name[0] is not an ASCII digit;
17216
    // otherwise false.
17217
0
    bool custom_name = !unicode::is_ascii_digit(part.name[0]);
17218
    // Let needs grouping be true if at least one of the following are true,
17219
    // otherwise let it be false:
17220
    // - part's suffix is not the empty string.
17221
    // - part's prefix is not the empty string and is not options's prefix code
17222
    // point.
17223
    // This compares the whole prefix: a prefix such as "/9" starts with the
17224
    // prefix code point but is not it, and still needs grouping.
17225
0
    bool needs_grouping =
17226
0
        !part.suffix.empty() ||
17227
0
        (!part.prefix.empty() && part.prefix != options.get_prefix());
17228
17229
    // If all of the following are true:
17230
    // - needs grouping is false; and
17231
    // - custom name is true; and
17232
    // - part's type is "segment-wildcard"; and
17233
    // - part's modifier is "none"; and
17234
    // - next part is not null; and
17235
    // - next part's prefix is the empty string; and
17236
    // - next part's suffix is the empty string
17237
0
    if (!needs_grouping && custom_name &&
17238
0
        part.type == url_pattern_part_type::SEGMENT_WILDCARD &&
17239
0
        part.modifier == url_pattern_part_modifier::none && next_part &&
17240
0
        next_part->prefix.empty() && next_part->suffix.empty()) {
17241
      // If next part's type is "fixed-text":
17242
0
      if (next_part->type == url_pattern_part_type::FIXED_TEXT) {
17243
        // Set needs grouping to true if the result of running is a valid name
17244
        // code point given next part's value's first code point and the boolean
17245
        // false is true.
17246
0
        if (idna::valid_name_code_point(next_part->value[0], false)) {
17247
0
          needs_grouping = true;
17248
0
        }
17249
0
      } else {
17250
        // Set needs grouping to true if next part's name[0] is an ASCII digit.
17251
0
        needs_grouping = !next_part->name.empty() &&
17252
0
                         unicode::is_ascii_digit(next_part->name[0]);
17253
0
      }
17254
0
    }
17255
17256
    // If all of the following are true:
17257
    // - needs grouping is false; and
17258
    // - part's prefix is the empty string; and
17259
    // - previous part is not null; and
17260
    // - previous part's type is "fixed-text"; and
17261
    // - previous part's value's last code point is options's prefix code point.
17262
    // then set needs grouping to true.
17263
0
    if (!needs_grouping && part.prefix.empty() && previous_part &&
17264
0
        previous_part->type == url_pattern_part_type::FIXED_TEXT &&
17265
0
        !previous_part->value.empty() && !options.get_prefix().empty() &&
17266
0
        previous_part->value.back() == options.get_prefix()[0]) {
17267
0
      needs_grouping = true;
17268
0
    }
17269
17270
    // Assert: part's name is not the empty string or null.
17271
0
    ADA_ASSERT_TRUE(!part.name.empty());
17272
17273
    // If needs grouping is true, then append "{" to the end of result.
17274
0
    if (needs_grouping) {
17275
0
      result.append("{");
17276
0
    }
17277
17278
    // Append the result of running escape a pattern string given part's prefix
17279
    // to the end of result.
17280
0
    result.append(escape_pattern_string(part.prefix));
17281
17282
    // If custom name is true:
17283
0
    if (custom_name) {
17284
      // Append ":" to the end of result.
17285
0
      result.append(":");
17286
      // Append part's name to the end of result.
17287
0
      result.append(part.name);
17288
0
    }
17289
17290
    // If part's type is "regexp" then:
17291
0
    if (part.type == url_pattern_part_type::REGEXP) {
17292
      // Append "(" to the end of result.
17293
0
      result.append("(");
17294
      // Append part's value to the end of result.
17295
0
      result.append(part.value);
17296
      // Append ")" to the end of result.
17297
0
      result.append(")");
17298
0
    } else if (part.type == url_pattern_part_type::SEGMENT_WILDCARD &&
17299
0
               !custom_name) {
17300
      // Otherwise if part's type is "segment-wildcard" and custom name is
17301
      // false: Append "(" to the end of result.
17302
0
      result.append("(");
17303
      // Append the result of running generate a segment wildcard regexp given
17304
      // options to the end of result.
17305
0
      result.append(generate_segment_wildcard_regexp(options));
17306
      // Append ")" to the end of result.
17307
0
      result.append(")");
17308
0
    } else if (part.type == url_pattern_part_type::FULL_WILDCARD) {
17309
      // Otherwise if part's type is "full-wildcard":
17310
      // If custom name is false and one of the following is true:
17311
      // - previous part is null; or
17312
      // - previous part's type is "fixed-text"; or
17313
      // - previous part's modifier is not "none"; or
17314
      // - needs grouping is true; or
17315
      // - part's prefix is not the empty string
17316
      // - then append "*" to the end of result.
17317
0
      if (!custom_name &&
17318
0
          (!previous_part ||
17319
0
           previous_part->type == url_pattern_part_type::FIXED_TEXT ||
17320
0
           previous_part->modifier != url_pattern_part_modifier::none ||
17321
0
           needs_grouping || !part.prefix.empty())) {
17322
0
        result.append("*");
17323
0
      } else {
17324
        // Append "(" to the end of result.
17325
        // Append full wildcard regexp value to the end of result.
17326
        // Append ")" to the end of result.
17327
0
        result.append("(.*)");
17328
0
      }
17329
0
    }
17330
17331
    // If all of the following are true:
17332
    // - part's type is "segment-wildcard"; and
17333
    // - custom name is true; and
17334
    // - part's suffix is not the empty string; and
17335
    // - The result of running is a valid name code point given part's suffix's
17336
    // first code point and the boolean false is true then append U+005C (\) to
17337
    // the end of result.
17338
0
    if (part.type == url_pattern_part_type::SEGMENT_WILDCARD && custom_name &&
17339
0
        !part.suffix.empty() &&
17340
0
        idna::valid_name_code_point(part.suffix[0], false)) {
17341
0
      result.append("\\");
17342
0
    }
17343
17344
    // Append the result of running escape a pattern string given part's suffix
17345
    // to the end of result.
17346
0
    result.append(escape_pattern_string(part.suffix));
17347
    // If needs grouping is true, then append "}" to the end of result.
17348
0
    if (needs_grouping) result.append("}");
17349
    // Append the result of running convert a modifier to a string given part's
17350
    // modifier to the end of result.
17351
0
    result.append(convert_modifier_to_string(part.modifier));
17352
0
  }
17353
  // Return result.
17354
0
  return result;
17355
0
}
17356
}  // namespace ada::url_pattern_helpers
17357
17358
#endif  // ADA_INCLUDE_URL_PATTERN
17359
/* end file src/url_pattern_helpers.cpp */
17360
/* begin file src/url_pattern_regex.cpp */
17361
#if ADA_INCLUDE_URL_PATTERN
17362
17363
17364
#ifdef ADA_USE_UNSAFE_STD_REGEX_PROVIDER
17365
#include <cstddef>
17366
#include <optional>
17367
#include <regex>
17368
#include <string>
17369
#include <string_view>
17370
#include <vector>
17371
#endif  // ADA_USE_UNSAFE_STD_REGEX_PROVIDER
17372
17373
namespace ada::url_pattern_regex {
17374
17375
#ifdef ADA_USE_UNSAFE_STD_REGEX_PROVIDER
17376
std::optional<std::regex> std_regex_provider::create_instance(
17377
    std::string_view pattern, bool ignore_case) {
17378
  // Let flags be an empty string.
17379
  // If options's ignore case is true then set flags to "vi".
17380
  // Otherwise set flags to "v"
17381
  auto flags = ignore_case
17382
                   ? std::regex::icase | std::regex_constants::ECMAScript
17383
                   : std::regex_constants::ECMAScript;
17384
  try {
17385
    return std::regex(pattern.data(), pattern.size(), flags);
17386
  } catch (const std::regex_error& e) {
17387
    (void)e;
17388
    ada_log("std_regex_provider::create_instance failed:", e.what());
17389
    return std::nullopt;
17390
  }
17391
}
17392
17393
std::optional<std::vector<std::optional<std::string>>>
17394
std_regex_provider::regex_search(std::string_view input,
17395
                                 const std::regex& pattern) {
17396
  // Use iterator-based regex_search to avoid string allocation
17397
  std::match_results<std::string_view::const_iterator> match_result;
17398
  try {
17399
    if (!std::regex_search(input.begin(), input.end(), match_result, pattern,
17400
                           std::regex_constants::match_any)) {
17401
      return std::nullopt;
17402
    }
17403
  } catch (const std::regex_error& e) {
17404
    (void)e;
17405
    ada_log("std_regex_provider::regex_search failed:", e.what());
17406
    return std::nullopt;
17407
  }
17408
  std::vector<std::optional<std::string>> matches;
17409
  // An empty input can still match with capture groups (e.g. "(x*)" or an
17410
  // optional ":a?" against ""), so the group values must be extracted here
17411
  // just like for a non-empty input. A successful regex_search always leaves
17412
  // the full match at index 0, so match_result is never empty at this point.
17413
  if (match_result.empty()) {
17414
    return matches;
17415
  }
17416
  matches.reserve(match_result.size());
17417
  for (size_t i = 1; i < match_result.size(); ++i) {
17418
    if (auto entry = match_result[i]; entry.matched) {
17419
      matches.emplace_back(entry.str());
17420
    } else {
17421
      // A capture group that did not participate in the match is undefined,
17422
      // not absent. Emitting nullopt keeps the result aligned by position with
17423
      // the component's group name list; dropping it shifts every later group
17424
      // onto the wrong name.
17425
      matches.emplace_back(std::nullopt);
17426
    }
17427
  }
17428
  return matches;
17429
}
17430
17431
bool std_regex_provider::regex_match(std::string_view input,
17432
                                     const std::regex& pattern) {
17433
  try {
17434
    return std::regex_match(input.begin(), input.end(), pattern);
17435
  } catch (const std::regex_error& e) {
17436
    (void)e;
17437
    ada_log("std_regex_provider::regex_match failed:", e.what());
17438
    return false;
17439
  }
17440
}
17441
17442
#endif  // ADA_USE_UNSAFE_STD_REGEX_PROVIDER
17443
17444
}  // namespace ada::url_pattern_regex
17445
17446
#endif  // ADA_INCLUDE_URL_PATTERN
17447
/* end file src/url_pattern_regex.cpp */
17448
#if !defined(ADA_URL_PATTERN_LIST_SEPARATE_TU)
17449
/* begin file src/url_pattern_list.cpp */
17450
/**
17451
 * @file url_pattern_list.cpp
17452
 * @brief Route-set compiler backing ada::url_pattern_list.
17453
 *
17454
 * The provider-independent build side: classification of URLPattern part
17455
 * lists into pattern segments, the compiler (segment trie, per-node dispatch,
17456
 * auxiliary-route pruning), the arena packing, and the sequential reference
17457
 * matcher used beyond the fast-path limits. The matcher itself is inline in
17458
 * url_pattern_list-inl.h.
17459
 *
17460
 * Every dispatch decision is made at build time so that the per-request
17461
 * residual is a segment scan and a trie walk with bounded backtracking.
17462
 * Offline searches (witness plans, perfect multipliers) that fail demote the
17463
 * affected node to a linear scan: slower, never incorrect.
17464
 */
17465
/* begin file src/url_pattern_list_compiler.h */
17466
/**
17467
 * @file url_pattern_list_compiler.h
17468
 * @brief The url_pattern_list route-set compiler: pattern classification and
17469
 * the build-time table construction behind ada::parse_url_pattern_list.
17470
 *
17471
 * This header is NOT part of the public API and is not included from ada.h:
17472
 * only src/url_pattern_list.cpp (and, through the amalgamated ada.cpp, the
17473
 * url_pattern_list fuzzer) include it. The matcher-visible table layout it
17474
 * produces is declared in include/ada/url_pattern_list.h.
17475
 */
17476
#ifndef ADA_URL_PATTERN_LIST_COMPILER_H
17477
#define ADA_URL_PATTERN_LIST_COMPILER_H
17478
17479
17480
#include <cstddef>
17481
#include <cstdint>
17482
#include <string>
17483
#include <vector>
17484
17485
#if ADA_INCLUDE_URL_PATTERN
17486
namespace ada::url_pattern_list_compiler {
17487
17488
/**
17489
 * Maximum number of entries a perfect-hash dispatch table may index (slot
17490
 * ordinals are 8-bit, with 0xFF reserved for "empty"). Nodes with a larger
17491
 * static fanout are demoted to a linear scan: slower, never incorrect.
17492
 */
17493
inline constexpr uint32_t max_dispatch_table_entries = 254;
17494
17495
/**
17496
 * Static fanout up to which a node compares its children directly, in
17497
 * turn; wider nodes dispatch through a projection table. Measured on a
17498
 * synthetic node hit uniformly: direct compares beat the projection by
17499
 * about 1 ns for keys of varied length up to about 12 children, while for
17500
 * keys of one length (which the length gate cannot reject) the projection
17501
 * wins by 4-5 ns at every fanout and by more on misses, because the direct
17502
 * loop's exit is unpredictable. Eight keeps the first case and bounds the
17503
 * second.
17504
 */
17505
inline constexpr uint32_t max_direct_children = 8;
17506
17507
/**
17508
 * The kind of one compiled pattern segment. The numeric values define match
17509
 * priority: at the first differing segment, a literal beats a ":param" and a
17510
 * ":param" beats a "*" (find-my-way / Express-compatible specificity order).
17511
 */
17512
enum class segment_kind : uint8_t {
17513
  literal = 0,
17514
  param = 1,
17515
  wildcard = 2,
17516
};
17517
17518
/**
17519
 * One '/'-separated segment of a compiled pattern: a literal text (already
17520
 * canonicalized by the URLPattern pattern parser), a ":param" (text = group
17521
 * name), or a trailing "*" wildcard.
17522
 */
17523
struct route_segment {
17524
  segment_kind kind = segment_kind::literal;
17525
  std::string text{};
17526
};
17527
17528
/**
17529
 * Everything the compiler knows about one route. `kind_sequence` packs the
17530
 * per-segment kinds two bits per segment, most significant first, so that
17531
 * comparing (kind_sequence, kind_length, route index) as a tuple is exactly
17532
 * the documented specificity order. For regexp-mode routes, `segments`
17533
 * holds only the anchored literal prefix (the leading segments that are
17534
 * whole fixed text, closed by a '/'), which the auxiliary-route pruning
17535
 * uses to rule out routes that can never match the same input.
17536
 */
17537
struct route_info {
17538
  std::vector<route_segment> segments{};
17539
  // Capture group names, in capture order (params left to right, then the
17540
  // wildcard group). Regexp-mode routes: filled from the compiled component.
17541
  std::vector<std::string> group_names{};
17542
  uint64_t kind_sequence = 0;
17543
  uint8_t kind_length = 0;
17544
  url_pattern_list_detail::route_mode mode =
17545
      url_pattern_list_detail::route_mode::sequential;
17546
  bool has_wildcard = false;
17547
  bool all_literal = false;
17548
};
17549
17550
/**
17551
 * Classifies a URLPattern part list into '/'-separated pattern segments.
17552
 * Returns true when the pattern is expressible in the static/":param"/"*"
17553
 * subset (every segment wholly a literal, a param, or a final wildcard);
17554
 * `segments` and `group_names` are only valid on success.
17555
 */
17556
bool classify_parts(const std::vector<url_pattern_part>& parts,
17557
                    std::vector<route_segment>& segments,
17558
                    std::vector<std::string>& group_names);
17559
17560
/**
17561
 * Computes kind sequence and flags from route.segments and decides the
17562
 * route's mode: trie when every fast-path build limit is met, sequential
17563
 * otherwise (the empty pattern, more than max_trie_pattern_segments
17564
 * segments, or more than max_captures_per_route capture groups).
17565
 */
17566
void finalize_route(route_info& route) noexcept;
17567
17568
/**
17569
 * Best-effort kind sequence for a route that needs regexp matching, so it can
17570
 * participate in the specificity order: custom "(...)" groups count as params,
17571
 * full wildcards and modified ("?", "+", "*") groups terminate the sequence as
17572
 * a wildcard tail. This mapping is an approximation and is called out as an
17573
 * open question in the class documentation. Also records the route's
17574
 * anchored literal prefix in route.segments and sets mode = regexp.
17575
 */
17576
void approximate_kind_sequence(const std::vector<url_pattern_part>& parts,
17577
                               route_info& route);
17578
17579
/**
17580
 * True when route `a` (at insertion index `a_index`) outranks route `b`.
17581
 */
17582
constexpr bool route_outranks(const route_info& a, size_t a_index,
17583
0
                              const route_info& b, size_t b_index) noexcept {
17584
0
  return url_pattern_list_detail::outranks(a.kind_sequence, a.kind_length,
17585
0
                                           a_index, b.kind_sequence,
17586
0
                                           b.kind_length, b_index);
17587
0
}
17588
17589
/**
17590
 * Compiles the route set: builds the trie and its dispatch plans over the
17591
 * trie-mode routes, the segment table, the auxiliary-route table with its
17592
 * per-route challenger ranges, and packs everything into one arena. A node
17593
 * whose offline search fails is demoted to a slower but correct plan. Fails
17594
 * only when a table exceeds its limit or integer encoding.
17595
 * Literal texts are used as given (the caller has already case-folded them
17596
 * when ignore_case is set).
17597
 */
17598
tl::expected<url_pattern_list_detail::compiled_routes, errors>
17599
compile_route_set(std::vector<route_info>& routes);
17600
17601
}  // namespace ada::url_pattern_list_compiler
17602
#endif  // ADA_INCLUDE_URL_PATTERN
17603
#endif  // ADA_URL_PATTERN_LIST_COMPILER_H
17604
/* end file src/url_pattern_list_compiler.h */
17605
17606
#include <algorithm>
17607
#include <array>
17608
#include <bit>
17609
#include <cstdint>
17610
#include <cstring>
17611
#include <limits>
17612
#include <span>
17613
#include <string_view>
17614
#include <utility>
17615
#include <vector>
17616
17617
#if ADA_INCLUDE_URL_PATTERN
17618
17619
namespace ada::url_pattern_list_compiler {
17620
17621
namespace {
17622
17623
using url_pattern_list_detail::compiled_routes;
17624
using url_pattern_list_detail::edge_record;
17625
using url_pattern_list_detail::hash_record;
17626
using url_pattern_list_detail::node_record;
17627
using url_pattern_list_detail::route_mode;
17628
using url_pattern_list_detail::route_record;
17629
using url_pattern_list_detail::segment_record;
17630
using url_pattern_list_limits::max_captures_per_route;
17631
using url_pattern_list_limits::max_trie_pattern_segments;
17632
17633
// The tables under construction, one vector per section; packed into the
17634
// single arena of compiled_routes at the end of the build.
17635
struct builder_tables {
17636
  std::vector<node_record> nodes{};
17637
  std::vector<hash_record> hashes{};
17638
  std::vector<edge_record> edges{};
17639
  std::vector<uint8_t> slots{};
17640
  std::vector<char> blob{};
17641
  std::vector<route_record> routes{};
17642
  std::vector<segment_record> segments{};
17643
  std::vector<uint32_t> aux{};
17644
  std::vector<uint16_t> root_index{};
17645
  uint32_t n_aux_all = 0;
17646
};
17647
17648
// Witness plan for single-string tables: nibbles 0..2 hold witness ids
17649
// (distinct ids first, remaining slots duplicating id 0 so the runtime
17650
// gather is fixed-shape and branch-free); bits 12..14 are metadata.
17651
constexpr uint16_t pack_witness_plan(const uint8_t* ids, uint32_t n_ids,
17652
0
                                     bool use_len) noexcept {
17653
0
  uint16_t w = 0;
17654
0
  for (uint32_t j = 0; j < 3; j++) {
17655
0
    w = static_cast<uint16_t>(
17656
0
        w | static_cast<uint16_t>((j < n_ids ? ids[j] : ids[0]) & 15u)
17657
0
                << (4 * j));
17658
0
  }
17659
0
  w = static_cast<uint16_t>(w | static_cast<uint16_t>(n_ids << 12));
17660
0
  if (use_len) {
17661
0
    w = static_cast<uint16_t>(w | static_cast<uint16_t>(1) << 14);
17662
0
  }
17663
0
  return w;
17664
0
}
17665
17666
// Bytes [from, min(from + 8, len)) of a key, packed little-endian and
17667
// zero-padded; the build-time twin of the matcher's window load.
17668
constexpr uint64_t pack_window_le(const char* p, uint32_t len,
17669
0
                                  uint32_t from) noexcept {
17670
0
  uint64_t x = 0;
17671
0
  for (uint32_t j = 0; j < 8 && from + j < len; j++) {
17672
0
    x |= static_cast<uint64_t>(static_cast<uint8_t>(p[from + j])) << (8 * j);
17673
0
  }
17674
0
  return x;
17675
0
}
17676
17677
// Deterministic RNG for the multiplier search (splitmix64).
17678
struct splitmix64 {
17679
  uint64_t state;
17680
0
  constexpr explicit splitmix64(uint64_t seed) noexcept : state(seed) {}
17681
0
  constexpr uint64_t next() noexcept {
17682
0
    uint64_t z = (state += 0x9E3779B97F4A7C15ull);
17683
0
    z = (z ^ (z >> 30)) * 0xBF58476D1CE4E5B9ull;
17684
0
    z = (z ^ (z >> 27)) * 0x94D049BB133111EBull;
17685
0
    return z ^ (z >> 31);
17686
0
  }
17687
};
17688
17689
struct transient_node {  // build-time trie (views into route segment storage)
17690
  std::vector<std::pair<std::string_view, int32_t>> kids{};
17691
  int32_t param = -1;
17692
  int32_t wild_route = -1;
17693
  int32_t terminal = -1;
17694
};
17695
17696
0
constexpr unsigned ceil_log2(size_t n) noexcept {
17697
0
  unsigned b = 0;
17698
0
  while ((size_t{1} << b) < n) {
17699
0
    b++;
17700
0
  }
17701
0
  return b;
17702
0
}
17703
17704
// Starting table size for n keys: load factor <= ~1/4, loosened as n grows
17705
// so the multiplier search still lands inside the budget.
17706
0
constexpr unsigned initial_slot_bits(size_t n) noexcept {
17707
0
  unsigned headroom = 1;
17708
0
  if (n > 64) {
17709
0
    headroom = 3;
17710
0
  } else if (n > 8) {
17711
0
    headroom = 2;
17712
0
  }
17713
0
  return ceil_log2(n) + headroom;
17714
0
}
17715
17716
bool find_multiplier(const std::vector<uint64_t>& proj, unsigned b0,
17717
0
                     uint64_t& multiplier_out, uint8_t& bits_out) {
17718
0
  const size_t n = proj.size();
17719
0
  for (unsigned b = b0; b <= 12; b++) {
17720
0
    std::vector<uint32_t> stamp(size_t{1} << b, 0);
17721
0
    splitmix64 rng(0x14C0FFEEull + b);
17722
0
    for (uint32_t t = 1; t <= 4000; t++) {
17723
0
      const uint64_t m = rng.next() | 1;
17724
0
      bool ok = true;
17725
0
      for (size_t i = 0; i < n; i++) {
17726
0
        const uint64_t s = (proj[i] * m) >> (64 - b);
17727
0
        if (stamp[s] == t) {
17728
0
          ok = false;
17729
0
          break;
17730
0
        }
17731
0
        stamp[s] = t;
17732
0
      }
17733
0
      if (ok) {
17734
0
        multiplier_out = m;
17735
0
        bits_out = static_cast<uint8_t>(b);
17736
0
        return true;
17737
0
      }
17738
0
    }
17739
0
  }
17740
0
  return false;
17741
0
}
17742
17743
// Emits a perfect-hash slot table for `proj` at the end of `slots`. Returns
17744
// false if the search failed, in which case nothing was appended and the
17745
// caller demotes that table to a linear scan.
17746
bool emit_slot_table(const std::vector<uint64_t>& proj,
17747
                     std::vector<uint8_t>& slots, uint64_t& multiplier_out,
17748
0
                     uint8_t& bits_out, uint32_t& base_out) {
17749
0
  if (!find_multiplier(proj, initial_slot_bits(proj.size()), multiplier_out,
17750
0
                       bits_out)) {
17751
0
    return false;
17752
0
  }
17753
0
  base_out = static_cast<uint32_t>(slots.size());
17754
0
  slots.resize(slots.size() + (size_t{1} << bits_out), 0xFF);
17755
0
  for (size_t i = 0; i < proj.size(); i++) {
17756
0
    slots[base_out +
17757
0
          url_pattern_list_detail::slot_of(proj[i], multiplier_out, bits_out)] =
17758
0
        static_cast<uint8_t>(i);
17759
0
  }
17760
0
  return true;
17761
0
}
17762
17763
// Advances `c` to the next k-combination of {0..n-1} in lexicographic
17764
// order; false once the last one has been visited.
17765
template <size_t N>
17766
constexpr bool next_combination(std::array<uint32_t, N>& c, uint32_t k,
17767
0
                                uint32_t n) noexcept {
17768
0
  int32_t j = static_cast<int32_t>(k) - 1;
17769
0
  while (j >= 0 &&
17770
0
         c[static_cast<uint32_t>(j)] == n - k + static_cast<uint32_t>(j)) {
17771
0
    j--;
17772
0
  }
17773
0
  if (j < 0) {
17774
0
    return false;
17775
0
  }
17776
0
  c[static_cast<uint32_t>(j)]++;
17777
0
  for (uint32_t t = static_cast<uint32_t>(j) + 1; t < k; t++) {
17778
0
    c[t] = c[t - 1] + 1;
17779
0
  }
17780
0
  return true;
17781
0
}
17782
17783
// Witness-subset search over the given id alphabet, cost-ordered: fewest
17784
// distinct witness ids first (the length is always packed -- it is free).
17785
// The first injective subset wins.
17786
bool find_witness_plan(
17787
    const std::vector<std::pair<std::string_view, int32_t>>& kids,
17788
    const uint8_t* alphabet, uint32_t n_alpha, uint32_t max_reads,
17789
0
    uint16_t& plan_out) {
17790
0
  const size_t n = kids.size();
17791
0
  auto injective = [&](uint16_t wp) {  // sort + adjacent compare
17792
0
    std::vector<uint64_t> proj(n);
17793
0
    for (size_t i = 0; i < n; i++) {
17794
0
      proj[i] = url_pattern_list_detail::project(
17795
0
          kids[i].first.data(), static_cast<uint32_t>(kids[i].first.size()),
17796
0
          wp);
17797
0
    }
17798
0
    std::sort(proj.begin(), proj.end());
17799
0
    for (size_t i = 1; i < n; i++) {
17800
0
      if (proj[i] == proj[i - 1]) {
17801
0
        return false;
17802
0
      }
17803
0
    }
17804
0
    return true;
17805
0
  };
17806
0
  for (uint32_t k = 1; k <= max_reads && k <= n_alpha; k++) {
17807
0
    std::array<uint32_t, 3> c{0, 1, 2};
17808
0
    do {
17809
0
      uint8_t ids[3] = {0, 0, 0};
17810
0
      for (uint32_t j = 0; j < k; j++) {
17811
0
        ids[j] = alphabet[c[j]];
17812
0
      }
17813
0
      const uint16_t wp = pack_witness_plan(ids, k, true);
17814
0
      if (injective(wp)) {
17815
0
        plan_out = wp;
17816
0
        return true;
17817
0
      }
17818
0
    } while (next_combination(c, k, n_alpha));
17819
0
  }
17820
0
  return false;
17821
0
}
17822
17823
// ---- build stages ----------------------------------------------------------
17824
17825
// Segment trie over the trie-mode routes. Priority is resolved here, at
17826
// build, into each node's fixed decision order (static children -> param ->
17827
// wildcard); a DFS in that order returns the match with the
17828
// lexicographically minimal kind sequence. Duplicate patterns collapse onto
17829
// one slot: an occupied slot is never overwritten, so the smallest route
17830
// index survives.
17831
0
std::vector<transient_node> build_trie(const std::vector<route_info>& routes) {
17832
0
  std::vector<transient_node> t(1);
17833
0
  for (size_t i = 0; i < routes.size(); i++) {
17834
0
    const route_info& rt = routes[i];
17835
0
    if (rt.mode != route_mode::trie) {
17836
0
      continue;
17837
0
    }
17838
0
    int32_t cur = 0;
17839
0
    for (const route_segment& ps : rt.segments) {
17840
0
      if (ps.kind == segment_kind::literal) {
17841
0
        int32_t nxt = -1;
17842
0
        for (auto& kv : t[static_cast<size_t>(cur)].kids) {
17843
0
          if (kv.first == ps.text) {
17844
0
            nxt = kv.second;
17845
0
            break;
17846
0
          }
17847
0
        }
17848
0
        if (nxt < 0) {
17849
0
          nxt = static_cast<int32_t>(t.size());
17850
0
          t[static_cast<size_t>(cur)].kids.emplace_back(ps.text, nxt);
17851
0
          t.emplace_back();
17852
0
        }
17853
0
        cur = nxt;
17854
0
      } else if (ps.kind == segment_kind::param) {
17855
0
        if (t[static_cast<size_t>(cur)].param < 0) {
17856
0
          t[static_cast<size_t>(cur)].param = static_cast<int32_t>(t.size());
17857
0
          t.emplace_back();
17858
0
        }
17859
0
        cur = t[static_cast<size_t>(cur)].param;
17860
0
      } else {  // wildcard (classification guarantees final)
17861
0
        if (t[static_cast<size_t>(cur)].wild_route < 0) {
17862
0
          t[static_cast<size_t>(cur)].wild_route = static_cast<int32_t>(i);
17863
0
        }
17864
0
        cur = -1;
17865
0
        break;
17866
0
      }
17867
0
    }
17868
0
    if (cur >= 0 && t[static_cast<size_t>(cur)].terminal < 0) {
17869
0
      t[static_cast<size_t>(cur)].terminal = static_cast<int32_t>(i);
17870
0
    }
17871
0
  }
17872
  // The root's children are sorted by first byte so that the first-byte
17873
  // index can address each run of same-byte children as one contiguous
17874
  // block of edges.
17875
0
  std::stable_sort(
17876
0
      t[0].kids.begin(), t[0].kids.end(), [](const auto& a, const auto& b) {
17877
0
        const int ka = a.first.empty() ? -1 : static_cast<uint8_t>(a.first[0]);
17878
0
        const int kb = b.first.empty() ? -1 : static_cast<uint8_t>(b.first[0]);
17879
0
        return ka < kb;
17880
0
      });
17881
0
  return t;
17882
0
}
17883
17884
// Per-route records: priority data, capture positions (so extracting params
17885
// at match time is a fixed walk over param_positions), regexp ordinals.
17886
void compile_route_records(builder_tables& r,
17887
0
                           const std::vector<route_info>& routes) {
17888
0
  r.routes.resize(routes.size());
17889
0
  int32_t n_regexp = 0;
17890
0
  for (size_t i = 0; i < routes.size(); i++) {
17891
0
    const route_info& rt = routes[i];
17892
0
    route_record& rm = r.routes[i];
17893
0
    rm.kind_sequence = rt.kind_sequence;
17894
0
    rm.kind_length = rt.kind_length;
17895
0
    rm.mode = rt.mode;
17896
0
    rm.wild = rt.has_wildcard ? 1 : 0;
17897
0
    if (rt.mode == route_mode::regexp) {
17898
0
      rm.regexp_component = n_regexp++;
17899
0
      continue;
17900
0
    }
17901
0
    if (rt.mode != route_mode::trie) {
17902
0
      continue;  // capture positions are only read for trie-answered routes
17903
0
    }
17904
0
    for (size_t s = 0; s < rt.segments.size(); s++) {
17905
0
      if (rt.segments[s].kind == segment_kind::param) {
17906
        // Classification guarantees n_params <= max_captures_per_route for
17907
        // trie-mode routes.
17908
0
        rm.param_positions[rm.n_params++] = static_cast<uint8_t>(s);
17909
0
      }
17910
0
    }
17911
0
  }
17912
0
}
17913
17914
// BFS layout: assign final node ids breadth-first so each node's static
17915
// children occupy a contiguous block of edges[]. Returns the transient-node
17916
// id per final id.
17917
std::vector<int32_t> layout_nodes(builder_tables& r,
17918
0
                                  const std::vector<transient_node>& t) {
17919
0
  std::vector<int32_t> order;  // transient id per final id
17920
0
  order.push_back(0);
17921
0
  r.nodes.resize(1);
17922
0
  for (size_t head = 0; head < order.size(); head++) {
17923
0
    const transient_node& tn = t[static_cast<size_t>(order[head])];
17924
0
    node_record nd{};
17925
0
    nd.wild_route = tn.wild_route;
17926
0
    nd.terminal_route = tn.terminal;
17927
0
    nd.first_child = static_cast<int32_t>(r.edges.size());
17928
0
    nd.n_static = static_cast<uint16_t>(tn.kids.size());
17929
0
    const size_t id_base = order.size();  // children take the next BFS ids
17930
0
    for (size_t ci = 0; ci < tn.kids.size(); ci++) {
17931
0
      const std::string_view k = tn.kids[ci].first;
17932
0
      edge_record e{};
17933
0
      e.key_length = static_cast<uint16_t>(k.size());
17934
0
      e.key_offset = static_cast<uint32_t>(r.blob.size());
17935
0
      r.blob.insert(r.blob.end(), k.begin(), k.end());
17936
0
      e.prefix = pack_window_le(k.data(), static_cast<uint32_t>(k.size()), 0);
17937
0
      e.suffix = pack_window_le(
17938
0
          k.data(), static_cast<uint32_t>(k.size()),
17939
0
          k.size() >= 8 ? static_cast<uint32_t>(k.size()) - 8 : 0);
17940
0
      e.node = static_cast<int32_t>(id_base + ci);
17941
0
      r.edges.push_back(e);
17942
0
    }
17943
0
    for (size_t ci = 0; ci < tn.kids.size(); ci++) {
17944
0
      order.push_back(tn.kids[ci].second);
17945
0
    }
17946
0
    if (tn.param >= 0) {
17947
0
      nd.param_child = static_cast<int32_t>(order.size());
17948
0
      order.push_back(tn.param);
17949
0
    }
17950
0
    nd.has_alternative = (nd.param_child >= 0 || nd.wild_route >= 0) ? 1 : 0;
17951
0
    r.nodes.resize(order.size());
17952
0
    r.nodes[head] = nd;
17953
0
  }
17954
0
  return order;
17955
0
}
17956
17957
// Root first-byte index: a 256-entry table from the first byte of the
17958
// input's first segment to the first root child starting with it (the
17959
// children are sorted by first byte). Built for a root with at least three
17960
// children; a run of same-byte children longer than max_direct_children, or
17961
// an empty key, falls back to the regular ladder. Returns true when the
17962
// index was emitted.
17963
0
bool build_root_index(builder_tables& r, const transient_node& root) {
17964
0
  const size_t nk = root.kids.size();
17965
0
  if (nk < 3) {
17966
0
    return false;
17967
0
  }
17968
0
  std::array<uint16_t, 256> index{};
17969
0
  index.fill(0xFFFF);
17970
0
  std::array<uint32_t, 256> run{};
17971
0
  for (size_t ci = 0; ci < nk; ci++) {
17972
0
    if (root.kids[ci].first.empty()) {
17973
0
      return false;  // an empty key has no first byte: regular ladder
17974
0
    }
17975
0
    const uint8_t b = static_cast<uint8_t>(root.kids[ci].first[0]);
17976
0
    if (index[b] == 0xFFFF) {
17977
0
      index[b] = static_cast<uint16_t>(ci);
17978
0
    }
17979
0
    if (++run[b] > max_direct_children) {
17980
0
      return false;
17981
0
    }
17982
0
  }
17983
0
  r.root_index.assign(index.begin(), index.end());
17984
0
  return true;
17985
0
}
17986
17987
// Per-node dispatch ladder, chosen by static child count: 0 none, up to
17988
// max_direct_children direct compares, then projection over a restricted
17989
// alphabet (escalating to the full alphabet); linear demotion when a search
17990
// fails or when the fanout exceeds max_dispatch_table_entries. The root
17991
// gets the first-byte index when its fanout allows. Never incorrect, only
17992
// slower.
17993
void compile_dispatch(builder_tables& r, const std::vector<transient_node>& t,
17994
0
                      const std::vector<int32_t>& order) {
17995
0
  for (size_t ni = 0; ni < r.nodes.size(); ni++) {
17996
0
    node_record& nd = r.nodes[ni];
17997
0
    const transient_node& tn = t[static_cast<size_t>(order[ni])];
17998
0
    const size_t nk = tn.kids.size();
17999
0
    if (nk == 0) {
18000
0
      nd.dispatch = 0;
18001
0
      continue;
18002
0
    }
18003
0
    if (ni == 0 && build_root_index(r, tn)) {
18004
0
      nd.dispatch = 4;
18005
0
      continue;
18006
0
    }
18007
0
    if (nk <= max_direct_children) {
18008
0
      nd.dispatch = 1;
18009
0
      continue;
18010
0
    }
18011
0
    if (nk > max_dispatch_table_entries) {
18012
0
      nd.dispatch = 3;  // slot ordinals are 8-bit; linear scan stays correct
18013
0
      continue;
18014
0
    }
18015
0
    uint16_t wp = 0;
18016
0
    bool found = false;
18017
0
    if (nk <= 16) {
18018
0
      constexpr uint8_t alpha_small[2] = {0, 8};  // s[0], s[len - 1]
18019
0
      found = find_witness_plan(tn.kids, alpha_small, 2, 2, wp);
18020
0
    }
18021
0
    if (!found) {  // full alphabet (also the escalation path for <= 16)
18022
0
      uint8_t alpha_full[16] = {0, 1, 2,  3,  4,  5,  6,  7,
18023
0
                                8, 9, 10, 11, 12, 13, 14, 15};
18024
0
      found = find_witness_plan(tn.kids, alpha_full, 16, 3, wp);
18025
0
    }
18026
0
    hash_record h{};
18027
0
    if (found) {
18028
0
      std::vector<uint64_t> proj(nk);
18029
0
      for (size_t i = 0; i < nk; i++) {
18030
0
        proj[i] = url_pattern_list_detail::project(
18031
0
            tn.kids[i].first.data(),
18032
0
            static_cast<uint32_t>(tn.kids[i].first.size()), wp);
18033
0
      }
18034
0
      found = emit_slot_table(proj, r.slots, h.multiplier, h.slot_bits,
18035
0
                              h.slot_base);
18036
0
    }
18037
0
    if (!found) {
18038
0
      nd.dispatch = 3;  // demoted: correct, slower
18039
0
      continue;
18040
0
    }
18041
0
    nd.dispatch = 2;
18042
0
    h.witness_plan = wp;
18043
0
    nd.hash_index = static_cast<uint32_t>(r.hashes.size());
18044
0
    r.hashes.push_back(h);
18045
0
  }
18046
0
}
18047
18048
// Pure-leaf edge encoding, last: a child that is a pure leaf (terminal
18049
// route only) is encoded as -2 - route directly in the edge, so the walk
18050
// finishes or dead-ends there without loading the leaf node. -1 keeps
18051
// meaning "absent" for param_child.
18052
0
void encode_leaf_shortcuts(builder_tables& r) {
18053
0
  auto pure_leaf = [&](int32_t ni) {
18054
0
    const node_record& nd = r.nodes[static_cast<size_t>(ni)];
18055
0
    return nd.n_static == 0 && nd.param_child < 0 && nd.wild_route < 0 &&
18056
0
           nd.terminal_route >= 0;
18057
0
  };
18058
0
  for (auto& e : r.edges) {
18059
0
    if (pure_leaf(e.node)) {
18060
0
      e.node = -2 - r.nodes[static_cast<size_t>(e.node)].terminal_route;
18061
0
    }
18062
0
  }
18063
0
  for (auto& nd : r.nodes) {
18064
0
    if (nd.param_child >= 0 && pure_leaf(nd.param_child)) {
18065
0
      nd.param_child =
18066
0
          -2 - r.nodes[static_cast<size_t>(nd.param_child)].terminal_route;
18067
0
    }
18068
0
  }
18069
0
}
18070
18071
// Segment table: every non-regexp route's segments (kind plus literal text
18072
// in the blob), so the sequential fallback beyond the fast-path limits can
18073
// match any route without the compiler's types; for regexp routes, the
18074
// anchored literal prefix the matcher checks before running the provider.
18075
void build_segment_table(builder_tables& r,
18076
0
                         const std::vector<route_info>& routes) {
18077
0
  for (size_t i = 0; i < routes.size(); i++) {
18078
0
    const route_info& rt = routes[i];
18079
0
    route_record& rm = r.routes[i];
18080
0
    rm.segment_first = static_cast<uint32_t>(r.segments.size());
18081
0
    rm.segment_count = static_cast<uint32_t>(rt.segments.size());
18082
0
    for (const route_segment& s : rt.segments) {
18083
0
      segment_record sr{};
18084
0
      sr.kind = static_cast<uint8_t>(s.kind);
18085
0
      if (s.kind == segment_kind::literal) {
18086
0
        sr.text_offset = static_cast<uint32_t>(r.blob.size());
18087
0
        sr.text_length = static_cast<uint32_t>(s.text.size());
18088
0
        r.blob.insert(r.blob.end(), s.text.begin(), s.text.end());
18089
0
      }
18090
0
      r.segments.push_back(sr);
18091
0
    }
18092
0
  }
18093
0
}
18094
18095
// Could some pathname match both a fast-path route `w` (full segment
18096
// information) and route `c`? Conservative: true unless a literal conflict
18097
// or a segment-count conflict proves otherwise. For a regexp-mode `c`,
18098
// segments are what approximate_kind_sequence could certify (see there);
18099
// has_wildcard means the input needs at least segments.size() segments
18100
// rather than exactly that many.
18101
0
bool co_matchable(const route_info& w, const route_info& c) noexcept {
18102
0
  const bool c_regexp = c.mode == route_mode::regexp;
18103
0
  const size_t wn = w.segments.size();
18104
0
  const size_t cn = c.segments.size();
18105
0
  constexpr size_t unbounded = ~size_t{0};
18106
  // Segment counts each route accepts: [min, max].
18107
0
  const size_t w_max = w.has_wildcard ? unbounded : wn;
18108
0
  const size_t c_max = c.has_wildcard ? unbounded : cn;
18109
0
  if ((wn > cn ? wn : cn) > (w_max < c_max ? w_max : c_max)) {
18110
0
    return false;
18111
0
  }
18112
  // Positions both routes constrain (a safe wildcard segment constrains
18113
  // nothing; a regexp route's segments are all constraining).
18114
0
  const size_t w_fixed = w.has_wildcard ? wn - 1 : wn;
18115
0
  const size_t c_fixed = (!c_regexp && c.has_wildcard) ? cn - 1 : cn;
18116
0
  const size_t upto = w_fixed < c_fixed ? w_fixed : c_fixed;
18117
0
  for (size_t j = 0; j < upto; j++) {
18118
0
    const route_segment& ws = w.segments[j];
18119
0
    const route_segment& cs = c.segments[j];
18120
0
    if (ws.kind == segment_kind::literal && cs.kind == segment_kind::literal) {
18121
0
      if (ws.text != cs.text) {
18122
0
        return false;
18123
0
      }
18124
0
    } else if (ws.kind == segment_kind::literal &&
18125
0
               cs.kind == segment_kind::param) {
18126
0
      if (ws.text.empty()) {
18127
0
        return false;  // params never bind an empty segment
18128
0
      }
18129
0
    } else if (ws.kind == segment_kind::param &&
18130
0
               cs.kind == segment_kind::literal) {
18131
0
      if (cs.text.empty()) {
18132
0
        return false;
18133
0
      }
18134
0
    }
18135
0
  }
18136
0
  return true;
18137
0
}
18138
18139
// Auxiliary routes: those the trie cannot answer for (regexp mode and
18140
// sequential mode), in insertion order, followed by one challenger range per
18141
// trie route: the auxiliary routes that outrank it AND could match the same
18142
// input. After a fast-path hit only the winner's challengers are tested
18143
// (usually none). Fails past url_pattern_list_limits::max_aux_entries.
18144
0
bool build_aux_table(builder_tables& r, const std::vector<route_info>& routes) {
18145
0
  std::vector<uint32_t> aux_all;
18146
0
  for (size_t i = 0; i < routes.size(); i++) {
18147
0
    if (routes[i].mode != route_mode::trie) {
18148
0
      aux_all.push_back(static_cast<uint32_t>(i));
18149
0
    }
18150
0
  }
18151
0
  r.aux = aux_all;
18152
0
  r.n_aux_all = static_cast<uint32_t>(aux_all.size());
18153
0
  for (size_t w = 0; w < routes.size(); w++) {
18154
0
    const route_info& winner = routes[w];
18155
0
    if (winner.mode != route_mode::trie) {
18156
0
      continue;  // never a fast-path winner
18157
0
    }
18158
0
    route_record& rm = r.routes[w];
18159
0
    rm.challenger_first = static_cast<uint32_t>(r.aux.size());
18160
0
    for (const uint32_t c : aux_all) {
18161
0
      if (route_outranks(routes[c], c, winner, w) &&
18162
0
          co_matchable(winner, routes[c])) {
18163
0
        if (r.aux.size() >= url_pattern_list_limits::max_aux_entries) {
18164
0
          return false;
18165
0
        }
18166
0
        r.aux.push_back(c);
18167
0
      }
18168
0
    }
18169
0
    rm.challenger_count =
18170
0
        static_cast<uint32_t>(r.aux.size()) - rm.challenger_first;
18171
0
  }
18172
0
  return true;
18173
0
}
18174
18175
// Packs every table into one arena, each section 8-byte aligned, and
18176
// records the section offsets. The blob gets 8 bytes of zero padding so
18177
// short key windows can always be loaded whole. Fails when the arena does not
18178
// fit the uint32_t offsets, which also bounds every offset and count stored
18179
// in the tables.
18180
0
tl::expected<compiled_routes, errors> pack_arena(builder_tables& r) {
18181
0
  compiled_routes out{};
18182
0
  r.blob.insert(r.blob.end(), 8, '\0');
18183
0
  uint64_t total = 0;
18184
0
  const auto reserve = [&](size_t bytes) {
18185
0
    const uint64_t offset = total;
18186
0
    total += (bytes + 7) & ~size_t{7};
18187
0
    return static_cast<uint32_t>(offset);
18188
0
  };
18189
0
  const auto bytes_of = [](const auto& v) { return v.size() * sizeof(v[0]); };
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<ada::url_pattern_list_detail::node_record, std::__1::allocator<ada::url_pattern_list_detail::node_record> > >(std::__1::vector<ada::url_pattern_list_detail::node_record, std::__1::allocator<ada::url_pattern_list_detail::node_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<ada::url_pattern_list_detail::hash_record, std::__1::allocator<ada::url_pattern_list_detail::hash_record> > >(std::__1::vector<ada::url_pattern_list_detail::hash_record, std::__1::allocator<ada::url_pattern_list_detail::hash_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<ada::url_pattern_list_detail::edge_record, std::__1::allocator<ada::url_pattern_list_detail::edge_record> > >(std::__1::vector<ada::url_pattern_list_detail::edge_record, std::__1::allocator<ada::url_pattern_list_detail::edge_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >(std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<char, std::__1::allocator<char> > >(std::__1::vector<char, std::__1::allocator<char> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<ada::url_pattern_list_detail::route_record, std::__1::allocator<ada::url_pattern_list_detail::route_record> > >(std::__1::vector<ada::url_pattern_list_detail::route_record, std::__1::allocator<ada::url_pattern_list_detail::route_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<ada::url_pattern_list_detail::segment_record, std::__1::allocator<ada::url_pattern_list_detail::segment_record> > >(std::__1::vector<ada::url_pattern_list_detail::segment_record, std::__1::allocator<ada::url_pattern_list_detail::segment_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > >(std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_0::operator()<std::__1::vector<unsigned short, std::__1::allocator<unsigned short> > >(std::__1::vector<unsigned short, std::__1::allocator<unsigned short> > const&) const
18190
0
  out.nodes_offset = reserve(bytes_of(r.nodes));
18191
0
  out.hashes_offset = reserve(bytes_of(r.hashes));
18192
0
  out.edges_offset = reserve(bytes_of(r.edges));
18193
0
  out.slots_offset = reserve(bytes_of(r.slots));
18194
0
  out.blob_offset = reserve(bytes_of(r.blob));
18195
0
  out.routes_offset = reserve(bytes_of(r.routes));
18196
0
  out.segments_offset = reserve(bytes_of(r.segments));
18197
0
  out.aux_offset = reserve(bytes_of(r.aux));
18198
0
  out.root_index_offset = reserve(bytes_of(r.root_index));
18199
  // LCOV_EXCL_START
18200
0
  if (total > UINT32_MAX) {
18201
0
    return tl::unexpected(errors::type_error);
18202
0
  }
18203
  // LCOV_EXCL_STOP
18204
0
  out.arena.assign(static_cast<size_t>(total), 0);
18205
0
  const auto place = [&](uint32_t offset, const auto& v) {
18206
0
    if (!v.empty()) {
18207
0
      std::memcpy(out.arena.data() + offset, v.data(), v.size() * sizeof(v[0]));
18208
0
    }
18209
0
  };
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<ada::url_pattern_list_detail::node_record, std::__1::allocator<ada::url_pattern_list_detail::node_record> > >(unsigned int, std::__1::vector<ada::url_pattern_list_detail::node_record, std::__1::allocator<ada::url_pattern_list_detail::node_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<ada::url_pattern_list_detail::hash_record, std::__1::allocator<ada::url_pattern_list_detail::hash_record> > >(unsigned int, std::__1::vector<ada::url_pattern_list_detail::hash_record, std::__1::allocator<ada::url_pattern_list_detail::hash_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<ada::url_pattern_list_detail::edge_record, std::__1::allocator<ada::url_pattern_list_detail::edge_record> > >(unsigned int, std::__1::vector<ada::url_pattern_list_detail::edge_record, std::__1::allocator<ada::url_pattern_list_detail::edge_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > >(unsigned int, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<char, std::__1::allocator<char> > >(unsigned int, std::__1::vector<char, std::__1::allocator<char> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<ada::url_pattern_list_detail::route_record, std::__1::allocator<ada::url_pattern_list_detail::route_record> > >(unsigned int, std::__1::vector<ada::url_pattern_list_detail::route_record, std::__1::allocator<ada::url_pattern_list_detail::route_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<ada::url_pattern_list_detail::segment_record, std::__1::allocator<ada::url_pattern_list_detail::segment_record> > >(unsigned int, std::__1::vector<ada::url_pattern_list_detail::segment_record, std::__1::allocator<ada::url_pattern_list_detail::segment_record> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > >(unsigned int, std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > const&) const
Unexecuted instantiation: can_parse.cc:auto ada::url_pattern_list_compiler::(anonymous namespace)::pack_arena(ada::url_pattern_list_compiler::(anonymous namespace)::builder_tables&)::$_1::operator()<std::__1::vector<unsigned short, std::__1::allocator<unsigned short> > >(unsigned int, std::__1::vector<unsigned short, std::__1::allocator<unsigned short> > const&) const
18210
0
  place(out.nodes_offset, r.nodes);
18211
0
  place(out.hashes_offset, r.hashes);
18212
0
  place(out.edges_offset, r.edges);
18213
0
  place(out.slots_offset, r.slots);
18214
0
  place(out.blob_offset, r.blob);
18215
0
  place(out.routes_offset, r.routes);
18216
0
  place(out.segments_offset, r.segments);
18217
0
  place(out.aux_offset, r.aux);
18218
0
  place(out.root_index_offset, r.root_index);
18219
0
  out.n_routes = static_cast<uint32_t>(r.routes.size());
18220
0
  out.n_aux_all = r.n_aux_all;
18221
0
  return out;
18222
0
}
18223
18224
// Fills route.kind_sequence / kind_length from route.segments.
18225
0
void compute_kind_sequence(route_info& route) noexcept {
18226
0
  uint64_t seq = 0;
18227
0
  const size_t n = route.segments.size();
18228
0
  for (size_t j = 0; j < n && j < 32; j++) {
18229
0
    seq |= static_cast<uint64_t>(route.segments[j].kind) << (62 - 2 * j);
18230
0
  }
18231
0
  route.kind_sequence = seq;
18232
0
  route.kind_length = static_cast<uint8_t>(n < 255 ? n : 255);
18233
0
}
18234
18235
}  // namespace
18236
18237
// ---- compiler entry points -------------------------------------------------
18238
18239
bool classify_parts(const std::vector<url_pattern_part>& parts,
18240
                    std::vector<route_segment>& segments,
18241
0
                    std::vector<std::string>& group_names) {
18242
0
  segments.clear();
18243
0
  group_names.clear();
18244
0
  bool started = false;        // leading '/' consumed
18245
0
  bool group_open = false;     // the open segment slot is a group
18246
0
  bool wildcard_seen = false;  // a "*" segment was consumed (must stay last)
18247
0
  std::string literal;
18248
0
  const auto close_segment = [&]() {
18249
0
    if (!group_open) {
18250
0
      segments.push_back(route_segment{segment_kind::literal, literal});
18251
0
    }
18252
0
    literal.clear();
18253
0
    group_open = false;
18254
0
  };
18255
0
  const auto process_text = [&](std::string_view text) {
18256
0
    for (const char c : text) {
18257
0
      if (wildcard_seen) {
18258
0
        return false;  // nothing may follow a "*" segment
18259
0
      }
18260
0
      if (c == '/') {
18261
0
        if (!started) {
18262
0
          started = true;
18263
0
        } else {
18264
0
          close_segment();
18265
0
        }
18266
0
      } else {
18267
0
        if (!started || group_open) {
18268
0
          return false;  // text before '/', or suffix text after a group
18269
0
        }
18270
0
        literal += c;
18271
0
      }
18272
0
    }
18273
0
    return true;
18274
0
  };
18275
0
  for (const url_pattern_part& part : parts) {
18276
0
    if (part.type == url_pattern_part_type::FIXED_TEXT &&
18277
0
        part.modifier == url_pattern_part_modifier::none) {
18278
0
      if (!process_text(part.prefix) || !process_text(part.value) ||
18279
0
          !process_text(part.suffix)) {
18280
0
        return false;
18281
0
      }
18282
0
    } else if ((part.type == url_pattern_part_type::SEGMENT_WILDCARD ||
18283
0
                part.type == url_pattern_part_type::FULL_WILDCARD) &&
18284
0
               part.modifier == url_pattern_part_modifier::none &&
18285
0
               part.suffix.empty()) {
18286
0
      if (wildcard_seen) {
18287
0
        return false;
18288
0
      }
18289
0
      if (part.prefix == "/") {
18290
0
        if (!started) {
18291
0
          started = true;
18292
0
        } else {
18293
0
          close_segment();
18294
0
        }
18295
0
      } else if (part.prefix.empty()) {
18296
        // The group must occupy a whole, freshly opened segment slot.
18297
0
        if (!started || group_open || !literal.empty()) {
18298
0
          return false;
18299
0
        }
18300
0
      } else {
18301
0
        return false;  // group not aligned on a '/' boundary
18302
0
      }
18303
0
      const bool is_wildcard =
18304
0
          part.type == url_pattern_part_type::FULL_WILDCARD;
18305
0
      segments.push_back(route_segment{
18306
0
          is_wildcard ? segment_kind::wildcard : segment_kind::param,
18307
0
          part.name});
18308
0
      group_names.push_back(part.name);
18309
0
      group_open = true;
18310
0
      wildcard_seen = is_wildcard;
18311
0
    } else {
18312
0
      return false;  // regexp group or a "?" / "+" / "*" modifier
18313
0
    }
18314
0
  }
18315
0
  if (!started) {
18316
    // Only the empty pattern (zero parts) is representable without a leading
18317
    // '/': it matches exactly the empty pathname.
18318
0
    return parts.empty();
18319
0
  }
18320
0
  close_segment();
18321
0
  return true;
18322
0
}
18323
18324
0
void finalize_route(route_info& route) noexcept {
18325
0
  compute_kind_sequence(route);
18326
0
  route.all_literal = true;
18327
0
  route.has_wildcard = false;
18328
0
  size_t n_params = 0;
18329
  // A trie edge keeps its literal segment length in edge_record::key_length, a
18330
  // uint16_t. A literal longer than that wraps around, so the trie would match
18331
  // a shorter, truncated length (e.g. a 65536-byte segment becomes length 0 and
18332
  // matches an empty segment). Keep such a route out of the trie and let the
18333
  // sequential matcher, which compares the whole segment, answer it.
18334
0
  bool literal_fits_edge = true;
18335
0
  for (const route_segment& s : route.segments) {
18336
0
    if (s.kind != segment_kind::literal) {
18337
0
      route.all_literal = false;
18338
0
      if (s.kind == segment_kind::param) {
18339
0
        n_params++;
18340
0
      } else {
18341
0
        route.has_wildcard = true;
18342
0
      }
18343
0
    } else if (s.text.size() > std::numeric_limits<uint16_t>::max()) {
18344
0
      literal_fits_edge = false;
18345
0
    }
18346
0
  }
18347
0
  const size_t n_captures = n_params + (route.has_wildcard ? 1 : 0);
18348
0
  const bool trie_safe = !route.segments.empty() &&
18349
0
                         route.segments.size() <= max_trie_pattern_segments &&
18350
0
                         n_captures <= max_captures_per_route &&
18351
0
                         literal_fits_edge;
18352
0
  route.mode = trie_safe ? route_mode::trie : route_mode::sequential;
18353
0
}
18354
18355
void approximate_kind_sequence(const std::vector<url_pattern_part>& parts,
18356
0
                               route_info& route) {
18357
0
  std::vector<uint8_t> kinds;
18358
  // The route's segment shape, as far as it is known: literal segments carry
18359
  // their text, opaque ones (a ":name" group, alone or mixed with text) are
18360
  // params. Exact while every group is a ":name" segment wildcard, which
18361
  // cannot match '/': then the segment count and every literal position are
18362
  // certain. A custom "(...)" group, a "*" or a modifier can span segments,
18363
  // so from there on nothing is known and only the anchored literal prefix
18364
  // before it is kept.
18365
0
  std::vector<route_segment> shape;
18366
0
  std::string literal;
18367
0
  bool started = false;
18368
0
  bool open = false;
18369
0
  bool leading_slash = false;  // the pattern is anchored at a '/'
18370
0
  bool exact = true;           // no part can span a segment boundary
18371
0
  bool tail_known = true;      // segments after the last closed one are known
18372
0
  uint8_t current = 0;
18373
  // Closes the open segment; `complete` is true only when a '/' of fixed
18374
  // text closed it, i.e. the segment is exactly what was accumulated.
18375
0
  const auto close = [&](bool complete) {
18376
0
    if (open) {
18377
0
      kinds.push_back(current);
18378
0
      if (complete || exact) {
18379
0
        shape.push_back(current == 0
18380
0
                            ? route_segment{segment_kind::literal, literal}
18381
0
                            : route_segment{segment_kind::param, {}});
18382
0
      } else {
18383
0
        tail_known = false;
18384
0
      }
18385
0
      open = false;
18386
0
      current = 0;
18387
0
    }
18388
0
    literal.clear();
18389
0
  };
18390
0
  const auto process_text = [&](std::string_view text) {
18391
0
    for (const char c : text) {
18392
0
      if (c == '/') {
18393
0
        if (started) {
18394
0
          close(true);
18395
0
        } else {
18396
0
          leading_slash = true;
18397
0
        }
18398
0
        started = true;
18399
0
        open = true;
18400
0
        current = 0;
18401
0
      } else {
18402
0
        if (!started) {
18403
0
          started = true;
18404
0
        }
18405
0
        if (!open) {
18406
0
          open = true;
18407
0
          current = 0;
18408
0
        }
18409
0
        literal += c;
18410
0
      }
18411
0
    }
18412
0
  };
18413
0
  const auto add_group = [&](uint8_t kind) {
18414
0
    if (!open) {
18415
0
      started = true;
18416
0
      open = true;
18417
0
      current = 0;
18418
0
    }
18419
0
    current = current < kind ? kind : current;
18420
0
  };
18421
0
  for (const url_pattern_part& part : parts) {
18422
0
    if (part.type == url_pattern_part_type::FULL_WILDCARD ||
18423
0
        part.modifier != url_pattern_part_modifier::none) {
18424
      // A greedy or modified group can span segments: treat the rest of the
18425
      // route as a wildcard tail and stop. A "/" prefix closes the previous
18426
      // segment only when this part must occur. An optional ("?") or
18427
      // zero-or-more ("*") part, prefix included, may be absent, so the text
18428
      // after it stays in the same segment ("/reports{/:id}?.json" matches
18429
      // "/reports.json"). Treating that "/" as a definite boundary certified
18430
      // a segment the input does not have, and the shape check rejected the
18431
      // match before the provider ran.
18432
0
      exact = false;
18433
0
      const bool must_occur =
18434
0
          part.modifier != url_pattern_part_modifier::optional &&
18435
0
          part.modifier != url_pattern_part_modifier::zero_or_more;
18436
0
      close(must_occur && part.prefix == "/");
18437
0
      tail_known = false;
18438
0
      kinds.push_back(2);
18439
0
      break;
18440
0
    }
18441
0
    if (part.type == url_pattern_part_type::FIXED_TEXT) {
18442
0
      process_text(part.value);
18443
0
    } else {  // SEGMENT_WILDCARD or REGEXP, modifier none
18444
0
      if (part.type == url_pattern_part_type::REGEXP) {
18445
0
        exact = false;  // a custom group may match '/'
18446
0
      }
18447
0
      process_text(part.prefix);
18448
0
      add_group(1);
18449
0
      process_text(part.suffix);
18450
0
    }
18451
0
  }
18452
0
  close(exact);
18453
0
  uint64_t seq = 0;
18454
0
  for (size_t j = 0; j < kinds.size() && j < 32; j++) {
18455
0
    seq |= static_cast<uint64_t>(kinds[j]) << (62 - 2 * j);
18456
0
  }
18457
0
  route.kind_sequence = seq;
18458
0
  route.kind_length =
18459
0
      static_cast<uint8_t>(kinds.size() < 255 ? kinds.size() : 255);
18460
0
  route.mode = route_mode::regexp;
18461
0
  route.all_literal = false;
18462
0
  route.segments.clear();
18463
0
  if (!leading_slash) {
18464
    // Not anchored at '/': nothing about the segments is known.
18465
0
    route.has_wildcard = true;
18466
0
    return;
18467
0
  }
18468
  // has_wildcard here means "the tail is unconstrained": the input needs at
18469
  // least segments.size() segments; otherwise exactly that many.
18470
0
  route.has_wildcard = !(exact && tail_known);
18471
0
  if (route.has_wildcard) {
18472
    // Keep only the anchored literal prefix.
18473
0
    size_t n_prefix = 0;
18474
0
    while (n_prefix < shape.size() &&
18475
0
           shape[n_prefix].kind == segment_kind::literal) {
18476
0
      n_prefix++;
18477
0
    }
18478
0
    shape.resize(n_prefix);
18479
0
  }
18480
0
  route.segments = std::move(shape);
18481
0
}
18482
18483
tl::expected<compiled_routes, errors> compile_route_set(
18484
0
    std::vector<route_info>& routes) {
18485
0
  builder_tables r{};
18486
0
  const std::vector<transient_node> t = build_trie(routes);
18487
0
  compile_route_records(r, routes);
18488
0
  const std::vector<int32_t> order = layout_nodes(r, t);
18489
0
  compile_dispatch(r, t, order);
18490
0
  encode_leaf_shortcuts(r);  // last: must not confuse the stages above
18491
0
  build_segment_table(r, routes);
18492
0
  if (!build_aux_table(r, routes)) {
18493
0
    return tl::unexpected(errors::type_error);
18494
0
  }
18495
0
  auto out = pack_arena(r);
18496
0
  if (!out) {
18497
0
    return out;
18498
0
  }
18499
0
  out->group_names.resize(routes.size());
18500
0
  for (size_t i = 0; i < routes.size(); i++) {
18501
0
    if (routes[i].mode != route_mode::regexp) {
18502
0
      out->group_names[i] = routes[i].group_names;
18503
0
    }
18504
0
  }
18505
0
  return out;
18506
0
}
18507
18508
}  // namespace ada::url_pattern_list_compiler
18509
18510
namespace ada::url_pattern_list_detail {
18511
18512
tl::expected<compiled_routes, errors> compile_pathname_patterns(
18513
0
    std::span<const std::string> patterns, bool ignore_case) {
18514
0
  if (patterns.size() > url_pattern_list_limits::max_routes) {
18515
0
    return tl::unexpected(errors::type_error);
18516
0
  }
18517
0
  namespace compiler = url_pattern_list_compiler;
18518
0
  std::vector<compiler::route_info> routes;
18519
0
  routes.reserve(patterns.size());
18520
0
  for (const std::string& pattern : patterns) {
18521
    // The pattern side goes through ada's own URLPattern machinery: the
18522
    // pattern parser tokenizes and canonicalizes exactly as a URLPattern
18523
    // pathname component would.
18524
0
    auto options = url_pattern_compile_component_options::PATHNAME;
18525
0
    auto part_list = url_pattern_helpers::parse_pattern_string(
18526
0
        pattern, options, url_pattern_helpers::canonicalize_pathname);
18527
0
    if (!part_list) {
18528
0
      return tl::unexpected(part_list.error());
18529
0
    }
18530
0
    compiler::route_info route{};
18531
0
    if (compiler::classify_parts(*part_list, route.segments,
18532
0
                                 route.group_names)) {
18533
0
      compiler::finalize_route(route);
18534
0
    } else {
18535
      // The pattern needs URLPattern regexp semantics: the caller compiles
18536
      // it as a pathname component through the provider; it participates
18537
      // in the priority order via its approximated kind sequence.
18538
0
      compiler::approximate_kind_sequence(*part_list, route);
18539
0
    }
18540
0
    if (ignore_case) {
18541
      // The compiled literals are ASCII-folded; the matcher folds the input
18542
      // the same way.
18543
0
      for (compiler::route_segment& s : route.segments) {
18544
0
        if (s.kind == compiler::segment_kind::literal) {
18545
0
          ascii_fold(s.text.data(), static_cast<uint32_t>(s.text.size()),
18546
0
                     s.text.data());
18547
0
        }
18548
0
      }
18549
0
    }
18550
0
    routes.push_back(std::move(route));
18551
0
  }
18552
0
  auto compiled = compiler::compile_route_set(routes);
18553
0
  if (compiled) {
18554
0
    compiled->ignore_case = ignore_case ? 1 : 0;
18555
0
  }
18556
0
  return compiled;
18557
0
}
18558
18559
namespace {
18560
18561
// Literal-segment compare against the blob, folding the input on request
18562
// (the blob text is already folded).
18563
bool literal_equals(std::string_view s, const char* text, uint32_t length,
18564
0
                    bool fold_input) noexcept {
18565
0
  if (s.size() != length) {
18566
0
    return false;
18567
0
  }
18568
0
  if (!fold_input) {
18569
0
    return s.size() == 0 || std::memcmp(s.data(), text, s.size()) == 0;
18570
0
  }
18571
0
  for (size_t i = 0; i < s.size(); i++) {
18572
0
    const uint8_t c = static_cast<uint8_t>(s[i]);
18573
0
    const char folded =
18574
0
        static_cast<char>(c | ((c >= 'A' && c <= 'Z') ? 0x20u : 0u));
18575
0
    if (folded != text[i]) {
18576
0
      return false;
18577
0
    }
18578
0
  }
18579
0
  return true;
18580
0
}
18581
18582
}  // namespace
18583
18584
// Kept out of line on purpose: inlined into the walk, this loop cost the
18585
// static and ":param" paths, which never run it, about 5 ns through register
18586
// allocation; as a call it costs only wildcard hits. It lives in this
18587
// translation unit rather than the header because MSVC's ada_never_inline
18588
// expands to __declspec(noinline) with no inline linkage, so a definition in
18589
// the header is emitted in every translation unit and the link fails.
18590
//
18591
// On AArch64 whole 16-byte blocks go through NEON (a running byte minimum);
18592
// the rest is SWAR, 8 bytes per step: "some byte is below 0x20" ("hasless"
18593
// of Bit Twiddling Hacks) is exact as a yes/no answer, because a borrow can
18594
// only leave a lane that itself qualifies. Only a tail holding a control
18595
// byte gets the exact byte check.
18596
0
bool wildcard_tail_ok(const char* p, uint32_t n) noexcept {
18597
0
  constexpr uint64_t spaces = 0x2020202020202020ull;
18598
0
  constexpr uint64_t highs = 0x8080808080808080ull;
18599
0
  const auto below_space = [](uint64_t x) noexcept {
18600
0
    return (x - spaces) & ~x & highs;
18601
0
  };
18602
0
  uint64_t control = 0;
18603
0
  uint32_t i = 0;
18604
#if ADA_NEON
18605
  if (n >= 16) {
18606
    uint8x16_t lowest = vdupq_n_u8(0xFF);
18607
    for (; i + 16 <= n; i += 16) {
18608
      lowest =
18609
          vminq_u8(lowest, vld1q_u8(reinterpret_cast<const uint8_t*>(p + i)));
18610
    }
18611
    control = vminvq_u8(lowest) < 0x20 ? 1 : 0;
18612
  }
18613
#endif
18614
0
  for (; i + 8 <= n; i += 8) {
18615
0
    control |= below_space(load8_le(p + i));
18616
0
  }
18617
0
  if (i < n) {  // 1..7 bytes, padded with spaces
18618
0
    control |= below_space(gather_le(p + i, n - i) |
18619
0
                           (spaces & ~low_bytes_mask(n - i)));
18620
0
  }
18621
0
  if (control == 0) {
18622
0
    return true;
18623
0
  }
18624
0
  for (uint32_t j = 0; j < n; j++) {
18625
0
    if (p[j] == '\n' || p[j] == '\r') {
18626
0
      return false;
18627
0
    }
18628
0
  }
18629
0
  return true;
18630
0
}
18631
18632
bool match_regexp_shape(const compiled_routes& r, uint32_t route,
18633
0
                        std::string_view pathname, bool fold_input) noexcept {
18634
0
  const route_record& rt = r.section<route_record>(r.routes_offset)[route];
18635
0
  const segment_record* segs =
18636
0
      r.section<segment_record>(r.segments_offset) + rt.segment_first;
18637
0
  const char* blob = r.section<char>(r.blob_offset);
18638
0
  if (rt.segment_count == 0 && rt.wild != 0) {
18639
0
    return true;  // nothing is known about the route's shape
18640
0
  }
18641
0
  if (pathname.empty() || pathname[0] != '/') {
18642
0
    return false;  // a known shape always starts with '/'
18643
0
  }
18644
0
  size_t seg_start = 1;
18645
0
  for (uint32_t si = 0; si < rt.segment_count; si++) {
18646
0
    if (seg_start > pathname.size()) {
18647
0
      return false;  // fewer segments than the shape
18648
0
    }
18649
0
    const size_t slash = pathname.find('/', seg_start);
18650
0
    const size_t seg_end =
18651
0
        slash == std::string_view::npos ? pathname.size() : slash;
18652
0
    const std::string_view s(pathname.data() + seg_start, seg_end - seg_start);
18653
0
    if (segs[si].kind == 0) {  // literal
18654
0
      if (!literal_equals(s, blob + segs[si].text_offset, segs[si].text_length,
18655
0
                          fold_input)) {
18656
0
        return false;
18657
0
      }
18658
0
    } else if (s.empty()) {
18659
0
      return false;  // a ":name" group, mixed or not, never binds ""
18660
0
    }
18661
0
    seg_start = seg_end + 1;
18662
0
  }
18663
  // An exact shape admits no further segments.
18664
0
  return rt.wild != 0 || seg_start == pathname.size() + 1;
18665
0
}
18666
18667
bool match_route_sequential(const compiled_routes& r, uint32_t route,
18668
                            std::string_view pathname, bool fold_input,
18669
0
                            engine_result& result) noexcept {
18670
0
  using url_pattern_list_limits::max_captures_per_route;
18671
0
  result.capture_count = 0;
18672
0
  result.captures_truncated = false;
18673
0
  const route_record& rt = r.section<route_record>(r.routes_offset)[route];
18674
0
  const segment_record* segs =
18675
0
      r.section<segment_record>(r.segments_offset) + rt.segment_first;
18676
0
  const char* blob = r.section<char>(r.blob_offset);
18677
0
  const size_t n_pattern = rt.segment_count;
18678
0
  if (n_pattern == 0) {
18679
0
    return pathname.empty();  // the empty pattern matches only ""
18680
0
  }
18681
0
  if (pathname.empty() || pathname[0] != '/') {
18682
0
    return false;
18683
0
  }
18684
0
  const bool wild = rt.wild != 0;  // wildcard is always the last segment
18685
0
  const size_t n_fixed = wild ? n_pattern - 1 : n_pattern;
18686
0
  uint32_t total_captures = 0;
18687
0
  const auto add_capture = [&](size_t offset, size_t length) {
18688
0
    if (total_captures < max_captures_per_route) {
18689
0
      result.captures[total_captures] = {static_cast<uint32_t>(offset),
18690
0
                                         static_cast<uint32_t>(length)};
18691
0
    } else {
18692
0
      result.captures_truncated = true;
18693
0
    }
18694
0
    total_captures++;
18695
0
  };
18696
0
  size_t seg_start = 1;
18697
0
  for (size_t si = 0; si < n_fixed; si++) {
18698
0
    if (seg_start > pathname.size()) {
18699
0
      return false;  // the input has fewer segments than the pattern
18700
0
    }
18701
0
    const size_t slash = pathname.find('/', seg_start);
18702
0
    const size_t seg_end =
18703
0
        slash == std::string_view::npos ? pathname.size() : slash;
18704
    // seg_start <= pathname.size() was checked above, so this is in range
18705
    // (spelled without substr to keep the function provably non-throwing).
18706
0
    const std::string_view s(pathname.data() + seg_start, seg_end - seg_start);
18707
0
    if (segs[si].kind == 0) {  // literal
18708
0
      if (!literal_equals(s, blob + segs[si].text_offset, segs[si].text_length,
18709
0
                          fold_input)) {
18710
0
        return false;
18711
0
      }
18712
0
    } else {  // param: binds one non-empty segment
18713
0
      if (s.empty()) {
18714
0
        return false;
18715
0
      }
18716
0
      add_capture(seg_start, s.size());
18717
0
    }
18718
0
    seg_start = seg_end + 1;
18719
0
  }
18720
0
  if (wild) {
18721
0
    if (seg_start > pathname.size()) {
18722
0
      return false;  // the wildcard still needs its (possibly empty) segment
18723
0
    }
18724
    // "(.*)" does not match a line terminator (see wildcard_tail_ok).
18725
0
    if (pathname.find_first_of("\n\r", seg_start) != std::string_view::npos) {
18726
0
      return false;
18727
0
    }
18728
0
    add_capture(seg_start, pathname.size() - seg_start);
18729
0
  } else if (seg_start != pathname.size() + 1) {
18730
0
    return false;  // the input has more segments than the pattern
18731
0
  }
18732
0
  result.capture_count = total_captures < max_captures_per_route
18733
0
                             ? total_captures
18734
0
                             : max_captures_per_route;
18735
0
  return true;
18736
0
}
18737
18738
}  // namespace ada::url_pattern_list_detail
18739
#endif  // ADA_INCLUDE_URL_PATTERN
18740
/* end file src/url_pattern_list.cpp */
18741
#endif
18742
#endif  // ADA_INCLUDE_URL_PATTERN
18743
18744
/* begin file src/ada_c.cpp */
18745
// NOLINTBEGIN(bugprone-exception-escape,
18746
// bugprone-suspicious-stringview-data-usage)
18747
18748
0
ada::result<ada::url_aggregator>& get_instance(void* result) noexcept {
18749
0
  return *(ada::result<ada::url_aggregator>*)result;
18750
0
}
18751
18752
extern "C" {
18753
typedef void* ada_url;
18754
typedef void* ada_url_search_params;
18755
typedef void* ada_strings;
18756
typedef void* ada_url_search_params_keys_iter;
18757
typedef void* ada_url_search_params_values_iter;
18758
typedef void* ada_url_search_params_entries_iter;
18759
18760
struct ada_string {
18761
  const char* data;
18762
  size_t length;
18763
};
18764
18765
struct ada_owned_string {
18766
  const char* data;
18767
  size_t length;
18768
};
18769
18770
struct ada_string_pair {
18771
  ada_string key;
18772
  ada_string value;
18773
};
18774
18775
0
ada_string ada_string_create(const char* data, size_t length) {
18776
0
  ada_string out{};
18777
0
  out.data = data;
18778
0
  out.length = length;
18779
0
  return out;
18780
0
}
18781
18782
struct ada_url_components {
18783
  /*
18784
   * By using 32-bit integers, we implicitly assume that the URL string
18785
   * cannot exceed 4 GB.
18786
   *
18787
   * https://user:pass@example.com:1234/foo/bar?baz#quux
18788
   *       |     |    |          | ^^^^|       |   |
18789
   *       |     |    |          | |   |       |   `----- hash_start
18790
   *       |     |    |          | |   |       `--------- search_start
18791
   *       |     |    |          | |   `----------------- pathname_start
18792
   *       |     |    |          | `--------------------- port
18793
   *       |     |    |          `----------------------- host_end
18794
   *       |     |    `---------------------------------- host_start
18795
   *       |     `--------------------------------------- username_end
18796
   *       `--------------------------------------------- protocol_end
18797
   */
18798
  uint32_t protocol_end;
18799
  /**
18800
   * Username end is not `omitted` by default (-1) to make username and password
18801
   * getters less costly to implement.
18802
   */
18803
  uint32_t username_end;
18804
  uint32_t host_start;
18805
  uint32_t host_end;
18806
  uint32_t port;
18807
  uint32_t pathname_start;
18808
  uint32_t search_start;
18809
  uint32_t hash_start;
18810
};
18811
18812
0
ada_url ada_parse(const char* input, size_t length) noexcept {
18813
0
  return new ada::result<ada::url_aggregator>(
18814
0
      ada::parse<ada::url_aggregator>(std::string_view(input, length)));
18815
0
}
18816
18817
ada_url ada_parse_with_base(const char* input, size_t input_length,
18818
0
                            const char* base, size_t base_length) noexcept {
18819
0
  auto base_out =
18820
0
      ada::parse<ada::url_aggregator>(std::string_view(base, base_length));
18821
18822
0
  if (!base_out) {
18823
0
    return new ada::result<ada::url_aggregator>(base_out);
18824
0
  }
18825
18826
0
  return new ada::result<ada::url_aggregator>(ada::parse<ada::url_aggregator>(
18827
0
      std::string_view(input, input_length), &base_out.value()));
18828
0
}
18829
18830
0
bool ada_can_parse(const char* input, size_t length) noexcept {
18831
0
  return ada::can_parse(std::string_view(input, length));
18832
0
}
18833
18834
bool ada_can_parse_with_base(const char* input, size_t input_length,
18835
0
                             const char* base, size_t base_length) noexcept {
18836
0
  std::string_view base_view(base, base_length);
18837
0
  return ada::can_parse(std::string_view(input, input_length), &base_view);
18838
0
}
18839
18840
0
void ada_free(ada_url result) noexcept {
18841
0
  auto* r = (ada::result<ada::url_aggregator>*)result;
18842
0
  delete r;
18843
0
}
18844
18845
0
ada_url ada_copy(ada_url input) noexcept {
18846
0
  ada::result<ada::url_aggregator>& r = get_instance(input);
18847
0
  return new ada::result<ada::url_aggregator>(r);
18848
0
}
18849
18850
0
bool ada_is_valid(ada_url result) noexcept {
18851
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18852
0
  return r.has_value();
18853
0
}
18854
18855
// caller must free the result with ada_free_owned_string
18856
0
ada_owned_string ada_get_origin(ada_url result) noexcept {
18857
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18858
0
  ada_owned_string owned{};
18859
0
  if (!r) {
18860
0
    owned.data = nullptr;
18861
0
    owned.length = 0;
18862
0
    return owned;
18863
0
  }
18864
0
  std::string out = r->get_origin();
18865
0
  owned.length = out.size();
18866
  // +1 for a trailing NUL. length does not include it. (#1307)
18867
0
  owned.data = new char[owned.length + 1];
18868
0
  memcpy((void*)owned.data, out.data(), owned.length);
18869
0
  const_cast<char*>(owned.data)[owned.length] = '\0';
18870
0
  return owned;
18871
0
}
18872
18873
0
void ada_free_owned_string(ada_owned_string owned) noexcept {
18874
0
  delete[] owned.data;
18875
0
}
18876
18877
0
ada_string ada_get_href(ada_url result) noexcept {
18878
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18879
0
  if (!r) {
18880
0
    return ada_string_create(nullptr, 0);
18881
0
  }
18882
0
  std::string_view out = r->get_href();
18883
0
  return ada_string_create(out.data(), out.length());
18884
0
}
18885
18886
0
ada_string ada_get_username(ada_url result) noexcept {
18887
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18888
0
  if (!r) {
18889
0
    return ada_string_create(nullptr, 0);
18890
0
  }
18891
0
  std::string_view out = r->get_username();
18892
0
  return ada_string_create(out.data(), out.length());
18893
0
}
18894
18895
0
ada_string ada_get_password(ada_url result) noexcept {
18896
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18897
0
  if (!r) {
18898
0
    return ada_string_create(nullptr, 0);
18899
0
  }
18900
0
  std::string_view out = r->get_password();
18901
0
  return ada_string_create(out.data(), out.length());
18902
0
}
18903
18904
0
ada_string ada_get_port(ada_url result) noexcept {
18905
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18906
0
  if (!r) {
18907
0
    return ada_string_create(nullptr, 0);
18908
0
  }
18909
0
  std::string_view out = r->get_port();
18910
0
  return ada_string_create(out.data(), out.length());
18911
0
}
18912
18913
0
ada_string ada_get_hash(ada_url result) noexcept {
18914
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18915
0
  if (!r) {
18916
0
    return ada_string_create(nullptr, 0);
18917
0
  }
18918
0
  std::string_view out = r->get_hash();
18919
0
  return ada_string_create(out.data(), out.length());
18920
0
}
18921
18922
0
ada_string ada_get_host(ada_url result) noexcept {
18923
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18924
0
  if (!r) {
18925
0
    return ada_string_create(nullptr, 0);
18926
0
  }
18927
0
  std::string_view out = r->get_host();
18928
0
  return ada_string_create(out.data(), out.length());
18929
0
}
18930
18931
0
ada_string ada_get_hostname(ada_url result) noexcept {
18932
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18933
0
  if (!r) {
18934
0
    return ada_string_create(nullptr, 0);
18935
0
  }
18936
0
  std::string_view out = r->get_hostname();
18937
0
  return ada_string_create(out.data(), out.length());
18938
0
}
18939
18940
0
ada_string ada_get_pathname(ada_url result) noexcept {
18941
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18942
0
  if (!r) {
18943
0
    return ada_string_create(nullptr, 0);
18944
0
  }
18945
0
  std::string_view out = r->get_pathname();
18946
0
  return ada_string_create(out.data(), out.length());
18947
0
}
18948
18949
0
ada_string ada_get_search(ada_url result) noexcept {
18950
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18951
0
  if (!r) {
18952
0
    return ada_string_create(nullptr, 0);
18953
0
  }
18954
0
  std::string_view out = r->get_search();
18955
0
  return ada_string_create(out.data(), out.length());
18956
0
}
18957
18958
0
ada_string ada_get_protocol(ada_url result) noexcept {
18959
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18960
0
  if (!r) {
18961
0
    return ada_string_create(nullptr, 0);
18962
0
  }
18963
0
  std::string_view out = r->get_protocol();
18964
0
  return ada_string_create(out.data(), out.length());
18965
0
}
18966
18967
0
uint8_t ada_get_host_type(ada_url result) noexcept {
18968
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18969
0
  if (!r) {
18970
0
    return 0;
18971
0
  }
18972
0
  return r->host_type;
18973
0
}
18974
18975
0
uint8_t ada_get_scheme_type(ada_url result) noexcept {
18976
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18977
0
  if (!r) {
18978
0
    return 0;
18979
0
  }
18980
0
  return r->type;
18981
0
}
18982
18983
0
bool ada_set_href(ada_url result, const char* input, size_t length) noexcept {
18984
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18985
0
  if (!r) {
18986
0
    return false;
18987
0
  }
18988
0
  return r->set_href(std::string_view(input, length));
18989
0
}
18990
18991
0
bool ada_set_host(ada_url result, const char* input, size_t length) noexcept {
18992
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
18993
0
  if (!r) {
18994
0
    return false;
18995
0
  }
18996
0
  return r->set_host(std::string_view(input, length));
18997
0
}
18998
18999
bool ada_set_hostname(ada_url result, const char* input,
19000
0
                      size_t length) noexcept {
19001
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19002
0
  if (!r) {
19003
0
    return false;
19004
0
  }
19005
0
  return r->set_hostname(std::string_view(input, length));
19006
0
}
19007
19008
bool ada_set_protocol(ada_url result, const char* input,
19009
0
                      size_t length) noexcept {
19010
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19011
0
  if (!r) {
19012
0
    return false;
19013
0
  }
19014
0
  return r->set_protocol(std::string_view(input, length));
19015
0
}
19016
19017
bool ada_set_username(ada_url result, const char* input,
19018
0
                      size_t length) noexcept {
19019
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19020
0
  if (!r) {
19021
0
    return false;
19022
0
  }
19023
0
  return r->set_username(std::string_view(input, length));
19024
0
}
19025
19026
bool ada_set_password(ada_url result, const char* input,
19027
0
                      size_t length) noexcept {
19028
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19029
0
  if (!r) {
19030
0
    return false;
19031
0
  }
19032
0
  return r->set_password(std::string_view(input, length));
19033
0
}
19034
19035
0
bool ada_set_port(ada_url result, const char* input, size_t length) noexcept {
19036
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19037
0
  if (!r) {
19038
0
    return false;
19039
0
  }
19040
0
  return r->set_port(std::string_view(input, length));
19041
0
}
19042
19043
bool ada_set_pathname(ada_url result, const char* input,
19044
0
                      size_t length) noexcept {
19045
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19046
0
  if (!r) {
19047
0
    return false;
19048
0
  }
19049
0
  return r->set_pathname(std::string_view(input, length));
19050
0
}
19051
19052
/**
19053
 * Update the search/query of the URL.
19054
 *
19055
 * If a URL has `?` as the search value, passing empty string to this function
19056
 * does not remove the attribute. If you need to remove it, please use
19057
 * `ada_clear_search` method.
19058
 */
19059
0
void ada_set_search(ada_url result, const char* input, size_t length) noexcept {
19060
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19061
0
  if (r) {
19062
0
    r->set_search(std::string_view(input, length));
19063
0
  }
19064
0
}
19065
19066
/**
19067
 * Update the hash/fragment of the URL.
19068
 *
19069
 * If a URL has `#` as the hash value, passing empty string to this function
19070
 * does not remove the attribute. If you need to remove it, please use
19071
 * `ada_clear_hash` method.
19072
 */
19073
0
void ada_set_hash(ada_url result, const char* input, size_t length) noexcept {
19074
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19075
0
  if (r) {
19076
0
    r->set_hash(std::string_view(input, length));
19077
0
  }
19078
0
}
19079
19080
0
void ada_clear_port(ada_url result) noexcept {
19081
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19082
0
  if (r) {
19083
0
    r->clear_port();
19084
0
  }
19085
0
}
19086
19087
/**
19088
 * Removes the hash of the URL.
19089
 *
19090
 * Despite `ada_set_hash` method, this function allows the complete
19091
 * removal of the hash attribute, even if it has a value of `#`.
19092
 */
19093
0
void ada_clear_hash(ada_url result) noexcept {
19094
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19095
0
  if (r) {
19096
0
    r->clear_hash();
19097
0
  }
19098
0
}
19099
19100
/**
19101
 * Removes the search of the URL.
19102
 *
19103
 * Despite `ada_set_search` method, this function allows the complete
19104
 * removal of the search attribute, even if it has a value of `?`.
19105
 */
19106
0
void ada_clear_search(ada_url result) noexcept {
19107
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19108
0
  if (r) {
19109
0
    r->clear_search();
19110
0
  }
19111
0
}
19112
19113
0
bool ada_has_credentials(ada_url result) noexcept {
19114
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19115
0
  if (!r) {
19116
0
    return false;
19117
0
  }
19118
0
  return r->has_credentials();
19119
0
}
19120
19121
0
bool ada_has_empty_hostname(ada_url result) noexcept {
19122
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19123
0
  if (!r) {
19124
0
    return false;
19125
0
  }
19126
0
  return r->has_empty_hostname();
19127
0
}
19128
19129
0
bool ada_has_hostname(ada_url result) noexcept {
19130
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19131
0
  if (!r) {
19132
0
    return false;
19133
0
  }
19134
0
  return r->has_hostname();
19135
0
}
19136
19137
0
bool ada_has_non_empty_username(ada_url result) noexcept {
19138
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19139
0
  if (!r) {
19140
0
    return false;
19141
0
  }
19142
0
  return r->has_non_empty_username();
19143
0
}
19144
19145
0
bool ada_has_non_empty_password(ada_url result) noexcept {
19146
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19147
0
  if (!r) {
19148
0
    return false;
19149
0
  }
19150
0
  return r->has_non_empty_password();
19151
0
}
19152
19153
0
bool ada_has_port(ada_url result) noexcept {
19154
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19155
0
  if (!r) {
19156
0
    return false;
19157
0
  }
19158
0
  return r->has_port();
19159
0
}
19160
19161
0
bool ada_has_password(ada_url result) noexcept {
19162
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19163
0
  if (!r) {
19164
0
    return false;
19165
0
  }
19166
0
  return r->has_password();
19167
0
}
19168
19169
0
bool ada_has_hash(ada_url result) noexcept {
19170
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19171
0
  if (!r) {
19172
0
    return false;
19173
0
  }
19174
0
  return r->has_hash();
19175
0
}
19176
19177
0
bool ada_has_search(ada_url result) noexcept {
19178
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19179
0
  if (!r) {
19180
0
    return false;
19181
0
  }
19182
0
  return r->has_search();
19183
0
}
19184
19185
// returns a pointer to the internal url_aggregator::url_components
19186
0
const ada_url_components* ada_get_components(ada_url result) noexcept {
19187
0
  static_assert(sizeof(ada_url_components) == sizeof(ada::url_components));
19188
0
  ada::result<ada::url_aggregator>& r = get_instance(result);
19189
0
  if (!r) {
19190
0
    return nullptr;
19191
0
  }
19192
0
  return reinterpret_cast<const ada_url_components*>(&r->get_components());
19193
0
}
19194
19195
0
ada_owned_string ada_idna_to_unicode(const char* input, size_t length) {
19196
0
  std::string out = ada::idna::to_unicode(std::string_view(input, length));
19197
0
  ada_owned_string owned{};
19198
0
  owned.length = out.length();
19199
0
  owned.data = new char[owned.length + 1];
19200
0
  memcpy((void*)owned.data, out.data(), owned.length);
19201
0
  const_cast<char*>(owned.data)[owned.length] = '\0';
19202
0
  return owned;
19203
0
}
19204
19205
0
ada_owned_string ada_idna_to_ascii(const char* input, size_t length) {
19206
0
  std::string out = ada::idna::to_ascii(std::string_view(input, length));
19207
0
  ada_owned_string owned{};
19208
0
  owned.length = out.size();
19209
0
  owned.data = new char[owned.length + 1];
19210
0
  memcpy((void*)owned.data, out.data(), owned.length);
19211
0
  const_cast<char*>(owned.data)[owned.length] = '\0';
19212
0
  return owned;
19213
0
}
19214
19215
ada_url_search_params ada_parse_search_params(const char* input,
19216
0
                                              size_t length) {
19217
0
  return new ada::result<ada::url_search_params>(
19218
0
      ada::url_search_params(std::string_view(input, length)));
19219
0
}
19220
19221
0
void ada_free_search_params(ada_url_search_params result) {
19222
0
  auto* r = (ada::result<ada::url_search_params>*)result;
19223
0
  delete r;
19224
0
}
19225
19226
0
ada_owned_string ada_search_params_to_string(ada_url_search_params result) {
19227
0
  ada::result<ada::url_search_params>& r =
19228
0
      *(ada::result<ada::url_search_params>*)result;
19229
0
  if (!r) return ada_owned_string{nullptr, 0};
19230
0
  std::string out = r->to_string();
19231
0
  ada_owned_string owned{};
19232
0
  owned.length = out.size();
19233
0
  owned.data = new char[owned.length + 1];
19234
0
  memcpy((void*)owned.data, out.data(), owned.length);
19235
0
  const_cast<char*>(owned.data)[owned.length] = '\0';
19236
0
  return owned;
19237
0
}
19238
19239
0
size_t ada_search_params_size(ada_url_search_params result) {
19240
0
  ada::result<ada::url_search_params>& r =
19241
0
      *(ada::result<ada::url_search_params>*)result;
19242
0
  if (!r) {
19243
0
    return 0;
19244
0
  }
19245
0
  return r->size();
19246
0
}
19247
19248
0
void ada_search_params_sort(ada_url_search_params result) {
19249
0
  ada::result<ada::url_search_params>& r =
19250
0
      *(ada::result<ada::url_search_params>*)result;
19251
0
  if (r) {
19252
0
    r->sort();
19253
0
  }
19254
0
}
19255
19256
void ada_search_params_reset(ada_url_search_params result, const char* input,
19257
0
                             size_t length) {
19258
0
  ada::result<ada::url_search_params>& r =
19259
0
      *(ada::result<ada::url_search_params>*)result;
19260
0
  if (r) {
19261
0
    r->reset(std::string_view(input, length));
19262
0
  }
19263
0
}
19264
19265
void ada_search_params_append(ada_url_search_params result, const char* key,
19266
                              size_t key_length, const char* value,
19267
0
                              size_t value_length) {
19268
0
  ada::result<ada::url_search_params>& r =
19269
0
      *(ada::result<ada::url_search_params>*)result;
19270
0
  if (r) {
19271
0
    r->append(std::string_view(key, key_length),
19272
0
              std::string_view(value, value_length));
19273
0
  }
19274
0
}
19275
19276
void ada_search_params_set(ada_url_search_params result, const char* key,
19277
                           size_t key_length, const char* value,
19278
0
                           size_t value_length) {
19279
0
  ada::result<ada::url_search_params>& r =
19280
0
      *(ada::result<ada::url_search_params>*)result;
19281
0
  if (r) {
19282
0
    r->set(std::string_view(key, key_length),
19283
0
           std::string_view(value, value_length));
19284
0
  }
19285
0
}
19286
19287
void ada_search_params_remove(ada_url_search_params result, const char* key,
19288
0
                              size_t key_length) {
19289
0
  ada::result<ada::url_search_params>& r =
19290
0
      *(ada::result<ada::url_search_params>*)result;
19291
0
  if (r) {
19292
0
    r->remove(std::string_view(key, key_length));
19293
0
  }
19294
0
}
19295
19296
void ada_search_params_remove_value(ada_url_search_params result,
19297
                                    const char* key, size_t key_length,
19298
0
                                    const char* value, size_t value_length) {
19299
0
  ada::result<ada::url_search_params>& r =
19300
0
      *(ada::result<ada::url_search_params>*)result;
19301
0
  if (r) {
19302
0
    r->remove(std::string_view(key, key_length),
19303
0
              std::string_view(value, value_length));
19304
0
  }
19305
0
}
19306
19307
bool ada_search_params_has(ada_url_search_params result, const char* key,
19308
0
                           size_t key_length) {
19309
0
  ada::result<ada::url_search_params>& r =
19310
0
      *(ada::result<ada::url_search_params>*)result;
19311
0
  if (!r) {
19312
0
    return false;
19313
0
  }
19314
0
  return r->has(std::string_view(key, key_length));
19315
0
}
19316
19317
bool ada_search_params_has_value(ada_url_search_params result, const char* key,
19318
                                 size_t key_length, const char* value,
19319
0
                                 size_t value_length) {
19320
0
  ada::result<ada::url_search_params>& r =
19321
0
      *(ada::result<ada::url_search_params>*)result;
19322
0
  if (!r) {
19323
0
    return false;
19324
0
  }
19325
0
  return r->has(std::string_view(key, key_length),
19326
0
                std::string_view(value, value_length));
19327
0
}
19328
19329
ada_string ada_search_params_get(ada_url_search_params result, const char* key,
19330
0
                                 size_t key_length) {
19331
0
  ada::result<ada::url_search_params>& r =
19332
0
      *(ada::result<ada::url_search_params>*)result;
19333
0
  if (!r) {
19334
0
    return ada_string_create(nullptr, 0);
19335
0
  }
19336
0
  auto found = r->get(std::string_view(key, key_length));
19337
0
  if (!found.has_value()) {
19338
0
    return ada_string_create(nullptr, 0);
19339
0
  }
19340
0
  return ada_string_create(found->data(), found->length());
19341
0
}
19342
19343
ada_strings ada_search_params_get_all(ada_url_search_params result,
19344
0
                                      const char* key, size_t key_length) {
19345
0
  ada::result<ada::url_search_params>& r =
19346
0
      *(ada::result<ada::url_search_params>*)result;
19347
0
  if (!r) {
19348
0
    return new ada::result<std::vector<std::string>>(
19349
0
        std::vector<std::string>());
19350
0
  }
19351
0
  return new ada::result<std::vector<std::string>>(
19352
0
      r->get_all(std::string_view(key, key_length)));
19353
0
}
19354
19355
// next() returns views into the iterator's params, so each C iterator owns a
19356
// copy that outlives ada_free_search_params and later mutations.
19357
struct ada_c_search_params_keys_iter {
19358
  ada::url_search_params params{};
19359
  ada::url_search_params_keys_iter iter = params.get_keys();
19360
};
19361
19362
struct ada_c_search_params_values_iter {
19363
  ada::url_search_params params{};
19364
  ada::url_search_params_values_iter iter = params.get_values();
19365
};
19366
19367
struct ada_c_search_params_entries_iter {
19368
  ada::url_search_params params{};
19369
  ada::url_search_params_entries_iter iter = params.get_entries();
19370
};
19371
19372
ada_url_search_params_keys_iter ada_search_params_get_keys(
19373
0
    ada_url_search_params result) {
19374
0
  ada::result<ada::url_search_params>& r =
19375
0
      *(ada::result<ada::url_search_params>*)result;
19376
0
  if (!r) {
19377
0
    return new ada_c_search_params_keys_iter{};
19378
0
  }
19379
0
  return new ada_c_search_params_keys_iter{*r};
19380
0
}
19381
19382
ada_url_search_params_values_iter ada_search_params_get_values(
19383
0
    ada_url_search_params result) {
19384
0
  ada::result<ada::url_search_params>& r =
19385
0
      *(ada::result<ada::url_search_params>*)result;
19386
0
  if (!r) {
19387
0
    return new ada_c_search_params_values_iter{};
19388
0
  }
19389
0
  return new ada_c_search_params_values_iter{*r};
19390
0
}
19391
19392
ada_url_search_params_entries_iter ada_search_params_get_entries(
19393
0
    ada_url_search_params result) {
19394
0
  ada::result<ada::url_search_params>& r =
19395
0
      *(ada::result<ada::url_search_params>*)result;
19396
0
  if (!r) {
19397
0
    return new ada_c_search_params_entries_iter{};
19398
0
  }
19399
0
  return new ada_c_search_params_entries_iter{*r};
19400
0
}
19401
19402
0
void ada_free_strings(ada_strings result) {
19403
0
  auto* r = (ada::result<std::vector<std::string>>*)result;
19404
0
  delete r;
19405
0
}
19406
19407
0
size_t ada_strings_size(ada_strings result) {
19408
0
  auto* r = (ada::result<std::vector<std::string>>*)result;
19409
0
  if (!r) {
19410
0
    return 0;
19411
0
  }
19412
0
  return (*r)->size();
19413
0
}
19414
19415
0
ada_string ada_strings_get(ada_strings result, size_t index) {
19416
0
  auto* r = (ada::result<std::vector<std::string>>*)result;
19417
0
  if (!r || index >= (*r)->size()) {
19418
0
    return ada_string_create(nullptr, 0);
19419
0
  }
19420
0
  std::string_view view = (*r)->at(index);
19421
0
  return ada_string_create(view.data(), view.length());
19422
0
}
19423
19424
0
void ada_free_search_params_keys_iter(ada_url_search_params_keys_iter result) {
19425
0
  auto* r = (ada_c_search_params_keys_iter*)result;
19426
0
  delete r;
19427
0
}
19428
19429
ada_string ada_search_params_keys_iter_next(
19430
0
    ada_url_search_params_keys_iter result) {
19431
0
  auto* r = (ada_c_search_params_keys_iter*)result;
19432
0
  if (!r) {
19433
0
    return ada_string_create(nullptr, 0);
19434
0
  }
19435
0
  auto next = r->iter.next();
19436
0
  if (!next.has_value()) {
19437
0
    return ada_string_create(nullptr, 0);
19438
0
  }
19439
0
  return ada_string_create(next->data(), next->length());
19440
0
}
19441
19442
bool ada_search_params_keys_iter_has_next(
19443
0
    ada_url_search_params_keys_iter result) {
19444
0
  auto* r = (ada_c_search_params_keys_iter*)result;
19445
0
  if (!r) {
19446
0
    return false;
19447
0
  }
19448
0
  return r->iter.has_next();
19449
0
}
19450
19451
void ada_free_search_params_values_iter(
19452
0
    ada_url_search_params_values_iter result) {
19453
0
  auto* r = (ada_c_search_params_values_iter*)result;
19454
0
  delete r;
19455
0
}
19456
19457
ada_string ada_search_params_values_iter_next(
19458
0
    ada_url_search_params_values_iter result) {
19459
0
  auto* r = (ada_c_search_params_values_iter*)result;
19460
0
  if (!r) {
19461
0
    return ada_string_create(nullptr, 0);
19462
0
  }
19463
0
  auto next = r->iter.next();
19464
0
  if (!next.has_value()) {
19465
0
    return ada_string_create(nullptr, 0);
19466
0
  }
19467
0
  return ada_string_create(next->data(), next->length());
19468
0
}
19469
19470
bool ada_search_params_values_iter_has_next(
19471
0
    ada_url_search_params_values_iter result) {
19472
0
  auto* r = (ada_c_search_params_values_iter*)result;
19473
0
  if (!r) {
19474
0
    return false;
19475
0
  }
19476
0
  return r->iter.has_next();
19477
0
}
19478
19479
void ada_free_search_params_entries_iter(
19480
0
    ada_url_search_params_entries_iter result) {
19481
0
  auto* r = (ada_c_search_params_entries_iter*)result;
19482
0
  delete r;
19483
0
}
19484
19485
ada_string_pair ada_search_params_entries_iter_next(
19486
0
    ada_url_search_params_entries_iter result) {
19487
0
  auto* r = (ada_c_search_params_entries_iter*)result;
19488
0
  if (!r) return {ada_string_create(nullptr, 0), ada_string_create(nullptr, 0)};
19489
0
  auto next = r->iter.next();
19490
0
  if (!next.has_value()) {
19491
0
    return {ada_string_create(nullptr, 0), ada_string_create(nullptr, 0)};
19492
0
  }
19493
0
  return ada_string_pair{
19494
0
      ada_string_create(next->first.data(), next->first.length()),
19495
0
      ada_string_create(next->second.data(), next->second.length())};
19496
0
}
19497
19498
bool ada_search_params_entries_iter_has_next(
19499
0
    ada_url_search_params_entries_iter result) {
19500
0
  auto* r = (ada_c_search_params_entries_iter*)result;
19501
0
  if (!r) {
19502
0
    return false;
19503
0
  }
19504
0
  return r->iter.has_next();
19505
0
}
19506
19507
0
void ada_set_max_input_length(uint32_t length) noexcept {
19508
0
  ada::set_max_input_length(length);
19509
0
}
19510
19511
0
uint32_t ada_get_max_input_length() noexcept {
19512
0
  return ada::get_max_input_length();
19513
0
}
19514
19515
typedef struct {
19516
  int major;
19517
  int minor;
19518
  int revision;
19519
} ada_version_components;
19520
19521
0
const char* ada_get_version() { return ADA_VERSION; }
19522
19523
0
ada_version_components ada_get_version_components() {
19524
0
  return ada_version_components{
19525
0
      .major = ada::ADA_VERSION_MAJOR,
19526
0
      .minor = ada::ADA_VERSION_MINOR,
19527
0
      .revision = ada::ADA_VERSION_REVISION,
19528
0
  };
19529
0
}
19530
19531
}  // extern "C"
19532
// NOLINTEND(bugprone-exception-escape,
19533
// bugprone-suspicious-stringview-data-usage)
19534
/* end file src/ada_c.cpp */
19535
/* end file src/ada.cpp */