티스토리 수익 글 보기

티스토리 수익 글 보기

performance.mark(“js-parse-end:26093-41ccbaed136aa43d.js”); “use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“26093”],{70170(t,e,n){function i(t,e=0,{start:n=!0,middle:o=!0,once:s=!1}={}){let r,a=n,l=0,h=!1;function u(…i){if(h)return;let d=Date.now()-l;l=Date.now(),n&&o&&d>=e&&(a=!0),a?(a=!1,t.apply(this,i),s&&u.cancel()):(o&&d{l=Date.now(),t.apply(this,i),s&&u.cancel()},o?e-d:e))}return u.cancel=()=>{clearTimeout(r),h=!0},u}function o(t,e=0,{start:n=!1,middle:s=!1,once:r=!1}={}){return i(t,e,{start:n,middle:s,once:r})}n.d(e,{n:()=>i,s:()=>o})},28746(t,e,n){n.d(e,{A:()=>s});var i=n(83770),o=function(){function t(e){var n=e.itemCount,i=e.itemSizeGetter,o=e.estimatedItemSize;if(!(this instanceof t))throw TypeError(“Cannot call a class as a function”);this._itemSizeGetter=i,this._itemCount=n,this._estimatedItemSize=o,this._itemSizeAndPositionData={},this._lastMeasuredIndex=-1}return t.prototype.getLastMeasuredIndex=function(){return this._lastMeasuredIndex},t.prototype.getSizeAndPositionForIndex=function(t){if(t<0||t>=this._itemCount)throw Error(“Requested index “+t+” is outside of range 0..”+this._itemCount);if(t>this._lastMeasuredIndex){for(var e=this.getSizeAndPositionOfLastMeasuredItem(),n=e.offset+e.size,i=this._lastMeasuredIndex+1;i<=t;i++){var o=this._itemSizeGetter({index:i});if(null==o||isNaN(o))throw Error("Invalid size returned for index "+i+" of value "+o);this._itemSizeAndPositionData[i]={offset:n,size:o},n+=o}this._lastMeasuredIndex=t}return this._itemSizeAndPositionData[t]},t.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this._lastMeasuredIndex>=0?this._itemSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}},t.prototype.getTotalSize=function(){var t=this.getSizeAndPositionOfLastMeasuredItem();return t.offset+t.size+(this._itemCount-this._lastMeasuredIndex-1)*this._estimatedItemSize},t.prototype.getUpdatedOffsetForIndex=function(t){var e=t.align,n=t.containerSize,i=t.targetIndex;if(n<=0)return 0;var o=this.getSizeAndPositionForIndex(i),s=o.offset,r=s-n+o.size,a=void 0;switch(void 0===e?"start":e){case"end":a=r;break;case"center":a=s-(n-o.size)/2;break;default:a=s}return Math.max(0,Math.min(this.getTotalSize()-n,a))},t.prototype.getVisibleRange=function(t){var e=t.containerSize,n=t.offset,i=t.overscanCount;if(0===this.getTotalSize())return{};var o=n+e,s=this._findNearestItem(n),r=s,a=this.getSizeAndPositionForIndex(s);for(n=a.offset+a.size;ni&&(n=o-1)}if(e>0)return e-1},t.prototype._exponentialSearch=function(t){for(var e=t.index,n=t.offset,i=1;e=t?this._binarySearch({high:n,low:0,offset:t}):this._exponentialSearch({index:n,offset:t})},t}(),s=function(){function t(e,n){var i=this;if(!(this instanceof t))throw TypeError(“Cannot call a class as a function”);this.getRowHeight=function(t){var e=t.index,n=i.options.rowHeight;return”function”==typeof n?n(e):Array.isArray(n)?n[e]:n},this.container=e,this.options=n,this.state={},this._initializeSizeAndPositionManager(n.rowCount),this.render=this.render.bind(this),this.handleScroll=this.handleScroll.bind(this),this.componentDidMount()}return t.prototype.componentDidMount=function(){var t=this,e=this.options,n=e.onMount,i=e.initialScrollTop,o=e.initialIndex,s=e.height,r=i||null!=o&&this.getRowOffset(o)||0,a=this.inner=document.createElement(“div”),l=this.content=document.createElement(“div”);a.setAttribute(“style”,”position:relative; overflow:hidden; width:100%; min-height:100%; will-change: transform;”),l.setAttribute(“style”,”position:absolute; top:0; left:0; height:100%; width:100%; overflow:visible;”),a.appendChild(l),this.container.appendChild(a),this.setState({offset:r,height:s},function(){r&&(t.container.scrollTop=r),t.container.addEventListener(“scroll”,t.handleScroll),”function”==typeof n&&n()})},t.prototype._initializeSizeAndPositionManager=function(t){this._sizeAndPositionManager=new o({itemCount:t,itemSizeGetter:this.getRowHeight,estimatedItemSize:this.options.estimatedRowHeight||100})},t.prototype.setState=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];this.state=Object.assign(this.state,e),requestAnimationFrame(function(){t.render(),”function”==typeof n&&n()})},t.prototype.resize=function(t,e){this.setState({height:t},e)},t.prototype.handleScroll=function(t){var e=this.options.onScroll,n=this.container.scrollTop;this.setState({offset:n}),”function”==typeof e&&e(n,t)},t.prototype.getRowOffset=function(t){return this._sizeAndPositionManager.getSizeAndPositionForIndex(t).offset},t.prototype.scrollToIndex=function(t,e){var n=this.state.height,i=this._sizeAndPositionManager.getUpdatedOffsetForIndex({align:e,containerSize:n,targetIndex:t});this.container.scrollTop=i},t.prototype.setRowCount=function(t){this._initializeSizeAndPositionManager(t),this.render()},t.prototype.onRowsRendered=function(t){var e=this.options.onRowsRendered;”function”==typeof e&&e(t)},t.prototype.destroy=function(){this.container.removeEventListener(“scroll”,this.handleScroll),this.container.innerHTML=””},t.prototype.render=function(){for(var t=this.options,e=t.overscanCount,n=t.renderRow,o=this.state,s=o.height,r=o.offset,a=this._sizeAndPositionManager.getVisibleRange({containerSize:s,offset:void 0===r?0:r,overscanCount:e}),l=a.start,h=a.stop,u=document.createDocumentFragment(),d=l;d<=h;d++)u.appendChild(n(d));this.inner.style.height=this._sizeAndPositionManager.getTotalSize()+"px",this.content.style.top=this.getRowOffset(l)+"px",(0,i.A)(this.content,u,{childrenOnly:!0,getNodeKey:function(t){return t.nodeIndex}}),this.onRowsRendered({startIndex:l,stopIndex:h})},t}();if("function"!=typeof s&&null!==s)throw TypeError("Super expression must either be null or a function, not "+typeof s);function r(){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");var t=s.apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:this}r.prototype=Object.create(s&&s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(r,s):r.__proto__=s),r.prototype.onRowsRendered=function(t){var e=this,n=t.startIndex,i=t.stopIndex,o=this.options,s=o.isRowLoaded,r=o.loadMoreRows,a=o.minimumBatchSize,l=o.rowCount,h=void 0===l?0:l,u=o.threshold,d=void 0===u?15:u;(function(t){for(var e=t.isRowLoaded,n=t.minimumBatchSize,i=t.rowCount,o=t.startIndex,s=t.stopIndex,r=[],a=null,l=null,h=o;h<=s;h++)e(h)?null!==l&&(r.push({startIndex:a,stopIndex:l}),a=l=null):(l=h,null===a&&(a=h));if(null!==l){for(var u=Math.min(Math.max(l,a+n-1),i-1),d=l+1;d<=u;d++)if(e({index:d}))break;else l=d;r.push({startIndex:a,stopIndex:l})}if(r.length)for(var f=r[0];f.stopIndex-f.startIndex+10;){var p=f.startIndex-1;if(e({index:p}))break;f.startIndex=p}return r})({isRowLoaded:s,minimumBatchSize:void 0===a?10:a,rowCount:h,startIndex:Math.max(0,n-d),stopIndex:Math.min(h-1,i+d)}).forEach(function(t){var o=r(t);o&&o.then(function(){var o,s,r,a,l;s=(o={lastRenderedStartIndex:n,lastRenderedStopIndex:i,startIndex:t.startIndex,stopIndex:t.stopIndex}).lastRenderedStartIndex,r=o.lastRenderedStopIndex,a=o.startIndex,l=o.stopIndex,a>r||l“object”==typeof e?e:String(e))}function o(t,e={}){let{hash:n=i,cache:s=new Map}=e;return function(…e){let i=n.apply(this,e);if(s.has(i))return s.get(i);let o=t.apply(this,e);return o instanceof Promise&&(o=o.catch(t=>{throw s.delete(i),t})),s.set(i,o),o}}n.d(e,{A:()=>o})},85498(t,e,n){n.d(e,{TemplateInstance:()=>v,xr:()=>g});let i=new Map;function o(t){if(i.has(t))return i.get(t);let e=t.length,n=0,o=0,s=0,r=[];for(let i=0;in&&(r.push(Object.freeze({type:”string”,start:n,end:o,value:t.slice(n,o)})),n=o),r.push(Object.freeze({type:”part”,start:o,end:i+2,value:t.slice(n+2,i).trim()})),i+=1,n=i+1)}return n“string”==typeof t?t:t.value).join(“”);this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,t)}}}let h=new WeakMap;class u{constructor(t,e){this.expression=e,h.set(this,[t]),t.textContent=””}get value(){return h.get(this).map(t=>t.textContent).join(“”)}set value(t){this.replace(t)}get previousSibling(){return h.get(this)[0].previousSibling}get nextSibling(){return h.get(this)[h.get(this).length-1].nextSibling}replace(…t){var e,n;let i=t.map(t=>”string”==typeof t?new Text(t):t);i.length||i.push(new Text(“”));let o=h.get(this)[0];for(let t of i)null==(e=o.parentNode)||e.insertBefore(t,o);for(let t of h.get(this))null==(n=t.parentNode)||n.removeChild(t);h.set(this,i)}}class d extends u{constructor(t){var e;super(t,null!=(e=t.getAttribute(“expression”))?e:””),this.template=t}get directive(){var t;return null!=(t=this.template.getAttribute(“directive”))?t:””}}function f(t){return{processCallback(e,n,i){var o;if(“object”==typeof i&&i){for(let e of n)if(e.expression in i){let n=null!=(o=i[e.expression])?o:””;t(e,n,i)}}}}}function p(t,e){t.value=e instanceof Node?e:String(e)}let c=f(p),g=f((t,e)=>{“boolean”==typeof e&&t instanceof a&&”boolean”==typeof t.element[t.attributeName]&&(t.booleanValue=e,1)||p(t,e)}),m=new WeakMap,x=new WeakMap;class v extends(globalThis.DocumentFragment||EventTarget){constructor(t,e,n=c){var i,s;super(),Object.getPrototypeOf(this)!==v.prototype&&Object.setPrototypeOf(this,v.prototype),this.appendChild(t.content.cloneNode(!0)),x.set(this,Array.from(function* t(e){let n,i=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null);for(;n=i.nextNode();)if(n instanceof HTMLTemplateElement)if(n.hasAttribute(“directive”))yield new d(n);else for(let e of t(n.content))yield e;else if(n instanceof Element&&n.hasAttributes())for(let t=0;t