1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b67aeeb3-1a10-5bef-8b6f-c07a397e32bc")}catch(e){}}(); 3import{s as e,t}from"./jsx-runtime-D4ePz0Hl.js";import{t as n}from"./react-BXH-GOAS.js";import{t as r}from"./useNonRevalidatingFetcher-CaohiMMR.js";var i=e(n(),1);function a({updateOn:e}){return(0,i.useEffect)(()=>{let e=null;try{e=document.createElement(`script`),e.src=`https://embed.bsky.app/static/embed.js`,e.setAttribute(`data-bluesky-embed`,`true`),document.body.appendChild(e)}catch{}return()=>{try{e?.parentNode&&e.parentNode.removeChild(e)}catch{}}},[e]),null}var o=e(t(),1);function s(){return(0,o.jsx)(`script`,{type:`module`,dangerouslySetInnerHTML:{__html:` 4var e, t, r, i, n; 5(t = {}), 6 (r = {}), 7 null == 8 (i = (e = 9 "undefined" != typeof globalThis 10 ? globalThis 11 : "undefined" != typeof self 12 ? self 13 : "undefined" != typeof window 14 ? window 15 : "undefined" != typeof global 16 ? global 17 : {}).parcelRequire326a) && 18 (((i = function (e) { 19 if (e in t) return t[e].exports; 20 if (e in r) { 21 var i = r[e]; 22 delete r[e]; 23 var n = { id: e, exports: {} }; 24 return (t[e] = n), i.call(n.exports, n, n.exports), n.exports; 25 } 26 var o = Error("Cannot find module '" + e + "'"); 27 throw ((o.code = "MODULE_NOT_FOUND"), o); 28 }).register = function (e, t) { 29 r[e] = t; 30 }), 31 (e.parcelRequire326a = i)), 32 (n = i.register)("gUOGs", function (e, t) { 33 Object.defineProperty(e.exports, "__esModule", { value: !0 }); 34 var r, 35 n = i("kBCj4"), 36 o = i("53LBo"), 37 s = [], 38 a = (function () { 39 function e(e) { 40 (this.$$observationTargets = []), 41 (this.$$activeTargets = []), 42 (this.$$skippedTargets = []); 43 var t = 44 void 0 === e 45 ? "Failed to construct 'ResizeObserver': 1 argument required, but only 0 present." 46 : "function" != typeof e 47 ? "Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function." 48 : void 0; 49 if (t) throw TypeError(t); 50 this.$$callback = e; 51 } 52 return ( 53 (e.prototype.observe = function (e) { 54 var t = d("observe", e); 55 if (t) throw TypeError(t); 56 u(this.$$observationTargets, e) >= 0 || 57 (this.$$observationTargets.push(new n.ResizeObservation(e)), 58 0 > s.indexOf(this) && (s.push(this), v())); 59 }), 60 (e.prototype.unobserve = function (e) { 61 var t = d("unobserve", e); 62 if (t) throw TypeError(t); 63 var r = u(this.$$observationTargets, e); 64 r < 0 || 65 (this.$$observationTargets.splice(r, 1), 66 0 === this.$$observationTargets.length && c(this)); 67 }), 68 (e.prototype.disconnect = function () { 69 (this.$$observationTargets = []), 70 (this.$$activeTargets = []), 71 c(this); 72 }), 73 e 74 ); 75 })(); 76 function c(e) { 77 var t = s.indexOf(e); 78 t >= 0 && (s.splice(t, 1), $()); 79 } 80 function d(e, t) { 81 return void 0 === t 82 ? "Failed to execute '" + 83 e + 84 "' on 'ResizeObserver': 1 argument required, but only 0 present." 85 : t && t.nodeType === window.Node.ELEMENT_NODE 86 ? void 0 87 : "Failed to execute '" + 88 e + 89 "' on 'ResizeObserver': parameter 1 is not of type 'Element'."; 90 } 91 function u(e, t) { 92 for (var r = 0; r < e.length; r += 1) if (e[r].target === t) return r; 93 return -1; 94 } 95 e.exports.ResizeObserver = a; 96 var l = function (e) { 97 s.forEach(function (t) { 98 (t.$$activeTargets = []), 99 (t.$$skippedTargets = []),
100 t.$$observationTargets.forEach(function (r) { 101 r.isActive() && 102 (h(r.target) > e 103 ? t.$$activeTargets.push(r) 104 : t.$$skippedTargets.push(r)); 105 }); 106 }); 107 }, 108 f = function () { 109 var e = 1 / 0; 110 return ( 111 s.forEach(function (t) { 112 if (t.$$activeTargets.length) { 113 var r = []; 114 t.$$activeTargets.forEach(function (t) { 115 var i = new o.ResizeObserverEntry(t.target); 116 r.push(i), 117 (t.$$broadcastWidth = i.contentRect.width), 118 (t.$$broadcastHeight = i.contentRect.height); 119 var n = h(t.target); 120 n < e && (e = n); 121 }), 122 t.$$callback(r, t), 123 (t.$$activeTargets = []); 124 } 125 }), 126 e 127 ); 128 }, 129 p = function () { 130 var e = new window.ErrorEvent("ResizeLoopError", { 131 message: 132 "ResizeObserver loop completed with undelivered notifications.", 133 }); 134 window.dispatchEvent(e); 135 }, 136 h = function (e) { 137 for (var t = 0; e.parentNode; ) (e = e.parentNode), (t += 1); 138 return t; 139 }, 140 g = function () { 141 for ( 142 l(0); 143 s.some(function (e) { 144 return !!e.$$activeTargets.length; 145 }); 146 147 ) 148 l(f()); 149 s.some(function (e) { 150 return !!e.$$skippedTargets.length; 151 }) && p(); 152 }, 153 v = function () { 154 r || b(); 155 }, 156 b = function () { 157 r = window.requestAnimationFrame(function () { 158 g(), b(); 159 }); 160 }, 161 $ = function () { 162 r && 163 !s.some(function (e) { 164 return !!e.$$observationTargets.length; 165 }) && 166 (window.cancelAnimationFrame(r), (r = void 0)); 167 }; 168 e.exports.install = function () { 169 return (window.ResizeObserver = a); 170 }; 171 }), 172 n("kBCj4", function (e, t) { 173 Object.defineProperty(e.exports, "__esModule", { value: !0 }); 174 var r = i("ardMU"), 175 n = (function () { 176 function e(e) { 177 (this.target = e), 178 (this.$$broadcastWidth = this.$$broadcastHeight = 0); 179 } 180 return ( 181 Object.defineProperty(e.prototype, "broadcastWidth", { 182 get: function () { 183 return this.$$broadcastWidth; 184 }, 185 enumerable: !0, 186 configurable: !0, 187 }), 188 Object.defineProperty(e.prototype, "broadcastHeight", { 189 get: function () { 190 return this.$$broadcastHeight; 191 }, 192 enumerable: !0, 193 configurable: !0, 194 }), 195 (e.prototype.isActive = function () { 196 var e = r.ContentRect(this.target); 197 return ( 198 !!e && 199 (e.width !== this.broadcastWidth || 200 e.height !== this.broadcastHeight) 201 ); 202 }), 203 e 204 ); 205 })(); 206 e.exports.ResizeObservation = n; 207 }), 208 n("ardMU", function (e, t) { 209 Object.defineProperty(e.exports, "__esModule", { value: !0 }), 210 (e.exports.ContentRect = function (e) { 211 if ("getBBox" in e) { 212 var t = e.getBBox(); 213 return Object.freeze({ 214 height: t.height, 215 left: 0, 216 top: 0, 217 width: t.width, 218 }); 219 } 220 var r = window.getComputedStyle(e); 221 return Object.freeze({ 222 height: parseFloat(r.height || "0"), 223 left: parseFloat(r.paddingLeft || "0"), 224 top: parseFloat(r.paddingTop || "0"), 225 width: parseFloat(r.width || "0"), 226 }); 227 }); 228 }), 229 n("53LBo", function (e, t) { 230 Object.defineProperty(e.exports, "__esModule", { value: !0 }); 231 var r = i("ardMU"); 232 e.exports.ResizeObserverEntry = function (e) { 233 (this.target = e), (this.contentRect = r.ContentRect(e)); 234 }; 235 }), 236 (function () { 237 if ( 238 !(function () { 239 if (!window.__stwts || !Object.keys(window.__stwts).length) 240 return ( 241 (window.__stwts = { buildVersion: "1.0.0", widgets: { init: !0 } }), 242 !0 243 ); 244 })() 245 ) 246 return; 247 function e(e, t) { 248 t <= 300 && (e.style.width = "300px"), 249 t >= 600 && (e.style.width = "600px"), 250 t > 300 && t < 600 && (e.style.width = \`\${t}px\`); 251 } 252 "undefined" == typeof ResizeObserver && i("gUOGs").install(); 253 let t = new (ResizeObserver || window.ResizeObserver)(function (t) { 254 t.forEach((t) => { 255 let r = t?.contentRect?.width, 256 i = t.target.querySelector("iframe"); 257 r && i && e(i, r); 258 }); 259 }); 260 261 function loadStocktwitsEmbeds() { 262 Array.from( 263 document.querySelectorAll("blockquote.stocktwits-embedded-post"), 264 ).forEach((r) => { 265 !(function (t, r) { 266 if (t.getAttribute("visited")) return; 267 let i = t.getAttribute("data-origin"), 268 n = t.getAttribute("data-id"), 269 o = document.createElement("div"); 270 (o.style.display = "flex"), 271 (o.style.maxWidth = "600px"), 272 (o.style.width = "100%"), 273 (o.style.marginTop = "10px"), 274 (o.style.marginBottom = "10px"); 275 let s = document.createElement("iframe"); 276 o.appendChild(s); 277 let a = \`\${i}/embeddable/message/\${n}\`; 278 (s.style.width = "640px"), 279 (s.style.height = "0"), 280 (s.style.maxWidth = "600px"), 281 (s.style.position = "static"), 282 (s.style.visibility = "visible"), 283 (s.style.display = "block"),
284 (s.style.flexGrow = "1"), 285 s.setAttribute("frameborder", "0"), 286 s.setAttribute("allowtransparency", "true"), 287 s.setAttribute("scrolling", "no"), 288 s.setAttribute("allowfullscreen", "true"); 289 let c = !1, 290 d = null; 291 function u(e) { 292 c = !0; 293 let { height: r } = e.data; 294 void 0 !== r && (s.style.height = \`\${r}px\`), 295 document.body.contains(t) && t.remove(); 296 } 297 t.parentNode.insertBefore(o, t), t.setAttribute("visited", true), 298 s.addEventListener("load", function () { 299 e(s, o.clientWidth), 300 (function () { 301 let e = () => { 302 ((d = new MessageChannel()).port1.onmessage = u), 303 s.contentWindow.postMessage( 304 { message: "initialize" }, 305 "*", 306 [d.port2], 307 ); 308 }; 309 e(); 310 let t = setInterval(() => { 311 c ? clearInterval(t) : e(); 312 }, 60); 313 })(); 314 }), 315 s.setAttribute("src", a), 316 r.observe(o); 317 })(r, t); 318 }); 319 } 320 321 window.__stwts.loadStocktwitsEmbeds = loadStocktwitsEmbeds; 322 })(); 323`}})}var c=({visitToken:e,post:t,pageViews:n,setCookie:a,cookiesSet:o,skip:s=!1})=>{let c=r(),l=n?.includes(t?.id),u=!s&&o&&e&&t?.id&&!l;(0,i.useEffect)(()=>{if(u){let r=document.referrer,i=new FormData;i.append(`postId`,t.id),i.append(`webTitle`,t.web_title),i.append(`slug`,t.slug),i.append(`landingPage`,window.location.href),i.append(`referrer`,r),i.append(`visitToken`,e);let o=n?`${n},${t.id}`:t.id;c.submit(i,{method:`post`,action:`/page_view`}),a({name:`page_view`,value:o,days:6e5/(1440*60*1e3)})}},[u])},l=e=>[e.facebook_url,e.twitter_url,e.instagram_url,e.linkedin_url,e.tiktok_url,e.discord_url,e.threads_url].filter(e=>!!e);export{a as i,c as n,s as r,l as t}; 324//# sourceMappingURL=getSameAsArray-CqeefXCx.js.map 325//# debugId=b67aeeb3-1a10-5bef-8b6f-c07a397e32bc
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.