@subiz/widget-v4 4.0.82 → 4.0.86

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 (73) hide show
  1. package/compiled_src/chatbox/ChatButton.js +4 -8
  2. package/compiled_src/chatbox/TextMessage.js +1 -2
  3. package/compiled_src/chatbox/Typing.js +1 -1
  4. package/compiled_src/chatbox/Widget.js +9 -1
  5. package/compiled_src/popup/popup.js +7 -0
  6. package/compiled_src/store/store.js +4 -6
  7. package/dist/132.js +162 -44
  8. package/dist/178.js +174 -341
  9. package/dist/18224b3b0f8.132.js +1 -0
  10. package/dist/18224b3b0f8.178.js +1 -0
  11. package/dist/{17f00e48d38.213.js → 18224b3b0f8.213.js} +1 -1
  12. package/dist/{17f00e48d38.335.js → 18224b3b0f8.335.js} +1 -1
  13. package/dist/18224b3b0f8.362.js +1 -0
  14. package/dist/18224b3b0f8.441.js +1 -0
  15. package/dist/{17f00e48d38.605.js → 18224b3b0f8.605.js} +0 -0
  16. package/dist/18224b3b0f8.678.js +1 -0
  17. package/dist/18224b3b0f8.782.js +1 -0
  18. package/dist/18224b3b0f8.app.js +1 -0
  19. package/dist/{17f00e48d38.index.html → 18224b3b0f8.index.html} +7 -3
  20. package/dist/{17f00e48d38.library.html → 18224b3b0f8.library.html} +7 -3
  21. package/dist/18224b3b0f8.library.js +1 -0
  22. package/dist/{17f00e48d38.preview.html → 18224b3b0f8.preview.html} +1 -1
  23. package/dist/18224b3b0f8.preview.js +1 -0
  24. package/dist/18224b3b0f8.screenshoot.js +1 -0
  25. package/dist/213.js +16 -0
  26. package/dist/335.js +2 -2
  27. package/dist/362.js +21 -71
  28. package/dist/441.js +150 -56
  29. package/dist/678.js +20 -70
  30. package/dist/782.js +21 -118
  31. package/dist/HASH +1 -1
  32. package/dist/screenshoot.html +1 -1
  33. package/dist/screenshoot.js +185 -133
  34. package/package.json +14 -14
  35. package/src/chatbox/ChatButton.js +4 -4
  36. package/src/chatbox/TextMessage.js +4 -2
  37. package/src/chatbox/Typing.js +10 -11
  38. package/src/chatbox/Widget.js +7 -2
  39. package/src/popup/popup.js +23 -11
  40. package/src/store/store.js +3 -4
  41. package/dist/0b82fa7e5c3b07b40a44.png +0 -1
  42. package/dist/0f4af006e38ee8b93633.png +0 -1
  43. package/dist/17f00e48d38.132.js +0 -1
  44. package/dist/17f00e48d38.178.js +0 -1
  45. package/dist/17f00e48d38.362.js +0 -1
  46. package/dist/17f00e48d38.441.js +0 -1
  47. package/dist/17f00e48d38.678.js +0 -1
  48. package/dist/17f00e48d38.782.js +0 -1
  49. package/dist/17f00e48d38.app.js +0 -1
  50. package/dist/17f00e48d38.library.js +0 -1
  51. package/dist/17f00e48d38.preview.js +0 -1
  52. package/dist/17f00e48d38.screenshoot.js +0 -1
  53. package/dist/1ea1c6cd21d25176810c.png +0 -1
  54. package/dist/292d42404e1b03398f61.png +0 -1
  55. package/dist/312d376370831b7bea83.png +0 -1
  56. package/dist/313d1bfc1cf776d1aefe.png +0 -1
  57. package/dist/4aa58bb7a66bb44975aa.png +0 -1
  58. package/dist/56ce063bc6c81adb7322.png +0 -1
  59. package/dist/6a411166ef5cc79e0714.png +0 -1
  60. package/dist/6faf403782fefacc1649.png +0 -1
  61. package/dist/79dca33c68fab79c067f.png +0 -1
  62. package/dist/82da1578fa84f9debaeb.png +0 -1
  63. package/dist/8b8e0f0824743974b282.png +0 -1
  64. package/dist/8d551390d81e39130a3c.png +0 -1
  65. package/dist/9fc61b9479877ebdb6c7.png +0 -1
  66. package/dist/a165d31dcb3dc90f1057.png +0 -1
  67. package/dist/a98d4a5698812c4426b3.png +0 -1
  68. package/dist/c41606bf9d1b604e46d5.png +0 -1
  69. package/dist/ce1f7450ce6c1aacd330.png +0 -1
  70. package/dist/cf8c01e88f4770a6e3e5.png +0 -1
  71. package/dist/dfbcfeab1d5622a737e2.png +0 -1
  72. package/dist/e4893ed8c2f7b8329919.png +0 -1
  73. package/dist/ec2ab4eb4ef73d186186.png +0 -1
package/dist/441.js CHANGED
@@ -96,6 +96,9 @@ function escape(html, encode) {
96
96
 
97
97
  const unescapeTest = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
98
98
 
99
+ /**
100
+ * @param {string} html
101
+ */
99
102
  function unescape(html) {
100
103
  // explicitly match decimal, hex, and named HTML entities
101
104
  return html.replace(unescapeTest, (_, n) => {
@@ -111,8 +114,13 @@ function unescape(html) {
111
114
  }
112
115
 
113
116
  const caret = /(^|[^\[])\^/g;
117
+
118
+ /**
119
+ * @param {string | RegExp} regex
120
+ * @param {string} opt
121
+ */
114
122
  function edit(regex, opt) {
115
- regex = regex.source || regex;
123
+ regex = typeof regex === 'string' ? regex : regex.source;
116
124
  opt = opt || '';
117
125
  const obj = {
118
126
  replace: (name, val) => {
@@ -130,6 +138,12 @@ function edit(regex, opt) {
130
138
 
131
139
  const nonWordAndColonTest = /[^\w:]/g;
132
140
  const originIndependentUrl = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
141
+
142
+ /**
143
+ * @param {boolean} sanitize
144
+ * @param {string} base
145
+ * @param {string} href
146
+ */
133
147
  function cleanUrl(sanitize, base, href) {
134
148
  if (sanitize) {
135
149
  let prot;
@@ -160,6 +174,10 @@ const justDomain = /^[^:]+:\/*[^/]*$/;
160
174
  const protocol = /^([^:]+:)[\s\S]*$/;
161
175
  const domain = /^([^:]+:\/*[^/]*)[\s\S]*$/;
162
176
 
177
+ /**
178
+ * @param {string} base
179
+ * @param {string} href
180
+ */
163
181
  function resolveUrl(base, href) {
164
182
  if (!baseUrls[' ' + base]) {
165
183
  // we can ignore everything in base after the last slash of its path component,
@@ -244,9 +262,14 @@ function splitCells(tableRow, count) {
244
262
  return cells;
245
263
  }
246
264
 
247
- // Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
248
- // /c*$/ is vulnerable to REDOS.
249
- // invert: Remove suffix of non-c chars instead. Default falsey.
265
+ /**
266
+ * Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
267
+ * /c*$/ is vulnerable to REDOS.
268
+ *
269
+ * @param {string} str
270
+ * @param {string} c
271
+ * @param {boolean} invert Remove suffix of non-c chars instead. Default falsey.
272
+ */
250
273
  function rtrim(str, c, invert) {
251
274
  const l = str.length;
252
275
  if (l === 0) {
@@ -268,7 +291,7 @@ function rtrim(str, c, invert) {
268
291
  }
269
292
  }
270
293
 
271
- return str.substr(0, l - suffLen);
294
+ return str.slice(0, l - suffLen);
272
295
  }
273
296
 
274
297
  function findClosingBracket(str, b) {
@@ -300,6 +323,10 @@ function checkSanitizeDeprecation(opt) {
300
323
  }
301
324
 
302
325
  // copied from https://stackoverflow.com/a/5450113/806777
326
+ /**
327
+ * @param {string} pattern
328
+ * @param {number} count
329
+ */
303
330
  function repeatString(pattern, count) {
304
331
  if (count < 1) {
305
332
  return '';
@@ -332,15 +359,14 @@ function outputLink(cap, link, raw, lexer) {
332
359
  };
333
360
  lexer.state.inLink = false;
334
361
  return token;
335
- } else {
336
- return {
337
- type: 'image',
338
- raw,
339
- href,
340
- title,
341
- text: escape(text)
342
- };
343
362
  }
363
+ return {
364
+ type: 'image',
365
+ raw,
366
+ href,
367
+ title,
368
+ text: escape(text)
369
+ };
344
370
  }
345
371
 
346
372
  function indentCodeCompensation(raw, text) {
@@ -439,7 +465,7 @@ class Tokenizer {
439
465
  type: 'heading',
440
466
  raw: cap[0],
441
467
  depth: cap[1].length,
442
- text: text,
468
+ text,
443
469
  tokens: []
444
470
  };
445
471
  this.lexer.inline(token.text, token.tokens);
@@ -460,7 +486,7 @@ class Tokenizer {
460
486
  blockquote(src) {
461
487
  const cap = this.rules.block.blockquote.exec(src);
462
488
  if (cap) {
463
- const text = cap[0].replace(/^ *> ?/gm, '');
489
+ const text = cap[0].replace(/^ *>[ \t]?/gm, '');
464
490
 
465
491
  return {
466
492
  type: 'blockquote',
@@ -496,7 +522,7 @@ class Tokenizer {
496
522
  }
497
523
 
498
524
  // Get next list item
499
- const itemRegex = new RegExp(`^( {0,3}${bull})((?: [^\\n]*)?(?:\\n|$))`);
525
+ const itemRegex = new RegExp(`^( {0,3}${bull})((?:[\t ][^\\n]*)?(?:\\n|$))`);
500
526
 
501
527
  // Check if current bullet point can start a new List Item
502
528
  while (src) {
@@ -534,7 +560,10 @@ class Tokenizer {
534
560
  }
535
561
 
536
562
  if (!endEarly) {
537
- const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])`);
563
+ const nextBulletRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`);
564
+ const hrRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);
565
+ const fencesBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\`\`\`|~~~)`);
566
+ const headingBeginRegex = new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`);
538
567
 
539
568
  // Check if following lines should be included in List Item
540
569
  while (src) {
@@ -546,11 +575,26 @@ class Tokenizer {
546
575
  line = line.replace(/^ {1,4}(?=( {4})*[^ ])/g, ' ');
547
576
  }
548
577
 
578
+ // End list item if found code fences
579
+ if (fencesBeginRegex.test(line)) {
580
+ break;
581
+ }
582
+
583
+ // End list item if found start of new heading
584
+ if (headingBeginRegex.test(line)) {
585
+ break;
586
+ }
587
+
549
588
  // End list item if found start of new bullet
550
589
  if (nextBulletRegex.test(line)) {
551
590
  break;
552
591
  }
553
592
 
593
+ // Horizontal rule found
594
+ if (hrRegex.test(src)) {
595
+ break;
596
+ }
597
+
554
598
  if (line.search(/[^ ]/) >= indent || !line.trim()) { // Dedent if possible
555
599
  itemContents += '\n' + line.slice(indent);
556
600
  } else if (!blankLine) { // Until blank line, item doesn't need indentation
@@ -588,7 +632,7 @@ class Tokenizer {
588
632
 
589
633
  list.items.push({
590
634
  type: 'list_item',
591
- raw: raw,
635
+ raw,
592
636
  task: !!istask,
593
637
  checked: ischecked,
594
638
  loose: false,
@@ -709,7 +753,7 @@ class Tokenizer {
709
753
  l = item.header.length;
710
754
  for (j = 0; j < l; j++) {
711
755
  item.header[j].tokens = [];
712
- this.lexer.inlineTokens(item.header[j].text, item.header[j].tokens);
756
+ this.lexer.inline(item.header[j].text, item.header[j].tokens);
713
757
  }
714
758
 
715
759
  // cell child tokens
@@ -718,7 +762,7 @@ class Tokenizer {
718
762
  row = item.rows[j];
719
763
  for (k = 0; k < row.length; k++) {
720
764
  row[k].tokens = [];
721
- this.lexer.inlineTokens(row[k].text, row[k].tokens);
765
+ this.lexer.inline(row[k].text, row[k].tokens);
722
766
  }
723
767
  }
724
768
 
@@ -1083,10 +1127,10 @@ const block = {
1083
1127
  newline: /^(?: *(?:\n|$))+/,
1084
1128
  code: /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,
1085
1129
  fences: /^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,
1086
- hr: /^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,
1130
+ hr: /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,
1087
1131
  heading: /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
1088
1132
  blockquote: /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,
1089
- list: /^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,
1133
+ list: /^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,
1090
1134
  html: '^ {0,3}(?:' // optional indentation
1091
1135
  + '<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)' // (1)
1092
1136
  + '|comment[^\\n]*(\\n+|$)' // (2)
@@ -1240,9 +1284,9 @@ const inline = {
1240
1284
  emStrong: {
1241
1285
  lDelim: /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,
1242
1286
  // (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left. (5) and (6) can be either Left or Right.
1243
- // () Skip orphan delim inside strong (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a
1244
- rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
1245
- rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _
1287
+ // () Skip orphan inside strong () Consume to delim (1) #*** (2) a***#, a*** (3) #***a, ***a (4) ***# (5) #***# (6) a***a
1288
+ rDelimAst: /^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,
1289
+ rDelimUnd: /^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ // ^- Not allowed for _
1246
1290
  },
1247
1291
  code: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
1248
1292
  br: /^( {2,}|\\)\n(?!\s*$)/,
@@ -1375,6 +1419,7 @@ inline.breaks = merge({}, inline.gfm, {
1375
1419
 
1376
1420
  /**
1377
1421
  * smartypants text replacement
1422
+ * @param {string} text
1378
1423
  */
1379
1424
  function smartypants(text) {
1380
1425
  return text
@@ -1396,6 +1441,7 @@ function smartypants(text) {
1396
1441
 
1397
1442
  /**
1398
1443
  * mangle email addresses
1444
+ * @param {string} text
1399
1445
  */
1400
1446
  function mangle(text) {
1401
1447
  let out = '',
@@ -1483,8 +1529,7 @@ class Lexer {
1483
1529
  */
1484
1530
  lex(src) {
1485
1531
  src = src
1486
- .replace(/\r\n|\r/g, '\n')
1487
- .replace(/\t/g, ' ');
1532
+ .replace(/\r\n|\r/g, '\n');
1488
1533
 
1489
1534
  this.blockTokens(src, this.tokens);
1490
1535
 
@@ -1501,8 +1546,13 @@ class Lexer {
1501
1546
  */
1502
1547
  blockTokens(src, tokens = []) {
1503
1548
  if (this.options.pedantic) {
1504
- src = src.replace(/^ +$/gm, '');
1549
+ src = src.replace(/\t/g, ' ').replace(/^ +$/gm, '');
1550
+ } else {
1551
+ src = src.replace(/^( *)(\t+)/gm, (_, leading, tabs) => {
1552
+ return leading + ' '.repeat(tabs.length);
1553
+ });
1505
1554
  }
1555
+
1506
1556
  let token, lastToken, cutSrc, lastParagraphClipped;
1507
1557
 
1508
1558
  while (src) {
@@ -1898,29 +1948,31 @@ class Renderer {
1898
1948
  + '</code></pre>\n';
1899
1949
  }
1900
1950
 
1951
+ /**
1952
+ * @param {string} quote
1953
+ */
1901
1954
  blockquote(quote) {
1902
- return '<blockquote>\n' + quote + '</blockquote>\n';
1955
+ return `<blockquote>\n${quote}</blockquote>\n`;
1903
1956
  }
1904
1957
 
1905
1958
  html(html) {
1906
1959
  return html;
1907
1960
  }
1908
1961
 
1962
+ /**
1963
+ * @param {string} text
1964
+ * @param {string} level
1965
+ * @param {string} raw
1966
+ * @param {any} slugger
1967
+ */
1909
1968
  heading(text, level, raw, slugger) {
1910
1969
  if (this.options.headerIds) {
1911
- return '<h'
1912
- + level
1913
- + ' id="'
1914
- + this.options.headerPrefix
1915
- + slugger.slug(raw)
1916
- + '">'
1917
- + text
1918
- + '</h'
1919
- + level
1920
- + '>\n';
1970
+ const id = this.options.headerPrefix + slugger.slug(raw);
1971
+ return `<h${level} id="${id}">${text}</h${level}>\n`;
1921
1972
  }
1973
+
1922
1974
  // ignore IDs
1923
- return '<h' + level + '>' + text + '</h' + level + '>\n';
1975
+ return `<h${level}>${text}</h${level}>\n`;
1924
1976
  }
1925
1977
 
1926
1978
  hr() {
@@ -1933,8 +1985,11 @@ class Renderer {
1933
1985
  return '<' + type + startatt + '>\n' + body + '</' + type + '>\n';
1934
1986
  }
1935
1987
 
1988
+ /**
1989
+ * @param {string} text
1990
+ */
1936
1991
  listitem(text) {
1937
- return '<li>' + text + '</li>\n';
1992
+ return `<li>${text}</li>\n`;
1938
1993
  }
1939
1994
 
1940
1995
  checkbox(checked) {
@@ -1945,12 +2000,19 @@ class Renderer {
1945
2000
  + '> ';
1946
2001
  }
1947
2002
 
2003
+ /**
2004
+ * @param {string} text
2005
+ */
1948
2006
  paragraph(text) {
1949
- return '<p>' + text + '</p>\n';
2007
+ return `<p>${text}</p>\n`;
1950
2008
  }
1951
2009
 
2010
+ /**
2011
+ * @param {string} header
2012
+ * @param {string} body
2013
+ */
1952
2014
  table(header, body) {
1953
- if (body) body = '<tbody>' + body + '</tbody>';
2015
+ if (body) body = `<tbody>${body}</tbody>`;
1954
2016
 
1955
2017
  return '<table>\n'
1956
2018
  + '<thead>\n'
@@ -1960,39 +2022,59 @@ class Renderer {
1960
2022
  + '</table>\n';
1961
2023
  }
1962
2024
 
2025
+ /**
2026
+ * @param {string} content
2027
+ */
1963
2028
  tablerow(content) {
1964
- return '<tr>\n' + content + '</tr>\n';
2029
+ return `<tr>\n${content}</tr>\n`;
1965
2030
  }
1966
2031
 
1967
2032
  tablecell(content, flags) {
1968
2033
  const type = flags.header ? 'th' : 'td';
1969
2034
  const tag = flags.align
1970
- ? '<' + type + ' align="' + flags.align + '">'
1971
- : '<' + type + '>';
1972
- return tag + content + '</' + type + '>\n';
2035
+ ? `<${type} align="${flags.align}">`
2036
+ : `<${type}>`;
2037
+ return tag + content + `</${type}>\n`;
1973
2038
  }
1974
2039
 
1975
- // span level renderer
2040
+ /**
2041
+ * span level renderer
2042
+ * @param {string} text
2043
+ */
1976
2044
  strong(text) {
1977
- return '<strong>' + text + '</strong>';
2045
+ return `<strong>${text}</strong>`;
1978
2046
  }
1979
2047
 
2048
+ /**
2049
+ * @param {string} text
2050
+ */
1980
2051
  em(text) {
1981
- return '<em>' + text + '</em>';
2052
+ return `<em>${text}</em>`;
1982
2053
  }
1983
2054
 
2055
+ /**
2056
+ * @param {string} text
2057
+ */
1984
2058
  codespan(text) {
1985
- return '<code>' + text + '</code>';
2059
+ return `<code>${text}</code>`;
1986
2060
  }
1987
2061
 
1988
2062
  br() {
1989
2063
  return this.options.xhtml ? '<br/>' : '<br>';
1990
2064
  }
1991
2065
 
2066
+ /**
2067
+ * @param {string} text
2068
+ */
1992
2069
  del(text) {
1993
- return '<del>' + text + '</del>';
2070
+ return `<del>${text}</del>`;
1994
2071
  }
1995
2072
 
2073
+ /**
2074
+ * @param {string} href
2075
+ * @param {string} title
2076
+ * @param {string} text
2077
+ */
1996
2078
  link(href, title, text) {
1997
2079
  href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
1998
2080
  if (href === null) {
@@ -2006,15 +2088,20 @@ class Renderer {
2006
2088
  return out;
2007
2089
  }
2008
2090
 
2091
+ /**
2092
+ * @param {string} href
2093
+ * @param {string} title
2094
+ * @param {string} text
2095
+ */
2009
2096
  image(href, title, text) {
2010
2097
  href = cleanUrl(this.options.sanitize, this.options.baseUrl, href);
2011
2098
  if (href === null) {
2012
2099
  return text;
2013
2100
  }
2014
2101
 
2015
- let out = '<img src="' + href + '" alt="' + text + '"';
2102
+ let out = `<img src="${href}" alt="${text}"`;
2016
2103
  if (title) {
2017
- out += ' title="' + title + '"';
2104
+ out += ` title="${title}"`;
2018
2105
  }
2019
2106
  out += this.options.xhtml ? '/>' : '>';
2020
2107
  return out;
@@ -2076,6 +2163,9 @@ class Slugger {
2076
2163
  this.seen = {};
2077
2164
  }
2078
2165
 
2166
+ /**
2167
+ * @param {string} value
2168
+ */
2079
2169
  serialize(value) {
2080
2170
  return value
2081
2171
  .toLowerCase()
@@ -2089,6 +2179,8 @@ class Slugger {
2089
2179
 
2090
2180
  /**
2091
2181
  * Finds the next safe (unique) slug to use
2182
+ * @param {string} originalSlug
2183
+ * @param {boolean} isDryRun
2092
2184
  */
2093
2185
  getNextSafeSlug(originalSlug, isDryRun) {
2094
2186
  let slug = originalSlug;
@@ -2109,8 +2201,9 @@ class Slugger {
2109
2201
 
2110
2202
  /**
2111
2203
  * Convert string to unique id
2112
- * @param {object} options
2113
- * @param {boolean} options.dryrun Generates the next unique slug without updating the internal accumulator.
2204
+ * @param {object} [options]
2205
+ * @param {boolean} [options.dryrun] Generates the next unique slug without
2206
+ * updating the internal accumulator.
2114
2207
  */
2115
2208
  slug(value, options = {}) {
2116
2209
  const slug = this.serialize(value);
@@ -2671,6 +2764,7 @@ marked.walkTokens = function(tokens, callback) {
2671
2764
 
2672
2765
  /**
2673
2766
  * Parse Inline
2767
+ * @param {string} src
2674
2768
  */
2675
2769
  marked.parseInline = function(src, opt) {
2676
2770
  // throw error in case of non string input
package/dist/678.js CHANGED
@@ -19,14 +19,11 @@ __webpack_require__.r(__webpack_exports__);
19
19
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20
20
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21
21
  /* harmony export */ });
22
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8081);
23
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
24
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3645);
25
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
22
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3645);
23
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
26
24
  // Imports
27
25
 
28
-
29
- var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
26
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
30
27
  // Module
31
28
  ___CSS_LOADER_EXPORT___.push([module.id, "/*\n#sbz92 * {\n\tall: unset !important;\n}\n\n#sbz92 {\n\tz-index: @z-index + 100 !important;\n\t#makeImportant() !important;\n}\n\n// prevent #subiz inheriting client site styles\ndiv#sbz92 {\n\tall: initial;\n}\n\n// prevent #subiz inheriting client site !important styles\nbody div#sbz92 {\n\tall: initial !important;\n}\n\nbody div#sbz92 .overlay {\n\tposition: fixed !important;\n\tuser-select: none !important;\n}\n*/\n#sbz92 {\n z-index: 2000000100 !important;\n /* Handle on hover */\n}\n#sbz92 *,\n#sbz92 *::before,\n#sbz92 *::after {\n box-sizing: border-box;\n}\n#sbz92 [tabindex='-1']:focus:not(:focus-visible) {\n outline: 0;\n}\n#sbz92 b,\n#sbz92 strong {\n font-weight: 500;\n}\n#sbz92 a {\n color: #020202;\n text-decoration: none;\n background-color: transparent;\n}\n#sbz92 a:hover {\n cursor: pointer;\n color: #000000;\n text-decoration: underline;\n}\n#sbz92 a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n#sbz92 a:not([href]):hover {\n color: inherit;\n text-decoration: none;\n}\n#sbz92 img {\n vertical-align: middle;\n border-style: none;\n}\n#sbz92 svg {\n overflow: hidden;\n vertical-align: middle;\n}\n#sbz92 label {\n display: inline-block;\n}\n#sbz92 button {\n border-radius: 0;\n}\n#sbz92 button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n}\n#sbz92 input,\n#sbz92 button,\n#sbz92 select,\n#sbz92 optgroup,\n#sbz92 textarea {\n margin: 0;\n}\n#sbz92 button,\n#sbz92 input {\n overflow: visible;\n}\n#sbz92 button,\n#sbz92 select {\n text-transform: none;\n}\n#sbz92 select {\n word-wrap: normal;\n}\n#sbz92 button,\n#sbz92 [type=\"button\"],\n#sbz92 [type=\"reset\"],\n#sbz92 [type=\"submit\"] {\n -webkit-appearance: button;\n}\n#sbz92 button:not(:disabled),\n#sbz92 [type='button']:not(:disabled),\n#sbz92 [type='reset']:not(:disabled),\n#sbz92 [type='submit']:not(:disabled) {\n cursor: pointer;\n}\n#sbz92 button::-moz-focus-inner,\n#sbz92 [type='button']::-moz-focus-inner,\n#sbz92 [type='reset']::-moz-focus-inner,\n#sbz92 [type='submit']::-moz-focus-inner {\n padding: 0;\n border-style: none;\n}\n#sbz92 input[type='radio'],\n#sbz92 input[type='checkbox'] {\n box-sizing: border-box;\n padding: 0;\n}\n#sbz92 input[type='date'],\n#sbz92 input[type='time'],\n#sbz92 input[type='datetime-local'],\n#sbz92 input[type='month'] {\n -webkit-appearance: listbox;\n}\n#sbz92 textarea {\n overflow: auto;\n resize: vertical;\n}\n#sbz92 [type='number']::-webkit-inner-spin-button,\n#sbz92 [type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n#sbz92 [hidden] {\n display: none;\n}\n#sbz92 ::-webkit-input-placeholder {\n /* Edge */\n color: #777;\n}\n#sbz92 :-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n color: #777;\n}\n#sbz92 ::placeholder {\n color: #777;\n}\n#sbz92 div {\n display: block;\n text-rendering: geometricPrecision;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n#sbz92 ::-webkit-scrollbar {\n width: 7px;\n height: 7px;\n}\n#sbz92 ::-webkit-scrollbar-track {\n border-radius: 10px;\n}\n#sbz92 ::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background: #d6d6d6;\n}\n#sbz92 ::-webkit-scrollbar-thumb:hover {\n background: #aaa;\n}\n#sbz92 .overlay {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: #000c;\n z-index: 20000000000100;\n overflow: auto;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n#sbz92 .overlay.overlay__hidden {\n display: none;\n}\n#sbz92 .map_modal {\n max-with: 80%;\n max-height: 80%;\n width: 400px;\n height: 400px;\n background: white;\n}\n#sbz92 .map_body {\n width: 100%;\n height: 100%;\n display: flex;\n}\n#sbz92 .map_location {\n border-bottom: 1px solid lightgray;\n padding: 20px;\n font-size: 16px;\n font-family: 'roboto';\n}\n#sbz92 .map_title {\n font-size: 18px;\n font-weight: 500;\n padding: 10px;\n text-align: center;\n border-bottom: 1px solid lightgray;\n font-family: 'roboto';\n}\n#sbz92 .map_locations {\n border-right: 1px solid lightgray;\n width: 200px;\n height: 100%;\n}\n#sbz92 .sm.contact_button {\n width: 40px;\n height: 40px;\n}\n#sbz92 .lg.contact_button {\n width: 60px;\n height: 60px;\n}\n#sbz92 .contact_button {\n width: 50px;\n height: 50px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n background: pink;\n}\n", ""]);
32
29
  // Exports
@@ -44,55 +41,37 @@ ___CSS_LOADER_EXPORT___.push([module.id, "/*\n#sbz92 * {\n\tall: unset !importan
44
41
  MIT License http://www.opensource.org/licenses/mit-license.php
45
42
  Author Tobias Koppers @sokra
46
43
  */
44
+ // css base code, injected by the css-loader
45
+ // eslint-disable-next-line func-names
47
46
  module.exports = function (cssWithMappingToString) {
48
47
  var list = []; // return the list of modules as css string
49
48
 
50
49
  list.toString = function toString() {
51
50
  return this.map(function (item) {
52
- var content = "";
53
- var needLayer = typeof item[5] !== "undefined";
54
-
55
- if (item[4]) {
56
- content += "@supports (".concat(item[4], ") {");
57
- }
51
+ var content = cssWithMappingToString(item);
58
52
 
59
53
  if (item[2]) {
60
- content += "@media ".concat(item[2], " {");
61
- }
62
-
63
- if (needLayer) {
64
- content += "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {");
65
- }
66
-
67
- content += cssWithMappingToString(item);
68
-
69
- if (needLayer) {
70
- content += "}";
71
- }
72
-
73
- if (item[2]) {
74
- content += "}";
75
- }
76
-
77
- if (item[4]) {
78
- content += "}";
54
+ return "@media ".concat(item[2], " {").concat(content, "}");
79
55
  }
80
56
 
81
57
  return content;
82
58
  }).join("");
83
59
  }; // import a list of modules into the list
60
+ // eslint-disable-next-line func-names
84
61
 
85
62
 
86
- list.i = function i(modules, media, dedupe, supports, layer) {
63
+ list.i = function (modules, mediaQuery, dedupe) {
87
64
  if (typeof modules === "string") {
88
- modules = [[null, modules, undefined]];
65
+ // eslint-disable-next-line no-param-reassign
66
+ modules = [[null, modules, ""]];
89
67
  }
90
68
 
91
69
  var alreadyImportedModules = {};
92
70
 
93
71
  if (dedupe) {
94
- for (var k = 0; k < this.length; k++) {
95
- var id = this[k][0];
72
+ for (var i = 0; i < this.length; i++) {
73
+ // eslint-disable-next-line prefer-destructuring
74
+ var id = this[i][0];
96
75
 
97
76
  if (id != null) {
98
77
  alreadyImportedModules[id] = true;
@@ -100,37 +79,19 @@ module.exports = function (cssWithMappingToString) {
100
79
  }
101
80
  }
102
81
 
103
- for (var _k = 0; _k < modules.length; _k++) {
104
- var item = [].concat(modules[_k]);
82
+ for (var _i = 0; _i < modules.length; _i++) {
83
+ var item = [].concat(modules[_i]);
105
84
 
106
85
  if (dedupe && alreadyImportedModules[item[0]]) {
86
+ // eslint-disable-next-line no-continue
107
87
  continue;
108
88
  }
109
89
 
110
- if (typeof layer !== "undefined") {
111
- if (typeof item[5] === "undefined") {
112
- item[5] = layer;
113
- } else {
114
- item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
115
- item[5] = layer;
116
- }
117
- }
118
-
119
- if (media) {
90
+ if (mediaQuery) {
120
91
  if (!item[2]) {
121
- item[2] = media;
92
+ item[2] = mediaQuery;
122
93
  } else {
123
- item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
124
- item[2] = media;
125
- }
126
- }
127
-
128
- if (supports) {
129
- if (!item[4]) {
130
- item[4] = "".concat(supports);
131
- } else {
132
- item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
133
- item[4] = supports;
94
+ item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
134
95
  }
135
96
  }
136
97
 
@@ -141,17 +102,6 @@ module.exports = function (cssWithMappingToString) {
141
102
  return list;
142
103
  };
143
104
 
144
- /***/ }),
145
-
146
- /***/ 8081:
147
- /***/ ((module) => {
148
-
149
-
150
-
151
- module.exports = function (i) {
152
- return i[1];
153
- };
154
-
155
105
  /***/ })
156
106
 
157
107
  }]);