mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
|
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).cssVendor={})}(this,function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType,n="",o="",i="",s="",u=t&&"ontouchstart"in document.documentElement;if(t){var f={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},p=document.createElement("p").style;for(var l in f)if(l+"Transform"in p){n=l,o=f[l];break}"Webkit"===n&&"msHyphens"in p&&(n="ms",o=f.ms,s="edge"),"Webkit"===n&&"-apple-trailing-word"in p&&(i="apple")}var c={js:n,css:o,vendor:i,browser:s,isTouch:u};function a(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===c.js?"-webkit-"+e:c.css+e)}},y={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===c.js?c.css+"print-"+e:e)}},m=/[-\s]+(.)?/g;function b(e,r){return r?r.toUpperCase():""}function x(e){return e.replace(m,b)}function j(e){return x("-"+e)}var g,v={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===c.js){if(x("mask-image")in r)return e;if(c.js+j("mask-image")in r)return c.css+e}return e}},P={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==c.vendor||c.isTouch?e:c.css+e)}},k={noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:c.css+e)}},w={noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:c.css+e)}},h={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===c.js||"ms"===c.js&&"edge"!==c.browser?c.css+e:e)}},W={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===c.js||"ms"===c.js||"apple"===c.vendor?c.css+e:e)}},S={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===c.js?"WebkitColumn"+j(e)in r&&c.css+"column-"+e:"Moz"===c.js&&("page"+j(e)in r&&"page-"+e))}},A={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===c.js)return e;var t=e.replace("-inline","");return c.js+j(t)in r&&c.css+t}},E={supportedProperty:function(e,r){return x(e)in r&&e}},z={supportedProperty:function(e,r){var t=j(e);return"-"===e[0]?e:"-"===e[0]&&"-"===e[1]?e:c.js+t in r?c.css+e:"Webkit"!==c.js&&"Webkit"+t in r&&"-webkit-"+e}},O={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===c.js?""+c.css+e:e)}},M={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===c.js?c.css+"scroll-chaining":e)}},T={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},N={supportedProperty:function(e,r){var t=T[e];return!!t&&(c.js+j(t)in r&&c.css+t)}},C={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},I=Object.keys(C),V=function(e){return c.css+e},_=[d,y,v,P,k,w,h,W,S,A,E,z,O,M,N,{supportedProperty:function(e,r,t){var n=t.multiple;if(I.indexOf(e)>-1){var o=C[e];if(!Array.isArray(o))return c.js+j(o)in r&&c.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(c.js+j(o[0])in r))return!1;return o.map(V)}return!1}}],H=
|