티스토리 수익 글 보기

티스토리 수익 글 보기

performance.mark(“js-parse-end:41013-ac21ea90ed8590af.js”); “use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[“41013”],{24052(t,e,i){i.d(e,{ak:()=>L});var s,a,r,n,o,h,l,u,m,d,c,f,g,y,w,b,p,T=function(t,e,i,s,a){if(“m”===s)throw TypeError(“Private method is not writable”);if(“a”===s&&!a)throw TypeError(“Private accessor was defined without a setter”);if(“function”==typeof e?t!==e||!a:!e.has(t))throw TypeError(“Cannot write private member to an object whose class did not declare it”);return”a”===s?a.call(t,i):a?a.value=i:e.set(t,i),i},M=function(t,e,i,s){if(“a”===i&&!s)throw TypeError(“Private accessor was defined without a getter”);if(“function”==typeof e?t!==e||!s:!e.has(t))throw TypeError(“Cannot read private member from an object whose class did not declare it”);return”m”===i?s:”a”===i?s.call(t):s?s.value:e.get(t)};let v=”u”>typeof Intl&&Intl.ListFormat||class{formatToParts(t){let e=[];for(let i of t)e.push({type:”element”,value:i}),e.push({type:”literal”,value:”, “});return e.slice(0,-1)}},D=[[“years”,”year”],[“months”,”month”],[“weeks”,”week”],[“days”,”day”],[“hours”,”hour”],[“minutes”,”minute”],[“seconds”,”second”],[“milliseconds”,”millisecond”]],A={minimumIntegerDigits:2};class C{constructor(t,e={}){s.set(this,void 0);let i=String(e.style||”short”);”long”!==i&&”short”!==i&&”narrow”!==i&&”digital”!==i&&(i=”short”);let a=”digital”===i?”numeric”:i;const r=e.hours||a;a=”2-digit”===r?”numeric”:r;const n=e.minutes||a;a=”2-digit”===n?”numeric”:n;const o=e.seconds||a;a=”2-digit”===o?”numeric”:o;const h=e.milliseconds||a;T(this,s,{locale:t,style:i,years:e.years||”digital”===i?”short”:i,yearsDisplay:”always”===e.yearsDisplay?”always”:”auto”,months:e.months||”digital”===i?”short”:i,monthsDisplay:”always”===e.monthsDisplay?”always”:”auto”,weeks:e.weeks||”digital”===i?”short”:i,weeksDisplay:”always”===e.weeksDisplay?”always”:”auto”,days:e.days||”digital”===i?”short”:i,daysDisplay:”always”===e.daysDisplay?”always”:”auto”,hours:r,hoursDisplay:”always”===e.hoursDisplay||”digital”===i?”always”:”auto”,minutes:n,minutesDisplay:”always”===e.minutesDisplay||”digital”===i?”always”:”auto”,seconds:o,secondsDisplay:”always”===e.secondsDisplay||”digital”===i?”always”:”auto”,milliseconds:h,millisecondsDisplay:”always”===e.millisecondsDisplay?”always”:”auto”},”f”)}resolvedOptions(){return M(this,s,”f”)}formatToParts(t){let e=[],i=M(this,s,”f”),a=i.style,r=i.locale;for(let[s,n]of D){let o=t[s];if(“auto”===i[`${s}Display`]&&!o)continue;let h=i[s],l=”2-digit”===h?A:”numeric”===h?{}:{style:”unit”,unit:n,unitDisplay:h},u=new Intl.NumberFormat(r,l).format(o);”months”===s&&(“narrow”===h||”narrow”===a&&u.endsWith(“m”))&&(u=u.replace(/(\d+)m$/,”$1mo”)),e.push(u)}return new v(r,{type:”unit”,style:”digital”===a?”short”:a}).formatToParts(e)}format(t){return this.formatToParts(t).map(t=>t.value).join(“”)}}s=new WeakMap;let k=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,U=[“year”,”month”,”week”,”day”,”hour”,”minute”,”second”,”millisecond”];class E{constructor(t=0,e=0,i=0,s=0,a=0,r=0,n=0,o=0){this.years=t,this.months=e,this.weeks=i,this.days=s,this.hours=a,this.minutes=r,this.seconds=n,this.milliseconds=o,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=0===this.sign}abs(){return new E(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var e;if(“string”==typeof t){let i=String(t).trim(),s=i.startsWith(“-“)?-1:1,a=null==(e=i.match(k))?void 0:e.slice(1).map(t=>(Number(t)||0)*s);return a?new E(…a):new E}if(“object”==typeof t){let{years:e,months:i,weeks:s,days:a,hours:r,minutes:n,seconds:o,milliseconds:h}=t;return new E(e,i,s,a,r,n,o,h)}throw RangeError(“invalid duration”)}static compare(t,e){let i=Date.now(),s=Math.abs(S(i,E.from(t)).getTime()-i),a=Math.abs(S(i,E.from(e)).getTime()-i);return s>a?-1:+(s=900&&(l+=Math.round(u/1e3)),(l||h||o||n||r||a||s)&&(u=0),l>=55&&(h+=Math.round(l/60)),(h||o||n||r||a||s)&&(l=0),h>=55&&(o+=Math.round(h/60)),(o||n||r||a||s)&&(h=0),n&&o>=12&&(n+=Math.round(o/24)),!n&&o>=21&&(n+=Math.round(o/24)),(n||r||a||s)&&(o=0);let m=e.getFullYear(),d=e.getMonth(),c=e.getDate();if(n>=27||s+a+n){let t=new Date(e);t.setDate(1),t.setMonth(d+a*i+1),t.setDate(0);let o=Math.max(0,c-t.getDate()),h=new Date(e);h.setFullYear(m+s*i),h.setDate(c-o),h.setMonth(d+a*i),h.setDate(c-o+n*i);let l=h.getFullYear()-e.getFullYear(),u=h.getMonth()-e.getMonth(),f=Math.abs(Math.round((Number(h)-Number(e))/864e5))+o,g=Math.abs(12*l+u);f<27?(n>=6?(r+=Math.round(n/7),n=0):n=f,a=s=0):g<=11?(a=g,s=0):(a=0,s=l*i),(a||s)&&(n=0)}return s&&(a=0),r>=4&&(a+=Math.round(r/4)),(a||s)&&(r=0),n&&r&&!a&&!s&&(r+=Math.round(n/7),n=0),new E(s*i,a*i,r*i,n*i,o*i,h*i,l*i,u*i)}var x=function(t,e,i,s){if(“a”===i&&!s)throw TypeError(“Private accessor was defined without a getter”);if(“function”==typeof e?t!==e||!s:!e.has(t))throw TypeError(“Cannot read private member from an object whose class did not declare it”);return”m”===i?s:”a”===i?s.call(t):s?s.value:e.get(t)},I=function(t,e,i,s,a){if(“m”===s)throw TypeError(“Private method is not writable”);if(“a”===s&&!a)throw TypeError(“Private accessor was defined without a setter”);if(“function”==typeof e?t!==e||!a:!e.has(t))throw TypeError(“Cannot write private member to an object whose class did not declare it”);return”a”===s?a.call(t,i):a?a.value=i:e.set(t,i),i};let Z=globalThis.HTMLElement||null,N=new E,P=new E(0,0,0,0,0,1);class j extends Event{constructor(t,e,i,s){super(“relative-time-updated”,{bubbles:!0,composed:!0}),this.oldText=t,this.newText=e,this.oldTitle=i,this.newTitle=s}}function O(t){if(!t.date)return 1/0;if(“duration”===t.format||”elapsed”===t.format){let e=t.precision;if(“second”===e)return 1e3;if(“minute”===e)return 6e4}let e=Math.abs(Date.now()-t.date.getTime());return e<6e4?1e3:e<36e5?6e4:36e5}let R=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(t){if(this.elements.has(t))return;this.elements.add(t);let e=t.date;if(e&&e.getTime()){let e=O(t),i=Date.now()+e;ithis.update(),e),this.time=i)}}unobserve(t){this.elements.has(t)&&this.elements.delete(t)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let t=1/0;for(let e of this.elements)t=Math.min(t,O(e)),e.update();this.time=Math.min(36e5,t),this.timer=setTimeout(()=>this.update(),this.time),this.time+=Date.now()}};class Y extends Z{constructor(){super(…arguments),a.add(this),r.set(this,!1),n.set(this,!1),h.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:”open”}):this),p.set(this,null)}static define(t=”relative-time”,e=customElements){return e.define(t,this),this}get timeZone(){var t;return(null==(t=this.closest(“[time-zone]”))?void 0:t.getAttribute(“time-zone”))||this.ownerDocument.documentElement.getAttribute(“time-zone”)||void 0}static get observedAttributes(){return[“second”,”minute”,”hour”,”weekday”,”day”,”month”,”year”,”time-zone-name”,”prefix”,”threshold”,”tense”,”precision”,”format”,”format-style”,”no-title”,”datetime”,”lang”,”title”,”aria-hidden”,”time-zone”]}get onRelativeTimeUpdated(){return x(this,p,”f”)}set onRelativeTimeUpdated(t){x(this,p,”f”)&&this.removeEventListener(“relative-time-updated”,x(this,p,”f”)),I(this,p,”object”==typeof t||”function”==typeof t?t:null,”f”),”function”==typeof t&&this.addEventListener(“relative-time-updated”,t)}get second(){let t=this.getAttribute(“second”);if(“numeric”===t||”2-digit”===t)return t}set second(t){this.setAttribute(“second”,t||””)}get minute(){let t=this.getAttribute(“minute”);if(“numeric”===t||”2-digit”===t)return t}set minute(t){this.setAttribute(“minute”,t||””)}get hour(){let t=this.getAttribute(“hour”);if(“numeric”===t||”2-digit”===t)return t}set hour(t){this.setAttribute(“hour”,t||””)}get weekday(){let t=this.getAttribute(“weekday”);return”long”===t||”short”===t||”narrow”===t?t:”datetime”===this.format&&””!==t?this.formatStyle:void 0}set weekday(t){this.setAttribute(“weekday”,t||””)}get day(){var t;let e=null!=(t=this.getAttribute(“day”))?t:”numeric”;if(“numeric”===e||”2-digit”===e)return e}set day(t){this.setAttribute(“day”,t||””)}get month(){let t=this.format,e=this.getAttribute(“month”);if(“”!==e&&(null!=e||(e=”datetime”===t?this.formatStyle:”short”),”numeric”===e||”2-digit”===e||”short”===e||”long”===e||”narrow”===e))return e}set month(t){this.setAttribute(“month”,t||””)}get year(){var t;let e=this.getAttribute(“year”);return”numeric”===e||”2-digit”===e?e:this.hasAttribute(“year”)||new Date().getUTCFullYear()===(null==(t=this.date)?void 0:t.getUTCFullYear())?void 0:”numeric”}set year(t){this.setAttribute(“year”,t||””)}get timeZoneName(){let t=this.getAttribute(“time-zone-name”);if(“long”===t||”short”===t||”shortOffset”===t||”longOffset”===t||”shortGeneric”===t||”longGeneric”===t)return t}set timeZoneName(t){this.setAttribute(“time-zone-name”,t||””)}get prefix(){var t;return null!=(t=this.getAttribute(“prefix”))?t:”datetime”===this.format?””:”on”}set prefix(t){this.setAttribute(“prefix”,t)}get threshold(){let t=this.getAttribute(“threshold”);return t&&k.test(t)?t:”P30D”}set threshold(t){this.setAttribute(“threshold”,t)}get tense(){let t=this.getAttribute(“tense”);return”past”===t?”past”:”future”===t?”future”:”auto”}set tense(t){this.setAttribute(“tense”,t)}get precision(){let t=this.getAttribute(“precision”);return U.includes(t)?t:”micro”===this.format?”minute”:”second”}set precision(t){this.setAttribute(“precision”,t)}get format(){let t=this.getAttribute(“format”);return”datetime”===t?”datetime”:”relative”===t?”relative”:”duration”===t?”duration”:”micro”===t?”micro”:”elapsed”===t?”elapsed”:”auto”}set format(t){this.setAttribute(“format”,t)}get formatStyle(){let t=this.getAttribute(“format-style”);if(“long”===t)return”long”;if(“short”===t)return”short”;if(“narrow”===t)return”narrow”;let e=this.format;return”elapsed”===e||”micro”===e?”narrow”:”datetime”===e?”short”:”long”}set formatStyle(t){this.setAttribute(“format-style”,t)}get noTitle(){return this.hasAttribute(“no-title”)}set noTitle(t){this.toggleAttribute(“no-title”,t)}get datetime(){return this.getAttribute(“datetime”)||””}set datetime(t){this.setAttribute(“datetime”,t)}get date(){let t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(null==t?void 0:t.toISOString())||””}connectedCallback(){this.update()}disconnectedCallback(){R.unobserve(this)}attributeChangedCallback(t,e,i){e!==i&&(“title”===t&&I(this,r,null!==i&&(this.date&&x(this,a,”m”,l).call(this,this.date))!==i,”f”),x(this,n,”f”)||”title”===t&&x(this,r,”f”)||I(this,n,(async()=>{await Promise.resolve(),this.update(),I(this,n,!1,”f”)})(),”f”))}update(){let t=x(this,h,”f”).textContent||this.textContent||””,e=this.getAttribute(“title”)||””,i=e,s=this.date;if(“u”=0?m*a:0,d>=1?(u-12*m)*a:0,0,d>=3?(l-30*u)*a:0,d>=4?(h-24*l)*a:0,d>=5?(o-60*h)*a:0,d>=6?(n-60*o)*a:0,d>=7?(r-1e3*n)*a:0)}(s,this.precision,n),p=x(this,a,”m”,u).call(this,o),T=t,M=x(this,a,”m”,b).call(this,p);(T=M?x(this,a,”m”,y).call(this,s):”duration”===p?x(this,a,”m”,m).call(this,o):”relative”===p?x(this,a,”m”,d).call(this,o):x(this,a,”m”,c).call(this,s))?x(this,a,”m”,w).call(this,T):this.shadowRoot===x(this,h,”f”)&&this.textContent&&x(this,a,”m”,w).call(this,this.textContent),(T!==t||i!==e)&&this.dispatchEvent(new j(t,T,e,i)),”relative”===p||”duration”===p||M&&(x(this,a,”m”,f).call(this,s)||x(this,a,”m”,g).call(this,s))?R.observe(this):R.unobserve(this)}}r=new WeakMap,n=new WeakMap,h=new WeakMap,p=new WeakMap,a=new WeakSet,o=function(){var t;let e=(null==(t=this.closest(“[lang]”))?void 0:t.getAttribute(“lang”))||this.ownerDocument.documentElement.getAttribute(“lang”);try{return new Intl.Locale(null!=e?e:””).toString()}catch(t){return”default”}},l=function(t){return new Intl.DateTimeFormat(x(this,a,”a”,o),{day:”numeric”,month:”short”,year:”numeric”,hour:”numeric”,minute:”2-digit”,timeZoneName:”short”,timeZone:this.timeZone}).format(t)},u=function(t){let e=this.format;if(“datetime”===e)return”datetime”;if(“duration”===e||”elapsed”===e||”micro”===e)return”duration”;if((“auto”===e||”relative”===e)&&”u”>typeof Intl&&Intl.RelativeTimeFormat){let e=this.tense;if(“past”===e||”future”===e||1===E.compare(t,this.threshold))return”relative”}return”datetime”},m=function(t){let e=x(this,a,”a”,o),i=this.format,s=this.formatStyle,r=this.tense,n=N;”micro”===i?(t=F(t),n=P,0===t.months&&(“past”===this.tense&&-1!==t.sign||”future”===this.tense&&1!==t.sign)&&(t=P)):(“past”===r&&-1!==t.sign||”future”===r&&1!==t.sign)&&(t=n);let h=`${this.precision}sDisplay`;return t.blank?n.toLocaleString(e,{style:s,[h]:”always”}):t.abs().toLocaleString(e,{style:s})},d=function(t){let e=new Intl.RelativeTimeFormat(x(this,a,”a”,o),{numeric:”auto”,style:this.formatStyle}),i=this.tense;”future”===i&&1!==t.sign&&(t=N),”past”===i&&-1!==t.sign&&(t=N);let[s,r]=function(t,e){let i=F(t,void 0);if(i.blank)return[0,”second”];for(let t of U){if(“millisecond”===t)continue;let e=i[`${t}s`];if(e)return[e,t]}return[0,”second”]}(t);return”second”===r&&s<10?e.format(0,"millisecond"===this.precision?"second":this.precision):e.format(s,r)},c=function(t){let e=new Intl.DateTimeFormat(x(this,a,"a",o),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName,timeZone:this.timeZone});return`${this.prefix} ${e.format(t)}`.trim()},f=function(t){let e=new Date,i=new Intl.DateTimeFormat(x(this,a,"a",o),{timeZone:this.timeZone,year:"numeric",month:"2-digit",day:"2-digit"});return i.format(e)===i.format(t)},g=function(t){let e=new Date,i=new Intl.DateTimeFormat(x(this,a,"a",o),{timeZone:this.timeZone,year:"numeric"});return i.format(e)===i.format(t)},y=function(t){let e={hour:"numeric",minute:"2-digit",timeZoneName:"short",timeZone:this.timeZone};if(x(this,a,"m",f).call(this,t)){let i=new Intl.RelativeTimeFormat(x(this,a,"a",o),{numeric:"auto"}).format(0,"day");i=i.charAt(0).toLocaleUpperCase(x(this,a,"a",o))+i.slice(1);let s=new Intl.DateTimeFormat(x(this,a,"a",o),e).format(t);return`${i} ${s}`}let i=Object.assign(Object.assign({},e),{day:"numeric",month:"short"});return x(this,a,"m",g).call(this,t)?new Intl.DateTimeFormat(x(this,a,"a",o),i).format(t):new Intl.DateTimeFormat(x(this,a,"a",o),Object.assign(Object.assign({},i),{year:"numeric"})).format(t)},w=function(t){if(this.hasAttribute("aria-hidden")&&"true"===this.getAttribute("aria-hidden")){let e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.textContent=t,x(this,h,"f").replaceChildren(e)}else x(this,h,"f").textContent=t},b=function(t){var e;return"duration"!==t&&("true"===this.ownerDocument.documentElement.getAttribute("data-prefers-absolute-time")||(null==(e=this.ownerDocument.body)?void 0:e.getAttribute("data-prefers-absolute-time"))==="true")};let $="u">typeof globalThis?globalThis:window;try{$.RelativeTimeElement=Y.define()}catch(t){if(!($.DOMException&&t instanceof DOMException&&”NotSupportedError”===t.name)&&!(t instanceof ReferenceError))throw t}let L=Y}}]); //# sourceMappingURL=41013-ac21ea90ed8590af-8ab3d06793118854.js.map