1(()=>{"use strict";const e=e=>{const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()};({forms:null,formBtns:null,element:null,contentTypeSections:null,init(e=document){this.element=e,this.formBtns=this.element.querySelectorAll(".post-content-type-form-btn"),this.forms=this.element.querySelectorAll(".post-content-type-form"),this.contentTypeSections=this.element.querySelectorAll(".post-content-type-section"),this.formBtns&&this.forms&&(this.formBtns.forEach(e=>{e.addEventListener("click",t=>{this.showForm(t,e.getAttribute("data-form-id"))})}),this.forms.forEach(e=>{e.querySelector(".frm_message")&&(e.classList.remove("hidden"),e.classList.add("flex"))}),this.contentTypeSections.forEach(e=>{if(e&&!e.dataset.submitListenerAdded)switch(e.getAttribute("data-content-type")){case"video":jQuery(document).ready(t=>{t(document).on("frmFormComplete",(o,r)=>{this.embedVideo(e,r,t)})}),e.dataset.submitListenerAdded="true";break;case"resource":jQuery(document).ready(t=>{t(document).on("frmFormComplete",(o,r)=>{this.updateResourceLink(e,r,t)})}),e.dataset.submitListenerAdded="true"}}),this.showFormFromURL())},showFormFromURL(){const e=window.location.hash.replace("#","");if(!e)return;const t=document.getElementById(e);t&&this.element.contains(t)&&(this.showForm(null,e),requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.scrollIntoView({behavior:"smooth",block:"start"})})}))},showForm(e,t){if(this.resetOtherForms(),!t)return;const o=this.element.querySelector("#"+t);if(o&&(o.classList.remove("hidden"),o.classList.add("flex"),"event"===o.getAttribute("data-content-type"))){const e=this.element.querySelector(".post-event-content-type-form");e&&(e.classList.remove("hidden"),e.classList.add("block"))}},resetOtherForms(){this.forms.forEach(e=>{e.classList.add("hidden")})},embedVideo(t,o,r){const s=parseInt(r(o).find('input[name="form_id"]').val()),n=t.getAttribute("data-video-post-id");if(s!==parseInt(t.getAttribute("data-form-id"))||!n)return;const i=e(`pm_video_ajax_${n}_${s}`),c=document.createElement("iframe");c.src="https://www.youtube.com/embed/"+i,"vimeo"===t.getAttribute("data-video-platform")&&(c.src="https://player.vimeo.com/video/"+i),c.width="560",c.height="315",c.frameBorder="0",c.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",c.allowFullscreen=!0,c.loading="lazy",c.referrerpolicy="strict-origin-when-cross-origin",t.querySelector(".post-content-type-form-btn").classList.add("hidden"),t.insertAdjacentElement("afterbegin",c)},updateResourceLink(t,o,r){const s=this.element.querySelector("[data-resource]"),n=parseInt(r(o).find('input[name="form_id"]').val());s&&n===parseInt(t.getAttribute("data-form-id"))&&t.querySelectorAll(".post-content-type-form-btn .wp-element-button, .post-content-type-form-btn .wp-element-link").forEach(t=>{const o=e(`pm_resource_ajax_${s.getAttribute("data-resource")}_${n}`);t.href=decodeURIComponent(o),t.target="_blank"})}}).init()})();
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.