1(()=>{const ACCORDION_SELECTOR='.getting-started-accordian';const BOTTOM_SECTION_SELECTOR='.bottom-section';const VISIBLE_CLASS='bottom-section--visible';const getAccordionExpandedState=(panel)=>{if(!panel)return!1;if(panel.hasAttribute('expanded'))return!0;if(panel.getAttribute('value')==='expand')return!0;const shadow=panel.shadowRoot;if(!shadow)return!1;const button=shadow.querySelector('.helix-core-accordion__panel-button');if(button){return button.getAttribute('aria-expanded')==='true'} 2const panelNode=shadow.querySelector('.helix-core-accordion__panel');if(panelNode){return panelNode.classList.contains('helix-core-accordion__panel--expanded')} 3return!1};const initBottomSectionToggle=()=>{const accordion=document.querySelector(ACCORDION_SELECTOR);const bottomSection=document.querySelector(BOTTOM_SECTION_SELECTOR);if(!accordion||!bottomSection)return;document.documentElement.classList.add('getting-started-accordion-sync');const panel=accordion.querySelector('helix-core-accordion-panel');if(!panel)return;const setBottomSectionVisibility=(isVisible)=>{bottomSection.classList.toggle(VISIBLE_CLASS,isVisible);bottomSection.hidden=!isVisible;bottomSection.setAttribute('aria-hidden',String(!isVisible))};const syncVisibility=()=>{const isExpanded=getAccordionExpandedState(panel);setBottomSectionVisibility(isExpanded)};syncVisibility();const panelObserver=new MutationObserver(syncVisibility);panelObserver.observe(panel,{attributes:!0,attributeFilter:['expanded','value']});const connectShadowObservers=()=>{const shadow=panel.shadowRoot;if(!shadow)return!1;const shadowObserver=new MutationObserver(syncVisibility);shadowObserver.observe(shadow,{attributes:!0,attributeFilter:['aria-expanded','class'],childList:!0,subtree:!0});return!0};if(!connectShadowObservers()){const retryObserver=new MutationObserver(()=>{if(connectShadowObservers()){syncVisibility();retryObserver.disconnect()}});retryObserver.observe(panel,{childList:!0,subtree:!0})} 4accordion.addEventListener('click',()=>{requestAnimationFrame(()=>{requestAnimationFrame(syncVisibility)})})};if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',initBottomSectionToggle)}else{initBottomSectionToggle()}})()
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.