PageSourceSearch

https://app.calypsocopilot.com/static/js/live-research.f905bbd9.chunk.js

js calypsocopilot.com collected 2026-10-05 11:30:15 UTC 133,243 bytes, 3 lines download raw bytes

1/*! For license information please see live-research.f905bbd9.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkcalypso=self.webpackChunkcalypso||[]).push([[1577],{9844:(e,t,n)=>{n.r(t),n.d(t,{default:()=>sa});var a=n(65043),r=n(184),o=n(53986),i=n(89379),s=n(35475),l=n(6933),c=n(67010),u=n(8800),d=n(41536),h=n(56095),m=n(89598);const g=(0,n(31212).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var p=n(15711),x=n(92382),D=n(8145),f=n(99757),b=n(56099),v=n(48879),y=n(23348),F=n(21742),w=n(91350),C=n(42193);const k=200,A=1,E="earnings-debate-v1",j="calypso_earnings_intelligence_feedback_v1",N=/^[A-Z0-9^.=-]{1,16}:[a-f0-9]{16}$/,S=/^\d{4}-\d{2}-\d{2}$/,B=new Set(["up","down","cleared"]),M=new Set(["about","after","against","also","been","business","company","could","customer","customers","earnings","enterprise","from","growth","guidance","higher","into","management","market","million","quarter","revenue","than","that","their","this","through","versus","while","with","year"]);function T(e){const t=String(e||"").trim().toUpperCase();return/^[A-Z0-9^.=-]{1,16}$/.test(t)?t:""}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80;return String(e||"").trim().toLowerCase().replace(/[^a-z0-9_.:-]+/g,"-").replace(/^-+|-+$/g,"").slice(0,t)}function _(e){const t=String(e||"").trim();return S.test(t)?t:/^\d{2}-\d{2}-\d{2}$/.test(t)?"20".concat(t):""}function q(e){return String(e||"").normalize("NFKC").toLowerCase().replace(/[^a-z0-9%$]+/g," ").replace(/\s+/g," ").trim()}function U(e){const t=String(e||"");let n=2166136261,a=5381;for(let r=0;r<t.length;r+=1){const e=t.charCodeAt(r);n^=e,n=Math.imul(n,16777619),a=Math.imul(a,33)^e}return"".concat((n>>>0).toString(16).padStart(8,"0")).concat((a>>>0).toString(16).padStart(8,"0"))}function O(e){return[...new Set((q(null===e||void 0===e?void 0:e.debateTitle).match(/[a-z][a-z0-9-]{4,}/g)||[]).filter((e=>!M.has(e))))].sort().slice(0,12)}function P(e){const t=q(null===e||void 0===e?void 0:e.rankReason);return/quantif|metric|basis point|operating change/.test(t)?"quantified-operating-change":/new.*(?:material|consequential)|novel/.test(t)?"new-material-evidence":/material operating|hard state change/.test(t)?"material-operating-evidence":"verified"===(null===e||void 0===e?void 0:e.reliabilityTier)?"source-verified-debate":"transcript-evidence"}function R(e){const t=T(null===e||void 0===e?void 0:e.ticker),n=[null===e||void 0===e?void 0:e.feedbackItemId,null===e||void 0===e?void 0:e.feedback_item_id,...Array.isArray(null===e||void 0===e?void 0:e.feedbackItemIds)?e.feedbackItemIds:[]].map((e=>String(e||"").trim())).filter((e=>t&&N.test(e)&&e.startsWith("".concat(t,":"))));if(n.length)return[...new Set(n)];const a=_(null===e||void 0===e?void 0:e.dateKey),r=q(null===e||void 0===e?void 0:e.debateTitle),o=String((null===e||void 0===e?void 0:e.id)||"").match(/^[^:]+:\d{4}-\d{2}-\d{2}:(\d+):/),i=Number.isInteger(null===e||void 0===e?void 0:e.sourceIndex)?e.sourceIndex:o?Number(o[1]):-1,s=I((null===e||void 0===e?void 0:e.feedbackIdentity)||(null===e||void 0===e?void 0:e.debateIdentity)||(null===e||void 0===e?void 0:e.debateId),120),l=O(e).join("|")||r,c=s?"explicit:".concat(s):"fallback:".concat(i,":").concat(l);return t&&a&&l&&c?["".concat(t,":").concat(U([t,a,c].join("|")))]:[]}function K(e){return R(e)[0]||""}function L(e){const t=B.has(null===e||void 0===e?void 0:e.vote)?e.vote:"",n=T(null===e||void 0===e?void 0:e.ticker),a=_(null===e||void 0===e?void 0:e.dateKey),r=Number(null===e||void 0===e?void 0:e.updatedAt);if(!t||!n||!a)return null;const o=function(e){return String(e||"").trim().slice(0,1e3)}(null===e||void 0===e?void 0:e.comment);return(0,i.A)({vote:t,ticker:n,dateKey:a,signalKey:I(null===e||void 0===e?void 0:e.signalKey),reliabilityTier:["verified","transcript-evidence"].includes(null===e||void 0===e?void 0:e.reliabilityTier)?e.reliabilityTier:"",topicKeys:(s=null===e||void 0===e?void 0:e.topicKeys,[...new Set((Array.isArray(s)?s:[]).map((e=>
2I(e,64))).filter(Boolean))].sort().slice(0,16)),updatedAt:Number.isFinite(r)&&r>0?Math.floor(r):Date.now(),schemaVersion:A,selectorVersion:E},o?{comment:o}:{});var s}function z(e){const t=Object.entries(e||{}).flatMap((e=>{let[t,n]=e;if(!N.test(t))return[];const a=L(n);return a&&t.startsWith("".concat(a.ticker,":"))?[[t,a]]:[]})).sort(((e,t)=>e[1].updatedAt-t[1].updatedAt));return Object.fromEntries(t.slice(-k))}function W(){const e={};for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];for(const r of n)for(const[t,n]of Object.entries(z(r)))(!e[t]||n.updatedAt>=e[t].updatedAt)&&(e[t]=n);return z(e)}function $(e,t){const n=z(e);for(const a of R(t))if(n[a])return n[a];return null}function H(){const e=String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"guest").trim().slice(0,160)||"guest";return"".concat(j,":").concat(U(e))}function G(){let{userId:e="",storage:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=void 0===t?(0,C.X_)():t;if(!n)return{};try{const t=JSON.parse(n.getItem(H(e))||"{}");return t&&"object"===typeof t&&!Array.isArray(t)?z(t):{}}catch(a){return{}}}function Z(e){let{userId:t="",storage:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=void 0===n?(0,C.X_)():n;if(a)try{a.setItem(H(t),JSON.stringify(z(e)))}catch(r){}}function V(e,t){const n=new Set(O(t)),a=P(t);let r=0;for(const o of e){const e="up"===o.vote?1:-1;o.signalKey&&o.signalKey===a&&(r+=2.5*e);const i=o.topicKeys.filter((e=>n.has(e))).length;r+=e*Math.min(3,i)*1.5,o.reliabilityTier&&o.reliabilityTier===(null===t||void 0===t?void 0:t.reliabilityTier)&&(r+=.5*e)}return Math.max(-12,Math.min(12,r))}var Y=n(70626);const Q=6e4,J=98304,X=50,ee=Object.freeze({read:"getEarningsIntelligenceFeedback",write:"saveEarningsIntelligenceFeedback"});function te(e){const t=String(e||"");return"undefined"!==typeof TextEncoder?(new TextEncoder).encode(t).length:encodeURIComponent(t).replace(/%[0-9A-F]{2}/gi,"x").length}const ne=function(e){let{client:t,getCurrentUserId:n,now:a=(()=>Date.now()),ttlMs:r=Q}=e;const o=new Map,s=new Map;let l=0;const c=e=>"".concat(l,":").concat(s.get(e)||0),u=e=>{o.delete(e),s.set(e,(s.get(e)||0)+1)},d=e=>{const t=String(e||"").trim();return t&&t===String((null===n||void 0===n?void 0:n())||"").trim()?t:""};return{clear(){const e=String((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"").trim();e?u(e):(o.clear(),s.clear(),l+=1)},async load(e){const n=d(e);if(!n)return{personal:{},global:{}};const s=a(),l=o.get(n);if(null!==l&&void 0!==l&&l.value&&s-l.loadedAt<r)return l.value;if(null!==l&&void 0!==l&&l.promise)return l.promise;const h=c(n),m=t.load().then((e=>{if(!d(n)||c(n)!==h)return c(n)===h&&u(n),{personal:{},global:{}};const t={personal:z(null===e||void 0===e?void 0:e.personal),global:z(null===e||void 0===e?void 0:e.global)};return c(n)===h&&o.set(n,{value:t,loadedAt:a(),promise:null}),t})).catch((e=>{var t;if(!d(n)||c(n)!==h)return c(n)===h&&u(n),{personal:{},global:{}};if(c(n)===h&&null!==l&&void 0!==l&&l.value)return o.set(n,(0,i.A)((0,i.A)({},l),{},{promise:null})),l.value;throw(null===(t=o.get(n))||void 0===t?void 0:t.promise)===m&&o.delete(n),e}));return o.set(n,{value:(null===l||void 0===l?void 0:l.value)||null,loadedAt:(null===l||void 0===l?void 0:l.loadedAt)||0,promise:m}),m},async write(e,n,a){const r=d(e);if(!r)return!1;const o=await t.write(n,a);return u(r),o},async sync(e,n){const a=d(e);if(!a)return!1;const r=function(e){let{maxBytes:t=J,maxRecords:n=X}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=Object.entries(z(e)),r=[];let o={};for(const[s,l]of a){const e=(0,i.A)((0,i.A)({},o),{},{[s]:l});(Object.keys(e).length>n||te(JSON.stringify({records:e}))>t)&&Object.keys(o).length?(r.push(o),o={[s]:l}):o=e}return Object.keys(o).length&&r.push(o),r}(n);if(!r.length)return!1;u(a);let o=0,s=!1;try{for(const e of r){if(d(a)!==a)return!1;const n=await t.sync(e);o+=Number(null===n||void 0===n?void 0:n.savedCount)||Object.keys(e).length,s=s||!0===(null===n||void 0===n?void 0:n.global)}}finally{u(a)}return{savedCount:o,global:s}}}}({client:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.Qg;const n=n=>t(e,n,{timeout:3e4});return{async load(){var e,t;const a=await n(ee.read)({});return{personal:z(null===a||void 0===a||null===(e=a.data)||void 0===e?void 0:e.personal),global:z
2(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.global)}},async write(e,t){const a=await n(ee.write)({itemId:e,record:t});return(null===a||void 0===a?void 0:a.data)||{}},async sync(e){const t=await n(ee.write)({records:e});return(null===t||void 0===t?void 0:t.data)||{}}}}(v.C),getCurrentUserId:()=>{var e;return null===(e=v.auth.currentUser)||void 0===e?void 0:e.uid}});async function ae(e,t,n){return ne.write(e,t,n)}var re=n(79572),oe=n(54785);const ie=["epoch","priceChange","sourceIndex"],se=new Set(["analysis_failed","analysis_pending","evidence_incomplete","error","failed","generating","no_call","no_transcript","not_applicable","pending","profile_only","provisional","quality_pending","quality_rejected","results_only","tentative","transcript_unavailable","validating"]),le=new Set(["backfill_pipeline","prior_quarter_backfill","realtime_pipeline","transcript_backlog_sweep","transcript_write_analysis","user_onboarding"]),ce=/\b(?:accelerat|decelerat|declin|expand|fell|grew|growth|higher|improv|increase|lower|prior quarter|sequential|slow|up from|versus|vs\.?|year over year|yoy)\w*/i,ue=/\b(?:active users?|backlog|bookings|cash flow|churn|dau|demand|engagement|free cash flow|guidance|margin|mau|orders?|pricing|profit|retention|revenue|share|subscribers?|usage|view(?:ing)? hours?)\b/i,de=/\b(?:accelerated|declined|delayed|fell|grew|improved|increased|lowered|raised|reduced|slowed|surpassed)\b/i,he=/\b(?:but|despite|offset|risk|trade-?off|versus|vs\.?|while|yet)\b/i,me=/(?:^|\s)[+-]?(?:\$|\u20ac|\xa3)?\d+(?:\.\d+)?(?:%|x|bps?|billion|million|[bmk])?\b/i,ge=/(?:\$|\u20ac|\xa3)\s?\d|\b\d+(?:\.\d+)?\s?(?:%|x|bps?|basis points?|billion|million)\b/i,pe=/\b(?:abandon\w*|acquir\w*|cancel\w*|ceas\w*|cut|depart\w*|discontinu\w*|exit\w*|first(?:-ever|\s+(?:commercial|contract|customer|deployment|ever|launch|product|shipment|time))|launch\w*|lowered|new contract|no longer|now expect\w*|paus\w*|pivot\w*|prepayment|push(?:ed)?[- ]?out|raised|re-?entry|reduc\w*|reintroduc\w*|restructur\w*|revers\w*|shift\w*|shortfall|stop\w*|suspend\w*|transition\w*|walk(?:ed)? away|withdraw\w*)\b/i,xe=/\b(?:could|keeping an eye|may|might|modest|no change|too early|uncertain)\b/i,De=/\b(?:broadly unchanged|continue to expect|held (?:the )?(?:guide|guidance|outlook)|in line with|no strategic shift|reaffirm\w*|reiterat\w*|remain(?:s|ed)? on track|similar to|unchanged)\b/i,fe=/\b(?:cut|cuts|decreas\w*|forecast|guidance|guide|increas\w*|lower\w*|outlook|rais\w*|reduc\w*|target)\b/i,be=/\b(?:acquir\w*|commercial launch|contract win|divest\w*|entered production|exit\w*|first customer|first deployment|first shipment|launch\w*|new contract|new product|restructur\w*|strategic partnership|turn(?:ed|ing)? (?:cash flow|ebitda|margin|profitability) positive)\b/i,ve=/\b(?:accelerat\w*|break-?even|decelerat\w*|first time|inflect\w*|no longer|now expect\w*|resolv\w*|revers\w*|shift\w*|turned negative|turned positive)\b/i,ye=/\b(?:accounting reclassification|affiliate (?:fee |revenue )?timing|calendar shift|easter timing|leap year|one fewer (?:day|week)|one more (?:day|week)|quarterly cadence|reporting cadence|seasonal(?:ity)?|tax timing|timing of affiliate|timing of payments?)\b/i,Fe=new Set(["failed","invalid","mismatch","mismatched","rejected","wrong_entity"]),we=12,Ce=new Set(["about","above","across","after","against","ahead","along","already","also","another","back","before","being","between","billion","business","called","calls","capacity","commercial","company","completed","constrained","could","customer","customers","debate","despite","during","earnings","enterprise","expected","first","deployment","domestic","economics","expanded","facilities","forward","from","full","given","global","growth","guidance","higher","improved","including","increased","installation","intensity","international","into","investment","lower","management","margin","market","million","months","near","operating","outlook","performance","planned","platform","pricing","product","products","profit","quarter","remained","revenue","second","segment","sequence","services","share","should","specialized","strong","technicians","than","that","their","there","these","they","this","through","throughput","timing","ver
2sus","while","with","year","years"]),ke=new Set(["ceo","cfo","chief","director","executive","leader","management","manager","officer","operator","person","president","vice"]),Ae=(new Date).getFullYear(),Ee=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",timeZone:"UTC"}),je=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"}),Ne=e=>String(e).padStart(2,"0");function Se(e){const t=String(e||"").trim().toUpperCase();return oe.BK[t]||t}const Be=Se;function Me(e){const t=(0,re.Ot)(e);if(!t)return null;const[n,a,r]=t.split("-").map(Number),o=n>50?1900+n:2e3+n;return{dateKey:"".concat(o,"-").concat(Ne(a),"-").concat(Ne(r)),sourceDateKey:t,epoch:Date.UTC(o,a-1,r)}}function Te(e){const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?Date.now():Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}function Ie(e){const[t,n,a]=String(e).split("-").map(Number);return(t===Ae?Ee:je).format(new Date(Date.UTC(t,n-1,a,12)))}function _e(e){return!0===e||!!e&&("string"===typeof e?["verified","passed","pass","valid"].includes(e.toLowerCase()):!0===e.valid||!0===e.passed||["verified","passed","pass","valid"].includes(String(e.status||"").toLowerCase()))}function qe(e){if(null==e)return!1;if(_e(e))return!1;if(!1===e)return!0;const t=String("object"===typeof e?e.status||"":e).toLowerCase();return["failed","invalid","partial","quality_rejected","rejected"].includes(t)||Number(null===e||void 0===e?void 0:e.rejected)>0}function Ue(e){return[null===e||void 0===e?void 0:e.status,null===e||void 0===e?void 0:e.analysis_status,null===e||void 0===e?void 0:e.coverage_status,null===e||void 0===e?void 0:e.coverage_type,null===e||void 0===e?void 0:e.debate_generation_status,null===e||void 0===e?void 0:e.transcript_status].some((e=>se.has(String(e||"").trim().toLowerCase())))}function Oe(e){return String(e||"").normalize("NFKC").replace(/[\u2018\u2019]/g,"'").replace(/[\u201c\u201d]/g,'"').replace(/\s+/g," ").trim()}function Pe(e){return Oe(e).toLowerCase().replace(/[^a-z0-9%$]+/g," ").trim()}function Re(e){let t=2166136261;const n=String(e||"");for(let a=0;a<n.length;a+=1)t=Math.imul(t^n.charCodeAt(a),16777619);return(t>>>0).toString(16).padStart(8,"0")}function Ke(e){const t=new Set,n=[];for(const a of e||[]){const e=Oe("string"===typeof a?a:null===a||void 0===a?void 0:a.quote);if(!e)continue;const r=Pe(e);r&&!t.has(r)&&(t.add(r),n.push({speaker:Oe("string"===typeof a?"":null===a||void 0===a?void 0:a.speaker)||"Management",quote:e}))}return n}function Le(e){const t=Oe("string"===typeof e?e:null===e||void 0===e?void 0:e.quote);if(!t)return 0;let n=0;const a=me.test(t),r=ce.test(t),o=pe.test(t),i=de.test(t)||o;return a&&(r||i)?n+=10:a&&(n+=4),ue.test(t)&&(n+=4),o?n+=14:i&&(n+=5),o&&!a&&(n+=5),ge.test(t)&&(n+=3),t.split(/\s+/).length>=15&&(n+=2),xe.test(t)&&!i&&(n-=3),De.test(t)&&!o&&(n-=6),Math.max(0,Math.min(30,n))}function ze(e){return(e||[]).map(((e,t)=>({quote:e,index:t,evidence:Le(e)}))).sort(((e,t)=>t.evidence-e.evidence||e.index-t.index)).map((e=>{let{quote:t}=e;return t}))}function We(e){return e.replace(/(?:ization|ational|fulness|ousness|iveness)$/i,"").replace(/(?:ments?|ingly|edly|ation|ities|ity)$/i,"").replace(/(?:ing|ed|es|s)$/i,"")}function $e(e){const t=Oe(e).toLowerCase().match(/[a-z][a-z0-9-]{4,}/g)||[];return new Set(t.filter((e=>!Ce.has(e))).map(We).filter((e=>e.length>=4&&!Ce.has(e))))}function He(e,t){let n=0;for(const a of e)t.has(a)&&(n+=1);return n}function Ge(e){const t=(Oe(e).toLowerCase().match(/[a-z][a-z'-]+/g)||[]).filter((e=>!ke.has(e)));return t.length>=2?t[t.length-1]:null}function Ze(e,t){const n=(null===t||void 0===t?void 0:t.ticker)||(null===t||void 0===t?void 0:t.symbol)||(null===t||void 0===t?void 0:t.company_ticker)||(null===t||void 0===t?void 0:t.companyTicker);if(n&&Se(n)!==e)return!0;const a=(null===t||void 0===t?void 0:t.entity_validation)||(null===t||void 0===t?void 0:t.entityValidation);if(!1===a||!1===(null===a||void 0===a?void 0:a.matched)||!1===(null===a||void 0===a?void 0:a.valid))return!0;const r=String("object"===typeof a?(null===a||void 0===a?void 0:a.status)||"":a||"").trim().toLowerCase();if(Fe.has(r))return!0;const o=(null===a||void 0===a?void 0:a.ticker)||(null===a||void 0===a?void 0:a.symbol)||(null===a||void 0===a?void 0:a.matched_ticker)||(null===a||void 0===a?void 0:a.matchedTicker);return Boolean(o&&Se(o)!==e)}function Ve(e,t){var n,a;if(Ue(e))return null;const r=null===e||void 0===e?void 0:e.quote_validation,o=(null===e||void 0===e?void 0:e.quality_validation)||(null===e||void 0===e?void 0:e.debate_quality),i=null===t||void 0===t?void 0:t.quote_validation;if(qe(r)||qe(o)||qe(i))return null;
2if(null!=r||null!=o||null!=i)return _e(r)&&_e(o)&&(null==i||_e(i))?"verified":null;const s=Oe(null===e||void 0===e||null===(n=e.street_cases)||void 0===n?void 0:n.bull),l=Oe(null===e||void 0===e||null===(a=e.street_cases)||void 0===a?void 0:a.bear);if(!s||!l)return null;const c=String((null===e||void 0===e?void 0:e.source)||"").trim().toLowerCase();return!c||le.has(c)?"legacy_static_compatibility":null}function Ye(e){return new Set(Pe(e).split(" ").filter((e=>e.length>2)))}function Qe(e,t){const n=Ye(e),a=Ye(t);if(!n.size||!a.size)return 0;let r=0;for(const o of n)a.has(o)&&(r+=1);return r/(n.size+a.size-r)}function Je(e){const t=Oe(e),n=new Set;return/\b(?:revenue|sales|arr|arpu)\b/i.test(t)&&n.add("revenue"),/\b(?:margin|profit|ebitda|earnings|eps)\b/i.test(t)&&n.add("profitability"),/\b(?:demand|orders?|backlog|bookings|pipeline)\b/i.test(t)&&n.add("demand"),/\b(?:retention|churn|subscribers?|members?|customers?)\b/i.test(t)&&n.add("retention"),/\b(?:active users?|dau|engagement|mau|usage|view(?:ing)? hours?)\b/i.test(t)&&n.add("engagement"),/\b(?:cash flow|free cash flow|capex|capital spending)\b/i.test(t)&&n.add("cash"),/\b(?:pricing|price|yield|rate)\b/i.test(t)&&n.add("pricing"),/\b(?:volume|shipments?|units?|utilization|throughput)\b/i.test(t)&&n.add("volume"),/\b(?:guidance|outlook|target|forecast)\b/i.test(t)&&n.add("outlook"),n}function Xe(e){const t=Number(e);return Number.isFinite(t)?t>=.2?{sentiment:"bull",sentimentScore:t}:t<=-.2?{sentiment:"bear",sentimentScore:t}:{sentiment:"mixed",sentimentScore:t}:{sentiment:"mixed",sentimentScore:null}}function et(e,t,n){var a,r;return!n.recurring&&n.score>=10&&t.consequence>=15?"New, consequential evidence versus recent calls":me.test((null===(a=e.quotes[0])||void 0===a?void 0:a.quote)||"")&&ce.test((null===(r=e.quotes[0])||void 0===r?void 0:r.quote)||"")?"Quantified operating change":n.stateChange>=6?n.recurring?"Fresh change within a recurring debate":"New narrative inflection":t.consequence>=14?"Material operating evidence":t.strongestEvidence>=12?"Specific transcript evidence":he.test(e.debateTitle)?"Decision-relevant management trade-off":"Transcript-backed operating detail"}function tt(e){const t=(e.quotes||[]).map((e=>e.quote)).join(" "),n=Math.max(0,...(e.quotes||[]).map(Le)),a="".concat(e.debateTitle||""," ").concat(t),r=ge.test(t)&&(ce.test(t)||de.test(t)||pe.test(t))&&fe.test(a),o=be.test(a),i=ve.test(a)||pe.test(t),s=ye.test(a)&&!r&&!o&&!pe.test(t);return{value:(Number(e.score)||0)+.55*n+(r?30:0)+(o?20:0)+(i?12:0)-(s?32:0),evidenceQuality:n}}function nt(e,t){if(t.epoch!==e.epoch)return t.epoch-e.epoch;const n=tt(e),a=tt(t);return a.value-n.value||t.score-e.score||a.evidenceQuality-n.evidenceQuality||e.ticker.localeCompare(t.ticker)||e.sourceIndex-t.sourceIndex||e.id.localeCompare(t.id)}function at(e){let{ticker:t,rawTicker:n,date:a,record:r}=e;if(!r||"object"!==typeof r||Ue(r)||Ze(t,r))return[];if("issuer_results"===String(r.analysis_evidence_mode||"").trim().toLowerCase())return[];const o=[],s=function(e){const t="string"===typeof(null===e||void 0===e?void 0:e.transcript_revision)?e.transcript_revision.normalize("NFKC").trim():"";if(t&&t.length<=256&&!/(?:[\0-\x1F\x7F-\x9F\xAD\u0378\u0379\u0380-\u0383\u038B\u038D\u03A2\u0530\u0557\u0558\u058B\u058C\u0590\u05C8-\u05CF\u05EB-\u05EE\u05F5-\u0605\u061C\u06DD\u070E\u070F\u074B\u074C\u07B2-\u07BF\u07FB\u07FC\u082E\u082F\u083F\u085C\u085D\u085F\u086B-\u086F\u088F-\u0897\u08E2\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A77-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF2-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B78-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BFB-\u0BFF\u0C0D\u0C11\u0C29\u0C3A\u0C3B\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B\u0C5C\u0C5E\u0C5F\u0C64\u0C65\u0C70-\u0C76\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDC\u0CDF\u0CE4\u0CE5\u0CF0\u0CF4-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D50-\u0D53\u0D64\u0D65\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF5-\u0E00\u0E3B-\u0E3
2E\u0E5C-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F48\u0F6D-\u0F70\u0F98\u0FBD\u0FCD\u0FDB-\u0FFF\u10C6\u10C8-\u10CC\u10CE\u10CF\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u137D-\u137F\u139A-\u139F\u13F6\u13F7\u13FE\u13FF\u169D-\u169F\u16F9-\u16FF\u1716-\u171E\u1737-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17DE\u17DF\u17EA-\u17EF\u17FA-\u17FF\u180E\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u193F\u1941-\u1943\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DB-\u19DD\u1A1C\u1A1D\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1A9F\u1AAE\u1AAF\u1ACF-\u1AFF\u1B4D-\u1B4F\u1B7F\u1BF4-\u1BFB\u1C38-\u1C3A\u1C4A-\u1C4C\u1C89-\u1C8F\u1CBB\u1CBC\u1CC8-\u1CCF\u1CFB-\u1CFF\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FC5\u1FD4\u1FD5\u1FDC\u1FF0\u1FF1\u1FF5\u1FFF\u200B-\u200F\u202A-\u202E\u2060-\u206F\u2072\u2073\u208F\u209D-\u209F\u20C1-\u20CF\u20F1-\u20FF\u218C-\u218F\u2427-\u243F\u244B-\u245F\u2B74\u2B75\u2B96\u2CF4-\u2CF8\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D71-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E5E-\u2E7F\u2E9A\u2EF4-\u2EFF\u2FD6-\u2FEF\u3040\u3097\u3098\u3100-\u3104\u3130\u318F\u31E4-\u31EE\u321F\uA48D-\uA48F\uA4C7-\uA4CF\uA62C-\uA63F\uA6F8-\uA6FF\uA7CB-\uA7CF\uA7D2\uA7D4\uA7DA-\uA7F1\uA82D-\uA82F\uA83A-\uA83F\uA878-\uA87F\uA8C6-\uA8CD\uA8DA-\uA8DF\uA954-\uA95E\uA97D-\uA97F\uA9CE\uA9DA-\uA9DD\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A\uAA5B\uAAC3-\uAADA\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB6C-\uAB6F\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBC3-\uFBD2\uFD90\uFD91\uFDC8-\uFDCE\uFDD0-\uFDEF\uFE1A-\uFE1F\uFE53\uFE67\uFE6C-\uFE6F\uFE75\uFEFD-\uFF00\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFDF\uFFE7\uFFEF-\uFFFB\uFFFE\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDCFF\uDD03-\uDD06\uDD34-\uDD36\uDD8F\uDD9D-\uDD9F\uDDA1-\uDDCF\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEFC-\uDEFF\uDF24-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDFC4-\uDFC7\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDD6E\uDD7B\uDD8B\uDD93\uDD96\uDDA2\uDDB2\uDDBA\uDDBD-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDF7F\uDF86\uDFB1\uDFBB-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56\uDC9F-\uDCA6\uDCB0-\uDCDF\uDCF3\uDCF6-\uDCFA\uDD1C-\uDD1E\uDD3A-\uDD3E\uDD40-\uDD7F\uDDB8-\uDDBB\uDDD0\uDDD1\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE49-\uDE4F\uDE59-\uDE5F\uDEA0-\uDEBF\uDEE7-\uDEEA\uDEF7-\uDEFF\uDF36-\uDF38\uDF56\uDF57\uDF73-\uDF77\uDF92-\uDF98\uDF9D-\uDFA8\uDFB0-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCF9\uDD28-\uDD2F\uDD3A-\uDE5F\uDE7F\uDEAA\uDEAE\uDEAF\uDEB2-\uDEFC\uDF28-\uDF2F\uDF5A-\uDF6F\uDF8A-\uDFAF\uDFCC-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC4E-\uDC51\uDC76-\uDC7E\uDCBD\uDCC3-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD48-\uDD4F\uDD77-\uDD7F\uDDE0\uDDF5-\uDDFF\uDE12\uDE42-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEAA-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC5C\uDC62-\uDC7F\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDDE-\uDDFF\uDE45-\uDE4F\uDE5A-\uDE5F\uDE6D-\uDE7F\uDEBA-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF47-\uDFFF]|\uD806[\uDC3C-\uDC9F\uDCF3-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD47-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE5-\uDDFF\uDE48-\uDE4F\uDEA3-\uDEAF\uDEF9-\uDEFF\uDF0A-\uDFFF]|\uD807[\uDC09\uDC37\uDC46-\uDC4F\uDC6D-\uDC6F\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF9-\uDEFF\uDF11\uDF3B-\uDF3D\uDF5A-\uDFAF\uDFB1-\uDFBF\uDFF2-\uDFFE]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F\uDC75-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80E-\uD810\uD812-\uD819\uD824-\uD82A\uD82D\uD82E\uD830-\uD832\uD83F\uD87C\uD87D\uD87F\uD889-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80B[\uDC00-\uDF8F\uDFF3-\uDFFF]|\uD80D[\uDC30-\uDC3F\uDC56-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDE6D\uDEBF\uDECA-\uDECF\uDEEE\uDEEF\uDEF6-\uDEFF\uDF46-\uDF4F\uDF5A\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE9B-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82B[\uDC00-\uDFEF\uDFF4\uDFFC\uDFFF]|\uD82C[\uDD23-\uDD31\uDD33-\uDD4F\uDD53\uDD54\uDD56-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A\uDC9B\uDCA0-\uDFFF]|\uD833[\uDC00-\uDEFF\uDF2E\uD
2F2F\uDF47-\uDF4F\uDFC4-\uDFFF]|\uD834[\uDCF6-\uDCFF\uDD27\uDD28\uDD73-\uDD7A\uDDEB-\uDDFF\uDE46-\uDEBF\uDED4-\uDEDF\uDEF4-\uDEFF\uDF57-\uDF5F\uDF79-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]|\uD836[\uDE8C-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD837[\uDC00-\uDEFF\uDF1F-\uDF24\uDF2B-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDC2F\uDC6E-\uDC8E\uDC90-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD50-\uDE8F\uDEAF-\uDEBF\uDEFA-\uDEFE\uDF00-\uDFFF]|\uD839[\uDC00-\uDCCF\uDCFA-\uDFDF\uDFE7\uDFEC\uDFEF\uDFFF]|\uD83A[\uDCC5\uDCC6\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDD5D\uDD60-\uDFFF]|\uD83B[\uDC00-\uDC70\uDCB5-\uDD00\uDD3E-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDEEF\uDEF2-\uDFFF]|\uD83C[\uDC2C-\uDC2F\uDC94-\uDC9F\uDCAF\uDCB0\uDCC0\uDCD0\uDCF6-\uDCFF\uDDAE-\uDDE5\uDE03-\uDE0F\uDE3C-\uDE3F\uDE49-\uDE4F\uDE52-\uDE5F\uDE66-\uDEFF]|\uD83D[\uDED8-\uDEDB\uDEED-\uDEEF\uDEFD-\uDEFF\uDF77-\uDF7A\uDFDA-\uDFDF\uDFEC-\uDFEF\uDFF1-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE\uDCAF\uDCB2-\uDCFF\uDE54-\uDE5F\uDE6E\uDE6F\uDE7D-\uDE7F\uDE89-\uDE8F\uDEBE\uDEC6-\uDECD\uDEDC-\uDEDF\uDEE9-\uDEEF\uDEF9-\uDEFF\uDF93\uDFCB-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEE0-\uDEFF]|\uD86D[\uDF3A-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFEF]|\uD87B[\uDE5E-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDF4F]|\uD888[\uDFB0-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/.test(t))return t;const n=String((null===e||void 0===e?void 0:e.report_content_hash)||"").trim();return/^[a-f0-9]{64}$/i.test(n)?n.toLowerCase():""}(r),l=(0,re.Dp)(r.debates);for(const m of l){var c,u,d,h;const e=Ve(r,m);if(!e)continue;const l=ze(Ke(m.key_quotes));if(!l.length)continue;const g=Number.isInteger(m.sourceIndex)?m.sourceIndex:0,p=String(m.feedback_item_id||m.feedbackItemId||"").trim(),x=Number(null!==(c=m.feedback_item_order)&&void 0!==c?c:m.feedbackItemOrder),D=Oe(m.feedback_identity||m.feedbackIdentity||m.debate_id||m.debateId||m.id),f=Xe(null===(u=r.sentiments)||void 0===u?void 0:u[g]),b=Oe(m.title);o.push((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({id:"".concat(t,":").concat(a.dateKey,":").concat(g,":").concat(Re("".concat(n,":").concat(b,":").concat(l[0].quote))),ticker:t,companyName:Oe(r.full_name)||t,transcriptLookupTickers:[...new Set([n,t].map((e=>String(e||"").trim().toUpperCase())).filter(Boolean))]},s?{transcriptRevision:s}:{}),{},{dateKey:a.dateKey,dateLabel:Ie(a.dateKey),debateTitle:b,quotes:l,bullCase:Oe(null===(d=r.street_cases)||void 0===d?void 0:d.bull),bearCase:Oe(null===(h=r.street_cases)||void 0===h?void 0:h.bear),reliabilityTier:e,priceChange:r.price_change,sourceIndex:g},p?{feedbackItemId:p}:{}),Number.isInteger(x)&&x>=0?{feedbackItemOrder:x}:{}),D?{debateIdentity:D}:{}),{},{epoch:a.epoch},f))}return o}function rt(e){const t=new Set,n=new Set;for(const a of e||[]){for(const e of a.quotes||[]){const n=Ge(e.speaker);n&&t.add(n)}for(const e of $e("".concat(a.debateTitle," ").concat((a.quotes||[]).map((e=>e.quote)).join(" "))))n.add(e)}return{speakers:t,domains:n}}function ot(e){let{mode:t="latest",scope:n="all",scopeTickers:a=[],selectedDate:r=null,now:o=new Date,lookbackDays:s=45,preserveSortMetadata:l=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{candidates:c,historyCandidates:u}=function(e,t){var n;const a=Te(t.now),r=t.selectedDate?null===(n=Me(t.selectedDate))||void 0===n?void 0:n.dateKey:null,o=r||null==t.lookbackDays?Number.NEGATIVE_INFINITY:a-864e5*Math.max(1,Number(t.lookbackDays)||45),i=new Set((t.scopeTickers||[]).map(Se).filter(Boolean));if("watchlist"===t.scope&&0===i.size)return{candidates:[],historyCandidates:[]};const s="watchlist"===t.scope||i.size>0,l=[],c=[],u=new Map;for(const[d,h]of Object.entries(e||{})){const e=Se(d);if(!e||s&&!i.has(e))continue;const t=u.get(e)||[];t.push({rawTicker:d,records:h}),u.set(e,t)}for(const[d,h]of u){const e=[];for(const{rawTicker:r,records:o}of h)for(const[t,n]of Object.entries(o||{})){if(!n||"object"!==typeof n||Ue(n))continue;const o=Me(t);!o||o.epoch>a||e.push({rawTicker:r,rawDate:t,record:n,date:o})}const t=e.filter((e=>{let{date:t}=e;return r?t.dateKey===r:t.epoch>=o})).flatMap((e=>{let{rawTicker:t,record:n,date:a}=e;return at({ticker:d,rawTicker:t,date:a,record:n})}));if(!t.length)continue;l.push(...t),c.push(...t);const n=Math.min(...t.map((e=>e.epoch)));let i=0,s=null;const u=new Set,m=e.filter((e=>{let{date:t}=e;return t.epoch<n})).sort(((e,t)=>t.date.epoch-e.date.epoch));for(const{rawTicker:a,record:r,date:o}of m){if(null!=s&&o.epoch<s)break;const e=at({ticker:d,rawTicker:a,date:o,record:r});e.length&&(c.push(...e),u.has(o.epoch)||(u.add(o.epoch),i+=1,4===i&&(s=o.epoch)))}}return{candidates:l,historyCandidates:c}}(e,{scope:n,scopeTickers:a,selectedDate:r,now:o,lookbackDays:s}),d=function(e,t){const n=new Map;for(const o of t||[]){const e=n.get(o.ticker)||new Map;e.set(o.epoch,[...e.get(o.epoch)||[],o]),n.set(o.ticker,e)}const a=new Set,r=new Map;for(const o of e||[]){const e="".concat(o.ticker,":").concat(o.epoch);r.set(e,[...r.get(e)||[],o])}for(const[o,i]of r){const e=i[0],t=n.get(e.ticker)||new Map,r=[...t.keys()].filter((t=>t<e.epoch)).sort(((e,t)=>t-e)).slice(0,2);if(r.length<2)continue;const s=rt(i),l=r.map((e=>rt(t.get(e)))),c=new Set(l.flatMap((e=>[...e.speakers]))),u=new Set(l.flatMap((e=>[...e.domains])));s.speakers.size<2||c.size<2||s.domains.size<4||u.size<6||0===He(s.speakers,c)&&0===He(s.domains,u)&&a.add(o)}return(e||[]).filter((e=>!a.has("".concat(e.ticker,":").concat(e.epoch))))}(c,u),h=new Map;for(const i of u)h.set(i.ticker,[...h.get(i.ticker)||[],i]);return lt(d.map((e=>{const t=[...new Set((h.get(e.ticker)||[]).filter((t=>t.epoch<e.epoch)).map((e=>e.epoch)))].sort(((e,t)=>t-e)).slice(0,4),n=(h.get(e.ticker)||[]).filter((e=>t.includes(e.epoch))),a=function(e){const t=e.quotes.map((e=>e.quote)).join(" "),n=Math.max(0,...e.quotes.map(Le));let a=0;/\b(?:acquir\w*|active users?|backlog|bookings|cash flow|churn|contract|dau|engagement|free cash flow|guidance|margin|mau|orders?|prepayment|pricing|retention|revenue|run-rate|subscribers?|target|usage|view(?:ing)? hours?)\b/i.test(t)&&(a+=8),(de.test(t)||pe.test(t))&&(a+=6),ge.test(t)&&(a+=5),/\b(?:all-time|basis points?|bps|doubl\w*|first|halv\w*|record)\b/i.test(t)&&(a+=4);const r=Math.min(6,Math.max(0,...e.quotes.map((t=>12*Qe(e.debateTitle,t.quote))))),o=Math.abs(Number(e.priceChange));return{preNovelty:n+a+r+(Number.isFinite(o)?o>=10?3:o>=5?2:o>=3?1:0:0),strongestEvidence:n,consequence:a,titleAlignment:r}}(e),r=function(e,t){const n=e.quotes.map((e=>e.quote)).join(" "),a=pe.test(n),r=me.test(n)&&(ce.test(n)||de.test(n)),o=de.test(n),i=a?8:r?6:o?4:0;if(!t.length)return{score:Math.min(14,6+i),recurring:!1,stateChange:i};const s=$e(e.debateTitle),l=$e("".concat(e.debateTitle," ").concat(n)),c=t.some((e=>{const t=$e(e.debateTitle);
2if(He(s,t)>0)return!0;const n=$e("".concat(e.debateTitle," ").concat(e.quotes.map((e=>e.quote)).join(" ")));return He(l,n)>=2})),u="".concat(e.debateTitle," ").concat(n),d=Math.max(...t.map((t=>.55*Qe(u,"".concat(t.debateTitle," ").concat(t.quotes.map((e=>e.quote)).join(" ")))+.45*Qe(e.debateTitle,t.debateTitle)))),h=Math.max(0,Math.min(3,3*(1-d))),m=c?1:5,g=c?8:16;return{score:Math.min(g,m+Math.min(i,c?6:8)+h),recurring:c,stateChange:i}}(e,n),o=Math.max(0,Math.min(100,Math.round(10*(a.preNovelty+r.score))/10));return(0,i.A)((0,i.A)({},e),{},{score:o,rankReason:et(e,a,r)})})),{mode:t,now:o,preserveSortMetadata:l})}function it(e,t){if(e.ticker!==t.ticker||e.dateKey!==t.dateKey)return!1;for(const s of e.quotes||[])for(const e of t.quotes||[])if(Qe(s.quote,e.quote)>=.72)return!0;const n=$e(e.debateTitle),a=$e(t.debateTitle),r=[...n].filter((e=>e.length>=7&&a.has(e))),o=Je("".concat(e.debateTitle," ").concat((e.quotes||[]).map((e=>e.quote)).join(" "))),i=Je("".concat(t.debateTitle," ").concat((t.quotes||[]).map((e=>e.quote)).join(" ")));return r.length>0&&He(o,i)>0||He(n,a)>=2}function st(e,t){const n=new Set,a=[];for(const r of[...e.quotes||[],...t.quotes||[]]){const e=Pe(r.quote);e&&!n.has(e)&&(n.add(e),a.push(r))}return ze(a)}function lt(e){let{mode:t="latest",now:n=new Date,preserveSortMetadata:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r="top"===t?"top":"latest",s=(e||[]).map((e=>{var t;return(0,i.A)((0,i.A)({},e),{},{epoch:Number.isFinite(e.epoch)?e.epoch:(null===(t=Me(e.dateKey))||void 0===t?void 0:t.epoch)||0,sourceIndex:Number.isInteger(e.sourceIndex)?e.sourceIndex:0})})),l=new Set,c=function(e){const t=[...e||[]].sort(((e,t)=>t.score-e.score||t.epoch-e.epoch||e.ticker.localeCompare(t.ticker)||e.sourceIndex-t.sourceIndex||e.id.localeCompare(t.id))),n=[];for(const a of t){const e=n.find((e=>it(e,a)));if(!e){n.push((0,i.A)((0,i.A)((0,i.A)({},a),a.feedbackItemId?{feedbackItemIds:[a.feedbackItemId]}:{}),{},{relatedDebateCount:Number(a.relatedDebateCount)||1}));continue}e.quotes=st(e,a),e.relatedDebateCount+=Number(a.relatedDebateCount)||1;const t=[...new Set([...e.feedbackItemIds||[],e.feedbackItemId,...a.feedbackItemIds||[],a.feedbackItemId].filter(Boolean))];t.length&&(e.feedbackItemIds=t);const r=Number.isInteger(e.feedbackItemOrder)?e.feedbackItemOrder:Number.MAX_SAFE_INTEGER,o=Number.isInteger(a.feedbackItemOrder)?a.feedbackItemOrder:Number.MAX_SAFE_INTEGER;a.feedbackItemId&&(!e.feedbackItemId||o<r||o===r&&a.feedbackItemId<e.feedbackItemId)&&(e.feedbackItemId=a.feedbackItemId,e.feedbackItemOrder=a.feedbackItemOrder)}return n}(s).sort(((e,t)=>t.epoch-e.epoch||t.score-e.score||e.ticker.localeCompare(t.ticker)||e.sourceIndex-t.sourceIndex||e.id.localeCompare(t.id))).filter((e=>{var t;const n="".concat(e.ticker,":").concat(Pe(null===(t=e.quotes[0])||void 0===t?void 0:t.quote));return!l.has(n)&&(l.add(n),!0)})),u="top"===r?function(e,t){const n=[...e],a=[],r=new Map,o=Te(t),i=e=>{const t=Math.max(0,1-(o-e.epoch)/10368e6);return.95*e.score+5*t},s=(e,t)=>{const n=i(e)-we*(r.get(e.ticker)||0);return i(t)-we*(r.get(t.ticker)||0)-n||t.epoch-e.epoch||e.ticker.localeCompare(t.ticker)||e.sourceIndex-t.sourceIndex||e.id.localeCompare(t.id)};for(;n.length;){n.sort(s);const e=n.shift();a.push(e),r.set(e.ticker,(r.get(e.ticker)||0)+1)}return a}(c,n):[...c].sort(nt);return u.map((e=>{let{epoch:t,priceChange:n,sourceIndex:r}=e,s=(0,o.A)(e,ie);const l=Number.isFinite(Number(n))?(0,i.A)((0,i.A)({},s),{},{priceChange:Number(n)}):s;return a?(0,i.A)((0,i.A)({},l),{},{epoch:t,sourceIndex:r}):l}))}function ct(e){let{scope:t="all",scopeTickers:n=[],now:a=new Date,lookbackDays:r=null}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=new Map,i=Te(a),s=null==r?Number.NEGATIVE_INFINITY:i-864e5*Math.max(1,Number(r)||45),l=new Set((n||[]).map(Se).filter(Boolean));if("watchlist"===t&&0===l.size)return[];const c="watchlist"===t||l.size>0;for(const[u,d]of Object.entries(e||{})){const e=Se(u);if(e&&(!c||l.has(e)))for(const[t,n]of Object.entries(d||{})){if(!n||"object"!==typeof n||Ue(n))continue;if(Ze(e,n))continue;const a=Me(t);if(!a||a.epoch>i||a.epoch<s)continue;const r=(0,re.Dp)(n.debates).reduce(((e,t)=>e+(Ve(n,t)?1:0)),0);r>0&&o.set(a.dateKey,(o.get(a.dateKey)||0)+r)}}return[...o.entries()].sort(((e,t)=>
2{let[n]=e,[a]=t;return a.localeCompare(n)})).map((e=>{let[t,n]=e;return{dateKey:t,dateLabel:Ie(t),count:n}}))}var ut=n(16032),dt=n(64004);const ht=["ticker","date","status","generated_at"],mt=50,gt=30,pt="Some recent earnings updates could not be checked.",xt=Object.freeze({});function Dt(e){const t=[...new Set((e||[]).map(Be).filter(Boolean))].sort().slice(0,mt);return[...new Set(t.flatMap((e=>[e,oe.eV[e]].filter(Boolean))))].sort()}function ft(e){const t={};for(const n of Object.values(e||{}))for(const[e,a]of Object.entries(n||{})){t[e]||(t[e]={});for(const[n,r]of Object.entries(a||{}))t[e][n]=[...t[e][n]||[],...Array.isArray(r)?r:[r]]}return t}function bt(e,t){if(!e||"object"!==typeof e)return e;const n=Object.entries(t||{}).filter((e=>{let[,t]=e;return t&&Object.keys(t).length>0}));if(!n.length)return e;const a=(0,i.A)({},e);for(const[r,o]of n){const e=a[r]&&"object"===typeof a[r]?a[r]:{},t=(0,i.A)({},e),n=(0,dt.v7)(o,Object.keys(e));for(const[a,r]of Object.entries(n))t[a]=(0,dt.NZ)(t[a],r,{currentDate:a});a[r]=t}return a}function vt(){return{scopeKey:"",batchData:{},updates:xt,status:"idle",error:""}}function yt(e){const t=Dt(e).join(","),n=(0,a.useMemo)((()=>t?t.split(","):[]),[t]),r=(0,a.useMemo)((()=>function(e){const t=Dt(e),n=[];for(let a=0;a<t.length;a+=gt)n.push(t.slice(a,a+gt));return n}(n)),[n]),[s,l]=(0,a.useState)(vt),c=(0,a.useRef)(s);c.current=s;const[u,d]=(0,a.useState)(0),h=(0,a.useCallback)((()=>d((e=>e+1))),[]);(0,a.useEffect)((()=>{if(!t||!r.length)return void l({scopeKey:t,batchData:{},updates:xt,status:"ready",error:""});let e=!0;const n=[],a=new Map,s=c.current.scopeKey===t?c.current.batchData:{},u={};for(const t of r){const e=t.join(",");a.set(e,"loading"),u[e]=s[e]||{}}const d=()=>{if(!e)return;const n=[...a.values()],r=n.filter((e=>"error"===e)).length,o=n.filter((e=>"ready"===e)).length,s=n.filter((e=>"loading"===e)).length,c=r>0?o>0?"partial":"error":s>0?"loading":"ready";l({scopeKey:t,batchData:(0,i.A)({},u),updates:ft(u),status:c,error:r>0?pt:""})};return d(),r.forEach((t=>{const r=t.join(",");try{const s=(0,ut.P)((0,ut.rJ)(v.db,"realtime_earnings"),(0,ut._M)("ticker","in",t)),l=(0,ut.aQ)(s,(n=>{e&&(u[r]=function(e,t){var n;const a=new Set(t||[]),r={};return null===e||void 0===e||null===(n=e.forEach)||void 0===n||n.call(e,(e=>{var t;const n=null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.call(e),s=String((null===n||void 0===n?void 0:n.ticker)||"").trim().toUpperCase(),l=String((null===n||void 0===n?void 0:n.date)||"").trim();if(!a.has(s)||"complete"!==String((null===n||void 0===n?void 0:n.status)||"").trim().toLowerCase()||!l)return;const{ticker:c,date:u,status:d,generated_at:h}=n,m=(0,o.A)(n,ht);r[s]||(r[s]={}),r[s][l]||(r[s][l]=[]),r[s][l].push((0,i.A)({__document_id:e.id,__generated_at:n.generated_at},m))})),r}(n,t),a.set(r,"ready"),d())}),(()=>{e&&(a.set(r,"error"),d())}));"function"===typeof l&&n.push(l)}catch(s){a.set(r,"error"),d()}})),()=>{e=!1,n.forEach((e=>e()))}}),[r,u,t]);const m=s.scopeKey===t?s:(0,i.A)((0,i.A)({},vt()),{},{scopeKey:t,status:t?"loading":"ready"});return{updates:m.updates,status:m.status,error:m.error,ready:"ready"===m.status,retry:h}}var Ft=n(71917);function wt(e){const t=String(e||"").trim().toUpperCase(),n=oe.BK[t]||t;return/^[A-Z0-9^.=-]{1,16}$/.test(n)?n:""}function Ct(e){const t=[...new Set((e||[]).map(wt).filter(Boolean))];const n=new Set(t),a=[],r={},o={};return t.forEach((e=>{(0,Ft.wO)(e,8).forEach((t=>{const i=wt(null===t||void 0===t?void 0:t.ticker);i&&!n.has(i)&&(a.includes(i)||a.push(i),null!==t&&void 0!==t&&t.displayName&&!r[i]&&(r[i]=t.displayName),o[i]=[...o[i]||[],{ticker:e,relationship:t.relationship}])}))})),{my:t,related:a,all:[...t,...a],companyNames:r,relatedAttribution:o}}var kt=n(70579);const At=["active","children","darkMode"],Et=["active","children","darkMode"],jt=12,Nt=6,St=50,Bt="calypso_earnings_intelligence_view_v1",Mt={scope:"all",mode:"top",hiddenTickers:[]},Tt=45,It=45;function _t(){let{scope:e="all",selectedDate:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t?null:"watchlist"===e?Tt:It}function qt(e){return[...new Set((e||[]).map(Be).filter((e=>/^[A-Z0-9^.=-]{1,16}$/.test(e))))]}function Ut(){try{const e=JSON.parse(window.localStorage.getItem(Bt))||{};return/^(all|watchlist|related):(top|latest)$/.test("".concat(e.scope,":").concat(e.mode))?{scope:e.scope,mode:e.mode,hiddenTickers:qt(e.hiddenTickers).slice(0,100)}:Mt}catch(e){return Mt}}function Ot(e){if(null===e||void 0===e||""===e)return null;const t=Number(e);return Number.isFinite(t)?t:null}function Pt(e){let{label:t,value:n,description:a,darkMode:r}=e;const o=function(e){const t=Ot(e);return null===t?null:"".concat(t>0?"+":"").concat(t.toFixed(1),"%")}(n);if(!o)return null;const i=Number(n),s=i>0?r?"bg-emerald-400/10 text-emerald-300":"bg-emerald-50 text-emerald-700":i<0?r?"bg-rose-400/10 text-rose-300":"bg-rose-50 text-rose-700":r?"bg-white/[0.05] text-white/45":"bg-gray-100 text-gray-600";return(0,kt.jsxs)("span",{"aria-label":"".concat(a,": ").concat(o),title:a,className:"rounded px-1.5 py-0.5 text-[9px] font-semibold tabular-nums ".concat(s),children:[t," ",o]})}function Rt(e){if("undefined"!==typeof window&&"function"===typeof window.requestIdleCallback){const t=window.requestIdleCallback(e,{timeout:600});return()=>{var e,n;return null===(e=(n=window).cancelIdleCallback)||void 0===e?void 0:e.call(n,t)}}const t=setTimeout(e,0);return()=>clearTimeout(t)}function Kt(e,t,n){const a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const n=new Map;for(const i of Object.entries(e||{})){const e=Se(i[0]);e&&(n.has(e)||n.set(e,[]),n.get(e).push(i))}const a=[...n.values()],r=Math.max(1,Number(t)||1),o=[];for(let i=0;i<a.length;i+=r){const e={};for(const t of a.slice(i,i+r))for(const[n,a]of t)e[n]=a;o.push(e)}return o}(e,Nt),r=[];let o=0,i=!1,s=()=>{};const l=()=>{i||(o>=a.length?n(r):(r.push(t(a[o])),o+=1,o<a.length?s=Rt(l):n(r)))};return s=Rt(l),()=>{i=!0,s()}}function Lt(e,t,n){const a=new Set((arguments.length>
23&&void 0!==arguments[3]?arguments[3]:[]).map(Be).filter(Boolean));if("all"===t&&!a.size)return e;const r=new Set((n||[]).map(Be).filter(Boolean));return"all"===t||r.size?Object.fromEntries(Object.entries(e||{}).filter((e=>{let[n]=e;const o=Be(n);return!a.has(o)&&("all"===t||r.has(o))}))):{}}function zt(e){let{active:t,children:n,darkMode:a}=e,r=(0,o.A)(e,At);return(0,kt.jsx)("button",(0,i.A)((0,i.A)({type:"button",role:"tab","aria-selected":t,tabIndex:t?0:-1,className:"rounded-md px-3 py-1.5 text-[11px] font-semibold transition-colors ".concat(t?a?"bg-white/[0.10] text-white shadow-sm":"bg-white text-gray-900 shadow-sm":a?"text-white/35 hover:bg-white/[0.04] hover:text-white/65":"text-gray-500 hover:bg-white/70 hover:text-gray-800")},r),{},{children:n}))}function Wt(e){let{active:t,children:n,darkMode:a}=e,r=(0,o.A)(e,Et);return(0,kt.jsx)("button",(0,i.A)((0,i.A)({type:"button","aria-pressed":t,className:"flex-none rounded-full border px-3 py-1.5 text-[10px] font-semibold transition-colors ".concat(t?a?"border-indigo-400/40 bg-indigo-400/15 text-indigo-200":"border-indigo-200 bg-indigo-50 text-indigo-700":a?"border-white/[0.07] bg-white/[0.025] text-white/40 hover:border-white/[0.14] hover:text-white/70":"border-gray-200 bg-white text-gray-500 hover:border-gray-300 hover:text-gray-800")},r),{},{children:n}))}function $t(e){let{item:t,darkMode:n}=e;return(0,kt.jsxs)(s.N_,{to:"/company/".concat(encodeURIComponent(t.ticker)),"aria-label":"Open ".concat(t.ticker," company page"),className:"group/company flex min-w-0 items-center gap-2.5 rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 sm:w-44 sm:flex-col sm:items-start ".concat(n?"text-white":"text-gray-900"),children:[(0,kt.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,kt.jsx)("span",{className:"flex h-9 w-9 flex-none items-center justify-center rounded-xl border ".concat(n?"border-white/[0.08] bg-white/[0.04]":"border-gray-200 bg-white shadow-sm"),children:(0,kt.jsx)(F.A,{ticker:t.ticker,darkMode:n,imgClassName:"h-5 w-5 object-contain",fallbackClassName:"text-[10px] font-bold ".concat(n?"text-white/55":"text-gray-500")})}),(0,kt.jsxs)("span",{className:"min-w-0",children:[(0,kt.jsxs)("span",{className:"flex items-center gap-1 text-xs font-bold",children:[t.ticker,(0,kt.jsx)(c.A,{className:"h-3 w-3 opacity-0 transition-opacity group-hover/company:opacity-60"})]}),(0,kt.jsx)("span",{className:"block max-w-[150px] truncate text-[10px] ".concat(n?"text-white/35":"text-gray-500"),children:t.companyName})]})]}),(0,kt.jsxs)("span",{className:"hidden items-center gap-1 text-[10px] sm:flex ".concat(n?"text-white/30":"text-gray-400"),children:[(0,kt.jsx)(u.A,{className:"h-3 w-3"}),t.dateLabel]})]})}function Ht(e){let{item:t,sixMonthReturn:n,rank:a,mode:r,darkMode:o,expanded:i,onToggle:s,transcriptLoader:l,feedbackRecord:c,feedbackEditorOpen:u,feedbackDraft:f,feedbackStatus:b,feedbackReady:v,whyExpanded:y,onVote:F,onFeedbackDraftChange:C,onSaveFeedbackReason:k,onCloseFeedbackEditor:A,onToggleWhy:E,onHideTicker:j,relatedAttribution:N}=e;const S=t.quotes[0],B=t.quotes.length>1||S.quote.length>260,M=(N||[]).map((e=>"".concat(e.ticker," \xb7 ").concat(e.relationship))).join("; "),T="cleared"===(null===c||void 0===c?void 0:c.vote)?"":(null===c||void 0===c?void 0:c.vote)||"",I="".concat(t.ticker," debate ").concat(a,": ").concat(t.debateTitle),_="earnings-feedback-why-".concat(K(t)),q=e=>"inline-flex h-11 w-11 items-center justify-center rounded-md border transition-colors disabled:cursor-wait disabled:opacity-40 sm:h-8 sm:w-8 ".concat(T===e?"up"===e?o?"border-emerald-300/40 bg-emerald-300/15 text-emerald-200":"border-emerald-200 bg-emerald-50 text-emerald-700":o?"border-rose-300/40 bg-rose-300/15 text-rose-200":"border-rose-200 bg-rose-50 text-rose-700":o?"border-white/[0.08] text-white/35 hover:bg-white/[0.05] hover:text-white/70":"border-gray-200 text-gray-400 hover:bg-gray-50 hover:text-gray-700");return(0,kt.jsxs)("article",{className:"px-4 py-4 sm:flex sm:gap-5 sm:px-5 ".concat(o?"border-white/[0.055]":"border-gray-100"),"data-feed-item":t.id,children:[(0,kt.jsx)($t,{item:t,darkMode:o}),(0,kt.jsxs)("div",{className:"mt-3 min-w-0 flex-1 sm:mt-0",children:[(0,kt.jsxs)("div",{className:"mb-2 flex items-start justify-between gap-3",children:[(0,kt.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:["top"===r&&(0,kt.jsxs)("span",{className:"rounded px-1.5 py-0.5 text-[9px] font-bold tabular-nums ".concat(o?"bg-amber-400/10 text-amber-300":"bg-amber-50 text-amber-700"),children:["#",a]}),(0,kt.jsx)("span",{className:"rounded px-1.5 py-0.5 text-[9px] font-semibold ".concat("verified"===t.reliabilityTier?o?"bg-emerald-400/10 text-emerald-300":"bg-emerald-50 text-emerald-700":o?"bg-white/[0.05] text-white/35":"bg-gray-100 text-gray-500"),children:"verified"===t.reliabilityTier?"Source verified":"Transcript evidence"}),(0,kt.jsx)(Pt,{label:"6M",value:n,description:"".concat(t.ticker," six-month stock return"),darkMode:o}),(0,kt.jsx)(Pt,{label:"ER 1D",value:t.priceChange,description:"".concat(t.ticker," one-day earnings reaction"),darkMode:o}),(0,kt.jsxs)("span",{className:"flex items-center gap-1 text-[10px] sm:hidden ".concat(o?"text-white/30":"text-gray-400"),children:[(0,kt.jsx)(d.A,{className:"h-3 w-3"}),t.dateLabel]})]}),(0,kt.jsxs)("div",{className:"flex flex-none items-center gap-1",role:"group","aria-label":"Rate ".concat(I
2),children:[(0,kt.jsx)("button",{type:"button","aria-label":"Good or interesting \u2014 more like this for ".concat(I),"aria-pressed":"up"===T,disabled:!v,title:"Good or interesting \u2014 more like this",onClick:()=>F("up"),className:q("up"),children:(0,kt.jsx)(h.A,{className:"h-3.5 w-3.5"})}),(0,kt.jsx)("button",{type:"button","aria-label":"Bad or not interesting \u2014 less like this for ".concat(I),"aria-pressed":"down"===T,disabled:!v,title:"Bad or not interesting \u2014 less like this",onClick:()=>F("down"),className:q("down"),children:(0,kt.jsx)(m.A,{className:"h-3.5 w-3.5"})})]})]}),(0,kt.jsx)("h3",{className:"text-sm font-semibold leading-snug sm:text-[15px] ".concat(o?"text-white/90":"text-gray-900"),children:t.debateTitle}),M&&(0,kt.jsxs)("p",{className:"mt-1.5 text-[10px] leading-relaxed ".concat(o?"text-white/50":"text-gray-500"),children:["Related to ",M]}),(0,kt.jsxs)("blockquote",{className:"mt-2.5 border-l-2 pl-3 text-[12px] leading-relaxed sm:text-[13px] ".concat(i?"":"line-clamp-3"," ").concat(o?"border-indigo-400/40 text-white/60":"border-indigo-200 text-gray-600"),children:["\u201c",S.quote,"\u201d",(0,kt.jsx)("footer",{className:"mt-1 text-[10px] font-semibold not-italic ".concat(o?"text-white/35":"text-gray-500"),children:S.speaker})]}),(0,kt.jsx)(w.Ay,{ticker:t.ticker,lookupTickers:t.transcriptLookupTickers,reportDate:t.dateKey,transcriptRevision:t.transcriptRevision,quote:S.quote,darkMode:o,fetchTranscript:l,label:"".concat(t.ticker," quote 1")}),(0,kt.jsxs)("button",{type:"button","aria-expanded":y,"aria-controls":_,"aria-label":"Why this matters for ".concat(I),onClick:E,className:"mt-2 inline-flex items-center gap-1 text-[10px] font-semibold transition-colors ".concat(o?"text-amber-200/65 hover:text-amber-100":"text-amber-700 hover:text-amber-900"),children:[(0,kt.jsx)(g,{className:"h-3 w-3"}),"Why this matters"]}),y&&(0,kt.jsx)("p",{id:_,className:"mt-1.5 rounded-lg border px-3 py-2 text-[11px] leading-relaxed ".concat(o?"border-amber-300/10 bg-amber-300/[0.04] text-white/55":"border-amber-100 bg-amber-50/60 text-gray-600"),children:t.rankReason||"Source-backed evidence tied to an active debate."}),i&&t.quotes.slice(1).map(((e,n)=>(0,kt.jsxs)("div",{children:[(0,kt.jsxs)("blockquote",{className:"mt-3 border-l-2 pl-3 text-[12px] leading-relaxed sm:text-[13px] ".concat(o?"border-white/[0.12] text-white/55":"border-gray-200 text-gray-600"),children:["\u201c",e.quote,"\u201d",(0,kt.jsx)("footer",{className:"mt-1 text-[10px] font-semibold not-italic ".concat(o?"text-white/35":"text-gray-500"),children:e.speaker})]}),(0,kt.jsx)(w.Ay,{ticker:t.ticker,lookupTickers:t.transcriptLookupTickers,reportDate:t.dateKey,transcriptRevision:t.transcriptRevision,quote:e.quote,darkMode:o,fetchTranscript:l,label:"".concat(t.ticker," quote ").concat(n+2)})]},"".concat(t.id,":quote:").concat(n+1)))),B&&(0,kt.jsxs)("button",{type:"button","aria-expanded":i,onClick:s,className:"mt-2.5 inline-flex items-center gap-1 text-[10px] font-semibold transition-colors ".concat(o?"text-indigo-300/75 hover:text-indigo-200":"text-indigo-600 hover:text-indigo-800"),children:[i?(0,kt.jsx)(p.A,{className:"h-3 w-3"}):(0,kt.jsx)(x.A,{className:"h-3 w-3"}),i?"Show less":t.quotes.length>1?"Read ".concat(t.quotes.length-1," more supporting ").concat(2===t.quotes.length?"quote":"quotes"):"Read full quote"]}),u&&T&&(0,kt.jsxs)("div",{role:"group","aria-label":"Optional feedback reason for ".concat(I),className:"mt-3 rounded-xl border p-3 ".concat(o?"border-white/[0.08] bg-white/[0.025]":"border-gray-200 bg-gray-50/70"),children:[(0,kt.jsxs)("label",{htmlFor:"earnings-feedback-reason-".concat(K(t)),className:"flex items-center gap-1.5 text-[10px] font-semibold ".concat(o?"text-white/55":"text-gray-700"),children:[(0,kt.jsx)(D.A,{className:"h-3 w-3"}),"Why wasn\u2019t this useful?"]}),(0,kt.jsx)("textarea",{id:"earnings-feedback-reason-".concat(K(t)),"aria-label":"Why was this ".concat("up"===T?"useful":"not useful"," for ").concat(I,"?"),"data-private":!0,value:f,maxLength:1e3,rows:2,onChange:e=>C(e.target.value),placeholder:"Too generic, repetitive, or not decision-useful\u2026",className:"ph-no-capture mt-2 w-full resize-y rounded-lg border px-2.5 py-2 text-[11px] outline-none focus:ring-2 focus:ring-indigo-500 ".concat(o?"border-white/[0.09] bg-black/20 text-white/75 placeholder:text-white/25":"border-gray-200 bg-white text-gray-800 placeholder:text-gray-400")}),(0,kt.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-2",children:[(0,kt.jsx)("span",{"aria-live":"polite",className:"text-[9px] ".concat(o?"text-white/30":"text-gray-400"),children:b||"Your rating is saved. Add context if useful."}),(0,kt.jsxs)("div",{className:"flex flex-none items-center gap-1.5",children:["down"===T&&(0,kt.jsxs)("button",{type:"button",onClick:j,"aria-label":"Hide ".concat(t.ticker," updates"),className:"min-h-11 rounded px-2 py-1 text-[10px] font-semibold ".concat(o?"text-rose-200 hover:bg-rose-400/10":"text-rose-700 hover:bg-rose-50"),children:["Hide ",t.ticker," updates"]}),(0,kt.jsx)("button",{type:"button",onClick:A,className:"rounded px-2 py-1 text-[10px] font-semibold ".concat(o?"text-white/45 hover:text-white/70":"text-gray-500 hover:text-gray-800"),children:"Done"}),(0,kt.jsx)("button",{type:"button",onClick:k,className:"rounded px-2 py-1 text-[10px] font-semibold ".concat(o?"bg-indigo-400/15 text-indigo-200":"bg-indigo-600 text-white"),children:"Save reason"})]})]})]}),!u&&b&&(0,kt.jsx)("p",{"aria-live":"polite",className:"mt-2 text-[9px] ".concat(o?"text-white/35":"text-gray-500"),children:b})]})]})}function Gt(e){var t;let{jsonData:n,universeTickers:r=[],portfolioTickers:o=[],darkMode:s=!1,embedded:c=!1,transcriptLoader:u,feedbackUserId:d="",feedbackStorage:h,surface:m="live",watchlistEarningsData:g=null}=e;const[p]=(0,a.useState)(Ut),[D,F]=(0,a.useState)(p.mode),[w,C]=(0,a.useState)(p.scope),[k,A]=(0,a.useState)(p.hiddenTickers),[E,j]=(0,a.useState)(null),[N,S]=(0,a.useState)(jt),[B,M]=(0,a.useState)((()=>new Set)),[T,I]=(0,a.useState)((()=>new Set)),[_,q]=(0,a.useState)((()=>new Set)),[U,H]=(0,a.useState)({}),[Y,Q]=(0,a.useState)({}),[J,X]=(0,a.useState)({}),[ee,te]=(0,a.useState)((()=>new Date)),re=yt(g?[]:o),oe=(0,a.useMemo)((()=>bt(n,re.updates)),[n,re.updates]),ie=g||re,se=g?g.jsonData:oe,le=Boolean(g)&&!1===g.corpusAvailable,ce=String((null===(t=v.auth.currentUser)||void 0===t?void 0:t.uid)||"").trim(),[ue,de]=(0,a.useState)((()=>({ready:Boolean(ce),userId:ce}))),[he,me]=(0,a.useState)((()=>
2Boolean(d&&!ce))),ge=d||ue.userId||"guest",[pe,xe]=(0,a.useState)((()=>G({userId:d||ce||"guest",storage:h}))),[De,fe]=(0,a.useState)({}),be=(0,a.useRef)(new Set),ve=(0,a.useRef)(ce),ye=(0,a.useRef)(null);ye.current||(ye.current=function(){var e;let{writeItem:t,getCurrentUserId:n,onStatus:a=(()=>{}),retryDelaysMs:r=[1e3,3e3,1e4,3e4,6e4],setTimer:o=((e,t)=>setTimeout(e,t)),clearTimer:i=(e=>clearTimeout(e)),onlineTarget:s=("undefined"!==typeof window?window:null)}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("function"!==typeof t)throw new TypeError("writeItem must be a function");const l=new Map,c=new Set,u=new Map;let d=0,h=!1;const m=(e,t)=>{try{a({userId:e.userId,itemId:e.itemId,record:e.record,state:t})}catch(n){}},g=e=>{u.has(e)&&(i(u.get(e)),u.delete(e))},p=async e=>{if(h||c.has(e))return;const a=l.get(e);if(a&&String((null===n||void 0===n?void 0:n())||"").trim()===a.userId){g(e),c.add(e),m(a,"saving");try{if(!1===await t(a.userId,a.itemId,a.record))throw new Error("Feedback write paused because the signed-in account changed");const n=l.get(e);(null===n||void 0===n?void 0:n.revision)===a.revision&&(l.delete(e),m(a,"saved"))}catch(s){const t=l.get(e);if(t){var i;t.attempts+=1,m(t,"retrying");const n=null!==(i=r[Math.min(t.attempts-1,Math.max(0,r.length-1))])&&void 0!==i?i:6e4;u.set(e,o((()=>{u.delete(e),p(e)}),Math.max(0,Number(n)||0)))}}finally{c.delete(e);const t=l.get(e);t&&t.revision!==a.revision&&!u.has(e)&&p(e)}}},x=()=>{if(!h)for(const e of l.keys())g(e),p(e)};return null===s||void 0===s||null===(e=s.addEventListener)||void 0===e||e.call(s,"online",x),{enqueue(e,t,n){const a=String(e||"").trim(),r=String(t||"").trim();if(!a||!r||!n)return!1;const o=((e,t)=>"".concat(e,"\n").concat(t))(a,r),i=l.get(o),s={userId:a,itemId:r,record:n,revision:++d,attempts:(null===i||void 0===i?void 0:i.attempts)||0};return l.set(o,s),g(o),m(s,"saving"),p(o),!0},retryAll:x,pendingCount:()=>l.size,dispose(){var e;h=!0;for(const t of u.keys())g(t);l.clear(),null===s||void 0===s||null===(e=s.removeEventListener)||void 0===e||e.call(s,"online",x)}}}({writeItem:ae,getCurrentUserId:()=>ve.current,onStatus:e=>{let{userId:t,itemId:n,state:a}=e;ve.current===t&&X((e=>(0,i.A)((0,i.A)({},e),{},{[n]:"saved"===a?"Saved to your account.":"retrying"===a?"Saved in this browser; retrying account sync.":"Saving to your account\u2026"})))}}));const Fe=(0,a.useMemo)((()=>Ct(o)),[o]);(0,a.useEffect)((()=>{!function(e){try{window.localStorage.setItem(Bt,JSON.stringify(e))}catch(t){}}({scope:w,mode:D,hiddenTickers:k})}),[k,D,w]);const we="watchlist"===w?Fe.my:"related"===w?Fe.related:r,Ce=we.join(","),ke=k.join(","),Ae=(0,a.useMemo)((()=>Ce?Ce.split(","):[]),[Ce]),Ee=ee.toISOString().slice(0,10),je="".concat(Ee,":").concat(w,":").concat(Ce,":").concat(ke),Ne="".concat(je,":").concat(D,":").concat(E||"recent"),[Se,Me]=(0,a.useState)({data:null,key:"",dates:[]}),[Te,Ie]=(0,a.useState)({data:null,key:"",items:[]}),_e=Se.data===se&&Se.key===je,qe=Te.data===se&&Te.key===Ne,Ue=_e?Se.dates:[],Oe=(0,a.useMemo)((()=>{const e=e=>Object.fromEntries(Object.entries(e||{}).filter((e=>{let[t]=e;return!_.has(t)}))),t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{globalFeedback:n={},mode:a="top"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Array.isArray(e)?e:[];if("top"!==a)return r;const o=z(t),i=z(n),s=Object.values(o).filter((e=>"cleared"!==e.vote)),l=Object.values(i).filter((e=>"cleared"!==e.vote));return s.length||l.length?r.flatMap(((e,t)=>{const n=R(e),a=n.map((e=>o[e])).find(Boolean)||null,c=n.map((e=>i[e])).find(Boolean)||null,u="cleared"===(null===a||void 0===a?void 0:a.vote)?null:a,d="cleared"===(null===c||void 0===c?void 0:c.vote)?null:c;if("down"===(null===u||void 0===u?void 0:u.vote)||!u&&"down"===(null===d||void 0===d?void 0:d.vote))return[];const h=V(s,e)+1.25*V(l,e)+("up"===(null===u||void 0===u?void 0:u.vote)?24:"down"===(null===u||void 0===u?void 0:u.vote)?-48:0)+("up"===(null===d||void 0===d?void 0:d.vote)?28:"down"===(null===d||void 0===d?void 0:d.vote)?-56:0);return[{item:e,index:t,score:4*(r.length-t)+h}]})).sort(((e,t)=>t.score-e.score||e.index-t.index)).map((e=>e.item)):r}(qe?Te.items:[],e(he?pe:{}),{globalFeedback:e(De),mode:D}),n="watchlist"===w?function(e,t){const n=Array.isArray(e)?e:[],a=new Set(qt(t));if(!n.length||!a.size)return n;const r=[],o=[],i=new Set;for(const s of n){const e=Be(null===s||void 0===s?void 0:s.ticker);a.has(e)&&!i.has(e)?(i.add(e),r.push(s)):o.push(s)}return[...r,...o]}(t,Ae):t;return function(e,t){const n=Array.isArray(e)?e:[],a=Object.entries(t||{}).map((e=>
2{let[t,a]=e;return{itemId:t,index:Math.max(0,Number(a)||0),item:n.find((e=>K(e)===t))}})).filter((e=>e.item)).sort(((e,t)=>e.index-t.index||e.itemId.localeCompare(t.itemId)));if(!a.length)return n;const r=new Set(a.map((e=>e.itemId))),o=n.filter((e=>!r.has(K(e))));for(const i of a)o.splice(Math.min(i.index,o.length),0,i.item);return o}(n,U)}),[pe,_,U,he,qe,Te.items,De,Ae,D,w]),Pe=(0,a.useMemo)((()=>"watchlist"===w&&!E&&qe&&ie.ready&&!le?function(e,t){const n=new Set((t||[]).map((e=>Be(null===e||void 0===e?void 0:e.ticker))).filter(Boolean));return qt(e).filter((e=>!n.has(e)))}(Ae,Te.items):[]),[le,qe,Te.items,Ae,w,ie.ready,E]),Re=function(e){const t=(0,a.useMemo)((()=>[...new Set((e||[]).map((e=>e.ticker)).filter(Boolean))]),[e]),n=t.join(","),[r,o]=(0,a.useState)({});return(0,a.useEffect)((()=>{if(!t.length)return void o({});let e=!1;return(async()=>{const n={};try{for(let e=0;e<t.length;e+=St){const a=t.slice(e,e+St),r=await(0,y.Iu)("/stock-price-change/".concat(a.join(",")));for(const e of Array.isArray(r)?r:[]){const t=Be(null===e||void 0===e?void 0:e.symbol),a=Ot(null===e||void 0===e?void 0:e["6M"]);t&&null!==a&&(n[t]=a)}}}catch(a){}e||o(n)})(),()=>{e=!0}}),[n]),r}(Oe.slice(0,N)),Ke=Boolean(se)&&!qe,Le="idle"===ie.status||"loading"===ie.status,ze=Ke||!se&&(!le||Le);(0,a.useEffect)((()=>{if("function"!==typeof(null===v.auth||void 0===v.auth?void 0:v.auth.onAuthStateChanged)){var e;const t=String((null===(e=v.auth.currentUser)||void 0===e?void 0:e.uid)||"").trim();return ve.current=t,de({ready:!0,userId:t}),void me(!t)}return v.auth.onAuthStateChanged((e=>{var t;const n=String((null===e||void 0===e?void 0:e.uid)||"").trim();ve.current!==n&&(!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";ne.clear(e)}(),xe({}),fe({}),me(!1),Q({}),q(new Set),H({}),X({})),ve.current=n,null===(t=ye.current)||void 0===t||t.retryAll(),de({ready:!0,userId:n})}))}),[]),(0,a.useEffect)((()=>()=>{var e;return null===(e=ye.current)||void 0===e?void 0:e.dispose()}),[]),(0,a.useEffect)((()=>{if(!ue.ready)return xe({}),fe({}),void me(!1);const e=G({userId:ge,storage:h});if(xe(e),!ue.userId)return fe({}),void me(!0);let t=!1;const n=ue.userId;return me(!1),async function(e){return ne.load(e)}(n).then((async e=>{let{personal:a={},global:r={}}=e;if(t||ve.current!==n)return;const o=G({userId:ge,storage:h}),i=function(e,t){const n=z(e),a=z(t);return Object.fromEntries(Object.entries(n).filter((e=>{let[t,n]=e;return!a[t]||n.updatedAt>a[t].updatedAt})))}(o,a),s=W(a,o);if(xe(s),fe(r),Z(s,{userId:ge,storage:h}),Object.keys(i).length&&!be.current.has(n))try{if(!await async function(e,t){return ne.sync(e,t)}(n,i))return;t||ve.current!==n||be.current.add(n)}catch(l){}t||ve.current!==n||me(!0)})).catch((()=>{t||ve.current!==n||(xe(e),fe({}),me(!0))})),()=>{t=!0}}),[ue.ready,ue.userId,h,ge]),(0,a.useEffect)((()=>{const e=new Date,t=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+1,0,0,1),n=setTimeout((()=>te(new Date)),Math.max(1,t-e.getTime()));return()=>clearTimeout(n)}),[ee]),(0,a.useEffect)((()=>{if(!se)return void Me({data:null,key:je,dates:[]});let e=!0;const t=Kt(Lt(se,w,we,k),(e=>ct(e,{scope:w,scopeTickers:we,now:ee,lookbackDays:null})),(t=>{const n=function(e){const t=new Map;for(const n of e.flat()){const e=t.get(n.dateKey);t.set(n.dateKey,(0,i.A)((0,i.A)({},n),{},{count:Number((null===e||void 0===e?void 0:e.count)||0)+Number(n.count||0)}))}return[...t.values()].sort(((e,t)=>t.dateKey.localeCompare(e.dateKey)))}(t);e&&Me({data:se,key:je,dates:n})}));return()=>{e=!1,t()}}),[se,k,ee,w,Ce]),(0,a.useEffect)((()=>{if(!se)return void Ie({data:null,key:Ne,items:[]});let e=!0;const t=Kt(Lt(se,w,we,k),(e=>ot(e,{mode:D,scope:w,scopeTickers:we,selectedDate:E,now:ee,lookbackDays:_t({scope:w,selectedDate:E}),preserveSortMetadata:!0})),(t=>{const n=lt(t.flat(),{mode:D,now:ee});e&&Ie({data:se,key:Ne,items:n})}));return()=>{e=!1,t()}}),[se,k,D,ee,w,Ce,E]),(0,a.useEffect)((()=>{S(jt),M(new Set),I(new Set),q(new Set),H({})}),[D,w,E]),(0,a.useEffect)((()=>{E&&_e&&!Se.dates.some((e=>e.dateKey===E))&&j(null)}),[Se.dates,_e,E]);const We=Ue.slice(0,6),$e=Ue.slice(6),He=Oe.slice(0,N),Ge=$e.some((e=>e.dateKey===E))?E:"",Ze=e=>F("top"===e?"top":"latest"),Ve=function(e,t){var n;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const r=K(e);if(!r||!["up","down","cleared"].includes(t))return null;const o=(null===(n=$(pe,e))||void 0===n?void 0:n.vote)||"",s=function(e,t){let{c
2omment:n="",now:a=Date.now()}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L({vote:t,ticker:null===e||void 0===e?void 0:e.ticker,dateKey:null===e||void 0===e?void 0:e.dateKey,signalKey:P(e),reliabilityTier:null===e||void 0===e?void 0:e.reliabilityTier,topicKeys:O(e),comment:n,updatedAt:a})}(e,t,{comment:a});if(!s)return null;const c=W(pe,{[r]:s});xe(c),Z(c,{userId:ge,storage:h});const u=ue.userId?"pending account sync":"in this browser";X((e=>(0,i.A)((0,i.A)({},e),{},{[r]:"".concat(a?"Reason":"Rating"," saved ").concat(u,".")}))),ue.userId&&ye.current.enqueue(ue.userId,r,s);try{l.Ay.capture("earnings_intelligence_feedback",{item_id:r,action:t,previous_action:o||"none",ticker:e.ticker,date_key:e.dateKey,signal_key:P(e),reliability:e.reliabilityTier,has_reason:Boolean(a),surface:"company"===m?"company":"live"})}catch(d){}return s};return(0,kt.jsxs)("section",{"aria-label":"Earnings Intelligence",className:c?"overflow-hidden":"overflow-hidden rounded-2xl border ".concat(s?"border-white/[0.06] bg-white/[0.025]":"border-gray-200 bg-white shadow-sm"),children:[(0,kt.jsxs)("header",{className:"".concat(c?"border-b pb-3":"border-b px-4 py-4 sm:px-5"," ").concat(s?"border-white/[0.06]":"border-gray-100"),children:[(0,kt.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center ".concat(c?"lg:justify-end":"lg:justify-between"),children:[!c&&(0,kt.jsx)("div",{className:"min-w-0",children:(0,kt.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,kt.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-xl border ".concat(s?"border-red-400/15 bg-red-400/5 text-red-300":"border-red-100 bg-red-50 text-red-500"),children:(0,kt.jsx)(f.A,{className:"h-4 w-4"})}),(0,kt.jsxs)("div",{children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)("h2",{className:"text-sm font-bold tracking-tight ".concat(s?"text-white/90":"text-gray-900"),children:"Earnings Intelligence"}),(0,kt.jsxs)("span",{className:"flex items-center gap-1 text-[9px] font-bold uppercase tracking-widest text-red-500",children:[(0,kt.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-red-500"}),"Live feed"]})]}),(0,kt.jsx)("p",{className:"mt-0.5 text-[11px] ".concat(s?"text-white/35":"text-gray-500"),children:"What is new and consequential across the latest earnings calls\u2014ranked from cached transcript evidence."})]})]})}),(0,kt.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,kt.jsxs)("div",{role:"group","aria-label":"Earnings coverage",className:"grid grid-cols-3 rounded-lg border p-0.5 ".concat(s?"border-white/[0.06] bg-white/[0.025]":"border-gray-200 bg-gray-100"),children:[(0,kt.jsx)("button",{type:"button",onClick:()=>C("all"),"aria-pressed":"all"===w,className:"rounded-md px-2.5 py-1.5 text-[10px] font-semibold ".concat("all"===w?s?"bg-white/[0.09] text-white":"bg-white text-gray-900 shadow-sm":s?"text-white/35":"text-gray-500"),children:"All coverage"}),(0,kt.jsx)("button",{type:"button",onClick:()=>C("watchlist"),"aria-pressed":"watchlist"===w,className:"rounded-md px-2.5 py-1.5 text-[10px] font-semibold ".concat("watchlist"===w?s?"bg-white/[0.09] text-white":"bg-white text-gray-900 shadow-sm":s?"text-white/35":"text-gray-500"),children:"My companies"}),(0,kt.jsx)("button",{type:"button",onClick:()=>C("related"),"aria-pressed":"related"===w,className:"rounded-md px-2.5 py-1.5 text-[10px] font-semibold ".concat("related"===w?s?"bg-white/[0.09] text-white":"bg-white text-gray-900 shadow-sm":s?"text-white/35":"text-gray-500"),children:"Related companies"})]}),(0,kt.jsxs)("div",{role:"tablist","aria-label":"Earnings feed ranking",onKeyDown:e=>{var t;if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;e.preventDefault();const n="Home"===e.key||"ArrowLeft"===e.key?"latest":"top";Ze(n),null===(t=document.getElementById("earnings-feed-tab-".concat(n)))||void 0===t||t.focus()},className:"grid grid-cols-2 rounded-lg border p-0.5 ".concat(s?"border-white/[0.06] bg-white/[0.025]":"border-gray-200 bg-gray-100"),children:[(0,kt.jsx)(zt,{id:"earnings-feed-tab-latest","aria-controls":"earnings-feed-panel",active:"latest"===D,onClick:()=>Ze("latest"),darkMode:s,children:"Latest"}),(0,kt.jsx)(zt,{id:"earnings-feed-tab-top","aria-controls":"earnings-feed-panel",active:"top"===D,onClick:()=>Ze("top"),darkMode:s,children:"Top"})]})]})]}),k.length>0&&(0,kt.jsxs)("div",{"aria-live":"polite",role:"group","aria-label":"Hidden companies",className:"mt-2 flex flex-wrap items-center gap-1.5 text-[10px] ".concat(s?"text-white/45":"text-gray-500"),children:["Hidden (",k.length,"):",k.map((e=>(0,kt.jsxs)("button",{type:"button",onClick:()=>(e=>A((t=>t.filter((t=>t!==e)))))(e),"aria-label":"Show ".concat(e," updates"),className:"min-h-11 rounded border px-2 font-semibold ".concat(s?"border-white/[0.08] text-white/65 hover:bg-white/[0.05]":"border-gray-200 text-gray-600 hover:bg-gray-50"),children:["Show ",e]},e)))]}),(0,kt.jsxs)("div",{className:"mt-3 flex items-center gap-2 overflow-x-auto pb-0.5","data-feed-date-control
2s":!0,children:[(0,kt.jsx)(Wt,{active:!E,onClick:()=>j(null),darkMode:s,children:"All recent"}),We.map((e=>(0,kt.jsxs)(Wt,{active:E===e.dateKey,onClick:()=>j(e.dateKey),darkMode:s,children:[e.dateLabel,(0,kt.jsx)("span",{className:"ml-1 opacity-50",children:e.count})]},e.dateKey))),$e.length>0&&(0,kt.jsxs)("label",{className:"relative flex-none",children:[(0,kt.jsx)("span",{className:"sr-only",children:"Choose an earlier earnings date"}),(0,kt.jsxs)("select",{"aria-label":"Earlier earnings dates",value:Ge,onChange:e=>j(e.target.value||null),className:"appearance-none rounded-full border py-1.5 pl-3 pr-7 text-[10px] font-semibold outline-none focus:ring-2 focus:ring-indigo-500 ".concat(Ge?s?"border-indigo-400/40 bg-indigo-400/15 text-indigo-200":"border-indigo-200 bg-indigo-50 text-indigo-700":s?"border-white/[0.07] bg-[#171922] text-white/45":"border-gray-200 bg-white text-gray-500"),children:[(0,kt.jsx)("option",{value:"",children:"Earlier\u2026"}),$e.map((e=>(0,kt.jsxs)("option",{value:e.dateKey,children:[e.dateLabel," \xb7 ",e.count]},e.dateKey)))]}),(0,kt.jsx)(x.A,{className:"pointer-events-none absolute right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 opacity-50"})]})]})]}),(0,kt.jsxs)("div",{id:"earnings-feed-panel",role:"tabpanel","aria-labelledby":"earnings-feed-tab-".concat(D),"data-feed-mode":D,children:["watchlist"===w&&!E&&o.length>0&&!ie.ready&&(0,kt.jsxs)("div",{role:"status","aria-live":"polite","aria-label":"Earnings update coverage",className:"flex items-center justify-between gap-3 border-b px-4 py-2 text-[10px] leading-relaxed sm:px-5 ".concat(s?"border-white/[0.055] text-white/40":"border-gray-100 text-gray-500"),children:[(0,kt.jsx)("span",{children:"loading"===ie.status?"Checking recent dashboard earnings updates\u2026":"Coverage check incomplete \u2014 some recent dashboard updates could not be verified."}),"loading"!==ie.status&&(0,kt.jsx)("button",{type:"button",onClick:ie.retry,className:"flex-none font-semibold ".concat(s?"text-indigo-300/75 hover:text-indigo-200":"text-indigo-600 hover:text-indigo-800"),children:"Retry"})]}),Pe.length>0&&(0,kt.jsxs)("div",{role:"status","aria-live":"polite","aria-label":"Earnings update coverage",className:"border-b px-4 py-2 text-[10px] leading-relaxed sm:px-5 ".concat(s?"border-white/[0.055] text-white/40":"border-gray-100 text-gray-500"),children:[(0,kt.jsx)("span",{className:"font-semibold ".concat(s?"text-white/55":"text-gray-700"),children:"Coverage pending:"})," ",Pe.join(", ")," \u2014 no transcript-qualified earnings update in the last ",Tt," days."]}),ze?(0,kt.jsx)("div",{className:"space-y-3 p-5","aria-label":"Loading earnings intelligence",children:[0,1,2].map((e=>(0,kt.jsx)("div",{className:"h-24 animate-pulse rounded-xl ".concat(s?"bg-white/[0.035]":"bg-gray-100")},e)))}):0===He.length&&le?(0,kt.jsxs)("div",{role:"status","aria-label":"Earnings research availability",className:"px-5 py-12 text-center",children:[(0,kt.jsx)(b.A,{className:"mx-auto h-5 w-5 ".concat(s?"text-white/20":"text-gray-300")}),(0,kt.jsx)("p",{className:"mt-2 text-sm font-semibold ".concat(s?"text-white/60":"text-gray-700"),children:"Full earnings research history is temporarily unavailable."}),(0,kt.jsx)("p",{className:"mt-1 text-[11px] ".concat(s?"text-white/55":"text-gray-600"),children:"Live transcript-qualified updates will appear as they arrive; missing companies are not marked uncovered."})]}):0===He.length?(0,kt.jsxs)("div",{className:"px-5 py-12 text-center",children:[(0,kt.jsx)(b.A,{className:"mx-auto h-5 w-5 ".concat(s?"text-white/20":"text-gray-300")}),(0,kt.jsx)("p",{className:"mt-2 text-sm font-semibold ".concat(s?"text-white/60":"text-gray-700"),children:"watchlist"===w&&0===o.length?"Choose companies to build your personal earnings feed.":"No source-qualified debates were published for this view."}),(0,kt.jsx)("p",{className:"mt-1 text-[11px] ".concat(s?"text-white/30":"text-gray-400"),children:"New calls appear automatically after transcript analysis finishes."})]}):(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsx)("div",{className:"divide-y ".concat(s?"divide-white/[0.055]":"divide-gray-100"),children:He.map(((e,t)=>(0,kt.jsx)(Ht,{item:"related"===w?(0,i.A)((0,i.A)({},e),{},{companyName:Fe.companyNames[e.ticker]||e.companyName}
2):e,sixMonthReturn:Re[e.ticker],rank:t+1,mode:D,darkMode:s,expanded:B.has(e.id),onToggle:()=>{return t=e.id,M((e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}));var t},transcriptLoader:u,feedbackRecord:$(pe,e),feedbackEditorOpen:_.has(K(e)),feedbackDraft:Y[K(e)]||"",feedbackStatus:J[K(e)]||"",feedbackReady:he,whyExpanded:T.has(e.id),onVote:t=>((e,t)=>{const n=K(e),a=$(pe,e),r=(null===a||void 0===a?void 0:a.vote)===t?"cleared":t,o=(null===a||void 0===a?void 0:a.vote)===t&&(null===a||void 0===a?void 0:a.comment)||"";Ve(e,r,"cleared"===r?"":o),Q((e=>(0,i.A)((0,i.A)({},e),{},{[n]:"down"===r?o:""}))),q((e=>{const t=new Set(e);return"down"===r?t.add(n):t.delete(n),t})),H((e=>{const t=(0,i.A)({},e);if("down"===r){const e=Oe.findIndex((e=>K(e)===n));t[n]=e>=0?e:0}else delete t[n];return t}))})(e,t),onFeedbackDraftChange:t=>Q((n=>(0,i.A)((0,i.A)({},n),{},{[K(e)]:t.slice(0,1e3)}))),onSaveFeedbackReason:()=>(e=>{const t=K(e),n=$(pe,e);n&&"cleared"!==n.vote&&Ve(e,n.vote,Y[t]||"")})(e),onCloseFeedbackEditor:()=>(e=>{const t=K(e);q((e=>{const n=new Set(e);return n.delete(t),n})),H((e=>{const n=(0,i.A)({},e);return delete n[t],n}))})(e),onToggleWhy:()=>{return t=e.id,I((e=>{const n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}));var t},onHideTicker:()=>{return t=e.ticker,void A((e=>[...new Set([...e,Be(t)])].filter(Boolean)));var t},relatedAttribution:"related"===w?Fe.relatedAttribution[e.ticker]:null},e.id)))}),(0,kt.jsxs)("div",{className:"flex flex-col items-center gap-2 border-t px-4 py-4 ".concat(s?"border-white/[0.06]":"border-gray-100"),children:[(0,kt.jsxs)("p",{"aria-live":"polite",className:"text-[10px] tabular-nums ".concat(s?"text-white/30":"text-gray-400"),children:["Showing ",He.length," of ",Oe.length," debates"]}),N<Oe.length&&(0,kt.jsx)("button",{type:"button",onClick:()=>S((e=>e+jt)),className:"rounded-lg border px-4 py-2 text-[11px] font-semibold transition-colors ".concat(s?"border-white/[0.08] bg-white/[0.03] text-white/55 hover:bg-white/[0.06] hover:text-white/80":"border-gray-200 bg-white text-gray-600 hover:bg-gray-50 hover:text-gray-900"),children:"Load 12 more"})]})]})]})]})}var Zt=n(27899),Vt=n(38326),Yt=n(22024),Qt=n(20920),Jt=n(54106),Xt=n(97508);const en=6,tn=4,nn=10;function an(e){if(null===e||void 0===e||""===e)return null;const t=Number(e);return Number.isFinite(t)?t:null}function rn(e){const t=String(e||"").trim().toUpperCase();return/^[A-Z0-9^.=-]{1,16}$/.test(t)?t:""}function on(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=an(e);if(null===n)return"\u2014";const a=n<0?"-":t&&n>0?"+":"",r=Math.abs(n);return r>=1e9?"".concat(a,"$").concat((r/1e9).toFixed(1),"B"):r>=1e6?"".concat(a,"$").concat((r/1e6).toFixed(1),"M"):r>=1e3?"".concat(a,"$").concat((r/1e3).toFixed(1),"K"):"".concat(a,"$").concat(r.toFixed(0))}function sn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=an(e);if(null===n)return"\u2014";const a=t.signed&&n>0?"+":"";return"".concat(a).concat(n.toFixed(Math.abs(n)>=10?1:2)).concat(t.points?" pp":"%")}function ln(e){const t=e.map(an).filter((e=>null!==e)).sort(((e,t)=>e-t));if(!t.length)return null;const n=Math.floor(t.length/2);return t.length%2?t[n]:(t[n-1]+t[n])/2}function cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"discretionary";const a=new Set((t||[]).map(rn).filter(Boolean)),r=function(e,t){const n=new Map;for(const o of(null===e||void 0===e?void 0:e.history)||[])for(const e of(null===o||void 0===o?void 0:o.managers)||[])if((0,Xt.$L)(e,t))for(const t of(null===e||void 0===e?void 0:e.holdings)||[]){var a,r;const o="".concat(e.cik,":").concat(t.symbol),i=Math.abs(null!==(a=null!==(r=an(t.shareChangePct))&&void 0!==r?r:an(t.weightDeltaPctPoints))&&void 0!==a?a:0);i&&(n.has(o)||n.set(o,[]),n.get(o).push(i))}return n}(e,n),o=new Map(((null===e||void 0===e?void 0:e.companies)||[]).map((e=>[e.symbol,e]))),i=[];for(const u of(null===e||void 0===e?void 0:e.managers)||[])if("failed"!==(null===u||void 0===u?void 0:u.coverageStatus)&&(0,Xt.$L)(u,n))for(const e of(null===u||void 0===u?void 0:u.holdings)||[]){var s,l,c;if(!a.has(e.symbol)||!["new","add","reduce","exit"].includes(e.activityType))continue;const t="new"===e.activityType?100:"exit"===e.activityType?-100:an(e.shareChangePct),n=an(e.weightDeltaPctPoints),d=Math.abs(null!==(s=null!==t&&void 0!==t?t:n)&&void 0!==s?s:0),h=ln(r.get("".concat(u.cik,":").concat(e.symbol))||[]),m=h>0?d/h:null,g=an(e.estimatedNetBoughtSoldUsd),p=d+Math.min(30,4*Math.abs(n||0))+Math.min(20,5*Math.max(0,(m||1)-1))+Math.min(10,Math.max(0,Math.log10(Math.max(1,Math.abs(g||0)))-6));i.push({managerCik:u.cik,managerName:u.name,managerCoverage:u.coverageStatus,symbol:e.symbol,companyName:(null===(l=o.get(e.symbol))||void 0===l?void 0:l.name)||e.issuer||e.symbol,logoUrl:(null===(c=o.get(e.symbol))||void 0===c?void 0:c.logoUrl)||e.logoUrl||"",activityType:e.activityType,positionChangePct:t,fundWeightPct:an(e.fundWeightPct),weightDeltaPctPoints:n,estimatedNetBoughtSoldUsd:g,precedentMultiple:m,score:Number.isFinite(p)?p:0})}return i.sort(un)}function un(e,t){return t.score-e.score||Math.abs(t.estimatedNetBoughtSoldUsd||0)-Math.abs(e.estimatedNetBoughtSoldUsd||0)}function dn(e,t){const n=["new","add"].includes(null===e||void 0===e?void 0:e.activityType);return{positive:n,label:"new"===(null===e||void 0===e?void 0:e.activityType)?"New position":"exit"===(null===e||void 0===e?void 0:e.activityType)?"Exited":n?"Added":"Reduced",tone:n?t?"text-emerald-300":"text-emerald-700":t?"text-rose-300":"text-rose-700"}}function hn(e){let{event:t,darkMode:n}=e;const{positive:a,label:r,tone:o}=dn(t,n);return(0,kt.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-2 px-3 py-2 ".concat(n?"hover:bg-white/[0.025]":"hover:bg-gray-50/80"),children:[(0,kt.jsxs)("div",{className:"min-w-0",children:[(0,kt.jsx)("div",{className:"flex min-w-0 items-center gap-1.5",children:(0,kt.jsx)(s.N_,{to:"/funds/".concat(encodeURIComponent(t.managerCik)),className:"truncate text-[10px] font-black hover:underline ".concat(n?"text-white/75":"text-gray-800"),children:t.managerName})}),(0,kt.jsxs)("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[8px] ".concat(n?"text-white/40":"text-gray-500"),children:[(0,kt.jsx)(s.N_,{to:"/funds/".concat(encodeURIComponent(t.managerCik)),className:"font-bold hover:underline",children:"Open fund"}),(0,kt.jsxs)("span",{children:[sn(t.fundWeightPct)," of reported 13F"]}),t.precedentMultiple>=1.5&&(0,kt.jsxs)("span",{children:[t.precedentMultiple.toFixed(1),"x its recent typical change"]})]})]}),(0,kt.jsxs)("div",{className:"text-right",children:[(0,kt.jsxs)("div",{className:"flex items-center justify-end gap-0.5 text-[10px] font-black ".concat(o),children:[a?(0,kt.jsx)(c.A,{className:"h-3 w-3"}):(0,kt.jsx)(Zt.A,{className:"h-3 w-3"}),r," ",sn(t.positionChangePct,{signed:!0})]}),(0,kt.jsxs)("div",{className:"mt-0.5 text-[8px] tabular-nums ".concat(n?"text-white/35":"text-gray-500"),children:[sn(t.weightDeltaPctPoints,{signed:!0,points:!0})," of fund \xb7 ",on(t.estimatedNetBoughtSoldUsd,!0)," est."]})]})]})}function mn(e){let{group:t,darkMode:n,expanded:a,onToggleExpanded:r,compact:o=!1,companyExpanded:i=!0,onToggleCompany:l}=e;const c=a?t.events:t.events.slice(0,tn),u=t.events.length-c.length,d="dashboard-13f-".concat(encodeURIComponent(t.symbol),"-manager-changes"),h=t.events[0]||null,m=h?dn(h,n):null,g=!o||i;return(0,kt.jsxs)("section",{"aria-label":"".concat(t.symbol," active-manager changes"),children:[(0,kt.jsxs)("header",{className:"flex flex-wrap items-center justify-between gap-2 px-3 py-2.5 ".concat(n?"bg-white/[0.022]":"bg-gray-50/75"),children:[(0,kt.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,kt.jsxs)(s.N_,{to:"/company/".concat(encodeURIComponent(t.symbol)),"aria-label":"Open ".concat(t.symbol," company page"),className:"group/company flex shrink-0 items-center gap-2 rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-indigo-500",children:[(0,kt.jsx)(F.A,{ticker:t.symbol,logoUrl:t.logoUrl,darkMode:n,alt:"",imgClassName:"h-8 w-8 rounded-lg object-contain transition group-hover/company:scale-105",fallbackClassName:"flex h-8 w-8 items-center justify-center rounded-lg text-[8px] font-black ".concat(n?"bg-white/[0.06] text-white/60":"bg-white text-gray-600")}),(0,kt.jsx)("span",{className:"text-xs font-black group-hover/company:underline",children:t.symbol})]}),(0,kt.jsx)("span",{className:"min-w-0 truncate text-[9px] ".concat(n?"text-white/32":"text-gray-500"),children:t.companyName})]}),(0,kt.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-x-3 gap-y-1 text-[8px] tabular-nums ".concat(n?"text-white/42":"text-gray-600"),children:[(0,kt.jsxs)("span",{children:[(0,kt.jsx)("strong",{className:n?"text-white/70":"text-gray-900",children:"Gross activity"})," ",sn(t.grossWeightDeltaPctPoints,{points:!0})]}),(0,kt.jsxs)("span",{children:[(0,kt.jsx)("strong",{className:n?"text-white/70":"text-gray-900",children:"Net"})," ",sn(t.netWeightDeltaPctPoints,{signed:!0,points:!0})]}),(0,kt.jsxs)("span",{children:[t.addOrNewCount," add/new \xb7 ",t.reduceOrExitCount," reduce/exit"]}),o&&(0,kt.jsxs)("button",{type:"button","aria-expanded":i,"aria-controls":d,onClick:()=>l(t.symbol),className:"ml-1 inline-flex items-center gap-1 rounded-md border px-2 py-1 text-[9px] font-black transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 ".concat(n?"border-white/[0.08] text-indigo-300 hover:bg-white/[0.04]":"border-gray-200 bg-white text-indigo-700 hover:bg-indigo-50"),children:[i?(0,kt.jsx)(x.A,{className:"h-3 w-3"}):(0,kt.jsx)(Vt.A,{className:"h-3 w-3"}),i?"Collapse":"Expand",(0,kt.jsxs)("span",{className:"sr-only",children:[" manager changes for ",t.symbol]})]})]})]}),o&&!i&&h&&(0,kt.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-3 gap-y-1 border-t px-3 py-2 text-[9px] ".concat(n?"border-white/[0.05] bg-black/10 text-white/45":"border-gray-100 bg-white text-gray-600"),children:[(0,kt.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,kt.jsx)("span",{className:"shrink-0 text-[8px] font-extrabold uppercase tracking-[0.12em] ".concat(n?"text-white/28":"text-gray-400"),children:"Lead move"}),(0,kt.jsx)(s.N_,{to:"/funds/".concat(encodeURIComponent(h.managerCik)),className:"truncate font-black hover:underline ".concat(n?"text-white/72":"text-gray-900"),children:h.managerName})]}),(0,kt.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-x-2 tabular-nums",children:[(0,kt.jsxs)("span",{className:"font-black ".concat(m.tone),children:[m.label," ",sn(h.positionChangePct,{signed:!0})]}),(0,kt.jsxs)("span",{children:[sn(h.weightDeltaPctPoints,{signed:!0,points:!0})," of fund"]}),(0,kt.jsxs)("span",{children:[on(h.estimatedNetBoughtSoldUsd,!0)," est."]})]})]}),(0,kt.jsx)("div",{id:d,hidden:!g,className:"divide-y ".concat(n?"divide-white/[0.05]":"divide-gray-100"),children:g&&c.map((e=>(0,kt.jsx)(hn,{event:e,darkMode:n},"".concat(e.managerCik,":").concat(e.symbol,":").concat(e.activityType))))}),g&&t.events.length>tn&&(0,kt.jsx)("div",{className:"border-t px-3 py-2 ".concat(n?"border-white/[0.05]":"border-gray-100"),children:(0,kt.jsx)("button",{type:"button","aria-expanded":a,"aria-controls":d,onClick:()=>r(t.symbol),className:"text-[9px] font-black transition hover:underline ".concat(n?"text-indigo-300/75":"text-indigo-700"),children:a?"Show fewer manager changes for ".concat(t.symbol):"Show ".concat(u," more manager changes for ").concat(t.symbol)})})]})}function gn(e){var t,n,r;let{tickers:o,enabled:s=!1,darkMode:l=!1}=e;const[c,u]=(0,a.useState)({loading:!1,data:null,error:""}),[d,h]=(0,a.useState)("discretionary"),[m,g]=(0,a.useState)(!1),[p,x]=(0,a.useState)((()=>new Set)),[D,f]=(0,a.useState)((()=>new Set));(0,a.useEffect)((()=>
2{if(!s||c.data)return;let e=!1;return u((e=>(0,i.A)((0,i.A)({},e),{},{loading:!0,error:""}))),(0,Jt.R8)().then((t=>{e||u({loading:!1,data:t,error:""})})).catch((t=>{e||u({loading:!1,data:null,error:(null===t||void 0===t?void 0:t.message)||"The shared 13F snapshot did not load."})})),()=>{e=!0}}),[s,c.data]);const b=(0,a.useMemo)((()=>[...new Set((o||[]).map(rn).filter(Boolean))]),[o]),v=b.join(","),y=(0,a.useMemo)((()=>cn(c.data,b,d)),[d,b,c.data]),F=(0,a.useMemo)((()=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=new Map;for(const n of e){const e=rn(null===n||void 0===n?void 0:n.symbol);if(!e)continue;t.has(e)||t.set(e,{symbol:e,companyName:n.companyName||e,logoUrl:n.logoUrl||"",events:[],grossWeightDeltaPctPoints:0,netWeightDeltaPctPoints:0,weightDeltaObservationCount:0,addOrNewCount:0,reduceOrExitCount:0});const a=t.get(e),r=an(n.weightDeltaPctPoints);a.events.push(n),null!==r&&(a.grossWeightDeltaPctPoints+=Math.abs(r),a.netWeightDeltaPctPoints+=r,a.weightDeltaObservationCount+=1),["new","add"].includes(n.activityType)&&(a.addOrNewCount+=1),["reduce","exit"].includes(n.activityType)&&(a.reduceOrExitCount+=1)}return[...t.values()].map((e=>(0,i.A)((0,i.A)({},e),{},{events:[...e.events].sort(un),grossWeightDeltaPctPoints:e.weightDeltaObservationCount?e.grossWeightDeltaPctPoints:null,netWeightDeltaPctPoints:e.weightDeltaObservationCount?e.netWeightDeltaPctPoints:null}))).sort(((e,t)=>e.symbol.localeCompare(t.symbol)))}(y)),[y]),w=b.length>nn,C=w||m?F:F.slice(0,en),k=F.length-C.length,A="discretionary"===d;(0,a.useEffect)((()=>{g(!1),x(new Set),f(new Set)}),[v]);const E=e=>{x((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))},j=e=>{f((t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))};return s?c.loading?(0,kt.jsxs)("div",{role:"status",className:"flex min-h-[180px] items-center justify-center text-xs ".concat(l?"text-white/40":"text-gray-500"),children:[(0,kt.jsx)(Yt.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading the shared 13F activity snapshot\u2026"]}):c.error?(0,kt.jsx)("div",{role:"alert",className:"rounded-xl border px-4 py-8 text-center text-xs ".concat(l?"border-rose-400/20 text-rose-200":"border-rose-200 text-rose-700"),children:c.error}):"warming"===(null===(t=c.data)||void 0===t?void 0:t.status)?(0,kt.jsx)("div",{className:"rounded-xl border px-4 py-8 text-center text-xs ".concat(l?"border-white/[0.07] text-white/40":"border-gray-200 text-gray-500"),children:"The shared SEC snapshot is still building. This page does not launch filing requests."}):(0,kt.jsxs)("section",{"aria-label":"Dashboard 13F intelligence",children:[(0,kt.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsxs)("div",{className:"flex items-center gap-1.5 text-[9px] font-extrabold uppercase tracking-[0.17em] ".concat(l?"text-indigo-300/70":"text-indigo-600"),children:[(0,kt.jsx)(Qt.A,{className:"h-3 w-3"}),"My companies"]}),(0,kt.jsxs)("h3",{className:"mt-1 text-sm font-black",children:["Notable ",A?"top-fund":"reviewed-manager"," changes"]}),(0,kt.jsx)("p",{className:"mt-1 max-w-2xl text-[9px] leading-4 ".concat(l?"text-white/35":"text-gray-500"),children:"Companies are alphabetical. Manager changes within each company remain ordered by materiality."})]}),(0,kt.jsxs)("div",{className:"flex flex-col items-end gap-1.5",children:[(0,kt.jsx)("div",{className:"inline-flex rounded-lg border p-0.5 ".concat(l?"border-white/[0.08] bg-white/[0.03]":"border-gray-200 bg-white"),role:"group","aria-label":"Manager scope",children:[["discretionary","Top funds"],["all","All reviewed"]].map((e=>{let[t,n]=e;const a=d===t;return(0,kt.jsx)("button",{type:"button","aria-pressed":a,onClick:()=>{h(t),g(!1),x(new Set),f(new Set)},className:"rounded-md px-2.5 py-1 text-[9px] font-black transition ".concat(a?"bg-indigo-600 text-white shadow-sm":l?"text-white/35 hover:text-white/70":"text-gray-500 hover:text-gray-900"),children:n},t)}))}),(0,kt.jsxs)("div",{className:"rounded-lg px-2.5 py-1.5 text-[9px] font-bold ".concat(l?"bg-white/[0.04] text-white/45":"bg-gray-100 text-gray-600"),children:[(null===(n=c.data)||void 0===n||null===(r=n.peri
2od)||void 0===r?void 0:r.label)||"Latest complete quarter"," \xb7 delayed 13F data"]})]})]}),(0,kt.jsxs)("div",{className:"mt-3 overflow-hidden rounded-xl border ".concat(l?"border-white/[0.07] divide-white/[0.07]":"border-gray-200 divide-gray-200"," divide-y"),children:[C.map((e=>(0,kt.jsx)(mn,{group:e,darkMode:l,expanded:p.has(e.symbol),onToggleExpanded:E,compact:w,companyExpanded:D.has(e.symbol),onToggleCompany:j},e.symbol))),!F.length&&(0,kt.jsxs)("div",{className:"px-4 py-10 text-center text-xs ".concat(l?"text-white/35":"text-gray-500"),children:["No comparable ",A?"top-fund":"reviewed-manager"," changes were captured for your selected companies this quarter."]})]}),!w&&F.length>en&&(0,kt.jsx)("button",{type:"button","aria-expanded":m,onClick:()=>g((e=>!e)),className:"mt-2 rounded-lg px-2.5 py-1.5 text-[9px] font-black transition hover:underline ".concat(l?"bg-white/[0.04] text-indigo-300/75":"bg-indigo-50 text-indigo-700"),children:m?"Show fewer companies":"Show ".concat(k," more companies")}),(0,kt.jsx)("p",{className:"mt-2 text-[8px] leading-4 ".concat(l?"text-white/25":"text-gray-400"),children:"Position change is the reported share-count change versus the prior quarter; new and exited positions are shown as +100% and -100%. Fund change is the percentage-point change in the manager's reported 13F portfolio. Estimated dollars are not execution values."})]}):(0,kt.jsx)("div",{className:"min-h-[110px]","aria-hidden":"true"})}var pn=n(47879),xn=n(75748),Dn=n(6026),fn=n(57744),bn=n(79228);const vn=2e10,yn=160,Fn=8,wn=16;function Cn(e){if(null===e||void 0===e||""===e)return null;const t=Number(e);return Number.isFinite(t)?t:null}function kn(e){const t=Cn(e);if(null===t)return"\u2014";const n=Math.abs(t);return n>=1e9?"".concat((t/1e9).toFixed(1),"B"):n>=1e6?"".concat((t/1e6).toFixed(1),"M"):n>=1e3?"".concat((t/1e3).toFixed(1),"K"):t.toFixed(0)}function An(e){if(!e)return"\u2014";const t=new Date("".concat(e,"T00:00:00Z"));return Number.isNaN(t.getTime())?e:t.toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"})}function En(e){if(!e||"object"!==typeof e)return null;const t=Object.entries(e).filter((e=>{let[,t]=e;return t&&"object"===typeof t&&!Array.isArray(t)})).sort(((e,t)=>{let[n]=e,[a]=t;return String(a).localeCompare(String(n))}));for(const[,o]of t){var n,a,r;const e=Cn(null!==(n=o.market_cap)&&void 0!==n?n:o.marketCap);if(e>0)return e;const t=Cn(null!==(a=o.next_day_price)&&void 0!==a?a:o.current_price),i=Cn(null!==(r=o.diluted_shares)&&void 0!==r?r:o.shares_outstanding);if(t>0&&i>0)return t*i}return null}function jn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"change",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fn;const a=Array.isArray(e)?e:[];if("float"===t){const e=a.filter((e=>null!==Cn(e.latestShortPctFloat))).sort(((e,t)=>t.latestShortPctFloat-e.latestShortPctFloat||e.symbol.localeCompare(t.symbol))),t=Math.min(n,Math.ceil(e.length/2)),r=e.slice(0,t),o=new Set(r.map((e=>e.symbol))),i=[...e].reverse().filter((e=>!o.has(e.symbol))).slice(0,n);return{left:r,right:i,floatUnavailableCount:a.length-e.length,shorterHistoryCount:a.filter((e=>"six_month"!==e.comparisonStatus)).length,shorterHistoryRows:a.filter((e=>"six_month"!==e.comparisonStatus)),hasMore:e.length>r.length+i.length}}const r=a.filter((e=>"six_month"===e.comparisonStatus&&null!==Cn(e.changePct))),o=r.filter((e=>e.changePct>0)).sort(((e,t)=>t.changePct-e.changePct||e.symbol.localeCompare(t.symbol))),i=r.filter((e=>e.changePct<0)).sort(((e,t)=>e.changePct-t.changePct||e.symbol.localeCompare(t.symbol)));return{left:o.slice(0,n),right:i.slice(0,n),floatUnavailableCount:a.filter((e=>null===Cn(e.latestShortPctFloat))).length,shorterHistoryCount:a.length-r.length,shorterHistoryRows:a.filter((e=>"six_month"!==e.comparisonStatus)),hasMore:o.length>n||i.length>n}}function Nn(e){const t=Cn(e.changePct);if(null===t)return"Change unavailable";const n="".concat(t>0?"+":"").concat(t.toFixed(Math.abs(t)>=10?1:2),"%");return"since_listing"===e.comparisonStatus?"Since listing ".concat(n):"insufficient_history"===e.comparisonStatus?"Available history ".concat(n):n}function Sn(e){let{row:t,ranking:n,darkMode:a}=e;const r=Cn(t.changePct),o=null===r?null:r>=0,i=null===o?"#6366f1":o?"#10b981":"#f43f5e",l=Cn(t.latestShortPctFloat);return(0,kt.jsxs)("div",{className:"grid grid-cols-[30px_minmax(0,1fr)_72px] items-center gap-2 px-2 py-2 sm:grid-cols-[34px_minmax(0,1fr)_92px] sm:px-3 ".concat(a?"hover:bg-white/[0.025]":"hover:bg-gray-50/80"),children:[(0,kt.jsx)(s.N_,{to:"/company/".concat(encodeURIComponent(t.symbol)),"aria-label":"Open ".concat(t.symbol," company page"),children:(0,kt.jsx)(F.A,{ticker:t.symbol,darkMode:a,alt:"",imgClassName:"h-8 w-8 rounded-lg object-contain",fallbackClassName:"flex h-8 w-8 items-center justify-center rounded-lg text-[8px] font-black ".concat(a?"bg-white/[0.06] text-white/60":"bg-gray-100 text-gray-600")})}),(0,kt.jsxs)("div",{className:"min-w-0",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,kt.jsx)(s.N_,{to:"/company/".concat(encodeURIComponent(t.symbol)),className:"text-[11px] font-black hover:underline",children:t.symbol}),(0,kt.jsxs)("span",{className:"inline-flex items-center text-[10px] font-black ".concat("float"===n?a?"text-indigo-300":"text-indigo-700":o?"text-emerald-500":"text-rose-500"),
2children:["change"===n&&(o?(0,kt.jsx)(c.A,{className:"h-3 w-3"}):(0,kt.jsx)(Zt.A,{className:"h-3 w-3"})),"float"===n?"".concat(l.toFixed(l>=10?1:2),"% of float"):Nn(t)]})]}),(0,kt.jsxs)("div",{className:"mt-0.5 text-[8px] tabular-nums ".concat(a?"text-white/35":"text-gray-500"),children:[kn(t.latestShortShares)," shares short"," \xb7 ".concat("change"===n?null===l?"current float unavailable":"".concat(l.toFixed(l>=10?1:2),"% of float"):Nn(t))," \xb7 ".concat(An(t.baselineDate),"\u2013").concat(An(t.latestDate)),null!=t.latestDaysToCover?" \xb7 ".concat(t.latestDaysToCover.toFixed(1)," days to cover"):""]})]}),(0,kt.jsx)("div",{className:"h-9 w-full min-w-0","aria-label":"".concat(t.symbol," short-interest history chart"),children:(0,kt.jsx)(pn.u,{width:"100%",height:"100%",children:(0,kt.jsxs)(xn.b,{data:t.points,margin:{top:3,right:2,bottom:3,left:2},children:[(0,kt.jsx)(Dn.h,{hide:!0,domain:["dataMin","dataMax"]}),(0,kt.jsx)(fn.N1,{type:"monotone",dataKey:"shortShares",stroke:i,strokeWidth:1.8,dot:!1,isAnimationActive:!1})]})})})]})}function Bn(e){let{title:t,rows:n,tone:a,ranking:r,darkMode:o}=e;const i="positive"===a?"text-emerald-500":"negative"===a?"text-rose-500":o?"text-indigo-300":"text-indigo-700";return(0,kt.jsxs)("section",{className:"overflow-hidden rounded-xl border ".concat(o?"border-white/[0.07]":"border-gray-200"),"aria-label":t,children:[(0,kt.jsx)("div",{className:"border-b px-3 py-2 ".concat(o?"border-white/[0.06]":"border-gray-100"),children:(0,kt.jsx)("h3",{className:"text-[11px] font-black ".concat(i),children:t})}),(0,kt.jsxs)("div",{className:"divide-y ".concat(o?"divide-white/[0.05]":"divide-gray-100"),children:[n.map((e=>(0,kt.jsx)(Sn,{row:e,ranking:r,darkMode:o},e.symbol))),!n.length&&(0,kt.jsx)("div",{className:"px-4 py-8 text-center text-[10px] ".concat(o?"text-white/30":"text-gray-400"),children:"float"===r?"No current float coverage in this group.":"No comparable names in this direction."})]})]})}function Mn(e){var t;let{universeTickers:n,dashboardTickers:r=[],quotes:o,jsonData:i,enabled:s=!1,darkMode:l=!1}=e;const c=(0,a.useMemo)((()=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return[...new Set((e||[]).map((e=>String(e||"").trim().toUpperCase())).filter(Boolean))].map((e=>{var a,r;return{symbol:e,marketCap:null!==(a=Cn(null===t||void 0===t||null===(r=t[e])||void 0===r?void 0:r.marketCap))&&void 0!==a?a:En(null===n||void 0===n?void 0:n[e])}})).filter((e=>e.marketCap>=vn)).sort(((e,t)=>t.marketCap-e.marketCap||e.symbol.localeCompare(t.symbol))).slice(0,yn).map((e=>e.symbol)).sort()}(n,o,i)),[i,o,n]),u=(0,a.useMemo)((()=>[...new Set((r||[]).map((e=>String(e||"").trim().toUpperCase())).filter((e=>/^[A-Z0-9^.=-]{1,16}$/.test(e))))]),[r]),d=(0,a.useMemo)((()=>new Set(u)),[u]),h=(0,a.useMemo)((()=>new Set(c)),[c]),m=(0,a.useMemo)((()=>u.filter((e=>h.has(e))).length),[h,u]),g=c.join(","),[D,f]=(0,a.useState)({key:"",loading:!1,data:null,error:""}),[b,v]=(0,a.useState)("change"),[y,F]=(0,a.useState)(!1),[w,C]=(0,a.useState)((()=>u.length?"dashboard":"all")),k=(0,a.useRef)(u.length);(0,a.useEffect)((()=>{if(!s||!g||D.key===g)return;let e=!1;return f({key:g,loading:!0,data:null,error:""}),(0,bn.L0)(c).then((t=>{e||f({key:g,loading:!1,data:t,error:""})})).catch((t=>{e||f({key:g,loading:!1,data:null,error:(null===t||void 0===t?void 0:t.message)||"Short-interest movers did not load."})})),()=>{e=!0}}),[s,g]),(0,a.useEffect)((()=>{const e=k.current;u.length||"dashboard"!==w||C("all"),u.length&&0===e&&C("dashboard"),k.current=u.length}),[u.length,w]);const A=(0,a.useMemo)((()=>{var e;const t=(null===(e=D.data)||void 0===e?void 0:e.series)||[];return"dashboard"===w?t.filter((e=>d.has(e.symbol))):t}),[d,w,D.data]),E=(0,a.useMemo)((()=>jn(A,b,y?wn:Fn)),[y,b,A]),j=(0,a.useMemo)((()=>jn(A,b,Fn).hasMore),[b,A]);if(!s)return(0,kt.jsx)("div",{className:"min-h-[110px]","aria-hidden":"true"});if(!g)return(0,kt.jsx)("div",{className:"rounded-xl border px-4 py-8 text-center text-xs ".concat(l?"border-white/[0.07] text-white/40":"border-gray-200 text-gray-500"),children:"Waiting for cached market-cap coverage to identify companies above $20B."});if(D.loading)return(0,kt.jsxs)("div",{role:"status",className:"flex min-h-[180px] items-center justify-center text-xs ".concat(l?"text-white/40":"text-gray-500"),children:[(0,kt.jsx)(Yt.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading one shared FINRA large-cap snapshot\u2026"]});if(D.error)return(0,kt.jsx)("div",{role:"alert",className:"rounded-xl border px-4 py-8 text-center text-xs ".concat(l?"border-rose-400/20 text-rose-200":"border-rose-200 text-rose-700"),children:D.error});const N=(null===(t=D.data)||void 0===t?void 0:t.coverage)||{},S="dashboard"===w?A.length:null,B=Math.max(0,u.length-m),M="float"===b?"Highest short interest / float":"Short interest rising",T="float"===b?"Lowest short interest / float":"Short interest declining";return(0,kt.jsxs)("section",{"aria-label":"Large-cap short-interest movers",children:[(0,kt.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,kt.jsxs)("div",{children:[(0,kt.jsx)("div",{className:"text-[9px] font-extrabold uppercase tracking-[0.17em] ".concat(l?"text-indigo-300/70":"text-indigo-600"),children:"Positioning pressure"}),(0,kt.jsx)("h3",{className:"mt-1 text-sm font-black",children:"Short-interest rankings"}),(0,kt.jsxs)("p",{className:"mt-1 max-w-2xl text-[9px] leading-4 ".concat(l?"text-white/35":"text-gray-500"),children:["float"===b?"Current reported short shares divi
2ded by the latest available provider-reported float.":"Six-month changes among companies with enough same-issuer history for a valid comparison."," Each mini-chart uses official twice-monthly settlements."]})]}),(0,kt.jsxs)("div",{className:"flex flex-col items-end gap-1.5",children:[(0,kt.jsxs)("div",{className:"inline-flex rounded-lg border p-0.5 ".concat(l?"border-white/[0.08] bg-white/[0.03]":"border-gray-200 bg-white"),role:"group","aria-label":"Short-interest company scope",children:[(0,kt.jsx)("button",{type:"button","aria-pressed":"dashboard"===w,disabled:!u.length,onClick:()=>{C("dashboard"),F(!1)},className:"rounded-md px-2.5 py-1 text-[9px] font-black transition disabled:cursor-not-allowed disabled:opacity-35 ".concat("dashboard"===w?"bg-indigo-600 text-white shadow-sm":l?"text-white/35 hover:text-white/70":"text-gray-500 hover:text-gray-900"),children:"My dashboard"}),(0,kt.jsx)("button",{type:"button","aria-pressed":"all"===w,onClick:()=>{C("all"),F(!1)},className:"rounded-md px-2.5 py-1 text-[9px] font-black transition ".concat("all"===w?"bg-indigo-600 text-white shadow-sm":l?"text-white/35 hover:text-white/70":"text-gray-500 hover:text-gray-900"),children:"All companies"})]}),(0,kt.jsx)("div",{className:"inline-flex rounded-lg border p-0.5 ".concat(l?"border-white/[0.08] bg-white/[0.03]":"border-gray-200 bg-white"),role:"group","aria-label":"Short-interest ranking",children:[["change","6M change"],["float","% of float"]].map((e=>{let[t,n]=e;return(0,kt.jsx)("button",{type:"button","aria-pressed":b===t,onClick:()=>{v(t),F(!1)},className:"rounded-md px-2.5 py-1 text-[9px] font-black transition ".concat(b===t?"bg-indigo-600 text-white shadow-sm":l?"text-white/35 hover:text-white/70":"text-gray-500 hover:text-gray-900"),children:n},t)}))}),(0,kt.jsxs)("div",{className:"rounded-lg px-2.5 py-1.5 text-[9px] font-bold ".concat(l?"bg-white/[0.04] text-white/45":"bg-gray-100 text-gray-600"),children:["dashboard"===w?"".concat(S,"/").concat(u.length," dashboard names covered").concat(B?" \xb7 ".concat(B," not in the requested large-cap set"):""):"".concat(N.coveredSymbolCount||0,"/").concat(N.requestedSymbolCount||c.length," covered"),N.excludedSplitCount?" \xb7 ".concat(N.excludedSplitCount," split-flagged excluded"):""]})]})]}),"float"===b&&(0,kt.jsxs)("p",{className:"mt-2 text-[8px] ".concat(l?"text-white/30":"text-gray-500"),children:[A.length-E.floatUnavailableCount,"/",A.length," covered with current float",E.floatUnavailableCount?" \xb7 ".concat(E.floatUnavailableCount," unavailable and omitted from this ranking"):"","."]}),"change"===b&&E.shorterHistoryCount>0&&(0,kt.jsxs)("p",{className:"mt-2 text-[8px] ".concat(l?"text-white/30":"text-gray-500"),children:["Shorter histories omitted from the six-month ranking: ",E.shorterHistoryRows.slice(0,6).map((e=>"".concat(e.symbol," (").concat("since_listing"===e.comparisonStatus?"since listing":"insufficient history",")"))).join(", "),E.shorterHistoryRows.length>6?", +".concat(E.shorterHistoryRows.length-6," more"):"","."]}),!!A.length&&(0,kt.jsxs)("div",{className:"mt-3 grid min-w-0 gap-3 lg:grid-cols-2",children:[(0,kt.jsx)(Bn,{title:M,rows:E.left,tone:"float"===b?"negative":"positive",ranking:b,darkMode:l}),(0,kt.jsx)(Bn,{title:T,rows:E.right,tone:"float"===b?"neutral":"negative",ranking:b,darkMode:l})]}),!y&&j&&(0,kt.jsx)("div",{className:"mt-3 text-center",children:(0,kt.jsxs)("button",{type:"button",onClick:()=>F(!0),className:"inline-flex items-center gap-1 rounded-lg border px-3 py-1.5 text-[9px] font-black ".concat(l?"border-white/[0.08] text-white/55 hover:bg-white/[0.04]":"border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),children:[(0,kt.jsx)(x.A,{className:"h-3 w-3"})," Show up to ",wn," per side"]})}),y&&(0,kt.jsx)("div",{className:"mt-3 text-center",children:(0,kt.jsxs)("button",{type:"button",onClick:()=>F(!1),className:"inline-flex items-center gap-1 rounded-lg border px-3 py-1.5 text-[9px] font-black ".concat(l?"border-white/[0.08] text-white/55 hover:bg-white/[0.04]":"border-gray-200 bg-white text-gray-600 hover:bg-gray-50"),children:[(0,kt.jsx)(p.A,{className:"h-3 w-3"})," Show fewer"]})}),!A.length&&(0,kt.jsx)("div",{className:"mt-3 rounded-xl border px-4 py-6 text-center text-[10px] ".concat(l?"border-white/[0.07] text-white/35":"border-gray-200 bg-white text-gray-500"),children:"dashboard"===w?"No dashboard companies have a covered short-interest series in this large-cap snapshot. Names below $20B, without cached market-cap coverage, or outside the 160-name request cap are not requested.":"No covered large-cap short-interest series are available in this snapshot."}),(0,kt.jsx)("p",{className:"mt-2 text-[8px] leading-4 ".concat(l?"text-white/25":"text-gray-400"),children:"FINRA short interest is reported with a lag and is not daily short-sale volume. One shared domain-filter request serves the full large-cap set; changing scope or ranking does not make another request. Current float comes from a shared provider snapshot and is labeled unavailable when absent. Split-flagged and pre-listing/recycled-ticker history are not used for six-month comparisons."})]})}var Tn=n(18016),In=n(5522),_n=n(46681);
2const qn=50,Un=25,On=10,Pn=2,Rn=500,Kn=5,Ln="Top News could not verify complete coverage because every safe provider page was full. No incomplete result is shown.",zn=18e4;function Wn(e){return _n.l0.some((t=>t.days===e))?e:_n.Rf}function $n(e){const t=String(e||"").trim().toUpperCase();return/^[A-Z0-9^.=-]{1,16}$/.test(t)?t:""}function Hn(e){return function(e){return[...new Set((e||[]).map($n).filter(Boolean))]}(e)}function Gn(e){let{lookbackDays:t=_n.Rf}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Hn(e).sort(),a=function(){const e=Wn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:_n.Rf);return e>=_n.YO?On:e>_n.Rf?Un:qn}(t),r=[];for(let o=0;o<n.length;o+=a)r.push(n.slice(o,o+a));return r}function Zn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const t=Wn(arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n.Rf),n=function(e){const t=new Intl.DateTimeFormat("en-US",{timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(e instanceof Date?e:new Date(e)),n=Object.fromEntries(t.map((e=>[e.type,e.value])));return"".concat(n.year,"-").concat(n.month,"-").concat(n.day)}(e),a=new Date("".concat(n,"T12:00:00Z"));return a.setUTCDate(a.getUTCDate()-t),{from:a.toISOString().slice(0,10),to:n}}async function Vn(e){let{now:t=new Date,isCancelled:n=(()=>!1),lookbackDays:a=_n.Rf}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Wn(a),o=Gn(e,{lookbackDays:r});if(!o.length||n())return[];const{from:i,to:s}=Zn(t,r),l=new Array(o.length);let c=0,u=!1;const d=Math.min(Pn,o.length);return await Promise.all(Array.from({length:d},(async()=>{for(;!u&&!n();){const t=c;if(c+=1,t>=o.length)return;try{const e=[];for(let a=0;a<Kn;a+=1){const r=await(0,y.kA)("/stock_news",{tickers:o[t].join(","),from:i,to:s,limit:Rn,page:a});if(n())return;if(!r.ok)throw new Error("Recent company news did not load.");const l=await r.json();if(n())return;if(!Array.isArray(l))throw new Error("Recent company news returned an invalid response.");if(e.push(...l),l.length<Rn)break;if(a===Kn-1)throw new Error(Ln)}l[t]=e}catch(e){throw u=!0,e}}}))),n()?[]:l.flat()}function Yn(e){let{tickers:t=[],jsonData:n={},enabled:r=!1,darkMode:o=!1,now:i,loadNews:s=Vn}=e;const l=(0,a.useMemo)((()=>Ct(t)),[t]),[c,u]=(0,a.useState)("all"),d=l[c]||l.all,[h,m]=(0,a.useState)(_n.Rf),g=[...d].sort().join(","),p=g?"".concat(c,":").concat(h,":").concat(g):"",x=d,[D,f]=(0,a.useState)({ownerKey:"",articles:null,loading:!1,error:"",loadedAt:0}),b=(0,a.useRef)(D);b.current=D;const v=(0,a.useRef)(0);(0,a.useEffect)((()=>{if(!r||!p)return;const e=b.current;if(e.ownerKey===p&&Array.isArray(e.articles)&&Date.now()-e.loadedAt<zn)return;const t=v.current+1;v.current=t;let n=!1;const a=String(e.ownerKey||"").split(":").slice(2).join(":")===g&&Array.isArray(e.articles)?e.articles:null;return f({ownerKey:p,articles:a,loading:!0,error:"",loadedAt:0}),s(x,{now:i||new Date,isCancelled:()=>n,lookbackDays:h}).then((e=>{n||v.current!==t||f({ownerKey:p,articles:Array.isArray(e)?e:[],loading:!1,error:"",loadedAt:Date.now()})})).catch((e=>{n||v.current!==t||f({ownerKey:p,articles:a||[],loading:!1,error:(null===e||void 0===e?void 0:e.message)||"Recent company news did not load.",loadedAt:0})})),()=>{n=!0}}),[c,r,s,h,i,p,x,g]);const y=D.ownerKey===p&&Array.isArray(D.articles)?D.articles:[],F=(0,a.useCallback)((function(e){let{lookbackDays:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s([e],{now:i||new Date,isCancelled:()=>!1,lookbackDays:t})}),[s,i]);return(0,kt.jsx)(In.default,{articles:y,tickers:d,companyNames:l.companyNames,jsonData:n,enabled:r,loading:D.ownerKey===p&&D.loading,error:D.ownerKey===p?D.error:"",now:i,darkMode:o,lookbackDays:h,onLookbackDaysChange:m,coverageMode:c,onCoverageModeChange:u,loadMoreNews:F,surface:"live"})}const Qn=6,Jn=45;function Xn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date).toISOString().slice(0,10)}function ea(e){const[t,n]=(0,a.useState)((()=>Xn())),r=e?Xn():t;return(0,a.useEffect)((()=>{if(!e)return;let t;const a=()=>{const e=new Date;n(Xn(e)),t=setTimeout(a,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const t=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()+1);return Math.max(1,t-e.getTime()+25)}(e))};return a(),()=>clearTimeout(t)}),[e]),(0,a.useMemo)((()=>new Date("".concat(r,"T12:00:00.000Z"))),[r])}function ta(e,t,n){if(!t)return{latestDate:null,items:[]};const a=function(e,t){return Object.fromEntries(Object.entries(e||{}).filter((e=>{let[n]=e;return Be(n)===t})))}(e,t),r=ct(a,{scope:"watchlist",scopeTickers:[t],now:n,lookbackDays:Jn});for(const o of r){const e=ot(a,{mode:"top",scope:"watchlist",scopeTickers:[t],selectedDate:o.dateKey,now:n,lookbackDays:Jn}).slice(0,Qn);if(e.length>0)return{latestDate:o,items:e}}return{latestDate:null,items:[]}}function na(e){var t,n;let{item:r,rank:o,darkMode:i}
2=e;const[s,l]=(0,a.useState)(!1),c=null===(t=r.quotes)||void 0===t?void 0:t[0],u=(null===(n=r.quotes)||void 0===n?void 0:n.slice(1))||[],d="live-debate-support-".concat(String(r.id).replace(/[^a-zA-Z0-9_-]/g,"-")),h=null==r.sentimentScore?"Unscored":"bull"===r.sentiment?"Bull-leaning":"bear"===r.sentiment?"Bear-leaning":"Two-sided";return c?(0,kt.jsxs)("article",{className:"px-4 py-4 sm:px-5 sm:py-5","data-live-debate":r.id,children:[(0,kt.jsx)("div",{className:"flex items-start justify-between gap-3",children:(0,kt.jsxs)("div",{className:"min-w-0",children:[(0,kt.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,kt.jsxs)("span",{className:"text-[10px] font-bold tabular-nums ".concat(i?"text-amber-300/80":"text-amber-700"),children:["#",o]}),(0,kt.jsx)("span",{className:"text-[9px] font-bold uppercase tracking-wider ".concat("verified"===r.reliabilityTier?i?"text-emerald-300/70":"text-emerald-700":i?"text-white/55":"text-gray-600"),children:"verified"===r.reliabilityTier?"Source verified":"Transcript evidence"}),(0,kt.jsx)("span",{"aria-hidden":"true",className:i?"text-white/15":"text-gray-300",children:"\xb7"}),(0,kt.jsx)("span",{className:"text-[9px] font-bold uppercase tracking-wider ".concat(i?"text-white/55":"text-gray-600"),children:h})]}),(0,kt.jsx)("h4",{className:"text-sm font-semibold leading-snug sm:text-[15px] ".concat(i?"text-white/90":"text-gray-900"),children:r.debateTitle})]})}),(0,kt.jsxs)("blockquote",{className:"mt-3 border-l-2 pl-3 text-[12px] leading-relaxed sm:text-[13px] ".concat(i?"border-indigo-400/40 text-white/60":"border-indigo-200 text-gray-600"),children:["\u201c",c.quote,"\u201d",(0,kt.jsx)("footer",{className:"mt-1 text-[10px] font-semibold not-italic ".concat(i?"text-white/55":"text-gray-600"),children:c.speaker})]}),(0,kt.jsx)(w.Ay,{ticker:r.ticker,lookupTickers:r.transcriptLookupTickers,reportDate:r.dateKey,transcriptRevision:r.transcriptRevision,quote:c.quote,darkMode:i,label:"".concat(r.ticker," debate ").concat(o," quote 1")}),(0,kt.jsx)("p",{className:"mt-2 text-[10px] leading-relaxed ".concat(i?"text-white/55":"text-gray-600"),children:r.rankReason||"Source-backed evidence tied to an active debate."}),u.length>0&&(0,kt.jsxs)(kt.Fragment,{children:[(0,kt.jsxs)("button",{type:"button","aria-expanded":s,"aria-controls":d,onClick:()=>l((e=>!e)),className:"mt-1 inline-flex min-h-11 items-center gap-1 text-[10px] font-semibold transition-colors ".concat(i?"text-indigo-300/75 hover:text-indigo-200":"text-indigo-600 hover:text-indigo-800"),children:[s?(0,kt.jsx)(p.A,{className:"h-3 w-3"}):(0,kt.jsx)(x.A,{className:"h-3 w-3"}),s?"Hide supporting quotes":"Read ".concat(u.length," more supporting ").concat(1===u.length?"quote":"quotes")]}),s&&(0,kt.jsx)("div",{id:d,children:u.map(((e,t)=>(0,kt.jsxs)("div",{children:[(0,kt.jsxs)("blockquote",{className:"mt-2 border-l-2 pl-3 text-[12px] leading-relaxed sm:text-[13px] ".concat(i?"border-white/[0.12] text-white/55":"border-gray-200 text-gray-600"),children:["\u201c",e.quote,"\u201d",(0,kt.jsx)("footer",{className:"mt-1 text-[10px] font-semibold not-italic ".concat(i?"text-white/55":"text-gray-600"),children:e.speaker})]}),(0,kt.jsx)(w.Ay,{ticker:r.ticker,lookupTickers:r.transcriptLookupTickers,reportDate:r.dateKey,transcriptRevision:r.transcriptRevision,quote:e.quote,darkMode:i,label:"".concat(r.ticker," debate ").concat(o," quote ").concat(t+2)})]},"".concat(r.id,":quote:").concat(t+1))))})]})]}):null}function aa(e){let{message:t,onRetry:n,retryLabel:a,darkMode:r}=e;return(0,kt.jsxs)("div",{role:"status","aria-live":"polite","aria-label":"Debate coverage",className:"flex items-center justify-between gap-3 border-b px-4 py-2 text-[10px] leading-relaxed sm:px-5 ".concat(r?"border-white/[0.055] text-white/55":"border-gray-100 text-gray-600"),children:[(0,kt.jsx)("span",{children:t}),n&&(0,kt.jsx)("button",{type:"button",onClick:n,"aria-label":a,className:"min-h-11 flex-none rounded-sm px-1 font-semibold focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 ".concat(r?"text-indigo-300/75 hover:text-indigo-200":"text-indigo-600 hover:text-indigo-800"),children:"Retry"})]})}
2function ra(e){let{title:t,detail:n,darkMode:a,onRetry:r=null,retryLabel:o="",statusLabel:i=""}=e;return(0,kt.jsxs)("div",{role:"status","aria-label":i||void 0,className:"px-5 py-12 text-center",children:[(0,kt.jsx)(b.A,{className:"mx-auto h-5 w-5 ".concat(a?"text-white/20":"text-gray-300")}),(0,kt.jsx)("p",{className:"mt-2 text-sm font-semibold ".concat(a?"text-white/60":"text-gray-700"),children:t}),(0,kt.jsx)("p",{className:"mt-1 text-[11px] ".concat(a?"text-white/55":"text-gray-600"),children:n}),r&&(0,kt.jsx)("button",{type:"button",onClick:r,"aria-label":o,className:"mt-3 min-h-11 rounded-md border px-3 text-xs font-semibold focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 ".concat(a?"border-white/[0.10] text-white/65 hover:border-white/[0.18] hover:text-white/80":"border-gray-200 text-gray-700 hover:border-gray-300 hover:text-gray-900"),children:"Retry"})]})}function oa(e){var t;let{jsonData:n,tickers:r,enabled:o=!1,darkMode:i=!1,watchlistEarningsData:l=null}=e;const d=(0,a.useMemo)((()=>function(e){const t=new Set;return(Array.isArray(e)?e:[]).reduce(((e,n)=>{const a=Be(n);return!a||t.has(a)||(t.add(a),e.push(a)),e}),[])}(r)),[r]),[h,m]=(0,a.useState)((()=>d[0]||"")),g=ea(o),p=l?l.jsonData:n,f=d.includes(h)?h:d[0]||"";(0,a.useEffect)((()=>{h!==f&&m(f)}),[f,h]);const b=(0,a.useMemo)((()=>o&&p&&f?ta(p,f,g):{latestDate:null,items:[]}),[f,p,o,g]);if(!o)return null;const v=null===(t=b.items[0])||void 0===t?void 0:t.companyName,y=(null===l||void 0===l?void 0:l.status)||"ready",F=Boolean(l)&&("idle"===y||"loading"===y),w=Boolean(l)&&!l.ready&&!F,C=w&&"function"===typeof(null===l||void 0===l?void 0:l.retry)?l.retry:null,k=Boolean(l)&&!1===l.corpusAvailable,A="Retry ".concat(f," debate coverage"),E=F?"Checking for a newer ".concat(f," earnings call\u2026"):w?"".concat(l.error||"Recent dashboard earnings coverage could not be fully checked."," Showing available source-qualified debates."):"";return(0,kt.jsxs)("section",{"aria-label":"Company debates",className:"overflow-hidden",children:[(0,kt.jsxs)("header",{className:"flex flex-col gap-3 border-b pb-4 sm:flex-row sm:items-end sm:justify-between ".concat(i?"border-white/[0.06]":"border-gray-100"),children:[(0,kt.jsxs)("div",{className:"min-w-0",children:[(0,kt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,kt.jsx)(D.A,{className:"h-4 w-4 ".concat(i?"text-indigo-300/65":"text-indigo-600")}),(0,kt.jsx)("h3",{className:"text-sm font-bold tracking-tight ".concat(i?"text-white/90":"text-gray-900"),children:"Top recent debates"})]}),(0,kt.jsx)("p",{className:"mt-1 text-[11px] ".concat(i?"text-white/55":"text-gray-600"),children:"Pick one of your companies to review its latest source-backed earnings-call questions."})]}),d.length>0&&(0,kt.jsxs)("label",{className:"block w-full sm:w-auto",children:[(0,kt.jsx)("span",{className:"mb-1 block text-[9px] font-bold uppercase tracking-widest ".concat(i?"text-white/55":"text-gray-600"),children:"Company"}),(0,kt.jsxs)("span",{className:"relative block",children:[(0,kt.jsx)("select",{"aria-label":"Choose a dashboard company",value:f,onChange:e=>m(e.target.value),className:"h-11 w-full appearance-none rounded-lg border py-2 pl-3 pr-9 text-xs font-semibold outline-none transition-colors focus:ring-2 focus:ring-indigo-500 sm:w-48 ".concat(i?"border-white/[0.08] bg-[#171922] text-white/75":"border-gray-200 bg-white text-gray-800"),children:d.map((e=>(0,kt.jsx)("option",{value:e,children:e},e)))}),(0,kt.jsx)(x.A,{className:"pointer-events-none absolute right-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 ".concat(i?"text-white/35":"text-gray-400")})]})]})]}),0===d.length?(0,kt.jsx)(ra,{title:"Choose companies to see their latest debates.",detail:"Add or star a company on the Live dashboard, then return here.",darkMode:i}):null==p&&F?(0,kt.jsx)("div",{className:"space-y-3 py-5",role:"status","aria-label":"Loading debate research",children:[0,1,2].map((e=>(0,kt.jsx)("div",{className:"h-24 animate-pulse motion-reduce:animate-none rounded-xl ".concat(i?"bg-white/[0.035]":"bg-gray-100")},e)))}):0===b.items.length&&F?(0,kt.jsx)(ra,{title:"Checking recent debates for ".concat(f,"\u2026"),detail:"Looking for a newer source-qualified earnings call.",darkMode:i,statusLabel:"Debate coverage"}):0===b.items.length&&w?(0,kt.jsx)(ra,{title:"Recent debate coverage is incomplete for ".concat(f,"."),detail:l.error||"Some recent dashboard earnings updates could not be checked.",darkMode:i,onRetry:C,retryLabel:A,statusLabel:"Debate coverage"}):0===b.items.length&&k?(0,kt.jsx)(ra,{title:"Full debate history is temporarily unavailable for ".concat(f,"."),detail:"No source-qualified live update is available yet. Historical research will appear when the corpus finishes loading.",darkMode:i,statusLabel:"Debate research availability"}):null==p?(0,kt.jsx)("div",{className:"space-y-3 py-5",role:"status","aria-label":"Loading debate research",children:[0,1,2].map((e=>(0,kt.jsx)("div",{className:"h-24 animate-pulse motion-reduce:animate-none rounded-xl ".concat(i?"bg-white/[0.035]":"bg-gray-100")},e)))}):0===b.items.length?(0,kt.jsx)(ra,{title:"No source-qualified debates were found for ".concat(f," in the last ").concat(Jn," days."),detail:"New debates appear automatically after transcript analysis finishes.",darkMode:i}
2):(0,kt.jsxs)(kt.Fragment,{children:[E&&(0,kt.jsx)(aa,{message:E,onRetry:C,retryLabel:A,darkMode:i}),(0,kt.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 border-b px-4 py-3 sm:px-5 ".concat(i?"border-white/[0.055]":"border-gray-100"),children:[(0,kt.jsxs)(s.N_,{to:"/company/".concat(encodeURIComponent(f)),"aria-label":"Open ".concat(f," company page"),className:"inline-flex items-center gap-1 rounded-sm text-[11px] font-semibold underline-offset-2 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 ".concat(i?"text-white/65":"text-gray-700"),children:[v&&v!==f?"".concat(v," \xb7 ").concat(f):f,(0,kt.jsx)(c.A,{"aria-hidden":"true",className:"h-3 w-3 flex-none"})]}),(0,kt.jsx)("span",{className:"hidden sm:inline ".concat(i?"text-white/15":"text-gray-300"),children:"\xb7"}),(0,kt.jsxs)("span",{"aria-live":"polite",className:"flex items-center gap-1 text-[10px] ".concat(i?"text-white/55":"text-gray-600"),children:[(0,kt.jsx)(u.A,{className:"h-3 w-3"}),"Latest source-qualified call \xb7 ",b.latestDate.dateLabel]})]}),(0,kt.jsx)("ol",{className:"divide-y ".concat(i?"divide-white/[0.055]":"divide-gray-100"),children:b.items.map(((e,t)=>(0,kt.jsx)("li",{children:(0,kt.jsx)(na,{item:e,rank:t+1,darkMode:i})},e.id)))}),(0,kt.jsxs)("p",{className:"border-t px-4 py-3 text-center text-[10px] tabular-nums sm:px-5 ".concat(i?"border-white/[0.055] text-white/55":"border-gray-100 text-gray-600"),children:["Showing ",b.items.length," top ",1===b.items.length?"debate":"debates"," from this call"]})]})]})}class ia extends a.Component{constructor(e){super(e),this.state={failed:!1}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){console.error("".concat(this.props.label," failed to render:"),e)}render(){return this.state.failed?(0,kt.jsxs)("div",{role:"status",className:"rounded-xl border px-4 py-5 text-center text-xs ".concat(this.props.darkMode?"border-white/[0.06] bg-white/[0.02] text-white/40":"border-gray-200 bg-gray-50 text-gray-500"),children:[this.props.label," is temporarily unavailable. The rest of the Live dashboard is still available."]}):this.props.children}}function sa(e){let{darkMode:t,jsonData:n,universeTickers:o,focusTickers:i,portfolioTickers:s,marketQuotes:l,activeIntelligenceTab:c,onIntelligenceTabChange:u}=e;const d=null!==s&&void 0!==s&&s.length?s:i,h=a.useMemo((()=>function(e){const t=[...new Set((e||[]).map(Be).filter(Boolean))],n=new Set([...t].sort().slice(0,mt));return t.filter((e=>n.has(e)))}(d)),[d]),m=yt(h),g=a.useMemo((()=>{const e=Object.values(m.updates||{}).some((e=>e&&Object.keys(e).length>0));return bt(null!==n&&void 0!==n?n:e?{}:null,m.updates)}),[n,m.updates]),p=a.useMemo((()=>({jsonData:g,corpusAvailable:null!=n,status:m.status,error:m.error,ready:m.ready,retry:m.retry})),[g,n,m.error,m.ready,m.retry,m.status]);return(0,kt.jsx)(kt.Fragment,{children:(0,kt.jsx)(Tn.A,{delayMs:45,"data-live-section":"intelligence",children:(0,kt.jsx)(ia,{label:"Calypso Intelligence",darkMode:t,children:(0,kt.jsx)(r.A,{jsonData:n,universeTickers:o,focusTickers:i,portfolioTickers:s,earningsUpdatesContent:(0,kt.jsx)(Gt,{jsonData:n,universeTickers:o,portfolioTickers:s,watchlistEarningsData:p,darkMode:t,embedded:!0}),debatesContent:(0,kt.jsx)(oa,{jsonData:n,tickers:h,watchlistEarningsData:p,darkMode:t}),topNewsContent:(0,kt.jsx)(Yn,{tickers:null!==s&&void 0!==s&&s.length?s:i,jsonData:n,darkMode:t}),dashboard13fContent:(0,kt.jsx)(gn,{tickers:null!==s&&void 0!==s&&s.length?s:i,darkMode:t}),shortInterestContent:(0,kt.jsx)(Mn,{universeTickers:o,dashboardTickers:s,quotes:l,jsonData:n,darkMode:t}),showReadThroughs:!1,defaultTab:"earnings-updates",activeTab:c,onActiveTabChange:u,darkMode:t})})})})}},97508:(e,t,n)=>{n.d(t,{$L:()=>h,Ey:()=>u,fk:()=>d,zn:()=>f});var a=n(89379);const r=(0,n(5777).mN)("GOOG"),o=new Set(["fundamental_discretionary","fundamental_growth","fundamental_concentrated","fundamental_activist","activist_concentrated","activist_event_driven","event_driven","thematic_concentrated","multi_strategy_discretionary"]),i=new Set(["0001536411","0001765681"]);function s(e){if(null===e||void 0===e||""===e)return null;const t=Number(e);return Number.isFinite(t)?t:null}function l(e){const t=String(null!==e&&void 0!==e?e:"").trim();return/^\d{1,10}$/.test(t)?t.padStart(10,"0"):""}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const n=s(e);if(null===n)return null;const a=10**t;return Math.round(n*a)/a}function u(e){const t=String((null===e||void 0===e?void 0:e.cik)||"").replace(/\D/g,"").padStart(10,"0");return!0!==(null===e||void 0===e?void 0:e.excludeFromTopFundScope)&&(!0===(null===e||void 0===e?void 0:e.includeInTopFundScope)||i.has(t)||o.has(function(e){return String((null===e||void 0===e?void 0:e.strategyTier)||"fundamental_discretionary").trim().toLowerCase()}(e)))}function d(e){return((null===e||void 0===e?void 0:e.managers)||[]).filter((e=>h(e,"discretionary"))).map((e=>
2l(null===e||void 0===e?void 0:e.cik))).filter(Boolean)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"discretionary";return"all"===t||("custom"===t?new Set((arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||[]).has(l(null===e||void 0===e?void 0:e.cik)):u(e))}function m(e){const t=String(e||"").trim().toUpperCase();return"GOOGL"===t?"GOOG":t}function g(e,t){const n=e.map((e=>s(null===e||void 0===e?void 0:e[t]))).filter((e=>null!==e));return n.length?c(n.reduce(((e,t)=>e+t),0)):null}function p(e){const t=new Map;for(const a of(null===e||void 0===e?void 0:e.holdings)||[]){const e=m(null===a||void 0===a?void 0:a.symbol);e&&(t.has(e)||t.set(e,[]),t.get(e).push(a))}const n=[...t.entries()].map((e=>{var t,n;let[o,i]=e;const l="GOOG"===o;if(1===i.length)return(0,a.A)((0,a.A)({},i[0]),{},{symbol:o,issuer:l?"Alphabet Inc.":i[0].issuer,logoUrl:l?r:i[0].logoUrl,reportedShareClasses:l?[String(i[0].symbol).toUpperCase()]:void 0});const u=(0,a.A)((0,a.A)({},i[0]),{},{symbol:o});for(const a of["reportedValueUsd","priorReportedValueUsd","shares","priorShares","shareChange","fundWeightPct","priorFundWeightPct","weightDeltaPctPoints","estimatedNetBoughtSoldUsd","estimatedNetBoughtSoldPctOfReported13fValue"])u[a]=g(i,a);const d=s(u.reportedValueUsd),h=s(u.priorReportedValueUsd),m=null!==(t=null!==(n=s(u.estimatedNetBoughtSoldUsd))&&void 0!==n?n:s(u.shareChange))&&void 0!==t?t:s(u.weightDeltaPctPoints);return i.some((e=>"not_comparable"===e.activityType))?u.activityType="not_comparable":u.activityType=0===d&&h>0?"exit":0===h&&d>0?"new":m>0?"add":m<0?"reduce":"unchanged",u.shareChangePct=u.priorShares>0&&null!==u.shareChange?c(u.shareChange/u.priorShares*100):null,l&&(u.issuer="Alphabet Inc.",u.logoUrl=r,u.reportedShareClasses=[...new Set(i.map((e=>String(e.symbol).toUpperCase())))],u.shareClassAggregation="company_rollup"),u})).sort(((e,t)=>(s(t.fundWeightPct)||0)-(s(e.fundWeightPct)||0)||e.symbol.localeCompare(t.symbol)));return(0,a.A)((0,a.A)({},e),{},{holdings:n})}function x(e){const t=e=>(0,a.A)({},e);return{topFundWeights:[...e].filter((e=>e.managerCount>0)).sort(((e,t)=>(t.managerCount||0)-(e.managerCount||0)||(t.averageFundWeightPct||0)-(e.averageFundWeightPct||0))).slice(0,15).map(t),topAdds:[...e].filter((e=>Number.isFinite(e.netEstimatedBoughtSoldUsd)&&e.netEstimatedBoughtSoldUsd>0)).sort(((e,t)=>t.netEstimatedBoughtSoldUsd-e.netEstimatedBoughtSoldUsd||(t.newCount||0)+(t.addCount||0)-((e.newCount||0)+(e.addCount||0)))).slice(0,15).map(t),topReductions:[...e].filter((e=>Number.isFinite(e.netEstimatedBoughtSoldUsd)&&e.netEstimatedBoughtSoldUsd<0)).sort(((e,t)=>e.netEstimatedBoughtSoldUsd-t.netEstimatedBoughtSoldUsd||(t.reduceCount||0)+(t.exitCount||0)-((e.reduceCount||0)+(e.exitCount||0)))).slice(0,15).map(t)}}function D(e,t,n){if(!e||"object"!==typeof e)return e;const o=Array.isArray(e.managers)?e.managers:[],i=o.filter((e=>h(e,t,n))).map(p),l=function(e,t){const n=new Map;for(const s of(null===e||void 0===e?void 0:e.companies)||[]){const e=m(null===s||void 0===s?void 0:s.symbol);e&&(n.has(e)&&String(s.symbol).toUpperCase()!==e||n.set(e,(0,a.A)((0,a.A)({},s),{},{symbol:e,name:"GOOG"===e?"Alphabet Inc.":s.name,logoUrl:"GOOG"===e?r:s.logoUrl})))}const o=new Map;for(const a of t)if(["complete","partial"].includes(null===a||void 0===a?void 0:a.coverageStatus))for(const e of(null===a||void 0===a?void 0:a.holdings)||[])null!==e&&void 0!==e&&e.symbol&&(o.has(e.symbol)||o.set(e.symbol,[]),o.get(e.symbol).push({manager:a,holding:e}));const i=t.filter((e=>["complete","partial"].includes(null===e||void 0===e?void 0:e.coverageStatus))).length;return[...o.entries()].map((e=>{var t,r,o,l;let[u,d]=e;const h=n.get(u)||{},m=d.filter((e=>{let{holding:t}=e;return(s(t.reportedValueUsd)||0)>0})),g=m.map((e=>{let{holding:t}=e;return s(t.fundWeightPct)||0})),p=d.map((e=>{let{holding:t}=e;return s(t.estimatedNetBoughtSoldUsd)})).filter((e=>null!==e)),x=e=>d.filter((t=>{let{holding:n}=t;return n.activityType===e})).length;return(0,a.A)((0,a.A)({},h),{},{symbol:u,name:h.name||(null===(t=d[0])||void 0===t||null===(r=t.holding)||void 0===r?void 0:r.issuer)||u,logoUrl:h.logoUrl||(null===(o=d[0])||void 0===o||null===(l=o.holding)||void 0===l?void 0:l.logoUrl)||"",sector:h.sector||"",managerCount:m.length,averageFundWeightPct:i?c(g.reduce(((e,t)=>e+t),0)/i):null,averageHolderFundWeightPct:m.length?c(g.reduce(((e,t)=>e+t),0)/m.length):null,maxFundWeightPct:c(Math.max(0,...g)),newCount:x("new"),addCount:x("add"),reduceCount:x("reduce"),exitCount:x("exit"),netEstimatedBoughtSoldUsd:p.length?c(p.reduce(((e,t)=>e+t),0),2):null,benchmarkWeightPct:null,activeOverweightPctPoints:null,benchmarkComparisonStatus:"unavailable"})})).filter((e=>e.managerCount>
20||e.newCount+e.addCount+e.reduceCount+e.exitCount>0)).sort(((e,t)=>{const n=e=>10*(e.managerCount||0)+2*Math.min(25,e.maxFundWeightPct||0)+Math.min(10,Math.abs(e.averageHolderFundWeightPct||0));return n(t)-n(e)||(t.managerCount||0)-(e.managerCount||0)||e.symbol.localeCompare(t.symbol)}))}(e,i),u=i.filter((e=>"complete"===(null===e||void 0===e?void 0:e.coverageStatus))),d=i.filter((e=>"partial"===(null===e||void 0===e?void 0:e.coverageStatus))),g=i.filter((e=>"pending"===(null===e||void 0===e?void 0:e.coverageStatus))),D=[...u,...d],f=D.reduce(((e,t)=>{var n;return((null===t||void 0===t||null===(n=t.current)||void 0===n?void 0:n.filingDate)||"")>e?t.current.filingDate:e}),"")||D.length&&e.sourceUpdatedAt||null;return(0,a.A)((0,a.A)({},e),{},{sourceUpdatedAt:f,filingCalendar:e.filingCalendar?(0,a.A)((0,a.A)({},e.filingCalendar),{},{latestObservedFilingDate:f}):e.filingCalendar,managers:i,companies:l,consensus:x(l),coverage:(0,a.A)((0,a.A)({},e.coverage||{}),{},{managerUniverseSize:i.length,managerCompleteCount:u.length,managerPartialCount:d.length,managerFailedCount:i.length-D.length-g.length,managerPendingCount:g.length,comparableManagerCount:u.length,cachedCompanyCount:l.length,partial:D.length!==i.length||d.length>0,reviewedManagerUniverseSize:o.length}),managerScope:t})}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"discretionary",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=["all","custom"].includes(t)?t:"discretionary",o=[...new Set((n||[]).map(l).filter(Boolean))],i=D(e,r,o);return i&&"object"===typeof i?(0,a.A)((0,a.A)({},i),{},{history:(Array.isArray(e.history)?e.history:[]).map((e=>D(e,r,o)))}):i}Object.freeze([...o])}
2,27899:(e,t,n)=>{n.d(t,{A:()=>a});const a=(0,n(31212).A)("arrow-down-right",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]])},75748:(e,t,n)=>{n.d(t,{b:()=>s});var a=n(65043),r=n(41603),o=n(27928),i=["axis"],s=(0,a.forwardRef)(((e,t)=>a.createElement(o.P,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:i,tooltipPayloadSearcher:r.uN,categoricalChartProps:e,ref:t})))}}]);
3//# sourceMappingURL=live-research.f905bbd9.chunk.js.map

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.