shell bypass 403
!function(){"use strict";var e;e=()=>{const e="search-results",{nonce:t,restUrl:n,strings:r}=window.liveSearchData,o=document.querySelectorAll(".o-live-search"),i=new IntersectionObserver(((e,r)=>{e.forEach((e=>{e.isIntersecting&&((e=>{const r=e.querySelector("input.wp-block-search__input");if(!r)return;r.value="",r.setAttribute("autocomplete","off");const o=e.querySelector("form"),i=e.querySelector(".wp-block-search__inside-wrapper");let h;const{postTypes:g,cat:m}=e.dataset,v={postTypes:g?JSON.parse(g):[],cat:m||""},w=getComputedStyle(r),f=r.parentElement?getComputedStyle(r.parentElement):null,E=document.createElement("div");E.classList.add("container-wrap"),E.style.width=r.offsetWidth+"px",E.style.borderRadius=w.borderRadius,E.style.backgroundColor=w.backgroundColor;const y=document.documentElement.scrollHeight-(r.getBoundingClientRect().bottom+window.scrollY);let C=y;300<y?E.style.top=`calc( ${w.height} + ${f?.paddingTop} + ${f?.paddingBottom} + ${f?.borderBottomWidth} )`:(E.style.bottom=`calc( ${w.height} + ${f?.paddingTop} + ${f?.paddingBottom} + ${f?.borderBottomWidth} )`,C=r.getBoundingClientRect().top+window.scrollY),E.style.maxHeight=Math.min(500,C-20)+"px";const H=((e,t=500)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(void 0,r)}),t)}})((e=>{a(h),(async(e,r)=>{const o={method:"GET",headers:{Accept:"application/json","Content-Type":"application/json","x-wp-nonce":t}};let i=`s=${e}`;r?.cat&&(i+=`&cat=${r.cat}`);const l=r?.postTypes.reduce(((e,t)=>e+`&post_type[]=${t}`),i),s=0<window.liveSearchData.permalinkStructure.length?"?":"&";return(await fetch(`${n}${s}${l}`,o).catch((e=>(console.error(e.message),e)))).json()})(e,v).then((t=>{if(d(i),!t.success)return console.error(t.message),void(h=s(i,h,!1));const{results:n}=t;c(e,i,n,r)}))}),300);o?.addEventListener("keypress",(e=>{if("Enter"===e.key&&h){const t=h.querySelector(".highlight > a");if(!t)return;e.preventDefault(),window.location=t?.href}})),r.addEventListener("input",(e=>{const t=e.target?.value;0!==t.length?(i?.querySelector(".container-wrap")||(h=l(E,h,i,w)),H(t)):h=s(i,h,!1)})),r.addEventListener("focusin",(()=>{0!==r.value.length&&(h=l(E,h,i,w),h&&!h.querySelector(".search-results > :not(.spinner-container):not(.no-results)")&&H(r.value))})),r.addEventListener("keydown",(e=>{if(!h||!h.parentElement)return;const t=e;if(!["ArrowDown","ArrowUp","Escape"].includes(t.key))return;if("Escape"===t.key)return r.blur(),void(h=s(i,h));const n=h?.querySelector(".highlight");if(!n)return void p(h.children[0],r);const o=h.parentElement.getBoundingClientRect();if("ArrowDown"===t.key&&n.nextElementSibling){u(n),p(n.nextElementSibling,r);const e=n.nextElementSibling.getBoundingClientRect();e.bottom>o.bottom&&h.parentElement.scrollBy(0,e.height)}else if("ArrowUp"===t.key&&n.previousElementSibling){u(n),p(n.previousElementSibling,r);const e=n.previousElementSibling.getBoundingClientRect();e.top<o.top&&h.parentElement.scrollBy(0,-e.height)}})),window.addEventListener("click",(e=>{null===e?.target?.closest(`#${r.id}`)&&(h=s(i,h))}))})(e.target),r.unobserve(e.target))}))}));o.forEach((e=>i.observe(e)));const l=(t,n,r,o)=>{if(t.innerHTML="",n&&!r?.querySelector(".search_results"))return t.appendChild(n),r?.appendChild(t),n;const i=document.createElement("div");return i.classList.add(e),i.setAttribute("role","list"),i.style.fontSize=`max( calc( ${o.fontSize} - 4px ), 14px )`,i.style.color=o.color,a(i),t.appendChild(i),r?.appendChild(t),i},s=(t,n,r=!0)=>{const o=t?.querySelector(".container-wrap");if(o){if(r){const n=t?.removeChild(o);return n?.querySelector(`.${e}`)}return t?.removeChild(o),null}},c=(t,n,o,i)=>{const l=n?.querySelector(`.${e}`);if(l){if(l.innerHTML="",0===o.length){const n=document.createElement("div");return n.classList.add(`${e}__row`,"no-results"),n.innerHTML=r.noResults+` "<b>${t}</b>"`,void l?.appendChild(n)}o.forEach(((e,t)=>{const n=h(e,t,i);n.addEventListener("mouseover",(()=>{const e=l.querySelector(".highlight");e&&u(e),p(n,i)})),l?.appendChild(n)}))}},a=t=>{if(!t||t.querySelector(".spinner-container"))return;const n=document.createElement("div");n.classList.add(`${e}__row`,"spinner-container"),n.innerHTML='<svg class="spinner" viewBox="0 0 100 100" width="16" height="16" xmlns="http://www.w3.org/2000/svg" focusable="false" style="width: calc(16px); height: calc(16px);"><circle cx="50" cy="50" r="50" vector-effect="non-scaling-stroke" class="main-circle"></circle><path d="m 50 0 a 50 50 0 0 1 50 50" vector-effect="non-scaling-stroke" class="moving-circle"></path></svg>',t.innerHTML="",t?.appendChild(n)},d=t=>{const n=t?.querySelector(`.${e}`);if(!n)return;const r=n.querySelector(".spinner-container");r&&n.removeChild(r)},p=(e,t)=>{const n=getComputedStyle(t).backgroundColor,[,,r]=((e,t=!0)=>{const n=e.substring(4,e.length-1).replace(/ /g,"").split(","),r=parseFloat(n[0])/255,o=parseFloat(n[1])/255,i=parseFloat(n[2])/255,l=Math.max(r,o,i),s=Math.min(r,o,i);let c,a;const d=(l+s)/2;if(l===s)c=a=0;else{const e=l-s;switch(a=.5<d?e/(2-l-s):e/(l+s),l){case r:c=(o-i)/e+(o<i?6:0);break;case o:c=(i-r)/e+2;break;case i:c=(r-o)/e+4}c/=6}return t?[360*c,100*a,100*d]:`hsl( ${360*c}, ${100*a}, ${100*d} )`})(n),o=50>=r;e.classList.add("highlight"),e.style.backgroundColor=o?"rgba(255, 255, 255, 0.12)":"rgba(49, 50, 51, 0.12)"},u=e=>{e.classList.remove("highlight"),e.removeAttribute("style")},h=(t,n,o)=>{const i=document.createElement("div"),l=document.createElement("a");i.classList.add(`${e}__row`,`is-type-${t.type}`,`is-id-${t.id}`),i.setAttribute("role","option"),l.href=t.link;const s=document.createElement("div");if(s.classList.add(`${e}__row-left`),t?.featured_image){const e=document.createElement("img");e.src=t.featured_image,e.alt=t.title,e.title=t.title,s.appendChild(e)}else s.innerHTML=(e=>{switch(e){case"post":return'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14 1.5H2C1.72386 1.5 1.5 1.72386 1.5 2V14C1.5 14.2761 1.72386 14.5 2 14.5H14C14.2761 14.5 14.5 14.2761 14.5 14V2C14.5 1.72386 14.2761 1.5 14 1.5ZM2 0H14C15.1046 0 16 0.895431 16 2V14C16 15.1046 15.1046 16 14 16H2C0.895431 16 0 15.1046 0 14V2C0 0.895431 0.895431 0 2 0ZM3 5H5V7H3V5ZM5 9H3V11H5V9ZM6 5H13V7H6V5ZM13 9H6V11H13V9Z" fill="#1E1E1E"/></svg>';case"page":return'<svg width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 3.75H3V5.25H11V3.75Z" fill="#1E1E1E"/><path d="M3 7H11V8.5H3V7Z" fill="#1E1E1E"/><path d="M9 10.25H3V11.75H9V10.25Z" fill="#1E1E1E"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 0H2C0.895431 0 0 0.895431 0 2V14C0 15.1046 0.89543 16 2 16H12C13.1046 16 14 15.1046 14 14V2C14 0.895431 13.1046 0 12 0ZM2 1.5H12C12.2761 1.5 12.5 1.72386 12.5 2V14C12.5 14.2761 12.2761 14.5 12 14.5H2C1.72386 14.5 1.5 14.2761 1.5 14V2C1.5 1.72386 1.72386 1.5 2 1.5Z" fill="#1E1E1E"/></svg>';case"product":return'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3126 2.34369L13.6563 4.68737L11.3126 7.03106L8.96894 4.68737L11.3126 2.34369ZM4.96894 2.7412V6.05383H1.65631V2.7412H4.96894ZM13.2505 11.0228V14.3354H9.93789V11.0228H13.2505ZM4.96894 11.0228V14.3354H1.65631V11.0228H4.96894ZM11.3126 0L6.62526 4.67909L11.3126 9.36646L16 4.67909L11.3126 0ZM6.62526 1.08489H0V7.71014H6.62526V1.08489ZM14.9068 9.36646H8.28157V15.9917H14.9068V9.36646ZM6.62526 9.36646H0V15.9917H6.62526V9.36646Z" fill="#1E1E1E"/></svg>';default:return'<svg width="12" height="16" viewBox="0 0 12 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5571 3.0619L8.93575 0.440539C8.65456 0.159344 8.27338 0 7.87659 0H1.49971C0.671744 0.00312439 0 0.674868 0 1.50283V14.5003C0 15.3283 0.671744 16 1.49971 16H10.4979C11.3259 16 11.9977 15.3283 11.9977 14.5003V4.12419C11.9977 3.7274 11.8383 3.3431 11.5571 3.0619ZM10.3761 4.00234H7.99844V1.62468L10.3761 4.00234ZM1.49971 14.5003V1.50283H6.49873V4.7522C6.49873 5.16774 6.83304 5.50205 7.24858 5.50205H10.4979V14.5003H1.49971Z" fill="#1E1E1E"/></svg>'}})(t.type);const c=document.createElement("div");c.classList.add(`${e}__row-right`);const a=document.createElement("p");a.classList.add("post-title"),a.setAttribute("title",t.title),a.innerText=0<t.title.length?t.title:r.noTitle,c.appendChild(a);const d=(e=>{const t=document.createElement("div");switch(e.type){case"post":t.innerHTML=`${e.date} / by ${e.author}${e.parent?" / "+e.parent:""}`;break;case"page":var n;t.innerHTML=null!==(n=e.parent)&&void 0!==n?n:"";break;case"product":var r;t.innerHTML=null!==(r=e.price)&&void 0!==r?r:"";break;default:return null}return t.classList.add("meta"),t})(t);if(d){const e=getComputedStyle(o).fontSize;d.style.fontSize=`max( calc( ${e} - 6px ), 12px )`,c.appendChild(d)}return l.appendChild(s),l.appendChild(c),i.appendChild(l),i}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}();