mail 2.6.1 → 2.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +92 -80
  4. data/lib/mail/attachments_list.rb +11 -5
  5. data/lib/mail/body.rb +81 -44
  6. data/lib/mail/check_delivery_params.rb +50 -10
  7. data/lib/mail/configuration.rb +3 -0
  8. data/lib/mail/{patterns.rb → constants.rb} +26 -6
  9. data/lib/mail/core_extensions/smtp.rb +20 -16
  10. data/lib/mail/core_extensions/string.rb +1 -27
  11. data/lib/mail/elements/address.rb +81 -93
  12. data/lib/mail/elements/address_list.rb +12 -29
  13. data/lib/mail/elements/content_disposition_element.rb +9 -15
  14. data/lib/mail/elements/content_location_element.rb +8 -12
  15. data/lib/mail/elements/content_transfer_encoding_element.rb +6 -10
  16. data/lib/mail/elements/content_type_element.rb +9 -19
  17. data/lib/mail/elements/date_time_element.rb +7 -14
  18. data/lib/mail/elements/envelope_from_element.rb +15 -21
  19. data/lib/mail/elements/message_ids_element.rb +12 -14
  20. data/lib/mail/elements/mime_version_element.rb +7 -14
  21. data/lib/mail/elements/phrase_list.rb +7 -9
  22. data/lib/mail/elements/received_element.rb +10 -15
  23. data/lib/mail/elements.rb +1 -0
  24. data/lib/mail/encodings/7bit.rb +6 -15
  25. data/lib/mail/encodings/8bit.rb +5 -18
  26. data/lib/mail/encodings/base64.rb +15 -10
  27. data/lib/mail/encodings/binary.rb +4 -22
  28. data/lib/mail/encodings/identity.rb +24 -0
  29. data/lib/mail/encodings/quoted_printable.rb +13 -7
  30. data/lib/mail/encodings/transfer_encoding.rb +47 -28
  31. data/lib/mail/encodings/unix_to_unix.rb +20 -0
  32. data/lib/mail/encodings.rb +121 -82
  33. data/lib/mail/envelope.rb +2 -1
  34. data/lib/mail/field.rb +114 -62
  35. data/lib/mail/field_list.rb +2 -1
  36. data/lib/mail/fields/bcc_field.rb +17 -5
  37. data/lib/mail/fields/cc_field.rb +2 -2
  38. data/lib/mail/fields/comments_field.rb +2 -1
  39. data/lib/mail/fields/common/address_container.rb +3 -2
  40. data/lib/mail/fields/common/common_address.rb +40 -14
  41. data/lib/mail/fields/common/common_date.rb +2 -1
  42. data/lib/mail/fields/common/common_field.rb +6 -11
  43. data/lib/mail/fields/common/common_message_id.rb +3 -2
  44. data/lib/mail/fields/common/parameter_hash.rb +5 -4
  45. data/lib/mail/fields/content_description_field.rb +2 -1
  46. data/lib/mail/fields/content_disposition_field.rb +14 -13
  47. data/lib/mail/fields/content_id_field.rb +5 -4
  48. data/lib/mail/fields/content_location_field.rb +3 -2
  49. data/lib/mail/fields/content_transfer_encoding_field.rb +3 -2
  50. data/lib/mail/fields/content_type_field.rb +7 -11
  51. data/lib/mail/fields/date_field.rb +4 -4
  52. data/lib/mail/fields/from_field.rb +2 -2
  53. data/lib/mail/fields/in_reply_to_field.rb +2 -1
  54. data/lib/mail/fields/keywords_field.rb +3 -3
  55. data/lib/mail/fields/message_id_field.rb +3 -2
  56. data/lib/mail/fields/mime_version_field.rb +4 -3
  57. data/lib/mail/fields/optional_field.rb +5 -1
  58. data/lib/mail/fields/received_field.rb +5 -4
  59. data/lib/mail/fields/references_field.rb +2 -1
  60. data/lib/mail/fields/reply_to_field.rb +2 -2
  61. data/lib/mail/fields/resent_bcc_field.rb +2 -2
  62. data/lib/mail/fields/resent_cc_field.rb +2 -2
  63. data/lib/mail/fields/resent_date_field.rb +2 -2
  64. data/lib/mail/fields/resent_from_field.rb +2 -2
  65. data/lib/mail/fields/resent_message_id_field.rb +2 -1
  66. data/lib/mail/fields/resent_sender_field.rb +2 -2
  67. data/lib/mail/fields/resent_to_field.rb +2 -2
  68. data/lib/mail/fields/return_path_field.rb +2 -2
  69. data/lib/mail/fields/sender_field.rb +2 -2
  70. data/lib/mail/fields/structured_field.rb +1 -0
  71. data/lib/mail/fields/subject_field.rb +2 -1
  72. data/lib/mail/fields/to_field.rb +2 -2
  73. data/lib/mail/fields/unstructured_field.rb +28 -10
  74. data/lib/mail/fields.rb +1 -0
  75. data/lib/mail/header.rb +18 -14
  76. data/lib/mail/indifferent_hash.rb +1 -0
  77. data/lib/mail/mail.rb +6 -11
  78. data/lib/mail/matchers/attachment_matchers.rb +29 -0
  79. data/lib/mail/matchers/has_sent_mail.rb +53 -9
  80. data/lib/mail/message.rb +99 -89
  81. data/lib/mail/multibyte/chars.rb +32 -30
  82. data/lib/mail/multibyte/unicode.rb +31 -26
  83. data/lib/mail/multibyte/utils.rb +1 -0
  84. data/lib/mail/multibyte.rb +65 -15
  85. data/lib/mail/network/delivery_methods/exim.rb +7 -10
  86. data/lib/mail/network/delivery_methods/file_delivery.rb +5 -8
  87. data/lib/mail/network/delivery_methods/logger_delivery.rb +37 -0
  88. data/lib/mail/network/delivery_methods/sendmail.rb +17 -11
  89. data/lib/mail/network/delivery_methods/smtp.rb +60 -53
  90. data/lib/mail/network/delivery_methods/smtp_connection.rb +11 -6
  91. data/lib/mail/network/delivery_methods/test_mailer.rb +6 -8
  92. data/lib/mail/network/retriever_methods/base.rb +1 -0
  93. data/lib/mail/network/retriever_methods/imap.rb +19 -5
  94. data/lib/mail/network/retriever_methods/pop3.rb +4 -1
  95. data/lib/mail/network/retriever_methods/test_retriever.rb +2 -1
  96. data/lib/mail/network.rb +2 -0
  97. data/lib/mail/parser_tools.rb +15 -0
  98. data/lib/mail/parsers/address_lists_parser.rb +33208 -104
  99. data/lib/mail/parsers/address_lists_parser.rl +172 -0
  100. data/lib/mail/parsers/content_disposition_parser.rb +877 -49
  101. data/lib/mail/parsers/content_disposition_parser.rl +82 -0
  102. data/lib/mail/parsers/content_location_parser.rb +804 -23
  103. data/lib/mail/parsers/content_location_parser.rl +71 -0
  104. data/lib/mail/parsers/content_transfer_encoding_parser.rb +502 -19
  105. data/lib/mail/parsers/content_transfer_encoding_parser.rl +64 -0
  106. data/lib/mail/parsers/content_type_parser.rb +1024 -46
  107. data/lib/mail/parsers/content_type_parser.rl +83 -0
  108. data/lib/mail/parsers/date_time_parser.rb +872 -23
  109. data/lib/mail/parsers/date_time_parser.rl +62 -0
  110. data/lib/mail/parsers/envelope_from_parser.rb +3570 -34
  111. data/lib/mail/parsers/envelope_from_parser.rl +82 -0
  112. data/lib/mail/parsers/message_ids_parser.rb +2840 -25
  113. data/lib/mail/parsers/message_ids_parser.rl +82 -0
  114. data/lib/mail/parsers/mime_version_parser.rb +492 -26
  115. data/lib/mail/parsers/mime_version_parser.rl +61 -0
  116. data/lib/mail/parsers/phrase_lists_parser.rb +862 -17
  117. data/lib/mail/parsers/phrase_lists_parser.rl +83 -0
  118. data/lib/mail/parsers/received_parser.rb +8765 -36
  119. data/lib/mail/parsers/received_parser.rl +84 -0
  120. data/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
  121. data/lib/mail/parsers/rfc2045_content_type.rl +25 -0
  122. data/lib/mail/parsers/rfc2045_mime.rl +16 -0
  123. data/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
  124. data/lib/mail/parsers/rfc3629_utf8.rl +19 -0
  125. data/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
  126. data/lib/mail/parsers/rfc5322.rl +59 -0
  127. data/lib/mail/parsers/rfc5322_address.rl +72 -0
  128. data/lib/mail/parsers/{ragel/date_time.rl → rfc5322_date_time.rl} +8 -1
  129. data/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
  130. data/lib/mail/parsers.rb +17 -24
  131. data/lib/mail/part.rb +8 -5
  132. data/lib/mail/parts_list.rb +31 -14
  133. data/lib/mail/utilities.rb +112 -13
  134. data/lib/mail/values/unicode_tables.dat +0 -0
  135. data/lib/mail/version.rb +8 -15
  136. data/lib/mail/version_specific/ruby_1_8.rb +52 -8
  137. data/lib/mail/version_specific/ruby_1_9.rb +143 -24
  138. data/lib/mail.rb +8 -14
  139. metadata +71 -81
  140. data/CHANGELOG.rdoc +0 -752
  141. data/CONTRIBUTING.md +0 -60
  142. data/Dependencies.txt +0 -2
  143. data/Gemfile +0 -15
  144. data/Rakefile +0 -29
  145. data/TODO.rdoc +0 -9
  146. data/VERSION +0 -4
  147. data/lib/mail/core_extensions/nil.rb +0 -19
  148. data/lib/mail/core_extensions/object.rb +0 -13
  149. data/lib/mail/core_extensions/string/access.rb +0 -145
  150. data/lib/mail/core_extensions/string/multibyte.rb +0 -78
  151. data/lib/mail/multibyte/exceptions.rb +0 -8
  152. data/lib/mail/parsers/ragel/common.rl +0 -184
  153. data/lib/mail/parsers/ragel/parser_info.rb +0 -61
  154. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb +0 -14864
  155. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb.rl +0 -37
  156. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb +0 -751
  157. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb.rl +0 -37
  158. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb +0 -614
  159. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb.rl +0 -37
  160. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb +0 -447
  161. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb.rl +0 -37
  162. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb +0 -825
  163. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb.rl +0 -37
  164. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb +0 -817
  165. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb.rl +0 -37
  166. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb +0 -2129
  167. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb.rl +0 -37
  168. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb +0 -1570
  169. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl +0 -37
  170. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb +0 -440
  171. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb.rl +0 -37
  172. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb +0 -564
  173. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl +0 -37
  174. data/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl +0 -51
  175. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb +0 -5144
  176. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb.rl +0 -37
  177. data/lib/mail/parsers/ragel/ruby/parser.rb.rl.erb +0 -37
  178. data/lib/mail/parsers/ragel/ruby.rb +0 -39
  179. data/lib/mail/parsers/ragel.rb +0 -17
@@ -1,32 +1,877 @@
1
+
2
+ # frozen_string_literal: true
3
+ require "mail/utilities"
4
+ require "mail/parser_tools"
5
+
1
6
  module Mail::Parsers
2
7
  class PhraseListsParser
8
+ extend Mail::ParserTools
3
9
 
4
- def parse(s)
5
- actions, error = Ragel.parse(:phrase_lists, s)
6
- if error
7
- raise Mail::Field::ParseError.new(Mail::PhraseList, s, error)
8
- end
10
+ PhraseListsStruct = Struct.new(:phrases, :error)
9
11
 
10
- phrase_lists = PhraseListsStruct.new([])
12
+ class << self
13
+ attr_accessor :_trans_keys
14
+ private :_trans_keys, :_trans_keys=
15
+ end
16
+ self._trans_keys = [
17
+ 0, 0, 9, 244, 9, 244,
18
+ 10, 10, 9, 32, 10,
19
+ 10, 9, 32, 1, 244,
20
+ 1, 244, 10, 10, 9, 32,
21
+ 0, 244, 128, 191, 160,
22
+ 191, 128, 191, 128, 159,
23
+ 144, 191, 128, 191, 128, 143,
24
+ 9, 244, 10, 10, 9,
25
+ 32, 9, 244, 128, 191,
26
+ 160, 191, 128, 191, 128, 159,
27
+ 144, 191, 128, 191, 128,
28
+ 143, 1, 244, 1, 244,
29
+ 10, 10, 9, 32, 0, 244,
30
+ 128, 191, 160, 191, 128,
31
+ 191, 128, 159, 144, 191,
32
+ 128, 191, 128, 143, 9, 244,
33
+ 9, 244, 9, 244, 0,
34
+ 0, 0,
35
+ ]
36
+
37
+ class << self
38
+ attr_accessor :_key_spans
39
+ private :_key_spans, :_key_spans=
40
+ end
41
+ self._key_spans = [
42
+ 0, 236, 236, 1, 24, 1, 24, 244,
43
+ 244, 1, 24, 245, 64, 32, 64, 32,
44
+ 48, 64, 16, 236, 1, 24, 236, 64,
45
+ 32, 64, 32, 48, 64, 16, 244, 244,
46
+ 1, 24, 245, 64, 32, 64, 32, 48,
47
+ 64, 16, 236, 236, 236, 0,
48
+ ]
49
+
50
+ class << self
51
+ attr_accessor :_index_offsets
52
+ private :_index_offsets, :_index_offsets=
53
+ end
54
+ self._index_offsets = [
55
+ 0, 0, 237, 474, 476, 501, 503, 528,
56
+ 773, 1018, 1020, 1045, 1291, 1356, 1389, 1454,
57
+ 1487, 1536, 1601, 1618, 1855, 1857, 1882, 2119,
58
+ 2184, 2217, 2282, 2315, 2364, 2429, 2446, 2691,
59
+ 2936, 2938, 2963, 3209, 3274, 3307, 3372, 3405,
60
+ 3454, 3519, 3536, 3773, 4010, 4247,
61
+ ]
62
+
63
+ class << self
64
+ attr_accessor :_indicies
65
+ private :_indicies, :_indicies=
66
+ end
67
+ self._indicies = [
68
+ 0, 1, 1, 1, 2, 1, 1, 1,
69
+ 1, 1, 1, 1, 1, 1, 1, 1,
70
+ 1, 1, 1, 1, 1, 1, 1, 0,
71
+ 3, 4, 3, 3, 3, 3, 3, 5,
72
+ 1, 3, 3, 1, 3, 6, 3, 3,
73
+ 3, 3, 3, 3, 3, 3, 3, 3,
74
+ 3, 1, 1, 1, 3, 1, 3, 6,
75
+ 3, 3, 3, 3, 3, 3, 3, 3,
76
+ 3, 3, 3, 3, 3, 3, 3, 3,
77
+ 3, 3, 3, 3, 3, 3, 3, 3,
78
+ 3, 3, 1, 1, 1, 3, 3, 3,
79
+ 3, 3, 3, 3, 3, 3, 3, 3,
80
+ 3, 3, 3, 3, 3, 3, 3, 3,
81
+ 3, 3, 3, 3, 3, 3, 3, 3,
82
+ 3, 3, 3, 3, 3, 3, 1, 1,
83
+ 1, 1, 1, 1, 1, 1, 1, 1,
84
+ 1, 1, 1, 1, 1, 1, 1, 1,
85
+ 1, 1, 1, 1, 1, 1, 1, 1,
86
+ 1, 1, 1, 1, 1, 1, 1, 1,
87
+ 1, 1, 1, 1, 1, 1, 1, 1,
88
+ 1, 1, 1, 1, 1, 1, 1, 1,
89
+ 1, 1, 1, 1, 1, 1, 1, 1,
90
+ 1, 1, 1, 1, 1, 1, 1, 1,
91
+ 1, 7, 7, 7, 7, 7, 7, 7,
92
+ 7, 7, 7, 7, 7, 7, 7, 7,
93
+ 7, 7, 7, 7, 7, 7, 7, 7,
94
+ 7, 7, 7, 7, 7, 7, 7, 8,
95
+ 9, 9, 9, 9, 9, 9, 9, 9,
96
+ 9, 9, 9, 9, 10, 9, 9, 11,
97
+ 12, 12, 12, 13, 1, 14, 1, 1,
98
+ 1, 15, 1, 1, 1, 1, 1, 1,
99
+ 1, 1, 1, 1, 1, 1, 1, 1,
100
+ 1, 1, 1, 1, 14, 16, 17, 16,
101
+ 16, 16, 16, 16, 18, 1, 16, 16,
102
+ 1, 16, 1, 16, 16, 16, 16, 16,
103
+ 16, 16, 16, 16, 16, 16, 1, 1,
104
+ 1, 16, 1, 16, 1, 16, 16, 16,
105
+ 16, 16, 16, 16, 16, 16, 16, 16,
106
+ 16, 16, 16, 16, 16, 16, 16, 16,
107
+ 16, 16, 16, 16, 16, 16, 16, 1,
108
+ 1, 1, 16, 16, 16, 16, 16, 16,
109
+ 16, 16, 16, 16, 16, 16, 16, 16,
110
+ 16, 16, 16, 16, 16, 16, 16, 16,
111
+ 16, 16, 16, 16, 16, 16, 16, 16,
112
+ 16, 16, 16, 1, 1, 1, 1, 1,
113
+ 1, 1, 1, 1, 1, 1, 1, 1,
114
+ 1, 1, 1, 1, 1, 1, 1, 1,
115
+ 1, 1, 1, 1, 1, 1, 1, 1,
116
+ 1, 1, 1, 1, 1, 1, 1, 1,
117
+ 1, 1, 1, 1, 1, 1, 1, 1,
118
+ 1, 1, 1, 1, 1, 1, 1, 1,
119
+ 1, 1, 1, 1, 1, 1, 1, 1,
120
+ 1, 1, 1, 1, 1, 1, 19, 19,
121
+ 19, 19, 19, 19, 19, 19, 19, 19,
122
+ 19, 19, 19, 19, 19, 19, 19, 19,
123
+ 19, 19, 19, 19, 19, 19, 19, 19,
124
+ 19, 19, 19, 19, 20, 21, 21, 21,
125
+ 21, 21, 21, 21, 21, 21, 21, 21,
126
+ 21, 22, 21, 21, 23, 24, 24, 24,
127
+ 25, 1, 26, 1, 14, 1, 1, 1,
128
+ 1, 1, 1, 1, 1, 1, 1, 1,
129
+ 1, 1, 1, 1, 1, 1, 1, 1,
130
+ 1, 1, 1, 14, 1, 27, 1, 16,
131
+ 1, 1, 1, 1, 1, 1, 1, 1,
132
+ 1, 1, 1, 1, 1, 1, 1, 1,
133
+ 1, 1, 1, 1, 1, 1, 16, 1,
134
+ 28, 28, 28, 28, 28, 28, 28, 28,
135
+ 28, 1, 28, 28, 29, 28, 28, 28,
136
+ 28, 28, 28, 28, 28, 28, 28, 28,
137
+ 28, 28, 28, 28, 28, 28, 28, 28,
138
+ 28, 30, 28, 28, 28, 28, 28, 28,
139
+ 28, 28, 28, 28, 28, 28, 28, 28,
140
+ 28, 28, 28, 28, 28, 28, 28, 28,
141
+ 28, 28, 28, 28, 28, 28, 28, 28,
142
+ 28, 28, 28, 28, 28, 28, 28, 28,
143
+ 28, 28, 28, 28, 28, 28, 28, 28,
144
+ 28, 28, 28, 28, 28, 28, 28, 28,
145
+ 28, 28, 28, 31, 28, 28, 28, 28,
146
+ 28, 28, 28, 28, 28, 28, 28, 28,
147
+ 28, 28, 28, 28, 28, 28, 28, 28,
148
+ 28, 28, 28, 28, 28, 28, 28, 28,
149
+ 28, 28, 28, 28, 28, 28, 28, 1,
150
+ 1, 1, 1, 1, 1, 1, 1, 1,
151
+ 1, 1, 1, 1, 1, 1, 1, 1,
152
+ 1, 1, 1, 1, 1, 1, 1, 1,
153
+ 1, 1, 1, 1, 1, 1, 1, 1,
154
+ 1, 1, 1, 1, 1, 1, 1, 1,
155
+ 1, 1, 1, 1, 1, 1, 1, 1,
156
+ 1, 1, 1, 1, 1, 1, 1, 1,
157
+ 1, 1, 1, 1, 1, 1, 1, 1,
158
+ 1, 32, 32, 32, 32, 32, 32, 32,
159
+ 32, 32, 32, 32, 32, 32, 32, 32,
160
+ 32, 32, 32, 32, 32, 32, 32, 32,
161
+ 32, 32, 32, 32, 32, 32, 32, 33,
162
+ 34, 34, 34, 34, 34, 34, 34, 34,
163
+ 34, 34, 34, 34, 35, 34, 34, 36,
164
+ 37, 37, 37, 38, 1, 39, 39, 39,
165
+ 39, 39, 39, 39, 39, 39, 1, 39,
166
+ 39, 40, 39, 39, 39, 39, 39, 39,
167
+ 39, 39, 39, 39, 39, 39, 39, 39,
168
+ 39, 39, 39, 39, 39, 39, 41, 39,
169
+ 39, 39, 39, 39, 39, 39, 39, 39,
170
+ 39, 39, 39, 39, 39, 39, 39, 39,
171
+ 39, 39, 39, 39, 39, 39, 39, 39,
172
+ 39, 39, 39, 39, 39, 39, 39, 39,
173
+ 39, 39, 39, 39, 39, 39, 39, 39,
174
+ 39, 39, 39, 39, 39, 39, 39, 39,
175
+ 39, 39, 39, 39, 39, 39, 39, 39,
176
+ 42, 39, 39, 39, 39, 39, 39, 39,
177
+ 39, 39, 39, 39, 39, 39, 39, 39,
178
+ 39, 39, 39, 39, 39, 39, 39, 39,
179
+ 39, 39, 39, 39, 39, 39, 39, 39,
180
+ 39, 39, 39, 39, 1, 1, 1, 1,
181
+ 1, 1, 1, 1, 1, 1, 1, 1,
182
+ 1, 1, 1, 1, 1, 1, 1, 1,
183
+ 1, 1, 1, 1, 1, 1, 1, 1,
184
+ 1, 1, 1, 1, 1, 1, 1, 1,
185
+ 1, 1, 1, 1, 1, 1, 1, 1,
186
+ 1, 1, 1, 1, 1, 1, 1, 1,
187
+ 1, 1, 1, 1, 1, 1, 1, 1,
188
+ 1, 1, 1, 1, 1, 1, 43, 43,
189
+ 43, 43, 43, 43, 43, 43, 43, 43,
190
+ 43, 43, 43, 43, 43, 43, 43, 43,
191
+ 43, 43, 43, 43, 43, 43, 43, 43,
192
+ 43, 43, 43, 43, 44, 45, 45, 45,
193
+ 45, 45, 45, 45, 45, 45, 45, 45,
194
+ 45, 46, 45, 45, 47, 48, 48, 48,
195
+ 49, 1, 50, 1, 39, 1, 1, 1,
196
+ 1, 1, 1, 1, 1, 1, 1, 1,
197
+ 1, 1, 1, 1, 1, 1, 1, 1,
198
+ 1, 1, 1, 39, 1, 39, 39, 39,
199
+ 39, 39, 39, 39, 39, 39, 39, 39,
200
+ 39, 39, 39, 39, 39, 39, 39, 39,
201
+ 39, 39, 39, 39, 39, 39, 39, 39,
202
+ 39, 39, 39, 39, 39, 39, 39, 39,
203
+ 39, 39, 39, 39, 39, 39, 39, 39,
204
+ 39, 39, 39, 39, 39, 39, 39, 39,
205
+ 39, 39, 39, 39, 39, 39, 39, 39,
206
+ 39, 39, 39, 39, 39, 39, 39, 39,
207
+ 39, 39, 39, 39, 39, 39, 39, 39,
208
+ 39, 39, 39, 39, 39, 39, 39, 39,
209
+ 39, 39, 39, 39, 39, 39, 39, 39,
210
+ 39, 39, 39, 39, 39, 39, 39, 39,
211
+ 39, 39, 39, 39, 39, 39, 39, 39,
212
+ 39, 39, 39, 39, 39, 39, 39, 39,
213
+ 39, 39, 39, 39, 39, 39, 39, 39,
214
+ 39, 39, 39, 39, 39, 1, 1, 1,
215
+ 1, 1, 1, 1, 1, 1, 1, 1,
216
+ 1, 1, 1, 1, 1, 1, 1, 1,
217
+ 1, 1, 1, 1, 1, 1, 1, 1,
218
+ 1, 1, 1, 1, 1, 1, 1, 1,
219
+ 1, 1, 1, 1, 1, 1, 1, 1,
220
+ 1, 1, 1, 1, 1, 1, 1, 1,
221
+ 1, 1, 1, 1, 1, 1, 1, 1,
222
+ 1, 1, 1, 1, 1, 1, 1, 43,
223
+ 43, 43, 43, 43, 43, 43, 43, 43,
224
+ 43, 43, 43, 43, 43, 43, 43, 43,
225
+ 43, 43, 43, 43, 43, 43, 43, 43,
226
+ 43, 43, 43, 43, 43, 44, 45, 45,
227
+ 45, 45, 45, 45, 45, 45, 45, 45,
228
+ 45, 45, 46, 45, 45, 47, 48, 48,
229
+ 48, 49, 1, 39, 39, 39, 39, 39,
230
+ 39, 39, 39, 39, 39, 39, 39, 39,
231
+ 39, 39, 39, 39, 39, 39, 39, 39,
232
+ 39, 39, 39, 39, 39, 39, 39, 39,
233
+ 39, 39, 39, 39, 39, 39, 39, 39,
234
+ 39, 39, 39, 39, 39, 39, 39, 39,
235
+ 39, 39, 39, 39, 39, 39, 39, 39,
236
+ 39, 39, 39, 39, 39, 39, 39, 39,
237
+ 39, 39, 39, 1, 43, 43, 43, 43,
238
+ 43, 43, 43, 43, 43, 43, 43, 43,
239
+ 43, 43, 43, 43, 43, 43, 43, 43,
240
+ 43, 43, 43, 43, 43, 43, 43, 43,
241
+ 43, 43, 43, 43, 1, 43, 43, 43,
242
+ 43, 43, 43, 43, 43, 43, 43, 43,
243
+ 43, 43, 43, 43, 43, 43, 43, 43,
244
+ 43, 43, 43, 43, 43, 43, 43, 43,
245
+ 43, 43, 43, 43, 43, 43, 43, 43,
246
+ 43, 43, 43, 43, 43, 43, 43, 43,
247
+ 43, 43, 43, 43, 43, 43, 43, 43,
248
+ 43, 43, 43, 43, 43, 43, 43, 43,
249
+ 43, 43, 43, 43, 43, 1, 43, 43,
250
+ 43, 43, 43, 43, 43, 43, 43, 43,
251
+ 43, 43, 43, 43, 43, 43, 43, 43,
252
+ 43, 43, 43, 43, 43, 43, 43, 43,
253
+ 43, 43, 43, 43, 43, 43, 1, 45,
254
+ 45, 45, 45, 45, 45, 45, 45, 45,
255
+ 45, 45, 45, 45, 45, 45, 45, 45,
256
+ 45, 45, 45, 45, 45, 45, 45, 45,
257
+ 45, 45, 45, 45, 45, 45, 45, 45,
258
+ 45, 45, 45, 45, 45, 45, 45, 45,
259
+ 45, 45, 45, 45, 45, 45, 45, 1,
260
+ 45, 45, 45, 45, 45, 45, 45, 45,
261
+ 45, 45, 45, 45, 45, 45, 45, 45,
262
+ 45, 45, 45, 45, 45, 45, 45, 45,
263
+ 45, 45, 45, 45, 45, 45, 45, 45,
264
+ 45, 45, 45, 45, 45, 45, 45, 45,
265
+ 45, 45, 45, 45, 45, 45, 45, 45,
266
+ 45, 45, 45, 45, 45, 45, 45, 45,
267
+ 45, 45, 45, 45, 45, 45, 45, 45,
268
+ 1, 45, 45, 45, 45, 45, 45, 45,
269
+ 45, 45, 45, 45, 45, 45, 45, 45,
270
+ 45, 1, 51, 1, 1, 1, 52, 1,
271
+ 1, 1, 1, 1, 1, 1, 1, 1,
272
+ 1, 1, 1, 1, 1, 1, 1, 1,
273
+ 1, 51, 3, 4, 3, 3, 3, 3,
274
+ 3, 5, 1, 3, 3, 1, 3, 6,
275
+ 3, 3, 3, 3, 3, 3, 3, 3,
276
+ 3, 3, 3, 1, 1, 1, 3, 1,
277
+ 3, 6, 3, 3, 3, 3, 3, 3,
278
+ 3, 3, 3, 3, 3, 3, 3, 3,
279
+ 3, 3, 3, 3, 3, 3, 3, 3,
280
+ 3, 3, 3, 3, 1, 1, 1, 3,
281
+ 3, 3, 3, 3, 3, 3, 3, 3,
282
+ 3, 3, 3, 3, 3, 3, 3, 3,
283
+ 3, 3, 3, 3, 3, 3, 3, 3,
284
+ 3, 3, 3, 3, 3, 3, 3, 3,
285
+ 1, 1, 1, 1, 1, 1, 1, 1,
286
+ 1, 1, 1, 1, 1, 1, 1, 1,
287
+ 1, 1, 1, 1, 1, 1, 1, 1,
288
+ 1, 1, 1, 1, 1, 1, 1, 1,
289
+ 1, 1, 1, 1, 1, 1, 1, 1,
290
+ 1, 1, 1, 1, 1, 1, 1, 1,
291
+ 1, 1, 1, 1, 1, 1, 1, 1,
292
+ 1, 1, 1, 1, 1, 1, 1, 1,
293
+ 1, 1, 1, 7, 7, 7, 7, 7,
294
+ 7, 7, 7, 7, 7, 7, 7, 7,
295
+ 7, 7, 7, 7, 7, 7, 7, 7,
296
+ 7, 7, 7, 7, 7, 7, 7, 7,
297
+ 7, 8, 9, 9, 9, 9, 9, 9,
298
+ 9, 9, 9, 9, 9, 9, 10, 9,
299
+ 9, 11, 12, 12, 12, 13, 1, 53,
300
+ 1, 54, 1, 1, 1, 1, 1, 1,
301
+ 1, 1, 1, 1, 1, 1, 1, 1,
302
+ 1, 1, 1, 1, 1, 1, 1, 1,
303
+ 54, 1, 55, 1, 1, 1, 56, 1,
304
+ 1, 1, 1, 1, 1, 1, 1, 1,
305
+ 1, 1, 1, 1, 1, 1, 1, 1,
306
+ 1, 55, 57, 58, 57, 57, 57, 57,
307
+ 57, 59, 1, 57, 57, 1, 57, 1,
308
+ 57, 57, 57, 57, 57, 57, 57, 57,
309
+ 57, 57, 57, 1, 1, 1, 57, 1,
310
+ 57, 1, 57, 57, 57, 57, 57, 57,
311
+ 57, 57, 57, 57, 57, 57, 57, 57,
312
+ 57, 57, 57, 57, 57, 57, 57, 57,
313
+ 57, 57, 57, 57, 1, 1, 1, 57,
314
+ 57, 57, 57, 57, 57, 57, 57, 57,
315
+ 57, 57, 57, 57, 57, 57, 57, 57,
316
+ 57, 57, 57, 57, 57, 57, 57, 57,
317
+ 57, 57, 57, 57, 57, 57, 57, 57,
318
+ 1, 1, 1, 1, 1, 1, 1, 1,
319
+ 1, 1, 1, 1, 1, 1, 1, 1,
320
+ 1, 1, 1, 1, 1, 1, 1, 1,
321
+ 1, 1, 1, 1, 1, 1, 1, 1,
322
+ 1, 1, 1, 1, 1, 1, 1, 1,
323
+ 1, 1, 1, 1, 1, 1, 1, 1,
324
+ 1, 1, 1, 1, 1, 1, 1, 1,
325
+ 1, 1, 1, 1, 1, 1, 1, 1,
326
+ 1, 1, 1, 60, 60, 60, 60, 60,
327
+ 60, 60, 60, 60, 60, 60, 60, 60,
328
+ 60, 60, 60, 60, 60, 60, 60, 60,
329
+ 60, 60, 60, 60, 60, 60, 60, 60,
330
+ 60, 61, 62, 62, 62, 62, 62, 62,
331
+ 62, 62, 62, 62, 62, 62, 63, 62,
332
+ 62, 64, 65, 65, 65, 66, 1, 16,
333
+ 16, 16, 16, 16, 16, 16, 16, 16,
334
+ 16, 16, 16, 16, 16, 16, 16, 16,
335
+ 16, 16, 16, 16, 16, 16, 16, 16,
336
+ 16, 16, 16, 16, 16, 16, 16, 16,
337
+ 16, 16, 16, 16, 16, 16, 16, 16,
338
+ 16, 16, 16, 16, 16, 16, 16, 16,
339
+ 16, 16, 16, 16, 16, 16, 16, 16,
340
+ 16, 16, 16, 16, 16, 16, 16, 1,
341
+ 19, 19, 19, 19, 19, 19, 19, 19,
342
+ 19, 19, 19, 19, 19, 19, 19, 19,
343
+ 19, 19, 19, 19, 19, 19, 19, 19,
344
+ 19, 19, 19, 19, 19, 19, 19, 19,
345
+ 1, 19, 19, 19, 19, 19, 19, 19,
346
+ 19, 19, 19, 19, 19, 19, 19, 19,
347
+ 19, 19, 19, 19, 19, 19, 19, 19,
348
+ 19, 19, 19, 19, 19, 19, 19, 19,
349
+ 19, 19, 19, 19, 19, 19, 19, 19,
350
+ 19, 19, 19, 19, 19, 19, 19, 19,
351
+ 19, 19, 19, 19, 19, 19, 19, 19,
352
+ 19, 19, 19, 19, 19, 19, 19, 19,
353
+ 19, 1, 19, 19, 19, 19, 19, 19,
354
+ 19, 19, 19, 19, 19, 19, 19, 19,
355
+ 19, 19, 19, 19, 19, 19, 19, 19,
356
+ 19, 19, 19, 19, 19, 19, 19, 19,
357
+ 19, 19, 1, 21, 21, 21, 21, 21,
358
+ 21, 21, 21, 21, 21, 21, 21, 21,
359
+ 21, 21, 21, 21, 21, 21, 21, 21,
360
+ 21, 21, 21, 21, 21, 21, 21, 21,
361
+ 21, 21, 21, 21, 21, 21, 21, 21,
362
+ 21, 21, 21, 21, 21, 21, 21, 21,
363
+ 21, 21, 21, 1, 21, 21, 21, 21,
364
+ 21, 21, 21, 21, 21, 21, 21, 21,
365
+ 21, 21, 21, 21, 21, 21, 21, 21,
366
+ 21, 21, 21, 21, 21, 21, 21, 21,
367
+ 21, 21, 21, 21, 21, 21, 21, 21,
368
+ 21, 21, 21, 21, 21, 21, 21, 21,
369
+ 21, 21, 21, 21, 21, 21, 21, 21,
370
+ 21, 21, 21, 21, 21, 21, 21, 21,
371
+ 21, 21, 21, 21, 1, 21, 21, 21,
372
+ 21, 21, 21, 21, 21, 21, 21, 21,
373
+ 21, 21, 21, 21, 21, 1, 67, 67,
374
+ 67, 67, 67, 67, 67, 67, 67, 1,
375
+ 67, 67, 68, 67, 67, 67, 67, 67,
376
+ 67, 67, 67, 67, 67, 67, 67, 67,
377
+ 67, 67, 67, 67, 67, 67, 67, 67,
378
+ 67, 67, 67, 67, 67, 69, 70, 67,
379
+ 67, 67, 67, 67, 67, 67, 67, 67,
380
+ 67, 67, 67, 67, 67, 67, 67, 67,
381
+ 67, 67, 67, 67, 67, 67, 67, 67,
382
+ 67, 67, 67, 67, 67, 67, 67, 67,
383
+ 67, 67, 67, 67, 67, 67, 67, 67,
384
+ 67, 67, 67, 67, 67, 67, 67, 67,
385
+ 67, 71, 67, 67, 67, 67, 67, 67,
386
+ 67, 67, 67, 67, 67, 67, 67, 67,
387
+ 67, 67, 67, 67, 67, 67, 67, 67,
388
+ 67, 67, 67, 67, 67, 67, 67, 67,
389
+ 67, 67, 67, 67, 67, 1, 1, 1,
390
+ 1, 1, 1, 1, 1, 1, 1, 1,
391
+ 1, 1, 1, 1, 1, 1, 1, 1,
392
+ 1, 1, 1, 1, 1, 1, 1, 1,
393
+ 1, 1, 1, 1, 1, 1, 1, 1,
394
+ 1, 1, 1, 1, 1, 1, 1, 1,
395
+ 1, 1, 1, 1, 1, 1, 1, 1,
396
+ 1, 1, 1, 1, 1, 1, 1, 1,
397
+ 1, 1, 1, 1, 1, 1, 1, 72,
398
+ 72, 72, 72, 72, 72, 72, 72, 72,
399
+ 72, 72, 72, 72, 72, 72, 72, 72,
400
+ 72, 72, 72, 72, 72, 72, 72, 72,
401
+ 72, 72, 72, 72, 72, 73, 74, 74,
402
+ 74, 74, 74, 74, 74, 74, 74, 74,
403
+ 74, 74, 75, 74, 74, 76, 77, 77,
404
+ 77, 78, 1, 79, 79, 79, 79, 79,
405
+ 79, 79, 79, 79, 1, 79, 79, 80,
406
+ 79, 79, 79, 79, 79, 79, 79, 79,
407
+ 79, 79, 79, 79, 79, 79, 79, 79,
408
+ 79, 79, 79, 79, 79, 79, 79, 79,
409
+ 79, 79, 81, 82, 79, 79, 79, 79,
410
+ 79, 79, 79, 79, 79, 79, 79, 79,
411
+ 79, 79, 79, 79, 79, 79, 79, 79,
412
+ 79, 79, 79, 79, 79, 79, 79, 79,
413
+ 79, 79, 79, 79, 79, 79, 79, 79,
414
+ 79, 79, 79, 79, 79, 79, 79, 79,
415
+ 79, 79, 79, 79, 79, 79, 83, 79,
416
+ 79, 79, 79, 79, 79, 79, 79, 79,
417
+ 79, 79, 79, 79, 79, 79, 79, 79,
418
+ 79, 79, 79, 79, 79, 79, 79, 79,
419
+ 79, 79, 79, 79, 79, 79, 79, 79,
420
+ 79, 79, 1, 1, 1, 1, 1, 1,
421
+ 1, 1, 1, 1, 1, 1, 1, 1,
422
+ 1, 1, 1, 1, 1, 1, 1, 1,
423
+ 1, 1, 1, 1, 1, 1, 1, 1,
424
+ 1, 1, 1, 1, 1, 1, 1, 1,
425
+ 1, 1, 1, 1, 1, 1, 1, 1,
426
+ 1, 1, 1, 1, 1, 1, 1, 1,
427
+ 1, 1, 1, 1, 1, 1, 1, 1,
428
+ 1, 1, 1, 1, 84, 84, 84, 84,
429
+ 84, 84, 84, 84, 84, 84, 84, 84,
430
+ 84, 84, 84, 84, 84, 84, 84, 84,
431
+ 84, 84, 84, 84, 84, 84, 84, 84,
432
+ 84, 84, 85, 86, 86, 86, 86, 86,
433
+ 86, 86, 86, 86, 86, 86, 86, 87,
434
+ 86, 86, 88, 89, 89, 89, 90, 1,
435
+ 91, 1, 79, 1, 1, 1, 1, 1,
436
+ 1, 1, 1, 1, 1, 1, 1, 1,
437
+ 1, 1, 1, 1, 1, 1, 1, 1,
438
+ 1, 79, 1, 79, 79, 79, 79, 79,
439
+ 79, 79, 79, 79, 79, 79, 79, 79,
440
+ 79, 79, 79, 79, 79, 79, 79, 79,
441
+ 79, 79, 79, 79, 79, 79, 79, 79,
442
+ 79, 79, 79, 79, 79, 79, 79, 79,
443
+ 79, 79, 79, 79, 79, 79, 79, 79,
444
+ 79, 79, 79, 79, 79, 79, 79, 79,
445
+ 79, 79, 79, 79, 79, 79, 79, 79,
446
+ 79, 79, 79, 79, 79, 79, 79, 79,
447
+ 79, 79, 79, 79, 79, 79, 79, 79,
448
+ 79, 79, 79, 79, 79, 79, 79, 79,
449
+ 79, 79, 79, 79, 79, 79, 79, 79,
450
+ 79, 79, 79, 79, 79, 79, 79, 79,
451
+ 79, 79, 79, 79, 79, 79, 79, 79,
452
+ 79, 79, 79, 79, 79, 79, 79, 79,
453
+ 79, 79, 79, 79, 79, 79, 79, 79,
454
+ 79, 79, 79, 1, 1, 1, 1, 1,
455
+ 1, 1, 1, 1, 1, 1, 1, 1,
456
+ 1, 1, 1, 1, 1, 1, 1, 1,
457
+ 1, 1, 1, 1, 1, 1, 1, 1,
458
+ 1, 1, 1, 1, 1, 1, 1, 1,
459
+ 1, 1, 1, 1, 1, 1, 1, 1,
460
+ 1, 1, 1, 1, 1, 1, 1, 1,
461
+ 1, 1, 1, 1, 1, 1, 1, 1,
462
+ 1, 1, 1, 1, 1, 84, 84, 84,
463
+ 84, 84, 84, 84, 84, 84, 84, 84,
464
+ 84, 84, 84, 84, 84, 84, 84, 84,
465
+ 84, 84, 84, 84, 84, 84, 84, 84,
466
+ 84, 84, 84, 85, 86, 86, 86, 86,
467
+ 86, 86, 86, 86, 86, 86, 86, 86,
468
+ 87, 86, 86, 88, 89, 89, 89, 90,
469
+ 1, 79, 79, 79, 79, 79, 79, 79,
470
+ 79, 79, 79, 79, 79, 79, 79, 79,
471
+ 79, 79, 79, 79, 79, 79, 79, 79,
472
+ 79, 79, 79, 79, 79, 79, 79, 79,
473
+ 79, 79, 79, 79, 79, 79, 79, 79,
474
+ 79, 79, 79, 79, 79, 79, 79, 79,
475
+ 79, 79, 79, 79, 79, 79, 79, 79,
476
+ 79, 79, 79, 79, 79, 79, 79, 79,
477
+ 79, 1, 84, 84, 84, 84, 84, 84,
478
+ 84, 84, 84, 84, 84, 84, 84, 84,
479
+ 84, 84, 84, 84, 84, 84, 84, 84,
480
+ 84, 84, 84, 84, 84, 84, 84, 84,
481
+ 84, 84, 1, 84, 84, 84, 84, 84,
482
+ 84, 84, 84, 84, 84, 84, 84, 84,
483
+ 84, 84, 84, 84, 84, 84, 84, 84,
484
+ 84, 84, 84, 84, 84, 84, 84, 84,
485
+ 84, 84, 84, 84, 84, 84, 84, 84,
486
+ 84, 84, 84, 84, 84, 84, 84, 84,
487
+ 84, 84, 84, 84, 84, 84, 84, 84,
488
+ 84, 84, 84, 84, 84, 84, 84, 84,
489
+ 84, 84, 84, 1, 84, 84, 84, 84,
490
+ 84, 84, 84, 84, 84, 84, 84, 84,
491
+ 84, 84, 84, 84, 84, 84, 84, 84,
492
+ 84, 84, 84, 84, 84, 84, 84, 84,
493
+ 84, 84, 84, 84, 1, 86, 86, 86,
494
+ 86, 86, 86, 86, 86, 86, 86, 86,
495
+ 86, 86, 86, 86, 86, 86, 86, 86,
496
+ 86, 86, 86, 86, 86, 86, 86, 86,
497
+ 86, 86, 86, 86, 86, 86, 86, 86,
498
+ 86, 86, 86, 86, 86, 86, 86, 86,
499
+ 86, 86, 86, 86, 86, 1, 86, 86,
500
+ 86, 86, 86, 86, 86, 86, 86, 86,
501
+ 86, 86, 86, 86, 86, 86, 86, 86,
502
+ 86, 86, 86, 86, 86, 86, 86, 86,
503
+ 86, 86, 86, 86, 86, 86, 86, 86,
504
+ 86, 86, 86, 86, 86, 86, 86, 86,
505
+ 86, 86, 86, 86, 86, 86, 86, 86,
506
+ 86, 86, 86, 86, 86, 86, 86, 86,
507
+ 86, 86, 86, 86, 86, 86, 1, 86,
508
+ 86, 86, 86, 86, 86, 86, 86, 86,
509
+ 86, 86, 86, 86, 86, 86, 86, 1,
510
+ 16, 1, 1, 1, 92, 1, 1, 1,
511
+ 1, 1, 1, 1, 1, 1, 1, 1,
512
+ 1, 1, 1, 1, 1, 1, 1, 16,
513
+ 16, 17, 16, 16, 16, 16, 16, 93,
514
+ 1, 16, 16, 94, 16, 95, 16, 16,
515
+ 16, 16, 16, 16, 16, 16, 16, 16,
516
+ 16, 1, 1, 1, 16, 1, 16, 95,
517
+ 16, 16, 16, 16, 16, 16, 16, 16,
518
+ 16, 16, 16, 16, 16, 16, 16, 16,
519
+ 16, 16, 16, 16, 16, 16, 16, 16,
520
+ 16, 16, 1, 1, 1, 16, 16, 16,
521
+ 16, 16, 16, 16, 16, 16, 16, 16,
522
+ 16, 16, 16, 16, 16, 16, 16, 16,
523
+ 16, 16, 16, 16, 16, 16, 16, 16,
524
+ 16, 16, 16, 16, 16, 16, 1, 1,
525
+ 1, 1, 1, 1, 1, 1, 1, 1,
526
+ 1, 1, 1, 1, 1, 1, 1, 1,
527
+ 1, 1, 1, 1, 1, 1, 1, 1,
528
+ 1, 1, 1, 1, 1, 1, 1, 1,
529
+ 1, 1, 1, 1, 1, 1, 1, 1,
530
+ 1, 1, 1, 1, 1, 1, 1, 1,
531
+ 1, 1, 1, 1, 1, 1, 1, 1,
532
+ 1, 1, 1, 1, 1, 1, 1, 1,
533
+ 1, 19, 19, 19, 19, 19, 19, 19,
534
+ 19, 19, 19, 19, 19, 19, 19, 19,
535
+ 19, 19, 19, 19, 19, 19, 19, 19,
536
+ 19, 19, 19, 19, 19, 19, 19, 20,
537
+ 21, 21, 21, 21, 21, 21, 21, 21,
538
+ 21, 21, 21, 21, 22, 21, 21, 23,
539
+ 24, 24, 24, 25, 1, 57, 1, 1,
540
+ 1, 96, 1, 1, 1, 1, 1, 1,
541
+ 1, 1, 1, 1, 1, 1, 1, 1,
542
+ 1, 1, 1, 1, 57, 57, 58, 57,
543
+ 57, 57, 57, 57, 97, 1, 57, 57,
544
+ 98, 57, 99, 57, 57, 57, 57, 57,
545
+ 57, 57, 57, 57, 57, 57, 1, 1,
546
+ 1, 57, 1, 57, 99, 57, 57, 57,
547
+ 57, 57, 57, 57, 57, 57, 57, 57,
548
+ 57, 57, 57, 57, 57, 57, 57, 57,
549
+ 57, 57, 57, 57, 57, 57, 57, 1,
550
+ 1, 1, 57, 57, 57, 57, 57, 57,
551
+ 57, 57, 57, 57, 57, 57, 57, 57,
552
+ 57, 57, 57, 57, 57, 57, 57, 57,
553
+ 57, 57, 57, 57, 57, 57, 57, 57,
554
+ 57, 57, 57, 1, 1, 1, 1, 1,
555
+ 1, 1, 1, 1, 1, 1, 1, 1,
556
+ 1, 1, 1, 1, 1, 1, 1, 1,
557
+ 1, 1, 1, 1, 1, 1, 1, 1,
558
+ 1, 1, 1, 1, 1, 1, 1, 1,
559
+ 1, 1, 1, 1, 1, 1, 1, 1,
560
+ 1, 1, 1, 1, 1, 1, 1, 1,
561
+ 1, 1, 1, 1, 1, 1, 1, 1,
562
+ 1, 1, 1, 1, 1, 1, 60, 60,
563
+ 60, 60, 60, 60, 60, 60, 60, 60,
564
+ 60, 60, 60, 60, 60, 60, 60, 60,
565
+ 60, 60, 60, 60, 60, 60, 60, 60,
566
+ 60, 60, 60, 60, 61, 62, 62, 62,
567
+ 62, 62, 62, 62, 62, 62, 62, 62,
568
+ 62, 63, 62, 62, 64, 65, 65, 65,
569
+ 66, 1, 14, 1, 1, 1, 15, 1,
570
+ 1, 1, 1, 1, 1, 1, 1, 1,
571
+ 1, 1, 1, 1, 1, 1, 1, 1,
572
+ 1, 14, 16, 17, 16, 16, 16, 16,
573
+ 16, 18, 1, 16, 16, 94, 16, 95,
574
+ 16, 16, 16, 16, 16, 16, 16, 16,
575
+ 16, 16, 16, 1, 1, 1, 16, 1,
576
+ 16, 95, 16, 16, 16, 16, 16, 16,
577
+ 16, 16, 16, 16, 16, 16, 16, 16,
578
+ 16, 16, 16, 16, 16, 16, 16, 16,
579
+ 16, 16, 16, 16, 1, 1, 1, 16,
580
+ 16, 16, 16, 16, 16, 16, 16, 16,
581
+ 16, 16, 16, 16, 16, 16, 16, 16,
582
+ 16, 16, 16, 16, 16, 16, 16, 16,
583
+ 16, 16, 16, 16, 16, 16, 16, 16,
584
+ 1, 1, 1, 1, 1, 1, 1, 1,
585
+ 1, 1, 1, 1, 1, 1, 1, 1,
586
+ 1, 1, 1, 1, 1, 1, 1, 1,
587
+ 1, 1, 1, 1, 1, 1, 1, 1,
588
+ 1, 1, 1, 1, 1, 1, 1, 1,
589
+ 1, 1, 1, 1, 1, 1, 1, 1,
590
+ 1, 1, 1, 1, 1, 1, 1, 1,
591
+ 1, 1, 1, 1, 1, 1, 1, 1,
592
+ 1, 1, 1, 19, 19, 19, 19, 19,
593
+ 19, 19, 19, 19, 19, 19, 19, 19,
594
+ 19, 19, 19, 19, 19, 19, 19, 19,
595
+ 19, 19, 19, 19, 19, 19, 19, 19,
596
+ 19, 20, 21, 21, 21, 21, 21, 21,
597
+ 21, 21, 21, 21, 21, 21, 22, 21,
598
+ 21, 23, 24, 24, 24, 25, 1, 1,
599
+ 0,
600
+ ]
601
+
602
+ class << self
603
+ attr_accessor :_trans_targs
604
+ private :_trans_targs, :_trans_targs=
605
+ end
606
+ self._trans_targs = [
607
+ 2, 0, 3, 42, 7, 22, 44, 23,
608
+ 24, 25, 26, 27, 28, 29, 2, 3,
609
+ 42, 7, 22, 23, 24, 25, 26, 27,
610
+ 28, 29, 4, 6, 8, 9, 42, 11,
611
+ 12, 13, 14, 15, 16, 17, 18, 8,
612
+ 9, 42, 11, 12, 13, 14, 15, 16,
613
+ 17, 18, 10, 19, 20, 21, 19, 2,
614
+ 3, 42, 7, 22, 23, 24, 25, 26,
615
+ 27, 28, 29, 31, 32, 31, 45, 34,
616
+ 35, 36, 37, 38, 39, 40, 41, 31,
617
+ 32, 31, 45, 34, 35, 36, 37, 38,
618
+ 39, 40, 41, 33, 5, 43, 19, 44,
619
+ 5, 43, 19, 44,
620
+ ]
621
+
622
+ class << self
623
+ attr_accessor :_trans_actions
624
+ private :_trans_actions, :_trans_actions=
625
+ end
626
+ self._trans_actions = [
627
+ 1, 0, 1, 1, 1, 2, 1, 1,
628
+ 1, 1, 1, 1, 1, 1, 0, 0,
629
+ 0, 0, 3, 0, 0, 0, 0, 0,
630
+ 0, 0, 0, 0, 4, 4, 5, 4,
631
+ 4, 4, 4, 4, 4, 4, 4, 0,
632
+ 0, 6, 0, 0, 0, 0, 0, 0,
633
+ 0, 0, 0, 1, 1, 0, 0, 7,
634
+ 7, 7, 7, 8, 7, 7, 7, 7,
635
+ 7, 7, 7, 9, 9, 10, 11, 9,
636
+ 9, 9, 9, 9, 9, 9, 9, 0,
637
+ 0, 3, 12, 0, 0, 0, 0, 0,
638
+ 0, 0, 0, 0, 0, 3, 13, 0,
639
+ 7, 8, 14, 7,
640
+ ]
11
641
 
642
+ class << self
643
+ attr_accessor :_eof_actions
644
+ private :_eof_actions, :_eof_actions=
645
+ end
646
+ self._eof_actions = [
647
+ 0, 0, 0, 0, 0, 0, 0, 0,
648
+ 0, 0, 0, 0, 0, 0, 0, 0,
649
+ 0, 0, 0, 0, 0, 0, 0, 0,
650
+ 0, 0, 0, 0, 0, 0, 0, 0,
651
+ 0, 0, 0, 0, 0, 0, 0, 0,
652
+ 0, 0, 13, 14, 13, 0,
653
+ ]
654
+
655
+ class << self
656
+ attr_accessor :start
657
+ end
658
+ self.start = 1
659
+ class << self
660
+ attr_accessor :first_final
661
+ end
662
+ self.first_final = 42
663
+ class << self
664
+ attr_accessor :error
665
+ end
666
+ self.error = 0
667
+
668
+ class << self
669
+ attr_accessor :en_comment_tail
670
+ end
671
+ self.en_comment_tail = 30
672
+ class << self
673
+ attr_accessor :en_main
674
+ end
675
+ self.en_main = 1
676
+
677
+ def self.parse(data)
678
+ data = data.dup.force_encoding(Encoding::ASCII_8BIT) if data.respond_to?(:force_encoding)
679
+
680
+ raise Mail::Field::NilParseError.new(Mail::PhraseList) if data.nil?
681
+
682
+ # Parser state
683
+ phrase_lists = PhraseListsStruct.new([])
12
684
  phrase_s = nil
13
- actions.each_slice(2) do |action_id, p|
14
- action = Mail::Parsers::Ragel::ACTIONS[action_id]
15
- case action
16
685
 
17
- # Phrase
18
- when :phrase_s then phrase_s = p
19
- when :phrase_e
20
- phrase_lists.phrases << s[phrase_s..(p-1)] if phrase_s
21
- phrase_s = nil
686
+ # 5.1 Variables Used by Ragel
687
+ p = 0
688
+ eof = pe = data.length
689
+ stack = []
22
690
 
23
- when :comment_e, :comment_s, :qstr_s, :qstr_e then nil
691
+ begin
692
+ p ||= 0
693
+ pe ||= data.length
694
+ cs = start
695
+ top = 0
696
+ end
24
697
 
25
- else
26
- raise Mail::Field::ParseError.new(Mail::PhraseList, s, "Failed to process unknown action: #{action}")
698
+ begin
699
+ testEof = false
700
+ _slen, _trans, _keys, _inds, _acts, _nacts = nil
701
+ _goto_level = 0
702
+ _resume = 10
703
+ _eof_trans = 15
704
+ _again = 20
705
+ _test_eof = 30
706
+ _out = 40
707
+ while true
708
+ if _goto_level <= 0
709
+ if p == pe
710
+ _goto_level = _test_eof
711
+ next
712
+ end
713
+ if cs == 0
714
+ _goto_level = _out
715
+ next
716
+ end
717
+ end
718
+ if _goto_level <= _resume
719
+ _keys = cs << 1
720
+ _inds = _index_offsets[cs]
721
+ _slen = _key_spans[cs]
722
+ _wide = data[p].ord
723
+ _trans = if (_slen > 0 &&
724
+ _trans_keys[_keys] <= _wide &&
725
+ _wide <= _trans_keys[_keys + 1])
726
+ _indicies[_inds + _wide - _trans_keys[_keys]]
727
+ else
728
+ _indicies[_inds + _slen]
729
+ end
730
+ cs = _trans_targs[_trans]
731
+ if _trans_actions[_trans] != 0
732
+ case _trans_actions[_trans]
733
+ when 1
734
+ begin
735
+ phrase_s = p
736
+ end
737
+ when 13
738
+ begin
739
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
740
+ phrase_s = nil
741
+ end
742
+ when 7
743
+ begin
744
+ end
745
+ when 9
746
+ begin
747
+ end
748
+ when 6
749
+ begin
750
+ end
751
+ when 4
752
+ begin
753
+ end
754
+ when 3
755
+ begin
756
+ begin
757
+ stack[top] = cs
758
+ top += 1
759
+ cs = 30
760
+ _goto_level = _again
761
+ next
762
+ end
763
+ end
764
+ when 12
765
+ begin
766
+ begin
767
+ top -= 1
768
+ cs = stack[top]
769
+ _goto_level = _again
770
+ next
771
+ end
772
+ end
773
+ when 2
774
+ begin
775
+ phrase_s = p
776
+ end
777
+ begin
778
+ begin
779
+ stack[top] = cs
780
+ top += 1
781
+ cs = 30
782
+ _goto_level = _again
783
+ next
784
+ end
785
+ end
786
+ when 14
787
+ begin
788
+ end
789
+ begin
790
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
791
+ phrase_s = nil
792
+ end
793
+ when 8
794
+ begin
795
+ end
796
+ begin
797
+ begin
798
+ stack[top] = cs
799
+ top += 1
800
+ cs = 30
801
+ _goto_level = _again
802
+ next
803
+ end
804
+ end
805
+ when 10
806
+ begin
807
+ end
808
+ begin
809
+ begin
810
+ stack[top] = cs
811
+ top += 1
812
+ cs = 30
813
+ _goto_level = _again
814
+ next
815
+ end
816
+ end
817
+ when 11
818
+ begin
819
+ end
820
+ begin
821
+ begin
822
+ top -= 1
823
+ cs = stack[top]
824
+ _goto_level = _again
825
+ next
826
+ end
827
+ end
828
+ when 5
829
+ begin
830
+ end
831
+ begin
832
+ end
833
+ end
834
+ end
835
+ end
836
+ if _goto_level <= _again
837
+ if cs == 0
838
+ _goto_level = _out
839
+ next
840
+ end
841
+ p += 1
842
+ if p != pe
843
+ _goto_level = _resume
844
+ next
845
+ end
846
+ end
847
+ if _goto_level <= _test_eof
848
+ if p == eof
849
+ case _eof_actions[cs]
850
+ when 13
851
+ begin
852
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
853
+ phrase_s = nil
854
+ end
855
+ when 14
856
+ begin
857
+ end
858
+ begin
859
+ phrase_lists.phrases << chars(data, phrase_s, p - 1) if phrase_s
860
+ phrase_s = nil
861
+ end
862
+ end
863
+ end
864
+ end
865
+ if _goto_level <= _out
866
+ break
867
+ end
27
868
  end
28
869
  end
29
870
 
871
+ if p != eof || cs < 42
872
+ raise Mail::Field::IncompleteParseError.new(Mail::PhraseListsElement, data, p)
873
+ end
874
+
30
875
  phrase_lists
31
876
  end
32
877
  end