1import{t as e}from"./dist-CbfhLTox.js";function t(){e(`click`,`a[data-confirm]`,r),e(`click`,`a[data-method]:not([data-confirm])`,i),e(`click`,`:not(form) button[data-confirm]:not([form])`,r)}function n(e){try{return new URL(e).hostname}catch{return null}}function r(e){let t=e.currentTarget;if(!(t instanceof HTMLAnchorElement)&&!(t instanceof HTMLButtonElement))return;let n=t.dataset.confirm;if(!n||!window.confirm(n)){e.preventDefault();return}t.dataset.method&&i(e)}function i(e){let t=e.currentTarget;if(!(t instanceof HTMLAnchorElement))return;let n=t.dataset.method?.toLowerCase();if(!n)return;e.preventDefault();let r=document.createElement(`form`);r.method=`post`,r.action=t.href;let i=document.createElement(`input`);i.type=`hidden`,i.name=`_method`,i.value=n,r.appendChild(i);let s=a();if(s&&!o(t.href)){let e=document.createElement(`input`);e.type=`hidden`,e.name=s.param,e.value=s.token,r.appendChild(e)}r.style.display=`none`,document.body.appendChild(r),r.requestSubmit()}function a(){let e=document.querySelector(`meta[name="csrf-param"]`),t=document.querySelector(`meta[name="csrf-token"]`);return e&&t?{param:e.content,token:t.content}:null}function o(e){let t=document.createElement(`a`);return t.href=e,t.protocol!==window.location.protocol||t.host!==window.location.host}export{n,t}; 2//# sourceMappingURL=links-B3B5uRor.js.map
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.