1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/EmbeddedStandingsSection-D2ArR60Z.js","assets/index-BO6Ka_k5.js","assets/index-5iStlh7B.css","assets/TableStandings-BMfIHBJN.js","assets/TeamNameIcon-DlkAhuz7.js","assets/TeamNameIcon-BsqOuCJ4.css","assets/TableStandings-gIctuDvN.css","assets/EmbeddedSectionEmpty-ChKCwdKg.js","assets/legacy-style-scoping-DLBkiVNm.js","assets/useListAdSlots-C7nMdGEr.js","assets/EmbeddedTopScorersSection-BmtH99s5.js","assets/LeaderboardCard-CY4NGEks.js","assets/LeaderboardCard-B4Ih5QZ_.css","assets/EmbeddedAthleteCardSection-Bmlx93XK.js","assets/AthleteProfile-Bv5iwXi7.js","assets/country.helpers-DSCJWkTt.js","assets/AthleteProfile-D9YD57Z5.css","assets/embedded-article-sections.tools-Bdvdlk7v.js","assets/EmbeddedGamesListSection-DZtzG7Dn.js","assets/MultipleUpcomingGames-DDcNknaw.js","assets/SingleGameBox-DCQMy67n.js","assets/SingleGameBox-DWhvu-xM.css","assets/MultipleUpcomingGames-Cm1RsFFS.css","assets/useEmbeddedSiteTeams-Bhz3obOy.js","assets/EmbeddedCurrentGameSection-faAPEE4o.js","assets/EmbeddedCurrentGameSection-CVBWkpNt.css","assets/EmbeddedTeamFormSection-DKYNe_2X.js","assets/TeamForm-CdzLOhfO.js","assets/SeasonStats-BjV1nSC5.js","assets/index-U3FaD8rQ.js","assets/index-DXE9qYuN.css","assets/SeasonStats-1OoWUUJZ.css","assets/TeamForm-DkGpBtpa.css","assets/EmbeddedBoxscoreSection-CQxlV5v5.js"])))=>i.map(i=>d[i]); 2import{a1 as Se,S as he,cs as ve,o as C,w as L,ct as Ee,n as k,j as y,r as P,z as B,D as b,E as x,an as _e,ag as Ae,aa as O,F as J,K as ie,J as I,B as T,C as f,I as _,N as D,s as A,_ as w,a4 as we,b as Le,ab as de,Q as Ce,T as le,by as ke,aI as Ie,aJ as ce,cu as R,bQ as Te,P as Re,f as De,cv as He,W as Pe,cw as xe,bs as Oe,G as M,H as N}from"./index-BO6Ka_k5.js";import{a as Be,e as Me}from"./legacy-style-scoping-DLBkiVNm.js";import{u as Ne}from"./useListAdSlots-C7nMdGEr.js";const $e=4,Fe=1.6,je={name:"ReadMoreContent",components:{SyButton:he,SdpStreamlineIcon:Se},props:{content:{type:String,default:""},visibleLines:{type:Number,default:$e}},setup(e){const t=ve(),o=P(null),r=P(!1),n=P(!1),s=y(()=>{var u,c;return!!((c=(u=t.default)==null?void 0:u.call(t))!=null&&c.length)}),d=y(()=>r.value?{}:{"--read-more-lines":e.visibleLines,"--read-more-line-height":Fe}),a=y(()=>n.value||r.value),l=()=>{k(()=>{const u=o.value;u&&(n.value=u.scrollHeight>u.clientHeight)})},i=()=>{r.value=!r.value};return C(l),L(()=>e.content,l),Ee(()=>{s.value&&l()}),{contentRef:o,isExpanded:r,hasOverflow:n,contentStyle:d,showReadMore:a,toggle:i,useDefaultSlot:s}}},Ve={class:"read-more-block"},qe=["innerHTML"],Ke={key:0,class:"flex justify-center mt-4"};function ze(e,t,o,r,n,s){const d=T("sdp-streamline-icon"),a=T("sy-button");return f(),b("div",Ve,[x("div",{ref:"contentRef",class:O(["read-more-content",{"is-expanded":r.isExpanded,"has-overflow":r.hasOverflow}]),style:Ae(r.contentStyle)},[r.useDefaultSlot?_e(e.$slots,"default",{key:0},void 0,!0):(f(),b("div",{key:1,innerHTML:o.content},null,8,qe))],6),r.showReadMore?(f(),b("div",Ke,[J(a,{class:"toggle-button",flat:"",size:"small",onClick:r.toggle},{default:ie(()=>[r.isExpanded?(f(),_(d,{key:1,icon:"arrowUp",class:"toggle-icon",size:15})):(f(),_(d,{key:0,icon:"arrowDown",class:"toggle-icon",size:15})),x("div",null,D(r.isExpanded?e.$t("gamestats.hide"):e.$t("gamestats.show_more")),1)]),_:1},8,["onClick"])])):I("",!0)])}const Ge=B(je,[["render",ze],["__scopeId","data-v-270635ce"]]),ue={"stat-standings":{component:A(()=>w(()=>import("./EmbeddedStandingsSection-D2ArR60Z.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),headingKey:"site.standings"},"stat-top-scorers":{component:A(()=>w(()=>import("./EmbeddedTopScorersSection-BmtH99s5.js"),__vite__mapDeps([10,11,1,2,12,7,8,9]))),headingKey:"sports.leaderboard"},"stat-athlete-card":{component:A(()=>w(()=>import("./EmbeddedAthleteCardSection-Bmlx93XK.js"),__vite__mapDeps([13,14,1,2,15,16,17,7,8,9])))},"stat-fixtures":{component:A(()=>w(()=>import("./EmbeddedGamesListSection-DZtzG7Dn.js"),__vite__mapDeps([18,1,2,19,20,4,5,21,22,17,7,23,8,9]))),headingKey:"game_schedule.upcoming_games"},"stat-results":{component:A(()=>w(()=>import("./EmbeddedGamesListSection-DZtzG7Dn.js"),__vite__mapDeps([18,1,2,19,20,4,5,21,22,17,7,23,8,9]))),headingKey:"game_schedule.played_games"},"stat-current-game":{component:A(()=>w(()=>import("./EmbeddedCurrentGameSection-faAPEE4o.js"),__vite__mapDeps([24,1,2,20,4,5,21,17,7,23,8,9,25]))),headingKey:"upcoming_game.game"},"stat-team-form":{component:A(()=>w(()=>import("./EmbeddedTeamFormSection-DKYNe_2X.js"),__vite__mapDeps([26,1,2,27,28,4,5,29,30,31,32,17,7,23,8,9])))},"stat-boxscore":{component:A(()=>w(()=>
2import("./EmbeddedBoxscoreSection-CQxlV5v5.js"),__vite__mapDeps([33,1,2,17,7,23,8,9])))}},We=new Set(Object.keys(ue));function me(e){return ue[e]??null}function Ue(e){var t;return((t=me(e))==null?void 0:t.component)??null}const fe=Symbol("embeddedSectionContext");function Je(){const e=we(fe);if(!e)throw new Error("useEmbeddedSectionContext must be used within EmbeddedSectionArticleMount");if(typeof e=="object"&&e!==null&&"identifier"in e)return e;throw new Error("Embedded section context must be provided as ToRefs from EmbeddedSectionArticleMount")}function Ye(e){if(e==null||typeof e!="object"||Array.isArray(e))return e;const t=e;return typeof t.identifier=="string"&&typeof t.resolvedAt=="string"&&"config"in t&&Object.prototype.hasOwnProperty.call(t,"payload")?t.payload:e}function $(e){const t=String(e??"").trim().toLowerCase();return t==="left"||t==="center"||t==="right"?t:null}function Yt(e){if(e==null)return[];if(Array.isArray(e))return e;if(typeof e=="object"){const t=e,r=["payload","players","leaderboard","data","items","rows"].find(n=>Array.isArray(t[n]));if(r)return t[r]}return[]}function Qe(e){const t=e??Je(),{t:o}=Le(),r=y(()=>Ye(t.resolved.value)),n=y(()=>{var p;const i=$((p=t.alignment)==null?void 0:p.value);if(i)return i;const u=t.sectionConfig.value,c=$(u==null?void 0:u.alignment);return c||$(t.displayVariant.value)}),s=y(()=>{var p;const i=[],u=n.value;u&&(i.push(`embedded-section-mount--align-${u}`),i.push(`text-${u}`)),t.columnSpan.value===1&&i.push("embedded-section-mount--compact");const c=(p=t.sectionLayout)==null?void 0:p.value;return c==="flow-text"?i.push("embedded-section-mount--flow-text"):c==="centered"&&i.push("embedded-section-mount--centered"),i}),d=y(()=>{const i=t.sectionConfig.value;return typeof(i==null?void 0:i.heading)=="string"?i.heading.trim():""}),a=(i,u)=>y(()=>d.value?d.value:u?o(u):""),l=y(()=>{if(d.value)return d.value;const i=me(t.identifier.value);return i!=null&&i.headingKey?o(i.headingKey):""});return{t:o,resolvedPayload:r,embeddedAlignment:n,mountClasses:s,headingFromConfig:d,headingFor:a,sectionHeading:l}}const Xe=de({name:"EmbeddedSectionHeading",components:{SyHeading:Ce},props:{label:{type:String,default:""}}});function Ze(e,t,o,r,n,s){const d=T("sy-heading");return e.label?(f(),_(d,{key:0,class:"embedded-section-heading",heading:"heading 4","heading-label":e.label,"is-section-heading":!0,"has-rectangle":!1},null,8,["heading-label"])):I("",!0)}const et=B(Xe,[["render",Ze],["__scopeId","data-v-838bfdba"]]);function tt(e){try{const t=new Date(e),o=ke(t);return`${new Intl.DateTimeFormat(void 0,{day:"numeric",month:"short"}).format(t)}, ${o}`}catch{return null}}const nt=de({name:"EmbeddedSectionArticleMount",components:{EmbeddedSectionHeading:et},props:{identifier:{type:String,required:!0},resolved:{type:[Object,Array],default:null},resolveError:{type:String,default:null},degraded:{type:String,default:null},columnSpan:{type:Number,default:3},sectionConfig:{type:Object,default:null},displayVariant:{type:String,default:null},mode:{type:String,default:null},sectionLayout:{type:String,default:null},alignment:{type:String,default:null},resolvedAt:{type:String,default:null}},setup(e){const t=le(e),{mountClasses:o,t:r,sectionHeading:n}=Qe(t);Ie(fe,t);const s=y(()=>Ue(e.identifier)),d=y(()=>e.identifier&&We.has(e.identifier)?r("site.no_data_available"):e.identifier?`Embedded section (â${e.identifier}â) is not available in the article viewer yet.`:r("site.no_data_available")),a=y(()=>e.resolvedAt?tt(e.resolvedAt):null);return{mountClasses:o,sectionComponent:s,sectionHeading:n,fallbackText:d,resolvedAtFormatted:a}}}),ot=["data-column-span"],rt={key:0,class:"text-sm text-red-600"},st={key:1,class:"embedded-section-mount__content w-full flex flex-col gap-1"},at={key:1,class:"text-xs font-subheader text-sdpSubHeader italic mt-3 self-end"},it={key:2,class:"text-sm text-sdpGray"},dt={key:3,class:"text-sm text-sdpGray italic"};function lt(e,t,o,r,n,s){const d=T("embedded-section-heading");return f(),b("div",{class:O(["embedded-section-mount",e.mountClasses]),"data-column-span":e.columnSpan},[e.resolveError?(f(),b("p",rt,D(e.resolveError),1)):e.sectionComponent?(f(),b("div",st,[e.sectionHeading?(f(),_(d,{key:0,label:e.sectionHeading},null,8,["label"])):I("",!0),(f(),_(ce(e.sectionComponent))),e.mode==="dynamic"&&e.resolvedAtFormatted?(f(),b("p",at,D(e.$t("site.last_updated",{timestamp:e.resolvedAtFormatted})),1)):I("",!0)])):e.degraded==="unavailable"?(f(),b("p",it,D(e.$t("site.no_data_available")),1)):(f(),b("p",dt,D(e.fallbackText),1))],10,ot)}const ct=B(nt,[["render",lt],["__scopeId","data-v-c3882027"]]);function G(e,t){const o=Number(e);return Number(t)===2?o===1?1:o===2?2:3:o===1?2:3}function ut(e){const t=Number(e);return t===1||t===2||t===3?t:3}function mt(e){return e===1?3:e===2?2:1}function F(e){if(e==null)return{empty:!0,type:e===null?"null":"undefined"};
2if(Array.isArray(e))return{empty:e.length===0,type:"array",length:e.length};if(typeof e=="object"){const t=Object.keys(e);return{empty:t.length===0,type:"object",keyCount:t.length,keys:t.slice(0,15)}}return{empty:!1,type:typeof e,value:e}}function ft(e){return typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function Y(e){try{const t=JSON.parse(e);return t===null||typeof t!="object"||Array.isArray(t)?null:t}catch{return null}}function pt(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}function yt(e){const t=[],o=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi;let r=o.exec(e);for(;r;){const n=r[1],s=r[2].trim();if(!/\btype="application\/json"/i.test(n)||!/\bdata-embedded-section-payload="/i.test(n)){r=o.exec(e);continue}const d=n.match(/\bdata-embedded-section-payload="([^"]+)"/i),a=d?pt(d[1]):"",l=Y(s);a&&l&&t.push({embedId:a,payload:l}),r=o.exec(e)}return t}function bt(e){const t=new Map,o=yt(e);return o.forEach(({embedId:n,payload:s})=>{t.set(n,s)}),!(e!=null&&e.trim())||typeof document>"u"?{byEmbedId:t,ordered:o}:(new DOMParser().parseFromString(e,"text/html").querySelectorAll('script[type="application/json"][data-embedded-section-payload]').forEach(n=>{var l;const s=n.getAttribute("data-embedded-section-payload"),d=(l=n.textContent)==null?void 0:l.trim();if(!s||!d)return;const a=Y(d);a&&(t.set(s,a),o.some(i=>i.embedId===s)||o.push({embedId:s,payload:a}))}),{byEmbedId:t,ordered:o})}function W(e,t,o,r,n){var d;if(e){const a=r.byEmbedId.get(e);if(a)return a;const l=`script[type="application/json"][data-embedded-section-payload="${ft(e)}"]`,i=(o==null?void 0:o.querySelector(l))??t.querySelector(l),u=(d=i==null?void 0:i.textContent)==null?void 0:d.trim();if(u){const c=Y(u);if(c)return c}}const s=r.ordered[n];return s?s.payload:null}function U(e){for(;e.length>0;){const t=e.pop();if(t)try{t.unmount()}catch{}}}function gt(e){e.querySelectorAll(".embedded-section[data-embedded-hydrated]").forEach(t=>{t.removeAttribute("data-embedded-hydrated")})}const Q="embedded-section-row",h="embedded-section-slot";function St(e){let t=e.firstElementChild;for(;t;){const o=t.nextElementSibling;if(t.tagName==="DIV"&&t.classList.contains("embedded-section")&&t.parentElement===e){const n=t.nextElementSibling;if((n==null?void 0:n.tagName)==="SCRIPT"&&n.getAttribute("type")==="application/json"&&n.hasAttribute("data-embedded-section-payload")&&n){const d=t.getAttribute("data-column-span")??"3",a=document.createElement("div");a.className=h,a.setAttribute("data-column-span",d),e.insertBefore(a,t),a.appendChild(t),a.appendChild(n),t=a.nextElementSibling}else t=o}else t=o}}function j(e){return ut(e.getAttribute("data-column-span"))}function ne(e){return e.getAttribute("data-section-layout")==="flow-text"}function ht(e){return e.classList.contains(h)||e.classList.contains(Q)?!1:e.tagName!=="P"?!0:(e.textContent??"").replace(/<br\s*\/?>/gi,"").replace(/ /gi,"").replace(/\u00a0/g,"").replace(/\s/g,"").trim()===""}function pe(e,t,o){e.setAttribute("data-cols",String(o)),e.setAttribute("data-layout-span",String(t))}function vt(e,t,o){if(t.length<1)return;const r=document.createElement("div");r.className=Q,pe(r,o,t.length);const n=t[0].getAttribute("data-section-layout"),s=t[0].getAttribute("data-alignment");n&&r.setAttribute("data-section-layout",n),s&&r.setAttribute("data-alignment",s),e.insertBefore(r,t[0]),t.forEach(d=>r.appendChild(d))}function Et(e){let t=!0;for(;t;){t=!1;const o=Array.from(e.children);for(let r=0;r<o.length;r+=1){const n=o[r];if(n.classList.contains(Q)){const s=n,d=s.querySelectorAll(`:scope > .${h}`);d.length>=1&&pe(s,j(d[0]),d.length)}else if(n.classList.contains(h)){const s=j(n);if(s===3||ne(n))continue;const d=[n],a=mt(s);let l=r+1;for(;l<o.length;){const i=o[l];if(i.classList.contains(h)){if(ne(i)||j(i)!==s||(d.push(i),l+=1,d.length>=a))break}else if(ht(i))l+=1;else break}if(d.length>1){vt(e,d,s),t=!0;break}}else continue}}}function _t(e,t,o,r){var a,l;const n=(a=e.querySelector(".embedded-section"))==null?void 0:a.getAttribute("data-embed-id");if(!n)return;const s=W(n,o,e,t,r);if(!s)return;const d=G(s.columnSpan,s.columnSpanVersion);e.setAttribute("data-column-span",String(d)),(l=e.querySelector(".embedded-section"))==null||l.setAttribute("data-column-span",String(d)),typeof s.alignment=="string"&&s.alignment&&e.setAttribute("data-alignment",s.al
2ignment),typeof s.sectionLayout=="string"&&s.sectionLayout&&e.setAttribute("data-section-layout",s.sectionLayout)}function At(e,t){let o=0;e.querySelectorAll(".html-render-container").forEach(r=>{const n=r;St(n),n.querySelectorAll(`.${h}`).forEach(s=>{_t(s,t,e,o),o+=1}),Et(n)})}function oe(e,t,o,r){const n=J(ct,t);o&&(n.appContext=o),R(n,e),e.setAttribute("data-embedded-hydrated","1"),r.push({unmount:()=>{R(null,e),e.removeAttribute("data-embedded-hydrated")}})}function wt(e,t,o="",r=null){if(!e)return;U(t),gt(e);const n=bt(o);e.querySelectorAll(`.${h}`).length,n.ordered.length,n.ordered.map(({embedId:a,payload:l})=>({embedId:a,identifier:l.sectionTypeIdentifier,resolved:F(l.resolved),resolveError:l.resolveError??null,degraded:l.degraded??null})),At(e,n);const s=Array.from(e.querySelectorAll(`.${h}`));s.forEach((a,l)=>{const i=a.querySelector(".embedded-section");if(!i||i.hasAttribute("data-embedded-hydrated"))return;const u=i.getAttribute("data-embed-id")??"",c=W(u,e,a,n,l);if(!c)return;const p=typeof c.sectionTypeIdentifier=="string"?c.sectionTypeIdentifier:"",m=G(c.columnSpan,c.columnSpanVersion);F(c.resolved),c.resolveError,c.degraded,c.config;try{oe(i,{identifier:p,resolved:c.resolved??null,resolveError:c.resolveError??null,degraded:c.degraded??null,columnSpan:m,sectionConfig:c.config??null,displayVariant:c.displayVariant??null,mode:typeof c.mode=="string"?c.mode:null,sectionLayout:typeof c.sectionLayout=="string"?c.sectionLayout:null,alignment:typeof c.alignment=="string"?c.alignment:null,resolvedAt:typeof c.resolvedAt=="string"?c.resolvedAt:null},r,t)}catch(g){g instanceof Error?g.message:String(g),R(null,i),i.removeAttribute("data-embedded-hydrated")}}),Array.from(e.querySelectorAll(".embedded-section")).filter(a=>!a.hasAttribute("data-embedded-hydrated")&&!a.closest(`.${h}
2`)).forEach((a,l)=>{const i=a,u=s.length+l,c=i.getAttribute("data-embed-id")??"",p=i.closest(`.${h}`),m=W(c,e,p,n,u);if(!m)return;const g=typeof m.sectionTypeIdentifier=="string"?m.sectionTypeIdentifier:"",v=G(m.columnSpan,m.columnSpanVersion);F(m.resolved),m.resolveError,m.degraded,m.config;try{oe(i,{identifier:g,resolved:m.resolved??null,resolveError:m.resolveError??null,degraded:m.degraded??null,columnSpan:v,sectionConfig:m.config??null,displayVariant:m.displayVariant??null,mode:typeof m.mode=="string"?m.mode:null,sectionLayout:typeof m.sectionLayout=="string"?m.sectionLayout:null,alignment:typeof m.alignment=="string"?m.alignment:null,resolvedAt:typeof m.resolvedAt=="string"?m.resolvedAt:null},r,t)}catch(S){S instanceof Error?S.message:String(S),R(null,i),i.removeAttribute("data-embedded-hydrated")}})}const Lt="@@EMBED_BLOCK_";function Ct(e){if(!(e!=null&&e.trim()))return[];let t=Lt;for(;e.includes(t);)t+="_";const o=[],r=a=>{const l=o.length;return o.push(a),`${t}${l}@@`};let n=e;n=n.replace(/<div class="embedded-section-row"[^>]*>(?:\s*<div class="embedded-section-slot"[\s\S]*?<\/script>\s*<\/div>\s*)+<\/div>/gi,r),n=n.replace(/<div class="embedded-section-slot"[^>]*>[\s\S]*?<\/script>\s*<\/div>/gi,r),n=n.replace(/<div class="embedded-section"[^>]*>\s*<\/div>\s*<script\b[^>]*\bdata-embedded-section-payload="[^"]+"[^>]*>[\s\S]*?<\/script>/gi,r);const s=n.split(/(?=<h3\b)/i),d=new RegExp(`${t.replace(/[@]/g,"\\$&")}(\\d+)@@`,"g");return s.map(a=>a.replace(d,(l,i)=>o[Number(i)]??""))}const V="data-anchor-link-ready",kt=new Set(["H1","H2","H3","H4","H5","H6"]),re="anchor-target--framed",It="table-scroll",Tt=new Set(["P"]);function Rt(e,t=null){if(!e)return()=>{};const o=[];return e.querySelectorAll(`[id].anchor-target:not([${V}])`).forEach(n=>{const s=kt.has(n.tagName),d=Tt.has(n.tagName)||n.classList.contains(It),a=document.createElement("span"),l=s&&"inline"||d&&"corner-outside"||"corner";a.className=`anchor-copy-host anchor-copy-host--${l}`,s?n.appendChild(a):d?n.before(a):(n.classList.add(re),n.prepend(a));const i=J(Te,{anchorId:n.id});t&&(i.appContext=t),R(i,a),n.setAttribute(V,"1"),o.push({host:a,target:n})}),()=>{o.forEach(({host:n,target:s})=>{try{R(null,n)}catch{}n.remove(),s.removeAttribute(V),s.classList.remove(re)}),o.length=0}}const se=".table-scroll",q=1,Dt="is-scrollable",Ht="at-scroll-start",Pt="at-scroll-end";function K(e){const t=e.scrollWidth-e.clientWidth,o=t>q;e.classList.toggle(Dt,o),e.classList.toggle(Ht,!o||e.scrollLeft<=q),e.classList.toggle(Pt,!o||e.scrollLeft>=t-q)}function xt(e){const t=()=>{};if(!e||typeof ResizeObserver>"u")return t;const o=Array.from(e.querySelectorAll(se));if(!o.length)return t;const r=s=>K(s.currentTarget),n=new ResizeObserver(s=>s.forEach(d=>{const a=d.target.closest(se);a&&K(a)}));return o.forEach(s=>{K(s),s.addEventListener("scroll",r,{passive:!0}),n.observe(s);const d=s.querySelector("table");d&&n.observe(d)}),()=>{n.disconnect(),o.forEach(s=>s.removeEventListener("scroll",r))}}const Ot="https://www.tiktok.com/embed.js",Bt="https://platform.twitter.com/widgets.js",Mt="https://www.instagram.com/embed.js",z=new Set;let H=!1;function ae(e){if(z.has(e))return;z.add(e);const t=document.createElement("script");t.src=e,t.async=!0,t.onerror=()=>{z.delete(e)},document.body.appendChild(t)}function Nt(){if(H)return;H=!0;const e=document.createElement("script");e.src=Ot,e.async=!0,e.onload=()=>{H=!1},e.onerror=()=>{H=!1},document.body.appendChild(e)}function $t(e){var o,r,n,s;if(!e)return;const t=d=>Array.from(e.querySelectorAll(d)).some(a=>!a.querySelector("iframe"));t(".twitter-tweet")&&((r=(o=window.twttr)==null?void 0:o.widgets)!=null&&r.load?window.twttr.widgets.load():ae(Bt)),t(".instagram-media")&&((s=(n=window.instgrm)==null?void 0:n.Embeds)!=null&&s.process?window.instgrm.Embeds.process():ae(Mt)),t(".tiktok-embed")&&Nt()}function Ft(e){if(!e||typeof document>"u")return e;const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll(".embedded-section-row, .embedded-section-slot").forEach(o=>{o.remove()}),t.innerHTML}const jt={name:"ArticleHtmlRenderer",components:{DynamicAd:Re,ReadMoreContent:Ge},props:{version:{type:Number,default:void 0},body:{type:String,default:""},holder:{type:String,default:""},isReadMoreEnabled:{type:Boolean,default:!1},visibleLines:{type:Number,default:4},variant:{type:String,default:"article",validator:e=>["article","section"].includes(e)}},setup(e){const t=De(),o=Ne(Pe.ARTICLE_IN_BODY),{version:r,body:n}=le(e),s=P(null),d=[],a=xe(),l=y(()=>t.isFeatureFlagEnabledForCurrentSite(Oe.EMBEDDED_SECTIONS)),i=()=>{var E;U(d),(E=s.value)==null||E.querySelectorAll(".embedded-section-row, .embedded-section-slot").forEach(ge=>{ge.remove()})},u=()=>{k(()=>
2{if(!l.value){i();return}wt(s.value,d,m.value,a==null?void 0:a.appContext)})},c=y(()=>Me(n.value)),p=y(()=>c.value.css),m=y(()=>{const E=c.value.body;return l.value?E:Ft(E)}),g=y(()=>Ct(m.value??""));let v=null,S=null;const X=()=>{k(()=>{S==null||S(),S=Rt(s.value,a==null?void 0:a.appContext)})},Z=()=>{k(()=>{v==null||v(),v=xt(s.value)})},ee=()=>{k(()=>Be(s.value))},te=()=>{k(()=>$t(s.value))};C(u),C(Z),C(ee),C(X),C(te),L(()=>e.body,u),L(l,u),L(g,u,{flush:"post"}),L(g,Z,{flush:"post"}),L(p,ee,{flush:"post"}),L(g,X,{flush:"post"}),L(g,te,{flush:"post"}),He(()=>{U(d),v==null||v(),S==null||S()});const ye=y(()=>r.value),be=()=>typeof window<"u"&&window.innerWidth<979;return{articleVersion:ye,articleBody:g,scopedStyles:p,showAds:E=>E<g.value.length&&E!==0&&o.shouldShowAdAt(E-1,be()),hydrationRoot:s,articleInBodySlot:o}}},Vt={ref:"hydrationRoot",class:"article-html-renderer-root"},qt=["innerHTML"],Kt=["innerHTML"];function zt(e,t,o,r,n,s){const d=T("dynamic-ad"),a=T("read-more-content");return f(),b("div",Vt,[(f(!0),b(M,null,N(r.scopedStyles,(l,i)=>(f(),_(ce("style"),{key:`scoped-style-${i}`,innerHTML:l},null,8,["innerHTML"]))),128)),o.isReadMoreEnabled?(f(),_(a,{key:0,"visible-lines":o.visibleLines},{default:ie(()=>[(f(!0),b(M,null,N(r.articleBody,(l,i)=>{var u,c,p;return f(),b("div",{key:i},[r.showAds(i)?(f(),_(d,{key:0,"desktop-placement-key":((u=r.articleInBodySlot.config)==null?void 0:u.desktopPlacementKey)??null,"mobile-placement-key":((c=r.articleInBodySlot.config)==null?void 0:c.mobilePlacementKey)??null,"data-keywords":((p=r.articleInBodySlot.config)==null?void 0:p.keywords)??["in-article"],"custom-class":"my-6"},null,8,["desktop-placement-key","mobile-placement-key","data-keywords"])):I("",!0),x("div",{class:O(["html-render-container",`html-render-container--${o.variant}`]),innerHTML:l},null,10,qt)])}),128))]),_:1},8,["visible-lines"])):(f(!0),b(M,{key:1},N(r.articleBody,(l,i)=>{var u,c,p;return f(),b("div",{key:i},[r.showAds(i)?(f(),_(d,{key:0,"desktop-placement-key":((u=r.articleInBodySlot.config)==null?void 0:u.desktopPlacementKey)??null,"mobile-placement-key":((c=r.articleInBodySlot.config)==null?void 0:c.mobilePlacementKey)??null,"data-keywords":((p=r.articleInBodySlot.config)==null?void 0:p.keywords)??["in-article"],"custom-class":"my-6"},null,8,["desktop-placement-key","mobile-placement-key","data-keywords"])):I("",!0),x("div",{class:O(["html-render-container",`html-render-container--${o.variant}`]),innerHTML:l},null,10,Kt)])}),128))],512)}const Qt=B(jt,[["render",zt],["__scopeId","data-v-68575dcf"]]);export{Qt as A,Qe as a,Yt as t,Je as u};
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.