티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(()=>{var H=Object.defineProperty;var I=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var E=(n,e,t)=>e in n?H(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,F=(n,e)=>{for(var t in e||(e={}))J.call(e,t)&&E(n,t,e[t]);if(I)for(var t of I(e))V.call(e,t)&&E(n,t,e[t]);return n};function j(){let{hostname:n}=window.location;if(n.startsWith(“branch”)&&n.endsWith(“.webflow.io”))return”branch”;if(n.startsWith(“mode”)&&n.endsWith(“.webflow.io”))return”mode-staging”;switch(n){case”webflow.flickr.net”:return”staging”;case”whatismode.com”:case”www.whatismode.com”:case”modefestival.com”:case”www.modefestival.com”:return”mode-production”;case”flickr.com”:case”www.flickr.com”:default:return”production”}}function R(){switch(j()){case”branch”:return”webflow.io”;case”staging”:return”flickr.net”;case”production”:default:return”flickr.com”}}function U(){switch(j()){case”branch”:return”.webflow.io”;case”mode-staging”:return”.mode-d8e9d6.webflow.io”;case”staging”:return”.flickr.net”;case”mode-production”:let{hostname:n}=window.location;return n===”whatismode.com”||n===”www.whatismode.com”?”.whatismode.com”:”.modefestival.com”;case”production”:default:return”.flickr.com”}}var z=new Set([“at”,”be”,”bg”,”hr”,”cy”,”cz”,”dk”,”ee”,”fi”,”fr”,”de”,”gr”,”hu”,”ie”,”it”,”lv”,”lt”,”lu”,”mt”,”nl”,”pl”,”pt”,”ro”,”sk”,”si”,”es”,”se”,”gb”]),x=class{constructor(e={}){this.config=F({domain:R(),noticeType:”bb”,isEU:!1,isCAOrNV:!1,isUSOutsideCAOrNV:!1,isROW:!1},e),this.initializeTrustArc(),this.cookieCatcher=window.CookieCatcher,this.cmpFramed=!1,this.contextCookieName=this.cookieCatcher.contextCookieName,this.cookieDomain=this.cookieCatcher.cookieDomain,this.expireTime=this.cookieCatcher.expireTime}getLocation(e,t){z.has(t)?this.config.isEU=!0:t===”us”&&(e===”ca”||e===”nv”)?this.config.isCAOrNV=!0:t===”us”&&e===””?this.config.isUSOutsideCAOrNV=!0:this.config.isROW=!0}handleStandardBannerClose(){let e=document.querySelector(“.standard-banner-container”);e&&(this.cookieCatcher.setCookieIfAllowed(this.cookieCatcher.standardBannerCookie,this.cookieCatcher.standardBannerCookieValue,{path:”/”,domain:this.cookieDomain,expires:this.expireTime}),e.remove())}initializeStandardBanner(){let e=document.createElement(“div”),t;e.className=”standard-banner-container”,e.innerHTML=`

This site uses cookies to improve your experience and to help show content that is more relevant to your interests. By using this site, you agree to the use of cookies by Flickr and our partners as described in our cookie policy.

`,document.body.appendChild(e),t=e.querySelector(“.standard-banner-close-button”),t&&t.addEventListener(“click”,o=>{o.stopPropagation(),this.handleStandardBannerClose()})}initializeTrustArc(){this.setupConsentManager(),this.setupTCF(),this.setupIAB(),this.waitForTrustArc()}setupConsentManager(){let e=document.createElement(“script”);e.async=!0,e.type=”text/javascript”;let t=new URLSearchParams({domain:this.config.domain,c:”teconsent”,js:”nj”,noticeType:”bb”,gtm:”1″,dl:”TADataLayer”});this.config.isROW&&(t.append(“country”,”br”),t.append(“behavior”,”implied”)),this.config.isExpressed&&(t.append(“country”,”se”),t.append(“behavior”,”implied”)),e.src=`https://consent.trustarc.com/notice?${t.toString()}`;let o=document.createElement(“div”);o.id=”consent_blackbar”,document.body.appendChild(e),document.body.appendChild(o)}setupTCF(){let e=”__tcfapiLocator”,t=”__tcfapiTrustarc”,o=[],i=()=>{let r=s.document,l=!!s.frames[e];if(!l)if(r.body){let d=r.createElement(“iframe”);d.name=e,d.style.display=”none”,d.id=t,r.body.appendChild(d)}else setTimeout(i,5);return window.postMessage(“flickr:CMPframed”),!l},a=(…r)=>{let l;if(r.length)if(r[0]===”setGdprApplies”)r.length>3&&parseInt(r[1],10)===2&&typeof r[3]==”boolean”&&(l=r[3],typeof r[2]==”function”&&r[2](“set”,!0));else if(r[0]===”ping”){let d={gdprApplies:l,cmpLoaded:!1,cmpStatus:”stubCMP”,apiVersion:”2.0″};typeof r[2]==”function”&&r[2](d,!0)}else o.push(r);else return o},c=r=>{let l=typeof r.data==”string”,d={__tcfapiCall:void 0};try{l&&r.origin===window.location.origin?d=JSON.parse(r.data):d=r.data}catch(L){return}let w=d.__tcfapiCall;w&&window.__tcfapi(w.command,w.version,(L,W)=>{var P;let B={__tcfapiReturn:{returnValue:L,success:W,callId:w.callId}};(P=r.source)==null||P.postMessage(l?JSON.stringify(B):B,”*”)},w.parameter)},s=window,p;for(;s;){try{if(s.frames[e]){p=s;break}}catch(r){}if(s===window.top)break;s=s.parent}p||(i(),s.__tcfapi=a,s.addEventListener(“message”,c,!1))}setupIAB(){var e=document.createElement(“script”),t=”https://consent.trustarc.com/iabasset/iabTcfStubV22.js?domain=flickr.com”;e.src=t,e.async=!0,document.head.appendChild(e)}checkCMPInPage(){typeof window.__uspapi!=”undefined”&&typeof window.__uspapi==”function”?(console.log(“CMP debug —>>>”,”__uspapi exists!”),window.__uspapi(“getUSPData”,1,(e,t)=>{t?console.log(“CMP debug —>>>”,”uspData:”,e):console.log(“US data unavailable”)})):console.log(“CMP debug —>>>”,”__uspapi does not exist!”),typeof window.__tcfapi!=”undefined”&&typeof window.__tcfapi==”function”?(console.log(“CMP debug —>>>”,”__tcfapi exists!”),window.__tcfapi(“getTCData”,2,(e,t)=>{t?console.log(“CMP debug —>>>”,”tcData:”,e):console.log(“TC Data is not available”)})):console.log(“CMP debug —>>>”,”__tcfapi does not exist!”)}waitForTrustArc(){if(“truste”in window&&”PrivacyManagerAPI”in window){clearTimeout(this.waitForTrustTimeout);var e=window.postMessage&&setInterval(function(){if(window.PrivacyManagerAPI&&e){var o={PrivacyManagerAPI:{action:”getConsentDecision”,timestamp:new Date().getTime(),self:window.location.host}};window.top.postMessage(JSON.stringify(o),”*”),e=clearInterval(e)}},50);window.addEventListener(“message”,this.checkManagerInteraction.bind(this));let t=document.querySelector(“.flickr-truste-cmp”);t&&t.addEventListener(“click”,()=>{this.openConsentManager()})}else this.waitForTrustTimeout=setTimeout(this.waitForTrustArc.bind(this),250)}checkManagerInteraction(e){var t;if(!(!e||!e.data)&&e.origin===window.location.origin){try{t=JSON.parse(e.data)}catch(c){return}if(t&&(t.PrivacyManagerAPI||t.PrivacyManagerAPI)){var o=[],i={},a=window.PrivacyManagerAPI.callApi(“getGDPRConsentDecision”,window.location.host).consentDecision;a&&a.forEach(function(c){i[c]||(i[c]=1)}),a.length&&a[0]!==0&&this.handleConsentManagerChoice()}}}handleConsentManagerChoice(){var e;try{e=window.truste.cma.callApi(“getConsentDecision”,this.config.domain),e&&e.consentDecision&&Number.isInteger(e.consentDecision)&&this.updateConsentContext(e.consentDecision-1)}catch(t){console.log(t)}}updateConsentContext(e){var t=this.cookieCatcher.getCookieConsentContext();t.info.cookieBlock.level!==e&&(t.changed=1,t.info.cookieBlock.level=e,this.cookieCatcher.setCookieIfAllowed(this.contextCookieName,JSON.stringify(t),{path:”/”,domain:this.cookieDomain,expires:this.expireTime}),console.log(“cd refresh”),window.location.reload())}openConsentManager(){var e,t;try{console.log(“Opening consent manager…”,”loading”),(t=(e=window.truste)==null?void 0:e.eu)!=null&&t.reopenBanner?(window.truste.eu.reopenBanner(),console.log(“Consent manager opened”,”ready”)):console.log(“Consent manager not ready”,”error”)}catch(o){console.log(`Error: ${o.message}`,”error”)}}};var S={isString:function(n){return typeof n==”string”},isObject:function(n){return n&&typeof n===”object”},isUndefined:function(n){return typeof n==”undefined”},isFunction:function(n){return typeof n==”function”}};var v={each:function(n,e,t){v.keys(n).forEach(function(o){e.call(t,n[o],o,n)})}};var A=S,G=v,u=null,k=A.isString,m=A.isObject,f=A.isUndefined,y=A.isFunction,T=encodeURIComponent,_=decodeURIComponent,C=window.document;function b(n){throw new TypeError(n)}function g(n){(!k(n)||n===””)&&b(“Cookie name must be a non-empty string.”)}function D(n){(!k(n)||n===””)&&b(“Subcookie name must be a non-empty string.”)}var N={_createCookieString:function(n,e,t,o){o=o||{};var i=T(n)+”=”+(t?T(e):e),a=o.expires,c=o.path,s=o.domain;return m(o)&&(a instanceof Date&&(i+=”; expires=”+a.toUTCString()),k(c)&&c!==””&&(i+=”; path=”+c),k(s)&&s!==””&&(i+=”; domain=”+s),o.secure===!0&&(i+=”; secure”)),i},_createCookieHashString:function(n){m(n)||b(“Cookie._createCookieHashString(): Argument must be an object.”);var e=[];return G.each(n,function(t,o){!y(t)&&!f(t)&&e.push(T(o)+”=”+T(String(t)))}),e.join(“&”)},_parseCookieHash:function(n){var e=n.split(“&”),t=u,o={};if(n.length)for(var i=0,a=e.length;i0)for(var i=e===!1?function(d){return d}:_,a=n.split(/;\s/g),c=u,s=u,p=u,r=0,l=a.length;r