티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[15292,19973,33335,45688],{5570:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError(“attempted to set read only private field”);t.value=n}}},13937:(e,t,n)=>{let r;n.d(t,{Ax:()=>l,JW:()=>c,ZV:()=>a});let ErrorWithResponse=class ErrorWithResponse extends Error{constructor(e,t){super(e),this.response=t}};function o(){let e,t;return[new Promise(function(n,r){e=n,t=r}),e,t]}let i=[],s=[];function a(e){i.push(e)}function l(e){s.push(e)}function c(e,t){r||(r=new Map,”undefined”!=typeof document&&document.addEventListener(“submit”,u));let n=r.get(e)||[];r.set(e,[…n,t])}function u(e){if(!(e.target instanceof HTMLFormElement)||e.defaultPrevented)return;let t=e.target,n=function(e){let t=[],n=t=>”object”==typeof t?t===e:”string”==typeof t&&e.matches(t);for(let e of r.keys())if(n(e)){let n=r.get(e)||[];t.push(…n)}return t}(t);if(0===n.length)return;let a=function(e,t){let n={method:t?.formMethod||e.method||”GET”,url:e.action,headers:new Headers({“X-Requested-With”:”XMLHttpRequest”}),body:null};if(“GET”===n.method.toUpperCase()){let t=function(e){let t=new URLSearchParams;for(let[n,r]of[…new FormData(e).entries()])t.append(n,r.toString());return t.toString()}(e);t&&(n.url+=(~n.url.indexOf(“?”)?”&”:”?”)+t)}else n.body=new FormData(e);return n}(t,e instanceof SubmitEvent?e.submitter:null),[l,c,u]=o();e.preventDefault(),h(n,t,a,l).then(async e=>{if(e){for(let e of s)await e(t);d(a).then(c,u).catch(()=>{}).then(()=>{for(let e of i)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function h(e,t,n,r){let i=!1;for(let s of e){let[e,a]=o(),l=()=>(i=!0,a(),r),c={text:l,json:()=>(n.headers.set(“Accept”,”application/json”),l()),html:()=>(n.headers.set(“Accept”,”text/html”),l())};await Promise.race([e,s(t,c,n)])}return i}async function d(e){let t=await window.fetch(e.url,{method:e.method,body:null!==e.body?e.body:void 0,headers:e.headers,credentials:”same-origin”}),n={url:t.url,status:t.status,statusText:t.statusText,headers:t.headers,text:””,get json(){let e=JSON.parse(this.text);return delete this.json,this.json=e,this.json},get html(){var r,o;let e;return delete this.html,this.html=(r=document,o=this.text,(e=r.createElement(“template”)).innerHTML=o,r.importNode(e.content,!0)),this.html}};if(n.text=await t.text(),t.ok)return n;throw new ErrorWithResponse(“request failed”,n)}},18150:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(53482);function o(e,t,n){(0,r._)(e,t),t.set(e,n)}},29304:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t,n){if(!t.has(e))throw TypeError(“attempted to “+n+” private field on non-instance”);return t.get(e)}},35750:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(50894),o=n(29304);function i(e,t){var n=(0,o._)(e,t,”get”);return(0,r._)(e,n)}},39595:(e,t,n)=>{let r;n.d(t,{CF:()=>m,p_:()=>O,FB:()=>h,Se:()=>C,aC:()=>T,zV:()=>P});let o=new WeakSet,i=new WeakMap;function s(e=document){if(i.has(e))return i.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if(“attributes”===t.type&&t.target instanceof Element)u(t.target);else if(“childList”===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&a(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:[“data-action”]});let r={get closed(){return t},unsubscribe(){t=!0,i.delete(e),n.disconnect()}};return i.set(e,r),r}function a(e){for(let t of e.querySelectorAll(“[data-action]”))u(t);e instanceof Element&&e.hasAttribute(“data-action”)&&u(e)}function l(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let r=t.closest(n.tag);o.has(r)&&”function”==typeof r[n.method]&&r[n.method](e);let i=t.getRootNode();if(i instanceof ShadowRoot&&o.has(i.host)&&i.host.matches(n.tag)){let t=i.host;”function”==typeof t[n.method]&&t[n.method](e)}}}function*c(e){for(let t of(e.getAttribute(“data-action”)||””).trim().split(/\s+/)){let e=t.lastIndexOf(“:”),n=Math.max(0,t.lastIndexOf(“#”))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||”handleEvent”}}}function u(e){for(let t of c(e))e.addEventListener(t.type,l)}function h(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let r of e.shadowRoot.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(!r.closest(n))return r}for(let r of e.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(r.closest(n)===e)return r}let d=e=>String(“symbol”==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,”-$1″).replace(/–/g,”-“).replace(/^-|-$/,””).toLowerCase(),f=(e,t=”property”)=>{let n=d(e);if(!n.includes(“-“))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,”SyntaxError”);return n},p=”attr”;function m(e,t){M(e,p).add(t)}let g=new WeakSet;function b(e,t){if(g.has(e))return;g.add(e);let n=Object.getPrototypeOf(e),r=n?.constructor?.attrPrefix??”data-“;for(let o of(t||(t=M(n,p)),t)){let t=e[o],n=f(`${r}${o}`),i={configurable:!0,get(){return this.getAttribute(n)||””},set(e){this.setAttribute(n,e||””)}};”number”==typeof t?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:”boolean”==typeof t&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,o,i),o in e&&!e.hasAttribute(n)&&i.set.call(e,t)}}let y=new Map,v=new Promise(e=>{“loading”!==document.readyState?e():document.addEventListener(“readystatechange”,()=>e(),{once:!0})}),w=new Promise(e=>{let t=new AbortController;t.signal.addEventListener(“abort”,()=>e());let n={once:!0,passive:!0,signal:t.signal},r=()=>t.abort();document.addEventListener(“mousedown”,r,n),document.addEventListener(“touchstart”,r,n),document.addEventListener(“keydown”,r,n),document.addEventListener(“pointerdown”,r,n)}),E={ready:()=>v,firstInteraction:()=>w,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let r of e)if(r.isIntersecting){t(),n.disconnect();return}},{rootMargin:”0px 0px 256px 0px”,threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},x=new WeakMap;function k(e){cancelAnimationFrame(x.get(e)||0),x.set(e,requestAnimationFrame(()=>{for(let t of y.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let r=n?.getAttribute(“data-load-on”)||”ready”,o=r in E?E[r]:E.ready;for(let e of y.get(t)||[])o(t).then(e);y.delete(t),x.delete(e)}}}))}function C(e,t){for(let[n,r]of(“string”==typeof e&&t&&(e={[e]:t}),Object.entries(e)))y.has(n)||y.set(n,new Set),y.get(n).add(r);S(document)}function S(e){r||(r=new MutationObserver(e=>{if(y.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&k(e)})),k(e),r.observe(e,{subtree:!0,childList:!0})}let A=Symbol.for(“catalyst”);let CatalystDelegate=class CatalystDelegate{constructor(e){const t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};const r=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,r)};const o=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,r){t.attributeChangedCallback(this,e,n,r,o)};let i=e.observedAttributes||[];Object.defineProperty(e,”observedAttributes”,{configurable:!0,get(){return t.observedAttributes(this,i)},set(e){i=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??”data-“,r=e=>f(`${n}${e}`);Object.defineProperty(e,”observedAttributes”,{configurable:!0,get:()=>[…M(e.prototype,p)].map(r).concat(t),set(e){t=e}})}(e),function(e){let t=d(e.name).replace(/-element$/,””);try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&”NotSupportedError”===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,r;for(let t of(e.toggleAttribute(“data-catalyst”,!0),customElements.upgrade(e),e.querySelectorAll(“template[data-shadowroot]”)))t.parentElement===e&&e.attachShadow({mode:”closed”===t.getAttribute(“data-shadowroot”)?”closed”:”open”}).append(t.content.cloneNode(!0));(b(e),o.add(e),e.shadowRoot&&(a(r=e.shadowRoot),s(r)),a(e),s(e.ownerDocument),t?.call(e),e.shadowRoot)&&(a(n=e.shadowRoot),s(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,o){b(e),”data-catalyst”!==t&&o&&o.call(e,t,n,r)}};function M(e,t){if(!Object.prototype.hasOwnProperty.call(e,A)){let t=e[A],n=e[A]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[A];return n.has(t)||n.set(t,new Set),n.get(t)}function T(e,t){M(e,”target”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){return h(this,t)}})}function P(e,t){M(e,”targets”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~=”${e}.${t}”]`))r.closest(e)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~=”${e}.${t}”]`))r.closest(e)===this&&n.push(r);return n}})}function O(e){new CatalystDelegate(e)}},46493:(e,t,n)=>{n.d(t,{Cj:()=>V,iP:()=>H});let r=”less”,o=”equal”,i=”greater”;var s,a,l,c,u,h,d,f,p,m,g,b,y,v,w,E,x,k=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},C=(e,t,n)=>(k(e,t,”read from private field”),n?n.call(e):t.get(e)),S=(e,t,n)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,n)},A=(e,t,n,r)=>(k(e,t,”write to private field”),r?r.call(e,n):t.set(e,n),n),M=(e,t,n)=>(k(e,t,”access private method”),n);let MinHeap=class MinHeap{constructor({compareFn:e}){S(this,l),S(this,u),S(this,s,void 0),S(this,a,void 0),A(this,s,e),A(this,a,[])}insert(e){C(this,a).push(e),M(this,u,h).call(this)}pop(){let e=C(this,a)[0];return C(this,a)[C(this,a).length-1]&&(C(this,a)[0]=C(this,a)[C(this,a).length-1],C(this,a).pop()),M(this,l,c).call(this),e}peek(){return C(this,a)[0]}delete(e){let t=C(this,a).indexOf(e);-1!==t&&(P(C(this,a),t,C(this,a).length-1),C(this,a).pop(),M(this,l,c).call(this))}clear(){A(this,a,[])}get size(){return C(this,a).length}};function T(e){return Math.floor((e-1)/2)}function P(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s=new WeakMap,a=new WeakMap,l=new WeakSet,c=function(){let e=0;for(;2*e+10&&C(this,s).call(this,C(this,a)[t],(e=C(this,a),e[T(t)]))===r;)P(C(this,a),t,T(t)),t=T(t)};var O=Object.defineProperty,j=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},L=(e,t,n)=>(j(e,t,”read from private field”),n?n.call(e):t.get(e)),W=(e,t,n)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,n)},F=(e,t,n,r)=>(j(e,t,”write to private field”),r?r.call(e,n):t.set(e,n),n);let Deferred=class Deferred{constructor(){((e,t,n)=>{let r;return(r=”symbol”!=typeof t?t+””:t)in e?O(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n})(this,d,”Deferred”),W(this,f,void 0),W(this,p,void 0),W(this,m,void 0),F(this,f,new Promise((e,t)=>{F(this,p,e),F(this,m,t)}))}then(e,t){return Promise.prototype.then.apply(L(this,f),[e,t])}catch(e){return Promise.prototype.catch.apply(L(this,f),[e])}finally(e){return Promise.prototype.finally.apply(L(this,f),[e])}resolve(e){L(this,p).call(this,e)}reject(e){L(this,m).call(this,e)}getPromise(){return L(this,f)}};d=Symbol.toStringTag,f=new WeakMap,p=new WeakMap,m=new WeakMap;var R=(e,t,n)=>{if(!t.has(e))throw TypeError(“Cannot “+n)},$=(e,t,n)=>(R(e,t,”read from private field”),n?n.call(e):t.get(e)),_=(e,t,n)=>{if(t.has(e))throw TypeError(“Cannot add the same private member more than once”);t instanceof WeakSet?t.add(e):t.set(e,n)},q=(e,t,n,r)=>(R(e,t,”write to private field”),r?r.call(e,n):t.set(e,n),n),D=(e,t,n)=>(R(e,t,”access private method”),n);let LiveRegionElement=class LiveRegionElement extends HTMLElement{constructor(){if(super(),_(this,v),_(this,E),_(this,g,void 0),_(this,b,void 0),_(this,y,void 0),!this.shadowRoot){const e=(I||((I=document.createElement(“template”)).innerHTML=N),I);this.attachShadow({mode:”open”}).appendChild(e.content.cloneNode(!0))}q(this,g,!1),q(this,y,null),q(this,b,new MinHeap({compareFn:z}))}get delay(){let e=this.getAttribute(“delay”);return e?parseInt(e,10):150}set delay(e){this.setAttribute(“delay”,`${e}`)}announce(e,t={}){let{delayMs:n,politeness:r=”polite”}=t,o=Date.now(),i=new Deferred,s={deferred:i,politeness:r,contents:e,scheduled:void 0!==n?o+n:o};return $(this,b).insert(s),D(this,v,w).call(this),{…i.getPromise(),cancel:()=>{$(this,b).delete(s),i.resolve()}}}announceFromElement(e,t){var n;let r,o=(r=””,(n=e).hasAttribute(“aria-label”)?r=n.getAttribute(“aria-label”):n.innerText?r=n.innerText:n.textContent&&(r=n.textContent),r?r.trim():””);return””!==o?this.announce(o,t):{…Promise.resolve(),cancel:U}}getMessage(e=”polite”){let t=this.shadowRoot?.getElementById(e);if(!t)throw Error(“Unable to find container for message”);return t.textContent}clear(){null!==$(this,y)&&(clearTimeout($(this,y)),q(this,y,null)),$(this,b).clear()}};g=new WeakMap,b=new WeakMap,y=new WeakMap,v=new WeakSet,w=function(){if($(this,g))return;let e=$(this,b).peek();if(!e)return;null!==$(this,y)&&(clearTimeout($(this,y)),q(this,y,null));let t=Date.now();if(e.scheduled<=t){(e=$(this,b).pop())&&D(this,E,x).call(this,e),D(this,v,w).call(this);return}let n=e.scheduled-t;q(this,y,window.setTimeout(()=>{q(this,y,null),D(this,v,w).call(this)},n))},E=new WeakSet,x=function(e){q(this,g,!0);let{contents:t,deferred:n,politeness:r}=e,o=this.shadowRoot?.getElementById(r);if(!o)throw q(this,g,!1),Error(`Unable to find container for message. Expected a container with id=”${r}”`);o.textContent===t?o.textContent=`${t}\xa0`:o.textContent=t,null!==$(this,y)&&clearTimeout($(this,y)),n.resolve(),this.delay>0?q(this,y,window.setTimeout(()=>{q(this,y,null),q(this,g,!1),D(this,v,w).call(this)},this.delay)):(q(this,y,null),q(this,g,!1),D(this,v,w).call(this))};let I=null,N=`
`;function z(e,t){return e.politeness===t.politeness?e.scheduled===t.scheduled?o:e.scheduled{r=!0};return{…X(J).then(()=>{if(!r){let r=n.announce(e,t);return o=r.cancel,r}}),cancel:()=>{o()}}}return n.announce(e,t)}function V(e,t={}){let n=B(t.from);if(!n){n=document.createElement(“live-region”),t.appendTo?t.appendTo.appendChild(n):G(t.from).appendChild(n);let r=!1,o=()=>{r=!0};return{…X(J).then(()=>{if(!r){let r=n.announceFromElement(e,t);return o=r.cancel,r}}),cancel:()=>{o()}}}return n.announceFromElement(e,t)}function B(e){let t=null;return null!==(t=e?function(e){let t=e.closest(“dialog”),n=e;for(;(n=n.parentElement)&&(!t||t.contains(n));)for(let e of n.childNodes)if(e instanceof LiveRegionElement)return e;return null}(e):null)||null!==(t=G(e).querySelector(“live-region”))?t:null}function G(e){let t=document.body;if(e){let n=e.closest(“dialog”);n&&(t=n)}return t}customElements.get(“live-region”)||customElements.define(“live-region”,LiveRegionElement);let J=150;function X(e){return new Promise(t=>{setTimeout(t,e)})}},50894:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t){return t.get?t.get.call(e):t.value}},53482:(e,t,n)=>{n.d(t,{_:()=>r});function r(e,t){if(t.has(e))throw TypeError(“Cannot initialize the same private elements twice on an object”)}},85242:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(5570),o=n(29304);function i(e,t,n){var i=(0,o._)(e,t,”set”);return(0,r._)(e,i,n),n}},97797:(e,t,n)=>{function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>A,on:()=>S});var o,i=window.document.documentElement,s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return s.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:”ID”,selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:”CLASS”,selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if(“string”==typeof t)return t.split(/\s/);else if(“object”==typeof t&&”baseVal”in t)return t.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:”TAG”,selector:function(e){var t;if(t=e.match(c))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),r.prototype.indexes.default={name:”UNIVERSAL”,selector:function(){return!0},element:function(){return[!0]}},o=”function”==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+” “]},e.prototype.set=function(e,t){this.map[e+” “]=t},e}();var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|[‘”][^'”]*[‘”]|[^\[\]'”]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function h(e,t){var n,r,o,i,s,a,l=(e=e.slice(0).concat(e.default)).length,c=t,h=[];do if(u.exec(“”),(o=u.exec(c))&&(c=o[3],o[2]||!c)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},i=!!o.capture,s=i?p:f,a=s[e];a||(a=new r,s[e]=a,document.addEventListener(e,C,i)),a.add(t,n)}function A(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}}}]); //# sourceMappingURL=45688-4166dd8ba92d.js.map