@ntlab/ntjs-assets 2.0.2 → 2.0.3

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 (235) hide show
  1. package/assets/js/bootstrap-icons/bootstrap-icons.svg +1 -1
  2. package/assets/js/bootstrap-icons/folder-plus.svg +2 -2
  3. package/assets/js/bootstrap-icons/font/bootstrap-icons.css +1981 -0
  4. package/assets/js/bootstrap-icons/font/bootstrap-icons.json +1955 -0
  5. package/assets/js/bootstrap-icons/font/bootstrap-icons.min.css +5 -0
  6. package/assets/js/bootstrap-icons/font/bootstrap-icons.scss +1993 -0
  7. package/assets/js/bootstrap-icons/font/fonts/bootstrap-icons.woff +0 -0
  8. package/assets/js/bootstrap-icons/font/fonts/bootstrap-icons.woff2 +0 -0
  9. package/assets/js/bootstrap-icons/postcard-heart-fill.svg +1 -1
  10. package/assets/js/bootstrap-icons/trash.svg +2 -2
  11. package/assets/js/jquery/jquery.js +840 -1045
  12. package/assets/js/jquery/jquery.min.js +2 -2
  13. package/assets/js/jquery/jquery.min.map +1 -1
  14. package/assets/js/jquery/jquery.slim.js +834 -1039
  15. package/assets/js/jquery/jquery.slim.min.js +2 -2
  16. package/assets/js/jquery/jquery.slim.min.map +1 -1
  17. package/assets/js/popper.js/cjs/enums.js +1 -1
  18. package/assets/js/popper.js/cjs/popper-base.js +12 -170
  19. package/assets/js/popper.js/cjs/popper-base.js.map +1 -1
  20. package/assets/js/popper.js/cjs/popper-lite.js +14 -184
  21. package/assets/js/popper.js/cjs/popper-lite.js.map +1 -1
  22. package/assets/js/popper.js/cjs/popper.js +14 -197
  23. package/assets/js/popper.js/cjs/popper.js.map +1 -1
  24. package/assets/js/popper.js/esm/createPopper.js +6 -66
  25. package/assets/js/popper.js/esm/modifiers/arrow.js +1 -12
  26. package/assets/js/popper.js/esm/modifiers/computeStyles.js +2 -14
  27. package/assets/js/popper.js/esm/utils/computeAutoPlacement.js +0 -4
  28. package/assets/js/popper.js/esm/utils/userAgent.js +1 -1
  29. package/assets/js/popper.js/umd/enums.js +1 -1
  30. package/assets/js/popper.js/umd/enums.min.js +1 -1
  31. package/assets/js/popper.js/umd/popper-base.js +12 -170
  32. package/assets/js/popper.js/umd/popper-base.js.map +1 -1
  33. package/assets/js/popper.js/umd/popper-base.min.js +2 -2
  34. package/assets/js/popper.js/umd/popper-base.min.js.map +1 -1
  35. package/assets/js/popper.js/umd/popper-lite.js +14 -184
  36. package/assets/js/popper.js/umd/popper-lite.js.map +1 -1
  37. package/assets/js/popper.js/umd/popper-lite.min.js +2 -2
  38. package/assets/js/popper.js/umd/popper-lite.min.js.map +1 -1
  39. package/assets/js/popper.js/umd/popper.js +14 -197
  40. package/assets/js/popper.js/umd/popper.js.map +1 -1
  41. package/assets/js/popper.js/umd/popper.min.js +2 -2
  42. package/assets/js/popper.js/umd/popper.min.js.map +1 -1
  43. package/assets/js/semantic-ui/components/accordion.css +196 -74
  44. package/assets/js/semantic-ui/components/accordion.js +570 -591
  45. package/assets/js/semantic-ui/components/accordion.min.css +4 -4
  46. package/assets/js/semantic-ui/components/accordion.min.js +6 -6
  47. package/assets/js/semantic-ui/components/ad.css +40 -51
  48. package/assets/js/semantic-ui/components/ad.min.css +4 -4
  49. package/assets/js/semantic-ui/components/api.js +1154 -1117
  50. package/assets/js/semantic-ui/components/api.min.js +6 -6
  51. package/assets/js/semantic-ui/components/breadcrumb.css +7 -7
  52. package/assets/js/semantic-ui/components/breadcrumb.min.css +4 -4
  53. package/assets/js/semantic-ui/components/button.css +895 -1227
  54. package/assets/js/semantic-ui/components/button.min.css +4 -4
  55. package/assets/js/semantic-ui/components/calendar.css +60 -33
  56. package/assets/js/semantic-ui/components/calendar.js +1952 -1575
  57. package/assets/js/semantic-ui/components/calendar.min.css +4 -4
  58. package/assets/js/semantic-ui/components/calendar.min.js +6 -6
  59. package/assets/js/semantic-ui/components/card.css +1004 -441
  60. package/assets/js/semantic-ui/components/card.min.css +4 -4
  61. package/assets/js/semantic-ui/components/checkbox.css +275 -303
  62. package/assets/js/semantic-ui/components/checkbox.js +863 -855
  63. package/assets/js/semantic-ui/components/checkbox.min.css +4 -4
  64. package/assets/js/semantic-ui/components/checkbox.min.js +6 -6
  65. package/assets/js/semantic-ui/components/comment.css +45 -63
  66. package/assets/js/semantic-ui/components/comment.min.css +4 -4
  67. package/assets/js/semantic-ui/components/container.css +98 -4
  68. package/assets/js/semantic-ui/components/container.min.css +4 -4
  69. package/assets/js/semantic-ui/components/dimmer.css +95 -196
  70. package/assets/js/semantic-ui/components/dimmer.js +698 -717
  71. package/assets/js/semantic-ui/components/dimmer.min.css +4 -4
  72. package/assets/js/semantic-ui/components/dimmer.min.js +6 -6
  73. package/assets/js/semantic-ui/components/divider.css +75 -93
  74. package/assets/js/semantic-ui/components/divider.min.css +4 -4
  75. package/assets/js/semantic-ui/components/dropdown.css +490 -413
  76. package/assets/js/semantic-ui/components/dropdown.js +4203 -4068
  77. package/assets/js/semantic-ui/components/dropdown.min.css +4 -4
  78. package/assets/js/semantic-ui/components/dropdown.min.js +6 -6
  79. package/assets/js/semantic-ui/components/embed.css +27 -38
  80. package/assets/js/semantic-ui/components/embed.js +647 -673
  81. package/assets/js/semantic-ui/components/embed.min.css +4 -4
  82. package/assets/js/semantic-ui/components/embed.min.js +6 -6
  83. package/assets/js/semantic-ui/components/emoji.css +11156 -9192
  84. package/assets/js/semantic-ui/components/emoji.min.css +3 -3
  85. package/assets/js/semantic-ui/components/feed.css +56 -78
  86. package/assets/js/semantic-ui/components/feed.min.css +4 -4
  87. package/assets/js/semantic-ui/components/flag.css +1037 -929
  88. package/assets/js/semantic-ui/components/flag.min.css +4 -4
  89. package/assets/js/semantic-ui/components/flyout.css +552 -0
  90. package/assets/js/semantic-ui/components/flyout.js +1567 -0
  91. package/assets/js/semantic-ui/components/flyout.min.css +9 -0
  92. package/assets/js/semantic-ui/components/flyout.min.js +11 -0
  93. package/assets/js/semantic-ui/components/form.css +536 -530
  94. package/assets/js/semantic-ui/components/form.js +2037 -1945
  95. package/assets/js/semantic-ui/components/form.min.css +4 -4
  96. package/assets/js/semantic-ui/components/form.min.js +6 -6
  97. package/assets/js/semantic-ui/components/grid.css +218 -345
  98. package/assets/js/semantic-ui/components/grid.min.css +4 -4
  99. package/assets/js/semantic-ui/components/header.css +137 -154
  100. package/assets/js/semantic-ui/components/header.min.css +4 -4
  101. package/assets/js/semantic-ui/components/icon.css +3000 -2750
  102. package/assets/js/semantic-ui/components/icon.min.css +4 -4
  103. package/assets/js/semantic-ui/components/image.css +54 -49
  104. package/assets/js/semantic-ui/components/image.min.css +4 -4
  105. package/assets/js/semantic-ui/components/input.css +1081 -227
  106. package/assets/js/semantic-ui/components/input.min.css +4 -4
  107. package/assets/js/semantic-ui/components/item.css +91 -138
  108. package/assets/js/semantic-ui/components/item.min.css +4 -4
  109. package/assets/js/semantic-ui/components/label.css +470 -481
  110. package/assets/js/semantic-ui/components/label.min.css +4 -4
  111. package/assets/js/semantic-ui/components/list.css +93 -114
  112. package/assets/js/semantic-ui/components/list.min.css +4 -4
  113. package/assets/js/semantic-ui/components/loader.css +452 -536
  114. package/assets/js/semantic-ui/components/loader.min.css +4 -4
  115. package/assets/js/semantic-ui/components/menu.css +408 -510
  116. package/assets/js/semantic-ui/components/menu.min.css +9 -1
  117. package/assets/js/semantic-ui/components/message.css +188 -213
  118. package/assets/js/semantic-ui/components/message.min.css +4 -4
  119. package/assets/js/semantic-ui/components/modal.css +174 -166
  120. package/assets/js/semantic-ui/components/modal.js +1558 -1146
  121. package/assets/js/semantic-ui/components/modal.min.css +4 -4
  122. package/assets/js/semantic-ui/components/modal.min.js +6 -6
  123. package/assets/js/semantic-ui/components/nag.css +183 -41
  124. package/assets/js/semantic-ui/components/nag.js +527 -467
  125. package/assets/js/semantic-ui/components/nag.min.css +4 -4
  126. package/assets/js/semantic-ui/components/nag.min.js +6 -6
  127. package/assets/js/semantic-ui/components/placeholder.css +62 -76
  128. package/assets/js/semantic-ui/components/placeholder.min.css +4 -4
  129. package/assets/js/semantic-ui/components/popup.css +681 -312
  130. package/assets/js/semantic-ui/components/popup.js +1470 -1463
  131. package/assets/js/semantic-ui/components/popup.min.css +4 -4
  132. package/assets/js/semantic-ui/components/popup.min.js +6 -6
  133. package/assets/js/semantic-ui/components/progress.css +149 -217
  134. package/assets/js/semantic-ui/components/progress.js +945 -1002
  135. package/assets/js/semantic-ui/components/progress.min.css +4 -4
  136. package/assets/js/semantic-ui/components/progress.min.js +6 -6
  137. package/assets/js/semantic-ui/components/rail.css +17 -22
  138. package/assets/js/semantic-ui/components/rail.min.css +3 -3
  139. package/assets/js/semantic-ui/components/rating.css +89 -184
  140. package/assets/js/semantic-ui/components/rating.js +509 -521
  141. package/assets/js/semantic-ui/components/rating.min.css +4 -4
  142. package/assets/js/semantic-ui/components/rating.min.js +6 -6
  143. package/assets/js/semantic-ui/components/reset.css +12 -17
  144. package/assets/js/semantic-ui/components/reset.min.css +4 -4
  145. package/assets/js/semantic-ui/components/reveal.css +46 -85
  146. package/assets/js/semantic-ui/components/reveal.min.css +4 -4
  147. package/assets/js/semantic-ui/components/search.css +157 -96
  148. package/assets/js/semantic-ui/components/search.js +1522 -1479
  149. package/assets/js/semantic-ui/components/search.min.css +4 -4
  150. package/assets/js/semantic-ui/components/search.min.js +6 -6
  151. package/assets/js/semantic-ui/components/segment.css +317 -249
  152. package/assets/js/semantic-ui/components/segment.min.css +4 -4
  153. package/assets/js/semantic-ui/components/shape.css +16 -32
  154. package/assets/js/semantic-ui/components/shape.js +763 -812
  155. package/assets/js/semantic-ui/components/shape.min.css +4 -4
  156. package/assets/js/semantic-ui/components/shape.min.js +6 -6
  157. package/assets/js/semantic-ui/components/sidebar.css +128 -216
  158. package/assets/js/semantic-ui/components/sidebar.js +1042 -1003
  159. package/assets/js/semantic-ui/components/sidebar.min.css +4 -4
  160. package/assets/js/semantic-ui/components/sidebar.min.js +6 -6
  161. package/assets/js/semantic-ui/components/site.css +123 -48
  162. package/assets/js/semantic-ui/components/site.js +438 -478
  163. package/assets/js/semantic-ui/components/site.min.css +4 -4
  164. package/assets/js/semantic-ui/components/site.min.js +6 -6
  165. package/assets/js/semantic-ui/components/slider.css +133 -141
  166. package/assets/js/semantic-ui/components/slider.js +1312 -1274
  167. package/assets/js/semantic-ui/components/slider.min.css +9 -1
  168. package/assets/js/semantic-ui/components/slider.min.js +6 -6
  169. package/assets/js/semantic-ui/components/state.js +640 -659
  170. package/assets/js/semantic-ui/components/state.min.js +6 -6
  171. package/assets/js/semantic-ui/components/statistic.css +83 -124
  172. package/assets/js/semantic-ui/components/statistic.min.css +4 -4
  173. package/assets/js/semantic-ui/components/step.css +118 -184
  174. package/assets/js/semantic-ui/components/step.min.css +4 -4
  175. package/assets/js/semantic-ui/components/sticky.css +3 -8
  176. package/assets/js/semantic-ui/components/sticky.js +849 -892
  177. package/assets/js/semantic-ui/components/sticky.min.css +4 -4
  178. package/assets/js/semantic-ui/components/sticky.min.js +6 -6
  179. package/assets/js/semantic-ui/components/tab.css +16 -20
  180. package/assets/js/semantic-ui/components/tab.js +896 -941
  181. package/assets/js/semantic-ui/components/tab.min.css +4 -4
  182. package/assets/js/semantic-ui/components/tab.min.js +6 -6
  183. package/assets/js/semantic-ui/components/table.css +2073 -884
  184. package/assets/js/semantic-ui/components/table.min.css +4 -4
  185. package/assets/js/semantic-ui/components/text.css +51 -30
  186. package/assets/js/semantic-ui/components/text.min.css +4 -4
  187. package/assets/js/semantic-ui/components/toast.css +200 -137
  188. package/assets/js/semantic-ui/components/toast.js +912 -832
  189. package/assets/js/semantic-ui/components/toast.min.css +4 -4
  190. package/assets/js/semantic-ui/components/toast.min.js +6 -6
  191. package/assets/js/semantic-ui/components/transition.css +371 -1282
  192. package/assets/js/semantic-ui/components/transition.js +999 -1074
  193. package/assets/js/semantic-ui/components/transition.min.css +4 -4
  194. package/assets/js/semantic-ui/components/transition.min.js +6 -6
  195. package/assets/js/semantic-ui/components/visibility.js +1215 -1247
  196. package/assets/js/semantic-ui/components/visibility.min.js +6 -6
  197. package/assets/js/semantic-ui/semantic.css +43777 -37429
  198. package/assets/js/semantic-ui/semantic.js +29152 -26694
  199. package/assets/js/semantic-ui/semantic.min.css +6 -399
  200. package/assets/js/semantic-ui/semantic.min.js +6 -6
  201. package/assets/js/semantic-ui/themes/basic/assets/fonts/icons.woff2 +0 -0
  202. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  203. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  204. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  205. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  206. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  207. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  208. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  209. package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  210. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  211. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  212. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  213. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  214. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  215. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  216. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  217. package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  218. package/assets/js/semantic-ui/themes/default/assets/fonts/brand-icons.woff +0 -0
  219. package/assets/js/semantic-ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  220. package/assets/js/semantic-ui/themes/default/assets/fonts/icons.woff +0 -0
  221. package/assets/js/semantic-ui/themes/default/assets/fonts/icons.woff2 +0 -0
  222. package/assets/js/semantic-ui/themes/default/assets/fonts/outline-icons.woff +0 -0
  223. package/assets/js/semantic-ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  224. package/assets/js/semantic-ui/themes/famfamfam/assets/images/flags.png +0 -0
  225. package/assets/js/semantic-ui/themes/github/assets/fonts/octicons.woff2 +0 -0
  226. package/assets/js/socket.io/socket.io.esm.min.js +3 -3
  227. package/assets/js/socket.io/socket.io.esm.min.js.map +1 -1
  228. package/assets/js/socket.io/socket.io.js +841 -333
  229. package/assets/js/socket.io/socket.io.js.map +1 -1
  230. package/assets/js/socket.io/socket.io.min.js +3 -3
  231. package/assets/js/socket.io/socket.io.min.js.map +1 -1
  232. package/assets/js/socket.io/socket.io.msgpack.min.js +3 -3
  233. package/assets/js/socket.io/socket.io.msgpack.min.js.map +1 -1
  234. package/cdn.json +19 -4
  235. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @popperjs/core v2.11.6 - MIT License
2
+ * @popperjs/core v2.11.8 - MIT License
3
3
  */
4
4
 
5
5
  (function (global, factory) {
@@ -48,7 +48,7 @@
48
48
  function getUAString() {
49
49
  var uaData = navigator.userAgentData;
50
50
 
51
- if (uaData != null && uaData.brands) {
51
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
52
52
  return uaData.brands.map(function (item) {
53
53
  return item.brand + "/" + item.version;
54
54
  }).join(' ');
@@ -444,112 +444,6 @@
444
444
  };
445
445
  }
446
446
 
447
- function format(str) {
448
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
449
- args[_key - 1] = arguments[_key];
450
- }
451
-
452
- return [].concat(args).reduce(function (p, c) {
453
- return p.replace(/%s/, c);
454
- }, str);
455
- }
456
-
457
- var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
458
- var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
459
- var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
460
- function validateModifiers(modifiers) {
461
- modifiers.forEach(function (modifier) {
462
- [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
463
- .filter(function (value, index, self) {
464
- return self.indexOf(value) === index;
465
- }).forEach(function (key) {
466
- switch (key) {
467
- case 'name':
468
- if (typeof modifier.name !== 'string') {
469
- console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
470
- }
471
-
472
- break;
473
-
474
- case 'enabled':
475
- if (typeof modifier.enabled !== 'boolean') {
476
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
477
- }
478
-
479
- break;
480
-
481
- case 'phase':
482
- if (modifierPhases.indexOf(modifier.phase) < 0) {
483
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
484
- }
485
-
486
- break;
487
-
488
- case 'fn':
489
- if (typeof modifier.fn !== 'function') {
490
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
491
- }
492
-
493
- break;
494
-
495
- case 'effect':
496
- if (modifier.effect != null && typeof modifier.effect !== 'function') {
497
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
498
- }
499
-
500
- break;
501
-
502
- case 'requires':
503
- if (modifier.requires != null && !Array.isArray(modifier.requires)) {
504
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
505
- }
506
-
507
- break;
508
-
509
- case 'requiresIfExists':
510
- if (!Array.isArray(modifier.requiresIfExists)) {
511
- console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
512
- }
513
-
514
- break;
515
-
516
- case 'options':
517
- case 'data':
518
- break;
519
-
520
- default:
521
- console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
522
- return "\"" + s + "\"";
523
- }).join(', ') + "; but \"" + key + "\" was provided.");
524
- }
525
-
526
- modifier.requires && modifier.requires.forEach(function (requirement) {
527
- if (modifiers.find(function (mod) {
528
- return mod.name === requirement;
529
- }) == null) {
530
- console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
531
- }
532
- });
533
- });
534
- });
535
- }
536
-
537
- function uniqueBy(arr, fn) {
538
- var identifiers = new Set();
539
- return arr.filter(function (item) {
540
- var identifier = fn(item);
541
-
542
- if (!identifiers.has(identifier)) {
543
- identifiers.add(identifier);
544
- return true;
545
- }
546
- });
547
- }
548
-
549
- function getBasePlacement(placement) {
550
- return placement.split('-')[0];
551
- }
552
-
553
447
  function mergeByName(modifiers) {
554
448
  var merged = modifiers.reduce(function (merged, current) {
555
449
  var existing = merged[current.name];
@@ -706,6 +600,10 @@
706
600
  return clippingRect;
707
601
  }
708
602
 
603
+ function getBasePlacement(placement) {
604
+ return placement.split('-')[0];
605
+ }
606
+
709
607
  function getVariation(placement) {
710
608
  return placement.split('-')[1];
711
609
  }
@@ -855,8 +753,6 @@
855
753
  return overflowOffsets;
856
754
  }
857
755
 
858
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
859
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
860
756
  var DEFAULT_OPTIONS = {
861
757
  placement: 'bottom',
862
758
  modifiers: [],
@@ -918,42 +814,7 @@
918
814
 
919
815
  state.orderedModifiers = orderedModifiers.filter(function (m) {
920
816
  return m.enabled;
921
- }); // Validate the provided modifiers so that the consumer will get warned
922
- // if one of the modifiers is invalid for any reason
923
-
924
- {
925
- var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
926
- var name = _ref.name;
927
- return name;
928
- });
929
- validateModifiers(modifiers);
930
-
931
- if (getBasePlacement(state.options.placement) === auto) {
932
- var flipModifier = state.orderedModifiers.find(function (_ref2) {
933
- var name = _ref2.name;
934
- return name === 'flip';
935
- });
936
-
937
- if (!flipModifier) {
938
- console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
939
- }
940
- }
941
-
942
- var _getComputedStyle = getComputedStyle(popper),
943
- marginTop = _getComputedStyle.marginTop,
944
- marginRight = _getComputedStyle.marginRight,
945
- marginBottom = _getComputedStyle.marginBottom,
946
- marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
947
- // cause bugs with positioning, so we'll warn the consumer
948
-
949
-
950
- if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
951
- return parseFloat(margin);
952
- })) {
953
- console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
954
- }
955
- }
956
-
817
+ });
957
818
  runModifierEffects();
958
819
  return instance.update();
959
820
  },
@@ -973,10 +834,6 @@
973
834
  // anymore
974
835
 
975
836
  if (!areValidElements(reference, popper)) {
976
- {
977
- console.error(INVALID_ELEMENT_ERROR);
978
- }
979
-
980
837
  return;
981
838
  } // Store the reference and popper rects to be read by modifiers
982
839
 
@@ -999,18 +856,8 @@
999
856
  state.orderedModifiers.forEach(function (modifier) {
1000
857
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
1001
858
  });
1002
- var __debug_loops__ = 0;
1003
859
 
1004
860
  for (var index = 0; index < state.orderedModifiers.length; index++) {
1005
- {
1006
- __debug_loops__ += 1;
1007
-
1008
- if (__debug_loops__ > 100) {
1009
- console.error(INFINITE_LOOP_ERROR);
1010
- break;
1011
- }
1012
- }
1013
-
1014
861
  if (state.reset === true) {
1015
862
  state.reset = false;
1016
863
  index = -1;
@@ -1048,10 +895,6 @@
1048
895
  };
1049
896
 
1050
897
  if (!areValidElements(reference, popper)) {
1051
- {
1052
- console.error(INVALID_ELEMENT_ERROR);
1053
- }
1054
-
1055
898
  return instance;
1056
899
  }
1057
900
 
@@ -1066,11 +909,11 @@
1066
909
  // one.
1067
910
 
1068
911
  function runModifierEffects() {
1069
- state.orderedModifiers.forEach(function (_ref3) {
1070
- var name = _ref3.name,
1071
- _ref3$options = _ref3.options,
1072
- options = _ref3$options === void 0 ? {} : _ref3$options,
1073
- effect = _ref3.effect;
912
+ state.orderedModifiers.forEach(function (_ref) {
913
+ var name = _ref.name,
914
+ _ref$options = _ref.options,
915
+ options = _ref$options === void 0 ? {} : _ref$options,
916
+ effect = _ref.effect;
1074
917
 
1075
918
  if (typeof effect === 'function') {
1076
919
  var cleanupFn = effect({
@@ -1179,10 +1022,9 @@
1179
1022
  // Zooming can change the DPR, but it seems to report a value that will
1180
1023
  // cleanly divide the values into the appropriate subpixels.
1181
1024
 
1182
- function roundOffsetsByDPR(_ref) {
1025
+ function roundOffsetsByDPR(_ref, win) {
1183
1026
  var x = _ref.x,
1184
1027
  y = _ref.y;
1185
- var win = window;
1186
1028
  var dpr = win.devicePixelRatio || 1;
1187
1029
  return {
1188
1030
  x: round(x * dpr) / dpr || 0,
@@ -1265,7 +1107,7 @@
1265
1107
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
1266
1108
  x: x,
1267
1109
  y: y
1268
- }) : {
1110
+ }, getWindow(popper)) : {
1269
1111
  x: x,
1270
1112
  y: y
1271
1113
  };
@@ -1291,17 +1133,6 @@
1291
1133
  adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
1292
1134
  _options$roundOffsets = options.roundOffsets,
1293
1135
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
1294
-
1295
- {
1296
- var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
1297
-
1298
- if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
1299
- return transitionProperty.indexOf(property) >= 0;
1300
- })) {
1301
- console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
1302
- }
1303
- }
1304
-
1305
1136
  var commonStyles = {
1306
1137
  placement: getBasePlacement(state.placement),
1307
1138
  variation: getVariation(state.placement),
@@ -1523,10 +1354,6 @@
1523
1354
 
1524
1355
  if (allowedPlacements.length === 0) {
1525
1356
  allowedPlacements = placements$1;
1526
-
1527
- {
1528
- console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
1529
- }
1530
1357
  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
1531
1358
 
1532
1359
 
@@ -1890,17 +1717,7 @@
1890
1717
  }
1891
1718
  }
1892
1719
 
1893
- {
1894
- if (!isHTMLElement(arrowElement)) {
1895
- console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
1896
- }
1897
- }
1898
-
1899
1720
  if (!contains(state.elements.popper, arrowElement)) {
1900
- {
1901
- console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
1902
- }
1903
-
1904
1721
  return;
1905
1722
  }
1906
1723