@bigbinary/neeto-form-frontend 3.3.2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/app/javascript/src/translations/en.json +3 -3
  2. package/dist/BuildForm.js +2358 -0
  3. package/dist/BuildForm.js.map +1 -0
  4. package/dist/ExternalForm.js +657 -0
  5. package/dist/ExternalForm.js.map +1 -0
  6. package/dist/NeetoFormProvider.js +11 -0
  7. package/dist/NeetoFormProvider.js.map +1 -0
  8. package/dist/Submission.js +2700 -0
  9. package/dist/Submission.js.map +1 -0
  10. package/dist/UrlBuilder.js +297 -0
  11. package/dist/UrlBuilder.js.map +1 -0
  12. package/dist/buildForm-4a5a5251.js +35 -0
  13. package/dist/buildForm-4a5a5251.js.map +1 -0
  14. package/dist/buildForm-77b32f08.js +42 -0
  15. package/dist/buildForm-77b32f08.js.map +1 -0
  16. package/dist/cjs/BuildForm.js +2416 -0
  17. package/dist/cjs/BuildForm.js.map +1 -0
  18. package/dist/cjs/ExternalForm.js +697 -0
  19. package/dist/cjs/ExternalForm.js.map +1 -0
  20. package/dist/cjs/NeetoFormProvider.js +13 -0
  21. package/dist/cjs/NeetoFormProvider.js.map +1 -0
  22. package/dist/cjs/Submission.js +2711 -0
  23. package/dist/cjs/Submission.js.map +1 -0
  24. package/dist/cjs/UrlBuilder.js +308 -0
  25. package/dist/cjs/UrlBuilder.js.map +1 -0
  26. package/dist/cjs/hooks.js +34 -0
  27. package/dist/cjs/hooks.js.map +1 -0
  28. package/dist/cjs/index.js +115 -0
  29. package/dist/cjs/index.js.map +1 -0
  30. package/dist/constants-9310a7c2.js +342 -0
  31. package/dist/constants-9310a7c2.js.map +1 -0
  32. package/dist/constants-f0f38e6f.js +378 -0
  33. package/dist/constants-f0f38e6f.js.map +1 -0
  34. package/dist/hooks.js +20 -0
  35. package/dist/hooks.js.map +1 -0
  36. package/dist/index-2664c3e7.js +39 -0
  37. package/dist/index-2664c3e7.js.map +1 -0
  38. package/dist/index-b6bb805c.js +46 -0
  39. package/dist/index-b6bb805c.js.map +1 -0
  40. package/dist/index.js +94 -9325
  41. package/dist/index.js.map +1 -1
  42. package/dist/main.css +12 -1
  43. package/dist/main.css.map +1 -1
  44. package/dist/no-questions-832318c3.js +487 -0
  45. package/dist/no-questions-832318c3.js.map +1 -0
  46. package/dist/no-questions-995fd77e.js +538 -0
  47. package/dist/no-questions-995fd77e.js.map +1 -0
  48. package/dist/useFormApi-ca36173e.js +492 -0
  49. package/dist/useFormApi-ca36173e.js.map +1 -0
  50. package/dist/useFormApi-d733cb8d.js +467 -0
  51. package/dist/useFormApi-d733cb8d.js.map +1 -0
  52. package/dist/useFormSubmission-866195bb.js +24 -0
  53. package/dist/useFormSubmission-866195bb.js.map +1 -0
  54. package/dist/useFormSubmission-f8866b84.js +22 -0
  55. package/dist/useFormSubmission-f8866b84.js.map +1 -0
  56. package/dist/utils-7000103c.js +2157 -0
  57. package/dist/utils-7000103c.js.map +1 -0
  58. package/dist/utils-a487b8ff.js +2221 -0
  59. package/dist/utils-a487b8ff.js.map +1 -0
  60. package/package.json +19 -7
  61. package/dist/index.cjs.js +0 -9424
  62. package/dist/index.cjs.js.map +0 -1
@@ -0,0 +1,2700 @@
1
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
+ import classnames from 'classnames';
3
+ import { t } from 'i18next';
4
+ import { removeBy, isNotPresent, isPresent } from '@bigbinary/neeto-cist';
5
+ import { dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
6
+ import EditorContent from '@bigbinary/neeto-editor/EditorContent';
7
+ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
8
+ import { PhoneNumber } from '@bigbinary/neeto-molecules/PhoneNumber';
9
+ import Typography from '@bigbinary/neetoui/Typography';
10
+ import { includes, __, isEmpty } from 'ramda';
11
+ import { renderToString } from 'react-dom/server';
12
+ import React__default from 'react';
13
+ import { Q as QUESTION_KIND } from './constants-9310a7c2.js';
14
+ import { l as useSubmission } from './useFormApi-d733cb8d.js';
15
+ import { jsx, jsxs } from 'react/jsx-runtime';
16
+ import '@babel/runtime/helpers/objectWithoutProperties';
17
+ import '@babel/runtime/helpers/toConsumableArray';
18
+ import '@tanstack/react-query';
19
+ import '@bigbinary/neeto-commons-frontend/constants';
20
+ import '@bigbinary/neeto-commons-frontend/react-utils';
21
+ import 'axios';
22
+ import '@babel/runtime/helpers/slicedToArray';
23
+
24
+ var dist = {};
25
+
26
+ var Linkify$1 = {};
27
+
28
+ var defaultComponentDecorator = {};
29
+
30
+ Object.defineProperty(defaultComponentDecorator, "__esModule", {
31
+ value: true
32
+ });
33
+
34
+ var _react$1 = React__default;
35
+
36
+ var React$1 = _interopRequireWildcard$1(_react$1);
37
+
38
+ function _interopRequireWildcard$1(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
39
+
40
+ defaultComponentDecorator.default = function (decoratedHref, decoratedText, key) {
41
+ return React$1.createElement(
42
+ 'a',
43
+ { href: decoratedHref, key: key },
44
+ decoratedText
45
+ );
46
+ };
47
+
48
+ var defaultHrefDecorator = {};
49
+
50
+ Object.defineProperty(defaultHrefDecorator, "__esModule", {
51
+ value: true
52
+ });
53
+
54
+ defaultHrefDecorator.default = function (href) {
55
+ return href;
56
+ };
57
+
58
+ var defaultMatchDecorator = {};
59
+
60
+ var regex$3;
61
+ var hasRequiredRegex$3;
62
+
63
+ function requireRegex$3 () {
64
+ if (hasRequiredRegex$3) return regex$3;
65
+ hasRequiredRegex$3 = 1;
66
+ regex$3=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
67
+ return regex$3;
68
+ }
69
+
70
+ var regex$2;
71
+ var hasRequiredRegex$2;
72
+
73
+ function requireRegex$2 () {
74
+ if (hasRequiredRegex$2) return regex$2;
75
+ hasRequiredRegex$2 = 1;
76
+ regex$2=/[\0-\x1F\x7F-\x9F]/;
77
+ return regex$2;
78
+ }
79
+
80
+ var regex$1;
81
+ var hasRequiredRegex$1;
82
+
83
+ function requireRegex$1 () {
84
+ if (hasRequiredRegex$1) return regex$1;
85
+ hasRequiredRegex$1 = 1;
86
+ regex$1=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
87
+ return regex$1;
88
+ }
89
+
90
+ var regex;
91
+ var hasRequiredRegex;
92
+
93
+ function requireRegex () {
94
+ if (hasRequiredRegex) return regex;
95
+ hasRequiredRegex = 1;
96
+ regex=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;
97
+ return regex;
98
+ }
99
+
100
+ var re;
101
+ var hasRequiredRe;
102
+
103
+ function requireRe () {
104
+ if (hasRequiredRe) return re;
105
+ hasRequiredRe = 1;
106
+
107
+
108
+ re = function (opts) {
109
+ var re = {};
110
+
111
+ // Use direct extract instead of `regenerate` to reduse browserified size
112
+ re.src_Any = requireRegex$3().source;
113
+ re.src_Cc = requireRegex$2().source;
114
+ re.src_Z = requireRegex$1().source;
115
+ re.src_P = requireRegex().source;
116
+
117
+ // \p{\Z\P\Cc\CF} (white spaces + control + format + punctuation)
118
+ re.src_ZPCc = [ re.src_Z, re.src_P, re.src_Cc ].join('|');
119
+
120
+ // \p{\Z\Cc} (white spaces + control)
121
+ re.src_ZCc = [ re.src_Z, re.src_Cc ].join('|');
122
+
123
+ // Experimental. List of chars, completely prohibited in links
124
+ // because can separate it from other part of text
125
+ var text_separators = '[><\uff5c]';
126
+
127
+ // All possible word characters (everything without punctuation, spaces & controls)
128
+ // Defined via punctuation & spaces to save space
129
+ // Should be something like \p{\L\N\S\M} (\w but without `_`)
130
+ re.src_pseudo_letter = '(?:(?!' + text_separators + '|' + re.src_ZPCc + ')' + re.src_Any + ')';
131
+ // The same as abothe but without [0-9]
132
+ // var src_pseudo_letter_non_d = '(?:(?![0-9]|' + src_ZPCc + ')' + src_Any + ')';
133
+
134
+ ////////////////////////////////////////////////////////////////////////////////
135
+
136
+ re.src_ip4 =
137
+
138
+ '(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';
139
+
140
+ // Prohibit any of "@/[]()" in user/pass to avoid wrong domain fetch.
141
+ re.src_auth = '(?:(?:(?!' + re.src_ZCc + '|[@/\\[\\]()]).)+@)?';
142
+
143
+ re.src_port =
144
+
145
+ '(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?';
146
+
147
+ re.src_host_terminator =
148
+
149
+ '(?=$|' + text_separators + '|' + re.src_ZPCc + ')(?!-|_|:\\d|\\.-|\\.(?!$|' + re.src_ZPCc + '))';
150
+
151
+ re.src_path =
152
+
153
+ '(?:' +
154
+ '[/?#]' +
155
+ '(?:' +
156
+ '(?!' + re.src_ZCc + '|' + text_separators + '|[()[\\]{}.,"\'?!\\-]).|' +
157
+ '\\[(?:(?!' + re.src_ZCc + '|\\]).)*\\]|' +
158
+ '\\((?:(?!' + re.src_ZCc + '|[)]).)*\\)|' +
159
+ '\\{(?:(?!' + re.src_ZCc + '|[}]).)*\\}|' +
160
+ '\\"(?:(?!' + re.src_ZCc + '|["]).)+\\"|' +
161
+ "\\'(?:(?!" + re.src_ZCc + "|[']).)+\\'|" +
162
+ "\\'(?=" + re.src_pseudo_letter + '|[-]).|' + // allow `I'm_king` if no pair found
163
+ '\\.{2,4}[a-zA-Z0-9%/]|' + // github has ... in commit range links,
164
+ // google has .... in links (issue #66)
165
+ // Restrict to
166
+ // - english
167
+ // - percent-encoded
168
+ // - parts of file path
169
+ // until more examples found.
170
+ '\\.(?!' + re.src_ZCc + '|[.]).|' +
171
+ (opts && opts['---'] ?
172
+ '\\-(?!--(?:[^-]|$))(?:-*)|' // `---` => long dash, terminate
173
+ :
174
+ '\\-+|'
175
+ ) +
176
+ '\\,(?!' + re.src_ZCc + ').|' + // allow `,,,` in paths
177
+ '\\!(?!' + re.src_ZCc + '|[!]).|' +
178
+ '\\?(?!' + re.src_ZCc + '|[?]).' +
179
+ ')+' +
180
+ '|\\/' +
181
+ ')?';
182
+
183
+ // Allow anything in markdown spec, forbid quote (") at the first position
184
+ // because emails enclosed in quotes are far more common
185
+ re.src_email_name =
186
+
187
+ '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*';
188
+
189
+ re.src_xn =
190
+
191
+ 'xn--[a-z0-9\\-]{1,59}';
192
+
193
+ // More to read about domain names
194
+ // http://serverfault.com/questions/638260/
195
+
196
+ re.src_domain_root =
197
+
198
+ // Allow letters & digits (http://test1)
199
+ '(?:' +
200
+ re.src_xn +
201
+ '|' +
202
+ re.src_pseudo_letter + '{1,63}' +
203
+ ')';
204
+
205
+ re.src_domain =
206
+
207
+ '(?:' +
208
+ re.src_xn +
209
+ '|' +
210
+ '(?:' + re.src_pseudo_letter + ')' +
211
+ '|' +
212
+ '(?:' + re.src_pseudo_letter + '(?:-|' + re.src_pseudo_letter + '){0,61}' + re.src_pseudo_letter + ')' +
213
+ ')';
214
+
215
+ re.src_host =
216
+
217
+ '(?:' +
218
+ // Don't need IP check, because digits are already allowed in normal domain names
219
+ // src_ip4 +
220
+ // '|' +
221
+ '(?:(?:(?:' + re.src_domain + ')\\.)*' + re.src_domain/*_root*/ + ')' +
222
+ ')';
223
+
224
+ re.tpl_host_fuzzy =
225
+
226
+ '(?:' +
227
+ re.src_ip4 +
228
+ '|' +
229
+ '(?:(?:(?:' + re.src_domain + ')\\.)+(?:%TLDS%))' +
230
+ ')';
231
+
232
+ re.tpl_host_no_ip_fuzzy =
233
+
234
+ '(?:(?:(?:' + re.src_domain + ')\\.)+(?:%TLDS%))';
235
+
236
+ re.src_host_strict =
237
+
238
+ re.src_host + re.src_host_terminator;
239
+
240
+ re.tpl_host_fuzzy_strict =
241
+
242
+ re.tpl_host_fuzzy + re.src_host_terminator;
243
+
244
+ re.src_host_port_strict =
245
+
246
+ re.src_host + re.src_port + re.src_host_terminator;
247
+
248
+ re.tpl_host_port_fuzzy_strict =
249
+
250
+ re.tpl_host_fuzzy + re.src_port + re.src_host_terminator;
251
+
252
+ re.tpl_host_port_no_ip_fuzzy_strict =
253
+
254
+ re.tpl_host_no_ip_fuzzy + re.src_port + re.src_host_terminator;
255
+
256
+
257
+ ////////////////////////////////////////////////////////////////////////////////
258
+ // Main rules
259
+
260
+ // Rude test fuzzy links by host, for quick deny
261
+ re.tpl_host_fuzzy_test =
262
+
263
+ 'localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:' + re.src_ZPCc + '|>|$))';
264
+
265
+ re.tpl_email_fuzzy =
266
+
267
+ '(^|' + text_separators + '|"|\\(|' + re.src_ZCc + ')' +
268
+ '(' + re.src_email_name + '@' + re.tpl_host_fuzzy_strict + ')';
269
+
270
+ re.tpl_link_fuzzy =
271
+ // Fuzzy link can't be prepended with .:/\- and non punctuation.
272
+ // but can start with > (markdown blockquote)
273
+ '(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|' + re.src_ZPCc + '))' +
274
+ '((?![$+<=>^`|\uff5c])' + re.tpl_host_port_fuzzy_strict + re.src_path + ')';
275
+
276
+ re.tpl_link_no_ip_fuzzy =
277
+ // Fuzzy link can't be prepended with .:/\- and non punctuation.
278
+ // but can start with > (markdown blockquote)
279
+ '(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|' + re.src_ZPCc + '))' +
280
+ '((?![$+<=>^`|\uff5c])' + re.tpl_host_port_no_ip_fuzzy_strict + re.src_path + ')';
281
+
282
+ return re;
283
+ };
284
+ return re;
285
+ }
286
+
287
+ ////////////////////////////////////////////////////////////////////////////////
288
+ // Helpers
289
+
290
+ // Merge objects
291
+ //
292
+ function assign(obj /*from1, from2, from3, ...*/) {
293
+ var sources = Array.prototype.slice.call(arguments, 1);
294
+
295
+ sources.forEach(function (source) {
296
+ if (!source) { return; }
297
+
298
+ Object.keys(source).forEach(function (key) {
299
+ obj[key] = source[key];
300
+ });
301
+ });
302
+
303
+ return obj;
304
+ }
305
+
306
+ function _class(obj) { return Object.prototype.toString.call(obj); }
307
+ function isString(obj) { return _class(obj) === '[object String]'; }
308
+ function isObject(obj) { return _class(obj) === '[object Object]'; }
309
+ function isRegExp(obj) { return _class(obj) === '[object RegExp]'; }
310
+ function isFunction(obj) { return _class(obj) === '[object Function]'; }
311
+
312
+
313
+ function escapeRE(str) { return str.replace(/[.?*+^$[\]\\(){}|-]/g, '\\$&'); }
314
+
315
+ ////////////////////////////////////////////////////////////////////////////////
316
+
317
+
318
+ var defaultOptions = {
319
+ fuzzyLink: true,
320
+ fuzzyEmail: true,
321
+ fuzzyIP: false
322
+ };
323
+
324
+
325
+ function isOptionsObj(obj) {
326
+ return Object.keys(obj || {}).reduce(function (acc, k) {
327
+ return acc || defaultOptions.hasOwnProperty(k);
328
+ }, false);
329
+ }
330
+
331
+
332
+ var defaultSchemas = {
333
+ 'http:': {
334
+ validate: function (text, pos, self) {
335
+ var tail = text.slice(pos);
336
+
337
+ if (!self.re.http) {
338
+ // compile lazily, because "host"-containing variables can change on tlds update.
339
+ self.re.http = new RegExp(
340
+ '^\\/\\/' + self.re.src_auth + self.re.src_host_port_strict + self.re.src_path, 'i'
341
+ );
342
+ }
343
+ if (self.re.http.test(tail)) {
344
+ return tail.match(self.re.http)[0].length;
345
+ }
346
+ return 0;
347
+ }
348
+ },
349
+ 'https:': 'http:',
350
+ 'ftp:': 'http:',
351
+ '//': {
352
+ validate: function (text, pos, self) {
353
+ var tail = text.slice(pos);
354
+
355
+ if (!self.re.no_http) {
356
+ // compile lazily, because "host"-containing variables can change on tlds update.
357
+ self.re.no_http = new RegExp(
358
+ '^' +
359
+ self.re.src_auth +
360
+ // Don't allow single-level domains, because of false positives like '//test'
361
+ // with code comments
362
+ '(?:localhost|(?:(?:' + self.re.src_domain + ')\\.)+' + self.re.src_domain_root + ')' +
363
+ self.re.src_port +
364
+ self.re.src_host_terminator +
365
+ self.re.src_path,
366
+
367
+ 'i'
368
+ );
369
+ }
370
+
371
+ if (self.re.no_http.test(tail)) {
372
+ // should not be `://` & `///`, that protects from errors in protocol name
373
+ if (pos >= 3 && text[pos - 3] === ':') { return 0; }
374
+ if (pos >= 3 && text[pos - 3] === '/') { return 0; }
375
+ return tail.match(self.re.no_http)[0].length;
376
+ }
377
+ return 0;
378
+ }
379
+ },
380
+ 'mailto:': {
381
+ validate: function (text, pos, self) {
382
+ var tail = text.slice(pos);
383
+
384
+ if (!self.re.mailto) {
385
+ self.re.mailto = new RegExp(
386
+ '^' + self.re.src_email_name + '@' + self.re.src_host_strict, 'i'
387
+ );
388
+ }
389
+ if (self.re.mailto.test(tail)) {
390
+ return tail.match(self.re.mailto)[0].length;
391
+ }
392
+ return 0;
393
+ }
394
+ }
395
+ };
396
+
397
+ /*eslint-disable max-len*/
398
+
399
+ // RE pattern for 2-character tlds (autogenerated by ./support/tlds_2char_gen.js)
400
+ var tlds_2ch_src_re = 'a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]';
401
+
402
+ // DON'T try to make PRs with changes. Extend TLDs with LinkifyIt.tlds() instead
403
+ var tlds_default = 'biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф'.split('|');
404
+
405
+ /*eslint-enable max-len*/
406
+
407
+ ////////////////////////////////////////////////////////////////////////////////
408
+
409
+ function resetScanCache(self) {
410
+ self.__index__ = -1;
411
+ self.__text_cache__ = '';
412
+ }
413
+
414
+ function createValidator(re) {
415
+ return function (text, pos) {
416
+ var tail = text.slice(pos);
417
+
418
+ if (re.test(tail)) {
419
+ return tail.match(re)[0].length;
420
+ }
421
+ return 0;
422
+ };
423
+ }
424
+
425
+ function createNormalizer() {
426
+ return function (match, self) {
427
+ self.normalize(match);
428
+ };
429
+ }
430
+
431
+ // Schemas compiler. Build regexps.
432
+ //
433
+ function compile(self) {
434
+
435
+ // Load & clone RE patterns.
436
+ var re = self.re = requireRe()(self.__opts__);
437
+
438
+ // Define dynamic patterns
439
+ var tlds = self.__tlds__.slice();
440
+
441
+ self.onCompile();
442
+
443
+ if (!self.__tlds_replaced__) {
444
+ tlds.push(tlds_2ch_src_re);
445
+ }
446
+ tlds.push(re.src_xn);
447
+
448
+ re.src_tlds = tlds.join('|');
449
+
450
+ function untpl(tpl) { return tpl.replace('%TLDS%', re.src_tlds); }
451
+
452
+ re.email_fuzzy = RegExp(untpl(re.tpl_email_fuzzy), 'i');
453
+ re.link_fuzzy = RegExp(untpl(re.tpl_link_fuzzy), 'i');
454
+ re.link_no_ip_fuzzy = RegExp(untpl(re.tpl_link_no_ip_fuzzy), 'i');
455
+ re.host_fuzzy_test = RegExp(untpl(re.tpl_host_fuzzy_test), 'i');
456
+
457
+ //
458
+ // Compile each schema
459
+ //
460
+
461
+ var aliases = [];
462
+
463
+ self.__compiled__ = {}; // Reset compiled data
464
+
465
+ function schemaError(name, val) {
466
+ throw new Error('(LinkifyIt) Invalid schema "' + name + '": ' + val);
467
+ }
468
+
469
+ Object.keys(self.__schemas__).forEach(function (name) {
470
+ var val = self.__schemas__[name];
471
+
472
+ // skip disabled methods
473
+ if (val === null) { return; }
474
+
475
+ var compiled = { validate: null, link: null };
476
+
477
+ self.__compiled__[name] = compiled;
478
+
479
+ if (isObject(val)) {
480
+ if (isRegExp(val.validate)) {
481
+ compiled.validate = createValidator(val.validate);
482
+ } else if (isFunction(val.validate)) {
483
+ compiled.validate = val.validate;
484
+ } else {
485
+ schemaError(name, val);
486
+ }
487
+
488
+ if (isFunction(val.normalize)) {
489
+ compiled.normalize = val.normalize;
490
+ } else if (!val.normalize) {
491
+ compiled.normalize = createNormalizer();
492
+ } else {
493
+ schemaError(name, val);
494
+ }
495
+
496
+ return;
497
+ }
498
+
499
+ if (isString(val)) {
500
+ aliases.push(name);
501
+ return;
502
+ }
503
+
504
+ schemaError(name, val);
505
+ });
506
+
507
+ //
508
+ // Compile postponed aliases
509
+ //
510
+
511
+ aliases.forEach(function (alias) {
512
+ if (!self.__compiled__[self.__schemas__[alias]]) {
513
+ // Silently fail on missed schemas to avoid errons on disable.
514
+ // schemaError(alias, self.__schemas__[alias]);
515
+ return;
516
+ }
517
+
518
+ self.__compiled__[alias].validate =
519
+ self.__compiled__[self.__schemas__[alias]].validate;
520
+ self.__compiled__[alias].normalize =
521
+ self.__compiled__[self.__schemas__[alias]].normalize;
522
+ });
523
+
524
+ //
525
+ // Fake record for guessed links
526
+ //
527
+ self.__compiled__[''] = { validate: null, normalize: createNormalizer() };
528
+
529
+ //
530
+ // Build schema condition
531
+ //
532
+ var slist = Object.keys(self.__compiled__)
533
+ .filter(function (name) {
534
+ // Filter disabled & fake schemas
535
+ return name.length > 0 && self.__compiled__[name];
536
+ })
537
+ .map(escapeRE)
538
+ .join('|');
539
+ // (?!_) cause 1.5x slowdown
540
+ self.re.schema_test = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'i');
541
+ self.re.schema_search = RegExp('(^|(?!_)(?:[><\uff5c]|' + re.src_ZPCc + '))(' + slist + ')', 'ig');
542
+
543
+ self.re.pretest = RegExp(
544
+ '(' + self.re.schema_test.source + ')|(' + self.re.host_fuzzy_test.source + ')|@',
545
+ 'i'
546
+ );
547
+
548
+ //
549
+ // Cleanup
550
+ //
551
+
552
+ resetScanCache(self);
553
+ }
554
+
555
+ /**
556
+ * class Match
557
+ *
558
+ * Match result. Single element of array, returned by [[LinkifyIt#match]]
559
+ **/
560
+ function Match(self, shift) {
561
+ var start = self.__index__,
562
+ end = self.__last_index__,
563
+ text = self.__text_cache__.slice(start, end);
564
+
565
+ /**
566
+ * Match#schema -> String
567
+ *
568
+ * Prefix (protocol) for matched string.
569
+ **/
570
+ this.schema = self.__schema__.toLowerCase();
571
+ /**
572
+ * Match#index -> Number
573
+ *
574
+ * First position of matched string.
575
+ **/
576
+ this.index = start + shift;
577
+ /**
578
+ * Match#lastIndex -> Number
579
+ *
580
+ * Next position after matched string.
581
+ **/
582
+ this.lastIndex = end + shift;
583
+ /**
584
+ * Match#raw -> String
585
+ *
586
+ * Matched string.
587
+ **/
588
+ this.raw = text;
589
+ /**
590
+ * Match#text -> String
591
+ *
592
+ * Notmalized text of matched string.
593
+ **/
594
+ this.text = text;
595
+ /**
596
+ * Match#url -> String
597
+ *
598
+ * Normalized url of matched string.
599
+ **/
600
+ this.url = text;
601
+ }
602
+
603
+ function createMatch(self, shift) {
604
+ var match = new Match(self, shift);
605
+
606
+ self.__compiled__[match.schema].normalize(match, self);
607
+
608
+ return match;
609
+ }
610
+
611
+
612
+ /**
613
+ * class LinkifyIt
614
+ **/
615
+
616
+ /**
617
+ * new LinkifyIt(schemas, options)
618
+ * - schemas (Object): Optional. Additional schemas to validate (prefix/validator)
619
+ * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
620
+ *
621
+ * Creates new linkifier instance with optional additional schemas.
622
+ * Can be called without `new` keyword for convenience.
623
+ *
624
+ * By default understands:
625
+ *
626
+ * - `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
627
+ * - "fuzzy" links and emails (example.com, foo@bar.com).
628
+ *
629
+ * `schemas` is an object, where each key/value describes protocol/rule:
630
+ *
631
+ * - __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
632
+ * for example). `linkify-it` makes shure that prefix is not preceeded with
633
+ * alphanumeric char and symbols. Only whitespaces and punctuation allowed.
634
+ * - __value__ - rule to check tail after link prefix
635
+ * - _String_ - just alias to existing rule
636
+ * - _Object_
637
+ * - _validate_ - validator function (should return matched length on success),
638
+ * or `RegExp`.
639
+ * - _normalize_ - optional function to normalize text & url of matched result
640
+ * (for example, for @twitter mentions).
641
+ *
642
+ * `options`:
643
+ *
644
+ * - __fuzzyLink__ - recognige URL-s without `http(s):` prefix. Default `true`.
645
+ * - __fuzzyIP__ - allow IPs in fuzzy links above. Can conflict with some texts
646
+ * like version numbers. Default `false`.
647
+ * - __fuzzyEmail__ - recognize emails without `mailto:` prefix.
648
+ *
649
+ **/
650
+ function LinkifyIt(schemas, options) {
651
+ if (!(this instanceof LinkifyIt)) {
652
+ return new LinkifyIt(schemas, options);
653
+ }
654
+
655
+ if (!options) {
656
+ if (isOptionsObj(schemas)) {
657
+ options = schemas;
658
+ schemas = {};
659
+ }
660
+ }
661
+
662
+ this.__opts__ = assign({}, defaultOptions, options);
663
+
664
+ // Cache last tested result. Used to skip repeating steps on next `match` call.
665
+ this.__index__ = -1;
666
+ this.__last_index__ = -1; // Next scan position
667
+ this.__schema__ = '';
668
+ this.__text_cache__ = '';
669
+
670
+ this.__schemas__ = assign({}, defaultSchemas, schemas);
671
+ this.__compiled__ = {};
672
+
673
+ this.__tlds__ = tlds_default;
674
+ this.__tlds_replaced__ = false;
675
+
676
+ this.re = {};
677
+
678
+ compile(this);
679
+ }
680
+
681
+
682
+ /** chainable
683
+ * LinkifyIt#add(schema, definition)
684
+ * - schema (String): rule name (fixed pattern prefix)
685
+ * - definition (String|RegExp|Object): schema definition
686
+ *
687
+ * Add new rule definition. See constructor description for details.
688
+ **/
689
+ LinkifyIt.prototype.add = function add(schema, definition) {
690
+ this.__schemas__[schema] = definition;
691
+ compile(this);
692
+ return this;
693
+ };
694
+
695
+
696
+ /** chainable
697
+ * LinkifyIt#set(options)
698
+ * - options (Object): { fuzzyLink|fuzzyEmail|fuzzyIP: true|false }
699
+ *
700
+ * Set recognition options for links without schema.
701
+ **/
702
+ LinkifyIt.prototype.set = function set(options) {
703
+ this.__opts__ = assign(this.__opts__, options);
704
+ return this;
705
+ };
706
+
707
+
708
+ /**
709
+ * LinkifyIt#test(text) -> Boolean
710
+ *
711
+ * Searches linkifiable pattern and returns `true` on success or `false` on fail.
712
+ **/
713
+ LinkifyIt.prototype.test = function test(text) {
714
+ // Reset scan cache
715
+ this.__text_cache__ = text;
716
+ this.__index__ = -1;
717
+
718
+ if (!text.length) { return false; }
719
+
720
+ var m, ml, me, len, shift, next, re, tld_pos, at_pos;
721
+
722
+ // try to scan for link with schema - that's the most simple rule
723
+ if (this.re.schema_test.test(text)) {
724
+ re = this.re.schema_search;
725
+ re.lastIndex = 0;
726
+ while ((m = re.exec(text)) !== null) {
727
+ len = this.testSchemaAt(text, m[2], re.lastIndex);
728
+ if (len) {
729
+ this.__schema__ = m[2];
730
+ this.__index__ = m.index + m[1].length;
731
+ this.__last_index__ = m.index + m[0].length + len;
732
+ break;
733
+ }
734
+ }
735
+ }
736
+
737
+ if (this.__opts__.fuzzyLink && this.__compiled__['http:']) {
738
+ // guess schemaless links
739
+ tld_pos = text.search(this.re.host_fuzzy_test);
740
+ if (tld_pos >= 0) {
741
+ // if tld is located after found link - no need to check fuzzy pattern
742
+ if (this.__index__ < 0 || tld_pos < this.__index__) {
743
+ if ((ml = text.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {
744
+
745
+ shift = ml.index + ml[1].length;
746
+
747
+ if (this.__index__ < 0 || shift < this.__index__) {
748
+ this.__schema__ = '';
749
+ this.__index__ = shift;
750
+ this.__last_index__ = ml.index + ml[0].length;
751
+ }
752
+ }
753
+ }
754
+ }
755
+ }
756
+
757
+ if (this.__opts__.fuzzyEmail && this.__compiled__['mailto:']) {
758
+ // guess schemaless emails
759
+ at_pos = text.indexOf('@');
760
+ if (at_pos >= 0) {
761
+ // We can't skip this check, because this cases are possible:
762
+ // 192.168.1.1@gmail.com, my.in@example.com
763
+ if ((me = text.match(this.re.email_fuzzy)) !== null) {
764
+
765
+ shift = me.index + me[1].length;
766
+ next = me.index + me[0].length;
767
+
768
+ if (this.__index__ < 0 || shift < this.__index__ ||
769
+ (shift === this.__index__ && next > this.__last_index__)) {
770
+ this.__schema__ = 'mailto:';
771
+ this.__index__ = shift;
772
+ this.__last_index__ = next;
773
+ }
774
+ }
775
+ }
776
+ }
777
+
778
+ return this.__index__ >= 0;
779
+ };
780
+
781
+
782
+ /**
783
+ * LinkifyIt#pretest(text) -> Boolean
784
+ *
785
+ * Very quick check, that can give false positives. Returns true if link MAY BE
786
+ * can exists. Can be used for speed optimization, when you need to check that
787
+ * link NOT exists.
788
+ **/
789
+ LinkifyIt.prototype.pretest = function pretest(text) {
790
+ return this.re.pretest.test(text);
791
+ };
792
+
793
+
794
+ /**
795
+ * LinkifyIt#testSchemaAt(text, name, position) -> Number
796
+ * - text (String): text to scan
797
+ * - name (String): rule (schema) name
798
+ * - position (Number): text offset to check from
799
+ *
800
+ * Similar to [[LinkifyIt#test]] but checks only specific protocol tail exactly
801
+ * at given position. Returns length of found pattern (0 on fail).
802
+ **/
803
+ LinkifyIt.prototype.testSchemaAt = function testSchemaAt(text, schema, pos) {
804
+ // If not supported schema check requested - terminate
805
+ if (!this.__compiled__[schema.toLowerCase()]) {
806
+ return 0;
807
+ }
808
+ return this.__compiled__[schema.toLowerCase()].validate(text, pos, this);
809
+ };
810
+
811
+
812
+ /**
813
+ * LinkifyIt#match(text) -> Array|null
814
+ *
815
+ * Returns array of found link descriptions or `null` on fail. We strongly
816
+ * recommend to use [[LinkifyIt#test]] first, for best speed.
817
+ *
818
+ * ##### Result match description
819
+ *
820
+ * - __schema__ - link schema, can be empty for fuzzy links, or `//` for
821
+ * protocol-neutral links.
822
+ * - __index__ - offset of matched text
823
+ * - __lastIndex__ - index of next char after mathch end
824
+ * - __raw__ - matched text
825
+ * - __text__ - normalized text
826
+ * - __url__ - link, generated from matched text
827
+ **/
828
+ LinkifyIt.prototype.match = function match(text) {
829
+ var shift = 0, result = [];
830
+
831
+ // Try to take previous element from cache, if .test() called before
832
+ if (this.__index__ >= 0 && this.__text_cache__ === text) {
833
+ result.push(createMatch(this, shift));
834
+ shift = this.__last_index__;
835
+ }
836
+
837
+ // Cut head if cache was used
838
+ var tail = shift ? text.slice(shift) : text;
839
+
840
+ // Scan string until end reached
841
+ while (this.test(tail)) {
842
+ result.push(createMatch(this, shift));
843
+
844
+ tail = tail.slice(this.__last_index__);
845
+ shift += this.__last_index__;
846
+ }
847
+
848
+ if (result.length) {
849
+ return result;
850
+ }
851
+
852
+ return null;
853
+ };
854
+
855
+
856
+ /** chainable
857
+ * LinkifyIt#tlds(list [, keepOld]) -> this
858
+ * - list (Array): list of tlds
859
+ * - keepOld (Boolean): merge with current list if `true` (`false` by default)
860
+ *
861
+ * Load (or merge) new tlds list. Those are user for fuzzy links (without prefix)
862
+ * to avoid false positives. By default this algorythm used:
863
+ *
864
+ * - hostname with any 2-letter root zones are ok.
865
+ * - biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф
866
+ * are ok.
867
+ * - encoded (`xn--...`) root zones are ok.
868
+ *
869
+ * If list is replaced, then exact match for 2-chars root zones will be checked.
870
+ **/
871
+ LinkifyIt.prototype.tlds = function tlds(list, keepOld) {
872
+ list = Array.isArray(list) ? list : [ list ];
873
+
874
+ if (!keepOld) {
875
+ this.__tlds__ = list.slice();
876
+ this.__tlds_replaced__ = true;
877
+ compile(this);
878
+ return this;
879
+ }
880
+
881
+ this.__tlds__ = this.__tlds__.concat(list)
882
+ .sort()
883
+ .filter(function (el, idx, arr) {
884
+ return el !== arr[idx - 1];
885
+ })
886
+ .reverse();
887
+
888
+ compile(this);
889
+ return this;
890
+ };
891
+
892
+ /**
893
+ * LinkifyIt#normalize(match)
894
+ *
895
+ * Default normalizer (if schema does not define it's own).
896
+ **/
897
+ LinkifyIt.prototype.normalize = function normalize(match) {
898
+
899
+ // Do minimal possible changes by default. Need to collect feedback prior
900
+ // to move forward https://github.com/markdown-it/linkify-it/issues/1
901
+
902
+ if (!match.schema) { match.url = 'http://' + match.url; }
903
+
904
+ if (match.schema === 'mailto:' && !/^mailto:/i.test(match.url)) {
905
+ match.url = 'mailto:' + match.url;
906
+ }
907
+ };
908
+
909
+
910
+ /**
911
+ * LinkifyIt#onCompile()
912
+ *
913
+ * Override to modify basic RegExp-s.
914
+ **/
915
+ LinkifyIt.prototype.onCompile = function onCompile() {
916
+ };
917
+
918
+
919
+ var linkifyIt = LinkifyIt;
920
+
921
+ var require$$1 = [
922
+ "aaa",
923
+ "aarp",
924
+ "abb",
925
+ "abbott",
926
+ "abbvie",
927
+ "abc",
928
+ "able",
929
+ "abogado",
930
+ "abudhabi",
931
+ "ac",
932
+ "academy",
933
+ "accenture",
934
+ "accountant",
935
+ "accountants",
936
+ "aco",
937
+ "actor",
938
+ "ad",
939
+ "ads",
940
+ "adult",
941
+ "ae",
942
+ "aeg",
943
+ "aero",
944
+ "aetna",
945
+ "af",
946
+ "afl",
947
+ "africa",
948
+ "ag",
949
+ "agakhan",
950
+ "agency",
951
+ "ai",
952
+ "aig",
953
+ "airbus",
954
+ "airforce",
955
+ "airtel",
956
+ "akdn",
957
+ "al",
958
+ "alibaba",
959
+ "alipay",
960
+ "allfinanz",
961
+ "allstate",
962
+ "ally",
963
+ "alsace",
964
+ "alstom",
965
+ "am",
966
+ "amazon",
967
+ "americanexpress",
968
+ "americanfamily",
969
+ "amex",
970
+ "amfam",
971
+ "amica",
972
+ "amsterdam",
973
+ "analytics",
974
+ "android",
975
+ "anquan",
976
+ "anz",
977
+ "ao",
978
+ "aol",
979
+ "apartments",
980
+ "app",
981
+ "apple",
982
+ "aq",
983
+ "aquarelle",
984
+ "ar",
985
+ "arab",
986
+ "aramco",
987
+ "archi",
988
+ "army",
989
+ "arpa",
990
+ "art",
991
+ "arte",
992
+ "as",
993
+ "asda",
994
+ "asia",
995
+ "associates",
996
+ "at",
997
+ "athleta",
998
+ "attorney",
999
+ "au",
1000
+ "auction",
1001
+ "audi",
1002
+ "audible",
1003
+ "audio",
1004
+ "auspost",
1005
+ "author",
1006
+ "auto",
1007
+ "autos",
1008
+ "avianca",
1009
+ "aw",
1010
+ "aws",
1011
+ "ax",
1012
+ "axa",
1013
+ "az",
1014
+ "azure",
1015
+ "ba",
1016
+ "baby",
1017
+ "baidu",
1018
+ "banamex",
1019
+ "bananarepublic",
1020
+ "band",
1021
+ "bank",
1022
+ "bar",
1023
+ "barcelona",
1024
+ "barclaycard",
1025
+ "barclays",
1026
+ "barefoot",
1027
+ "bargains",
1028
+ "baseball",
1029
+ "basketball",
1030
+ "bauhaus",
1031
+ "bayern",
1032
+ "bb",
1033
+ "bbc",
1034
+ "bbt",
1035
+ "bbva",
1036
+ "bcg",
1037
+ "bcn",
1038
+ "bd",
1039
+ "be",
1040
+ "beats",
1041
+ "beauty",
1042
+ "beer",
1043
+ "bentley",
1044
+ "berlin",
1045
+ "best",
1046
+ "bestbuy",
1047
+ "bet",
1048
+ "bf",
1049
+ "bg",
1050
+ "bh",
1051
+ "bharti",
1052
+ "bi",
1053
+ "bible",
1054
+ "bid",
1055
+ "bike",
1056
+ "bing",
1057
+ "bingo",
1058
+ "bio",
1059
+ "biz",
1060
+ "bj",
1061
+ "black",
1062
+ "blackfriday",
1063
+ "blockbuster",
1064
+ "blog",
1065
+ "bloomberg",
1066
+ "blue",
1067
+ "bm",
1068
+ "bms",
1069
+ "bmw",
1070
+ "bn",
1071
+ "bnpparibas",
1072
+ "bo",
1073
+ "boats",
1074
+ "boehringer",
1075
+ "bofa",
1076
+ "bom",
1077
+ "bond",
1078
+ "boo",
1079
+ "book",
1080
+ "booking",
1081
+ "bosch",
1082
+ "bostik",
1083
+ "boston",
1084
+ "bot",
1085
+ "boutique",
1086
+ "box",
1087
+ "br",
1088
+ "bradesco",
1089
+ "bridgestone",
1090
+ "broadway",
1091
+ "broker",
1092
+ "brother",
1093
+ "brussels",
1094
+ "bs",
1095
+ "bt",
1096
+ "build",
1097
+ "builders",
1098
+ "business",
1099
+ "buy",
1100
+ "buzz",
1101
+ "bv",
1102
+ "bw",
1103
+ "by",
1104
+ "bz",
1105
+ "bzh",
1106
+ "ca",
1107
+ "cab",
1108
+ "cafe",
1109
+ "cal",
1110
+ "call",
1111
+ "calvinklein",
1112
+ "cam",
1113
+ "camera",
1114
+ "camp",
1115
+ "canon",
1116
+ "capetown",
1117
+ "capital",
1118
+ "capitalone",
1119
+ "car",
1120
+ "caravan",
1121
+ "cards",
1122
+ "care",
1123
+ "career",
1124
+ "careers",
1125
+ "cars",
1126
+ "casa",
1127
+ "case",
1128
+ "cash",
1129
+ "casino",
1130
+ "cat",
1131
+ "catering",
1132
+ "catholic",
1133
+ "cba",
1134
+ "cbn",
1135
+ "cbre",
1136
+ "cc",
1137
+ "cd",
1138
+ "center",
1139
+ "ceo",
1140
+ "cern",
1141
+ "cf",
1142
+ "cfa",
1143
+ "cfd",
1144
+ "cg",
1145
+ "ch",
1146
+ "chanel",
1147
+ "channel",
1148
+ "charity",
1149
+ "chase",
1150
+ "chat",
1151
+ "cheap",
1152
+ "chintai",
1153
+ "christmas",
1154
+ "chrome",
1155
+ "church",
1156
+ "ci",
1157
+ "cipriani",
1158
+ "circle",
1159
+ "cisco",
1160
+ "citadel",
1161
+ "citi",
1162
+ "citic",
1163
+ "city",
1164
+ "ck",
1165
+ "cl",
1166
+ "claims",
1167
+ "cleaning",
1168
+ "click",
1169
+ "clinic",
1170
+ "clinique",
1171
+ "clothing",
1172
+ "cloud",
1173
+ "club",
1174
+ "clubmed",
1175
+ "cm",
1176
+ "cn",
1177
+ "co",
1178
+ "coach",
1179
+ "codes",
1180
+ "coffee",
1181
+ "college",
1182
+ "cologne",
1183
+ "com",
1184
+ "comcast",
1185
+ "commbank",
1186
+ "community",
1187
+ "company",
1188
+ "compare",
1189
+ "computer",
1190
+ "comsec",
1191
+ "condos",
1192
+ "construction",
1193
+ "consulting",
1194
+ "contact",
1195
+ "contractors",
1196
+ "cooking",
1197
+ "cool",
1198
+ "coop",
1199
+ "corsica",
1200
+ "country",
1201
+ "coupon",
1202
+ "coupons",
1203
+ "courses",
1204
+ "cpa",
1205
+ "cr",
1206
+ "credit",
1207
+ "creditcard",
1208
+ "creditunion",
1209
+ "cricket",
1210
+ "crown",
1211
+ "crs",
1212
+ "cruise",
1213
+ "cruises",
1214
+ "cu",
1215
+ "cuisinella",
1216
+ "cv",
1217
+ "cw",
1218
+ "cx",
1219
+ "cy",
1220
+ "cymru",
1221
+ "cyou",
1222
+ "cz",
1223
+ "dabur",
1224
+ "dad",
1225
+ "dance",
1226
+ "data",
1227
+ "date",
1228
+ "dating",
1229
+ "datsun",
1230
+ "day",
1231
+ "dclk",
1232
+ "dds",
1233
+ "de",
1234
+ "deal",
1235
+ "dealer",
1236
+ "deals",
1237
+ "degree",
1238
+ "delivery",
1239
+ "dell",
1240
+ "deloitte",
1241
+ "delta",
1242
+ "democrat",
1243
+ "dental",
1244
+ "dentist",
1245
+ "desi",
1246
+ "design",
1247
+ "dev",
1248
+ "dhl",
1249
+ "diamonds",
1250
+ "diet",
1251
+ "digital",
1252
+ "direct",
1253
+ "directory",
1254
+ "discount",
1255
+ "discover",
1256
+ "dish",
1257
+ "diy",
1258
+ "dj",
1259
+ "dk",
1260
+ "dm",
1261
+ "dnp",
1262
+ "do",
1263
+ "docs",
1264
+ "doctor",
1265
+ "dog",
1266
+ "domains",
1267
+ "dot",
1268
+ "download",
1269
+ "drive",
1270
+ "dtv",
1271
+ "dubai",
1272
+ "dunlop",
1273
+ "dupont",
1274
+ "durban",
1275
+ "dvag",
1276
+ "dvr",
1277
+ "dz",
1278
+ "earth",
1279
+ "eat",
1280
+ "ec",
1281
+ "eco",
1282
+ "edeka",
1283
+ "edu",
1284
+ "education",
1285
+ "ee",
1286
+ "eg",
1287
+ "email",
1288
+ "emerck",
1289
+ "energy",
1290
+ "engineer",
1291
+ "engineering",
1292
+ "enterprises",
1293
+ "epson",
1294
+ "equipment",
1295
+ "er",
1296
+ "ericsson",
1297
+ "erni",
1298
+ "es",
1299
+ "esq",
1300
+ "estate",
1301
+ "et",
1302
+ "etisalat",
1303
+ "eu",
1304
+ "eurovision",
1305
+ "eus",
1306
+ "events",
1307
+ "exchange",
1308
+ "expert",
1309
+ "exposed",
1310
+ "express",
1311
+ "extraspace",
1312
+ "fage",
1313
+ "fail",
1314
+ "fairwinds",
1315
+ "faith",
1316
+ "family",
1317
+ "fan",
1318
+ "fans",
1319
+ "farm",
1320
+ "farmers",
1321
+ "fashion",
1322
+ "fast",
1323
+ "fedex",
1324
+ "feedback",
1325
+ "ferrari",
1326
+ "ferrero",
1327
+ "fi",
1328
+ "fidelity",
1329
+ "fido",
1330
+ "film",
1331
+ "final",
1332
+ "finance",
1333
+ "financial",
1334
+ "fire",
1335
+ "firestone",
1336
+ "firmdale",
1337
+ "fish",
1338
+ "fishing",
1339
+ "fit",
1340
+ "fitness",
1341
+ "fj",
1342
+ "fk",
1343
+ "flickr",
1344
+ "flights",
1345
+ "flir",
1346
+ "florist",
1347
+ "flowers",
1348
+ "fly",
1349
+ "fm",
1350
+ "fo",
1351
+ "foo",
1352
+ "food",
1353
+ "football",
1354
+ "ford",
1355
+ "forex",
1356
+ "forsale",
1357
+ "forum",
1358
+ "foundation",
1359
+ "fox",
1360
+ "fr",
1361
+ "free",
1362
+ "fresenius",
1363
+ "frl",
1364
+ "frogans",
1365
+ "frontier",
1366
+ "ftr",
1367
+ "fujitsu",
1368
+ "fun",
1369
+ "fund",
1370
+ "furniture",
1371
+ "futbol",
1372
+ "fyi",
1373
+ "ga",
1374
+ "gal",
1375
+ "gallery",
1376
+ "gallo",
1377
+ "gallup",
1378
+ "game",
1379
+ "games",
1380
+ "gap",
1381
+ "garden",
1382
+ "gay",
1383
+ "gb",
1384
+ "gbiz",
1385
+ "gd",
1386
+ "gdn",
1387
+ "ge",
1388
+ "gea",
1389
+ "gent",
1390
+ "genting",
1391
+ "george",
1392
+ "gf",
1393
+ "gg",
1394
+ "ggee",
1395
+ "gh",
1396
+ "gi",
1397
+ "gift",
1398
+ "gifts",
1399
+ "gives",
1400
+ "giving",
1401
+ "gl",
1402
+ "glass",
1403
+ "gle",
1404
+ "global",
1405
+ "globo",
1406
+ "gm",
1407
+ "gmail",
1408
+ "gmbh",
1409
+ "gmo",
1410
+ "gmx",
1411
+ "gn",
1412
+ "godaddy",
1413
+ "gold",
1414
+ "goldpoint",
1415
+ "golf",
1416
+ "goo",
1417
+ "goodyear",
1418
+ "goog",
1419
+ "google",
1420
+ "gop",
1421
+ "got",
1422
+ "gov",
1423
+ "gp",
1424
+ "gq",
1425
+ "gr",
1426
+ "grainger",
1427
+ "graphics",
1428
+ "gratis",
1429
+ "green",
1430
+ "gripe",
1431
+ "grocery",
1432
+ "group",
1433
+ "gs",
1434
+ "gt",
1435
+ "gu",
1436
+ "guardian",
1437
+ "gucci",
1438
+ "guge",
1439
+ "guide",
1440
+ "guitars",
1441
+ "guru",
1442
+ "gw",
1443
+ "gy",
1444
+ "hair",
1445
+ "hamburg",
1446
+ "hangout",
1447
+ "haus",
1448
+ "hbo",
1449
+ "hdfc",
1450
+ "hdfcbank",
1451
+ "health",
1452
+ "healthcare",
1453
+ "help",
1454
+ "helsinki",
1455
+ "here",
1456
+ "hermes",
1457
+ "hiphop",
1458
+ "hisamitsu",
1459
+ "hitachi",
1460
+ "hiv",
1461
+ "hk",
1462
+ "hkt",
1463
+ "hm",
1464
+ "hn",
1465
+ "hockey",
1466
+ "holdings",
1467
+ "holiday",
1468
+ "homedepot",
1469
+ "homegoods",
1470
+ "homes",
1471
+ "homesense",
1472
+ "honda",
1473
+ "horse",
1474
+ "hospital",
1475
+ "host",
1476
+ "hosting",
1477
+ "hot",
1478
+ "hotels",
1479
+ "hotmail",
1480
+ "house",
1481
+ "how",
1482
+ "hr",
1483
+ "hsbc",
1484
+ "ht",
1485
+ "hu",
1486
+ "hughes",
1487
+ "hyatt",
1488
+ "hyundai",
1489
+ "ibm",
1490
+ "icbc",
1491
+ "ice",
1492
+ "icu",
1493
+ "id",
1494
+ "ie",
1495
+ "ieee",
1496
+ "ifm",
1497
+ "ikano",
1498
+ "il",
1499
+ "im",
1500
+ "imamat",
1501
+ "imdb",
1502
+ "immo",
1503
+ "immobilien",
1504
+ "in",
1505
+ "inc",
1506
+ "industries",
1507
+ "infiniti",
1508
+ "info",
1509
+ "ing",
1510
+ "ink",
1511
+ "institute",
1512
+ "insurance",
1513
+ "insure",
1514
+ "int",
1515
+ "international",
1516
+ "intuit",
1517
+ "investments",
1518
+ "io",
1519
+ "ipiranga",
1520
+ "iq",
1521
+ "ir",
1522
+ "irish",
1523
+ "is",
1524
+ "ismaili",
1525
+ "ist",
1526
+ "istanbul",
1527
+ "it",
1528
+ "itau",
1529
+ "itv",
1530
+ "jaguar",
1531
+ "java",
1532
+ "jcb",
1533
+ "je",
1534
+ "jeep",
1535
+ "jetzt",
1536
+ "jewelry",
1537
+ "jio",
1538
+ "jll",
1539
+ "jm",
1540
+ "jmp",
1541
+ "jnj",
1542
+ "jo",
1543
+ "jobs",
1544
+ "joburg",
1545
+ "jot",
1546
+ "joy",
1547
+ "jp",
1548
+ "jpmorgan",
1549
+ "jprs",
1550
+ "juegos",
1551
+ "juniper",
1552
+ "kaufen",
1553
+ "kddi",
1554
+ "ke",
1555
+ "kerryhotels",
1556
+ "kerrylogistics",
1557
+ "kerryproperties",
1558
+ "kfh",
1559
+ "kg",
1560
+ "kh",
1561
+ "ki",
1562
+ "kia",
1563
+ "kids",
1564
+ "kim",
1565
+ "kindle",
1566
+ "kitchen",
1567
+ "kiwi",
1568
+ "km",
1569
+ "kn",
1570
+ "koeln",
1571
+ "komatsu",
1572
+ "kosher",
1573
+ "kp",
1574
+ "kpmg",
1575
+ "kpn",
1576
+ "kr",
1577
+ "krd",
1578
+ "kred",
1579
+ "kuokgroup",
1580
+ "kw",
1581
+ "ky",
1582
+ "kyoto",
1583
+ "kz",
1584
+ "la",
1585
+ "lacaixa",
1586
+ "lamborghini",
1587
+ "lamer",
1588
+ "lancaster",
1589
+ "land",
1590
+ "landrover",
1591
+ "lanxess",
1592
+ "lasalle",
1593
+ "lat",
1594
+ "latino",
1595
+ "latrobe",
1596
+ "law",
1597
+ "lawyer",
1598
+ "lb",
1599
+ "lc",
1600
+ "lds",
1601
+ "lease",
1602
+ "leclerc",
1603
+ "lefrak",
1604
+ "legal",
1605
+ "lego",
1606
+ "lexus",
1607
+ "lgbt",
1608
+ "li",
1609
+ "lidl",
1610
+ "life",
1611
+ "lifeinsurance",
1612
+ "lifestyle",
1613
+ "lighting",
1614
+ "like",
1615
+ "lilly",
1616
+ "limited",
1617
+ "limo",
1618
+ "lincoln",
1619
+ "link",
1620
+ "lipsy",
1621
+ "live",
1622
+ "living",
1623
+ "lk",
1624
+ "llc",
1625
+ "llp",
1626
+ "loan",
1627
+ "loans",
1628
+ "locker",
1629
+ "locus",
1630
+ "lol",
1631
+ "london",
1632
+ "lotte",
1633
+ "lotto",
1634
+ "love",
1635
+ "lpl",
1636
+ "lplfinancial",
1637
+ "lr",
1638
+ "ls",
1639
+ "lt",
1640
+ "ltd",
1641
+ "ltda",
1642
+ "lu",
1643
+ "lundbeck",
1644
+ "luxe",
1645
+ "luxury",
1646
+ "lv",
1647
+ "ly",
1648
+ "ma",
1649
+ "madrid",
1650
+ "maif",
1651
+ "maison",
1652
+ "makeup",
1653
+ "man",
1654
+ "management",
1655
+ "mango",
1656
+ "map",
1657
+ "market",
1658
+ "marketing",
1659
+ "markets",
1660
+ "marriott",
1661
+ "marshalls",
1662
+ "mattel",
1663
+ "mba",
1664
+ "mc",
1665
+ "mckinsey",
1666
+ "md",
1667
+ "me",
1668
+ "med",
1669
+ "media",
1670
+ "meet",
1671
+ "melbourne",
1672
+ "meme",
1673
+ "memorial",
1674
+ "men",
1675
+ "menu",
1676
+ "merckmsd",
1677
+ "mg",
1678
+ "mh",
1679
+ "miami",
1680
+ "microsoft",
1681
+ "mil",
1682
+ "mini",
1683
+ "mint",
1684
+ "mit",
1685
+ "mitsubishi",
1686
+ "mk",
1687
+ "ml",
1688
+ "mlb",
1689
+ "mls",
1690
+ "mm",
1691
+ "mma",
1692
+ "mn",
1693
+ "mo",
1694
+ "mobi",
1695
+ "mobile",
1696
+ "moda",
1697
+ "moe",
1698
+ "moi",
1699
+ "mom",
1700
+ "monash",
1701
+ "money",
1702
+ "monster",
1703
+ "mormon",
1704
+ "mortgage",
1705
+ "moscow",
1706
+ "moto",
1707
+ "motorcycles",
1708
+ "mov",
1709
+ "movie",
1710
+ "mp",
1711
+ "mq",
1712
+ "mr",
1713
+ "ms",
1714
+ "msd",
1715
+ "mt",
1716
+ "mtn",
1717
+ "mtr",
1718
+ "mu",
1719
+ "museum",
1720
+ "music",
1721
+ "mv",
1722
+ "mw",
1723
+ "mx",
1724
+ "my",
1725
+ "mz",
1726
+ "na",
1727
+ "nab",
1728
+ "nagoya",
1729
+ "name",
1730
+ "natura",
1731
+ "navy",
1732
+ "nba",
1733
+ "nc",
1734
+ "ne",
1735
+ "nec",
1736
+ "net",
1737
+ "netbank",
1738
+ "netflix",
1739
+ "network",
1740
+ "neustar",
1741
+ "new",
1742
+ "news",
1743
+ "next",
1744
+ "nextdirect",
1745
+ "nexus",
1746
+ "nf",
1747
+ "nfl",
1748
+ "ng",
1749
+ "ngo",
1750
+ "nhk",
1751
+ "ni",
1752
+ "nico",
1753
+ "nike",
1754
+ "nikon",
1755
+ "ninja",
1756
+ "nissan",
1757
+ "nissay",
1758
+ "nl",
1759
+ "no",
1760
+ "nokia",
1761
+ "norton",
1762
+ "now",
1763
+ "nowruz",
1764
+ "nowtv",
1765
+ "np",
1766
+ "nr",
1767
+ "nra",
1768
+ "nrw",
1769
+ "ntt",
1770
+ "nu",
1771
+ "nyc",
1772
+ "nz",
1773
+ "obi",
1774
+ "observer",
1775
+ "office",
1776
+ "okinawa",
1777
+ "olayan",
1778
+ "olayangroup",
1779
+ "oldnavy",
1780
+ "ollo",
1781
+ "om",
1782
+ "omega",
1783
+ "one",
1784
+ "ong",
1785
+ "onl",
1786
+ "online",
1787
+ "ooo",
1788
+ "open",
1789
+ "oracle",
1790
+ "orange",
1791
+ "org",
1792
+ "organic",
1793
+ "origins",
1794
+ "osaka",
1795
+ "otsuka",
1796
+ "ott",
1797
+ "ovh",
1798
+ "pa",
1799
+ "page",
1800
+ "panasonic",
1801
+ "paris",
1802
+ "pars",
1803
+ "partners",
1804
+ "parts",
1805
+ "party",
1806
+ "pay",
1807
+ "pccw",
1808
+ "pe",
1809
+ "pet",
1810
+ "pf",
1811
+ "pfizer",
1812
+ "pg",
1813
+ "ph",
1814
+ "pharmacy",
1815
+ "phd",
1816
+ "philips",
1817
+ "phone",
1818
+ "photo",
1819
+ "photography",
1820
+ "photos",
1821
+ "physio",
1822
+ "pics",
1823
+ "pictet",
1824
+ "pictures",
1825
+ "pid",
1826
+ "pin",
1827
+ "ping",
1828
+ "pink",
1829
+ "pioneer",
1830
+ "pizza",
1831
+ "pk",
1832
+ "pl",
1833
+ "place",
1834
+ "play",
1835
+ "playstation",
1836
+ "plumbing",
1837
+ "plus",
1838
+ "pm",
1839
+ "pn",
1840
+ "pnc",
1841
+ "pohl",
1842
+ "poker",
1843
+ "politie",
1844
+ "porn",
1845
+ "post",
1846
+ "pr",
1847
+ "pramerica",
1848
+ "praxi",
1849
+ "press",
1850
+ "prime",
1851
+ "pro",
1852
+ "prod",
1853
+ "productions",
1854
+ "prof",
1855
+ "progressive",
1856
+ "promo",
1857
+ "properties",
1858
+ "property",
1859
+ "protection",
1860
+ "pru",
1861
+ "prudential",
1862
+ "ps",
1863
+ "pt",
1864
+ "pub",
1865
+ "pw",
1866
+ "pwc",
1867
+ "py",
1868
+ "qa",
1869
+ "qpon",
1870
+ "quebec",
1871
+ "quest",
1872
+ "racing",
1873
+ "radio",
1874
+ "re",
1875
+ "read",
1876
+ "realestate",
1877
+ "realtor",
1878
+ "realty",
1879
+ "recipes",
1880
+ "red",
1881
+ "redstone",
1882
+ "redumbrella",
1883
+ "rehab",
1884
+ "reise",
1885
+ "reisen",
1886
+ "reit",
1887
+ "reliance",
1888
+ "ren",
1889
+ "rent",
1890
+ "rentals",
1891
+ "repair",
1892
+ "report",
1893
+ "republican",
1894
+ "rest",
1895
+ "restaurant",
1896
+ "review",
1897
+ "reviews",
1898
+ "rexroth",
1899
+ "rich",
1900
+ "richardli",
1901
+ "ricoh",
1902
+ "ril",
1903
+ "rio",
1904
+ "rip",
1905
+ "ro",
1906
+ "rocks",
1907
+ "rodeo",
1908
+ "rogers",
1909
+ "room",
1910
+ "rs",
1911
+ "rsvp",
1912
+ "ru",
1913
+ "rugby",
1914
+ "ruhr",
1915
+ "run",
1916
+ "rw",
1917
+ "rwe",
1918
+ "ryukyu",
1919
+ "sa",
1920
+ "saarland",
1921
+ "safe",
1922
+ "safety",
1923
+ "sakura",
1924
+ "sale",
1925
+ "salon",
1926
+ "samsclub",
1927
+ "samsung",
1928
+ "sandvik",
1929
+ "sandvikcoromant",
1930
+ "sanofi",
1931
+ "sap",
1932
+ "sarl",
1933
+ "sas",
1934
+ "save",
1935
+ "saxo",
1936
+ "sb",
1937
+ "sbi",
1938
+ "sbs",
1939
+ "sc",
1940
+ "sca",
1941
+ "scb",
1942
+ "schaeffler",
1943
+ "schmidt",
1944
+ "scholarships",
1945
+ "school",
1946
+ "schule",
1947
+ "schwarz",
1948
+ "science",
1949
+ "scot",
1950
+ "sd",
1951
+ "se",
1952
+ "search",
1953
+ "seat",
1954
+ "secure",
1955
+ "security",
1956
+ "seek",
1957
+ "select",
1958
+ "sener",
1959
+ "services",
1960
+ "seven",
1961
+ "sew",
1962
+ "sex",
1963
+ "sexy",
1964
+ "sfr",
1965
+ "sg",
1966
+ "sh",
1967
+ "shangrila",
1968
+ "sharp",
1969
+ "shaw",
1970
+ "shell",
1971
+ "shia",
1972
+ "shiksha",
1973
+ "shoes",
1974
+ "shop",
1975
+ "shopping",
1976
+ "shouji",
1977
+ "show",
1978
+ "si",
1979
+ "silk",
1980
+ "sina",
1981
+ "singles",
1982
+ "site",
1983
+ "sj",
1984
+ "sk",
1985
+ "ski",
1986
+ "skin",
1987
+ "sky",
1988
+ "skype",
1989
+ "sl",
1990
+ "sling",
1991
+ "sm",
1992
+ "smart",
1993
+ "smile",
1994
+ "sn",
1995
+ "sncf",
1996
+ "so",
1997
+ "soccer",
1998
+ "social",
1999
+ "softbank",
2000
+ "software",
2001
+ "sohu",
2002
+ "solar",
2003
+ "solutions",
2004
+ "song",
2005
+ "sony",
2006
+ "soy",
2007
+ "spa",
2008
+ "space",
2009
+ "sport",
2010
+ "spot",
2011
+ "sr",
2012
+ "srl",
2013
+ "ss",
2014
+ "st",
2015
+ "stada",
2016
+ "staples",
2017
+ "star",
2018
+ "statebank",
2019
+ "statefarm",
2020
+ "stc",
2021
+ "stcgroup",
2022
+ "stockholm",
2023
+ "storage",
2024
+ "store",
2025
+ "stream",
2026
+ "studio",
2027
+ "study",
2028
+ "style",
2029
+ "su",
2030
+ "sucks",
2031
+ "supplies",
2032
+ "supply",
2033
+ "support",
2034
+ "surf",
2035
+ "surgery",
2036
+ "suzuki",
2037
+ "sv",
2038
+ "swatch",
2039
+ "swiss",
2040
+ "sx",
2041
+ "sy",
2042
+ "sydney",
2043
+ "systems",
2044
+ "sz",
2045
+ "tab",
2046
+ "taipei",
2047
+ "talk",
2048
+ "taobao",
2049
+ "target",
2050
+ "tatamotors",
2051
+ "tatar",
2052
+ "tattoo",
2053
+ "tax",
2054
+ "taxi",
2055
+ "tc",
2056
+ "tci",
2057
+ "td",
2058
+ "tdk",
2059
+ "team",
2060
+ "tech",
2061
+ "technology",
2062
+ "tel",
2063
+ "temasek",
2064
+ "tennis",
2065
+ "teva",
2066
+ "tf",
2067
+ "tg",
2068
+ "th",
2069
+ "thd",
2070
+ "theater",
2071
+ "theatre",
2072
+ "tiaa",
2073
+ "tickets",
2074
+ "tienda",
2075
+ "tips",
2076
+ "tires",
2077
+ "tirol",
2078
+ "tj",
2079
+ "tjmaxx",
2080
+ "tjx",
2081
+ "tk",
2082
+ "tkmaxx",
2083
+ "tl",
2084
+ "tm",
2085
+ "tmall",
2086
+ "tn",
2087
+ "to",
2088
+ "today",
2089
+ "tokyo",
2090
+ "tools",
2091
+ "top",
2092
+ "toray",
2093
+ "toshiba",
2094
+ "total",
2095
+ "tours",
2096
+ "town",
2097
+ "toyota",
2098
+ "toys",
2099
+ "tr",
2100
+ "trade",
2101
+ "trading",
2102
+ "training",
2103
+ "travel",
2104
+ "travelers",
2105
+ "travelersinsurance",
2106
+ "trust",
2107
+ "trv",
2108
+ "tt",
2109
+ "tube",
2110
+ "tui",
2111
+ "tunes",
2112
+ "tushu",
2113
+ "tv",
2114
+ "tvs",
2115
+ "tw",
2116
+ "tz",
2117
+ "ua",
2118
+ "ubank",
2119
+ "ubs",
2120
+ "ug",
2121
+ "uk",
2122
+ "unicom",
2123
+ "university",
2124
+ "uno",
2125
+ "uol",
2126
+ "ups",
2127
+ "us",
2128
+ "uy",
2129
+ "uz",
2130
+ "va",
2131
+ "vacations",
2132
+ "vana",
2133
+ "vanguard",
2134
+ "vc",
2135
+ "ve",
2136
+ "vegas",
2137
+ "ventures",
2138
+ "verisign",
2139
+ "vermögensberater",
2140
+ "vermögensberatung",
2141
+ "versicherung",
2142
+ "vet",
2143
+ "vg",
2144
+ "vi",
2145
+ "viajes",
2146
+ "video",
2147
+ "vig",
2148
+ "viking",
2149
+ "villas",
2150
+ "vin",
2151
+ "vip",
2152
+ "virgin",
2153
+ "visa",
2154
+ "vision",
2155
+ "viva",
2156
+ "vivo",
2157
+ "vlaanderen",
2158
+ "vn",
2159
+ "vodka",
2160
+ "volkswagen",
2161
+ "volvo",
2162
+ "vote",
2163
+ "voting",
2164
+ "voto",
2165
+ "voyage",
2166
+ "vu",
2167
+ "wales",
2168
+ "walmart",
2169
+ "walter",
2170
+ "wang",
2171
+ "wanggou",
2172
+ "watch",
2173
+ "watches",
2174
+ "weather",
2175
+ "weatherchannel",
2176
+ "webcam",
2177
+ "weber",
2178
+ "website",
2179
+ "wed",
2180
+ "wedding",
2181
+ "weibo",
2182
+ "weir",
2183
+ "wf",
2184
+ "whoswho",
2185
+ "wien",
2186
+ "wiki",
2187
+ "williamhill",
2188
+ "win",
2189
+ "windows",
2190
+ "wine",
2191
+ "winners",
2192
+ "wme",
2193
+ "wolterskluwer",
2194
+ "woodside",
2195
+ "work",
2196
+ "works",
2197
+ "world",
2198
+ "wow",
2199
+ "ws",
2200
+ "wtc",
2201
+ "wtf",
2202
+ "xbox",
2203
+ "xerox",
2204
+ "xfinity",
2205
+ "xihuan",
2206
+ "xin",
2207
+ "xxx",
2208
+ "xyz",
2209
+ "yachts",
2210
+ "yahoo",
2211
+ "yamaxun",
2212
+ "yandex",
2213
+ "ye",
2214
+ "yodobashi",
2215
+ "yoga",
2216
+ "yokohama",
2217
+ "you",
2218
+ "youtube",
2219
+ "yt",
2220
+ "yun",
2221
+ "za",
2222
+ "zappos",
2223
+ "zara",
2224
+ "zero",
2225
+ "zip",
2226
+ "zm",
2227
+ "zone",
2228
+ "zuerich",
2229
+ "zw",
2230
+ "ελ",
2231
+ "ευ",
2232
+ "бг",
2233
+ "бел",
2234
+ "дети",
2235
+ "ею",
2236
+ "католик",
2237
+ "ком",
2238
+ "мкд",
2239
+ "мон",
2240
+ "москва",
2241
+ "онлайн",
2242
+ "орг",
2243
+ "рус",
2244
+ "рф",
2245
+ "сайт",
2246
+ "срб",
2247
+ "укр",
2248
+ "қаз",
2249
+ "հայ",
2250
+ "ישראל",
2251
+ "קום",
2252
+ "ابوظبي",
2253
+ "اتصالات",
2254
+ "ارامكو",
2255
+ "الاردن",
2256
+ "البحرين",
2257
+ "الجزائر",
2258
+ "السعودية",
2259
+ "العليان",
2260
+ "المغرب",
2261
+ "امارات",
2262
+ "ایران",
2263
+ "بارت",
2264
+ "بازار",
2265
+ "بيتك",
2266
+ "بھارت",
2267
+ "تونس",
2268
+ "سودان",
2269
+ "سورية",
2270
+ "شبكة",
2271
+ "عراق",
2272
+ "عرب",
2273
+ "عمان",
2274
+ "فلسطين",
2275
+ "قطر",
2276
+ "كاثوليك",
2277
+ "كوم",
2278
+ "مصر",
2279
+ "مليسيا",
2280
+ "موريتانيا",
2281
+ "موقع",
2282
+ "همراه",
2283
+ "پاکستان",
2284
+ "ڀارت",
2285
+ "कॉम",
2286
+ "नेट",
2287
+ "भारत",
2288
+ "भारतम्",
2289
+ "भारोत",
2290
+ "संगठन",
2291
+ "বাংলা",
2292
+ "ভারত",
2293
+ "ভাৰত",
2294
+ "ਭਾਰਤ",
2295
+ "ભારત",
2296
+ "ଭାରତ",
2297
+ "இந்தியா",
2298
+ "இலங்கை",
2299
+ "சிங்கப்பூர்",
2300
+ "భారత్",
2301
+ "ಭಾರತ",
2302
+ "ഭാരതം",
2303
+ "ලංකා",
2304
+ "คอม",
2305
+ "ไทย",
2306
+ "ລາວ",
2307
+ "გე",
2308
+ "みんな",
2309
+ "アマゾン",
2310
+ "クラウド",
2311
+ "グーグル",
2312
+ "コム",
2313
+ "ストア",
2314
+ "セール",
2315
+ "ファッション",
2316
+ "ポイント",
2317
+ "世界",
2318
+ "中信",
2319
+ "中国",
2320
+ "中國",
2321
+ "中文网",
2322
+ "亚马逊",
2323
+ "企业",
2324
+ "佛山",
2325
+ "信息",
2326
+ "健康",
2327
+ "八卦",
2328
+ "公司",
2329
+ "公益",
2330
+ "台湾",
2331
+ "台灣",
2332
+ "商城",
2333
+ "商店",
2334
+ "商标",
2335
+ "嘉里",
2336
+ "嘉里大酒店",
2337
+ "在线",
2338
+ "大拿",
2339
+ "天主教",
2340
+ "娱乐",
2341
+ "家電",
2342
+ "广东",
2343
+ "微博",
2344
+ "慈善",
2345
+ "我爱你",
2346
+ "手机",
2347
+ "招聘",
2348
+ "政务",
2349
+ "政府",
2350
+ "新加坡",
2351
+ "新闻",
2352
+ "时尚",
2353
+ "書籍",
2354
+ "机构",
2355
+ "淡马锡",
2356
+ "游戏",
2357
+ "澳門",
2358
+ "点看",
2359
+ "移动",
2360
+ "组织机构",
2361
+ "网址",
2362
+ "网店",
2363
+ "网站",
2364
+ "网络",
2365
+ "联通",
2366
+ "谷歌",
2367
+ "购物",
2368
+ "通販",
2369
+ "集团",
2370
+ "電訊盈科",
2371
+ "飞利浦",
2372
+ "食品",
2373
+ "餐厅",
2374
+ "香格里拉",
2375
+ "香港",
2376
+ "닷넷",
2377
+ "닷컴",
2378
+ "삼성",
2379
+ "한국"
2380
+ ];
2381
+
2382
+ Object.defineProperty(defaultMatchDecorator, "__esModule", {
2383
+ value: true
2384
+ });
2385
+
2386
+ var _linkifyIt = linkifyIt;
2387
+
2388
+ var _linkifyIt2 = _interopRequireDefault$2(_linkifyIt);
2389
+
2390
+ var _tlds = require$$1;
2391
+
2392
+ var _tlds2 = _interopRequireDefault$2(_tlds);
2393
+
2394
+ function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2395
+
2396
+ var linkify = new _linkifyIt2.default();
2397
+ linkify.tlds(_tlds2.default);
2398
+
2399
+ defaultMatchDecorator.default = function (text) {
2400
+ return linkify.match(text);
2401
+ };
2402
+
2403
+ var defaultTextDecorator = {};
2404
+
2405
+ Object.defineProperty(defaultTextDecorator, "__esModule", {
2406
+ value: true
2407
+ });
2408
+
2409
+ defaultTextDecorator.default = function (text) {
2410
+ return text;
2411
+ };
2412
+
2413
+ Object.defineProperty(Linkify$1, "__esModule", {
2414
+ value: true
2415
+ });
2416
+
2417
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2418
+
2419
+ var _react = React__default;
2420
+
2421
+ var React = _interopRequireWildcard(_react);
2422
+
2423
+ var _defaultComponentDecorator = defaultComponentDecorator;
2424
+
2425
+ var _defaultComponentDecorator2 = _interopRequireDefault$1(_defaultComponentDecorator);
2426
+
2427
+ var _defaultHrefDecorator = defaultHrefDecorator;
2428
+
2429
+ var _defaultHrefDecorator2 = _interopRequireDefault$1(_defaultHrefDecorator);
2430
+
2431
+ var _defaultMatchDecorator = defaultMatchDecorator;
2432
+
2433
+ var _defaultMatchDecorator2 = _interopRequireDefault$1(_defaultMatchDecorator);
2434
+
2435
+ var _defaultTextDecorator = defaultTextDecorator;
2436
+
2437
+ var _defaultTextDecorator2 = _interopRequireDefault$1(_defaultTextDecorator);
2438
+
2439
+ function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2440
+
2441
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
2442
+
2443
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2444
+
2445
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
2446
+
2447
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2448
+
2449
+ var Linkify = function (_React$Component) {
2450
+ _inherits(Linkify, _React$Component);
2451
+
2452
+ function Linkify() {
2453
+ _classCallCheck(this, Linkify);
2454
+
2455
+ return _possibleConstructorReturn(this, (Linkify.__proto__ || Object.getPrototypeOf(Linkify)).apply(this, arguments));
2456
+ }
2457
+
2458
+ _createClass(Linkify, [{
2459
+ key: 'parseString',
2460
+ value: function parseString(string) {
2461
+ var _this2 = this;
2462
+
2463
+ if (string === '') {
2464
+ return string;
2465
+ }
2466
+
2467
+ var matches = this.props.matchDecorator(string);
2468
+ if (!matches) {
2469
+ return string;
2470
+ }
2471
+
2472
+ var elements = [];
2473
+ var lastIndex = 0;
2474
+ matches.forEach(function (match, i) {
2475
+ // Push preceding text if there is any
2476
+ if (match.index > lastIndex) {
2477
+ elements.push(string.substring(lastIndex, match.index));
2478
+ }
2479
+
2480
+ var decoratedHref = _this2.props.hrefDecorator(match.url);
2481
+ var decoratedText = _this2.props.textDecorator(match.text);
2482
+ var decoratedComponent = _this2.props.componentDecorator(decoratedHref, decoratedText, i);
2483
+ elements.push(decoratedComponent);
2484
+
2485
+ lastIndex = match.lastIndex;
2486
+ });
2487
+
2488
+ // Push remaining text if there is any
2489
+ if (string.length > lastIndex) {
2490
+ elements.push(string.substring(lastIndex));
2491
+ }
2492
+
2493
+ return elements.length === 1 ? elements[0] : elements;
2494
+ }
2495
+ }, {
2496
+ key: 'parse',
2497
+ value: function parse(children) {
2498
+ var _this3 = this;
2499
+
2500
+ var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
2501
+
2502
+ if (typeof children === 'string') {
2503
+ return this.parseString(children);
2504
+ } else if (React.isValidElement(children) && children.type !== 'a' && children.type !== 'button') {
2505
+ return React.cloneElement(children, { key: key }, this.parse(children.props.children));
2506
+ } else if (Array.isArray(children)) {
2507
+ return children.map(function (child, i) {
2508
+ return _this3.parse(child, i);
2509
+ });
2510
+ }
2511
+
2512
+ return children;
2513
+ }
2514
+ }, {
2515
+ key: 'render',
2516
+ value: function render() {
2517
+ return React.createElement(
2518
+ React.Fragment,
2519
+ null,
2520
+ this.parse(this.props.children)
2521
+ );
2522
+ }
2523
+ }]);
2524
+
2525
+ return Linkify;
2526
+ }(React.Component);
2527
+
2528
+ Linkify.defaultProps = {
2529
+ componentDecorator: _defaultComponentDecorator2.default,
2530
+ hrefDecorator: _defaultHrefDecorator2.default,
2531
+ matchDecorator: _defaultMatchDecorator2.default,
2532
+ textDecorator: _defaultTextDecorator2.default
2533
+ };
2534
+ Linkify$1.default = Linkify;
2535
+
2536
+ Object.defineProperty(dist, "__esModule", {
2537
+ value: true
2538
+ });
2539
+
2540
+ var _Linkify = Linkify$1;
2541
+
2542
+ var _Linkify2 = _interopRequireDefault(_Linkify);
2543
+
2544
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2545
+
2546
+ var _default = dist.default = _Linkify2.default;
2547
+
2548
+ var linkifyDecorator = function linkifyDecorator(decoratedHref, decoratedText, key) {
2549
+ return /*#__PURE__*/jsx("a", {
2550
+ className: "neeto-ui-text-accent-800 hover:neeto-ui-text-accent-800",
2551
+ href: decoratedHref,
2552
+ rel: "noreferrer",
2553
+ target: "_blank",
2554
+ children: decoratedText
2555
+ }, key);
2556
+ };
2557
+ var filterResponses = function filterResponses(responses, kinds) {
2558
+ var filteredResponses = removeBy({
2559
+ kind: includes(__, kinds)
2560
+ }, responses);
2561
+ return filterAdditionalGuestResponses(filteredResponses);
2562
+ };
2563
+ var filterAdditionalGuestResponses = removeBy({
2564
+ kind: QUESTION_KIND.ADDITIONAL_GUESTS.value,
2565
+ value: isNotPresent
2566
+ });
2567
+
2568
+ var FileUpload = function FileUpload(_ref) {
2569
+ var files = _ref.files;
2570
+ return /*#__PURE__*/jsx("div", {
2571
+ className: "space-y-2",
2572
+ children: files === null || files === void 0 ? void 0 : files.map(function (_ref2, index) {
2573
+ var url = _ref2.url,
2574
+ name = _ref2.name;
2575
+ return /*#__PURE__*/jsx(Typography, {
2576
+ className: "break-all",
2577
+ style: "body2",
2578
+ children: /*#__PURE__*/jsx(_default, {
2579
+ componentDecorator: function componentDecorator() {
2580
+ return linkifyDecorator(url, name, index);
2581
+ },
2582
+ children: url
2583
+ })
2584
+ }, index);
2585
+ })
2586
+ });
2587
+ };
2588
+
2589
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2590
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2591
+ var getValue = function getValue(_ref) {
2592
+ var value = _ref.value,
2593
+ kind = _ref.kind;
2594
+ if (isEmpty(value)) return /*#__PURE__*/jsx("i", {
2595
+ children: t("neetoForm.common.unanswered")
2596
+ });
2597
+ if (kind === QUESTION_KIND.DATE.value) {
2598
+ return value && dateFormat.date(value);
2599
+ }
2600
+ if (kind === QUESTION_KIND.ADDITIONAL_GUESTS.value) {
2601
+ return value === null || value === void 0 ? void 0 : value.join(", ");
2602
+ }
2603
+ if (kind === QUESTION_KIND.CONDITION.value) {
2604
+ return (value === null || value === void 0 ? void 0 : value.toLowerCase()) === "true" ? t("neetoForm.common.yes") : t("neetoForm.common.no");
2605
+ }
2606
+ return value;
2607
+ };
2608
+ var getEditorContent = function getEditorContent(value) {
2609
+ if (typeof value !== "string") {
2610
+ return renderToString(value);
2611
+ }
2612
+ return value;
2613
+ };
2614
+ var Submission = function Submission(_ref2) {
2615
+ var _ref2$formId = _ref2.formId,
2616
+ formId = _ref2$formId === void 0 ? "" : _ref2$formId,
2617
+ _ref2$submissionId = _ref2.submissionId,
2618
+ submissionId = _ref2$submissionId === void 0 ? "" : _ref2$submissionId,
2619
+ _ref2$className = _ref2.className,
2620
+ className = _ref2$className === void 0 ? "" : _ref2$className,
2621
+ _ref2$fetchPublicSubm = _ref2.fetchPublicSubmission,
2622
+ fetchPublicSubmission = _ref2$fetchPublicSubm === void 0 ? true : _ref2$fetchPublicSubm,
2623
+ _ref2$questionLabelPr = _ref2.questionLabelProps,
2624
+ questionLabelProps = _ref2$questionLabelPr === void 0 ? {} : _ref2$questionLabelPr,
2625
+ _ref2$answerProps = _ref2.answerProps,
2626
+ answerProps = _ref2$answerProps === void 0 ? {} : _ref2$answerProps,
2627
+ _ref2$omitKinds = _ref2.omitKinds,
2628
+ omitKinds = _ref2$omitKinds === void 0 ? [] : _ref2$omitKinds;
2629
+ var _useSubmission = useSubmission({
2630
+ formId: formId,
2631
+ submissionId: submissionId,
2632
+ fetchPublicSubmission: fetchPublicSubmission,
2633
+ enabled: !!(formId && submissionId)
2634
+ }),
2635
+ _useSubmission$data = _useSubmission.data,
2636
+ submission = _useSubmission$data === void 0 ? {
2637
+ responses: []
2638
+ } : _useSubmission$data,
2639
+ isLoading = _useSubmission.isLoading;
2640
+ var responses = submission.responses;
2641
+ var filteredResponses = filterResponses(responses, omitKinds);
2642
+ var renderSubmittedValue = function renderSubmittedValue(kind, value) {
2643
+ switch (kind) {
2644
+ case QUESTION_KIND.RICH_TEXT.value:
2645
+ return /*#__PURE__*/jsx(EditorContent, {
2646
+ content: getEditorContent(getValue({
2647
+ value: value,
2648
+ kind: kind
2649
+ }))
2650
+ });
2651
+ case QUESTION_KIND.PHONE.value:
2652
+ return isPresent(value) ? /*#__PURE__*/jsx(PhoneNumber, {
2653
+ value: value,
2654
+ showEmoji: true
2655
+ }) : "-";
2656
+ case QUESTION_KIND.FILE_UPLOAD.value:
2657
+ return isPresent(value) ? /*#__PURE__*/jsx(FileUpload, {
2658
+ files: value
2659
+ }) : "-";
2660
+ default:
2661
+ return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
2662
+ weight: "semibold"
2663
+ }, answerProps), {}, {
2664
+ children: /*#__PURE__*/jsx(_default, {
2665
+ componentDecorator: linkifyDecorator,
2666
+ children: getValue({
2667
+ value: value,
2668
+ kind: kind
2669
+ })
2670
+ })
2671
+ }));
2672
+ }
2673
+ };
2674
+ if (isLoading) {
2675
+ return /*#__PURE__*/jsx("div", {
2676
+ className: "flex h-full w-full items-center justify-center",
2677
+ children: /*#__PURE__*/jsx(PageLoader, {})
2678
+ });
2679
+ }
2680
+ return /*#__PURE__*/jsx("div", {
2681
+ className: classnames("mx-auto flex h-full w-full flex-col items-start", _defineProperty({}, className, className)),
2682
+ children: filteredResponses.map(function (_ref3) {
2683
+ var kind = _ref3.kind,
2684
+ label = _ref3.label,
2685
+ value = _ref3.value;
2686
+ return /*#__PURE__*/jsxs("div", {
2687
+ className: "mb-4",
2688
+ children: [/*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({
2689
+ style: "h5",
2690
+ weight: "light"
2691
+ }, questionLabelProps), {}, {
2692
+ children: label
2693
+ })), renderSubmittedValue(kind, value)]
2694
+ }, label);
2695
+ })
2696
+ });
2697
+ };
2698
+
2699
+ export { Submission as default };
2700
+ //# sourceMappingURL=Submission.js.map