-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-blog-jsx-2494ff69950c8dc1cc8a.js.map
1 lines (1 loc) · 68.8 KB
/
component---src-templates-blog-jsx-2494ff69950c8dc1cc8a.js.map
1
{"version":3,"sources":["webpack:///./node_modules/disqus-react/lib/index.js","webpack:///./node_modules/disqus-react/lib/CommentEmbed.js","webpack:///./node_modules/disqus-react/lib/Recommendations.js","webpack:///./node_modules/disqus-react/lib/DiscussionEmbed.js","webpack:///./node_modules/disqus-react/lib/constants.js","webpack:///./src/templates/Blog.jsx","webpack:///./node_modules/disqus-react/lib/CommentCount.js","webpack:///./node_modules/disqus-react/lib/utils.js"],"names":["Object","defineProperty","exports","value","enumerable","get","_CommentCount","CommentCount","_CommentEmbed","CommentEmbed","_DiscussionEmbed","DiscussionEmbed","_Recommendations","Recommendations","_default","_react","_interopRequireDefault","_propTypes","_constants","obj","__esModule","_typeof","Symbol","iterator","constructor","prototype","_extends","assign","target","i","arguments","length","source","key","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","_classCallCheck","instance","Constructor","TypeError","_defineProperties","props","descriptor","configurable","writable","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","Date","toString","e","_isNativeReflectConstruct","result","Super","_getPrototypeOf","NewTarget","_possibleConstructorReturn","self","ReferenceError","_assertThisInitialized","getPrototypeOf","_React$Component","subClass","superClass","create","_inherits","protoProps","staticProps","_super","post","Number","commentId","parentParam","showParentComment","mediaParam","showMedia","concat","_this$props","width","height","rest","createElement","src","getSrc","seamless","scrolling","frameBorder","Component","defaultProps","COMMENT_EMBED_WIDTH","COMMENT_EMBED_HEIGHT","propTypes","string","isRequired","bool","number","className","_utils","loadInstance","nextProps","shallowComparison","cleanInstance","config","page","identifier","url","title","language","window","document","disqus_config","getDisqusConfig","getElementById","RECOMMENDATIONS_SCRIPT_ID","reloadInstance","insertScript","shortname","body","DISQUS_RECOMMENDATIONS","reset","reload","removeScript","error","undefined","recommendations","RECOMMENDATIONS_ID","hasChildNodes","removeChild","firstChild","removeResources","id","shape","disqus_shortname","doc","DISQUS","EMBED_SCRIPT_ID","disqusThread","THREAD_ID","_this","category_id","categoryID","remote_auth_s3","remoteAuthS3","api_key","apiKey","CALLBACKS","forEach","callbackName","callbacks","preData","func","preInit","onInit","onReady","afterRender","preReset","onIdentify","beforeComment","onNewComment","onPaginate","COMMENT_COUNT_SCRIPT_ID","COMMENT_COUNT_CLASS","PageTitle","styled","H1Light","PageSubtitle","PLight","Section","children","style","Template","pageContext","prev","next","markdownRemark","data","frontmatter","htmlAst","fields","seoDescription","short_description","disqusConfig","process","GATSBY_DISQUS_NAME","slug","keywords","description","isDark","isBlog","zIndex","author","date","readingTime","text","condensed","renderMarkdown","async","queueResetCount","debounce","DISQUSWIDGETS","getCount","prevProps","additionalClass","node","parentElement","script","appendChild","querySelectorAll","el","remove","wait","runOnFirstCall","timeout","context","args","deferredExecution","callNow","clearTimeout","setTimeout","isReactElement","currentProps","_step","_iterator","Array","isArray","minLen","_arrayLikeToArray","n","slice","name","from","test","_unsupportedIterableToArray","F","s","done","_e","f","it","err","normalCompletion","didErr","step","_e2","_createForOfIteratorHelper","Set","arr","len","arr2","element","isValidElement","some"],"mappings":"8FAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETH,OAAOC,eAAeC,EAAS,eAAgB,CAC7CE,YAAY,EACZC,IAAK,WACH,OAAOC,EAAcC,gBAGzBP,OAAOC,eAAeC,EAAS,eAAgB,CAC7CE,YAAY,EACZC,IAAK,WACH,OAAOG,EAAcC,gBAGzBT,OAAOC,eAAeC,EAAS,kBAAmB,CAChDE,YAAY,EACZC,IAAK,WACH,OAAOK,EAAiBC,mBAG5BX,OAAOC,eAAeC,EAAS,kBAAmB,CAChDE,YAAY,EAC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K,cAAgBF,QAAUH,IAAQG,OAAOG,UAAY,gBAAkBN,IAI9GA,GAmEjB,SAASmO,EAAkBoB,EAAKC,IACnB,MAAPA,GAAeA,EAAMD,EAAI3O,UAAQ4O,EAAMD,EAAI3O,QAE/C,IAAK,IAAIF,EAAI,EAAG+O,EAAO,IAAIzB,MAAMwB,GAAM9O,EAAI8O,EAAK9O,IAC9C+O,EAAK/O,GAAK6O,EAAI7O,GAGhB,OAAO+O,EA6CT,SAAS7B,EAAe8B,GACtB,QAAI9P,EAAgB,QAAE+P,eAAeD,MAE1B1B,MAAMC,QAAQyB,IAChBA,EAAQE,MAAK,SAAU5Q,GAC5B,OAAOY,EAAgB,QAAE+P,eAAe3Q","file":"component---src-templates-blog-jsx-2494ff69950c8dc1cc8a.js","sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"CommentCount\", {\n enumerable: true,\n get: function get() {\n return _CommentCount.CommentCount;\n }\n});\nObject.defineProperty(exports, \"CommentEmbed\", {\n enumerable: true,\n get: function get() {\n return _CommentEmbed.CommentEmbed;\n }\n});\nObject.defineProperty(exports, \"DiscussionEmbed\", {\n enumerable: true,\n get: function get() {\n return _DiscussionEmbed.DiscussionEmbed;\n }\n});\nObject.defineProperty(exports, \"Recommendations\", {\n enumerable: true,\n get: function get() {\n return _Recommendations.Recommendations;\n }\n});\nexports[\"default\"] = void 0;\n\nvar _CommentCount = require(\"./CommentCount\");\n\nvar _CommentEmbed = require(\"./CommentEmbed\");\n\nvar _DiscussionEmbed = require(\"./DiscussionEmbed\");\n\nvar _Recommendations = require(\"./Recommendations\");\n\nvar Disqus = {\n CommentCount: _CommentCount.CommentCount,\n CommentEmbed: _CommentEmbed.CommentEmbed,\n DiscussionEmbed: _DiscussionEmbed.DiscussionEmbed,\n Recommendations: _Recommendations.Recommendations\n};\nvar _default = Disqus;\nexports[\"default\"] = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CommentEmbed = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _constants = require(\"./constants\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function () {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nvar CommentEmbed = /*#__PURE__*/function (_React$Component) {\n _inherits(CommentEmbed, _React$Component);\n\n var _super = _createSuper(CommentEmbed);\n\n function CommentEmbed() {\n _classCallCheck(this, CommentEmbed);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(CommentEmbed, [{\n key: \"getSrc\",\n value: function getSrc() {\n var radixBase = 36;\n var post = Number(this.props.commentId).toString(radixBase);\n var parentParam = this.props.showParentComment ? '1' : '0';\n var mediaParam = this.props.showMedia ? '1' : '0';\n return \"https://embed.disqus.com/p/\".concat(post, \"?p=\").concat(parentParam, \"&m=\").concat(mediaParam);\n }\n }, {\n key: \"render\",\n value: function render() {\n // eslint-disable-next-line no-unused-vars\n var _this$props = this.props,\n width = _this$props.width,\n height = _this$props.height,\n commentId = _this$props.commentId,\n showMedia = _this$props.showMedia,\n showParentComment = _this$props.showParentComment,\n rest = _objectWithoutProperties(_this$props, [\"width\", \"height\", \"commentId\", \"showMedia\", \"showParentComment\"]);\n\n return /*#__PURE__*/_react[\"default\"].createElement(\"iframe\", _extends({}, rest, {\n src: this.getSrc(),\n width: width,\n height: height,\n seamless: \"seamless\",\n scrolling: \"no\",\n frameBorder: \"0\"\n }));\n }\n }]);\n\n return CommentEmbed;\n}(_react[\"default\"].Component);\n\nexports.CommentEmbed = CommentEmbed;\nCommentEmbed.defaultProps = {\n showMedia: true,\n showParentComment: true,\n width: _constants.COMMENT_EMBED_WIDTH,\n height: _constants.COMMENT_EMBED_HEIGHT\n};\nCommentEmbed.propTypes = {\n commentId: _propTypes[\"default\"].string.isRequired,\n showMedia: _propTypes[\"default\"].bool,\n showParentComment: _propTypes[\"default\"].bool,\n width: _propTypes[\"default\"].number,\n height: _propTypes[\"default\"].number,\n className: _propTypes[\"default\"].string\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Recommendations = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"./utils\");\n\nvar _constants = require(\"./constants\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function () {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nvar Recommendations = /*#__PURE__*/function (_React$Component) {\n _inherits(Recommendations, _React$Component);\n\n var _super = _createSuper(Recommendations);\n\n function Recommendations() {\n _classCallCheck(this, Recommendations);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(Recommendations, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadInstance();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n if (this.props === nextProps) return false;\n return (0, _utils.shallowComparison)(this.props, nextProps);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n this.loadInstance();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.cleanInstance();\n }\n }, {\n key: \"getDisqusConfig\",\n value: function getDisqusConfig(config) {\n return function () {\n this.page.identifier = config.identifier;\n this.page.url = config.url;\n this.page.title = config.title;\n this.language = config.language;\n };\n }\n }, {\n key: \"loadInstance\",\n value: function loadInstance() {\n if (typeof window !== 'undefined' && window.document) {\n window.disqus_config = this.getDisqusConfig(this.props.config);\n\n if (window.document.getElementById(_constants.RECOMMENDATIONS_SCRIPT_ID)) {\n this.reloadInstance();\n } else {\n (0, _utils.insertScript)(\"https://\".concat(this.props.shortname, \".disqus.com/recommendations.js\"), _constants.RECOMMENDATIONS_SCRIPT_ID, window.document.body);\n }\n }\n }\n }, {\n key: \"reloadInstance\",\n value: function reloadInstance() {\n if (window && window.DISQUS_RECOMMENDATIONS) {\n window.DISQUS_RECOMMENDATIONS.reset({\n reload: true\n });\n }\n }\n }, {\n key: \"cleanInstance\",\n value: function cleanInstance() {\n (0, _utils.removeScript)(_constants.RECOMMENDATIONS_SCRIPT_ID, window.document.body);\n\n try {\n delete window.DISQUS_RECOMMENDATIONS;\n } catch (error) {\n window.DISQUS_RECOMMENDATIONS = undefined;\n }\n\n var recommendations = window.document.getElementById(_constants.RECOMMENDATIONS_ID);\n\n if (recommendations) {\n while (recommendations.hasChildNodes()) {\n recommendations.removeChild(recommendations.firstChild);\n }\n }\n\n (0, _utils.removeResources)();\n }\n }, {\n key: \"render\",\n value: function render() {\n // eslint-disable-next-line no-unused-vars\n var _this$props = this.props,\n shortname = _this$props.shortname,\n config = _this$props.config,\n rest = _objectWithoutProperties(_this$props, [\"shortname\", \"config\"]);\n\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({}, rest, {\n id: _constants.RECOMMENDATIONS_ID\n }));\n }\n }]);\n\n return Recommendations;\n}(_react[\"default\"].Component);\n\nexports.Recommendations = Recommendations;\nRecommendations.propTypes = {\n shortname: _propTypes[\"default\"].string.isRequired,\n config: _propTypes[\"default\"].shape({\n identifier: _propTypes[\"default\"].string,\n url: _propTypes[\"default\"].string,\n title: _propTypes[\"default\"].string,\n language: _propTypes[\"default\"].string\n })\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DiscussionEmbed = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"./utils\");\n\nvar _constants = require(\"./constants\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function () {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nvar DiscussionEmbed = /*#__PURE__*/function (_React$Component) {\n _inherits(DiscussionEmbed, _React$Component);\n\n var _super = _createSuper(DiscussionEmbed);\n\n function DiscussionEmbed() {\n _classCallCheck(this, DiscussionEmbed);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(DiscussionEmbed, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (typeof window !== 'undefined' && window.disqus_shortname && window.disqus_shortname !== this.props.shortname) this.cleanInstance();\n this.loadInstance();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n if (this.props === nextProps) return false;\n return (0, _utils.shallowComparison)(this.props, nextProps);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(nextProps) {\n if (this.props.shortname !== nextProps.shortname) this.cleanInstance();\n this.loadInstance();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.cleanInstance();\n }\n }, {\n key: \"loadInstance\",\n value: function loadInstance() {\n var doc = window.document;\n\n if (window && window.DISQUS && doc.getElementById(_constants.EMBED_SCRIPT_ID)) {\n window.DISQUS.reset({\n reload: true,\n config: this.getDisqusConfig(this.props.config)\n });\n } else {\n window.disqus_config = this.getDisqusConfig(this.props.config);\n window.disqus_shortname = this.props.shortname;\n (0, _utils.insertScript)(\"https://\".concat(this.props.shortname, \".disqus.com/embed.js\"), _constants.EMBED_SCRIPT_ID, doc.body);\n }\n }\n }, {\n key: \"cleanInstance\",\n value: function cleanInstance() {\n var doc = window.document;\n (0, _utils.removeScript)(_constants.EMBED_SCRIPT_ID, doc.body);\n if (window && window.DISQUS) window.DISQUS.reset({});\n\n try {\n delete window.DISQUS;\n } catch (error) {\n window.DISQUS = undefined;\n }\n\n var disqusThread = doc.getElementById(_constants.THREAD_ID);\n\n if (disqusThread) {\n while (disqusThread.hasChildNodes()) {\n disqusThread.removeChild(disqusThread.firstChild);\n }\n }\n\n (0, _utils.removeResources)();\n }\n }, {\n key: \"getDisqusConfig\",\n value: function getDisqusConfig(config) {\n return function () {\n var _this = this;\n\n this.page.identifier = config.identifier;\n this.page.url = config.url;\n this.page.title = config.title;\n this.page.category_id = config.categoryID;\n this.page.remote_auth_s3 = config.remoteAuthS3;\n this.page.api_key = config.apiKey;\n if (config.language) this.language = config.language;\n\n _constants.CALLBACKS.forEach(function (callbackName) {\n _this.callbacks[callbackName] = [config[callbackName]];\n });\n };\n }\n }, {\n key: \"render\",\n value: function render() {\n // eslint-disable-next-line no-unused-vars\n var _this$props = this.props,\n shortname = _this$props.shortname,\n config = _this$props.config,\n rest = _objectWithoutProperties(_this$props, [\"shortname\", \"config\"]);\n\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", _extends({}, rest, {\n id: _constants.THREAD_ID\n }));\n }\n }]);\n\n return DiscussionEmbed;\n}(_react[\"default\"].Component);\n\nexports.DiscussionEmbed = DiscussionEmbed;\nDiscussionEmbed.propTypes = {\n shortname: _propTypes[\"default\"].string.isRequired,\n config: _propTypes[\"default\"].shape({\n identifier: _propTypes[\"default\"].string,\n url: _propTypes[\"default\"].string,\n title: _propTypes[\"default\"].string,\n language: _propTypes[\"default\"].string,\n categoryID: _propTypes[\"default\"].string,\n remoteAuthS3: _propTypes[\"default\"].string,\n apiKey: _propTypes[\"default\"].string,\n preData: _propTypes[\"default\"].func,\n preInit: _propTypes[\"default\"].func,\n onInit: _propTypes[\"default\"].func,\n onReady: _propTypes[\"default\"].func,\n afterRender: _propTypes[\"default\"].func,\n preReset: _propTypes[\"default\"].func,\n onIdentify: _propTypes[\"default\"].func,\n beforeComment: _propTypes[\"default\"].func,\n onNewComment: _propTypes[\"default\"].func,\n onPaginate: _propTypes[\"default\"].func\n }).isRequired\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CALLBACKS = exports.RECOMMENDATIONS_SCRIPT_ID = exports.RECOMMENDATIONS_ID = exports.COMMENT_EMBED_HEIGHT = exports.COMMENT_EMBED_WIDTH = exports.COMMENT_COUNT_SCRIPT_ID = exports.COMMENT_COUNT_CLASS = exports.EMBED_SCRIPT_ID = exports.THREAD_ID = void 0;\nvar THREAD_ID = 'disqus_thread';\nexports.THREAD_ID = THREAD_ID;\nvar EMBED_SCRIPT_ID = 'dsq-embed-scr';\nexports.EMBED_SCRIPT_ID = EMBED_SCRIPT_ID;\nvar COMMENT_COUNT_CLASS = 'disqus-comment-count';\nexports.COMMENT_COUNT_CLASS = COMMENT_COUNT_CLASS;\nvar COMMENT_COUNT_SCRIPT_ID = 'dsq-count-scr';\nexports.COMMENT_COUNT_SCRIPT_ID = COMMENT_COUNT_SCRIPT_ID;\nvar COMMENT_EMBED_WIDTH = 420;\nexports.COMMENT_EMBED_WIDTH = COMMENT_EMBED_WIDTH;\nvar COMMENT_EMBED_HEIGHT = 320;\nexports.COMMENT_EMBED_HEIGHT = COMMENT_EMBED_HEIGHT;\nvar RECOMMENDATIONS_ID = 'disqus_recommendations';\nexports.RECOMMENDATIONS_ID = RECOMMENDATIONS_ID;\nvar RECOMMENDATIONS_SCRIPT_ID = 'dsq-recs-scr';\nexports.RECOMMENDATIONS_SCRIPT_ID = RECOMMENDATIONS_SCRIPT_ID;\nvar CALLBACKS = ['preData', 'preInit', 'onInit', 'onReady', 'afterRender', 'preReset', 'onIdentify', 'beforeComment', 'onNewComment', 'onPaginate'];\nexports.CALLBACKS = CALLBACKS;","/* eslint-disable react/no-array-index-key */\n/* eslint-disable no-constant-condition */\n/* eslint-disable react/prop-types */\n/* eslint-disable react/no-unescaped-entities */\n/* eslint-disable react/no-danger */\nimport React from \"react\"\nimport styled from \"styled-components\"\nimport Helmet from \"react-helmet\"\nimport tw from \"tailwind.macro\"\nimport { graphql } from \"gatsby\"\nimport { DiscussionEmbed } from \"disqus-react\"\nimport renderMarkdown from \"../helpers/renderMarkdown\"\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\nimport PrevNext from \"../components/PrevNext\"\nimport AppWrapper from \"../views/AppWrapper\"\nimport { ContentFull } from \"../elements/Content\"\nimport Hero from \"../views/Hero\"\nimport MarkdownContainer from \"../components/MarkdownContainer\"\nimport { H1Light, Strong, PLight } from \"../elements/Text\"\n\nconst PageTitle = styled(H1Light)`\n ${tw`mb-0`};\n`\n\nconst PageSubtitle = styled(PLight)`\n ${tw`mt-0`};\n`\n\nconst Section = ({ children, ...props }) => {\n const { style } = props\n\n return (\n <ContentFull style={style}>\n <MarkdownContainer>{children}</MarkdownContainer>\n </ContentFull>\n )\n}\n\nexport default function Template({ pageContext: { prev, next }, data }) {\n const { markdownRemark } = data\n const { frontmatter, htmlAst, fields } = markdownRemark\n const seoDescription = frontmatter.short_description || frontmatter.title\n\n const disqusConfig = {\n shortname: process.env.GATSBY_DISQUS_NAME || \"featurist-blog\",\n config: { identifier: fields.slug, title: frontmatter.title },\n }\n\n return (\n <Layout>\n <SEO\n title={frontmatter.title}\n keywords={frontmatter.keywords || []}\n description={seoDescription}\n />\n <AppWrapper>\n <Hero isDark isBlog style={{ zIndex: 20 }}>\n <PageTitle>{frontmatter.title}</PageTitle>\n <PageSubtitle>\n By <Strong>{frontmatter.author}</Strong> on{\" \"}\n <Strong>{frontmatter.date}</Strong> • {fields.readingTime.text}\n </PageSubtitle>\n </Hero>\n <Section condensed>{renderMarkdown(htmlAst)}</Section>\n <Section style={tw`bg-grey-lightest px-0`} condensed>\n <DiscussionEmbed {...disqusConfig} />\n </Section>\n <Section style={tw`bg-grey-light px-0`}>\n <PrevNext prev={prev} next={next} />\n </Section>\n </AppWrapper>\n <Helmet>\n <script async src=\"https://platform.twitter.com/widgets.js\" />\n </Helmet>\n </Layout>\n )\n}\n\nexport const pageQuery = graphql`\n query($slug: String!) {\n markdownRemark(fields: { slug: { eq: $slug } }) {\n html\n htmlAst\n tableOfContents\n fields {\n slug\n readingTime {\n text\n }\n }\n frontmatter {\n date(formatString: \"MMMM DD, YYYY\")\n title\n subtitles\n author\n short_description\n hidden\n }\n }\n }\n`\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.CommentCount = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _utils = require(\"./utils\");\n\nvar _constants = require(\"./constants\");\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function () {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nvar queueResetCount = (0, _utils.debounce)(function () {\n if (window.DISQUSWIDGETS) window.DISQUSWIDGETS.getCount({\n reset: true\n });\n}, 300, false); // eslint-disable-line no-magic-numbers\n\nvar CommentCount = /*#__PURE__*/function (_React$Component) {\n _inherits(CommentCount, _React$Component);\n\n var _super = _createSuper(CommentCount);\n\n function CommentCount() {\n _classCallCheck(this, CommentCount);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(CommentCount, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.loadInstance();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n if (this.props === nextProps) return false;\n return (0, _utils.shallowComparison)(this.props, nextProps);\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (this.props.shortname !== prevProps.shortname) this.cleanInstance();\n this.loadInstance();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.cleanInstance();\n }\n }, {\n key: \"loadInstance\",\n value: function loadInstance() {\n var doc = window.document;\n if (doc.getElementById(_constants.COMMENT_COUNT_SCRIPT_ID)) queueResetCount();else (0, _utils.insertScript)(\"https://\".concat(this.props.shortname, \".disqus.com/count.js\"), _constants.COMMENT_COUNT_SCRIPT_ID, doc.body);\n }\n }, {\n key: \"cleanInstance\",\n value: function cleanInstance() {\n var doc = window.document;\n (0, _utils.removeScript)(_constants.COMMENT_COUNT_SCRIPT_ID, doc.body); // count.js only reassigns this window object if it's undefined.\n\n window.DISQUSWIDGETS = undefined;\n (0, _utils.removeResources)();\n }\n }, {\n key: \"render\",\n value: function render() {\n // eslint-disable-next-line no-unused-vars\n var _this$props = this.props,\n shortname = _this$props.shortname,\n config = _this$props.config,\n children = _this$props.children,\n className = _this$props.className,\n rest = _objectWithoutProperties(_this$props, [\"shortname\", \"config\", \"children\", \"className\"]);\n\n var additionalClass = className ? \" \".concat(className) : '';\n return /*#__PURE__*/_react[\"default\"].createElement(\"span\", _extends({}, rest, {\n className: \"\".concat(_constants.COMMENT_COUNT_CLASS).concat(additionalClass),\n \"data-disqus-identifier\": config.identifier,\n \"data-disqus-url\": config.url\n }), children);\n }\n }]);\n\n return CommentCount;\n}(_react[\"default\"].Component);\n\nexports.CommentCount = CommentCount;\nCommentCount.propTypes = {\n shortname: _propTypes[\"default\"].string.isRequired,\n config: _propTypes[\"default\"].shape({\n identifier: _propTypes[\"default\"].string,\n url: _propTypes[\"default\"].string,\n title: _propTypes[\"default\"].string\n }).isRequired,\n className: _propTypes[\"default\"].string,\n children: _propTypes[\"default\"].node\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.insertScript = insertScript;\nexports.removeScript = removeScript;\nexports.removeResources = removeResources;\nexports.debounce = debounce;\nexports.isReactElement = isReactElement;\nexports.shallowComparison = shallowComparison;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _createForOfIteratorHelper(o) {\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) {\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var it,\n normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = o[Symbol.iterator]();\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction insertScript(src, id, parentElement) {\n var script = window.document.createElement('script');\n script.async = true;\n script.src = src;\n script.id = id;\n parentElement.appendChild(script);\n return script;\n}\n\nfunction removeScript(id, parentElement) {\n var script = window.document.getElementById(id);\n if (script) parentElement.removeChild(script);\n}\n\nfunction removeResources() {\n // Remove the bundles that the Disqus scripts add to prevent duplicated resources when navigating between pages\n var disqusResources = window.document.querySelectorAll( // eslint-disable-next-line max-len\n 'link[href*=\"disquscdn.com/next/embed\"], link[href*=\"disquscdn.com/next/recommendations\"], link[href*=\"disqus.com/next/config.js\"], script[src*=\"disquscdn.com/next/embed\"], script[src*=\"disqus.com/count-data.js\"], iframe[title=\"Disqus\"]');\n disqusResources.forEach(function (el) {\n return el.remove();\n });\n}\n\nfunction debounce(func, wait, runOnFirstCall) {\n var timeout;\n return function () {\n var context = this; // eslint-disable-line consistent-this\n\n var args = arguments;\n\n var deferredExecution = function deferredExecution() {\n timeout = null;\n if (!runOnFirstCall) func.apply(context, args);\n };\n\n var callNow = runOnFirstCall && !timeout;\n window.clearTimeout(timeout);\n timeout = setTimeout(deferredExecution, wait);\n if (callNow) func.apply(context, args);\n };\n}\n\nfunction isReactElement(element) {\n if (_react[\"default\"].isValidElement(element)) {\n return true;\n } else if (Array.isArray(element)) {\n return element.some(function (value) {\n return _react[\"default\"].isValidElement(value);\n });\n }\n\n return false;\n}\n\nfunction shallowComparison(currentProps, nextProps) {\n // Perform a comparison of all props, excluding React Elements, to prevent unnecessary updates\n var propNames = new Set(Object.keys(currentProps), Object.keys(nextProps)); // eslint-disable-line no-undef\n\n var _iterator = _createForOfIteratorHelper(propNames),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var name = _step.value;\n\n if (_typeof(currentProps[name]) === 'object') {\n if (shallowComparison(currentProps[name], nextProps[name])) return true;\n } else if (currentProps[name] !== nextProps[name] && !isReactElement(currentProps[name])) {\n return true;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return false;\n}"],"sourceRoot":""}