!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new t.Error).stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="99c75167-c1a7-4376-8788-d9b2b810f89c",t._sentryDebugIdIdentifier="sentry-dbid-99c75167-c1a7-4376-8788-d9b2b810f89c")}catch(t){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[79025],{579025:function(t,r,e){e.d(r,{r:function(){return i}});var n=function(t,r){var e,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function h(o){return function(h){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]r?1:tt?1:r0;--r)e+=t;return e}for(var i=0,o=[],a=e(r.length-1)+2,h=0;ih&&(h=u.length),o[p]=o[p]||[],o[p].push(u),i+=1}return o.map((function(t,r){var e=Math.pow(2,a-r)-1;return n(" ",Math.floor(e/2)*h)+t.map((function(t){var r=(h-t.length)/2;return n(" ",Math.ceil(r))+t+n(" ",Math.floor(r))})).join(n(" ",e*h))})).join("\n")},t.heapify=function(r,e){var n=new t(e);return n.heapArray=r,n.init(),n},t.heappop=function(r,e){var n=new t(e);return n.heapArray=r,n.pop()},t.heappush=function(r,e,n){var i=new t(n);i.heapArray=r,i.push(e)},t.heappushpop=function(r,e,n){var i=new t(n);return i.heapArray=r,i.pushpop(e)},t.heapreplace=function(r,e,n){var i=new t(n);return i.heapArray=r,i.replace(e)},t.heaptop=function(r,e,n){void 0===e&&(e=1);var i=new t(n);return i.heapArray=r,i.top(e)},t.heapbottom=function(r,e,n){void 0===e&&(e=1);var i=new t(n);return i.heapArray=r,i.bottom(e)},t.prototype.add=function(t){return this._sortNodeUp(this.heapArray.push(t)-1),this._applyLimit(),!0},t.prototype.addAll=function(t){var r,e=this.length;(r=this.heapArray).push.apply(r,t);for(var n=this.length;e=this.heapArray.length){var r=this.heapArray.slice(0);return r.sort(this._invertedCompare),r}var e=this._bottomN(t);return e.sort(this._invertedCompare),e},t.prototype.check=function(){var t=this;return this.heapArray.find((function(r,e,n){return!!t.getChildrenOf(e).find((function(e){return t.compare(r,e)>0}))}))},t.prototype.clear=function(){this.heapArray=[]},t.prototype.clone=function(){var r=new t(this.comparator());return r.heapArray=this.toArray(),r._limit=this._limit,r},t.prototype.comparator=function(){return this.compare},t.prototype.contains=function(r,e){return void 0===e&&(e=t.defaultIsEqual),this.heapArray.findIndex((function(t){return e(t,r)}))>=0},t.prototype.init=function(t){t&&(this.heapArray=t.slice(0));for(var r=Math.floor(this.heapArray.length);r>=0;--r)this._sortNodeDown(r);this._applyLimit()},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.leafs=function(){if(0===this.heapArray.length)return[];var r=t.getParentIndexOf(this.heapArray.length-1);return this.heapArray.slice(r+1)},Object.defineProperty(t.prototype,"length",{get:function(){return this.heapArray.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(t){this._limit=t,this._applyLimit()},enumerable:!0,configurable:!0}),t.prototype.peek=function(){return this.heapArray[0]},t.prototype.pop=function(){var t=this.heapArray.pop();return this.length>0&&void 0!==t?this.replace(t):t},t.prototype.push=function(){for(var t=[],r=0;r0){if(void 0===r)return this.pop(),!0;var n=this.heapArray.findIndex((function(t){return e(t,r)}));if(n>=0)return 0===n?this.pop():n===this.length-1?this.heapArray.pop():(this.heapArray.splice(n,1,this.heapArray.pop()),this._sortNodeUp(n),this._sortNodeDown(n)),!0}return!1},t.prototype.replace=function(t){var r=this.heapArray[0];return this.heapArray[0]=t,this._sortNodeDown(0),r},t.prototype.size=function(){return this.length},t.prototype.top=function(t){if(void 0===t&&(t=1),0===this.heapArray.length||t<=0)return[];if(1===this.heapArray.length||1===t)return[this.heapArray[0]];if(t>=this.heapArray.length){var r=this.heapArray.slice(0);return r.sort(this.compare),r}var e=this._topN(t);return e.sort(this.compare),e},t.prototype.toArray=function(){return this.heapArray.slice(0)},t.prototype.toString=function(){return this.heapArray.toString()},t.prototype.get=function(t){return this.heapArray[t]},t.prototype.getChildrenOf=function(r){var e=this;return t.getChildrenIndexOf(r).map((function(t){return e.heapArray[t]})).filter((function(t){return void 0!==t}))},t.prototype.getParentOf=function(r){var e=t.getParentIndexOf(r);return this.heapArray[e]},t.prototype[Symbol.iterator]=function(){return n(this,(function(t){switch(t.label){case 0:return this.length?[4,this.pop()]:[3,2];case 1:return t.sent(),[3,0];case 2:return[2]}}))},t.prototype.iterator=function(){return this},t.prototype._applyLimit=function(){if(this._limit&&this._limiti;--a)o.push(a);for(var h=this.heapArray;o.length;){a=o.shift();this.compare(h[a],e.peek())>0&&(e.replace(h[a]),a%2&&o.push(t.getParentIndexOf(a)))}return e.toArray()},t.prototype._moveNode=function(t,r){var e;e=[this.heapArray[r],this.heapArray[t]],this.heapArray[t]=e[0],this.heapArray[r]=e[1]},t.prototype._sortNodeDown=function(r){for(var e=this,n=r0?(this._moveNode(r,p),r=p,i=!0):n=!1}return i},t.prototype._sortNodeUp=function(r){for(var e=r>0,n=!1;e;){var i=t.getParentIndexOf(r);i>=0&&this.compare(this.heapArray[i],this.heapArray[r])>0?(this._moveNode(r,i),r=i,n=!0):e=!1}return n},t.prototype._topN=function(r){var e=new t(this._invertedCompare);e.limit=r;for(var n=[0],i=this.heapArray;n.length;){var o=n.shift();o