티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[70894],{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}}},18150:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(53482);function i(e,t,n){(0,r._)(e,t),t.set(e,n)}},18679:(e,t,n)=>{n.d(t,{s:()=>AnalyticsClient});let r=[“utm_source”,”utm_medium”,”utm_campaign”,”utm_term”,”utm_content”,”scid”];var i=n(36301);let AnalyticsClient=class AnalyticsClient{constructor(e){this.options=e}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,i.y)()}createEvent(e){return{page:location.href,title:document.title,context:{…this.options.baseContext,…function(){let e={};try{for(let[t,n]of new URLSearchParams(window.location.search)){let i=t.toLowerCase();r.includes(i)&&(e[i]=n)}return e}catch(e){return{}}}(),…e}}}sendPageView(e){let t=this.createEvent(e);this.send({page_views:[t]})}sendEvent(e,t){let n={…this.createEvent(t),type:e};this.send({events:[n]})}send({page_views:e,events:t}){let n=JSON.stringify({client_id:this.clientId,page_views:e,events:t,request_context:{referrer:function(){let e;try{e=window.top.document.referrer}catch(t){if(window.parent)try{e=window.parent.document.referrer}catch(e){}}return””===e&&(e=document.referrer),e}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(e){return”unknown”}}(),browser_resolution:function(){let e=0,t=0;try{return”number”==typeof window.innerWidth?(t=window.innerWidth,e=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(t=document.body.clientWidth,e=document.body.clientHeight),`${t}x${e}`}catch(e){return”unknown”}}(),browser_languages:navigator.languages?navigator.languages.join(“,”):navigator.language||””,pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}});try{if(navigator.sendBeacon)return void navigator.sendBeacon(this.collectorUrl,n)}catch{}fetch(this.collectorUrl,{method:”POST”,cache:”no-cache”,headers:{“Content-Type”:”application/json”},body:n,keepalive:!1})}}},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,{_:()=>o});var r=n(50894),i=n(29304);function o(e,t){var n=(0,i._)(e,t,”get”);return(0,r._)(e,n)}},36301:(e,t,n)=>{let r;function i(){return`${Math.round(0x7fffffff*Math.random())}.${Math.round(Date.now()/1e3)}`}function o(){try{let e=function(){let e,t=document.cookie.match(/_octo=([^;]+)/g);if(!t)return;let n=[0,0];for(let r of t){let[,t]=r.split(“=”),[,i,…o]=t.split(“.”),l=i.split(“-“).map(Number);l>n&&(n=l,e=o.join(“.”))}return e}();if(e)return e;let t=i();return!function(e){let t=`GH1.1.${e}`,n=new Date(Date.now()+31536e6).toUTCString(),{domain:r}=document;r.endsWith(“.github.com”)&&(r=”github.com”),document.cookie=`_octo=${t}; expires=${n}; path=/; domain=${r}; secure; samesite=lax`}(t),t}catch(e){return r||(r=i()),r}}n.d(t,{y:()=>o})},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”)}},70837:(e,t,n)=>{n.d(t,{O:()=>r});function r(e=”ha”){let t,n={};for(let r of Array.from(document.head.querySelectorAll(`meta[name^=”${e}-“]`))){let{name:i,content:o}=r,l=i.replace(`${e}-`,””).replace(/-/g,”_”);”url”===l?t=o:n[l]=o}if(!t)throw Error(`AnalyticsClient ${e}-url meta tag not found`);return{collectorUrl:t,…Object.keys(n).length>0?{baseContext:n}:{}}}},74057:(e,t,n)=>{n.d(t,{A:()=>p});let r=”data-close-dialog”,i=`[${r}]`;function o(e){let t=Array.from(e.querySelectorAll(“[autofocus]”)).filter(a)[0];t||(t=e,e.setAttribute(“tabindex”,”-1″)),t.focus()}function l(e){let t=e.currentTarget;t instanceof Element&&(“Escape”===e.key||”Esc”===e.key?(d(t,!1),e.stopPropagation()):”Tab”===e.key&&function(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.querySelector(“details-dialog”);if(!t)return;e.preventDefault();let n=Array.from(t.querySelectorAll(“*”)).filter(a);if(0===n.length)return;let r=e.shiftKey?-1:1,i=t.getRootNode(),o=t.contains(i.activeElement)?i.activeElement:null,l=-1===r?-1:0;if(o instanceof HTMLElement){let e=n.indexOf(o);-1!==e&&(l=e+r)}l<0?l=n.length-1:l%=n.length,n[l].focus()}(e))}function a(e){var t;return e.tabIndex>=0&&!e.disabled&&!(t=e).hidden&&(!t.type||”hidden”!==t.type)&&(t.offsetWidth>0||t.offsetHeight>0)}function s(e){let t=e.querySelector(“details-dialog”);return!(t instanceof DetailsDialogElement)||t.dispatchEvent(new CustomEvent(“details-dialog-close”,{bubbles:!0,cancelable:!0}))}function c(e){if(!(e.currentTarget instanceof Element))return;let t=e.currentTarget.closest(“details”);t&&t.hasAttribute(“open”)&&(s(t)||(e.preventDefault(),e.stopPropagation()))}function u(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.querySelector(“details-dialog”);if(n instanceof DetailsDialogElement)if(t.hasAttribute(“open”)){let e=”getRootNode”in n?n.getRootNode():document;e.activeElement instanceof HTMLElement&&g.set(n,{details:t,activeElement:e.activeElement}),o(n),t.addEventListener(“keydown”,l)}else{var r,i;let e;for(let e of n.querySelectorAll(“form”))e.reset();let o=(r=t,i=n,(e=g.get(i))&&e.activeElement instanceof HTMLElement?e.activeElement:r.querySelector(“summary”));o&&o.focus(),t.removeEventListener(“keydown”,l)}}function d(e,t){t!==e.hasAttribute(“open”)&&(t?e.setAttribute(“open”,””):s(e)&&e.removeAttribute(“open”))}function f(e){let t=e.currentTarget;if(!(t instanceof Element))return;let n=t.querySelector(“details-dialog”);if(!(n instanceof DetailsDialogElement))return;let r=n.querySelector(“include-fragment:not([src])”);if(!r)return;let i=n.src;null!==i&&(r.addEventListener(“loadend”,()=>{t.hasAttribute(“open”)&&o(n)}),r.setAttribute(“src”,i),m(t))}function h(e,t,n){m(e),t&&e.addEventListener(“toggle”,f,{once:!0}),t&&n&&e.addEventListener(“mouseover”,f,{once:!0})}function m(e){e.removeEventListener(“toggle”,f),e.removeEventListener(“mouseover”,f)}let g=new WeakMap;let DetailsDialogElement=class DetailsDialogElement extends HTMLElement{static get CLOSE_ATTR(){return r}static get CLOSE_SELECTOR(){return i}constructor(){super(),g.set(this,{details:null,activeElement:null}),this.addEventListener(“click”,function({target:e}){if(!(e instanceof Element))return;let t=e.closest(“details”);t&&e.closest(i)&&d(t,!1)})}get src(){return this.getAttribute(“src”)}set src(e){this.setAttribute(“src”,e||””)}get preload(){return this.hasAttribute(“preload”)}set preload(e){e?this.setAttribute(“preload”,””):this.removeAttribute(“preload”)}connectedCallback(){this.setAttribute(“role”,”dialog”),this.setAttribute(“aria-modal”,”true”);let e=g.get(this);if(!e)return;let t=this.parentElement;if(!t)return;let n=t.querySelector(“summary”);n&&(n.hasAttribute(“role”)||n.setAttribute(“role”,”button”),n.addEventListener(“click”,c,{capture:!0})),t.addEventListener(“toggle”,u),e.details=t,h(t,this.src,this.preload)}disconnectedCallback(){let e=g.get(this);if(!e)return;let{details:t}=e;if(!t)return;t.removeEventListener(“toggle”,u),m(t);let n=t.querySelector(“summary”);n&&n.removeEventListener(“click”,c,{capture:!0}),e.details=null}toggle(e){let t=g.get(this);if(!t)return;let{details:n}=t;n&&d(n,e)}static get observedAttributes(){return[“src”,”preload”]}attributeChangedCallback(){let e=g.get(this);if(!e)return;let{details:t}=e;t&&h(t,this.src,this.preload)}};let p=DetailsDialogElement;window.customElements.get(“details-dialog”)||(window.DetailsDialogElement=DetailsDialogElement,window.customElements.define(“details-dialog”,DetailsDialogElement))},85242:(e,t,n)=>{n.d(t,{_:()=>o});var r=n(5570),i=n(29304);function o(e,t,n){var o=(0,i._)(e,t,”set”);return(0,r._)(e,o,n),n}},94147:(e,t,n)=>{n.d(t,{T:()=>include_fragment_element_IncludeFragmentElement});var r,i,o,l,a,s,c,u,d=function(e,t,n,r){if(“a”===n&&!r)throw TypeError(“Private accessor was defined without a getter”);if(“function”==typeof t?e!==t||!r:!t.has(e))throw TypeError(“Cannot read private member from an object whose class did not declare it”);return”m”===n?r:”a”===n?r.call(e):r?r.value:t.get(e)},f=function(e,t,n,r,i){if(“m”===r)throw TypeError(“Private method is not writable”);if(“a”===r&&!i)throw TypeError(“Private accessor was defined without a setter”);if(“function”==typeof t?e!==t||!i:!t.has(e))throw TypeError(“Cannot write private member to an object whose class did not declare it”);return”a”===r?i.call(e,n):i?i.value=n:t.set(e,n),n};let h=new WeakMap,m=null;let include_fragment_element_IncludeFragmentElement=class include_fragment_element_IncludeFragmentElement extends HTMLElement{constructor(){super(…arguments),r.add(this),i.set(this,!1),o.set(this,new IntersectionObserver(e=>{for(let t of e)if(t.isIntersecting){let{target:e}=t;if(d(this,o,”f”).unobserve(e),!(e instanceof include_fragment_element_IncludeFragmentElement))return;”lazy”===e.loading&&d(this,r,”m”,l).call(this)}},{rootMargin:”0px 0px 256px 0px”,threshold:.01}))}static define(e=”include-fragment”,t=customElements){return t.define(e,this),this}static setCSPTrustedTypesPolicy(e){m=null===e?e:Promise.resolve(e)}static get observedAttributes(){return[“src”,”loading”]}get src(){let e=this.getAttribute(“src”);if(!e)return””;{let t=this.ownerDocument.createElement(“a”);return t.href=e,t.href}}set src(e){this.setAttribute(“src”,e)}get loading(){return”lazy”===this.getAttribute(“loading”)?”lazy”:”eager”}set loading(e){this.setAttribute(“loading”,e)}get accept(){return this.getAttribute(“accept”)||””}set accept(e){this.setAttribute(“accept”,e)}get data(){return d(this,r,”m”,s).call(this)}attributeChangedCallback(e,t){“src”===e?this.isConnected&&”eager”===this.loading&&d(this,r,”m”,l).call(this):”loading”===e&&this.isConnected&&”eager”!==t&&”eager”===this.loading&&d(this,r,”m”,l).call(this)}connectedCallback(){if(!this.shadowRoot){this.attachShadow({mode:”open”});let e=document.createElement(“style”);e.textContent=”:host {display: block;}”,this.shadowRoot.append(e,document.createElement(“slot”))}this.src&&”eager”===this.loading&&d(this,r,”m”,l).call(this),”lazy”===this.loading&&d(this,o,”f”).observe(this)}request(){let e=this.src;if(!e)throw Error(“missing src”);return new Request(e,{method:”GET”,credentials:”same-origin”,headers:{Accept:this.accept||”text/html”}})}load(){return d(this,r,”m”,s).call(this)}fetch(e){return fetch(e)}refetch(){h.delete(this),d(this,r,”m”,l).call(this)}};i=new WeakMap,o=new WeakMap,r=new WeakSet,l=async function(){if(!d(this,i,”f”)){f(this,i,!0,”f”),d(this,o,”f”).unobserve(this);try{let e=await d(this,r,”m”,a).call(this);if(e instanceof Error)throw e;let t=document.createElement(“template”);t.innerHTML=e;let n=document.importNode(t.content,!0);if(!this.dispatchEvent(new CustomEvent(“include-fragment-replace”,{cancelable:!0,detail:{fragment:n}})))return void f(this,i,!1,”f”);this.replaceWith(n),this.dispatchEvent(new CustomEvent(“include-fragment-replaced”))}catch(e){this.classList.add(“is-error”)}finally{f(this,i,!1,”f”)}}},a=async function(){let e=this.src,t=h.get(this);if(t&&t.src===e)return t.data;{let t;return t=e?d(this,r,”m”,u).call(this):Promise.reject(Error(“missing src”)),h.set(this,{src:e,data:t}),t}},s=async function(){let e=await d(this,r,”m”,a).call(this);if(e instanceof Error)throw e;return e.toString()},c=async function(e,t){for(let n of(await new Promise(e=>setTimeout(e,0)),e))this.dispatchEvent(t?new CustomEvent(n,{detail:{error:t}}):new Event(n))},u=async function(){try{var e;await d(this,r,”m”,c).call(this,[“loadstart”]);let t=await this.fetch(this.request()),n=t.headers.get(“Content-Type”);if(!((e=this.accept)&&e.split(“,”).find(e=>e.match(/^\s*\*\/\*/)))&&(!n||!n.includes(this.accept?this.accept:”text/html”)))throw Error(`Failed to load resource: expected ${this.accept||”text/html”} but was ${n}`);if(200!==t.status)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);let i=await t.text(),o=i;return m&&(o=(await m).createHTML(i,t)),d(this,r,”m”,c).call(this,[“load”,”loadend”]),o}catch(e){throw d(this,r,”m”,c).call(this,[“error”,”loadend”],e),e}};let g=”undefined”!=typeof globalThis?globalThis:window;try{g.IncludeFragmentElement=include_fragment_element_IncludeFragmentElement.define()}catch(e){if(!(g.DOMException&&e instanceof DOMException&&”NotSupportedError”===e.name)&&!(e instanceof ReferenceError))throw e}},95493:(e,t,n)=>{function r(e,t){return i(function(e){if(e.activeElement!==e.body)return e.activeElement;var t=e.querySelectorAll(“:hover”),n=t.length;if(n)return t[n-1]}(e),t)}function i(e,t){var n=e;if(!n)return Promise.resolve(t());var r=n.ownerDocument.documentElement,i=function(e){for(var t=[];e;){var n=e.getBoundingClientRect(),r=n.top,i=n.left;t.push({element:e,top:r,left:i}),e=e.parentElement}return t}(n);return Promise.resolve(t()).then(function(e){var t=function(e){for(var t=0;tr,_H:()=>i})}}]);
//# sourceMappingURL=70894-ef2d8cad0ac4.js.map