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AAQ,SAAU,IACA,IAA5B,EAAU,QAAQ,KAClB,EAAI,GAAO,EAAK,GAExB,IACO,CACX,CAEA,IAAI,QAAU,SAAW,GACrB,SAAS,IACL,gBAAgB,KAAM,GAEE,MAApB,GACA,EAAiB,MAAM,KAAM,UAErC,CAkCA,OAhCA,UAAU,EAAS,GAEnB,aAAa,EAAS,CAAC,CACnB,IAAK,eACL,MAAO,WACH,IAAI,EAAO,OAAO,CAAC,EAAG,KAAK,MAAO,CAAC,MAAO,MAAO,SACjD,OAAO,MAAM,cAAc,SAAU,SAAS,CAAE,IAAK,KAAK,MAAM,KAAO,GAC3E,GACD,CACC,IAAK,aACL,MAAO,WACH,IAAI,EAAQ,KAAK,MACb,EAAO,OAAO,GACd,EAAO,KAAK,MAAM,MAAQ,WAC1B,EAAM,KAAK,MAAM,KAAO,aACxB,EAAO,OAAO,CAAC,EAAG,EAAO,CAAC,MAAO,MAAO,OAAQ,OAAQ,QAC5D,OAAO,MAAM,cAAc,OAAQ,SAAS,CAAE,KAAM,EAAM,KAAM,EAAM,IAAK,GAAO,GACtF,GACD,CACC,IAAK,SACL,MAAO,WACH,IACI,EAAM,OADE,KAAK,OAGjB,MAAsC,SADvB,IAAI,MAAM,GAAK,UAAY,IAC7B,OAAO,GACT,KAAK,eAEL,KAAK,YAEpB,KAGG,CACV,CA1Ca,CA0CX,MAAM,WAET,QAAiB,QAAI,QACrB,OAAO,QAAU,QAAiB","file":"/npm/react-style-js@1.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-style-js@1.0.2/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n    value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }\n\nvar React = require('react');\nvar url = require('url');\n\nfunction getURL(props) {\n    return props.src || props.url || props.href;\n}\nfunction assign(obj, obj2, blacklist) {\n    Object.keys(obj2).forEach(function (key) {\n        if (blacklist.indexOf(key) === -1) {\n            obj[key] = obj2[key];\n        }\n    });\n    return obj;\n}\n\nvar Stylejs = (function (_React$Component) {\n    function Stylejs() {\n        _classCallCheck(this, Stylejs);\n\n        if (_React$Component != null) {\n            _React$Component.apply(this, arguments);\n        }\n    }\n\n    _inherits(Stylejs, _React$Component);\n\n    _createClass(Stylejs, [{\n        key: 'renderScript',\n        value: function renderScript() {\n            var data = assign({}, this.props, ['src', 'url', 'href']);\n            return React.createElement('script', _extends({ src: this.props.src }, data));\n        }\n    }, {\n        key: 'renderLink',\n        value: function renderLink() {\n            var props = this.props;\n            var href = getURL(props);\n            var type = this.props.type || 'text/css';\n            var rel = this.props.rel || 'stylesheet';\n            var data = assign({}, props, ['src', 'url', 'href', 'type', 'rel']);\n            return React.createElement('link', _extends({ href: href, type: type, rel: rel }, data));\n        }\n    }, {\n        key: 'render',\n        value: function render() {\n            var props = this.props;\n            var src = getURL(props);\n            var pathname = url.parse(src).pathname || '';\n            if (pathname.slice(-'.js'.length) === '.js') {\n                return this.renderScript();\n            } else {\n                return this.renderLink();\n            }\n        }\n    }]);\n\n    return Stylejs;\n})(React.Component);\n\nexports['default'] = Stylejs;\nmodule.exports = exports['default'];\n"]}