@dangl/angular-material-shared 2.2.0 → 2.3.0-beta0037

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 (172) hide show
  1. package/{esm2015/dangl-angular-material-shared.js → esm2020/dangl-angular-material-shared.mjs} +0 -0
  2. package/esm2020/lib/angular-material-shared.module.mjs +38 -0
  3. package/esm2020/lib/components/footer/footer.component.mjs +33 -0
  4. package/esm2020/lib/components/header/header.component.mjs +80 -0
  5. package/esm2020/lib/components/tiny-mce/tiny-mce.component.mjs +104 -0
  6. package/{esm2015/lib/models/footer-options.js → esm2020/lib/models/footer-options.mjs} +0 -0
  7. package/{esm2015/lib/utils/guid-generator.js → esm2020/lib/utils/guid-generator.mjs} +0 -0
  8. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  9. package/fesm2015/dangl-angular-material-shared.mjs +292 -0
  10. package/fesm2015/dangl-angular-material-shared.mjs.map +1 -0
  11. package/fesm2020/dangl-angular-material-shared.mjs +290 -0
  12. package/fesm2020/dangl-angular-material-shared.mjs.map +1 -0
  13. package/{dangl-angular-material-shared.d.ts → index.d.ts} +1 -0
  14. package/lib/angular-material-shared.module.d.ts +12 -0
  15. package/lib/components/footer/footer.component.d.ts +3 -0
  16. package/lib/components/header/header.component.d.ts +3 -0
  17. package/lib/components/tiny-mce/tiny-mce.component.d.ts +3 -0
  18. package/package.json +28 -16
  19. package/styles/material-style.scss +1 -1
  20. package/styles/material-theme.scss +4 -3
  21. package/styles/material-variables.scss +9 -8
  22. package/tinymce-assets/icons/default/icons.js +11 -1
  23. package/tinymce-assets/icons/default/icons.min.js +1 -1
  24. package/tinymce-assets/langs/cs.js +118 -75
  25. package/tinymce-assets/langs/cy.js +61 -18
  26. package/tinymce-assets/langs/da.js +60 -17
  27. package/tinymce-assets/langs/de.js +60 -17
  28. package/tinymce-assets/langs/eo.js +334 -138
  29. package/tinymce-assets/langs/es_ES.js +32 -2
  30. package/tinymce-assets/langs/fa.js +60 -17
  31. package/tinymce-assets/langs/fa_IR.js +31 -1
  32. package/tinymce-assets/langs/fr_FR.js +60 -17
  33. package/tinymce-assets/langs/hu_HU.js +60 -17
  34. package/tinymce-assets/langs/ja.js +60 -17
  35. package/tinymce-assets/langs/ko_KR.js +3 -3
  36. package/tinymce-assets/langs/nb_NO.js +61 -18
  37. package/tinymce-assets/langs/nl.js +60 -17
  38. package/tinymce-assets/langs/pl.js +60 -17
  39. package/tinymce-assets/langs/pt_BR.js +60 -17
  40. package/tinymce-assets/langs/pt_PT.js +60 -17
  41. package/tinymce-assets/langs/ro.js +60 -17
  42. package/tinymce-assets/langs/ro_RO.js +32 -2
  43. package/tinymce-assets/langs/ru.js +60 -17
  44. package/tinymce-assets/langs/ru_RU.js +445 -0
  45. package/tinymce-assets/langs/sl.js +59 -14
  46. package/tinymce-assets/langs/ta.js +60 -17
  47. package/tinymce-assets/langs/ta_IN.js +60 -17
  48. package/tinymce-assets/langs/th_TH.js +60 -17
  49. package/tinymce-assets/langs/tr_TR.js +81 -8
  50. package/tinymce-assets/langs/vi.js +179 -21
  51. package/tinymce-assets/langs/zh_CN.js +60 -17
  52. package/tinymce-assets/plugins/advlist/plugin.js +29 -48
  53. package/tinymce-assets/plugins/advlist/plugin.min.js +2 -2
  54. package/tinymce-assets/plugins/anchor/plugin.js +8 -8
  55. package/tinymce-assets/plugins/anchor/plugin.min.js +2 -2
  56. package/tinymce-assets/plugins/autolink/plugin.js +58 -30
  57. package/tinymce-assets/plugins/autolink/plugin.min.js +2 -2
  58. package/tinymce-assets/plugins/autoresize/plugin.js +25 -12
  59. package/tinymce-assets/plugins/autoresize/plugin.min.js +2 -2
  60. package/tinymce-assets/plugins/autosave/plugin.js +9 -9
  61. package/tinymce-assets/plugins/autosave/plugin.min.js +2 -2
  62. package/tinymce-assets/plugins/bbcode/plugin.js +6 -6
  63. package/tinymce-assets/plugins/bbcode/plugin.min.js +2 -2
  64. package/tinymce-assets/plugins/charmap/plugin.js +39 -49
  65. package/tinymce-assets/plugins/charmap/plugin.min.js +2 -2
  66. package/tinymce-assets/plugins/code/plugin.js +9 -10
  67. package/tinymce-assets/plugins/code/plugin.min.js +2 -2
  68. package/tinymce-assets/plugins/codesample/plugin.js +1921 -1914
  69. package/tinymce-assets/plugins/codesample/plugin.min.js +2 -2
  70. package/tinymce-assets/plugins/colorpicker/plugin.js +1 -2
  71. package/tinymce-assets/plugins/colorpicker/plugin.min.js +2 -2
  72. package/tinymce-assets/plugins/contextmenu/plugin.js +1 -2
  73. package/tinymce-assets/plugins/contextmenu/plugin.min.js +2 -2
  74. package/tinymce-assets/plugins/directionality/plugin.js +186 -53
  75. package/tinymce-assets/plugins/directionality/plugin.min.js +2 -2
  76. package/tinymce-assets/plugins/emoticons/js/emojiimages.js +1572 -1572
  77. package/tinymce-assets/plugins/emoticons/js/emojiimages.min.js +1 -1
  78. package/tinymce-assets/plugins/emoticons/js/emojis.js +1572 -1572
  79. package/tinymce-assets/plugins/emoticons/js/emojis.min.js +1 -1
  80. package/tinymce-assets/plugins/emoticons/plugin.js +231 -200
  81. package/tinymce-assets/plugins/emoticons/plugin.min.js +2 -2
  82. package/tinymce-assets/plugins/fullpage/plugin.js +42 -42
  83. package/tinymce-assets/plugins/fullpage/plugin.min.js +2 -2
  84. package/tinymce-assets/plugins/fullscreen/plugin.js +496 -129
  85. package/tinymce-assets/plugins/fullscreen/plugin.min.js +2 -2
  86. package/tinymce-assets/plugins/help/plugin.js +101 -122
  87. package/tinymce-assets/plugins/help/plugin.min.js +2 -2
  88. package/tinymce-assets/plugins/hr/plugin.js +9 -10
  89. package/tinymce-assets/plugins/hr/plugin.min.js +2 -2
  90. package/tinymce-assets/plugins/image/plugin.js +78 -73
  91. package/tinymce-assets/plugins/image/plugin.min.js +2 -2
  92. package/tinymce-assets/plugins/imagetools/plugin.js +484 -307
  93. package/tinymce-assets/plugins/imagetools/plugin.min.js +2 -2
  94. package/tinymce-assets/plugins/importcss/plugin.js +50 -51
  95. package/tinymce-assets/plugins/importcss/plugin.min.js +2 -2
  96. package/tinymce-assets/plugins/insertdatetime/plugin.js +22 -17
  97. package/tinymce-assets/plugins/insertdatetime/plugin.min.js +2 -2
  98. package/tinymce-assets/plugins/legacyoutput/plugin.js +8 -8
  99. package/tinymce-assets/plugins/legacyoutput/plugin.min.js +2 -2
  100. package/tinymce-assets/plugins/link/plugin.js +131 -125
  101. package/tinymce-assets/plugins/link/plugin.min.js +2 -2
  102. package/tinymce-assets/plugins/lists/plugin.js +256 -229
  103. package/tinymce-assets/plugins/lists/plugin.min.js +2 -2
  104. package/tinymce-assets/plugins/media/plugin.js +124 -147
  105. package/tinymce-assets/plugins/media/plugin.min.js +2 -2
  106. package/tinymce-assets/plugins/nonbreaking/plugin.js +13 -14
  107. package/tinymce-assets/plugins/nonbreaking/plugin.min.js +2 -2
  108. package/tinymce-assets/plugins/noneditable/plugin.js +6 -6
  109. package/tinymce-assets/plugins/noneditable/plugin.min.js +2 -2
  110. package/tinymce-assets/plugins/pagebreak/plugin.js +16 -17
  111. package/tinymce-assets/plugins/pagebreak/plugin.min.js +2 -2
  112. package/tinymce-assets/plugins/paste/plugin.js +196 -157
  113. package/tinymce-assets/plugins/paste/plugin.min.js +2 -2
  114. package/tinymce-assets/plugins/preview/plugin.js +13 -14
  115. package/tinymce-assets/plugins/preview/plugin.min.js +2 -2
  116. package/tinymce-assets/plugins/print/plugin.js +13 -14
  117. package/tinymce-assets/plugins/print/plugin.min.js +2 -2
  118. package/tinymce-assets/plugins/quickbars/plugin.js +33 -48
  119. package/tinymce-assets/plugins/quickbars/plugin.min.js +2 -2
  120. package/tinymce-assets/plugins/save/plugin.js +9 -8
  121. package/tinymce-assets/plugins/save/plugin.min.js +2 -2
  122. package/tinymce-assets/plugins/searchreplace/plugin.js +73 -70
  123. package/tinymce-assets/plugins/searchreplace/plugin.min.js +2 -2
  124. package/tinymce-assets/plugins/spellchecker/plugin.js +22 -23
  125. package/tinymce-assets/plugins/spellchecker/plugin.min.js +2 -2
  126. package/tinymce-assets/plugins/tabfocus/plugin.js +21 -20
  127. package/tinymce-assets/plugins/tabfocus/plugin.min.js +2 -2
  128. package/tinymce-assets/plugins/table/plugin.js +2831 -2264
  129. package/tinymce-assets/plugins/table/plugin.min.js +2 -2
  130. package/tinymce-assets/plugins/template/plugin.js +84 -70
  131. package/tinymce-assets/plugins/template/plugin.min.js +2 -2
  132. package/tinymce-assets/plugins/textcolor/plugin.js +1 -2
  133. package/tinymce-assets/plugins/textcolor/plugin.min.js +2 -2
  134. package/tinymce-assets/plugins/textpattern/plugin.js +76 -96
  135. package/tinymce-assets/plugins/textpattern/plugin.min.js +2 -2
  136. package/tinymce-assets/plugins/toc/plugin.js +31 -29
  137. package/tinymce-assets/plugins/toc/plugin.min.js +2 -2
  138. package/tinymce-assets/plugins/visualblocks/plugin.js +10 -11
  139. package/tinymce-assets/plugins/visualblocks/plugin.min.js +2 -2
  140. package/tinymce-assets/plugins/visualchars/plugin.js +52 -67
  141. package/tinymce-assets/plugins/visualchars/plugin.min.js +2 -2
  142. package/tinymce-assets/plugins/wordcount/plugin.js +67 -58
  143. package/tinymce-assets/plugins/wordcount/plugin.min.js +2 -2
  144. package/tinymce-assets/skins/ui/oxide/content.css +1 -1
  145. package/tinymce-assets/skins/ui/oxide/content.inline.css +1 -1
  146. package/tinymce-assets/skins/ui/oxide/content.inline.min.css +1 -1
  147. package/tinymce-assets/skins/ui/oxide/content.min.css +1 -1
  148. package/tinymce-assets/skins/ui/oxide/skin.css +35 -22
  149. package/tinymce-assets/skins/ui/oxide/skin.min.css +1 -1
  150. package/tinymce-assets/skins/ui/oxide/skin.shadowdom.css +7 -7
  151. package/tinymce-assets/skins/ui/oxide/skin.shadowdom.min.css +1 -1
  152. package/tinymce-assets/skins/ui/oxide-dark/content.css +1 -1
  153. package/tinymce-assets/skins/ui/oxide-dark/content.inline.css +1 -1
  154. package/tinymce-assets/skins/ui/oxide-dark/content.inline.min.css +1 -1
  155. package/tinymce-assets/skins/ui/oxide-dark/content.min.css +1 -1
  156. package/tinymce-assets/skins/ui/oxide-dark/skin.css +35 -22
  157. package/tinymce-assets/skins/ui/oxide-dark/skin.min.css +1 -1
  158. package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.css +7 -7
  159. package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
  160. package/tinymce-assets/themes/mobile/theme.js +2798 -3255
  161. package/tinymce-assets/themes/mobile/theme.min.js +2 -2
  162. package/tinymce-assets/themes/silver/theme.js +25400 -25371
  163. package/tinymce-assets/themes/silver/theme.min.js +2 -2
  164. package/bundles/dangl-angular-material-shared.umd.js +0 -285
  165. package/bundles/dangl-angular-material-shared.umd.js.map +0 -1
  166. package/dangl-angular-material-shared.metadata.json +0 -1
  167. package/esm2015/lib/angular-material-shared.module.js +0 -25
  168. package/esm2015/lib/components/footer/footer.component.js +0 -27
  169. package/esm2015/lib/components/header/header.component.js +0 -67
  170. package/esm2015/lib/components/tiny-mce/tiny-mce.component.js +0 -100
  171. package/fesm2015/dangl-angular-material-shared.js +0 -259
  172. package/fesm2015/dangl-angular-material-shared.js.map +0 -1
@@ -4,12 +4,12 @@
4
4
  * For LGPL see License.txt in the project root for license information.
5
5
  * For commercial licenses see https://www.tiny.cloud/
6
6
  *
7
- * Version: 5.8.2 (2021-06-23)
7
+ * Version: 5.10.3 (2022-02-09)
8
8
  */
9
9
  (function () {
10
10
  'use strict';
11
11
 
12
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
12
+ var global$7 = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
13
 
14
14
  var typeOf = function (x) {
15
15
  var t = typeof x;
@@ -23,7 +23,7 @@
23
23
  return t;
24
24
  }
25
25
  };
26
- var isType = function (type) {
26
+ var isType$1 = function (type) {
27
27
  return function (value) {
28
28
  return typeOf(value) === type;
29
29
  };
@@ -33,9 +33,9 @@
33
33
  return typeof value === type;
34
34
  };
35
35
  };
36
- var isString = isType('string');
37
- var isObject = isType('object');
38
- var isArray = isType('array');
36
+ var isString = isType$1('string');
37
+ var isObject = isType$1('object');
38
+ var isArray = isType$1('array');
39
39
  var isBoolean = isSimpleType('boolean');
40
40
  var isFunction = isSimpleType('function');
41
41
  var isNumber = isSimpleType('number');
@@ -47,6 +47,12 @@
47
47
  return value;
48
48
  };
49
49
  };
50
+ var identity = function (x) {
51
+ return x;
52
+ };
53
+ var tripleEquals = function (a, b) {
54
+ return a === b;
55
+ };
50
56
  var not = function (f) {
51
57
  return function (t) {
52
58
  return !f(t);
@@ -59,20 +65,14 @@
59
65
  return NONE;
60
66
  };
61
67
  var NONE = function () {
62
- var eq = function (o) {
63
- return o.isNone();
64
- };
65
68
  var call = function (thunk) {
66
69
  return thunk();
67
70
  };
68
- var id = function (n) {
69
- return n;
70
- };
71
+ var id = identity;
71
72
  var me = {
72
73
  fold: function (n, _s) {
73
74
  return n();
74
75
  },
75
- is: never,
76
76
  isSome: never,
77
77
  isNone: always,
78
78
  getOr: id,
@@ -89,9 +89,9 @@
89
89
  bind: none,
90
90
  exists: never,
91
91
  forall: always,
92
- filter: none,
93
- equals: eq,
94
- equals_: eq,
92
+ filter: function () {
93
+ return none();
94
+ },
95
95
  toArray: function () {
96
96
  return [];
97
97
  },
@@ -111,9 +111,6 @@
111
111
  fold: function (n, s) {
112
112
  return s(a);
113
113
  },
114
- is: function (v) {
115
- return a === v;
116
- },
117
114
  isSome: always,
118
115
  isNone: never,
119
116
  getOr: constant_a,
@@ -140,14 +137,6 @@
140
137
  },
141
138
  toString: function () {
142
139
  return 'some(' + a + ')';
143
- },
144
- equals: function (o) {
145
- return o.is(a);
146
- },
147
- equals_: function (o, elementEq) {
148
- return o.fold(never, function (b) {
149
- return elementEq(a, b);
150
- });
151
140
  }
152
141
  };
153
142
  return me;
@@ -172,13 +161,13 @@
172
161
  }
173
162
  return r;
174
163
  };
175
- var each = function (xs, f) {
164
+ var each$1 = function (xs, f) {
176
165
  for (var i = 0, len = xs.length; i < len; i++) {
177
166
  var x = xs[i];
178
167
  f(x, i);
179
168
  }
180
169
  };
181
- var filter = function (xs, pred) {
170
+ var filter$1 = function (xs, pred) {
182
171
  var r = [];
183
172
  for (var i = 0, len = xs.length; i < len; i++) {
184
173
  var x = xs[i];
@@ -212,8 +201,8 @@
212
201
  }
213
202
  };
214
203
  var foldl = function (xs, f, acc) {
215
- each(xs, function (x) {
216
- acc = f(acc, x);
204
+ each$1(xs, function (x, i) {
205
+ acc = f(acc, x, i);
217
206
  });
218
207
  return acc;
219
208
  };
@@ -228,7 +217,7 @@
228
217
  }
229
218
  return Optional.none();
230
219
  };
231
- var find = function (xs, pred) {
220
+ var find$1 = function (xs, pred) {
232
221
  return findUntil(xs, pred, never);
233
222
  };
234
223
  var flatten = function (xs) {
@@ -249,14 +238,23 @@
249
238
  r.reverse();
250
239
  return r;
251
240
  };
252
- var get = function (xs, i) {
241
+ var get$1 = function (xs, i) {
253
242
  return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
254
243
  };
255
244
  var head = function (xs) {
256
- return get(xs, 0);
245
+ return get$1(xs, 0);
257
246
  };
258
247
  var last = function (xs) {
259
- return get(xs, xs.length - 1);
248
+ return get$1(xs, xs.length - 1);
249
+ };
250
+ var findMap = function (arr, f) {
251
+ for (var i = 0; i < arr.length; i++) {
252
+ var r = f(arr[i], i);
253
+ if (r.isSome()) {
254
+ return r;
255
+ }
256
+ }
257
+ return Optional.none();
260
258
  };
261
259
 
262
260
  var __assign = function () {
@@ -271,13 +269,16 @@
271
269
  };
272
270
  return __assign.apply(this, arguments);
273
271
  };
274
- function __spreadArrays() {
275
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
276
- s += arguments[i].length;
277
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
278
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
279
- r[k] = a[j];
280
- return r;
272
+ function __spreadArray(to, from, pack) {
273
+ if (pack || arguments.length === 2)
274
+ for (var i = 0, l = from.length, ar; i < l; i++) {
275
+ if (ar || !(i in from)) {
276
+ if (!ar)
277
+ ar = Array.prototype.slice.call(from, 0, i);
278
+ ar[i] = from[i];
279
+ }
280
+ }
281
+ return to.concat(ar || Array.prototype.slice.call(from));
281
282
  }
282
283
 
283
284
  var cached = function (f) {
@@ -327,7 +328,7 @@
327
328
  }
328
329
  return undefined;
329
330
  };
330
- var find$1 = function (regexes, agent) {
331
+ var find = function (regexes, agent) {
331
332
  var r = firstMatch(regexes, agent);
332
333
  if (!r) {
333
334
  return {
@@ -338,38 +339,53 @@
338
339
  var group = function (i) {
339
340
  return Number(agent.replace(r, '$' + i));
340
341
  };
341
- return nu(group(1), group(2));
342
+ return nu$2(group(1), group(2));
342
343
  };
343
- var detect = function (versionRegexes, agent) {
344
+ var detect$3 = function (versionRegexes, agent) {
344
345
  var cleanedAgent = String(agent).toLowerCase();
345
346
  if (versionRegexes.length === 0) {
346
- return unknown();
347
+ return unknown$2();
347
348
  }
348
- return find$1(versionRegexes, cleanedAgent);
349
+ return find(versionRegexes, cleanedAgent);
349
350
  };
350
- var unknown = function () {
351
- return nu(0, 0);
351
+ var unknown$2 = function () {
352
+ return nu$2(0, 0);
352
353
  };
353
- var nu = function (major, minor) {
354
+ var nu$2 = function (major, minor) {
354
355
  return {
355
356
  major: major,
356
357
  minor: minor
357
358
  };
358
359
  };
359
360
  var Version = {
360
- nu: nu,
361
- detect: detect,
362
- unknown: unknown
361
+ nu: nu$2,
362
+ detect: detect$3,
363
+ unknown: unknown$2
364
+ };
365
+
366
+ var detectBrowser$1 = function (browsers, userAgentData) {
367
+ return findMap(userAgentData.brands, function (uaBrand) {
368
+ var lcBrand = uaBrand.brand.toLowerCase();
369
+ return find$1(browsers, function (browser) {
370
+ var _a;
371
+ return lcBrand === ((_a = browser.brand) === null || _a === void 0 ? void 0 : _a.toLowerCase());
372
+ }).map(function (info) {
373
+ return {
374
+ current: info.name,
375
+ version: Version.nu(parseInt(uaBrand.version, 10), 0)
376
+ };
377
+ });
378
+ });
363
379
  };
364
380
 
365
- var detect$1 = function (candidates, userAgent) {
381
+ var detect$2 = function (candidates, userAgent) {
366
382
  var agent = String(userAgent).toLowerCase();
367
- return find(candidates, function (candidate) {
383
+ return find$1(candidates, function (candidate) {
368
384
  return candidate.search(agent);
369
385
  });
370
386
  };
371
387
  var detectBrowser = function (browsers, userAgent) {
372
- return detect$1(browsers, userAgent).map(function (browser) {
388
+ return detect$2(browsers, userAgent).map(function (browser) {
373
389
  var version = Version.detect(browser.versionRegexes, userAgent);
374
390
  return {
375
391
  current: browser.name,
@@ -378,7 +394,7 @@
378
394
  });
379
395
  };
380
396
  var detectOs = function (oses, userAgent) {
381
- return detect$1(oses, userAgent).map(function (os) {
397
+ return detect$2(oses, userAgent).map(function (os) {
382
398
  var version = Version.detect(os.versionRegexes, userAgent);
383
399
  return {
384
400
  current: os.name,
@@ -386,12 +402,8 @@
386
402
  };
387
403
  });
388
404
  };
389
- var UaString = {
390
- detectBrowser: detectBrowser,
391
- detectOs: detectOs
392
- };
393
405
 
394
- var contains = function (str, substr) {
406
+ var contains$1 = function (str, substr) {
395
407
  return str.indexOf(substr) !== -1;
396
408
  };
397
409
  var blank = function (r) {
@@ -403,14 +415,14 @@
403
415
  var isNotEmpty = function (s) {
404
416
  return s.length > 0;
405
417
  };
406
- var isEmpty = function (s) {
418
+ var isEmpty$1 = function (s) {
407
419
  return !isNotEmpty(s);
408
420
  };
409
421
 
410
422
  var normalVersionRegex = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/;
411
423
  var checkContains = function (target) {
412
424
  return function (uastring) {
413
- return contains(uastring, target);
425
+ return contains$1(uastring, target);
414
426
  };
415
427
  };
416
428
  var browsers = [
@@ -418,17 +430,18 @@
418
430
  name: 'Edge',
419
431
  versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
420
432
  search: function (uastring) {
421
- return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
433
+ return contains$1(uastring, 'edge/') && contains$1(uastring, 'chrome') && contains$1(uastring, 'safari') && contains$1(uastring, 'applewebkit');
422
434
  }
423
435
  },
424
436
  {
425
437
  name: 'Chrome',
438
+ brand: 'Chromium',
426
439
  versionRegexes: [
427
440
  /.*?chrome\/([0-9]+)\.([0-9]+).*/,
428
441
  normalVersionRegex
429
442
  ],
430
443
  search: function (uastring) {
431
- return contains(uastring, 'chrome') && !contains(uastring, 'chromeframe');
444
+ return contains$1(uastring, 'chrome') && !contains$1(uastring, 'chromeframe');
432
445
  }
433
446
  },
434
447
  {
@@ -438,7 +451,7 @@
438
451
  /.*?rv:([0-9]+)\.([0-9]+).*/
439
452
  ],
440
453
  search: function (uastring) {
441
- return contains(uastring, 'msie') || contains(uastring, 'trident');
454
+ return contains$1(uastring, 'msie') || contains$1(uastring, 'trident');
442
455
  }
443
456
  },
444
457
  {
@@ -461,7 +474,7 @@
461
474
  /.*?cpu os ([0-9]+)_([0-9]+).*/
462
475
  ],
463
476
  search: function (uastring) {
464
- return (contains(uastring, 'safari') || contains(uastring, 'mobile/')) && contains(uastring, 'applewebkit');
477
+ return (contains$1(uastring, 'safari') || contains$1(uastring, 'mobile/')) && contains$1(uastring, 'applewebkit');
465
478
  }
466
479
  }
467
480
  ];
@@ -474,7 +487,7 @@
474
487
  {
475
488
  name: 'iOS',
476
489
  search: function (uastring) {
477
- return contains(uastring, 'iphone') || contains(uastring, 'ipad');
490
+ return contains$1(uastring, 'iphone') || contains$1(uastring, 'ipad');
478
491
  },
479
492
  versionRegexes: [
480
493
  /.*?version\/\ ?([0-9]+)\.([0-9]+).*/,
@@ -568,13 +581,13 @@
568
581
  var solaris = 'Solaris';
569
582
  var freebsd = 'FreeBSD';
570
583
  var chromeos = 'ChromeOS';
571
- var unknown$2 = function () {
572
- return nu$2({
584
+ var unknown = function () {
585
+ return nu({
573
586
  current: undefined,
574
587
  version: Version.unknown()
575
588
  });
576
589
  };
577
- var nu$2 = function (info) {
590
+ var nu = function (info) {
578
591
  var current = info.current;
579
592
  var version = info.version;
580
593
  var isOS = function (name) {
@@ -596,8 +609,8 @@
596
609
  };
597
610
  };
598
611
  var OperatingSystem = {
599
- unknown: unknown$2,
600
- nu: nu$2,
612
+ unknown: unknown,
613
+ nu: nu,
601
614
  windows: constant(windows),
602
615
  ios: constant(ios),
603
616
  android: constant(android),
@@ -608,11 +621,15 @@
608
621
  chromeos: constant(chromeos)
609
622
  };
610
623
 
611
- var detect$2 = function (userAgent, mediaMatch) {
624
+ var detect$1 = function (userAgent, userAgentDataOpt, mediaMatch) {
612
625
  var browsers = PlatformInfo.browsers();
613
626
  var oses = PlatformInfo.oses();
614
- var browser = UaString.detectBrowser(browsers, userAgent).fold(Browser.unknown, Browser.nu);
615
- var os = UaString.detectOs(oses, userAgent).fold(OperatingSystem.unknown, OperatingSystem.nu);
627
+ var browser = userAgentDataOpt.bind(function (userAgentData) {
628
+ return detectBrowser$1(browsers, userAgentData);
629
+ }).orThunk(function () {
630
+ return detectBrowser(browsers, userAgent);
631
+ }).fold(Browser.unknown, Browser.nu);
632
+ var os = detectOs(oses, userAgent).fold(OperatingSystem.unknown, OperatingSystem.nu);
616
633
  var deviceType = DeviceType(os, browser, userAgent, mediaMatch);
617
634
  return {
618
635
  browser: browser,
@@ -620,15 +637,15 @@
620
637
  deviceType: deviceType
621
638
  };
622
639
  };
623
- var PlatformDetection = { detect: detect$2 };
640
+ var PlatformDetection = { detect: detect$1 };
624
641
 
625
642
  var mediaMatch = function (query) {
626
643
  return window.matchMedia(query).matches;
627
644
  };
628
645
  var platform = cached(function () {
629
- return PlatformDetection.detect(navigator.userAgent, mediaMatch);
646
+ return PlatformDetection.detect(navigator.userAgent, Optional.from(navigator.userAgentData), mediaMatch);
630
647
  });
631
- var detect$3 = function () {
648
+ var detect = function () {
632
649
  return platform();
633
650
  };
634
651
 
@@ -678,7 +695,7 @@
678
695
  fromPoint: fromPoint
679
696
  };
680
697
 
681
- var is = function (element, selector) {
698
+ var is$2 = function (element, selector) {
682
699
  var dom = element.dom;
683
700
  if (dom.nodeType !== ELEMENT) {
684
701
  return false;
@@ -709,19 +726,19 @@
709
726
  var ieContains = function (e1, e2) {
710
727
  return documentPositionContainedBy(e1.dom, e2.dom);
711
728
  };
712
- var contains$1 = function (e1, e2) {
713
- return detect$3().browser.isIE() ? ieContains(e1, e2) : regularContains(e1, e2);
729
+ var contains = function (e1, e2) {
730
+ return detect().browser.isIE() ? ieContains(e1, e2) : regularContains(e1, e2);
714
731
  };
715
- var is$1 = is;
732
+ var is$1 = is$2;
716
733
 
717
- var global$1 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');
734
+ var global$6 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');
718
735
 
719
- var global$2 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
736
+ var global$5 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
720
737
 
721
- var global$3 = tinymce.util.Tools.resolve('tinymce.util.VK');
738
+ var global$4 = tinymce.util.Tools.resolve('tinymce.util.VK');
722
739
 
723
740
  var keys = Object.keys;
724
- var each$1 = function (obj, f) {
741
+ var each = function (obj, f) {
725
742
  var props = keys(obj);
726
743
  for (var k = 0, len = props.length; k < len; k++) {
727
744
  var i = props[k];
@@ -736,18 +753,18 @@
736
753
  };
737
754
  var internalFilter = function (obj, pred, onTrue, onFalse) {
738
755
  var r = {};
739
- each$1(obj, function (x, i) {
756
+ each(obj, function (x, i) {
740
757
  (pred(x, i) ? onTrue : onFalse)(x, i);
741
758
  });
742
759
  return r;
743
760
  };
744
- var filter$1 = function (obj, pred) {
761
+ var filter = function (obj, pred) {
745
762
  var t = {};
746
763
  internalFilter(obj, pred, objAcc(t), noop);
747
764
  return t;
748
765
  };
749
766
 
750
- var Global = typeof window !== 'undefined' ? window : Function('return this;')();
767
+ typeof window !== 'undefined' ? window : Function('return this;')();
751
768
 
752
769
  var name = function (element) {
753
770
  var r = element.dom.nodeName;
@@ -756,12 +773,17 @@
756
773
  var type = function (element) {
757
774
  return element.dom.nodeType;
758
775
  };
759
- var isType$1 = function (t) {
776
+ var isType = function (t) {
760
777
  return function (element) {
761
778
  return type(element) === t;
762
779
  };
763
780
  };
764
- var isElement = isType$1(ELEMENT);
781
+ var isElement = isType(ELEMENT);
782
+ var isTag = function (tag) {
783
+ return function (e) {
784
+ return isElement(e) && name(e) === tag;
785
+ };
786
+ };
765
787
 
766
788
  var rawSet = function (dom, key, value) {
767
789
  if (isString(value) || isBoolean(value) || isNumber(value)) {
@@ -773,11 +795,11 @@
773
795
  };
774
796
  var setAll = function (element, attrs) {
775
797
  var dom = element.dom;
776
- each$1(attrs, function (v, k) {
798
+ each(attrs, function (v, k) {
777
799
  rawSet(dom, k, v);
778
800
  });
779
801
  };
780
- var clone = function (element) {
802
+ var clone$1 = function (element) {
781
803
  return foldl(element.dom.attributes, function (acc, attr) {
782
804
  acc[attr.name] = attr.value;
783
805
  return acc;
@@ -801,24 +823,24 @@
801
823
  return child(element, element.dom.childNodes.length - 1);
802
824
  };
803
825
 
804
- var before = function (marker, element) {
826
+ var before$1 = function (marker, element) {
805
827
  var parent$1 = parent(marker);
806
828
  parent$1.each(function (v) {
807
829
  v.dom.insertBefore(element.dom, marker.dom);
808
830
  });
809
831
  };
810
- var append = function (parent, element) {
832
+ var append$1 = function (parent, element) {
811
833
  parent.dom.appendChild(element.dom);
812
834
  };
813
835
 
814
- var before$1 = function (marker, elements) {
815
- each(elements, function (x) {
816
- before(marker, x);
836
+ var before = function (marker, elements) {
837
+ each$1(elements, function (x) {
838
+ before$1(marker, x);
817
839
  });
818
840
  };
819
- var append$1 = function (parent, elements) {
820
- each(elements, function (x) {
821
- append(parent, x);
841
+ var append = function (parent, elements) {
842
+ each$1(elements, function (x) {
843
+ append$1(parent, x);
822
844
  });
823
845
  };
824
846
 
@@ -829,30 +851,30 @@
829
851
  }
830
852
  };
831
853
 
832
- var clone$1 = function (original, isDeep) {
854
+ var clone = function (original, isDeep) {
833
855
  return SugarElement.fromDom(original.dom.cloneNode(isDeep));
834
856
  };
835
857
  var deep = function (original) {
836
- return clone$1(original, true);
858
+ return clone(original, true);
837
859
  };
838
860
  var shallowAs = function (original, tag) {
839
861
  var nu = SugarElement.fromTag(tag);
840
- var attributes = clone(original);
862
+ var attributes = clone$1(original);
841
863
  setAll(nu, attributes);
842
864
  return nu;
843
865
  };
844
866
  var mutate = function (original, tag) {
845
867
  var nu = shallowAs(original, tag);
846
- before(original, nu);
868
+ before$1(original, nu);
847
869
  var children$1 = children(original);
848
- append$1(nu, children$1);
870
+ append(nu, children$1);
849
871
  remove(original);
850
872
  return nu;
851
873
  };
852
874
 
853
- var global$4 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
875
+ var global$3 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
854
876
 
855
- var global$5 = tinymce.util.Tools.resolve('tinymce.util.Tools');
877
+ var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
856
878
 
857
879
  var matchNodeName = function (name) {
858
880
  return function (node) {
@@ -889,7 +911,7 @@
889
911
  }
890
912
  return dom.isBlock(node.nextSibling) && !isBr(node.previousSibling);
891
913
  };
892
- var isEmpty$1 = function (dom, elm, keepBookmarks) {
914
+ var isEmpty = function (dom, elm, keepBookmarks) {
893
915
  var empty = dom.isEmpty(elm);
894
916
  if (keepBookmarks && dom.select('span[data-mce-type=bookmark]', elm).length > 0) {
895
917
  return false;
@@ -964,58 +986,60 @@
964
986
  return fragment;
965
987
  };
966
988
 
967
- var DOM = global$4.DOM;
968
- var splitList = function (editor, ul, li) {
989
+ var DOM$2 = global$3.DOM;
990
+ var splitList = function (editor, list, li) {
969
991
  var removeAndKeepBookmarks = function (targetNode) {
970
- global$5.each(bookmarks, function (node) {
992
+ global$2.each(bookmarks, function (node) {
971
993
  targetNode.parentNode.insertBefore(node, li.parentNode);
972
994
  });
973
- DOM.remove(targetNode);
995
+ DOM$2.remove(targetNode);
974
996
  };
975
- var bookmarks = DOM.select('span[data-mce-type="bookmark"]', ul);
997
+ var bookmarks = DOM$2.select('span[data-mce-type="bookmark"]', list);
976
998
  var newBlock = createTextBlock(editor, li);
977
- var tmpRng = DOM.createRng();
999
+ var tmpRng = DOM$2.createRng();
978
1000
  tmpRng.setStartAfter(li);
979
- tmpRng.setEndAfter(ul);
1001
+ tmpRng.setEndAfter(list);
980
1002
  var fragment = tmpRng.extractContents();
981
1003
  for (var node = fragment.firstChild; node; node = node.firstChild) {
982
1004
  if (node.nodeName === 'LI' && editor.dom.isEmpty(node)) {
983
- DOM.remove(node);
1005
+ DOM$2.remove(node);
984
1006
  break;
985
1007
  }
986
1008
  }
987
1009
  if (!editor.dom.isEmpty(fragment)) {
988
- DOM.insertAfter(fragment, ul);
1010
+ DOM$2.insertAfter(fragment, list);
989
1011
  }
990
- DOM.insertAfter(newBlock, ul);
991
- if (isEmpty$1(editor.dom, li.parentNode)) {
1012
+ DOM$2.insertAfter(newBlock, list);
1013
+ if (isEmpty(editor.dom, li.parentNode)) {
992
1014
  removeAndKeepBookmarks(li.parentNode);
993
1015
  }
994
- DOM.remove(li);
995
- if (isEmpty$1(editor.dom, ul)) {
996
- DOM.remove(ul);
1016
+ DOM$2.remove(li);
1017
+ if (isEmpty(editor.dom, list)) {
1018
+ DOM$2.remove(list);
997
1019
  }
998
1020
  };
999
1021
 
1022
+ var isDescriptionDetail = isTag('dd');
1023
+ var isDescriptionTerm = isTag('dt');
1000
1024
  var outdentDlItem = function (editor, item) {
1001
- if (is$1(item, 'dd')) {
1025
+ if (isDescriptionDetail(item)) {
1002
1026
  mutate(item, 'dt');
1003
- } else if (is$1(item, 'dt')) {
1027
+ } else if (isDescriptionTerm(item)) {
1004
1028
  parent(item).each(function (dl) {
1005
1029
  return splitList(editor, dl.dom, item.dom);
1006
1030
  });
1007
1031
  }
1008
1032
  };
1009
1033
  var indentDlItem = function (item) {
1010
- if (is$1(item, 'dt')) {
1034
+ if (isDescriptionTerm(item)) {
1011
1035
  mutate(item, 'dd');
1012
1036
  }
1013
1037
  };
1014
1038
  var dlIndentation = function (editor, indentation, dlItems) {
1015
1039
  if (indentation === 'Indent') {
1016
- each(dlItems, indentDlItem);
1040
+ each$1(dlItems, indentDlItem);
1017
1041
  } else {
1018
- each(dlItems, function (item) {
1042
+ each$1(dlItems, function (item) {
1019
1043
  return outdentDlItem(editor, item);
1020
1044
  });
1021
1045
  }
@@ -1028,7 +1052,7 @@
1028
1052
  offset: offset
1029
1053
  };
1030
1054
  }
1031
- var node = global$1.getNode(container, offset);
1055
+ var node = global$6.getNode(container, offset);
1032
1056
  if (isTextNode(node)) {
1033
1057
  return {
1034
1058
  container: node,
@@ -1059,7 +1083,7 @@
1059
1083
  return outRng;
1060
1084
  };
1061
1085
 
1062
- var global$6 = tinymce.util.Tools.resolve('tinymce.dom.DomQuery');
1086
+ var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DomQuery');
1063
1087
 
1064
1088
  var getParentList = function (editor, node) {
1065
1089
  var selectionStart = node || editor.selection.getStart(true);
@@ -1069,9 +1093,7 @@
1069
1093
  return parentList && selectedBlocks.length === 1 && selectedBlocks[0] === parentList;
1070
1094
  };
1071
1095
  var findSubLists = function (parentList) {
1072
- return global$5.grep(parentList.querySelectorAll('ol,ul,dl'), function (elm) {
1073
- return isListNode(elm);
1074
- });
1096
+ return filter$1(parentList.querySelectorAll('ol,ul,dl'), isListNode);
1075
1097
  };
1076
1098
  var getSelectedSubLists = function (editor) {
1077
1099
  var parentList = getParentList(editor);
@@ -1079,31 +1101,28 @@
1079
1101
  if (isParentListSelected(parentList, selectedBlocks)) {
1080
1102
  return findSubLists(parentList);
1081
1103
  } else {
1082
- return global$5.grep(selectedBlocks, function (elm) {
1104
+ return filter$1(selectedBlocks, function (elm) {
1083
1105
  return isListNode(elm) && parentList !== elm;
1084
1106
  });
1085
1107
  }
1086
1108
  };
1087
1109
  var findParentListItemsNodes = function (editor, elms) {
1088
- var listItemsElms = global$5.map(elms, function (elm) {
1110
+ var listItemsElms = global$2.map(elms, function (elm) {
1089
1111
  var parentLi = editor.dom.getParent(elm, 'li,dd,dt', getClosestListRootElm(editor, elm));
1090
1112
  return parentLi ? parentLi : elm;
1091
1113
  });
1092
- return global$6.unique(listItemsElms);
1114
+ return global$1.unique(listItemsElms);
1093
1115
  };
1094
1116
  var getSelectedListItems = function (editor) {
1095
1117
  var selectedBlocks = editor.selection.getSelectedBlocks();
1096
- return global$5.grep(findParentListItemsNodes(editor, selectedBlocks), function (block) {
1097
- return isListItemNode(block);
1098
- });
1118
+ return filter$1(findParentListItemsNodes(editor, selectedBlocks), isListItemNode);
1099
1119
  };
1100
1120
  var getSelectedDlItems = function (editor) {
1101
- return filter(getSelectedListItems(editor), isDlItemNode);
1121
+ return filter$1(getSelectedListItems(editor), isDlItemNode);
1102
1122
  };
1103
1123
  var getClosestListRootElm = function (editor, elm) {
1104
1124
  var parentTableCell = editor.dom.getParents(elm, 'TD,TH');
1105
- var root = parentTableCell.length > 0 ? parentTableCell[0] : editor.getBody();
1106
- return root;
1125
+ return parentTableCell.length > 0 ? parentTableCell[0] : editor.getBody();
1107
1126
  };
1108
1127
  var findLastParentListNode = function (editor, elm) {
1109
1128
  var parentLists = editor.dom.getParents(elm, 'ol,ul', getClosestListRootElm(editor, elm));
@@ -1111,7 +1130,7 @@
1111
1130
  };
1112
1131
  var getSelectedLists = function (editor) {
1113
1132
  var firstList = findLastParentListNode(editor, editor.selection.getStart());
1114
- var subsequentLists = filter(editor.selection.getSelectedBlocks(), isOlUlNode);
1133
+ var subsequentLists = filter$1(editor.selection.getSelectedBlocks(), isOlUlNode);
1115
1134
  return firstList.toArray().concat(subsequentLists);
1116
1135
  };
1117
1136
  var getSelectedListRoots = function (editor) {
@@ -1122,9 +1141,17 @@
1122
1141
  var listRoots = map(lists, function (list) {
1123
1142
  return findLastParentListNode(editor, list).getOr(list);
1124
1143
  });
1125
- return global$6.unique(listRoots);
1144
+ return global$1.unique(listRoots);
1126
1145
  };
1127
1146
 
1147
+ var is = function (lhs, rhs, comparator) {
1148
+ if (comparator === void 0) {
1149
+ comparator = tripleEquals;
1150
+ }
1151
+ return lhs.exists(function (left) {
1152
+ return comparator(left, rhs);
1153
+ });
1154
+ };
1128
1155
  var lift2 = function (oa, ob, f) {
1129
1156
  return oa.isSome() && ob.isSome() ? Optional.some(f(oa.getOrDie(), ob.getOrDie())) : Optional.none();
1130
1157
  };
@@ -1132,7 +1159,7 @@
1132
1159
  var fromElements = function (elements, scope) {
1133
1160
  var doc = scope || document;
1134
1161
  var fragment = doc.createDocumentFragment();
1135
- each(elements, function (element) {
1162
+ each$1(elements, function (element) {
1136
1163
  fragment.appendChild(element.dom);
1137
1164
  });
1138
1165
  return SugarElement.fromDom(fragment);
@@ -1164,7 +1191,7 @@
1164
1191
  };
1165
1192
 
1166
1193
  var joinSegment = function (parent, child) {
1167
- append(parent.item, child.list);
1194
+ append$1(parent.item, child.list);
1168
1195
  };
1169
1196
  var joinSegments = function (segments) {
1170
1197
  for (var i = 1; i < segments.length; i++) {
@@ -1179,7 +1206,7 @@
1179
1206
  list: SugarElement.fromTag(listType, scope),
1180
1207
  item: SugarElement.fromTag('li', scope)
1181
1208
  };
1182
- append(segment.list, segment.item);
1209
+ append$1(segment.list, segment.item);
1183
1210
  return segment;
1184
1211
  };
1185
1212
  var createSegments = function (scope, entry, size) {
@@ -1196,7 +1223,7 @@
1196
1223
  last(segments).each(function (segment) {
1197
1224
  setAll(segment.list, entry.listAttributes);
1198
1225
  setAll(segment.item, entry.itemAttributes);
1199
- append$1(segment.item, entry.content);
1226
+ append(segment.item, entry.content);
1200
1227
  });
1201
1228
  };
1202
1229
  var normalizeSegment = function (segment, entry) {
@@ -1208,11 +1235,11 @@
1208
1235
  var createItem = function (scope, attr, content) {
1209
1236
  var item = SugarElement.fromTag('li', scope);
1210
1237
  setAll(item, attr);
1211
- append$1(item, content);
1238
+ append(item, content);
1212
1239
  return item;
1213
1240
  };
1214
1241
  var appendItem = function (segment, item) {
1215
- append(segment.list, item);
1242
+ append$1(segment.list, item);
1216
1243
  segment.item = item;
1217
1244
  };
1218
1245
  var writeShallow = function (scope, cast, entry) {
@@ -1244,10 +1271,10 @@
1244
1271
  return is$1(el, 'OL,UL');
1245
1272
  };
1246
1273
  var hasFirstChildList = function (el) {
1247
- return firstChild(el).map(isList).getOr(false);
1274
+ return firstChild(el).exists(isList);
1248
1275
  };
1249
1276
  var hasLastChildList = function (el) {
1250
- return lastChild(el).map(isList).getOr(false);
1277
+ return lastChild(el).exists(isList);
1251
1278
  };
1252
1279
 
1253
1280
  var isIndented = function (entry) {
@@ -1268,8 +1295,8 @@
1268
1295
  dirty: false,
1269
1296
  isSelected: isSelected,
1270
1297
  content: cloneItemContent(li),
1271
- itemAttributes: clone(li),
1272
- listAttributes: clone(list),
1298
+ itemAttributes: clone$1(li),
1299
+ listAttributes: clone$1(list),
1273
1300
  listType: name(list)
1274
1301
  };
1275
1302
  });
@@ -1294,7 +1321,7 @@
1294
1321
  target.listAttributes = __assign({}, source.listAttributes);
1295
1322
  };
1296
1323
  var cleanListProperties = function (entry) {
1297
- entry.listAttributes = filter$1(entry.listAttributes, function (_value, key) {
1324
+ entry.listAttributes = filter(entry.listAttributes, function (_value, key) {
1298
1325
  return key !== 'start';
1299
1326
  });
1300
1327
  };
@@ -1311,7 +1338,7 @@
1311
1338
  });
1312
1339
  };
1313
1340
  var normalizeEntries = function (entries) {
1314
- each(entries, function (entry, i) {
1341
+ each$1(entries, function (entry, i) {
1315
1342
  closestSiblingEntry(entries, i).fold(function () {
1316
1343
  if (entry.dirty) {
1317
1344
  cleanListProperties(entry);
@@ -1389,18 +1416,18 @@
1389
1416
  };
1390
1417
  var composeEntries = function (editor, entries) {
1391
1418
  return bind(groupBy(entries, isIndented), function (entries) {
1392
- var groupIsIndented = head(entries).map(isIndented).getOr(false);
1419
+ var groupIsIndented = head(entries).exists(isIndented);
1393
1420
  return groupIsIndented ? indentedComposer(editor, entries) : outdentedComposer(editor, entries);
1394
1421
  });
1395
1422
  };
1396
1423
  var indentSelectedEntries = function (entries, indentation) {
1397
- each(filter(entries, isSelected), function (entry) {
1424
+ each$1(filter$1(entries, isSelected), function (entry) {
1398
1425
  return indentEntry(indentation, entry);
1399
1426
  });
1400
1427
  };
1401
1428
  var getItemSelection = function (editor) {
1402
1429
  var selectedListItems = map(getSelectedListItems(editor), SugarElement.fromDom);
1403
- return lift2(find(selectedListItems, not(hasFirstChildList)), find(reverse(selectedListItems), not(hasFirstChildList)), function (start, end) {
1430
+ return lift2(find$1(selectedListItems, not(hasFirstChildList)), find$1(reverse(selectedListItems), not(hasFirstChildList)), function (start, end) {
1404
1431
  return {
1405
1432
  start: start,
1406
1433
  end: end
@@ -1409,13 +1436,13 @@
1409
1436
  };
1410
1437
  var listIndentation = function (editor, lists, indentation) {
1411
1438
  var entrySets = parseLists(lists, getItemSelection(editor));
1412
- each(entrySets, function (entrySet) {
1439
+ each$1(entrySets, function (entrySet) {
1413
1440
  indentSelectedEntries(entrySet.entries, indentation);
1414
1441
  var composedLists = composeEntries(editor, entrySet.entries);
1415
- each(composedLists, function (composedList) {
1442
+ each$1(composedLists, function (composedList) {
1416
1443
  fireListEvent(editor, indentation === 'Indent' ? 'IndentList' : 'OutdentList', composedList.dom);
1417
1444
  });
1418
- before$1(entrySet.sourceList, composedLists);
1445
+ before(entrySet.sourceList, composedLists);
1419
1446
  remove(entrySet.sourceList);
1420
1447
  });
1421
1448
  };
@@ -1445,17 +1472,16 @@
1445
1472
  return selectionIndentation(editor, 'Flatten');
1446
1473
  };
1447
1474
 
1448
- var global$7 = tinymce.util.Tools.resolve('tinymce.dom.BookmarkManager');
1475
+ var global = tinymce.util.Tools.resolve('tinymce.dom.BookmarkManager');
1449
1476
 
1450
- var DOM$1 = global$4.DOM;
1477
+ var DOM$1 = global$3.DOM;
1451
1478
  var createBookmark = function (rng) {
1452
1479
  var bookmark = {};
1453
1480
  var setupEndPoint = function (start) {
1454
- var offsetNode, container, offset;
1455
- container = rng[start ? 'startContainer' : 'endContainer'];
1456
- offset = rng[start ? 'startOffset' : 'endOffset'];
1481
+ var container = rng[start ? 'startContainer' : 'endContainer'];
1482
+ var offset = rng[start ? 'startOffset' : 'endOffset'];
1457
1483
  if (container.nodeType === 1) {
1458
- offsetNode = DOM$1.create('span', { 'data-mce-type': 'bookmark' });
1484
+ var offsetNode = DOM$1.create('span', { 'data-mce-type': 'bookmark' });
1459
1485
  if (container.hasChildNodes()) {
1460
1486
  offset = Math.min(offset, container.childNodes.length - 1);
1461
1487
  if (start) {
@@ -1480,7 +1506,7 @@
1480
1506
  };
1481
1507
  var resolveBookmark = function (bookmark) {
1482
1508
  var restoreEndPoint = function (start) {
1483
- var container, offset, node;
1509
+ var node;
1484
1510
  var nodeIndex = function (container) {
1485
1511
  var node = container.parentNode.firstChild, idx = 0;
1486
1512
  while (node) {
@@ -1494,8 +1520,8 @@
1494
1520
  }
1495
1521
  return -1;
1496
1522
  };
1497
- container = node = bookmark[start ? 'startContainer' : 'endContainer'];
1498
- offset = bookmark[start ? 'startOffset' : 'endOffset'];
1523
+ var container = node = bookmark[start ? 'startContainer' : 'endContainer'];
1524
+ var offset = bookmark[start ? 'startOffset' : 'endOffset'];
1499
1525
  if (!container) {
1500
1526
  return;
1501
1527
  }
@@ -1554,13 +1580,13 @@
1554
1580
  dom.setStyle(el, 'list-style-type', type);
1555
1581
  };
1556
1582
  var setAttribs = function (elm, attrs) {
1557
- global$5.each(attrs, function (value, key) {
1583
+ global$2.each(attrs, function (value, key) {
1558
1584
  elm.setAttribute(key, value);
1559
1585
  });
1560
1586
  };
1561
1587
  var updateListAttrs = function (dom, el, detail) {
1562
1588
  setAttribs(el, detail['list-attributes']);
1563
- global$5.each(dom.select('li', el), function (li) {
1589
+ global$2.each(dom.select('li', el), function (li) {
1564
1590
  setAttribs(li, detail['list-item-attributes']);
1565
1591
  });
1566
1592
  };
@@ -1569,7 +1595,7 @@
1569
1595
  updateListAttrs(dom, el, detail);
1570
1596
  };
1571
1597
  var removeStyles = function (dom, element, styles) {
1572
- global$5.each(styles, function (style) {
1598
+ global$2.each(styles, function (style) {
1573
1599
  var _a;
1574
1600
  return dom.setStyle(element, (_a = {}, _a[style] = '', _a));
1575
1601
  });
@@ -1595,7 +1621,8 @@
1595
1621
  return container;
1596
1622
  };
1597
1623
  var getSelectedTextBlocks = function (editor, rng, root) {
1598
- var textBlocks = [], dom = editor.dom;
1624
+ var textBlocks = [];
1625
+ var dom = editor.dom;
1599
1626
  var startNode = getEndPointNode(editor, rng, true, root);
1600
1627
  var endNode = getEndPointNode(editor, rng, false, root);
1601
1628
  var block;
@@ -1606,7 +1633,7 @@
1606
1633
  break;
1607
1634
  }
1608
1635
  }
1609
- global$5.each(siblings, function (node) {
1636
+ global$2.each(siblings, function (node) {
1610
1637
  if (isTextBlock(editor, node)) {
1611
1638
  textBlocks.push(node);
1612
1639
  block = null;
@@ -1620,7 +1647,7 @@
1620
1647
  return;
1621
1648
  }
1622
1649
  var nextSibling = node.nextSibling;
1623
- if (global$7.isBookmarkNode(node)) {
1650
+ if (global.isBookmarkNode(node)) {
1624
1651
  if (isListNode(nextSibling) || isTextBlock(editor, nextSibling) || !nextSibling && node.parentNode === root) {
1625
1652
  block = null;
1626
1653
  return;
@@ -1655,7 +1682,7 @@
1655
1682
  }
1656
1683
  var bookmark = createBookmark(rng);
1657
1684
  var selectedTextBlocks = getSelectedTextBlocks(editor, rng, root);
1658
- global$5.each(selectedTextBlocks, function (block) {
1685
+ global$2.each(selectedTextBlocks, function (block) {
1659
1686
  var listBlock;
1660
1687
  var sibling = block.previousSibling;
1661
1688
  var parent = block.parentNode;
@@ -1719,7 +1746,7 @@
1719
1746
  dom.remove(sibling);
1720
1747
  }
1721
1748
  };
1722
- var updateList = function (editor, list, listName, detail) {
1749
+ var updateList$1 = function (editor, list, listName, detail) {
1723
1750
  if (list.nodeName !== listName) {
1724
1751
  var newList = editor.dom.rename(list, listName);
1725
1752
  updateListWithDetails(editor.dom, newList, detail);
@@ -1735,10 +1762,10 @@
1735
1762
  flattenListSelection(editor);
1736
1763
  } else {
1737
1764
  applyList(editor, listName, detail);
1738
- var bookmark = createBookmark(editor.selection.getRng(true));
1739
- var allLists = parentIsList ? __spreadArrays([parentList], lists) : lists;
1740
- global$5.each(allLists, function (elm) {
1741
- updateList(editor, elm, listName, detail);
1765
+ var bookmark = createBookmark(editor.selection.getRng());
1766
+ var allLists = parentIsList ? __spreadArray([parentList], lists, true) : lists;
1767
+ global$2.each(allLists, function (elm) {
1768
+ updateList$1(editor, elm, listName, detail);
1742
1769
  });
1743
1770
  editor.selection.setRng(resolveBookmark(bookmark));
1744
1771
  }
@@ -1754,7 +1781,7 @@
1754
1781
  if (parentList.nodeName === listName && !hasListStyleDetail(detail) && !isCustomList(parentList)) {
1755
1782
  flattenListSelection(editor);
1756
1783
  } else {
1757
- var bookmark = createBookmark(editor.selection.getRng(true));
1784
+ var bookmark = createBookmark(editor.selection.getRng());
1758
1785
  updateListWithDetails(editor.dom, parentList, detail);
1759
1786
  var newList = editor.dom.rename(parentList, listName);
1760
1787
  mergeWithAdjacentLists(editor.dom, newList);
@@ -1778,31 +1805,31 @@
1778
1805
  }
1779
1806
  };
1780
1807
 
1781
- var DOM$2 = global$4.DOM;
1782
- var normalizeList = function (dom, ul) {
1783
- var sibling;
1784
- var parentNode = ul.parentNode;
1785
- if (parentNode.nodeName === 'LI' && parentNode.firstChild === ul) {
1786
- sibling = parentNode.previousSibling;
1808
+ var DOM = global$3.DOM;
1809
+ var normalizeList = function (dom, list) {
1810
+ var parentNode = list.parentNode;
1811
+ if (parentNode.nodeName === 'LI' && parentNode.firstChild === list) {
1812
+ var sibling = parentNode.previousSibling;
1787
1813
  if (sibling && sibling.nodeName === 'LI') {
1788
- sibling.appendChild(ul);
1789
- if (isEmpty$1(dom, parentNode)) {
1790
- DOM$2.remove(parentNode);
1814
+ sibling.appendChild(list);
1815
+ if (isEmpty(dom, parentNode)) {
1816
+ DOM.remove(parentNode);
1791
1817
  }
1792
1818
  } else {
1793
- DOM$2.setStyle(parentNode, 'listStyleType', 'none');
1819
+ DOM.setStyle(parentNode, 'listStyleType', 'none');
1794
1820
  }
1795
1821
  }
1796
1822
  if (isListNode(parentNode)) {
1797
- sibling = parentNode.previousSibling;
1823
+ var sibling = parentNode.previousSibling;
1798
1824
  if (sibling && sibling.nodeName === 'LI') {
1799
- sibling.appendChild(ul);
1825
+ sibling.appendChild(list);
1800
1826
  }
1801
1827
  }
1802
1828
  };
1803
1829
  var normalizeLists = function (dom, element) {
1804
- global$5.each(global$5.grep(dom.select('ol,ul', element)), function (ul) {
1805
- normalizeList(dom, ul);
1830
+ var lists = global$2.grep(dom.select('ol,ul', element));
1831
+ global$2.each(lists, function (list) {
1832
+ normalizeList(dom, list);
1806
1833
  });
1807
1834
  };
1808
1835
 
@@ -1814,9 +1841,9 @@
1814
1841
  }
1815
1842
  var nonEmptyBlocks = editor.schema.getNonEmptyElements();
1816
1843
  if (node.nodeType === 1) {
1817
- node = global$1.getNode(node, offset);
1844
+ node = global$6.getNode(node, offset);
1818
1845
  }
1819
- var walker = new global$2(node, root);
1846
+ var walker = new global$5(node, root);
1820
1847
  if (isForward) {
1821
1848
  if (isBogusBr(editor.dom, node)) {
1822
1849
  walker.next();
@@ -1847,7 +1874,7 @@
1847
1874
  var node;
1848
1875
  var targetElm = hasOnlyOneBlockChild(dom, toElm) ? toElm.firstChild : toElm;
1849
1876
  unwrapSingleBlockChild(dom, fromElm);
1850
- if (!isEmpty$1(dom, fromElm, true)) {
1877
+ if (!isEmpty(dom, fromElm, true)) {
1851
1878
  while (node = fromElm.firstChild) {
1852
1879
  targetElm.appendChild(node);
1853
1880
  }
@@ -1871,18 +1898,18 @@
1871
1898
  if (node && isBr(node) && fromElm.hasChildNodes()) {
1872
1899
  dom.remove(node);
1873
1900
  }
1874
- if (isEmpty$1(dom, toElm, true)) {
1901
+ if (isEmpty(dom, toElm, true)) {
1875
1902
  dom.$(toElm).empty();
1876
1903
  }
1877
1904
  moveChildren(dom, fromElm, toElm);
1878
1905
  if (listNode) {
1879
1906
  toElm.appendChild(listNode);
1880
1907
  }
1881
- var contains = contains$1(SugarElement.fromDom(toElm), SugarElement.fromDom(fromElm));
1882
- var nestedLists = contains ? dom.getParents(fromElm, isListNode, toElm) : [];
1908
+ var contains$1 = contains(SugarElement.fromDom(toElm), SugarElement.fromDom(fromElm));
1909
+ var nestedLists = contains$1 ? dom.getParents(fromElm, isListNode, toElm) : [];
1883
1910
  dom.remove(fromElm);
1884
- each(nestedLists, function (list) {
1885
- if (isEmpty$1(dom, list) && list !== dom.getRoot()) {
1911
+ each$1(nestedLists, function (list) {
1912
+ if (isEmpty(dom, list) && list !== dom.getRoot()) {
1886
1913
  dom.remove(list);
1887
1914
  }
1888
1915
  });
@@ -1915,7 +1942,7 @@
1915
1942
  var li = dom.getParent(selection.getStart(), 'LI', root);
1916
1943
  if (li) {
1917
1944
  var ul = li.parentNode;
1918
- if (ul === editor.getBody() && isEmpty$1(dom, ul)) {
1945
+ if (ul === editor.getBody() && isEmpty(dom, ul)) {
1919
1946
  return true;
1920
1947
  }
1921
1948
  var rng_1 = normalizeRange(selection.getRng());
@@ -1990,13 +2017,13 @@
1990
2017
  var backspaceDelete = function (editor, isForward) {
1991
2018
  return editor.selection.isCollapsed() ? backspaceDeleteCaret(editor, isForward) : backspaceDeleteRange(editor);
1992
2019
  };
1993
- var setup = function (editor) {
2020
+ var setup$1 = function (editor) {
1994
2021
  editor.on('keydown', function (e) {
1995
- if (e.keyCode === global$3.BACKSPACE) {
2022
+ if (e.keyCode === global$4.BACKSPACE) {
1996
2023
  if (backspaceDelete(editor, false)) {
1997
2024
  e.preventDefault();
1998
2025
  }
1999
- } else if (e.keyCode === global$3.DELETE) {
2026
+ } else if (e.keyCode === global$4.DELETE) {
2000
2027
  if (backspaceDelete(editor, true)) {
2001
2028
  e.preventDefault();
2002
2029
  }
@@ -2004,7 +2031,7 @@
2004
2031
  });
2005
2032
  };
2006
2033
 
2007
- var get$1 = function (editor) {
2034
+ var get = function (editor) {
2008
2035
  return {
2009
2036
  backspaceDelete: function (isForward) {
2010
2037
  backspaceDelete(editor, isForward);
@@ -2012,14 +2039,14 @@
2012
2039
  };
2013
2040
  };
2014
2041
 
2015
- var updateList$1 = function (editor, update) {
2042
+ var updateList = function (editor, update) {
2016
2043
  var parentList = getParentList(editor);
2017
2044
  editor.undoManager.transact(function () {
2018
2045
  if (isObject(update.styles)) {
2019
2046
  editor.dom.setStyles(parentList, update.styles);
2020
2047
  }
2021
2048
  if (isObject(update.attrs)) {
2022
- each$1(update.attrs, function (v, k) {
2049
+ each(update.attrs, function (v, k) {
2023
2050
  return editor.dom.setAttrib(parentList, k, v);
2024
2051
  });
2025
2052
  }
@@ -2064,7 +2091,7 @@
2064
2091
  return 0;
2065
2092
  } else if (isLowercase(start)) {
2066
2093
  return 1;
2067
- } else if (isEmpty(start)) {
2094
+ } else if (isEmpty$1(start)) {
2068
2095
  return 3;
2069
2096
  } else {
2070
2097
  return 4;
@@ -2098,9 +2125,9 @@
2098
2125
  };
2099
2126
  var parseDetail = function (detail) {
2100
2127
  var start = parseInt(detail.start, 10);
2101
- if (detail.listStyleType.is('upper-alpha')) {
2128
+ if (is(detail.listStyleType, 'upper-alpha')) {
2102
2129
  return composeAlphabeticBase26(start);
2103
- } else if (detail.listStyleType.is('lower-alpha')) {
2130
+ } else if (is(detail.listStyleType, 'lower-alpha')) {
2104
2131
  return composeAlphabeticBase26(start).toLowerCase();
2105
2132
  } else {
2106
2133
  return detail.start;
@@ -2166,7 +2193,7 @@
2166
2193
  open(editor);
2167
2194
  });
2168
2195
  };
2169
- var register = function (editor) {
2196
+ var register$2 = function (editor) {
2170
2197
  editor.on('BeforeExecCommand', function (e) {
2171
2198
  var cmd = e.command.toLowerCase();
2172
2199
  if (cmd === 'indent') {
@@ -2190,7 +2217,7 @@
2190
2217
  registerDialog(editor);
2191
2218
  editor.addCommand('mceListUpdate', function (ui, detail) {
2192
2219
  if (isObject(detail)) {
2193
- updateList$1(editor, detail);
2220
+ updateList(editor, detail);
2194
2221
  }
2195
2222
  });
2196
2223
  editor.addQueryStateHandler('InsertUnorderedList', queryListCommandState(editor, 'UL'));
@@ -2200,7 +2227,7 @@
2200
2227
 
2201
2228
  var setupTabKey = function (editor) {
2202
2229
  editor.on('keydown', function (e) {
2203
- if (e.keyCode !== global$3.TAB || global$3.metaKeyPressed(e)) {
2230
+ if (e.keyCode !== global$4.TAB || global$4.metaKeyPressed(e)) {
2204
2231
  return;
2205
2232
  }
2206
2233
  editor.undoManager.transact(function () {
@@ -2210,11 +2237,11 @@
2210
2237
  });
2211
2238
  });
2212
2239
  };
2213
- var setup$1 = function (editor) {
2240
+ var setup = function (editor) {
2214
2241
  if (shouldIndentOnTab(editor)) {
2215
2242
  setupTabKey(editor);
2216
2243
  }
2217
- setup(editor);
2244
+ setup$1(editor);
2218
2245
  };
2219
2246
 
2220
2247
  var register$1 = function (editor) {
@@ -2245,7 +2272,7 @@
2245
2272
  }
2246
2273
  };
2247
2274
 
2248
- var register$2 = function (editor) {
2275
+ var register = function (editor) {
2249
2276
  var listProperties = {
2250
2277
  text: 'List properties...',
2251
2278
  icon: 'ordered-list',
@@ -2268,16 +2295,16 @@
2268
2295
  };
2269
2296
 
2270
2297
  function Plugin () {
2271
- global.add('lists', function (editor) {
2298
+ global$7.add('lists', function (editor) {
2272
2299
  if (editor.hasPlugin('rtc', true) === false) {
2273
- setup$1(editor);
2274
- register(editor);
2300
+ setup(editor);
2301
+ register$2(editor);
2275
2302
  } else {
2276
2303
  registerDialog(editor);
2277
2304
  }
2278
2305
  register$1(editor);
2279
- register$2(editor);
2280
- return get$1(editor);
2306
+ register(editor);
2307
+ return get(editor);
2281
2308
  });
2282
2309
  }
2283
2310