티스토리 수익 글 보기
performance.mark(“js-parse-end:notifications-subscriptions-menu-587b14b7f3d92a51.js”);
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“44009”],{94571(t,e,o){let n;o.d(e,{Se:()=>E,FB:()=>u,p_:()=>R,CF:()=>g,aC:()=>x,zV:()=>P});let r=new WeakSet,a=new WeakMap;function i(t=document){if(a.has(t))return a.get(t);let e=!1,o=new MutationObserver(t=>{for(let e of t)if(“attributes”===e.type&&e.target instanceof Element)d(e.target);else if(“childList”===e.type&&e.addedNodes.length)for(let t of e.addedNodes)t instanceof Element&&s(t)});o.observe(t,{childList:!0,subtree:!0,attributeFilter:[“data-action”]});let n={get closed(){return e},unsubscribe(){e=!0,a.delete(t),o.disconnect()}};return a.set(t,n),n}function s(t){for(let e of t.querySelectorAll(“[data-action]”))d(e);t instanceof Element&&t.hasAttribute(“data-action”)&&d(t)}function l(t){let e=t.currentTarget;for(let o of c(e))if(t.type===o.type){let n=e.closest(o.tag);r.has(n)&&”function”==typeof n[o.method]&&n[o.method](t);let a=e.getRootNode();if(a instanceof ShadowRoot&&r.has(a.host)&&a.host.matches(o.tag)){let e=a.host;”function”==typeof e[o.method]&&e[o.method](t)}}}function*c(t){for(let e of(t.getAttribute(“data-action”)||””).trim().split(/\s+/)){let t=e.lastIndexOf(“:”),o=Math.max(0,e.lastIndexOf(“#”))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,o),method:e.slice(o+1)||”handleEvent”}}}function d(t){for(let e of c(t))t.addEventListener(e.type,l)}function u(t,e){let o=t.tagName.toLowerCase();if(t.shadowRoot){for(let n of t.shadowRoot.querySelectorAll(`[data-target~=”${o}.${e}”]`))if(!n.closest(o))return n}for(let n of t.querySelectorAll(`[data-target~=”${o}.${e}”]`))if(n.closest(o)===t)return n}let f=t=>String(“symbol”==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,”-$1″).replace(/–/g,”-“).replace(/^-|-$/,””).toLowerCase(),b=(t,e=”property”)=>{let o=f(t);if(!o.includes(“-“))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,”SyntaxError”);return o},h=”attr”;function g(t,e){L(t,h).add(e)}let p=new WeakSet;function m(t,e){if(p.has(t))return;p.add(t);let o=Object.getPrototypeOf(t),n=o?.constructor?.attrPrefix??”data-“;for(let r of(e||(e=L(o,h)),e)){let e=t[r],o=b(`${n}${r}`),a={configurable:!0,get(){return this.getAttribute(o)||””},set(t){this.setAttribute(o,t||””)}};”number”==typeof e?a={configurable:!0,get(){return Number(this.getAttribute(o)||0)},set(t){this.setAttribute(o,t)}}:”boolean”==typeof e&&(a={configurable:!0,get(){return this.hasAttribute(o)},set(t){this.toggleAttribute(o,t)}}),Object.defineProperty(t,r,a),r in t&&!t.hasAttribute(o)&&a.set.call(t,e)}}let y=new Map,w=new Promise(t=>{“loading”!==document.readyState?t():document.addEventListener(“readystatechange”,()=>t(),{once:!0})}),A=new Promise(t=>{let e=new AbortController;e.signal.addEventListener(“abort”,()=>t());let o={once:!0,passive:!0,signal:e.signal},n=()=>e.abort();document.addEventListener(“mousedown”,n,o),document.addEventListener(“touchstart”,n,o),document.addEventListener(“keydown”,n,o),document.addEventListener(“pointerdown”,n,o)}),v={ready:()=>w,firstInteraction:()=>A,visible:t=>new Promise(e=>{let o=new IntersectionObserver(t=>{for(let n of t)if(n.isIntersecting){e(),o.disconnect();return}},{rootMargin:”0px 0px 256px 0px”,threshold:.01});for(let e of document.querySelectorAll(t))o.observe(e)})},C=new WeakMap;function k(t){cancelAnimationFrame(C.get(t)||0),C.set(t,requestAnimationFrame(()=>{for(let e of y.keys()){let o=t instanceof Element&&t.matches(e)?t:t.querySelector(e);if(customElements.get(e)||o){let n=o?.getAttribute(“data-load-on”)||”ready”,r=n in v?v[n]:v.ready;for(let t of y.get(e)||[])r(e).then(t);y.delete(e),C.delete(t)}}}))}function E(t,e){for(let[o,n]of(“string”==typeof t&&e&&(t={[t]:e}),Object.entries(t)))y.has(o)||y.set(o,new Set),y.get(o).add(n);S(document)}function S(t){n||(n=new MutationObserver(t=>{if(y.size)for(let e of t)for(let t of e.addedNodes)t instanceof Element&&k(t)})),k(t),n.observe(t,{subtree:!0,childList:!0})}let O=Symbol.for(“catalyst”);class ${constructor(t,e){const o=this,n=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){o.connectedCallback(this,n)};const r=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){o.disconnectedCallback(this,r)};const a=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,n){o.attributeChangedCallback(this,t,e,n,a)};let i=t.observedAttributes||[];Object.defineProperty(t,”observedAttributes”,{configurable:!0,get(){return o.observedAttributes(this,i)},set(t){i=t}}),function(t){let e=t.observedAttributes||[],o=t.attrPrefix??”data-“,n=t=>b(`${o}${t}`);Object.defineProperty(t,”observedAttributes”,{configurable:!0,get:()=>[…L(t.prototype,h)].map(n).concat(e),set(t){e=t}})}(t),function(t,e){let o=e||f(t.name).replace(/-element$/,””);try{window.customElements.define(o,t),window[t.name]=customElements.get(o)}catch(t){if(!(t instanceof DOMException&&”NotSupportedError”===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){var o,n;for(let e of(t.toggleAttribute(“data-catalyst”,!0),customElements.upgrade(t),t.querySelectorAll(“template[data-shadowroot]”)))e.parentElement===t&&t.attachShadow({mode:”closed”===e.getAttribute(“data-shadowroot”)?”closed”:”open”}).append(e.content.cloneNode(!0));(m(t),r.add(t),t.shadowRoot&&(s(n=t.shadowRoot),i(n)),s(t),i(t.ownerDocument),e?.call(t),t.shadowRoot)&&(s(o=t.shadowRoot),i(o),S(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,o,n,r){m(t),”data-catalyst”!==e&&r&&r.call(t,e,o,n)}}function L(t,e){if(!Object.prototype.hasOwnProperty.call(t,O)){let e=t[O],o=t[O]=new Map;if(e)for(let[t,n]of e)o.set(t,new Set(n))}let o=t[O];return o.has(e)||o.set(e,new Set),o.get(e)}function x(t,e){L(t,”target”).add(e),Object.defineProperty(t,e,{configurable:!0,get(){return u(this,e)}})}function P(t,e){L(t,”targets”).add(e),Object.defineProperty(t,e,{configurable:!0,get(){let t=this.tagName.toLowerCase(),o=[];if(this.shadowRoot)for(let n of this.shadowRoot.querySelectorAll(`[data-targets~=”${t}.${e}”]`))n.closest(t)||o.push(n);for(let n of this.querySelectorAll(`[data-targets~=”${t}.${e}”]`))n.closest(t)===this&&o.push(n);return o}})}function R(t){if(“string”==typeof t)return e=>{new $(e,t)};new $(t)}}},function(t){t.O(0,[“13726″,”25757″,”28839″,”2966″,”33684″,”34646″,”49863″,”50687″,”53578″,”59299″,”63991″,”68751″,”7053″,”7542″,”78168″,”82729″,”83465″,”86065″,”90225″,”98131”],function(){return t(t.s=70199)}),t.O()}]);
//# sourceMappingURL=notifications-subscriptions-menu-587b14b7f3d92a51-1d94a8d8e73943e9.js.map