(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["polyfills-css-shim"],{"71b6":function(t,e){var r=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function n(t){return i(o(t=s(t)),t)}function s(t){return t.replace(p.comments,"").replace(p.port,"")}function o(t){var e=new r;e.start=0,e.end=t.length;for(var n=e,s=0,o=t.length;s0?i.join(",").trim():void 0}}function M(t,e,r){var n=w(t,r);if(!n)return e.push(t.substring(r,t.length)),t.length;var s=n.propName,o=null!=n.fallback?I(n.fallback):void 0;return e.push(t.substring(r,n.start),(function(t){return S(t,s,o)})),n.end}function x(t,e){for(var r="",n=0;n0&&t.parsedSelector.split(",").forEach((function(t){t=t.trim(),r.push({selector:t,declarations:n,specificity:L(),nu:e})})),e++})),r}function L(t){return 1}var _="!important",O=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function T(t){for(var e,r=[];e=O.exec(t.trim());){var n=U(e[2]),s=n.value,o=n.important;r.push({prop:e[1].trim(),value:I(s),important:o})}return r}function U(t){var e=(t=t.replace(/\s+/gim," ").trim()).endsWith(_);return e&&(t=t.substr(0,t.length-_.length).trim()),{value:t,important:e}}function N(t,e,r){var n=[],s=j(e,t);return r.forEach((function(t){return n.push(t)})),s.forEach((function(t){return n.push(t)})),G($(n).filter((function(e){return H(t,e.selector)})))}function j(t,e){for(var r=[];e;){var n=t.get(e);n&&r.push(n),e=e.parentElement}return r}function $(t){var e=[];return t.forEach((function(t){e.push.apply(e,t.selectors)})),e}function G(t){return t.sort((function(t,e){return t.specificity===e.specificity?t.nu-e.nu:t.specificity-e.specificity})),t}function H(t,e){return":root"===e||"html"===e||t.matches(e)}function P(t){var e=n(t),r=I(t);return{original:t,template:r,selectors:A(e),usesCssVars:r.length>1}}function V(t,e){if(t.some((function(t){return t.styleEl===e})))return!1;var r=P(e.textContent);return r.styleEl=e,t.push(r),!0}function Y(t){var e=R($(t));t.forEach((function(t){t.usesCssVars&&(t.styleEl.textContent=x(t.template,e))}))}function q(t,e){var r=t.template.map((function(r){return"string"==typeof r?F(r,t.scopeId,e):r})),n=t.selectors.map((function(r){return Object.assign(Object.assign({},r),{selector:F(r.selector,t.scopeId,e)})}));return Object.assign(Object.assign({},t),{template:r,selectors:n,scopeId:e})}function F(t,e,r){return B(t,"\\."+e,"."+r)}function B(t,e,r){return t.replace(new RegExp(e,"g"),r)}function W(t,e){return K(t,e),J(t,e).then((function(){Y(e)}))}function D(t,e){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){K(t,e)&&Y(e)})).observe(document.head,{childList:!0})}function J(t,e){for(var r=[],n=t.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s-1||z.test(t)}var Q=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function tt(t){return Q.lastIndex=0,Q.test(t)}function et(t,e){var r=e.replace(/[^/]*$/,"");return t.replace(Q,(function(t,e){var n=r+e;return t.replace(e,n)}))}var rt=function(){function t(t,e){this.win=t,this.doc=e,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return t.prototype.i=function(){var t=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(e){t.win.requestAnimationFrame((function(){D(t.doc,t.globalScopes),W(t.doc,t.globalScopes).then((function(){return e()}))}))})))},t.prototype.addLink=function(t){var e=this;return X(this.doc,this.globalScopes,t).then((function(){e.updateGlobal()}))},t.prototype.addGlobalStyle=function(t){V(this.globalScopes,t)&&this.updateGlobal()},t.prototype.createHostStyle=function(t,e,r,n){if(this.hostScopeMap.has(t))throw new Error("host style already created");var s=this.registerHostTemplate(r,e,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=e=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(t,o),this.hostScopeMap.set(t,q(s,e)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=x(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(t,s)):o.textContent=r,o},t.prototype.removeHost=function(t){var e=this.hostStyleMap.get(t);e&&e.remove(),this.hostStyleMap.delete(t),this.hostScopeMap.delete(t)},t.prototype.updateHost=function(t){var e=this.hostScopeMap.get(t);if(e&&e.usesCssVars&&e.isScoped){var r=this.hostStyleMap.get(t);if(r){var n=R(N(t,this.hostScopeMap,this.globalScopes));r.textContent=x(e.template,n)}}},t.prototype.updateGlobal=function(){Y(this.globalScopes)},t.prototype.registerHostTemplate=function(t,e,r){var n=this.scopesMap.get(e);return n||((n=P(t)).scopeId=e,n.isScoped=r,this.scopesMap.set(e,n)),n},t}();!function(t){!t||t.__cssshim||t.CSS&&t.CSS.supports&&t.CSS.supports("color","var(--c)")||(t.__cssshim=new rt(t,t.document))}("undefined"!=typeof window&&window)}}]); //# sourceMappingURL=polyfills-css-shim.ac087954.js.map