111111111const handleInjectSnifferFileScript = function i(t){let r,e=new WeakSet,n=new Set,o=[];const i=new Map,c={generateUID:()=>{function t(t){return(t<16?"0":"")+t.toString(16)}if("randomUUID"in crypto){const t=crypto.randomUUID();return t.substring(0,8)+t.substring(9,13)+t.substring(14,18)+t.substring(19,23)+t.substring(24)}return"getRandomValues"in crypto?Array.from(crypto.getRandomValues(new Uint8Array(16))).map((r=>t(r))).join(""):Math.floor(Math.random()*2**55).toString(36)},removeQuotes:t=>t.replace(/^['"]|['"]$/g,""),getUrlPathName:function(t){let r="";this.isURL(t)?(t=decodeURIComponent(t),r=new URL(t).pathname):r=window.location.pathname;let e=r.split("/");return e=e.filter((t=>{if(t&&""!=t)return t})),e.pop()},getUrlInPath:function(t){if(!t)return"";let r=t,e=/[?&]([^&=]+)=((https?:\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?)/g,n=t.matchAll(e);for(const o of n){o[1];r=o[2]}return r},parseURL:(t,r=null)=>{const e=`${t}${r?`;${r}`:""}`;if(i.has(e))return i.get(e);if(r){const n=new URL(t,c.fixBaseURL(r));return i.set(e,n),n}const n=new URL(c.fixBaseURL(t));return i.set(t,n),n},getAbsoluteURL:(t,r)=>{if(r.match(/^data\\?\:/))return r;if(/^\/\//.test(r))return`${location.protocol}${r}`;const e=c.parseURL(t),n=c.parseURL(r,e.href);return n.href},getBaseBath:t=>{const r=c.parseURL(t);return`${r.origin}${r.pathname.replace(/\?.*$/,"").replace(/(\/)([^\\/]+)$/i,"$1")}`},fixBaseURL:t=>(r||(r=document.createElement("a")),r.href=t,r.href),isURL:function(t){return!!t&&/^http[s]?:\/\/.*/.test(t)}};function s(){f(),l(),p()}function a(){l(),p()}function f(){window===window.top&&window.addEventListener("message",(t=>{let r=t.data.pid,e=t.data.name;if("FETCH_FILELIST_FROM_CONTENT"===e)if(o&&o.length){const e=t.data.pageUrl;window.postMessage({pid:r,name:"PUSH_FILES_TO_TRANSFER",fileList:o,pageUrl:e})}else a()}))}function p(){let t=new MutationObserver((function(t){t.map((function(t){if(t.addedNodes)for(let r=0;r<t.addedNodes.length;++r){let e=t.addedNodes.item(r);if(e.nodeType!==Node.ELEMENT_NODE)continue;let n=e.querySelectorAll("a");const o=Array.from(n);"A"===e.nodeName&&o.push(e),d(o,window.location.href)}if("attributes"===t.type&&"href"===t.attributeName){let r=t.target;e.delete(r);const n=[];n.push(r),d(n,window.location.href)}}))}));t.observe(document.body,{childList:!0,subtree:!0,attributeFilter:["href"]})}function l(){const t=Array.from(document.querySelectorAll("a"));d(t)}function d(t){t&&0!=t.length&&t.forEach((t=>{if(t&&!e.has(t)&&"A"==t.nodeName){e.add(t);let r=t.href,n=t.innerText;if(!r)return;r=c.removeQuotes(r),y(r,n,window.location.href)}}))}function y(t,r,e){if(!t)return"";if(t.match(/^#|tel\:|mailto\:/))return"";t=c.getUrlInPath(t);let i=/\.(zip|txt|js|rar|pdf|ppt|pptx|xls|xlsx|doc|docx|xml|csv|json|key|exe|dmg|iso)$/i;if(!t.match(i))return"";const u=v(t,e);if(u&&!n.has(u)){n.add(u);let t=c.getUrlPathName(u);r?t!=r&&(r=document.title+t):r=document.title+t,t.length<10&&(t=document.title+t),o.push({hostUrl:window.location.href,title:r,shortTitle:t,downloadUrl:u}),h()}}function h(){const r=window.location.href;if(t)u(o,r);else{const t=Math.random().toString(36).substring(2,9);window==window.top?window.postMessage({pid:t,name:"PUSH_FILES_TO_TRANSFER",fileList:o,pageUrl:r}):window.top.postMessage({pid:t,name:"PUSH_FILE_LIST_TO_CONTENT",fileList:o,pageUrl:r},"*")}}function v(t,r){if(c.isURL(t))return t;const e=c.getBaseBath(r);return c.getAbsoluteURL(e,t)}s(),document.onreadystatechange=()=>{"complete"===document.readyState&&l()}}handleInjectSnifferFileScript();