티스토리 수익 글 보기
“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[95322],{4559:(e,t,n)=>{n.d(t,{C:()=>s,i:()=>a});var i=n(71315),o=n(69599),r=n(46493);function s(e,t){(0,o.G7)(“arianotify_comprehensive_migration”)?a(l(e),{…t,element:t?.element??e}):(0,o.G7)(“primer_live_region_element”)&&t?.element===void 0?(0,r.Cj)(e,{politeness:t?.assertive?”assertive”:”polite”}):a(l(e),t)}function a(e,t){let{assertive:n,element:s}=t??{};if((0,o.G7)(“arianotify_comprehensive_migration”))try{(s?.isConnected?s:i.XC).ariaNotify(e,{priority:n?”high”:”normal”})}catch(e){console.error(“Error calling ariaNotify:”,e)}else{var a,l;let t;(0,o.G7)(“primer_live_region_element”)&&void 0===s?(0,r.iP)(e,{politeness:n?”assertive”:”polite”}):(a=e,l=n,(t=s??i.XC?.querySelector(l?”#js-global-screen-reader-notice-assertive”:”#js-global-screen-reader-notice”))&&(t.textContent===a?t.textContent=`${a}\u00A0`:t.textContent=a))}}function l(e){return(e.getAttribute(“aria-label”)||e.innerText||””).trim()}n(89272)},13523:(e,t,n)=>{n.d(t,{$r:()=>s,M1:()=>a,li:()=>o,pS:()=>c,wE:()=>l});var i=n(71315);let o=”X-Fetch-Nonce”,r=new Set;function s(e){r.add(e)}function a(){return r.values().next().value||””}function l(e){let t={};return void 0!==e&&(t[“X-Fetch-Nonce-To-Validate”]=e),void 0===e?t[o]=a():r.has(e)?t[o]=e:t[o]=Array.from(r).join(“,”),t}function c(){let e=i.XC?.head?.querySelector(‘meta[name=”fetch-nonce”]’)?.content||””;e&&s(e)}},35269:(e,t,n)=>{(0,n(97797).on)(“change”,”.js-profile-editable-pronouns-select”,function(){let e=document.querySelector(“.js-profile-editable-pronouns-select”),t=document.querySelector(“.js-profile-editable-pronouns-custom”),n=t.getAttribute(“data-initial-value”);”Custom”===e.value?([…e.options].find(e=>e.value===n)?t.value=””:t.value=n,t.hidden=!1,t.focus()):(t.value=e.value,t.hidden=!0)})},46865:(e,t,n)=>{n.d(t,{Cy:()=>a,K3:()=>u,Z8:()=>l,k_:()=>r,lK:()=>f,m$:()=>s});var i=n(88578);function o(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:n}))}function r(e,t){t&&(function(e,t){if(!(e instanceof HTMLFormElement))throw TypeError(“The specified element is not of type HTMLFormElement.”);if(!(t instanceof HTMLElement))throw TypeError(“The specified element is not of type HTMLElement.”);if(“submit”!==t.type)throw TypeError(“The specified element is not a submit button.”);if(!e||e!==t.form)throw Error(“The specified element is not owned by the form element.”)}(e,t),(0,i.A)(t)),o(e,”submit”,!0)&&e.submit()}function s(e,t){if(“boolean”==typeof t)if(e instanceof HTMLInputElement)e.checked=t;else throw TypeError(“only checkboxes can be set to boolean value”);else if(“checkbox”===e.type)throw TypeError(“checkbox can’t be set to string value”);else e.value=t;o(e,”change”,!1)}function a(e,t){for(let n in t){let i=t[n],o=e.elements.namedItem(n);o instanceof HTMLInputElement?o.value=i:o instanceof HTMLTextAreaElement&&(o.value=i)}}function l(e){if(!(e instanceof HTMLElement))return!1;let t=e.nodeName.toLowerCase(),n=(e.getAttribute(“type”)||””).toLowerCase();return”select”===t||”textarea”===t||”input”===t&&”submit”!==n&&”reset”!==n||e.isContentEditable}function c(e){return new URLSearchParams(e)}function u(e,t){let n=new URLSearchParams(e.search);for(let[e,i]of c(t))n.append(e,i);return n.toString()}function f(e){return c(new FormData(e)).toString()}},51987:(e,t,n)=>{n.d(t,{jC:()=>a,kt:()=>r,tV:()=>s});var i=n(87057),o=n(13523);function r(e){let t={“X-Requested-With”:”XMLHttpRequest”,…(0,o.wE)(e)};return{…t,[i.S]:(0,i.O)()}}function s(e,t){for(let[n,i]of Object.entries(r(t)))e.set(n,i)}function a(e){return{“X-GitHub-App-Type”:e}}},53331:(e,t,n)=>{n.d(t,{A:()=>s,K:()=>o});var i=n(50467);function o(e){let t=[…e.querySelectorAll(“meta[name=html-safe-nonce]”)].map(e=>e.content);if(t.length<1)throw Error("could not find html-safe-nonce on document");return t}let r=class ResponseError extends Error{constructor(e,t){super(`${e} for HTTP ${t.status}`),(0,i._)(this,"response",void 0),this.response=t,this.name="ResponseError"}};function s(e,t,n=!1){let i=t.headers.get("content-type")||"";if(!n&&!i.startsWith("text/html"))throw new r(`expected response with text/html, but was ${i}`,t);if(n&&!(i.startsWith("text/html")||i.startsWith("application/json")))throw new r(`expected response with text/html or application/json, but was ${i}`,t);let o=t.headers.get("x-html-safe");if(o){if(!e.includes(o))throw new r("response X-HTML-Safe nonce did not match",t)}else throw new r("missing X-HTML-Safe nonce",t)}},53627:(e,t,n)=>{n.d(t,{C3:()=>l,JV:()=>r,K3:()=>d,MM:()=>c,OE:()=>h,Zu:()=>f,bj:()=>s,jc:()=>u,kd:()=>a});var i=n(71315);let o=null;function r(){return i.Kn?.state||{}}function s(e){p(r(),””,e)}function a(e){i.Kn?.pushState({appId:r().appId},””,e),m()}function l(e){let t={…r(),…e};o&&(o=t),p(t,””,location.href)}function c(e){s(`?${e.toString()}${i.fV.hash}`)}function u(){s(i.fV.pathname+i.fV.hash)}function f(e){s(e.startsWith(“#”)?e:`#${e}`),(o=r())&&requestIdleCallback(()=>{!history.state&&o&&(l(o),o=null)})}function d(){s(i.fV.pathname+i.fV.search)}function h(){i.Kn?.back()}function p(e,t,n){i.Kn?.replaceState(e,t,n),m()}function m(){i.cg?.dispatchEvent(new CustomEvent(“statechange”,{bubbles:!1,cancelable:!1}))}},58371:(e,t,n)=>{n.d(t,{Ax:()=>o.Ax,JW:()=>r,ZV:()=>o.ZV});var i=n(51987),o=n(13937);function r(e,t){(0,o.JW)(e,async(e,n,o)=>((0,i.tV)(o.headers),t(e,n,o)))}},69759:(e,t,n)=>{n.d(t,{B:()=>i});function i(e,t){let n=e.createElement(“template”);return n.innerHTML=t,e.importNode(n.content,!0)}},79172:(e,t,n)=>{var i=n(50467),o=n(31635),r=n(39595),s=n(46865),a=n(51987);let l=class WaitingFormElement extends HTMLElement{async submitPolitely(){this.submit.disabled=!0;try{this.prerequisites.length>0&&await Promise.all(this.prerequisites.map(e=>this.getPrerequisitePromise(e))),(0,s.k_)(this.form)}finally{this.submit.disabled=!1}}getPrerequisitePromise(e){let t=e.getAttribute(“data-waiting-form-method”)||”getPromise”;return e[t]()}};(0,o.Cg)([r.aC],l.prototype,”form”,void 0),(0,o.Cg)([r.zV],l.prototype,”prerequisites”,void 0),(0,o.Cg)([r.aC],l.prototype,”submit”,void 0),l=(0,o.Cg)([r.p_],l);let SocialAccountEditorElement=class SocialAccountEditorElement extends HTMLElement{recognizeUrl(){this.recognitionPromise=new Promise(async e=>{this.preprocessUrl();let t=await this.findMatchingSocialAccountIconOption(this.urlField.value);this.setChosenSocialIcon(t),e()})}resetToDefault(){this.urlField.value!==this.urlField.defaultValue&&(0,s.m$)(this.urlField,this.urlField.defaultValue)}waitForRecognition(){return this.recognitionPromise}preprocessUrl(){let e=this.urlField.value.trim();0!==e.length&&(/^https?:\/\//.test(e)||(this.urlField.value=`https://${e}`))}setChosenSocialIcon(e){let t=e.getAttribute(“data-provider-key”)||”generic”;for(let t of this.iconOptions)t.hidden=t!==e;this.iconSpinner.hidden=!0,this.iconField.value=t}async findMatchingSocialAccountIconOption(e){for(let t of this.iconOptions)for(let n of t.querySelectorAll(“[data-provider-pattern]”))if(RegExp(n.getAttribute(“data-provider-pattern”),”i”).test(e))return t;let t=await this.findNodeInfoIconOption(e);return t||this.iconGeneric}async findNodeInfoIconOption(e){if(0===this.nodeinfoSoftwareUrl.trim().length)return null;let t=new Map;for(let n of this.iconOptions)for(let i of n.querySelectorAll(“[data-try-nodeinfo-pattern]”)){let o=RegExp(i.getAttribute(“data-try-nodeinfo-pattern”),”i”),r=i.getAttribute(“data-nodeinfo-software”);e.match(o)&&r&&t.set(r,n)}if(0===t.size)return null;let n=null;try{n=new URL(e,window.location.origin)}catch{return null}this.showSpinner();let i=new URL(this.nodeinfoSoftwareUrl,window.location.origin);i.searchParams.set(“host”,n.host);let o=await fetch(i,{headers:{…(0,a.kt)(),Accept:”application/json”}}),r=await o.json(),s=r?.software_name;return s&&t.get(s)||null}showSpinner(){for(let e of this.iconOptions)e.hidden=!0;this.iconSpinner.hidden=!1}constructor(…e){super(…e),(0,i._)(this,”nodeinfoSoftwareUrl”,””),(0,i._)(this,”recognitionPromise”,Promise.resolve())}};(0,o.Cg)([r.aC],SocialAccountEditorElement.prototype,”urlField”,void 0),(0,o.Cg)([r.aC],SocialAccountEditorElement.prototype,”iconField”,void 0),(0,o.Cg)([r.zV],SocialAccountEditorElement.prototype,”iconOptions”,void 0),(0,o.Cg)([r.aC],SocialAccountEditorElement.prototype,”iconGeneric”,void 0),(0,o.Cg)([r.aC],SocialAccountEditorElement.prototype,”iconSpinner”,void 0),(0,o.Cg)([r.CF],SocialAccountEditorElement.prototype,”nodeinfoSoftwareUrl”,void 0),SocialAccountEditorElement=(0,o.Cg)([r.p_],SocialAccountEditorElement)},87057:(e,t,n)=>{n.d(t,{O:()=>s,S:()=>r});var i=n(71315);let o=i.cg?.document?.head?.querySelector(‘meta[name=”release”]’)?.content||””,r=”X-GitHub-Client-Version”;function s(){return o}},88578:(e,t,n)=>{function i(e){let t=e.closest(“form”);if(!(t instanceof HTMLFormElement))return;let n=o(t);if(e.name){let i=e.matches(“input[type=submit]”)?”Submit”:””,o=e.value||i;n||((n=document.createElement(“input”)).type=”hidden”,n.classList.add(“js-submit-button-value”),t.prepend(n)),n.name=e.name,n.value=o}else n&&n.remove()}function o(e){let t=e.querySelector(“input.js-submit-button-value”);return t instanceof HTMLInputElement?t:null}n.d(t,{A:()=>i,C:()=>o})},90891:(e,t,n)=>{n.d(t,{Ee:()=>a,Ts:()=>s,b4:()=>l});var i=n(53331),o=n(69759),r=n(51987);async function s(e,t,n){let s=new Request(t,n);(0,r.tV)(s.headers);let a=await self.fetch(s);if(a.status<200||a.status>=300)throw Error(`HTTP ${a.status}${a.statusText||””}`);return(0,i.A)((0,i.K)(e),a),(0,o.B)(e,await a.text())}function a(e,t,n=1e3,i=[200],o=[202]){return async function n(s){let a=new Request(e,t);(0,r.tV)(a.headers);let l=await self.fetch(a);if(o.includes(l.status))return await new Promise(e=>setTimeout(e,s)),n(1.5*s);if(i.includes(l.status))return l;if(l.status<200||l.status>=300)throw Error(`HTTP ${l.status}${l.statusText||””}`);throw Error(`Unexpected ${l.status} response status from poll endpoint`)}(n)}async function l(e,t,n){let{wait:i=500,acceptedStatusCodes:o=[200],max:s=3,attempt:a=0}=n||{},c=async()=>new Promise((n,l)=>{setTimeout(async()=>{try{let i=new Request(e,t);(0,r.tV)(i.headers);let l=await self.fetch(i);if(o.includes(l.status)||a+1===s)return n(l);n(“retry”)}catch(e){l(e)}},i*a)}),u=await c();return”retry”!==u?u:l(e,t,{wait:i,acceptedStatusCodes:o,max:s,attempt:a+1})}}}]);
//# sourceMappingURL=95322-53e1de13b7fe.js.map