1(()=>{"use strict";const e={n:t=>{const i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:(e,t)=>Object.hasOwn(e,t)},t=window.wp.element;function i(e){var t,s,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(s=i(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}const s=function(){for(var e,t,s=0,n="",r=arguments.length;s<r;s++)(e=arguments[s])&&(t=i(e))&&(n&&(n+=" "),n+=t);return n},n=(0,t.createContext)(null);class r{static instance=null;constructor(){if(r.instance)return r.instance;r.instance=this}static getInstance(){return r.instance||(r.instance=new r),r.instance}apply(e,t){t&&"big-cursor"!==t.value&&("mask"===t.value&&this.applyCursorMask(),"guideline"===t.value&&this.applyCursorGuideline())}remove(){const e=document.getElementById("wap-cursor-mask"),t=document.getElementById("wap-cursor-outline");e&&e.remove(),t&&t.remove();const i=document.getElementById("wap-cursor-guideline");i&&i.remove(),document.removeEventListener("mousemove",this.updateMaskCursor),document.removeEventListener("mousemove",this.updateGuidelineCursor),this.maskOutlineElement=null,this.maskHalfHeight=null}applyCursorMask(){if(document.getElementById("wap-cursor-mask"))return;const e=document.createElement("div");e.id="wap-cursor-mask",e.style.setProperty("--mask-height","300px"),e.style.setProperty("--half-mask-height","150px"),Object.assign(e.style,{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",pointerEvents:"none",backgroundColor:"rgba(0, 0, 0, 0.7)",maskImage:"linear-gradient(to bottom,\n black 0,\n black calc(var(--y, 50%) - var(--half-mask-height)),\n transparent calc(var(--y, 50%) - var(--half-mask-height)),\n transparent calc(var(--y, 50%) + var(--half-mask-height)),\n black calc(var(--y, 50%) + var(--half-mask-height)),\n black 100%)",WebkitMaskImage:"linear-gradient(to bottom,\n black 0,\n black calc(var(--y, 50%) - var(--half-mask-height)),\n transparent calc(var(--y, 50%) - var(--half-mask-height)),\n transparent calc(var(--y, 50%) + var(--half-mask-height)),\n black calc(var(--y, 50%) + var(--half-mask-height)),\n black 100%)",zIndex:"999999"});const t=document.createElement("div");t.id="wap-cursor-outline",Object.assign(t.style,{position:"fixed",left:"0",width:"100vw",height:"300px",pointerEvents:"none",borderTop:"3px solid yellow",borderBottom:"3px solid yellow",boxSizing:"border-box",zIndex:"999999"}),document.body.appendChild(e),document.body.appendChild(t),this.maskOutlineElement=t,this.maskHalfHeight=150,document.addEventListener("mousemove",this.updateMaskCursor)}updateMaskCursor=e=>{const t=document.getElementById("wap-cursor-mask"),i=this.maskOutlineElement,s=this.maskHalfHeight;if(t&&t.style.setProperty("--y",`${e.clientY}px`),i){const t=Math.max(0,Math.min(window.innerHeight-2*s,e.clientY-s));i.style.top=`${t}px`}};applyCursorGuideline(){if(document.getElementById("wap-cursor-guideline"))return;const e=document.createElement("div");e.id="wap-cursor-guideline",Object.assign(e.style,{position:"fixed",left:"0",top:"0",width:"45vw",height:"10px",backgroundColor:"#000",outline:"2px solid yellow",borderRadius:"2px",pointerEvents:"none",zIndex:"999999",transition:"top 0.02s linear, left 0.02s linear"}),document.body.appendChild(e),document.addEventListener("mousemove",this.updateGuidelineCursor)}updateGuidelineCursor=e=>{const t=document.getElementById("wap-cursor-guideline");if(!t)return;const i=t.offsetWidth,s=window.innerWidth;let n=e.clientX-i/2;n<0&&(n=0),n+i>s&&(n=s-i);const r=e.clientY-15;t.style.left=`${n}px`,t.style.top=`${r}px`}}const o=()=>r.getInstance(),a=/^[A-Za-z][A-Za-z'â-]{0,63}$/,c="Looking upâ¦";class l{constructor(){this.popup=null,this.popupAnchor=null,this.currentWord="",this.entries=[],this.entryIndex=0,this.pendingSpeakTimer=null,this.keepAliveTimer=null,this.isReading=!1,this.isActive=!1,this.clickHandler=this.handleOutsideClick.bind(this),this.dblClickHandler=this.handleDoubleClick.bind(this)}handleDoubleClick(e){if(e.target instanceof Node&&this.popup?.contains(e.target))return;const t=document.querySelector(".wap-preset__preview-drawer-root");
1if(t?.contains(e.target))return;this.removePopup(),document.querySelectorAll(".wap-dictionary-popup").forEach(e=>e.remove());const i=window.getSelection(),s=i.toString().trim();if(s&&a.test(s)){this.currentWord=s;const e=i.getRangeAt(0).getBoundingClientRect();this.showPopup(e.left+window.scrollX,e.top+window.scrollY-25)}}apply(){this.isActive||(this.isActive=!0,document.addEventListener("dblclick",this.dblClickHandler))}remove(){this.isActive=!1,this.removePopup(),document.removeEventListener("dblclick",this.dblClickHandler)}showPopup(e,t){this.removePopup();const i=this.currentWord;this.popupAnchor={x:e,y:t},this.entries=[],this.entryIndex=0,this.popup=document.createElement("div"),this.popup.className="wap-dictionary-popup";const s=document.createElement("div");s.className="wap-dictionary-card";const n=document.createElement("button");n.className="wap-dictionary-close",n.type="button",n.setAttribute("aria-label","Close"),n.appendChild(this.icon("close"));const r=document.createElement("form");r.className="wap-dictionary-search";const o=document.createElement("input");o.className="wap-dictionary-input",o.type="text",o.value=i,o.setAttribute("aria-label","Look up a word");const a=document.createElement("button");a.className="wap-dictionary-search-btn",a.type="submit",a.setAttribute("aria-label","Search"),a.appendChild(this.icon("search")),r.appendChild(o),r.appendChild(a);const l=document.createElement("p");l.className="wap-dictionary-body";const u=document.createElement("strong");u.className="wap-dictionary-term";const p=document.createElement("span");p.className="wap-dictionary-text",p.textContent=c,l.appendChild(u),l.appendChild(p);const d=document.createElement("div");d.className="wap-dictionary-actions";const h=this.actionButton("read","Read"),b=this.actionButton("spell","Spell"),y=document.createElement("div");y.className="wap-dictionary-pager";const m=document.createElement("button");m.className="wap-dictionary-prev",m.type="button",m.setAttribute("aria-label","Previous definition"),m.appendChild(this.icon("prev"));const w=document.createElement("span");w.className="wap-dictionary-count";const g=document.createElement("button");g.className="wap-dictionary-next",g.type="button",g.setAttribute("aria-label","Next definition"),g.appendChild(this.icon("next")),y.appendChild(m),y.appendChild(w),y.appendChild(g),d.appendChild(h),d.appendChild(b),d.appendChild(y),s.appendChild(r),s.appendChild(l),s.appendChild(d),this.popup.appendChild(n),this.popup.appendChild(s),document.body.appendChild(this.popup),n.addEventListener("click",()=>this.removePopup()),h.addEventListener("click",()=>this.toggleRead()),b.addEventListener("click",()=>this.spellWord(this.currentWord)),m.addEventListener("click",()=>this.showEntry(this.entryIndex-1)),g.addEventListener("click",()=>this.showEntry(this.entryIndex+1)),r.addEventListener("submit",e=>{e.preventDefault();const t=o.value.trim();t&&this.loadDefinition(t)}),this.renderPager(),this.positionPopup(),document.addEventListener("click",this.clickHandler),this.loadDefinition(i)}icon(e){const t="http://www.w3.org/2000/svg",i=document.createElementNS(t,"svg");i.setAttribute("viewBox","0 0 24 24"),i.setAttribute("aria-hidden","true"),i.setAttribute("focusable","false");const s={close:["M6 6l12 12M18 6L6 18"],search:["M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14z","M20 20l-4.2-4.2"],prev:["M15 5l-7 7 7 7"],next:["M9 5l7 7-7 7"],wave:["M4 11v2","M8 8v8","M12 5v14","M16 8v8","M20 11v2"]};for(const n of s[e]||[]){const e=document.createElementNS(t,"path");e.setAttribute("d",n),i.appendChild(e)}return i}actionButton(e,t){const i=document.createElement("button");i.className=`wap-dictionary-action wap-dictionary-${e}`,i.type="button";const s=document.createElement("span");s.className="wap-dictionary-action-icon",s.appendChild(this.icon("wave"));const n=document.createElement("span");return n.className="wap-dictionary-action-label",n.textContent=t,i.appendChild(s),i.appendChild(n),i}async loadDefinition(e){if(!this.popup)return;this.currentWord=e,this.entries=[],this.entryIndex=0;const t=this.popup.querySelector(".wap-dictionary-input"),i=this.popup.querySelector(".wap-dictionary-term"),s=this.popup.querySelector(".wap-dictionary-text");t&&t.value.trim()!==e&&(t.value=e),i&&(i.textContent=""),s&&(s.textContent=c),this.renderPager();const n=await this.getMeaning(e);this.popup&&this.currentWord===e&&(this.entries=n,this.showEntry(0),this.positionPopup())}showEntry(e){if(!this.popup)return;const t=this.popup.querySelector(".wap-dictionary-term"),i=this.popup.querySelector(".wap-dictionary-text");if(!this.entries.length)return t&&(t.textContent=""),i&&(i.textContent="Definition not available."),void this.renderPager();this.isReading&&this.stopReading(),this.entryIndex=Math.min(Math.max(e,0),this.entries.length-1);const s=this.entries[this.entryIndex];t&&(t.textContent=s.partOfSpeech?`${this.currentWord} (${s.partOfSpeech})`:this.currentWord),i&&(i.textContent=`: ${s.definition}`),this.renderPager()}renderPager(){if(!this.popup)return;const e=this.popup.querySelector(".wap-dictionary-pager"),t=this.popup.querySelector(".wap-dictionary-count"),i=this.popup.querySelector(".wap-dictionary-prev"),s=this.popup.querySelector(".wap-dictionary-next"),n=this.entries.length;e&&(e.hidden=n<2),t&&(t.textContent=n?`${this.entryIndex+1} of ${n}`:""),i&&(i.disabled=this.entryIndex<=0),s&&(s.disabled=this.entryIndex>=n-1)}positionPopup(){if(!this.popup||!this.popupAnchor)return;const{x:e,y:t}=this.popupAnchor,i=this.popup.getBoundingClientRect(),s=t-i.height-12,n=s>window.scrollY?s:t+24,r=window.scrollX+document.documentElement.clientWidth-i.width-12,o=Math.min(Math.max(e-i.width/2,window.scrollX+12),Math.max(r,window.scrollX+12));Object.assign(this.popup.style,{top:`${n}px`,left:`${o}px`})}removePopup(){this.popup&&(this.popup.remove(),this.popup=null),document.removeEventListener("click",this.clickHandler),window.clearTimeout(this.pendingSpeakTimer),this.pendingSpeakTimer=null,this.stopKeepAlive(),this.isReading=!1,"speechSynthesis"in window&&window.speechSynthesis.cancel()}handleOutsideClick(e){this.popup&&!this.popup.contains(e.target)&&this.removePopup()}async getMeaning(e){if(!a.test(e))return[];const t=await this.fetchFromDictionaryApi(e);return t.length?this.trimEntries(t):this.trimEntries(await this.fetchFromWiktionary(e))}trimEntries(e){const t=new Set,i=[];for(const s of e){const e=s.definition.trim().toLowerCase();if(e&&!t.has(e)&&(t.add(e),i.push(s),10===i.length))break}return i}async requestJson(e){const t="undefined"!=typeof AbortController?new AbortController:null,i=t?setTimeout(()=>t.abort(),3500):null;try{const i=await fetch(e,t?{signal:t.signal}:void 0);return i.ok?await i.json():null}catch(e){return null}finally{i&&clearTimeout(i)}}async fetchFromDictionaryApi(e){const t=await this.requestJson("https://api.dictionaryapi.dev/api/v2/entries/en/"+encodeURIComponent(e));if(!Array.isArray(t))return[];const i=[];for(const e of t)for(const t of e.meanings||[])for(const e of t.definitions||[]){const s=(e.definition||"").trim();s&&i.push({partOfSpeech:t.partOfSpeech||"",definition:s})}return i}async fetchFromWiktionary(e){const t=e.toLowerCase(),i=t===e?[e]:[e,t];for(const e of i){const i=await this.wiktionaryEntries(e),s=i.length&&i.every(e=>"proper noun"===e.partOfSpeech);if(i.length&&(e===t||!s))return i}return[]}async wiktionaryEntries(e){const t=await this.requestJson("https://en.wiktionary.org/api/rest_v1/page/def
1inition/"+encodeURIComponent(e)),i=t&&Array.isArray(t.en)?t.en:null;if(!i)return[];const s=[];for(const e of i)for(const t of e.definitions||[]){const i=this.toPlainText(t.definition);i&&s.push({partOfSpeech:(e.partOfSpeech||"").toLowerCase(),definition:i})}return s}toPlainText(e){if("string"!=typeof e||""===e)return"";let t=e;t="undefined"!=typeof DOMParser?(new DOMParser).parseFromString(e,"text/html").body.textContent||"":e.replace(/<[^>]*>/g,"");const i=t.indexOf(".mw-parser-output");return-1!==i&&(t=t.slice(0,i)),t.replace(/\s+/g," ").trim()}speechLang(){return"en-US"}englishVoice(){const e=window.speechSynthesis.getVoices()||[];if(!e.length)return null;const t=e.filter(e=>/^en(-|$)/i.test(e.lang||""));if(!t.length)return null;const i=["Google US English","Samantha","Microsoft","Google"];for(const e of i){const i=t.find(t=>(t.name||"").startsWith(e));if(i)return i}return t.find(e=>e.default)||t[0]}dispatch(e){const t=window.speechSynthesis,i=Array.isArray(e)?e:[e];if(!i.length)return;const s=()=>{i.forEach(e=>t.speak(e)),t.resume(),this.keepAlive()},n=i[i.length-1];if(n.addEventListener("end",()=>this.stopKeepAlive()),n.addEventListener("error",()=>this.stopKeepAlive()),t.speaking||t.pending)return t.cancel(),window.clearTimeout(this.pendingSpeakTimer),void(this.pendingSpeakTimer=window.setTimeout(()=>{this.pendingSpeakTimer=null,s()},60));s()}keepAlive(){this.stopKeepAlive(),this.keepAliveTimer=window.setInterval(()=>{const e=window.speechSynthesis;e.speaking?(e.pause(),e.resume()):this.stopKeepAlive()},1e4)}stopKeepAlive(){this.keepAliveTimer&&(window.clearInterval(this.keepAliveTimer),this.keepAliveTimer=null)}buildUtterance(e,t){const i=new SpeechSynthesisUtterance(e),s=this.englishVoice();return s&&(i.voice=s),i.lang=s?.lang||this.speechLang(),i.rate=t,i.pitch=1,i}spokenText(){const e=this.entries[this.entryIndex];return e?`${e.partOfSpeech?`${this.currentWord}, ${e.partOfSpeech}`:this.currentWord}. ${e.definition}`:this.currentWord}toggleRead(){if(!("speechSynthesis"in window))return;if(this.isReading)return void this.stopReading();const e=this.spokenText();if(!e)return;const t=this.buildUtterance(e,1);t.addEventListener("end",()=>this.setReadingState(!1)),t.addEventListener("error",()=>this.setReadingState(!1)),this.setReadingState(!0),this.dispatch(t)}stopReading(){window.clearTimeout(this.pendingSpeakTimer),this.pendingSpeakTimer=null,this.stopKeepAlive(),"speechSynthesis"in window&&window.speechSynthesis.cancel(),this.setReadingState(!1)}setReadingState(e){this.isReading=e;const t=this.popup?.querySelector(".wap-dictionary-read .wap-dictionary-action-label");t&&(t.textContent=e?"Pause":"Read")}pronounceWord(e){"speechSynthesis"in window&&e&&this.dispatch(this.buildUtterance(e,1))}spellWord(e){if(!("speechSynthesis"in window)||!e)return;this.setReadingState(!1);const t=e.split("").filter(e=>/[A-Za-z]/.test(e));t.length&&this.dispatch(t.map(e=>this.buildUtterance(e,.6)))}}let u=null;const p=()=>(u||(u=new l),u);class d{static instance=null;constructor(e={}){if(d.instance)return d.instance;this.dataAttribute="data-font-manipulator",this.validProperties=["font-size","line-height","letter-spacing","word-spacing"],this.originals=new WeakMap,this.userPercent=e.percent||20,this.userProperties=e.properties||["font-size"],d.instance=this}static getInstance(e){return d.instance||(d.instance=new d(e)),d.instance}apply(e=document.body,t=this.userPercent,i=this.userProperties){const s=this.collectTextElements(e),n=i.filter(e=>this.validProperties.includes(e));for(let e of s){const i=this.originals.get(e)||{},s=window.getComputedStyle(e),r={...i};n.forEach(n=>{const o=i[n],a=o?o.originalValue:(s.getPropertyValue(n)||"").trim();if(!a)return;const c=a.match(/^(-?\d*\.?\d+)([a-z%]*)$/i);if(!c)return;const l=parseFloat(c[1]);if(!Number.isFinite(l))return;const u=c[2]||"",p=o?o.inlineValue:e.style.getPropertyValue(n),d=o?o.inlinePriority:e.style.getPropertyPriority(n);r[n]={originalValue:a,inlineValue:p,inlinePriority:d,hasInline:o?o.hasInline:""!==p},e.style.setProperty(n,`${l*(1+t/100)}${u}`,"important")}),Object.keys(r).length>0&&(this.originals.set(e,r),e.setAttribute(this.dataAttribute,JSON.stringify(r)))}}remove(e=document.body){const t=Array.from(e.querySelectorAll(`[${this.dataAttribute}]`));for(let e of t){const t=this.originals.get(e)||this.parseMarker(e);Object.entries(t).forEach(([t,i])=>{i.hasInline?e.style.setProperty(t,i.inlineValue||"",i.inlinePriority||""):e.style.removeProperty(t)}),e.removeAttribute(this.dataAttribute)}}parseMarker(e){const t=e.getAttribute(this.dataAttribute);if(!t)return{};let i;try{i=JSON.parse(t)}catch(e){return{}}if(!i||"object"!=typeof i)return{};const s={};
1return Object.entries(i).forEach(([e,t])=>{"string"!=typeof t?t&&"object"==typeof t&&(s[e]={originalValue:t.originalValue||t.inlineValue||"",inlineValue:t.inlineValue||"",inlinePriority:t.inlinePriority||"",hasInline:!!t.hasInline}):s[e]={originalValue:t,inlineValue:t,inlinePriority:"",hasInline:""!==t}}),s}collectTextElements(e=document.body){const t=Array.from(e.querySelectorAll("*")),i=[],s=["#wpadminbar",".ant-drawer-content-wrapper","link","script","style"].map(e=>Array.from(document.querySelectorAll(e))).flat();for(let e of t){if(e===document.body)continue;if(s.some(t=>t.contains(e)))continue;if(!Array.from(e.childNodes).some(e=>e.nodeType===Node.TEXT_NODE&&e.textContent.trim().length>0))continue;const t=window.getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility||0===parseFloat(t.opacity))continue;const n=e.getBoundingClientRect();0!==n.width&&0!==n.height&&"rgba(0, 0, 0, 0)"!==t.color&&i.push(e)}return i}}const h=e=>d.getInstance(e);class b{static instance=null;constructor(){if(b.instance)return b.instance;this._enabled=!1,this.skipSelectors=[".wap-preset__preview-drawer-root"],this._tooltip=null,this._arrow=null,this._currentLabel=null,this._boundMouseOver=this._handleMouseOver.bind(this),this._boundMouseOut=this._handleMouseOut.bind(this),this._boundMouseMove=this._handleMouseMove.bind(this),b.instance=this}static getInstance(){return b.instance||(b.instance=new b),b.instance}apply(){this._enabled||(this._enabled=!0,this._createTooltip(),document.addEventListener("mouseover",this._boundMouseOver,!0),document.addEventListener("mouseout",this._boundMouseOut,!0),document.addEventListener("mousemove",this._boundMouseMove,!0))}remove(){this._enabled&&(this._enabled=!1,document.removeEventListener("mouseover",this._boundMouseOver,!0),document.removeEventListener("mouseout",this._boundMouseOut,!0),document.removeEventListener("mousemove",this._boundMouseMove,!0),this._tooltip&&this._tooltip.remove(),this._tooltip=null,this._arrow=null)}_createTooltip(){this._tooltip=document.createElement("div"),this._tooltip.className="wap-accessibility-tooltip",this._arrow=document.createElement("span"),this._arrow.className="wap-accessibility-tooltip-arrow",this._tooltip.appendChild(this._arrow),document.body.appendChild(this._tooltip)}_shouldSkip(e){if(!e)return!1;const t=document.querySelectorAll(this.skipSelectors);for(let i=0;i<t.length;i++)if(t[i].contains(e))return!0;return!1}_getTooltipText(e){if(!e||this._shouldSkip(e))return this._handleMouseOut(),null;let t=e.getAttribute("aria-label")||("IMG"===e.tagName?e.alt:null),i=e;for(let e=0;e<2&&!t&&i?.parentElement;e++){if(i=i.parentElement,this._shouldSkip(i))return null;t=i.getAttribute("aria-label")||("IMG"===i.tagName?i.alt:null)}if(!t&&("BUTTON"===e.tagName||"A"===e.tagName)){const t=e.textContent?.trim();if(t)return t}return t||null}_handleMouseOver(e){if(!this._enabled)return;const t=this._getTooltipText(e.target);t&&(this._tooltip.textContent=t,this._tooltip.appendChild(this._arrow),this._tooltip.classList.add("visible"))}_handleMouseOut(){this._enabled&&this._tooltip.classList.remove("visible")}_handleMouseMove(e){if(!this._enabled||!this._tooltip.classList.contains("visible"))return;const t=this._tooltip;this._arrow,t.style.left="-9999px",t.style.top="-9999px";const i=t.getBoundingClientRect(),s=e.clientX,n=e.clientY,r=12,o=window.innerWidth,a=window.innerHeight;let c=n-i.height-r,l=s-i.width/2,u="top";c<0&&(c=n+r,u="bottom"),c+i.height>a&&(c=Math.max(r,n-i.height-r),u="top"),l<0&&(l=r),l+i.width>o&&(l=o-i.width-r),t.style.left=`${l}px`,t.style.top=`${c}px`,this._applyArrow(u)}_applyArrow(e){const t=this._arrow;t.classList.remove("top","bottom"),t.classList.add(e)}}const y=()=>b.getInstance(),m="websacFeatureHandlers",w=e=>("undefined"==typeof window?{}:(window[m]||(window[m]={}),window[m]))[e]||null;class g{static instance=null;constructor(){if(g.instance)return g.instance;this.props={},this.previousFeatureValues={},this.backgroundObservers={},g.instance=this}static getInstance(){return g.instance||(g.instance=new g),g.instance}init(e){if(e&&0!==Object.keys(e).length)for(const t in e){const i=e[t],s=i.currentAttribute||{};if(i.currentStep)switch(this.previousFeatureValues[t]&&this.removeFeature
1(t),this.previousFeatureValues[t]||(this.previousFeatureValues[t]=i.currentAttribute?.value||null),this.props[t]=[],t){case"contrast":this.applyContrast(t,s);break;case"cursor":this.applyCursor(t,s);break;case"tooltips":this.applyTooltip(t,s);break;case"dictionary":this.applyDictionary(t,s);break;case"biggerText":this.applyBiggerText(t,s);break;case"saturation":this.applySaturation(t,s);break;default:this.applyExtensionFeature(t,s)}else this.removeFeature(t)}}applyExtensionFeature(e,t){const i=w(e);i&&"function"==typeof i.apply?i.apply(t,e):this.applyCSSFeature(e,t)}removeExtensionFeature(e){const t=w(e);if(t&&"function"==typeof t.remove)return t.remove(e),void delete this.props[e];this.removeCSSFeature(e)}isInsidePreviewDrawer(e){const t=document.querySelector(".wap-preset__preview-drawer-root");return!!t&&t.contains(e)}applyContrast(e,t){if(t)switch(t.value){case"invert":document.documentElement.style.setProperty("--wap-invert","100%");break;case"dark":case"light":this.applyCSSFeature(e,t)}}removeContrast(){document.documentElement.style.removeProperty("--wap-invert"),this.removeCSSFeature("contrast"),delete this.props.contrast}applySaturation(e,t){if(t&&"saturation"===e)switch(t.value){case"low":document.documentElement.style.setProperty("--wap-saturation","0.5");break;case"high":document.documentElement.style.setProperty("--wap-saturation","3");break;case"desaturate":document.documentElement.style.setProperty("--wap-saturation","0")}}removeSaturation(){document.documentElement.style.removeProperty("--wap-saturation"),delete this.props.saturation}applyCursor(e,t){t&&o&&("big-cursor"===t.value?this.applyCSSFeature(e,t):o()?.apply(e,t))}removeCursor(){o()?.remove(),this.removeCSSFeature("cursor"),delete this.props.cursor}applyTooltip(){y()?.apply()}removeTooltip(){y()?.remove(),delete this.props.tooltips}applyDictionary(e,t){t&&p().apply()}removeDictionary(e){p().remove()}isActuallyVisible(e){let t=e;for(;t&&1===t.nodeType;){const e=window.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||0===parseFloat(e.opacity))return!1;t=t.parentElement}return!0}applyCSSFeature(e,t){if(!t?.css||0===t.css.length)return;t.hideBackgroundImages&&this.applyBackgroundImageHiding(e);const i=document.querySelector(".wap-preset__preview-button");let s=!1;t.css.forEach(t=>{this.shouldUseStyleRule(t)?this.applyStyleRule(e,t.properties,t.selector):document.querySelectorAll(t.selector).forEach(n=>{if(!this.isInsidePreviewDrawer(n)&&n!==i&&!i?.contains(n)&&this.isActuallyVisible(n)){"highlightLinks"===e&&this.props.contrast?.length>0&&(s=!0);for(const i in t.properties){let r=n.style.getPropertyValue(i);const o=n.style.getPropertyPriority(i);this.props[e].some(e=>e.element===n&&e.property===i)||this.props[e].push({element:n,property:i,originalPriority:s?"":o,originalValue:s?null:r||null}),n.style.setProperty(this.toCssProperty(i),t.properties[i],"important")}}})})}isUniversalSelector(e){return"*"===String(e).trim()}shouldUseStyleRule(e){return!0===e?.rule||this.isUniversalSelector(e?.selector)}styleRuleId(e){return`websac-feature-${e}`}applyStyleRule(e,t,i="*"){this.removeStyleRule(e);const s=Object.entries(t).map(([e,t])=>`${this.toCssProperty(e)}: ${t} !important;`).join(" ");if(!s)return;const n=":not(.wap-preset__preview-drawer-root):not(.wap-preset__preview-drawer-root *)",r=String(i).split(",").map(e=>e.trim()).filter(Boolean);if(0===r.length)return;const o=1===r.length&&this.isUniversalSelector(r[0]),a=r.flatMap(e=>o?[`${e}${n}`,`${e}${n}::before`,`${e}${n}::after`]:[`${e}${n}`]),c=document.createElement("style");c.id=this.styleRuleId(e),c.textContent=`${a.join(", ")} { ${s} }`,document.head.appendChild(c)}removeStyleRule(e){document.getElementById(this.styleRuleId(e))?.remove()}static get HIDDEN_BG_ATTR(){return"data-websac-hidden-bg"}backgroundRuleId(e){return`websac-feature-${e}-backgrounds`}applyBackgroundImageHiding(e){this.removeBackgroundImageHiding(e);const t=document.createElement("style");t.id=this.backgroundRuleId(e),t.textContent=`[${g.HIDDEN_BG_ATTR}] { background-image: none !important; }
1`,document.head.appendChild(t),this.markBackgroundImages(document.body),this.backgroundObservers[e]?.disconnect();const i=new MutationObserver(e=>{for(const t of e)for(const e of t.addedNodes)1===e.nodeType&&this.markBackgroundImages(e)});i.observe(document.documentElement,{childList:!0,subtree:!0}),this.backgroundObservers[e]=i}markBackgroundImages(e){const t=e=>{if(this.isInsidePreviewDrawer(e))return;const t=window.getComputedStyle(e).backgroundImage;t&&t.includes("url(")&&e.setAttribute(g.HIDDEN_BG_ATTR,"")};1===e.nodeType&&e!==document.body&&t(e),e.querySelectorAll?.("*").forEach(t)}removeBackgroundImageHiding(e){this.backgroundObservers[e]?.disconnect(),delete this.backgroundObservers[e],document.getElementById(this.backgroundRuleId(e))?.remove(),document.querySelectorAll(`[${g.HIDDEN_BG_ATTR}]`).forEach(e=>e.removeAttribute(g.HIDDEN_BG_ATTR))}removeCSSFeature(e){this.removeStyleRule(e),this.removeBackgroundImageHiding(e);const t=this.props[e];t&&(t.forEach(e=>{const t=this.toCssProperty(e.property);e.originalValue?e.element.style.setProperty(t,e.originalValue,e.originalPriority||""):e.element.style.removeProperty(t)}),delete this.props[e])}toCssProperty(e){return String(e).replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}applyBiggerText(e,t){t&&h()?.apply(document.body,t.percent,t.properties)}removeBiggerText(e){h()?.remove(),delete this.props.biggerText}removeFeature(e){switch(e){case"contrast":this.removeContrast();break;case"cursor":this.removeCursor();break;case"tooltips":this.removeTooltip();break;case"dictionary":this.removeDictionary(e);break;case"biggerText":this.removeBiggerText(e);break;case"saturation":this.removeSaturation();break;default:this.removeExtensionFeature(e)}delete this.previousFeatureValues[e]}removeAllFeatures(){Object.keys(this.previousFeatureValues).forEach(e=>{this.removeFeature(e)}),this.props={},this.previousFeatureValues={}}getActiveFeatures(){return{...this.previousFeatureValues}}}const _=()=>g.getInstance(),f=window.wp.i18n,v=window.ReactJSXRuntime;(0,f.__)("Contrast +","website-accessibility"),(0,f.__)("The contrast setting has been disabled.","website-accessibility"),(0,f.__)("Improves visibility by changing the websiteâs contrast with invert, dark, and light modes.","website-accessibility"),(0,f.__)("Invert","website-accessibility"),(0,f.__)("Enable Contrast Mode, set to Invert.","website-accessibility"),(0,f.__)("Dark","website-accessibility"),(0,f.__)("Contrast Mode, set to Dark.","website-accessibility"),(0,f.__)("Light","website-accessibility"),(0,f.__)("Contrast Mode, set to Light.","website-accessibility"),(0,f.__)("Highlight Links","website-accessibility"),(0,f.__)("The highlight links setting has been disabled.","website-accessibility"),(0,f.__)("Helps users find clickable links by clearly highlighting them.","website-accessibility"),(0,f.__)("Enable","website-accessibility"),(0,f.__)("Highlight Links Enable.","website-accessibility"),(0,f.__)("Disable","website-accessibility"),(0,f.__)("Bigger Text","website-accessibility"),(0,f.__)("The bigger text setting has been disabled.","website-accessibility"),(0,f.__)("Increases text size to improve readability across the website.","website-accessibility"),(0,f.__)("Medium","website-accessibility"),(0,f.__)("Bigger Text, set to Medium.","website-accessibility"),(0,f.__)("Large","website-accessibility"),(0,f.__)("Bigger Text, set to Large.","website-accessibility"),(0,f.__)("Extra Large","website-accessibility"),(0,f.__)("Bigger Text, set to Extra Large.","website-accessibility"),(0,f.__)("Huge","website-accessibility"),(0,f.__)("Bigger Text, set to Huge.","website-accessibility"),(0,f.__)("Text Spacing","website-accessibility"),(0,f.__)("The text spacing setting has been disabled.","website-accessibility"),(0,f.__)("Improves readability by adding space between text elements.","website-accessibility"),(0,f.__)("Medium","website-accessibility"),(0,f.__)("Text Spacing, set to Medium.","website-accessibility"),(0,f.__)("Large","website-accessibility"),(0,f.__)("Text Spacing, set to Large.","website-accessibility"),(0,f.__)("Extra Large","website-accessibility"),(0,f.__)("Text Spacing, set to Extra Large.","website-accessibility"),(0,f.__)("Pause Animations","website-accessibility"),(0,f.__)("The pause animations setting has been disabled.","website-accessibility"),(0,f.__)("Pauses animations to reduce distractions and motion.","website-accessibility"),(0,f.__)("Enable","website-accessibility"),(0,f.__)("Pause Animations Enable.","website-accessibility"),(0,f.__)("Disable","website-accessibility"),(0,f.__)("Hide Images","website-accessibility"),(0,f.__)("The hide images setting has been disabled.","website-accessibility"),(0,f.__)("Hides images to reduce distractions and improve focus on text content.","website-accessibility"),(0,f.__)("Enable","website-accessibility"),(0,f.__)("Hide Images Enable.","website-accessibility"),(0,f.__)("Disable","website-accessibility"),(0,f.__)("Cursor","website-accessibility"),(0,f.__)("The cursor setting has been disabled.","website-accessibility"),(0,f.__)("Changes the cursor to a big cursor, mask, or guideline.","website-accessibility"),(0,f.__)("Big Cursor","website-accessibility"),(0,f.__)("Big Cursor Enable.","website-accessibility"),(0,f.__)("Mask","website-accessibility"),(0,f.__)("Cursor Mask Enable.","website-accessibility"),(0,f.__)("Guideline","website-accessibility"),(0,f.__)("Cursor Guideline Enable.","website-accessibility"),(0,f.__)("Tooltips","website-accessibility"),(0,f.__)("The tooltips setting has been disabled.","website-accessibility"),(0,f.__)("Enables tooltips to provide additional context for elements on the page.","website-accessibility"),(0,f.__)("Enable","website-accessibility"),(0,f.__)("Tooltips Enable.","website-accessibility"),(0,f.__)("Disable","website-accessibility"),(0,f.__)("Line Height","website-accessibility"),(0,f.__)("The line height setting has been disabled.","website-accessibility"),(0,f.__)("Increases the space between lines of text for better readability.","website-accessibility"),(0,f.__)("Medium","website-accessibility"),(0,f.__)("Line Height, set to Medium.","website-accessibility"),(0,f.__)("Large","website-accessibility"),(0,f.__)("Line Height, set to Large.","website-accessibility"),(0,f.__)("Extra Large","website-accessibility"),(0,f.__)("Line Height, set to Extra Large.","website-accessibility"),(0,f.__)("Text Alignment","website-accessibility"),(0,f.__)("The text alignment setting has been disabled.","website-accessibility"),(0,f.__)("Aligns text to the left, center, or right.","website-accessibility"),(0,f.__)("Left","website-accessibility"),(0,f.__)("Text Alignment, set to Left.","website-accessibility"),(0,f.__)("Center","website-accessibility"),(0,f.__)("Text Alignment, set to Center.","website-accessibility"),(0,f.__)("Right","website-accessibility"),(0,f.__)("Text Alignment, set to Right.","website-accessibility"),(0,f.__)("Justify","website-accessibility"),(0,f.__)("Text Alignment, set to Justify.","website-accessibility"),(0,f.__)("Saturation","website-accessibility"),(0,f.__)("The saturation setting has been disabled.","website-accessibility"),(0,f.__)("Adjusts the saturation of colors to improve readability.","website-accessibility"),(0,f.__)("Low","website-accessibility"),(0,f.__)("Saturation, set to Low.","website-accessibility"),(0,f.__)("High","website-accessibility"),(0,f.__)("Saturation, set to High.","website-accessibility"),(0,f.__)("Desaturate","website-accessibility"),(0,f.__)("Saturation, set to Desaturate.","website-accessibility"),(0,f.__)("Dictionary","website-accessibility"),(0,f.__)("The dictionary setting has been disabled.","website-accessibility"),(0,f.__)("Enables a dictionary to provide additional context for words on the page.","website-accessibility"),(0,f.__)("Enable","website-accessibility"),(0,f.__)("Dictionary Enable.","website-accessibility"),(0,f.__)("Disable","website-accessibility"),(0,f.__)("Dictionary Disable.","website-accessibility");(0,f.__)("Motor Impaired","website-accessibility"),(0,f.__)("Motor Impaired","website-accessibility"),(0,f.__)("Color Blind","website-accessibility"),(0,f.__)("Color Blind","website-accessibility"),(0,f.__)("Low Vision","website-accessibility"),(0,f.__)("Low Vision","website-accessibility"),(0,f.__)("Cognitive & Learning","website-accessibility"),(0,f.__)("Cognitive & Learning","website-accessibility"),(0,f.__)("Seizure & Epileptic","website-accessibility"),(0,f.__)("Seizure & Epileptic","website-accessibility"),(0,f.__)("ADHD","website-accessibility"),(0,f.__)("ADHD","website-accessibility"),(0,f.__)("Text","website-accessibility"),(0,f.__)("Color & Contrast","website-accessibility"),(0,f.__)("Orientation","website-accessibility"),(0,f.__)("Behavior","website-accessibility");const S=e=>{if(null==e)return;const t=String(e).trim();return""!==t?/^-?\d*\.?\d+$/.test(t)?`${t}px`:t:void 0},E=window.wp.apiFetch;var k=e.n(E);const x=()=>{const{defaultProfiles:e=[],useBrowserKey:i}=window.wapHelpers||{},{PreviewButton:r,PreviewContent:o,Icon:a,WapDrawer:c,FrontendExtensions:l
1=null}=window?.wapComponents,{profiles:u,currentPreset:p,currentPresetId:d,settings:h,nonce:b,restUrl:y,isUserLoggedIn:m}=window?.websiteAccessibility,{dispatch:w,...g}=(()=>{const e=(0,t.useContext)(n);if(!e)throw new Error("useFrontendAccessibility must be used within an AccessibilityProvider");return e})(),[E,x]=(0,t.useState)(!1),C=(0,t.useRef)(!1),T=(0,t.useRef)(null),A=i(!!h?.show_usage_statistics),L=(0,t.useRef)(!1),I=(0,t.useRef)(null),P=(0,t.useRef)(null),M=(0,t.useCallback)(()=>{C.current=!0,x(!1),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{C.current=!1,T.current=null},600)},[]),O=(0,t.useCallback)(()=>{C.current||x(!0)},[]);(0,t.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);const R=(0,t.useMemo)(()=>[...e,...u||[]],[u]),N=(0,t.useMemo)(()=>{const e=p?.panel?.wrapper?.maxHeight;if(null==e||""===e)return 80;const t=Number(e);return!Number.isFinite(t)||t<=0||t>100?80:t},[p?.panel?.wrapper?.maxHeight]),D=(0,t.useMemo)(()=>{const e=p?.panel?.items?.find(e=>"footer"===e.slug)?.attributes;return e?.activePreference||!1},[p]);function $(e){if(!e)return;const t=(i=e.profile,i?.id&&R.find(e=>e.id===i?.id||e.ID===i?.id)||null);var i;w(t?.id!==e?.profile?.id?{type:"SET_CURRENT_SETTINGS",payload:{}}:{type:"SET_CURRENT_SETTINGS",payload:e.settings||{}}),w({type:"SET_CURRENT_PROFILE",payload:t}),w({type:"SET_OVERSIZED",payload:e.oversized||!1});const s=e.selectedLanguage||null;w({type:"SET_SELECTED_LANGUAGE",payload:s})}const B=(0,t.useMemo)(()=>{if(!d)return null;const{currentProfile:e,currentSettings:t,isOverSized:i,selectedLanguage:s}=g,n={id:e?.id,name:e?.name};let r={};if(n?.id&&(r.profile=n),Object.keys(t).length>0){let e={};Object.keys(t).forEach(i=>{0!==t[i]?.currentStep&&(e[i]=t[i])}),Object.keys(e).length>0&&(r.settings=e)}return i&&(r.oversized=i),s&&(r.selectedLanguage=s),{post_id:d,data:r}},[g?.currentProfile,g?.currentSettings,g?.isOverSized,g?.selectedLanguage,g?.siteLanguage]);(0,t.useEffect)(()=>{if(!d)return;const e=`${g?.localStorageKeyPrefix}-${d}`,t=localStorage.getItem(e);D&&m?k()({path:`/websac/v1/preference?post_id=${d}`,method:"GET"}).then(i=>{i?.success&&i.data&&Object.keys(i.data).length>0?($(i.data),localStorage.setItem(e,JSON.stringify(i.data))):t&&$(JSON.parse(t))}).catch(e=>{console.error("Error fetching preference:",e),t&&$(JSON.parse(t))}):t&&$(JSON.parse(t))},[d,D,m]),(0,t.useEffect)(()=>{d&&B?.data&&localStorage.setItem(`${g.localStorageKeyPrefix}-${d}`,JSON.stringify(B?.data))},[B?.data,d]);const F=(0,t.useRef)([]);(0,t.useEffect)(()=>{_().init(g?.currentSettings),((e=[])=>{e.forEach(e=>{document.body.classList.contains(e)&&document.body.classList.remove(e)})})(F.current);const e=[];for(const t in g?.currentSettings){const i=g?.currentSettings[t];if(!i?.currentStep||0===i?.currentStep)continue;const s=i?.currentAttribute;s?.value&&e.push(`one-accessibility-feature-${t}-${s?.value}`)}g?.currentProfile?.id&&e.push(`one-accessibility-feature-profile-${g?.currentProfile?.id}`),((e=[])=>{e.forEach(e=>{document.body.classList.contains(e)||document.body.classList.add(e)})})(e),F.current=e},[g?.currentSettings,d,g?.currentProfile,g?.isOverSized]),(0,t.useEffect)(()=>{const e=e=>{"Escape"===e.key&&E&&M(),!e.ctrlKey||"u"!==e.key&&"U"!==e.key||(e.preventDefault(),O())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[E,M,O]),(0,t.useEffect)(()=>{((e,t={})=>{const i="undefined"!=typeof window?window?.wapHelpers?.announce:null;if("function"!=typeof i)return!1;try{return!0===i(e,t)}catch(e){return!1}})(E?(0,f.__)("Accessibility Menu Open","website-accessibility"):(0,f.__)("Accessibility Menu Close","website-accessibility"),{event:E?"open":"close",settings:g?.currentSettings})},[E]);const H=async e=>{if(L.current)return;if(!A)return;if(!b)return void console.warn("Nonce missing. Statistics not sent.");if(!y)return;const t={};for(const i in e)0!=e?.[i]?.currentStep&&(t[i]=1);const i=`${y}websac/v1/usage-statistics`;try{L.current=!0;const s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","X-WP-Nonce":b},body:JSON.stringify({...t,browserKey:A})});(await s.json()).success||(P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{P.current=null,H(e)},5500))}catch(e){console.error("Error sending statistics",e)}finally{L.current=!1}};return(0,t.useEffect)(()=>()=>{I.current&&clearTimeout(I.current),P.current&&clearTimeout(P.current)},[]),(0,t.useEffect)(()=>(E?document.body.classList.add("wap-accessibility-sidebar-open"):document.body.classList.remove("wap-accessibility-sidebar-open"),()=>{document.body.classList.remove("wap-accessibility-sidebar-open")}),[E]),(0,t.useEffect)(()=>
1{if(!p)return;let e=0;try{const t=new URL(window.location.href),i=(t.searchParams.get("websac_open")||"").toLowerCase();if("1"!==i&&"true"!==i&&"yes"!==i)return;e=window.requestAnimationFrame(()=>{O()}),t.searchParams.delete("websac_open"),window.history.replaceState({},"",t.toString())}catch{}return()=>{e&&window.cancelAnimationFrame(e)}},[p,O]),p?(0,v.jsxs)("div",{className:"wap-accessibility-view notranslate",translate:"no",children:[(0,v.jsx)(r,{type:"default",text:"icon"!==p?.button?.buttonType?p?.button?.text:null,icon:"text"!==p?.button?.buttonType?(0,v.jsx)(a,{name:p?.button?.icon}):null,className:s("notranslate","wap-button-style-preset__preview-btn",p?.button?.position,p?.button?.buttonType&&`wap-button-style-preset__preview-btn--${p?.button?.buttonType}`,E&&"wap-accessibility-launcher--no-pointer"),style:{"--button-font-size":p?.button?.fontSize,"--button-icon-size":p?.button?.iconSize,"--button-color":p?.button?.color,"--button-bg":p?.button?.bgColor,"--button-padding":p?.button?.padding,"--button-radius":S(p?.button?.borderRadius),"--button-offset-x":p?.button?.offsetX?`${p?.button?.offsetX}px`:"","--button-offset-y":p?.button?.offsetY?`${p?.button?.offsetY}px`:""},onClick:()=>O(),onFocus:e=>e.preventDefault(),"aria-label":(0,f.__)("Accessibility Menu","website-accessibility")}),(0,v.jsx)(c,{open:E,onClose:M,placement:p?.panel?.wrapper?.position||"right",className:`wap-preset__preview-drawer notranslate wap-preset__preview-drawer--${p?.panel?.wrapper?.position||"right"}`,rootClassName:`wap-preset__preview-drawer-root notranslate wap-preset__preview-drawer-root--${p?.panel?.wrapper?.position||"right"}`,width:Number(p?.panel?.wrapper?.width)||400,styles:{wrapper:{maxHeight:`${N}vh`}},mask:!1,keyboard:!0,maskClosable:!1,autoFocus:!1,children:(0,v.jsx)(o,{panel:p?.panel,allProfiles:R,setIsOpen:M,isOpen:E,accessibilityContext:g,accessibilityDispatch:w,onFeatureInteraction:(e={})=>{h?.show_usage_statistics&&(I.current&&clearTimeout(I.current),P.current&&(clearTimeout(P.current),P.current=null),I.current=setTimeout(()=>{H(e||{})},1e3))}})}),l?(0,v.jsx)(l,{accessibilityContext:g,accessibilityDispatch:w,currentPreset:p,settings:h,isOpen:E}):null]}):null},C={currentProfile:null,currentSettings:{contrast:{currentStep:0,currentAttribute:null,isMultiStep:!0},highlightLinks:{currentStep:0,currentAttribute:null,isMultiStep:!1},tooltips:{currentStep:0,currentAttribute:null,isMultiStep:!1},textSpacing:{currentStep:0,currentAttribute:null,isMultiStep:!0},biggerText:{currentStep:0,currentAttribute:null,isMultiStep:!0},pauseAnimations:{currentStep:0,currentAttribute:null,isMultiStep:!1},hideImages:{currentStep:0,currentAttribute:null,isMultiStep:!1},cursor:{currentStep:0,currentAttribute:null,isMultiStep:!0},saturation:{currentStep:0,currentAttribute:null,isMultiStep:!0},textAlign:{currentStep:0,currentAttribute:null,isMultiStep:!0},lineHeight:{currentStep:0,currentAttribute:null,isMultiStep:!0}},isLoading:!1,isOverSized:!1,localStorageKeyPrefix:"websiteAccessibilityLocalPreferences",selectedLanguage:null,siteLanguage:(window?.websiteAccessibility?.siteLanguage||"en-US").split("-")[0]},T=(e,t)=>{switch(t.type){case"SET_CURRENT_PROFILE":return{...e,currentProfile:t.payload};case"SET_CURRENT_SETTINGS":return{...e,currentSettings:t.payload};case"SET_LOADING":return{...e,isLoading:t.payload};case"SET_OVERSIZED":return{...e,isOverSized:t.payload};case"RESET_ACCESSIBILITY":return _().removeAllFeatures(),{...C};case"RESET_PROFILE_SETTINGS":return _().removeAllFeatures(),{...e,currentProfile:null,currentSettings:C.currentSettings};case"SET_SELECTED_LANGUAGE":return{...e,selectedLanguage:t.payload};default:return e}},A=({children:e})=>{const[i,s]=(0,t.useReducer)(T,C);return(0,v.jsx)(n.Provider,{value:{...i,dispatch:s},children:e})};window.addEventListener("load",()=>{const e=document.getElementById("website-accessibility-app");e&&(0,t.createRoot)(e).render((0,v.jsx)(A,{children:(0,v.jsx)(x,{})}))})})();
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.