import{s as e}from"./querySelectorAll-PdiS4z27.js";function t(t){var n=e(t);return n&&n.defaultView||window}function n(e,n){return t(e).getComputedStyle(e,n)}var r=/([A-Z])/g;function i(e){return e.replace(r,`-$1`).toLowerCase()}var a=/^ms-/;function o(e){return i(e).replace(a,`-ms-`)}var s=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function c(e){return!!(e&&s.test(e))}function l(e,t){var r=``,i=``;if(typeof t==`string`)return e.style.getPropertyValue(o(t))||n(e).getPropertyValue(o(t));Object.keys(t).forEach(function(n){var a=t[n];!a&&a!==0?e.style.removeProperty(o(n)):c(n)?i+=n+`(`+a+`) `:r+=o(n)+`: `+a+`;`}),i&&(r+=`transform: `+i+`;`),e.style.cssText+=`;`+r}export{l as t};