Linux webm002.cluster126.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
/
home
/
a
/
r
/
i
/
ariannadhf
/
www
/
wp-content
/
plugins
/
simple-history
/
build
/
/home/a/r/i/ariannadhf/www/wp-content/plugins/simple-history/build/658.js
"use strict";(globalThis.webpackChunksimple_history=globalThis.webpackChunksimple_history||[]).push([[658],{455:(e,t,i)=>{i.d(t,{a:()=>a});var n=i(887);function l(e){let t=function(e){let t=[],i="",n=0;for(let l=0;l<e.length;l++){let r=e[l];"("===r&&n++,")"===r&&(n=Math.max(0,n-1)),";"===r&&0===n?(t.push(i),i=""):i+=r}return i.trim()&&t.push(i),t.map((e=>e.trim())).filter(Boolean)}(e),i=null,n=null,l=null,r=[];for(let e of t){let t=e.indexOf(":");if(t<0)continue;let a=e.slice(0,t).trim().toLowerCase(),o=e.slice(t+1).trim();"box-shadow"===a?l=o:"filter"===a?i=o:"-webkit-filter"===a?n=o:r.push([a,o])}if(l){let e=function(e){let t=[],i="",n=0;for(let l=0;l<e.length;l++){let r=e[l];"("===r&&n++,")"===r&&(n=Math.max(0,n-1)),","===r&&0===n?(t.push(i.trim()),i=""):i+=r}i.trim()&&t.push(i.trim());let l=[];for(let e of t){if(/\binset\b/i.test(e))continue;let t=e.match(/-?\d+(?:\.\d+)?px/gi)||[],[i="0px",n="0px",r="0px"]=t,a=e.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/gi,"").trim().replace(/\s{2,}/g," "),o=!!a&&","!==a;l.push(`drop-shadow(${i} ${n} ${r}${o?` ${a}`:""})`)}return l.join(" ")}(l);e&&(i=i?`${i} ${e}`:e,n=n?`${n} ${e}`:e)}let a=[...r];return i&&a.push(["filter",i]),n&&a.push(["-webkit-filter",n]),a.map((([e,t])=>`${e}:${t}`)).join(";")}function r(e){if(!(0,n.b)()||!function(e){return"string"==typeof e&&/^data:image\/svg\+xml/i.test(e)}(e))return e;try{let t=function(e){let t=e.indexOf(",");return t>=0?decodeURIComponent(e.slice(t+1)):""}(e);return function(e){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}(function(e){return(e=e.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,((e,t)=>e.replace(t,function(e){return e.replace(/([^{}]+)\{([^}]*)\}/g,((e,t,i)=>`${t}{${l(i)}}`))}(t))))).replace(/style=(['"])([\s\S]*?)\1/gi,((e,t,i)=>`style=${t}${l(i)}${t}`))}(t))}catch{return e}}async function a(e,t){let{width:i,height:n,scale:l=1,dpr:a=1,meta:o={},backgroundColor:s}=t;e=r(e);let u=new Image;u.loading="eager",u.decoding="sync",u.crossOrigin="anonymous",u.src=e,await u.decode();let c,h,m=u.naturalWidth,p=u.naturalHeight,d=Number.isFinite(o.w0)?o.w0:m,f=Number.isFinite(o.h0)?o.h0:p,g=Number.isFinite(i),b=Number.isFinite(n);g&&b?(c=Math.max(1,i),h=Math.max(1,n)):g?(c=i,h=f*(i/Math.max(1,d))):b?(h=n,c=d*(n/Math.max(1,f))):(c=m,h=p),c*=l,h*=l;let x=document.createElement("canvas");x.width=c*a,x.height=h*a,x.style.width=`${c}px`,x.style.height=`${h}px`;let $=x.getContext("2d");return 1!==a&&$.scale(a,a),s&&($.save(),$.fillStyle=s,$.fillRect(0,0,c,h),$.restore()),$.drawImage(u,0,0,c,h),x}},276:(e,t,i)=>{i.d(t,{a:()=>l});var n=i(455);async function l(e,t){let i=t.type;if("svg"===i){let t=decodeURIComponent(e.split(",")[1]);return new Blob([t],{type:"image/svg+xml"})}let l=await(0,n.a)(e,t);return new Promise((e=>l.toBlob((t=>e(t)),`image/${i}`,t.quality)))}},658:(e,t,i)=>{i.d(t,{toBlob:()=>n.a});var n=i(276)}}]);