'),s.splice(a,1),setTimeout(()=>{i(n,r,l)},200),o=t}),c.src=c.dataset.src}let o=setInterval(()=>{let t=!0;for(let e of s)0==e&&(t=!1);if(t){for(let t of e)t.classList.remove("hidden");setTimeout(()=>{i(n,r,l)},200),window.clearInterval(o)}},300)}else"div"==s||"span"==s?fetch(n.firstElementChild.dataset.src).then(e=>{e.ok?e.text().then(e=>{n.innerHTML=e,setTimeout(()=>{i(n,r,l)},200)}):(n.innerHTML='
⚠️
',n.style.minHeight=1.5*n.firstElementChild.offsetHeight+"px",i(n,r,l))}):e(":: [⚠ ui alert]: wrong preload\n ⮑ not found a correct content (div|span|img|iframe|videobox) \n Read more on: https://git.io/vldt456");function i(e,s,l){e.classList.add("[status-off]"),e.classList.add("[status---]"),s&&s.remove(),l&&t.splice(a,1),setTimeout(()=>{e.classList.remove("[status-off]"),e.classList.remove("[status-active]")},1350)}}}t.style.transitionTime="0",t.classList.add("[status-active]"),t.classList.remove("[status-off]"),function(t){let a=document.querySelectorAll(".lazy"),i=[],n=[],o=[];if(!a.length)return t();for(let t of a){let s=t.tagName.toLowerCase(),a=["div","span","picture","figure"];if(t.classList.contains("lazy")&&a.indexOf(s)<0)e(':: [⚠ ui alert]: wrong lazy preload\n ⮑ The tag "'+s+'" is not valid for a preload action!\n Read more on: https://git.io/J4hQ7');else{null!=t.firstElementChild&&null!=t.lastElementChild||e(':: [⚠ ui alert]: wrong preload\n ⮑ contents not defined, probably it\'s not first child of lazy or same destination for class="lazy" and data-src="..."\n ⮑ Error on element: ',t);let s=t.firstElementChild,a=(!!t.lastElementChild.className.includes("processing")&&t.lastElementChild,s.tagName.toLowerCase()),r=s.classList.toString().toLowerCase();if("video"==a||"iframe"==a||r.includes("videobox"))"video"!=a&&!r.includes("videobox")||r.match(/ratio/g)?(r.includes("settings")&&r.includes("autostartstop")&&o.push(t),l(t)<=(window.scrollTop||document.body.scrollTop||document.documentElement.scrollTop)+screen.availHeight?i.push(t):n.push(t)):(console.log(":: [⚠ ui alert]: preload flaw\n ⮑ ratio proportion not found on video or videobox: ",t),t.classList.add("[status-active] [status-error]"));else if("div"==a||"span"==a)s.dataset.src?i.push(t):(e(":: [⚠ ui alert]: wrong preload\n ⮑ data-src not found on element div/span\n Read more on: https://git.io/J4hQ7"),t.classList.add("[status-error]"));else if("img"==a){let a=[...t.classList].join(""),o=t.querySelectorAll("*>img"),r=!0;for(let e of o)s.dataset.src?a.match(/ratio/g)||(r=":: [⚠ ui alert]: preload flaw\n ⮑ ratio proportion not found on an image: "+e.dataset.src.match(/.*\/(.*)$/)[1],e.src=e.dataset.src):(r=":: [⚠ ui alert]: wrong preload\n ⮑ data-src not found on image\n Read more on: https://git.io/J4hQ7",t.classList.add("[status-error]"));!0===r?l(t)<=(window.scrollTop||document.body.scrollTop||document.documentElement.scrollTop)+screen.availHeight?i.push(t):n.push(t):e(r)}else e(":: [⚠ ui alert]: wrong preload\n ⮑ validation of content fail (div|span|img|iframe|videobox) \n Read more on: https://git.io/J4hQ7")}}for(let e of n){for(let t of i)e==t&&n.splice(n.indexOf(e),1);for(let t of o)e==t&&n.splice(n.indexOf(e),1)}s(i,null,!0),function(e,t){null==t[0]&&null==e[0]||document.body.addEventListener("scroll",a=>{a.preventDefault();let i=window.scrollTop||document.body.scrollTop||document.documentElement.scrollTop,n=i+(document.documentElement.clientHeight||window.innerHeight||0);if(null!=e[0]){let t=0;for(let a of e)l(a)i;o?(s.includes("[status-active]")||(s.includes("social","autostartstop")?(s.includes("facebook")||s.includes("instagram"))&&""==t.getAttribute("src")?t.setAttribute("src",t.dataset.relink):s.includes("youtube")?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):s.includes("vimeo")&&t.contentWindow.postMessage('{"method":"play"}',"*"):s.includes("videobox")&&("video"==t.tagName.toLowerCase()?t.play():t.getElementsByTagName("video")[0].play())),e.classList.remove("[status-active]"),e.classList.add("[status-off]")):(s.includes("[status-off]")||(s.includes("social","autostartstop")?(s.includes("facebook")||s.includes("instagram"))&&""!=t.getAttribute("src")?t.setAttribute("src",""):s.includes("youtube")?t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"):s.includes("vimeo")&&t.contentWindow.postMessage('{"method":"pause"}',"*"):s.includes("videobox")&&("video"==t.tagName.toLowerCase()?t.pause():t.getElementsByTagName("video")[0].pause())),e.classList.remove("[status-off]"),e.classList.add("[status-active]"))}a=null},!1)}(n,o);t()}(e=>{document.querySelectorAll('body[class*="mode-"]')[0].style.opacity="1",setTimeout(()=>{t.classList.add("[status-off]"),setTimeout(()=>{t.classList.add("[status---]"),t.classList.remove("[status-active]","[status-off]","gpuboost")},650)},150)})},o=()=>{let e=document.querySelectorAll("CODE,SAMP");for(let t of e){let e=t.dataset.src;if(e)fetch(e).then(e=>{e.ok?e.text().then(e=>{t.removeAttribute("data-src"),t.innerText=e.trimStart().trimEnd()}):(t.removeAttribute("data-src"),t.innerText="File not found or error")});else{let e=String(t.innerHTML||t.textContent).replace(/[\r\n]+/gm,"").trimStart().trimEnd();t.innerHTML="",t.innerText=e}}},r=()=>{setTimeout(()=>{for(let e of[...document.querySelectorAll(".grid-y")])if(e.className.split("col-")[0])for(gridbox of[...e.querySelectorAll(".grid-y>*")]){let t=parseInt(window.getComputedStyle(e).getPropertyValue("grid-auto-rows")),s=parseInt(window.getComputedStyle(e).getPropertyValue("grid-row-gap"));(t<=0||!t)&&(t=0),(s<=0||!s)&&(s=0);let l=Math.ceil((gridbox.getBoundingClientRect().height+s)/(t+s));gridbox.style.gridRowEnd="span "+l}},250)},c=(e,t)=>{null!=e&&""!=e&&e||((e={}).type="alert",e.content=!1,e.accept=!1,e.decline=!1,e.input=!1,e.placeholder=!1);let s=document.getElementsByTagName("HTML")[0],l=Math.floor(99999*Math.random());(makeit=(()=>{if(e.content=e.content?e.content:"
...
",e.accept=e.accept?e.accept:"ACCEPT",e.decline=e.decline?e.decline:"DECLINE",e.input=e.input?e.input:"text",e.placeholder=e.placeholder?e.placeholder:"write a text here","alert"==e.type){let t='\n
\n ";s.classList.add("gpuboost","vfxtransition-in","vfx-center"),s.insertAdjacentHTML("beforeEnd",t)}}))();var a=document.getElementById("warningbox-"+l);(clickit=(()=>{let e=a.getElementsByClassName("button");for(let l of e)l.addEventListener("click",e=>{if(e.target.classList.contains("accept")){let e=!0;if(a.getElementsByTagName("INPUT").length>0){let t=a.getElementsByTagName("INPUT")[0];t.setAttribute("value",t.value),e=t.getAttribute("value")}if(l(),"function"==typeof t)return t(e)}else if(e.target.classList.contains("decline")&&(l(),"function"==typeof t))return t(!1);function l(){clearInterval(i),i=null,a.classList.add("off"),setTimeout(()=>{s.classList.remove("gpuboost","vfxtransition-in","vfx-center"),a.remove()},300)}},!1)}))();var i=setInterval(()=>{null==document.getElementById("warningbox-"+l)&&(makeit(),a=document.getElementById("warningbox-"+l),clickit())},1500)},d=()=>{let t=document.querySelector('*[class*="mode-"]'),s=document.querySelectorAll('*[target^="outbox#"]'),l=Array.from(document.querySelectorAll(".outbox"));for(let e=0;e{let t=s[i].getAttribute("target").split("#")[1],l=document.querySelectorAll("#"+t)[0],o=l.querySelectorAll('.overlay>div[class^="side-"]')[0].className;l.querySelectorAll(".overlay")[0];l.classList.add("gpuboost","[status-active]"),o.match("center")?a("center"):o.match("top")?a("top"):o.match("left")?a("left"):o.match("right")?a("right"):o.match("bottom")&&a("bottom"),l.onclick=(e=>{l.classList.contains("warning")||(e.target.className.includes("overlay")||e.target.className.includes("close")||e.target.className.includes("accept"))&&(l.classList.add("[status-off]"),l.classList.remove("[status-active]"),setTimeout(()=>{l.classList.remove("[status-off]","[status-active]","gpuboost")},300),n(l))})});let e=l.length;for(let t=0;t{!e.classList.contains("warning")&&(t.target.className.includes("close")||t.target.className.includes("accept")||t.target.classList.contains("overlay"))&&(e.classList.add("[status-off]"),e.classList.remove("[status-active]"),setTimeout(()=>{e.classList.remove("[status-off]","[status-active]","gpuboost")},300),n(e))})}let a=e=>{t.classList.add("gpuboost","vfxtransition-in","vfx"+e)},n=(e,s)=>{t.classList.add("vfxtransition-out"),t.classList.remove("vfxtransition-in","vfxtop","vfxleft","vfxbottom","vfxright","vfxcenter"),setTimeout(()=>{e.classList.remove("[status-off]","[status-active]","gpuboost"),t.classList.remove("vfxtransition-out","gpuboost")},500)}}else e(a?":: [⚠ ui alert]: wrong outbox\n ⮑ an outbox not finded!":":: [⚠ ui alert]: wrong outbox\n ⮑ outbox "+n+" not exist!"),s[i].classList.add("debug-error")}},u=()=>{let e=[...document.querySelectorAll('[class*="absolute-"]')];for(let t of e)t.parentNode.className.includes("outbox")||t.parentNode.className.includes("side-")||t.parentNode.className.includes("view")||(t.parentNode.style.position="relative")},f=()=>{let e=document.querySelectorAll(".scroll-x");for(scroller of e)scroller.onmouseover=(e=>{let t="undefined"!=typeof InstallTrigger?4:2.5,s=scroller.className.toLowerCase().includes("scroll-x")&&!e.target.className.toLowerCase().includes("scroll-y")?"X":"Y",l=-1;window.onwheel=(a=>{if(scroller.focus(),e.preventDefault(),e.stopPropagation(),++l>=1){let e=l<5?l/3:l>5&&l<8?l/3.5:l/4.5;"X"==s&&(scroller==document.body?a.deltaY>0?document.documentElement.scrollLeft+=e*(t*a.deltaY):a.deltaY<0&&(document.documentElement.scrollLeft-=e*(t*a.deltaY)*-1):a.deltaY>0?scroller.scrollLeft+=e*(t*a.deltaY):a.deltaY<0&&(scroller.scrollLeft-=e*(t*a.deltaY)*-1)),setTimeout(()=>l=0,150)}})})},m=()=>{let e=[...document.querySelectorAll(".checksize, TABLE, CODE, PRE, OUTPUT")];for(let t of e){let e=parseInt(t.offsetWidth),s=parseInt(t.parentNode.offsetWidth);if(!t.parentNode.className.includes("scroll-x")){let l=t.tagName;if("TABLE"==l||"CODE"==l||"PRE"==l||"OUTPUT"==l){parseInt(t.style.minWidth);if(e>s){let e=document.createElement("div");t.parentNode.insertBefore(e,t),e.appendChild(t),t.parentNode.classList.add("scroll-x")}else e<=s&&t.parentNode.className.includes("checksize")&&(t.parentNode.outerHTML=t.parentNode.innerHTML)}else if(e>s){let e=document.createElement("div");t.parentNode.insertBefore(e,SizedBox),e.appendChild(SizedBox),t.parentNode.classList.add("scroll-x","checksize")}else e<=s&&t.parentNode.className.includes("checksize")&&(t.parentNode.outerHTML=t.parentNode.innerHTML)}}},p=()=>{let s=document.querySelectorAll(".snap-x , .snap-y");for(let e of s){let t=e.querySelectorAll(".snaps")[0],s=t.querySelectorAll(".snaps>*"),l=e.querySelectorAll(".dots")[0],a=null,i=null;if(t.getElementsByClassName("active")[0]||t.firstElementChild.classList.add("active"),a=t.getElementsByClassName("active")[0],i=e.querySelectorAll(".snaptype-blocks").length?e.className.includes("snap-x")?"translateX("+(a.offsetLeft-e.offsetWidth/2)+"px)":a.offsetTop<=e.offsetHeight/2?"translateY("+a.offsetTop+"px)":"translateY("+(a.offsetTop-a.offsetHeight/2+e.offsetHeight/2)+"px)":e.className.includes("snap-x")?"translateX(-"+a.offsetLeft+"px)":"translateY(-"+a.offsetTop+"px)",t.style.transform=i,l)for(let e of s){let e,t;e=document.createElement("span"),l.appendChild(e),e.classList.add("dot"),(t=l.querySelectorAll(".dot")[0]).classList.add("active")}}for(let c of s){let s=!!c.className.includes("snap-x"),d=!0,u=c.querySelectorAll('[class*="snaptype-"]')[0],f=!!u.className.includes("-blocks"),m=c.querySelectorAll(".snaps")[0],p=null,v=null,g=m.querySelectorAll(".snaps>*"),h=n(s,f,m,null),y=null!=c.querySelectorAll(".snaplabels")[0],b=null,L=null!=c.querySelectorAll(".dot")[0],x=null,T=null,A=null;h&&null!=h&&null!=h||e(":: [⚠ ui alert]: wrong snap slider\n ⮑ active class not found!\n ⮑ element:",m),m.closest(".snaptype-wide")||m.closest(".snaptype-blocks")||e(":: [⚠ ui alert]: wrong snap-x\n ⮑ deprecated api or snapstype-xxx not found!"),y&&(b=c.querySelectorAll(".snaplabels>*")),L&&(x=c.querySelectorAll(".dot")),c.querySelectorAll(".next")&&(T=c.querySelectorAll(".next")[0]),c.querySelectorAll(".prev")&&(A=c.querySelectorAll(".prev")[0]);let w=0;if(s)for(let e of g)w+=e.offsetWidth;else for(let e of g)w+=e.offsetHeight;function l(e){"a"==e.target.tagName.toLowerCase()||e.target.closest("a")||(e.preventDefault(),e.stopPropagation(),v=null,t()?(p=s?e.touches[0].clientX:e.touches[0].clientY,document.ontouchmove=a):(p=s?e.clientX:e.clientY,document.onmousemove=a),h=n(s,f,m,h))}function a(e){e.preventDefault(),e.stopPropagation(),d=!1,v=t()?s?e.touches[0].clientX-p:e.touches[0].clientY-p:s?e.clientX-p:e.clientY-p;let l,a,n,r=0,y=g.length,b=h;for(let e of g){let t,l,a;if(s?(t=e.offsetLeft,l=e.offsetLeft+e.offsetWidth,a=h.offsetLeft+h.offsetWidth/2-v):(t=e.offsetTop,l=e.offsetTop+u.offsetHeight,a=h.offsetTop+h.offsetHeight/2-v),0==r&&a=t)g[y-1].classList.add("active"),b=g[y-1];else if(r>=1&&r=t&&a<=l){for(let e of g)e.classList.remove("active");g[r].classList.add("active"),b=g[r]}else m.querySelectorAll(".snaps>.active").length>-1?(b=h,g[r].classList.remove("active")):(b=g[r]).classList.add("active");r++,L&&o(c,g)}s?(l=f?parseInt(b.offsetLeft+b.offsetWidth/2-v):parseInt(b.offsetLeft-v),a=f?u.offsetLeft:u.offsetWidth/2,n=w-a):(l=f?parseInt(b.offsetTop+b.offsetHeight/2-u.offsetHeight/2-v):parseInt(b.offsetTop-v),a=0,n=w-u.offsetHeight),l<=a?(m.classList.add("smooth"),position=a):l>=n?(m.classList.add("smooth"),position=n):(m.classList.remove("smooth"),position=l),m.style.transform=s?"translateX(-"+position+"px)":"translateY(-"+position+"px)",document.ontouchend=i,document.onmouseup=i}function i(e){let t,l,a;e.preventDefault(),e.stopPropagation(),document.onmousedown=!0,document.ontouchstart=!0,document.onmousemove=null,document.ontouchmove=null,document.onmouseup=!0,document.ontouchend=!0,(h=n(s,f,m,h)).classList.add("active"),s?(t=h.offsetLeft,l=u.offsetWidth/2||u.offsetLeft,a=w-l):(t=h.offsetTop,l=0,a=w-u.offsetHeight),position=s?f?t<=l?l:t>=a?a:f?t+h.offsetWidth/2:t:h.offsetLeft:f?t<=l?l:t>=a?a:h.offsetTop+h.offsetHeight/2-u.offsetHeight/2:h.offsetTop,m.classList.add("smooth"),m.style.transform=s?"translateX(-"+position+"px)":"translateY(-"+position+"px)",y&&r(s,g,b),setTimeout(()=>{m.classList.remove("smooth")},200),setTimeout(()=>{d=!0},1e3)}if(s&&0!=h.offsetLeft?m.style.transform=f?"translateX(-"+(u.offsetLeft+h.offsetWidth/2)+"px)":"translateX(-"+u.offsetLeft+"px)":s||0==h.offsetTop||(m.style.transform=f?"translateY(-"+(u.offsetTop+h.offsetHeight/2)+"px)":"translateY(-"+u.offsetTop+"px)"),t()?(m.ontouchstart=l,m.ontouchmove=a):(m.onmousedown=l,m.onmousedrag=a),c.className.includes("autosnap")){c.onmouseover=(e=>{d=!1}),c.onmouseleave=(e=>{d=!0}),c.ontouchstart=(e=>{d=!1}),c.ontouchend=(e=>{d=!0});let e=parseInt(c.className.split("autosnap-[")[1].split("]")[0]);setInterval(()=>{let e=n(s,f,m,null);if(d)if(e.nextElementSibling){let t,l,a;e.classList.remove("active"),e.nextElementSibling.classList.add("active"),e=n(s,f,m,null),l=0,a=w,s?(t=f?parseInt(e.offsetLeft+e.offsetWidth/2):parseInt(e.offsetLeft),position=t<=l?l:t>=a?w:t):(t=f?parseInt(e.offsetTop-(u.offsetHeight/2-e.offsetHeight/2)):parseInt(e.offsetTop),position=t+u.offsetHeight/4<=l?l:t+u.offsetHeight/4>=a?w-u.offsetHeight:t),m.classList.add("smooth"),m.style.transform=s?"translateX(-"+position+"px)":"translateY(-"+position+"px)",L&&o(c,g),y&&r(s,g,b),setTimeout(()=>{m.classList.remove("smooth")},250)}else m.classList.add("smooth"),e.classList.remove("active"),g[0].classList.add("active"),m.style.transform=s?"translateX(-"+u.offsetLeft+"px)":"translateY(-"+u.offsetTop+"px)",L&&o(c,g),y&&r(s,g,b)},e)}T&&(T.onclick=(e=>{let t=(h=n(s,f,m,h)).nextElementSibling;if(t&&!t.className.includes("lock")){let e,l,a;m.classList.add("smooth");let i=s&&f?t.offsetLeft+t.offsetWidth/2:s&&!f?t.offsetLeft:!s&&f?t.offsetTop-t.offsetHeight/2:t.offsetTop;s?(e=f?u.offsetLeft:u.offsetWidth/2,l=w-e,a=i<=e?e:i>=l?l:i):(e=0,l=w-u.offsetHeight,a=i+u.offsetHeight/4<=e?e:i+u.offsetHeight/4>=l?w-u.offsetHeight:i),m.style.transform=s?"translateX(-"+a+"px)":"translateY(-"+a+"px)",h.classList.remove("active"),t.classList.add("active");let n=g.length;for(let e=0;e{m.classList.remove("smooth")},300)}})),A&&(A.onclick=(e=>{let t=(h=n(s,f,m,h)).previousElementSibling;if(t&&!t.className.includes("lock")){let e,l,a;m.classList.add("smooth");let i=s&&f?t.offsetLeft+t.offsetWidth/2:s&&!f?t.offsetLeft:!s&&f?t.offsetTop-t.offsetHeight/2:t.offsetTop;s?(e=f?u.offsetLeft:u.offsetWidth/2,l=w-e,a=i<=e?e:i>=l?l:i):(e=0,l=w-u.offsetHeight,a=i+u.offsetHeight/4<=e?e:i+u.offsetHeight/4>=l?w-u.offsetHeight:i),m.style.transform=s?"translateX(-"+a+"px)":"translateY(-"+a+"px)",h.classList.remove("active"),t.classList.add("active");let n=g.length;for(let e=0;e{m.classList.remove("smooth")},300)}}))}function n(e,t,s,l){let a=0,i=s.querySelectorAll(".snaps>*"),n=!!l;for(let e of i){if(e.classList.contains("active")){for(let e of i)e.classList.remove("active");n=!0,e.classList.remove("active"),(l=e.classList.contains("lock")?i[a-1]:e).classList.add("active")}a++}return n||(l=i[0]),l}function o(e,t){let s=t.length;for(let l=0;l.dot")[l];s&&(t[l].className.includes("active")?s.classList.add("active"):s.classList.remove("active"))}}function r(e,t,s){let l=t.length;for(let a=0;a{let e=[...document.querySelectorAll('*[class*="autocrop"]')];for(let t of e)if(null==t.style.height||!t.style.height){let e=String(t.parentNode.style.height)+"px";t.style.height=e}},g=()=>{let e=[...document.querySelectorAll('*[class*="flange"]')],t=e.length;for(let s=0;s{let t,l,a,i,n,o,r=e[s],c=r.closest("NAV"),d=r.parentNode,u=!1;r.parentElement.style.position="relative",setTimeout(()=>{if((r.className.includes("flange-left")||r.className.includes("flange-right"))&&("DIV"==r.tagName?(r.style.height=c.offsetHeight+"px",t=r.parentNode.offsetTop,l=c.offsetTop,positon=l-t,r.style.top=positon+"px"):(r.style.top=0,i=r.offsetHeight/2,n=r.parentNode.offsetHeight/2,a=-1*(i-n),r.style.marginTop=a+"px"),r.className.includes("flange-left")&&(o=r.offsetWidth,r.style.marginLeft=-1*o+"px")),r.className.includes("flange-top")||r.className.includes("flange-bottom")){if("DIV"==r.tagName)t=parseInt(r.parentNode.offsetLeft),l=parseInt(c.offsetLeft),a=l-t,r.style.left=a+"px",r.style.width=c.offsetWidth+"px";else{let e=-1*(parseInt(r.offsetWidth)/2-parseInt(r.parentNode.offsetWidth)/2);r.style.left=e+"px"}r.className.includes("flange-top")&&(r.style.top=0,i=-1*r.offsetHeight,r.style.marginTop=i+"px"),r.className.includes("flange-bottom")&&(r.style.top=0,n=r.parentNode.offsetHeight,r.style.marginTop=n+"px")}d.className.includes("fx-")||r.className.includes("fx-")||(d.addEventListener("click",e=>{f(e)},!0),r.addEventListener("mouseleave",e=>{m(e)},!1),document.body.addEventListener("click",e=>{e.target.closest("NAV")||m(e),document.body.onclick=null},!0))},150);let f=t=>{if(t.target.closest("li")&&("a"==t.target.tagName.toLowerCase()||t.target.closest("a")))if(u)u&&(r.classList.add("[status-off]"),r.classList.remove("[status-active]"),d.classList.add("[status-off]"),d.classList.remove("[status-active]"),u=!1);else{for(let t=0;t(r.classList.add("[status-off]"),r.classList.remove("[status-active]"),d.classList.add("[status-off]"),d.classList.remove("[status-active]"),setTimeout(()=>{r.classList.remove("[status-off]"),r.classList.remove("[status-active]"),r.previousElementSibling.classList.remove("[status-off]"),r.previousElementSibling.classList.remove("[status-active]")},250),u=!1)},200)},h={layers:[]},y=()=>{var e=!1,s={layers:[]};let i=[],n=[];for(let e of document.querySelectorAll(".grabbox")){let t=String(e.parentNode.classList).split(" ");for(let e of t)e.startsWith("grabslot")&&n.push(e)}i=n.filter((e,t)=>n.indexOf(e)==t);for(let e of i)s.layers.push({name:e,elements:[]});for(let e of s.layers){let t=[...document.querySelectorAll("[class*='"+e.name+"']")];for(let s of t)e.elements.push({slot:s,slotid:s.id,box:s.firstElementChild,boxid:s.firstElementChild.id})}function o(e,t,s){let i,n,o,r,c,d;if(r=s.closest(".scroll-y")?s.closest(".scroll-y").scrollTop:0,o=s.closest(".scroll-x")?s.closest(".scroll-x").scrollLeft:0,i=(document.body.scrollLeft||window.pageXOffset)+o+e,n=(document.body.scrollTop||window.pageYOffset)+r+t,d=l(s),TBottom=d+s.offsetHeight,c=a(s),TRight=c+s.offsetWidth,n>d&&nc&&i{(new Date).getTime()-u>=750?function(){e=!0,clearInterval(f);let s=document.querySelectorAll('[class*="'+i.name+'"]');for(let e of s)e.classList.add("stratum");let u=(document.documentElement.scrollLeft||window.pageXOffset)+document.body.scrollLeft,m=(document.documentElement.scrollTop||window.pageYOffset)+document.body.scrollTop,p=a(d),v=l(d);d.closest(".scroll-x")&&(u+=d.closest(".scroll-x").scrollTop);d.closest(".scroll-y")&&(m+=d.closest(".scroll-y").scrollTop);t()?(xPointerStart=ev_grabs_start.touches[0].clientX+u,yPointerStart=ev_grabs_start.touches[0].clientY+m):(xPointerStart=ev_grabs_start.clientX+u,yPointerStart=ev_grabs_start.clientY+m);var g,h,b,L,x,T;d.closest(".scroll-y")?(g=!1,h=d.closest(".scroll-y").parentNode):d.closest(".scroll-x")?(g=!1,h=d.closest(".scroll-x").parentNode):(g=!0,h=document.documentElement||window);h&&(g?(b=parseInt(document.body.scrollTop||window.pageYOffset)+33,L=parseInt(document.body.scrollLeft||window.pageXOffset)+33,x=L+h.offsetWidth-33,T=b+h.offsetHeight-33):(b=l(h)+33,L=a(h)+33,x=a(h)+h.offsetWidth-33,T=l(h)+h.offsetHeight-33));d.classList.add("active"),d.classList.remove("off"),n.classList.add("active"),n.classList.remove("off"),d.style.left=parseInt(p-u)+"px",d.style.top=parseInt(v-m)+"px",t()?document.ontouchmove=(e=>A(e)):document.onmousemove=(e=>A(e));function A(e){let l,a;e.preventDefault(),e.stopPropagation(),t()?(l=e.touches[0].clientX,a=e.touches[0].clientY):(l=e.clientX,a=e.clientY),d.style.left=parseInt(l-xPointerStart+p)+"px",d.style.top=parseInt(a-yPointerStart+v)+"px";let i=parseInt((document.body.scrollTop||window.pageYOffset)+a),u=parseInt((document.body.scrollLeft||window.pageXOffset)+l),m=g?h:h.firstElementChild;i<=b?m.scrollTop-=50:i>=T&&(m.scrollTop+=50),ux&&(m.scrollLeft+=50);let w=null;for(let e of s)e.classList.remove("active"),e!=n&&(e.removeAttribute("style"),e.firstElementChild.removeAttribute("style")),o(l,a,e)?(w=e)!=n&&w.classList.add("active"):e.classList.remove("active");function E(t,l,a,i){if(a&&null!=a&&a!=l){c(l.firstElementChild),c(a.firstElementChild);let e=l,t=d,s=a,i=a.firstElementChild;e.appendChild(i),s.appendChild(t),e.classList.remove("active","off"),e.firstElementChild.classList.remove("active","off"),s.classList.remove("active","off"),s.firstElementChild.classList.remove("active","off"),e.style="",t.style="",s.style="",i.style="",n()}else c(l.firstElementChild),d.classList.add("off"),l.classList.add("off"),setTimeout(()=>{d.classList.remove("active","off"),l.classList.remove("active","off"),d.removeAttribute("style"),n()},500);function n(){d=null,l=null,document.ontouchstart=null,document.onmousedown=null,document.ontouchmove=null,document.onmousemove=null;for(let e of s)e.classList.remove("stratum");A=null,ev_grabs_start=null,e=null,null,r(),y()}}t()?document.ontouchend=(e=>{null!=d&&E(e,n,w,f)}):document.onmouseup=(e=>{null!=d&&E(e,n,w,f)})}}():t()?document.ontouchend=(()=>{clearInterval(f)}):document.onmouseup=(()=>{clearInterval(f)})},10)}}}t()?s.box.addEventListener("touchstart",d,!1):s.box.addEventListener("mousedown",d,!1)}h.layers=[];for(let e of s.layers)h.layers.push({name:e.name,elements:[]});for(let e of h.layers)for(let t of s.layers)if(t.name==e.name)for(let s of t.elements)e.elements.push({"slot-id":s.slotid,"box-id":s.boxid,"box-raw":s.box.innerHTML.replace(/\n|\t/g," ").replace(/\s{2,}/g," ")});return h},b=()=>{let e=document.querySelectorAll('*[class*="button-password"]');for(let t of e){let e=t.getElementsByTagName("img")[0],s=t.getElementsByTagName("img")[1],l=t.getElementsByTagName("input")[0],a=t.getElementsByTagName("input")[1];e.classList.add("active"),s.classList.add("off"),l.classList.add("off"),a.classList.add("active"),a.value=l.value,e.onclick=(()=>{e.classList.replace("active","off"),s.classList.replace("off","active"),l.classList.replace("off","active"),a.classList.replace("active","off")}),s.onclick=(()=>{e.classList.replace("off","active"),s.classList.replace("active","off"),l.classList.replace("active","off"),a.classList.replace("off","active")}),t.addEventListener("focus",()=>{let e=setInterval(()=>{t.querySelectorAll("input.off")[0].value=t.querySelectorAll("input.active")[0].value},200);t.addEventListener("blur",()=>{window.clearInterval(e)},!0)},!0)}},L=()=>{let e=document.querySelectorAll(".stars");for(let t of e){let e,s,l,a=t.previousElementSibling.value,i=["very bad","not good","normal/good","very good","exellent"];e='',t.innerHTML=e,s=t.querySelectorAll(".all-stars")[0];for(let t=0;t<5;t++)e='',s.innerHTML+=e;l=t.querySelectorAll(".all-labels")[0];for(let t=0;t<5;t++){e='
\n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",u);let f=document.getElementById("times-"+s),m=f.querySelectorAll(".am")[0],p=f.querySelectorAll(".pm")[0],v=f.querySelectorAll(".hours>input")[0],g=f.querySelectorAll(".minutes>input")[0],h=(f.querySelectorAll(".clock")[0],f.querySelectorAll(".rayline-hours")[0]),y=f.querySelectorAll(".rayline-minutes")[0],b=f.querySelectorAll(".pivot")[0],L=f.querySelectorAll("a.accept")[0];function l(e){e.select()}if(v.onmousedown=(()=>{l(v)}),v.ontouchstart=(()=>{l(v)}),g.onmousedown=(()=>{l(g)}),g.ontouchstart=(()=>{l(g)}),""!=d.getElementsByTagName("input")[0].value){let e=d.getElementsByTagName("input")[0].value,t=parseInt(e.split(":")[0]),s=parseInt(e.split(":")[1]);setTimeout(()=>{h.style.transform="rotate("+(30*t-90)+"deg)",y.style.transform="rotate("+(6*s-90)+"deg)"},500),t>=1&&t<=9&&(t="0"+t),v.value=t,s>=1&&s<=9&&(s="0"+s),g.value=s}function a(){let e=parseInt(v.value);m.classList.contains("status-active")?e>12?e="01":e<1?e="12":e>=1&&e<=9&&(e="0"+e):e>23?e="00":e<=-1?e="23":e<=9&&(e="0"+e),e.length>=3&&(e="01"),h.classList.add("smooth"),h.style.transform="rotate("+(30*parseInt(e)-90)+"deg)",setTimeout(()=>{h.classList.remove("smooth")},300),v.value=e}function i(){let e=g.value;e>59?e="00":e<0?e="59":e>=0&&e<=9&&(e="0"+e),e.length>2&&(e="01"),y.classList.add("smooth"),y.style.transform="rotate("+(6*parseInt(e)-90)+"deg)",setTimeout(()=>{y.classList.remove("smooth")},300),g.value=e}v.onkeyup=(()=>{String(v.value).length>=2&&a()}),v.onblur=(()=>{a()}),g.onkeyup=(()=>{String(g.value).length>=2&&i()}),g.onblur=(()=>{i()}),m.onclick=(()=>{if(!m.className.includes("status-active")){m.classList.add("[status-active]"),m.classList.remove("[status-off]"),p.classList.add("[status-off]"),p.classList.remove("[status-active]");let e=parseInt(v.value);0==e&&(e=12),e>12&&(e<=22?e="0"+(e-12):e>22&&(e-=12)),v.value=e,c(d,v,g,f,L)}}),p.onclick=(()=>{if(!p.className.includes("status-active")){m.classList.add("[status-off]"),m.classList.remove("[status-active]"),p.classList.add("[status-active]"),p.classList.remove("[status-off]");let e=parseInt(v.value);12==e?e="00":e+=12,v.value=e,c(d,v,g,f,L)}});let x=180*Math.atan2(-90,0)/Math.PI;h.style.transform="rotate("+x+"deg)";let T,A,w,E=180*Math.atan2(0,15)/Math.PI;function n(e){e.preventDefault(),e.stopPropagation();let s=b.getBoundingClientRect();T={x:window.scrollX+s.left,y:window.scrollY+s.top},event.target==h?(A=!0,w=!1):event.target==y&&(A=!1,w=!0),t()?document.ontouchmove=o:document.onmousemove=o}function o(e){let s,l,a;if(t()?(s=e.touches[0].clientX-T.x,l=e.touches[0].clientY-T.y,a=180*Math.atan2(l,s)/Math.PI):(s=e.pageX-T.x,l=e.pageY-T.y,a=180*Math.atan2(l,s)/Math.PI),A){let e=-180,t=180,s=parseInt((a-e)/(e-t)*-100),l=[];for(let e=0;e<14;e++){let t=parseInt(100*e/12);l.push(t)}let i=l.length;for(let a=0;al[a-1]&&sl[a-1]&&sl?(e.innerHTML="This Time is not available",e.classList.remove("hide"),i.classList.add("disabled"),i.innerText="OUT OF RANGE"):(e.classList.replace("active","off"),e.classList.add("hide"),i.classList.remove("disabled"),i.innerText="OK - SAVE",i.addEventListener("click",e=>{t.querySelectorAll(".button-clock>label")[0].innerText=n+":"+o,t.querySelectorAll(".button-clock>input")[0].value=n+":"+o},!1))}else i.innerText="OK - SAVE",i.addEventListener("click",e=>{t.querySelectorAll(".button-clock>label")[0].innerText=n+":"+o,t.querySelectorAll(".button-clock>input")[0].value=n+":"+o},!1)}y.style.transform="rotate("+E+"deg)",t()?(h.ontouchstart=n,y.ontouchstart=n):(h.onmousedown=n,y.onmousedown=n)}},S=()=>{let e=document.querySelectorAll('*[class*="button-checkbox"]');for(let t of e){let e=t.firstElementChild;e.checked&&""!=e.value?(e.setAttribute("checked",!0),e.checked=!0,e.value=1):(e.setAttribute("checked",!1),e.checked=!1,e.value=0),t.onclick=(t=>{e.disabled||(e.checked?(e.setAttribute("checked",!1),e.checked=!1,e.value=0):(e.setAttribute("checked",!0),e.checked=!0,e.value=1))})}},I=()=>{let e=document.querySelectorAll('*[class*="button-radio"]');for(let t of e){let e=t.firstElementChild;e.checked&&""!=e.value?(e.setAttribute("checked",!0),e.checked=!0,e.value=1):(e.setAttribute("checked",!1),e.checked=!1,e.value=0),t.onclick=(t=>{let s=document.querySelectorAll('[name="'+e.getAttribute("name")+'"]'),l=s.length;for(let e=0;e{let s=[...document.querySelectorAll("*[class*=button-date]")];for(let r of s){let s=[...r.getElementsByTagName("label")][0],c=[...r.getElementsByTagName("input")],d=c.length,u=1,f=[];if(d>2)e(':: [🛈 viƨor info]: button-date oversized\n ⮑ The maximum amount of inputs is two: "start date", "end date".'),r.classList.add("debug-error");else if(d<1)e(":: [🛈 viƨor info]: button-date subsized\n ⮑ The minumum amount of inputs is one: are you kidding me?"),r.classList.add("debug-error");else{let m,p,v,g,h;r.classList.contains("EUR")?(m=!1,p=!0):(m=!0,p=!1);let y,b=[...String(r.className).split(" ")],L=["DMY","DYM","MYD","MDY","YDM","YMD"],x=L.length;for(let e=0;e\n
\n \n ';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",A);let w,E,S=document.querySelectorAll("#datepicker-"+T)[0],I=S.querySelectorAll(".accept")[0],N=S.querySelectorAll(".year_list")[0],k=S.querySelectorAll(".month_list")[0],q=S.querySelectorAll(".weekday_list>div")[0],C=S.querySelectorAll(".day_list>div")[0],M=[],H=parseInt(r.firstElementChild.min),O=parseInt(r.firstElementChild.max);!H||""==H&&!O||""==O?(w=1950,E=2050):!O||H>O?(e(':: [🛈 viƨor info]: button-date strange min/max\n ⮑ The max value is undefined or min is over to max.\n Will be applied standard max "2050"'),w=H,E=2050):H?(w=H,E=O):(e(':: [🛈 viƨor info]: button-date strange min/max\n ⮑ The min value is undefined.\n Will be applied standard min "1950"'),w=1950,E=O);for(let e=w;e<=E;e++)M.push('
',e(":: [⚠ ui alert]: fileloader error\n ⮑ No modern file reader are supported.\n ⮑ reader message:"+loading.target.error+"\n ⮑ element:",Btn.closest(".fileloader")),void(f=!0));if(a.display.element&&"not defined"!=a.display.element||(e(":: [⚠ ui alert]: fileloader error\n ⮑ display not found.\n ⮑ element:",s.closest(".fileloader")),f=!0,a.container.classList.add("disabled")),!f){function i(...e){e=[].concat(...e);let t=new ClipboardEvent("").clipboardData||new DataTransfer;for(let s of e)t.items.add(s);return t.files}a.container.addEventListener("dragover",e=>{e.preventDefault(),e.stopPropagation();let t=e.dataTransfer||e.clipboardData;null!=t.items[0]&&"file"==t.items[0].kind.toLowerCase()&&(a.container.classList.add("draghere"),a.container.ondragleave=(e=>{e.preventDefault(),e.stopPropagation(),setTimeout(()=>{a.container.classList.remove("draghere")},300)}))},!1),a.container.addEventListener("drop",e=>{e.preventDefault(),e.stopPropagation();let r=e.dataTransfer||e.clipboardData;if("file"==r.items[0].kind.toLowerCase()){let e=[];for(let t=0;t{l(s,t,n,o,a,!0)},300)}},!0)}let m=a.id?a.id:~~(100*Math.random()),p=(a.container.querySelectorAll(".customdock").length,String(a.container.dataset.settings).replace(/\s/g,"").replace(/\[/g,"").replace(/\]/g,""));p.includes("type")?a.settings.type=p.split("type:")[1].split(",")[0]:a.settings.type="single",p.includes("chunksize")?a.settings.chunksize=parseInt(p.split("chunksize:")[1].split(",")[0]):a.settings.chunksize=parseInt(65536),p.includes("converter")?a.settings.autoconversion="true"==p.split("converter:")[1].split(",")[0]:a.settings.autoconversion=!1,p.includes("preview")?a.settings.preview="true"==p.split("preview:")[1].split(",")[0]:a.settings.preview=!1,p.includes("linked")?a.settings.linked="true"==p.split("linked:")[1].split(",")[0]:a.settings.linked=!1,p.includes("icons")?a.settings.previewicons="true"==p.split("icons:")[1].split(",")[0]:a.settings.previewicons=!1,p.includes("deleter")?a.settings.deleter="true"==p.split("deleter:")[1].split(",")[0]:a.settings.deleter=!1,p.includes("sortable")?a.settings.sortable="true"==p.split("sortable:")[1].split(",")[0]:a.settings.sortable=!1,p.includes("grabber")?a.settings.grabber="true"==p.split("grabber:")[1].split(",")[0]:a.settings.grabber=!1,p.includes("filters")?a.settings.filters="true"==p.split("filters:")[1].split(",")[0]:a.settings.filters=!1,p.includes("metalabel")?a.settings.metalabel="true"==p.split("metalabel:")[1].split(",")[0]:a.settings.metalabel=!1,p.includes("titlelabel")?a.settings.filetitlelabel="true"==p.split("titlelabel:")[1].split(",")[0]:a.settings.filetitlelabel=!1,p.includes("customized")?a.settings.customized="true"==p.split("customized:")[1].split(",")[0]:a.settings.customized=!1;let v=1==a.settings.sortable?'
':"",g=1==a.settings.sortable?"
":"",h=String(a.container.dataset.compressor);if(a.container.dataset.compressor){let e=h.includes("resolution")?h.split("image-resolution:")[1].split(",")[0]:null;h.includes("resize-type")?a.compressor.resizingtype="proportional"==h.split("resize-type:")[1].split(",")[0]?"proportional":"linear":a.compressor.resizingtype="proportional",a.compressor.imageMaxWidth=parseInt(e.split("x")[0])||1920,a.compressor.imageMaxHeight=parseInt(e.split("x")[1])||1920,a.compressor.imageQuality=parseFloat(h.split("image-quality:")[1].split(",")[0]/100)||.75}else a.settings.preview=!1,a.settings.linked=!1,a.compressor=!1;function r(t){if("single"==t.settings.type)1==t.settings.sortable&&(t.settings.sortable=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a sortable!\n\n")),1==t.settings.title&&(t.settings.title=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a titles!\n\n")),1==t.settings.title&&(t.settings.title=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a titles!\n\n")),1==t.settings.metalabel&&(t.settings.metalabel=!1,e(":: [⚠ ui alert]: Info on fileloader\n ⮑ settings work, displaytype single connot have a labels!\n\n")),1==t.settings.grabber&&(t.settings.grabber=!1,e(":: [⚠ ui alert]: fileloader data-settings error\n ⮑ type-single not accept a grabber")),t.input.setAttribute("maxlength","1"),t.display.element.classList.add("type-single"),t.display.container=t.display.element;else if("listed"==t.settings.type)t.display.element.classList.add("type-list"),t.display.element.innerHTML='
',t.display.container=t.display.element.querySelectorAll(".scroll-y")[0].firstElementChild}else e(":: [⚠ ui alert]: Error on fileloader\n ⮑ settings work, displaytype not finded!\n see more: https://git.io/J4hdC\n\n")}function c(s){s.display.container.innerHTML="",s.datalist=[],r(s);let l=0;(init_filesanalyzer=(()=>{if(l>=s.input.files.length){if(s.input.style["pointer-events"]=null,s.btnsend&&(s.btnsend.style["pointer-events"]=null),"single"!=s.settings.type&&1!=s.firstlaunch){s.display.container.parentNode.querySelectorAll(".button-file-addone").length>0&&s.display.element.querySelectorAll(".button-file-addone")[0].parentNode.remove(),s.display.container.parentNode.insertAdjacentHTML("beforeEnd",'
');let e=s.display.container.parentNode.querySelectorAll(".button-file-addone>input")[0];e.oninput=(()=>{if(s.input.style["pointer-events"]="none",s.btnsend&&(s.btnsend.style["pointer-events"]="none"),e.parentNode.querySelectorAll("label")[0].innerHTML="wait a moment...",e.parentNode.disabled=!0,e.style.visibility="collapse",e.disabled=!0,1==e.files.length){let t=e.files[0],l=s.input.files.length;a(s,l),i(s,l,t,()=>{s.input.style["pointer-events"]=null,s.btnsend&&(s.btnsend.style["pointer-events"]=null),e.parentNode.querySelectorAll("label")[0].innerHTML="ADD ONE MORE",e.parentNode.removeAttribute("disabled"),e.removeAttribute("style"),e.removeAttribute("disabled"),d(s)}),eventfilesAddOne=null}})}!function(e){e.resetter.onclick=(()=>{e.display.container.innerHTML="",e.datalist=[],r(e),d(e)})}(s),ui.reload("grabs"),s.running=!1}else s.input.style["pointer-events"]="none",s.btnsend&&(s.btnsend.style["pointer-events"]="none"),a(s,l),i(s,l,s.input.files[l],()=>{init_filesanalyzer(s,l++)});function a(e,t){e.datalist.push({filedata:{name:"not-defined",blob:"not-defined",size:"not-defined",typed:"not-defined",mime:"not-defined",chunks:"not-defined"},container:"not-defined",origins:"not-defined",buttons:{title:"not-defined",deleter:"not-defined",grabber:"not-defined",view:"not-defined",filters:"not-defined"}});let s=e.settings.filters?'':"",l=e.settings.linked?'':"",a=e.settings.deleter?'':"",i=e.settings.grabber?'':"",n=e.settings.preview||e.settings.linked?'\n
\n ';e.display.container.insertAdjacentHTML("beforeEnd",s)}let d=e.datalist[t];d.container=e.display.container.querySelectorAll(".databox")[t],e.settings.filetitlelabel&&(d.buttons.title=d.container.querySelectorAll(".action-rename")[0]),e.settings.deleter&&(d.buttons.deleter=d.container.querySelectorAll(".action-delete")[0]),e.settings.grabber&&(d.buttons.grabber=d.container.querySelectorAll(".action-grab")[0]),e.settings.linked&&(d.buttons.view=d.container.querySelectorAll(".action-view")[0]),e.settings.filters&&(d.buttons.filters=d.container.querySelectorAll(".action-filters")[0])}function i(s,l,a,i){s.settings.deleter&&l>=s.datalist.length-1&&function(e){if(e.settings.deleter){for(let t of e.datalist)t.buttons.deleter.onclick=(t=>{let s=[...e.container.querySelectorAll(".action-delete")].indexOf(t.target);for(let t of e.datalist)t.container.classList.add("disabled");setTimeout(()=>{e.datalist[s].container.remove(),e.datalist.splice(s,1);for(let t of e.datalist)t.container.classList.remove("disabled");d(e)},100)})}}(s);let n=s.datalist[l],o=n.container.querySelectorAll(".lazy")[0],r=n.container.querySelectorAll("[class*=progress-]")[0],c=window.URL||window.webkitURL,u=new FileReader,f=parseInt(s.settings.chunksize),m=[],p=0;function v(e){let t=a.name.substr(a.name.length-15)+" : "+e.toUpperCase(),l=n.container.querySelectorAll(".preview")[0];l&&(l.innerHTML="",l.classList.remove("autocrop"),l.insertAdjacentHTML("beforeEnd",'
❌
'));let i=n.container.querySelectorAll(".action-rename")[0];i&&(i.title="this file have an error. You cannot save/sent data if you not delete it.\n"+t,i.firstElementChild.setAttribute("value",t),i.firstElementChild.setAttribute("readonly",!0),i.firstElementChild.setAttribute("disabled",!0)),n.container.querySelectorAll(".action-grab").length>0&&n.container.querySelectorAll(".action-grab")[0].classList.add("disabled"),s.settings.filters&&[...n.container.querySelectorAll(".action-options")][0].classList.add("disabled"),g(r,o)}function g(e,t){return e.remove(),t.classList.add("[status-off]"),setTimeout(()=>{t.classList.add("[status---]"),setTimeout(()=>{n.container.removeAttribute("disabled"),t.classList.remove("[status-active]"),t.classList.remove("[status-off]"),setTimeout(()=>{t.remove()},500)},500)},500),i()}n.origins=a,(loadchunks=(()=>{let e=f+p,i=a.slice(p,e);0!=u.readyState&&2!=u.readyState||!e||(s.running=!0,setTimeout(()=>{function e(){m=[],event_encodedloaded=null,reader=null,canvas=null,projector=null,sound=null,image=null,URL.revokeObjectURL(c)}u.readAsBinaryString(i),u.onload=(i=>{let d=parseInt(p/a.size*100,10),h=String(parseInt(d)<10?"0"+d:d);r.className="progress-["+h+"]",0==i.target.result.length?(r.className="progress-[100]",function(){if(s.display.element.querySelectorAll(".scroll-y").length>0){n.container.disabled=!0;let e=s.display.element.querySelectorAll(".scroll-y")[0];e.scrollTop=e.scrollHeight}setTimeout(()=>{let i=s.compressor.imageMaxWidth,d=s.compressor.imageMaxHeight,u=t.getAttribute("size"),f="not-defined",p=!!a.name.includes(".")&&a.name.slice(a.name.lastIndexOf(".")+1).toLowerCase(),h=["svg"].includes(p),y=["gif"].includes(p),b=["mjpeg","bmp","jpg","jpeg","png","ico","webp","cur","jpe","jps","jfif"].includes(p),L=["amb","aac","flac","m4a","m4r","mp3","oga","ogg","opus","wav"].includes(p),x=["mp4","f4v","mpeg","m4v","mov","webm","ogv"].includes(p),T=["8svx","ac3","aiff","au","avr","caf","cdda","cvs","cvsd","cvu","dts","dvms","fap","fssd","gsrt","hcom","htk","ima","ircam","maud","mp2","nist","paf","prc","pvf","ra","sd2","sln","smp","snd","sndr","sndt","sou","sph","spx","tta","txw","vms","voc","vox","w64","wma","wv","wve"].includes(p),A=["ai","dds","eps","exr","fts","hdr","mng","pam","pbm","pcd","pcx","pfm","pgm","picon","pict","pnm","ppm","psd","ras","sfw","sgi","tga","tiff","tif","wbmp","wpg","x3f","xbm","xdf","xwd","xcf","xpm","cr2","dng","erf","heic","heif","jp2","nef","nrw","orf","pef","pes","raf","rw2"].includes(p),w=["3gp","asf","avi","flv","hevc","m2ts","m2v","mkv","mpg","mts","mxf","swf","ts","vob","wmv","wtv"].includes(p);p?h?(f="web-xmlsvg",mime="image/svg+xml"):y?(f="web-gif",mime="image/gif"):b?(f="web-image",mime="image/ico"==p?"x-icon":"image/png"):L?(f="web-audio",mime="audio/mpeg"):x?(f="web-video",mime="video/mp4"):A?(f="not-web-image",mime="not-web-compatible"):T?(f="not-web-audio",mime="not-web-compatible"):w?(f="not-web-video",mime="not-web-compatible"):(f="binary-file",mime="not-web-compatible"):(f="binary-file",mime="not-web-compatible"),n.filedata.name=a.name.split("."+p)[0]||a.name,n.filedata.blob=c.createObjectURL(a),n.filedata.size=parseFloat((Math.floor(a.size/1e3)/1024).toFixed(2)),n.filedata.chunks=m,n.filedata.mime=mime,n.filedata.typed=f;let E=String(n.filedata.blob),S=String(E.substr(E.length-5));function I(){if(s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}if(s.settings.metalabel&&(n.container.querySelectorAll(".filetype")[0].innerText=p||"",n.container.querySelectorAll(".filesize")[0].innerText="0.000"==n.filedata.size?"≅.001 mB":n.filedata.size+" Mb"),n.filedata.size>u)v("SIZE OF THIS FILE IS TOO BIG!! MAX SIZE IS "+u+" Mb");else{if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+(p||"binary")),null==e.getElementsByTagName("img")[0].getAttribute("src").value&&e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{blobber=new Blob(['\n \n FILE PREVIEWS\n \n \n \n
\n "NON WEB FILES" ARE CONVERTED AND SAVED IN BINARY OR B64. IT IS NOT POSSIBLE TO READ THEM FROM HERE.\n
\n \n \n \n\n '],{type:"text/html"}),window.open(c.createObjectURL(blobber),"_blank")})),e(),g(r,o)}}function N(e,t,l,a,i){let n="no-base64-data";try{n=btoa(e.join(""))}catch(e){return v("File is oversized for make a preview"),i("unprintable")}finally{if(!s.compressor)return i(n);{let e=new Image;e.src="data:"+t+";base64,"+n,e.onload=(n=>{let o=document.createElement("canvas"),r=e.width,c=e.height;return"proportional"==s.compressor.resizingtype?(r>=c&&(r=~~(r*=a/c),c=a),r=c&&(c=~~(c*=l/r),r=l),r{let l=setInterval(()=>{!s.value&&(s.value=t),s.setAttribute("value",s.value),document.activeElement==s?e.filedata.name=s.value:window.clearInterval(l)},250)})}n.container.querySelectorAll(".contents")[0].setAttribute("id",S),n.id=S,s.settings.autoconversion?function(){if(b){let a=n.container.querySelectorAll(".preview")[0];a.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),N(m,mime,i,d,a=>{if(a)if("unprintable"==a)v("ERROR ON IMAGE PREVIEW CREATION. THIS FILE CANNOT BE SENT.");else if("toosmall"==a)v("THIS IMAGE IS TOO SMALL!! MIN PX IS "+i+" x "+d);else{let i=a.replace(/=/g,"").replace("data:"+mime+";base64,",""),d=(~~(.75*i.length/1e3)/1024).toFixed(3);if(d>u)v("FILE IS TOO BIG!! USED "+d+" OF "+t+" Mb");else{if("image/ico"!=p&&(n.filedata.size=d,n.filedata.chunks=[i],s.settings.metalabel&&"single"!=s.settings.type&&(n.container.querySelectorAll(".filesize")[0].innerText="0.000"==d?"≅ 001 Mb":d+" Mb",n.container.querySelectorAll(".filetype")[0].innerText=p)),s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),e.firstElementChild.src=a,a&&null!=e.firstElementChild.src||e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{if("image/ico"==p){let e=new Blob(['\n \n FILE PREVIEWS\n \n \n \n
\n \n WHAT YOU ARE SEEING IS THE REPRESENTATION OF ICON DATA (from .ico to web/png). \n THE DATA THAT WILL BE SENT WILL RELATE TO THE REAL ICON.\n \n
\n \n \n \n \n\n '],{type:"text/html"});window.open(c.createObjectURL(e),"_blank")}else{let e=s.compressor?"THIS IS THE OPTIMIZED IMAGE DATA THAT WILL BE SENT":"THIS IS THE IMAGE ROW DATA THAT WILL BE SENT",t=new Blob(['\n \n FILE PREVIEWS\n \n \n \n
\n \n '+e+'\n \n
\n \n \n \n \n\n '],{type:"text/html"});window.open(c.createObjectURL(t),"_blank")}}))}e(),g(r,o)}else v("ERROR ON IMAGE COMPRESSION. THIS FILE CANNOT BE SENT.")})}else if(h||y)if(n.filedata.size>u)v("FILE IS TOO BIG!! USED "+n.filedata.size+" OF "+u+" Mb");else{if(s.settings.filetitlelabel){let e=n.filedata.name;n.buttons.title.firstElementChild.setAttribute("value",e),k(n,e)}s.settings.metalabel&&(n.container.querySelectorAll(".filetype")[0].innerText=p,n.container.querySelectorAll(".filesize")[0].innerText="0.000"==n.filedata.size?"≅.001 mB":n.filedata.size+" Mb"),N(m,mime,i,d,t=>{if(t)if("unprintable"==t)v("ERROR ON VECTOR PREVIEW CREATION. THIS FILE CANNOT BE SENT.");else if("toosmall"==t)v("THIS IMAGE IS TOO SMALL!! MIN PX IS "+i+" x "+d);else{if(s.settings.preview){let e=n.container.querySelectorAll(".preview")[0];e.classList.add("bkg-"+n.filedata.typed,"bkg-"+p),e.firstElementChild.src=t,t&&null!=e.firstElementChild.src||e.firstElementChild.classList.add("hide"),1==s.settings.previewicons&&e.insertAdjacentHTML("beforeEnd",'')}s.settings.linked&&(s.datalist[l].buttons.view.onclick=(()=>{let e;if(h)e=new Blob(['\n \n FILE PREVIEWS\n \n \n \n
\n \n WHAT YOU ARE SEEING IS THE IMAGE REPRESENTATION OF THE VECTOR SVG DATA. ORIGINAL DATA ARE SAVED IN BINARY.\n \n