-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1-15589b190d5a40d1e383.js
2 lines (2 loc) · 26.5 KB
/
1-15589b190d5a40d1e383.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{157:function(t,e,o){"use strict";var r,n=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=this&&this.__assign||Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=o(161),l=o(0),s=o(181),c=o(182),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={url:null,id:c.generateUUID()},e.api=new a.Client({id:e.state.id,iframe:null}),e}return n(e,t),e.getDerivedStateFromProps=function(t,e){return{url:t.shard+"/channels/"+t.server+(t.channel?"/"+t.channel:"")+"/"+c.searchParams(i({},t.options,{api:e.id}))}},e.prototype.componentDidMount=function(){var t=this.props.onAPI;t&&t(this.api)},e.prototype.render=function(){var t=this,e=this.props,o=e.defer,r=e.className,n=e.style,a=e.height,c=e.width;return l.createElement("div",{className:r,style:i({},s.Root({width:c,height:a}),n)},l.createElement("iframe",{src:o?"":this.state.url,ref:function(e){return t.api.iframe=e},style:s.Embed}))},e.defaultProps={server:"299881420891881473",shard:"https://widgetbot.io",options:{},defer:!1},e}(l.PureComponent);e.default=u,function(t){for(var o in t)e.hasOwnProperty(o)||(e[o]=t[o])}(o(161));var f=o(161);e.API=f.Client},159:function(t,e,o){"use strict";var r=o(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(o(75)),i=r(o(36)),a=r(o(166)),l=r(o(170)),s=r(o(171)),c=r(o(173)),u=r(o(34)),f=r(o(174)),p=r(o(175)),d=r(o(4)),h=r(o(0)),v=r(o(177)),m=r(o(178));var g=function(t){function e(t){var o;return(0,l.default)(this,e),(o=(0,s.default)(this,(0,c.default)(e).call(this,t))).state={targetItems:[],inViewState:[],isScrolledPast:[]},o._handleSpy=o._handleSpy.bind((0,u.default)(o)),o}return(0,p.default)(e,t),(0,f.default)(e,null,[{key:"propTypes",get:function(){return{items:d.default.arrayOf(d.default.string).isRequired,currentClassName:d.default.string.isRequired,scrolledPastClassName:d.default.string,style:d.default.object,componentTag:d.default.oneOfType([d.default.string,d.default.func]),offset:d.default.number,rootEl:d.default.string,onUpdate:d.default.func}}},{key:"defaultProps",get:function(){return{items:[],currentClassName:"",style:{},componentTag:"ul",offset:0,onUpdate:function(){}}}}]),(0,f.default)(e,[{key:"_initSpyTarget",value:function(t){return t.map(function(t){return document.getElementById(t)})}},{key:"_fillArray",value:function(t,e){for(var o=[],r=0,n=t.length;r<n;r++)o[r]=e;return o}},{key:"_isScrolled",value:function(){return this._getScrollDimension().scrollTop>0}},{key:"_getScrollDimension",value:function(){var t=document,e=this.props.rootEl;return{scrollTop:e?t.querySelector(e).scrollTop:t.documentElement.scrollTop||t.body.parentNode.scrollTop||t.body.scrollTop,scrollHeight:e?t.querySelector(e).scrollHeight:t.documentElement.scrollHeight||t.body.parentNode.scrollHeight||t.body.scrollHeight}}},{key:"_getElemsViewState",value:function(t){for(var e=[],o=[],r=[],n=t||this.state.targetItems,i=!1,l=0,s=n.length;l<s;l++){var c=n[l],u=!i&&this._isInView(c);u?(i=!0,e.push(c)):o.push(c);var f=l===s-1,p=this._isScrolled();this._isAtBottom()&&this._isInView(c)&&!u&&f&&p&&(o.pop(),o.push.apply(o,(0,a.default)(e)),e=[c],r=this._fillArray(r,!1),u=!0),r.push(u)}return{inView:e,outView:o,viewStatusList:r,scrolledPast:this.props.scrolledPastClassName&&this._getScrolledPast(r)}}},{key:"_isInView",value:function(t){if(!t)return!1;var e,o=this.props,r=o.rootEl,n=o.offset;r&&(e=document.querySelector(r).getBoundingClientRect());var i=t.getBoundingClientRect(),a=r?e.height:window.innerHeight,l=this._getScrollDimension().scrollTop,s=l+a,c=r?i.top+l-e.top+n:i.top+l+n,u=c+t.offsetHeight;return c<s&&u>l}},{key:"_isAtBottom",value:function(){var t=this.props.rootEl,e=this._getScrollDimension(),o=e.scrollTop,r=e.scrollHeight;return o+(t?document.querySelector(t).getBoundingClientRect().height:window.innerHeight)>=r}},{key:"_getScrolledPast",value:function(t){if(!t.some(function(t){return t}))return t;var e=!1;return t.map(function(t){return t&&!e?(e=!0,!1):!e})}},{key:"_spy",value:function(t){var e=this,o=this._getElemsViewState(t),r=this.state.inViewState;this.setState({inViewState:o.viewStatusList,isScrolledPast:o.scrolledPast},function(){e._update(r)})}},{key:"_update",value:function(t){var e,o;(e=this.state.inViewState,o=t,e.length===o.length&&e.every(function(t,e){return t===o[e]}))||this.props.onUpdate(this.state.targetItems[this.state.inViewState.indexOf(!0)])}},{key:"_handleSpy",value:function(){(0,m.default)(this._spy(),100)}},{key:"_initFromProps",value:function(){var t=this._initSpyTarget(this.props.items);this.setState({targetItems:t}),this._spy(t)}},{key:"offEvent",value:function(){(this.props.rootEl?document.querySelector(this.props.rootEl):window).removeEventListener("scroll",this._handleSpy)}},{key:"onEvent",value:function(){(this.props.rootEl?document.querySelector(this.props.rootEl):window).addEventListener("scroll",this._handleSpy)}},{key:"componentDidMount",value:function(){this._initFromProps(),this.onEvent()}},{key:"componentWillUnmount",value:function(){this.offEvent()}},{key:"componentWillReceiveProps",value:function(){this._initFromProps()}},{key:"render",value:function(){var t=this,e=this.props.componentTag,o=this.props,r=o.children,a=o.className,l=o.scrolledPastClassName,s=o.style,c=0,u=h.default.Children.map(r,function(e,o){var r;if(!e)return null;var a=e.type,s=l&&t.state.isScrolledPast[o],u=(0,v.default)((r={},(0,i.default)(r,"".concat(e.props.className),e.props.className),(0,i.default)(r,"".concat(t.props.currentClassName),t.state.inViewState[o]),(0,i.default)(r,"".concat(t.props.scrolledPastClassName),s),r));return h.default.createElement(a,(0,n.default)({},e.props,{className:u,key:c++}),e.props.children)}),f=(0,v.default)((0,i.default)({},"".concat(a),a));return h.default.createElement(e,{className:f,style:s},u)}}]),e}(h.default.Component);e.default=g},160:function(t,e,o){!function(){"use strict";t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var o,r=t.HTMLElement||t.Element,n=468,i={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,l=(o=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(o)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?h.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):i.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):h.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var t=arguments[0].left,e=arguments[0].top;h.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var o=function(t){for(;t!==e.body&&!1===p(t);)t=t.parentNode||t.host;return t}(this),r=o.getBoundingClientRect(),n=this.getBoundingClientRect();o!==e.body?(h.call(this,o,o.scrollLeft+n.left-r.left,o.scrollTop+n.top-r.top),"fixed"!==t.getComputedStyle(o).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:n.left,top:n.top,behavior:"smooth"})}else i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(t,e){this.scrollLeft=t,this.scrollTop=e}function c(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(t,e){return"Y"===e?t.clientHeight+l<t.scrollHeight:"X"===e?t.clientWidth+l<t.scrollWidth:void 0}function f(e,o){var r=t.getComputedStyle(e,null)["overflow"+o];return"auto"===r||"scroll"===r}function p(t){var e=u(t,"Y")&&f(t,"Y"),o=u(t,"X")&&f(t,"X");return e||o}function d(e){var o,r,i,l,s=(a()-e.startTime)/n;l=s=s>1?1:s,o=.5*(1-Math.cos(Math.PI*l)),r=e.startX+(e.x-e.startX)*o,i=e.startY+(e.y-e.startY)*o,e.method.call(e.scrollable,r,i),r===e.x&&i===e.y||t.requestAnimationFrame(d.bind(t,e))}function h(o,r,n){var l,c,u,f,p=a();o===e.body?(l=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,f=i.scroll):(l=o,c=o.scrollLeft,u=o.scrollTop,f=s),d({scrollable:l,method:f,startTime:p,startX:c,startY:u,x:r,y:n})}}}}()},161:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(162);e.API=r.default;var n=o(179);e.Client=n.default;var i=o(180);e.Server=i.default},162:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.listeners={}}return t.prototype.socketEvent=function(t){try{var e=JSON.parse(t)}catch(i){return}if(e instanceof Object&&!0===e.widgetbot&&e.id===this.id){var o=e.event,r=e.data,n=this.listeners[o];n&&n.forEach(function(t){return t(r)})}},t.prototype.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e),console.debug("[embed-api] on '"+t+"'",e)},t}();e.default=r},163:function(t,e,o){"use strict";var r=o(0),n=o.n(r);e.a=class extends r.PureComponent{constructor(t){super(t),this.$=n.a.createRef(),this._=n.a.createRef()}render(){return n.a.createElement("span",{ref:this.$},n.a.createElement("a",{...this.props,ref:this._},this.props.children))}componentDidMount(){this.paint()}componentWillUpdate(){this.reset()}componentDidUpdate(){this.paint()}componentWillUnmount(){this.reset()}paint(){const t=this.$.current.appendChild(document.createElement("span"));Promise.resolve().then(o.bind(null,183)).then(({render:e})=>{e(t.appendChild(this._.current),function(e){try{t.parentNode.replaceChild(e,t)}catch(t){}})})}reset(){this.$.current.replaceChild(this._.current,this.$.current.lastChild)}}},166:function(t,e,o){var r=o(167),n=o(168),i=o(169);t.exports=function(t){return r(t)||n(t)||i()}},167:function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,o=new Array(t.length);e<t.length;e++)o[e]=t[e];return o}}},168:function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},169:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},170:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},171:function(t,e,o){var r=o(172),n=o(34);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?n(t):e}},172:function(t,e){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(e){return"function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?t.exports=r=function(t){return o(t)}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)},r(e)}t.exports=r},173:function(t,e){function o(e){return t.exports=o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(e)}t.exports=o},174:function(t,e){function o(t,e){for(var o=0;o<e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}},175:function(t,e,o){var r=o(176);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},176:function(t,e){function o(e,r){return t.exports=o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(e,r)}t.exports=o},177:function(t,e,o){var r;!function(){"use strict";var o={}.hasOwnProperty;function n(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&t.push(a)}else if("object"===i)for(var l in r)o.call(r,l)&&r[l]&&t.push(l)}}return t.join(" ")}t.exports?(n.default=n,t.exports=n):void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()},178:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){var e,o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return function(){var n=+new Date;e&&n<e+r?(clearTimeout(o),o=setTimeout(function(){e=n,t()},r)):(e=n,t())}};e.default=r},179:function(t,e,o){"use strict";var r,n=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var o=t.call(this)||this;return o.server={emit:function(t,e){var r=o.listeners[t];r&&r.forEach(function(t){return t(e)})}},Object.assign(o,e),window.addEventListener("message",function(t){var e=t.data;return o.socketEvent(e)}),o}return n(e,t),e.prototype.emit=function(t,e){if(!window.parent)return!1;var o=JSON.stringify({widgetbot:!0,id:this.id,event:t,data:e});return!!this.iframe.contentWindow&&(this.iframe.contentWindow.postMessage(o,"*"),!0)},e}(o(162).default);e.default=i},180:function(t,e,o){"use strict";var r,n=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])},function(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var o=t.call(this)||this;return o.targetOrigin="*",o.client={emit:function(t,e){var r=o.listeners[t];r&&r.forEach(function(t){return t(e)})}},Object.assign(o,e),window.addEventListener("message",function(t){var e=t.data;return o.socketEvent(e)}),o}return n(e,t),e.prototype.emit=function(t,e){if(console.debug("[embed-api] emit '"+t+"'",e),!window.parent)return!1;var o=JSON.stringify({widgetbot:!0,id:this.id,event:t,data:e});return window.parent.postMessage(o,this.targetOrigin),!0},e}(o(162).default);e.default=i},181:function(t,e,o){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0}),e.Root=function(t){var e=t.width,o=t.height;return r({},o&&{height:+o?o+"px":o},e&&{width:+e?e+"px":e},{display:"inline-block",overflow:"hidden",backgroundColor:"rgb(54, 57, 62)",borderRadius:7,verticalAlign:"top"})},e.Embed={width:"100%",height:"100%",border:"none"}},182:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUUID=function(){var t=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var o=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?o:3&o|8).toString(16)})},e.searchParams=function(t){return void 0===t&&(t={}),"?"+Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}},183:function(t,e,o){"use strict";o.r(e),o.d(e,"render",function(){return x});var r=window.document,n=(r.location,window.encodeURIComponent),i=(window.decodeURIComponent,window.Math),a=window.HTMLElement,l=window.XMLHttpRequest,s=function(t){return function(e,o,r){var n=t.createElement(e);if(o)for(var i in o){var a=o[i];null!=a&&(null!=n[i]?n[i]=a:n.setAttribute(i,a))}if(r)for(var l=0,s=r.length;l<s;l++){var c=r[l];n.appendChild("string"==typeof c?t.createTextNode(c):c)}return n}},c=s(r),u=l&&l.prototype&&"withCredentials"in l.prototype,f=u&&a&&a.prototype.attachShadow&&!a.prototype.attachShadow.prototype,p=function(t,e,o){t.addEventListener?t.addEventListener(e,o):t.attachEvent("on"+e,o)},d=function(t,e,o){t.removeEventListener?t.removeEventListener(e,o):t.detachEvent("on"+e,o)},h="body{margin:0}a{color:#24292e;text-decoration:none;outline:0}.octicon{display:inline-block;vertical-align:text-top;fill:currentColor}.widget{display:inline-block;overflow:hidden;font-family:-apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif;font-size:0;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn,.social-count{display:inline-block;height:14px;padding:2px 5px;font-size:11px;font-weight:600;line-height:14px;vertical-align:bottom;cursor:pointer;border:1px solid #c5c9cc;border-radius:0.25em}.btn{background-color:#eff3f6;background-image:-webkit-linear-gradient(top, #fafbfc, #eff3f6 90%);background-image:-moz-linear-gradient(top, #fafbfc, #eff3f6 90%);background-image:linear-gradient(180deg, #fafbfc, #eff3f6 90%);background-position:-1px -1px;background-repeat:repeat-x;background-size:110% 110%;border-color:rgba(27,31,35,0.2);-ms-filter:\"progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFFAFBFC', endColorstr='#FFEEF2F5')\";*filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFFAFBFC', endColorstr='#FFEEF2F5')}.btn:active{background-color:#e9ecef;background-image:none;border-color:#a5a9ac;border-color:rgba(27,31,35,0.35);box-shadow:inset 0 0.15em 0.3em rgba(27,31,35,0.15)}.btn:focus,.btn:hover{background-color:#e6ebf1;background-image:-webkit-linear-gradient(top, #f0f3f6, #e6ebf1 90%);background-image:-moz-linear-gradient(top, #f0f3f6, #e6ebf1 90%);background-image:linear-gradient(180deg, #f0f3f6, #e6ebf1 90%);border-color:#a5a9ac;border-color:rgba(27,31,35,0.35);-ms-filter:\"progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF0F3F6', endColorstr='#FFE5EAF0')\";*filter:progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF0F3F6', endColorstr='#FFE5EAF0')}.social-count{position:relative;margin-left:5px;background-color:#fff}.social-count:focus,.social-count:hover{color:#0366d6}.social-count b,.social-count i{position:absolute;top:50%;left:0;display:block;width:0;height:0;margin:-4px 0 0 -4px;border:solid transparent;border-width:4px 4px 4px 0;_line-height:0;_border-top-color:red !important;_border-bottom-color:red !important;_border-left-color:red !important;_filter:chroma(color=red)}.social-count b{border-right-color:#c5c9cc}.social-count i{margin-left:-3px;border-right-color:#fff}.lg .btn,.lg .social-count{height:16px;padding:5px 10px;font-size:12px;line-height:16px}.lg .social-count{margin-left:6px}.lg .social-count b,.lg .social-count i{margin:-5px 0 0 -5px;border-width:5px 5px 5px 0}.lg .social-count i{margin-left:-4px}\n",v={"mark-github":{width:16,height:16,path:'<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>'},eye:{width:16,height:16,path:'<path fill-rule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"/>'},star:{width:14,height:16,path:'<path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"/>'},"repo-forked":{width:10,height:16,path:'<path fill-rule="evenodd" d="M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"/>'},"issue-opened":{width:14,height:16,path:'<path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"/>'},"cloud-download":{width:16,height:16,path:'<path fill-rule="evenodd" d="M9 12h2l-3 3-3-3h2V7h2v5zm3-8c0-.44-.91-3-4.5-3C5.08 1 3 2.92 3 5 1.02 5 0 6.52 0 8c0 1.53 1 3 3 3h3V9.7H3C1.38 9.7 1.3 8.28 1.3 8c0-.17.05-1.7 1.7-1.7h1.3V5c0-1.39 1.56-2.7 3.2-2.7 2.55 0 3.13 1.55 3.2 1.8v1.2H12c.81 0 2.7.22 2.7 2.2 0 2.09-2.25 2.2-2.7 2.2h-2V11h2c2.08 0 4-1.16 4-3.5C16 5.06 14.08 4 12 4z"/>'}},m={},g=function(t,e){var o=m[t]||(m[t]=[]);if(!(o.push(e)>1)){var r=function(t){var e;return function(){e||(e=1,t.apply(this,arguments))}}(function(){for(delete m[t];e=o.shift();)e.apply(null,arguments)});if(u){var n=new l;p(n,"abort",r),p(n,"error",r),p(n,"load",function(){var t;try{t=JSON.parse(n.responseText)}catch(e){return void r(e)}r(200!==n.status,t)}),n.open("GET",t),n.send()}else{var i=this||window;i._=function(t){i._=null,r(200!==t.meta.status,t.data)};var a=s(i.document)("script",{async:!0,src:t+(/\?/.test(t)?"&":"?")+"callback=_"}),c=function(){i._&&i._({meta:{}})};p(a,"load",c),p(a,"error",c),a.readyState&&function(t,e,o){var r=function(n){if(e.test(t.readyState))return d(t,"readystatechange",r),o(n)};p(t,"readystatechange",r)}(a,/de|m/,c),i.document.getElementsByTagName("head")[0].appendChild(a)}}},y=function(t,e,o){var r=s(t.ownerDocument),n=t.appendChild(r("style",{type:"text/css"}));n.styleSheet?n.styleSheet.cssText=h:n.appendChild(t.ownerDocument.createTextNode(h));var i,a,l=r("a",{className:"btn",href:e.href,target:"_blank",innerHTML:(i=e["data-icon"],a=/^large$/i.test(e["data-size"])?16:14,i=(""+i).toLowerCase().replace(/^octicon-/,""),v.hasOwnProperty(i)||(i="mark-github"),'<svg version="1.1" width="'+a*v[i].width/v[i].height+'" height="'+a+'" viewBox="0 0 '+v[i].width+" "+v[i].height+'" class="octicon octicon-'+i+'" aria-hidden="true">'+v[i].path+"</svg>"),"aria-label":e["aria-label"]||void 0},[" ",r("span",{},[e["data-text"]||""])]);/\.github\.com$/.test("."+l.hostname)?/^https?:\/\/((gist\.)?github\.com\/[^\/?#]+\/[^\/?#]+\/archive\/|github\.com\/[^\/?#]+\/[^\/?#]+\/releases\/download\/|codeload\.github\.com\/)/.test(l.href)&&(l.target="_top"):(l.href="#",l.target="_self");var c,u,f,p,d=t.appendChild(r("div",{className:"widget"+(/^large$/i.test(e["data-size"])?" lg":"")},[l]));/^(true|1)$/i.test(e["data-show-count"])&&"github.com"===l.hostname&&(c=l.pathname.replace(/^(?!\/)/,"/").match(/^\/([^\/?#]+)(?:\/([^\/?#]+)(?:\/(?:(subscription)|(fork)|(issues)|([^\/?#]+)))?)?(?:[\/?#]|$)/))&&!c[6]?(c[2]?(u="/repos/"+c[1]+"/"+c[2],c[3]?(p="subscribers_count",f="watchers"):c[4]?(p="forks_count",f="network"):c[5]?(p="open_issues_count",f="issues"):(p="stargazers_count",f="stargazers")):(u="/users/"+c[1],f=p="followers"),g.call(this,"https://api.github.com"+u,function(t,e){if(!t){var n=e[p];d.appendChild(r("a",{className:"social-count",href:e.html_url+"/"+f,target:"_blank","aria-label":n+" "+p.replace(/_count$/,"").replace("_"," ").slice(0,n<2?-1:void 0)+" on GitHub"},[r("b"),r("i"),r("span",{},[(""+n).replace(/\B(?=(\d{3})+(?!\d))/g,",")])]))}o&&o(d)})):o&&o(d)},b=window.devicePixelRatio||1,w=function(t){return(b>1?i.ceil(i.round(t*b)/b*2)/2:i.ceil(t))||0},_=function(t,e){t.style.width=e[0]+"px",t.style.height=e[1]+"px"},x=function(t,e){if(null!=t&&null!=e)if(t.getAttribute&&(t=function(t){for(var e={href:t.href,title:t.title,"aria-label":t.getAttribute("aria-label")},o=["icon","text","size","show-count"],r=0,n=o.length;r<n;r++){var i="data-"+o[r];e[i]=t.getAttribute(i)}return null==e["data-text"]&&(e["data-text"]=t.textContent||t.innerText),e}(t)),f){var o=c("span",{title:t.title||void 0});y(o.attachShadow({mode:"closed"}),t,function(){e(o)})}else{var a=c("iframe",{src:"javascript:0",title:t.title||void 0,allowtransparency:!0,scrolling:"no",frameBorder:0});_(a,[0,0]),a.style.border="none";var l=function(){var o,s=a.contentWindow;try{o=s.document.body}catch(c){return void r.body.appendChild(a.parentNode.removeChild(a))}d(a,"load",l),y.call(s,o,t,function(o){var r=function(t){var e=t.offsetWidth,o=t.offsetHeight;if(t.getBoundingClientRect){var r=t.getBoundingClientRect();e=i.max(e,w(r.width)),o=i.max(o,w(r.height))}return[e,o]}(o);a.parentNode.removeChild(a),function(t,e,o){var r=function(n){return d(t,e,r),o(n)};p(t,e,r)}(a,"load",function(){_(a,r)}),a.src="https://unpkg.com/[email protected]/dist/buttons.html#"+(a.name=function(t){var e=[];for(var o in t){var r=t[o];null!=r&&e.push(n(o)+"="+n(r))}return e.join("&")}(t)),e(a)})};p(a,"load",l),r.body.appendChild(a)}}}}]);
//# sourceMappingURL=1-15589b190d5a40d1e383.js.map