Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Acrobat DC/Acrobat/WebResources/Resource1/
Upload File :
Current File : C:/Program Files/Adobe/Acrobat DC/Acrobat/WebResources/Resource1/acro_wc_js.js

/*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2024 Adobe  Incorporated
*  All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Incorporated and its
* suppliers and are protected by all applicable intellectual property laws,
* including trade secret and or copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Incorporated.
**************************************************************************/
(()=>{let c={DOCUMENT_LOADED:"DocumentLoaded",Script_LOADED:"ScriptLoaded",IMAGED_LOADED:"ImagesLoaded",PAGE_SCROLLED:"PageScrolled",NETWORK_STABLE:"NetworkStable",DOC_MODIFIED:"DocumentModified",START_CONVERSION:"StartConversion",ERROR:"Error"},e=1e4,t=1e4,i=20,o=500,r=800,m=800*window.devicePixelRatio,n=2e4,a=500;function d(){return"file:"==window.location.protocol}function s(){return!d()||0<Array.from(document.querySelectorAll("script")).length}function l(e){try{return e&&"IMG"==e.tagName?!0:!(!e||"IFRAME"!=e.tagName)||e&&void 0!==e.textContent&&0<e.textContent.trim().length}catch(e){return!0}}function h(e){window.chrome&&window.chrome.webview&&window.chrome.webview.postMessage?window.chrome.webview.postMessage(JSON.stringify(e)):window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.execute&&window.webkit.messageHandlers.execute.postMessage?window.webkit.messageHandlers.execute.postMessage(JSON.stringify(e)):console.error("postmessage API not found!")}function u(){let n=new Set;return function t(e){e.nodeType===Node.TEXT_NODE?n.add([e.parentElement,e.parentElement.getBoundingClientRect()]):e.nodeType!==Node.ELEMENT_NODE||"IMG"!=e.nodeName&&"IFRAME"!=e.nodeName?Array.from(e.childNodes).filter(e=>function n(e,i=-1){try{var t=e.getBoundingClientRect();if(0==t.width||0==t.height)return!1;if(t.left<0&&t.right<0||t.top<0&&t.bottom<0||t.left>window.innerWidth&&t.right>window.innerWidth)return!1;var o=window.getComputedStyle(e);if("none"==o.display||"hidden"==o.visibility)return!1;if("fixed"!==o.position&&null===e.offsetParent)return!1;if(0!=i){let t=Array.from(e.children);for(let e=0;e<t.length;e++)if(n(t[e],-1==i?-1:i-1))return!0}return(0==i||0==children.length)&&l(e)}catch(e){return!0}}(e,0)).forEach(e=>t(e)):n.add([e,e.getBoundingClientRect()])}(document.body),Array.from(n)}function w(e,o=null){e.filter(e=>"fixed"==e.position).forEach(t=>{if(t){let e=!0;try{do{var n=t.bounds;if(0==n.width||0==n.height){e=!1;break}if(n.left<0&&n.right<0||n.top<0&&n.bottom<0||n.left>window.innerWidth&&n.right>window.innerWidth){e=!1;break}if("none"==t.display||"hidden"==t.visibility){e=!1;break}if("fixed"!==t.position&&null===t.element.offsetParent){e=!1;break}}while(e=0<t.element.children.length||l(t.element),0)}catch(e){}var i=t.element.getAttribute("style")||"";if(e)if(!d()&&o&&o(t.element))try{t.element.setAttribute("style",i+";position:relative !important; overflow:unset !important;"),t.element.parentNode&&(t.element.parentNode.removeChild(t.element),t.element.parentNode.appendChild(t.element))}catch(e){}else t.element.setAttribute("style",i+";position:absolute !important; overflow:unset !important;");else t.element.setAttribute("style",i+";display: none !important;position:absolute !important;")}})}async function f(s=e){return new Promise(e=>{let t=!1,n=0,i=-1;function o(){t||(h({event:c.IMAGED_LOADED}),t=!0,e(),0<=i&&window.clearTimeout(i))}function r(){n--,!t&&n<=0&&o()}i=setTimeout(o,s);var a=Array.from(document.body.querySelectorAll("img")).filter(e=>{var t;try{return e&&"IMG"==e.tagName&&50<e.width&&50<e.height?!(!(t=e.getAttribute("src"))||0==t.trim().length):!1}catch(e){return!1}});a.forEach(e=>{n++,e.setAttribute("loading","eager"),e.setAttribute("decoding","sync"),e.onload=r,e.onerror=r;var t=(e=>{try{if(d())return e.getAttribute("src");var r,a=[];if("PICTURE"==e.parentNode.tagName?a.push(...Array.from(e.parentNode.children).filter(e=>"SOURCE"==e.tagName).map(e=>e.getAttribute("srcset")||e.getAttribute("data-srcset")).filter(e=>e&&0<e.trim().length)):"IMG"==e.tagName&&0<(r=(e.getAttribute("srcset")||e.getAttribute("data-srcset")||"").trim()).length&&a.push(r),0==a.length)return e.getAttribute("src");var s=a[0].trim();let t="",n=0,i="";var l;let o=0;for(let e=0;e<s.length;e++)" "==s[e]?(i=s.substring(o,e).trim(),o=e+1):","==s[e]&&0<i.length&&(l=parseInt(s.substring(o,e).trim()),o=e+1,l>n)&&(n=l,t=i);return 0<n?t:e.getAttribute("src")}catch(e){}return e.getAttribute("src")})(e);e.setAttribute("src",t),e.setAttribute("srcset",t),e.removeAttribute("sizes")}),0==a.length&&o()})}async function p(n=i,d=o,u=t){return new Promise(e=>{let i=window.innerHeight||m,o=n*i,r=0,a=!1,t=-1,s=location.href;function l(){window.scrollTo(0,0),a||(h({event:c.PAGE_SCROLLED}),a=!0,e(),0<=t&&window.clearTimeout(t))}t=setTimeout(()=>l,u),function e(){var t,n=Math.min(document.documentElement.scrollHeight,o);a||(t=location.href,r>=n||t!=s?l():(r+=i,window.scrollTo(0,r),setTimeout(e,d)))}()})}function g(o){try{let n=(()=>{let e=u();return i=>{try{let n=i.getBoundingClientRect();return 0<e.filter(([e,t])=>e!=i&&!i.contains(e)&&n.left<t.right&&n.right>t.left&&n.top<t.bottom&&n.bottom>t.top).length}catch(e){return!0}}})(),i=Array.from(o.querySelectorAll("*"));[o,...i.filter(e=>e.shadowRoot).map(e=>e.shadowRoot)].forEach(e=>{e=(e==o?i:Array.from(e.querySelectorAll("*"))).map(e=>{var t=window.getComputedStyle(e);return{element:e,position:t.position,display:t.display,visibility:t.visibility,offsetParent:e.offsetParent,bounds:e.getBoundingClientRect()}});if(d()?w(e):w(e,n),d()){var t=e;try{t.filter(e=>"IMG"==e.element.nodeName).forEach(e=>{e.element.removeAttribute("srcset"),e.element.removeAttribute("sizes"),e.element.removeAttribute("loading"),e.element.removeAttribute("decoding")}),t.filter(e=>"SOURCE"==e.element.nodeName).forEach(e=>{e.parentNode.removeChild(e.element)})}catch(e){}}t=e;try{t.filter(e=>("inline-block"==e.display||"inline-flex"==e.display||"flex"==e.display)&&e.bounds.height>=r).forEach(e=>{e.element.setAttribute("style",(e.element.getAttribute("style")?e.element.getAttribute("style")+";":"")+"display:block !important;")})}catch(e){}})}catch(e){}h({event:c.DOC_MODIFIED})}stats={image_load_time:0,num_images:0,page_scroll_time:0,num_pages:0,document_load_time:0,styles_update_time:0,network_wait_time:0,total_modification_time:0,image_load_completed:!1,page_scroll_completed:!1,start_time:Date.now()};let y=window.fetch,b=XMLHttpRequest.prototype.send,_=XMLHttpRequest.prototype.open;async function A(){if(!window.calledOnload){h({event:c.DOCUMENT_LOADED}),window.calledOnload=!0;try{if(d())try{Array.from(document.head.querySelectorAll("link")).forEach(e=>{var t;e.hasAttribute("crossorigin")&&((t=e.cloneNode(!0)).removeAttribute("crossorigin"),e.parentNode.appendChild(t),e.remove())})}catch(e){}try{document.body.setAttribute("style",document.body.getAttribute("style")+";overflow: visible !important;height: auto !important;position:unset !important;"),document.documentElement.setAttribute("style",document.documentElement.getAttribute("style")+";overflow: visible !important;height: auto !important;position:unset !important;")}catch(e){}s()?(await p(),await Promise.all([f(),(async(o=n)=>new Promise(e=>{let t=!1,n=!1,i=()=>{if(!t){if(0==window.requestsRunning){if(n)return t=!0,h({event:c.NETWORK_STABLE}),void e();n=!0}else n=!1;setTimeout(i,a)}};i(),setTimeout(()=>{t||(t=!0,h({event:c.NETWORK_STABLE}),e())},o)}))()])):d()&&await f(),-1==navigator.userAgent.indexOf("Windows")&&((e=document.createElement("style")).innerHTML="@media all { * { -webkit-print-color-adjust: exact !important; }}",document.head.appendChild(e)),g(document.body)}catch(e){}var e;h({event:c.START_CONVERSION})}}window.requestsRunning=0,window.fetch=function(...e){window.requestsRunning++;e=y.apply(this,e);return e.finally(e=>{window.requestsRunning--}),e},XMLHttpRequest.prototype.open=function(...e){return this._url=e,_.apply(this,e)},XMLHttpRequest.prototype.send=function(...e){return window.requestsRunning++,this._onreadystatechange=this.onreadystatechange,this._onloadend=this.onloadend,this._onabort=this.onabort,this._onerror=this.onerror,this._already_counted=!1,this.onloadend=function(){this._already_counted||(window.requestsRunning--,this._already_counted=!0),this._onloadend&&this._onloadend!=this.onloadend&&this._onloadend.apply(this,arguments)},this.onabort=function(){this._already_counted||(window.requestsRunning--,this._already_counted=!0),this._onabort&&this._onabort!=this.onabort&&this._onabort.apply(this,arguments)},this.onerror=function(){this._already_counted||(window.requestsRunning--,this._already_counted=!0),this._onerror&&this._onerror!=this.onerror&&this._onerror.apply(this,arguments)},this.onreadystatechange=function(){4!=this.readyState||this._already_counted||(window.requestsRunning--,this._already_counted=!0),this._onreadystatechange&&this._onreadystatechange!=this.onreadystatechange&&this._onreadystatechange.apply(this,arguments)},b.apply(this,e)},(()=>{try{return window.self!==window.top}catch(e){return 1}})()||-1!=location.href.indexOf("about:blank")||(window.calledOnload=!1,window.addEventListener("load",()=>setTimeout(A,2e3)),setTimeout(()=>{window.calledOnload||A()},3e4),h({event:c.Script_LOADED}))})();