|
|
|
(()=>{"use strict";function e(e,t){if(null==e)return{};var s,r,i={},n=Object.keys(e);for(r=0;r<n.length;r++)s=n[r],t.indexOf(s)>=0||(i[s]=e[s]);return i}function t(){return(t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e}).apply(this,arguments)}!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).stylelint=e()}(function(){return(()=>(function e(t,s,r){function i(o,a){if(!s[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(n)return n(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=s[o]={exports:{}};t[o][0].call(c.exports,e=>i(t[o][1][e]||e),c,c.exports,e,t,s,r)}return s[o].exports}for(var n="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}))()({1:[(e,t,s)=>{},{}],2:[(e,t,s)=>{Object.defineProperty(s,"__esModule",{value:!0});var r,i=(r=e("postcss-selector-parser"))&&"object"==typeof r&&"default"in r?r:{default:r};function n(e){if(!e)return{a:0,b:0,c:0};let t=0,s=0,r=0;if("universal"==e.type)return{a:0,b:0,c:0};if("id"===e.type)t+=1;else if("tag"===e.type)r+=1;else if("class"===e.type)s+=1;else if("attribute"===e.type)s+=1;else if((e=>i.default.isPseudoElement(e))(e))r+=1;else if(i.default.isPseudoClass(e))switch(e.value.toLowerCase()){case":-moz-any":case":-webkit-any":case":any":case":has":case":is":case":matches":case":not":if(e.nodes&&e.nodes.length>0){const i=o(e.nodes);t+=i.a,s+=i.b,r+=i.c}break;case":where":break;case":nth-child":case":nth-last-child":if(s+=1,e.nodes&&e.nodes.length>0){const n=e.nodes[0].nodes.findIndex(e=>"tag"===e.type&&"of"===e.value.toLowerCase());if(n>-1){const a=[i.default.selector({nodes:e.nodes[0].nodes.slice(n+1),value:""})];e.nodes.length>1&&a.push(...e.nodes.slice(1));const l=o(a);t+=l.a,s+=l.b,r+=l.c}}break;case":local":case":global":e.nodes&&e.nodes.length>0&&e.nodes.forEach(e=>{const i=n(e);t+=i.a,s+=i.b,r+=i.c});break;default:s+=1}else i.default.isContainer(e)&&e.nodes.length>0&&e.nodes.forEach(e=>{const i=n(e);t+=i.a,s+=i.b,r+=i.c});return{a:t,b:s,c:r}}function o(e){let t={a:0,b:0,c:0};return e.forEach(e=>{const s=n(e);s.a>t.a?t=s:s.a<t.a||(s.b>t.b?t=s:s.b<t.b||s.c>t.c&&(t=s))}),t}s.compare=((e,t)=>e.a===t.a?e.b===t.b?e.c-t.c:e.b-t.b:e.a-t.a),s.selectorSpecificity=n},{"postcss-selector-parser":29}],3:[function(e,t,s){arguments[4][1][0].apply(s,arguments)},{dup:1}],4:[(e,t,s)=>{const r=e("is-regexp"),i={global:"g",ignoreCase:"i",multiline:"m",dotAll:"s",sticky:"y",unicode:"u"};t.exports=((e,t={})=>{if(!r(e))throw new TypeError("Expected a RegExp instance");const s=Object.keys(i).map(s=>("boolean"==typeof t[s]?t[s]:e[s])?i[s]:"").join(""),n=new RegExp(t.source||e.source,s);return n.lastIndex="number"==typeof t.lastIndex?t.lastIndex:e.lastIndex,n})},{"is-regexp":17}],5:[function(e,t,s){Object.defineProperty(s,"__esModule",{value:!0});var r={grad:.9,turn:360,rad:360/(2*Math.PI)},i=e=>"string"==typeof e?e.length>0:"number"==typeof e,n=(e,t,s)=>(void 0===t&&(t=0),void 0===s&&(s=Math.pow(10,t)),Math.round(s*e)/s+0),o=(e,t,s)=>(void 0===t&&(t=0),void 0===s&&(s=1),e>s?s:e>t?e:t),a=e=>(e=isFinite(e)?e%360:0)>0?e:e+360,l=e=>({r:o(e.r,0,255),g:o(e.g,0,255),b:o(e.b,0,255),a:o(e.a)}),u=e=>({r:n(e.r),g:n(e.g),b:n(e.b),a:n(e.a,3)}),c=/^#([0-9a-f]{3,8})$/i,d=e=>{var t=e.toString(16);return t.length<2?"0"+t:t},p=e=>{var t=e.r,s=e.g,r=e.b,i=e.a,n=Math.max(t,s,r),o=n-Math.min(t,s,r),a=o?n===t?(s-r)/o:n===s?2+(r-t)/o:4+(t-s)/o:0;return{h:60*(a<0?a+6:a),s:n?o/n*100:0,v:n/255*100,a:i}},f=e=>{var t=e.h,s=e.s,r=e.v,i=e.a;t=t/360*6,s/=100,r/=100;var n=Math.floor(t),o=r*(1-s),a=r*(1-(t-n)*s),l=r*(1-(1-t+n)*s),u=n%6;return{r:255*[r,a,o,o,l,r][u],g:255*[l,r,r,a,o,o][u],b:255*[o,o,l,r,r,a][u],a:i}},m=e=>({h:a(e.h),s:o(e.s,0,100),l:o(e.l,0,100),a:o(e.a)}),h=e=>({h:n(e.h),s:n(e.s),l:n(e.l),a:n(e.a,3)}),g=e=>{return f((s
|