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