설명 없음

style-inject.es-0fe0d479.js 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  2. function unwrapExports (x) {
  3. return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
  4. }
  5. function createCommonjsModule(fn, module) {
  6. return module = { exports: {} }, fn(module, module.exports), module.exports;
  7. }
  8. function getCjsExportFromNamespace (n) {
  9. return n && n['default'] || n;
  10. }
  11. function _classCallCheck(instance, Constructor) {
  12. if (!(instance instanceof Constructor)) {
  13. throw new TypeError("Cannot call a class as a function");
  14. }
  15. }
  16. function _defineProperties(target, props) {
  17. for (var i = 0; i < props.length; i++) {
  18. var descriptor = props[i];
  19. descriptor.enumerable = descriptor.enumerable || false;
  20. descriptor.configurable = true;
  21. if ("value" in descriptor) descriptor.writable = true;
  22. Object.defineProperty(target, descriptor.key, descriptor);
  23. }
  24. }
  25. function _createClass(Constructor, protoProps, staticProps) {
  26. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  27. if (staticProps) _defineProperties(Constructor, staticProps);
  28. return Constructor;
  29. }
  30. function _defineProperty(obj, key, value) {
  31. if (key in obj) {
  32. Object.defineProperty(obj, key, {
  33. value: value,
  34. enumerable: true,
  35. configurable: true,
  36. writable: true
  37. });
  38. } else {
  39. obj[key] = value;
  40. }
  41. return obj;
  42. }
  43. function _inherits(subClass, superClass) {
  44. if (typeof superClass !== "function" && superClass !== null) {
  45. throw new TypeError("Super expression must either be null or a function");
  46. }
  47. subClass.prototype = Object.create(superClass && superClass.prototype, {
  48. constructor: {
  49. value: subClass,
  50. writable: true,
  51. configurable: true
  52. }
  53. });
  54. if (superClass) _setPrototypeOf(subClass, superClass);
  55. }
  56. function _getPrototypeOf(o) {
  57. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  58. return o.__proto__ || Object.getPrototypeOf(o);
  59. };
  60. return _getPrototypeOf(o);
  61. }
  62. function _setPrototypeOf(o, p) {
  63. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  64. o.__proto__ = p;
  65. return o;
  66. };
  67. return _setPrototypeOf(o, p);
  68. }
  69. function _assertThisInitialized(self) {
  70. if (self === void 0) {
  71. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  72. }
  73. return self;
  74. }
  75. function _possibleConstructorReturn(self, call) {
  76. if (call && (typeof call === "object" || typeof call === "function")) {
  77. return call;
  78. }
  79. return _assertThisInitialized(self);
  80. }
  81. function _slicedToArray(arr, i) {
  82. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  83. }
  84. function _arrayWithHoles(arr) {
  85. if (Array.isArray(arr)) return arr;
  86. }
  87. function _iterableToArrayLimit(arr, i) {
  88. if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
  89. return;
  90. }
  91. var _arr = [];
  92. var _n = true;
  93. var _d = false;
  94. var _e = undefined;
  95. try {
  96. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  97. _arr.push(_s.value);
  98. if (i && _arr.length === i) break;
  99. }
  100. } catch (err) {
  101. _d = true;
  102. _e = err;
  103. } finally {
  104. try {
  105. if (!_n && _i["return"] != null) _i["return"]();
  106. } finally {
  107. if (_d) throw _e;
  108. }
  109. }
  110. return _arr;
  111. }
  112. function _nonIterableRest() {
  113. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  114. }
  115. var classnames = createCommonjsModule(function (module) {
  116. /*!
  117. Copyright (c) 2017 Jed Watson.
  118. Licensed under the MIT License (MIT), see
  119. http://jedwatson.github.io/classnames
  120. */
  121. /* global define */
  122. (function () {
  123. var hasOwn = {}.hasOwnProperty;
  124. function classNames () {
  125. var classes = [];
  126. for (var i = 0; i < arguments.length; i++) {
  127. var arg = arguments[i];
  128. if (!arg) continue;
  129. var argType = typeof arg;
  130. if (argType === 'string' || argType === 'number') {
  131. classes.push(arg);
  132. } else if (Array.isArray(arg) && arg.length) {
  133. var inner = classNames.apply(null, arg);
  134. if (inner) {
  135. classes.push(inner);
  136. }
  137. } else if (argType === 'object') {
  138. for (var key in arg) {
  139. if (hasOwn.call(arg, key) && arg[key]) {
  140. classes.push(key);
  141. }
  142. }
  143. }
  144. }
  145. return classes.join(' ');
  146. }
  147. if ( module.exports) {
  148. classNames.default = classNames;
  149. module.exports = classNames;
  150. } else {
  151. window.classNames = classNames;
  152. }
  153. }());
  154. });
  155. function styleInject(css, ref) {
  156. if ( ref === void 0 ) ref = {};
  157. var insertAt = ref.insertAt;
  158. if (!css || typeof document === 'undefined') { return; }
  159. var head = document.head || document.getElementsByTagName('head')[0];
  160. var style = document.createElement('style');
  161. style.type = 'text/css';
  162. if (insertAt === 'top') {
  163. if (head.firstChild) {
  164. head.insertBefore(style, head.firstChild);
  165. } else {
  166. head.appendChild(style);
  167. }
  168. } else {
  169. head.appendChild(style);
  170. }
  171. if (style.styleSheet) {
  172. style.styleSheet.cssText = css;
  173. } else {
  174. style.appendChild(document.createTextNode(css));
  175. }
  176. }
  177. export { _inherits as _, commonjsGlobal as a, _createClass as b, createCommonjsModule as c, _defineProperty as d, _classCallCheck as e, _possibleConstructorReturn as f, getCjsExportFromNamespace as g, _getPrototypeOf as h, classnames as i, _slicedToArray as j, styleInject as s, unwrapExports as u };
  178. //# sourceMappingURL=style-inject.es-0fe0d479.js.map