(function(){"use strict";(function(){"use strict";const n=window.iwArgsNoRightClick||{},i=n.rightclick==="Y",c=n.draganddrop==="Y",l=n.devtools==="Y",y=n.enableToast==="Y",d=n.toastMessage||"This content is protected";if(!i&&!c&&!l)return;const u=r=>{if(!y)return;if(!document.getElementById("iw-toast-styles")){const a=document.createElement("style");a.id="iw-toast-styles",a.textContent=`
@keyframes iwSlideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; }}
@keyframes iwFadeOut { to { opacity: 0; transform: translateX(400px); }}
.iw-toast { position: fixed; top: 20px; right: 20px; background: #f44336; color: #fff; padding: 16px 24px; border-radius: 4px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); z-index: 999999; animation: iwSlideIn 0.3s ease-out, iwFadeOut 0.3s ease-out 2.7s; }
`,document.head.appendChild(a)}const e=document.querySelector(".iw-toast");e&&e.remove();const o=document.createElement("div");o.className="iw-toast",o.textContent=r,document.body.appendChild(o),setTimeout(()=>o.remove(),3e3)};if(i||c){const r=t=>t.target||t.srcElement||null,e=t=>t&&t.nodeType===1&&t.tagName==="IMG",o=t=>{if(!t||t.nodeType!==1)return!1;const m=window.getComputedStyle(t).backgroundImage;return typeof m=="string"&&m!=="none"},a=t=>t&&t.nodeType===1&&t.tagName==="A"&&t.querySelector("img"),s=t=>e(t)||o(t)||a(t),f=t=>{s(r(t))&&(t.preventDefault(),u(d))},g=t=>{s(r(t))&&(t.preventDefault(),u(d))};i&&(document.addEventListener("contextmenu",f,!0),document.addEventListener("copy",f,!0)),c&&document.addEventListener("dragstart",g,!0)}if(l){const r=e=>{const o=e.target||e.srcElement,a=o&&o.tagName?o.tagName.toLowerCase():"";if(a==="input"||a==="textarea"||o.isContentEditable)return;let s=!1;if(e.keyCode===123&&(s=!0),(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===73&&(s=!0),(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===74&&(s=!0),(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===67&&(s=!0),(e.ctrlKey||e.metaKey)&&e.keyCode===85&&(s=!0),s)return e.preventDefault(),u(d),!1};document.addEventListener("keydown",r,!0)}})();
})();